/* Qube Lab Zone — Theme-Specific Design System
   Inspired by Japanese aesthetics: wabi-sabi, ma (negative space), 
   seasonal observation, slow travel, paper and ink, walking paths.
   Not SaaS. Not generic. Built for thoughtful Japan travel.
*/

:root {
  --indigo: #1a365d;
  --indigo-light: #2c4a6e;
  --sakura: #d98a9e;
  --sakura-pale: #f4d9df;
  --beige: #f5f0e6;
  --ivory: #f9f6f0;
  --ivory-warm: #f8f4eb;
  --wood: #c9b8a0;
  --wood-deep: #8a7560;
  --vermilion: #b53a2f;
  --vermilion-pale: #e8b9b0;
  --text: #2d3748;
  --text-light: #5a6578;
  --text-faint: #7f8a9a;
  --forest: #2f4a3a;
  --stone: #6f6a62;
  --snow: #e8ecef;
  --ink: #1c252f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--ivory);
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho Pro', serif;
  font-weight: 700;
  line-height: 1.32;
  color: var(--indigo);
}

h1 { font-size: clamp(32px, 5.8vw, 52px); letter-spacing: -0.3px; }
h2 { font-size: clamp(24px, 3.8vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--vermilion);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 28px; }
}

/* HEADER — Path-like navigation */
header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.035);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--wood);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
}

.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.6px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 26px;
  align-items: center;
}

nav ul li a {
  font-size: 14.2px;
  font-weight: 500;
  color: var(--text);
  padding: 4px 2px;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--vermilion);
  transition: width 0.25s ease;
}

nav ul li a:hover:after,
nav ul li a.nav-active:after {
  width: 100%;
}

.search-box {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1px solid var(--wood);
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--beige);
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,54,93,0.08);
}

.search-box::before {
  content: "探";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--wood-deep);
  font-family: 'Noto Serif JP', serif;
}

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--indigo);
  padding: 4px 8px;
}

/* HERO — Immersive, not loud */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,54,93,0.38) 0%, rgba(26,54,93,0.48) 55%, rgba(26,54,93,0.62) 100%);
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(36px, 6.5vw, 54px);
  line-height: 1.12;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero p {
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 32px;
  opacity: 0.96;
  line-height: 1.65;
}

/* Buttons — deliberate, not salesy */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--indigo);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--vermilion);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.9);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--indigo);
  border-color: white;
}

.btn-small {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* Section rhythm */
section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 38px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  max-width: 560px;
  font-size: 15px;
}

/* Path Cards — unique to this site */
.path-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.045);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: 1px solid var(--beige);
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.07);
}

.path-card img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  display: block;
}

.path-card .content {
  padding: 22px 22px 24px;
}

.path-card h3 {
  font-size: 18px;
  margin-bottom: 7px;
  color: var(--indigo);
}

.path-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.path-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  background: var(--beige);
  color: var(--indigo);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Seasonal Journey Cards */
.season-journey {
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  border: 1px solid var(--wood);
  transition: all 0.3s ease;
}

.season-journey:hover {
  border-color: var(--indigo);
  background: var(--ivory-warm);
}

.season-journey .season-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.season-journey h3 {
  margin-bottom: 8px;
}

/* Rich Article Styles */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article h2 {
  font-size: 26px;
  margin: 42px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wood);
}

.article h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--indigo-light);
}

.article p {
  margin-bottom: 17px;
  font-size: 15.2px;
}

.article img {
  width: 100%;
  border-radius: 10px;
  margin: 26px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.highlight-box {
  background: var(--beige);
  padding: 22px 24px;
  border-radius: 10px;
  margin: 24px 0;
  border-left: 4px solid var(--wood-deep);
}

.highlight-box h4 {
  margin-bottom: 8px;
  color: var(--indigo);
}

.route-block {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  margin: 22px 0;
  border: 1px solid var(--wood);
}

.route-block h4 {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--forest);
}

/* Two-column thoughtful layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* City/Place Detail — vertical reading like a scroll */
.place-detail {
  max-width: 820px;
  margin: 0 auto;
}

.place-detail .lead {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

.districts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.district {
  background: #fff;
  padding: 18px 20px;
  border-radius: 9px;
  border: 1px solid var(--beige);
}

.district h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
  color: var(--indigo);
}

/* Food & Experience specific */
.taste-note {
  font-size: 14px;
  background: var(--ivory-warm);
  padding: 16px 18px;
  border-radius: 8px;
  margin: 14px 0;
  border-left: 3px solid var(--sakura);
}

/* Magazine long-form */
.magazine-article {
  max-width: 720px;
  margin: 0 auto;
}

.magazine-article .kicker {
  font-size: 13px;
  color: var(--vermilion);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Footer — quiet, respectful */
footer {
  background: var(--indigo);
  color: #c5d0e0;
  padding: 62px 0 38px;
  font-size: 13.8px;
}

footer a {
  color: #a8b8cc;
}

footer a:hover {
  color: var(--sakura-pale);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.1fr;
  gap: 38px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 7px;
}

/* Mobile-first responsive */
@media (max-width: 900px) {
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 300;
  }
  
  nav ul.show {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .search-box {
    width: 100%;
    margin-top: 8px;
    order: 3;
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .path-card img {
    height: 168px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  
  section {
    padding: 56px 0;
  }
  
  .hero {
    min-height: 78vh;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Subtle Japanese-inspired details */
.washi {
  background-image: 
    linear-gradient(rgba(200,185,155,0.035) 1px, transparent 1px);
  background-size: 100% 3px;
}

.ink-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--wood), transparent);
  margin: 32px 0;
}

/* Journey continuation links */
.journey-continue {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--wood);
  font-size: 14px;
}

.journey-continue a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Accessibility and touch targets */
button, .btn, .card, .path-card, a {
  min-height: 44px;
  min-width: 44px;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* Print friendly */
@media print {
  header, footer, .btn { display: none; }
  body { background: white; color: black; }
}