/* ============================================
   Shizuka Tabi - Global Stylesheet
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
  --sage-mist: #d4e0d8;
  --deep-forest: #1a3329;
  --moss-green: #2d5a3d;
  --warm-clay: #c4956a;
  --pale-sage: #e8f0e9;
  --soft-stone: #9e9a96;
  --river-blue: #7a9e9f;
  --paper-white: #fafbf9;
  --bark-brown: #5c4033;
  --dust-gold: #d4af7a;

  --header-height: 72px;
  --content-max: 1200px;
  --section-pad: 120px;
  --card-gap: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 300;
  line-height: 1.75;
  color: var(--deep-forest);
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Language Toggle System --- */
[data-lang="ja"] .en { display: none !important; }
[data-lang="en"] .ja { display: none !important; }

/* --- Typography --- */
.font-display-ja {
  font-family: "Noto Serif JP", "Shippori Mincho", serif;
  font-weight: 700;
  line-height: 1.1;
}

.font-display-en {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-weight: 300;
  line-height: 1.0;
}

.font-h2-ja {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1.3;
}

.font-h2-en {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

.font-h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  line-height: 1.3;
}

.font-body {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

.font-caption {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-size: 13px;
}

.font-nav {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.font-data {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}

.section-pad {
  padding: var(--section-pad) 0;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--moss-green);
  color: var(--paper-white);
  padding: 14px 36px;
  border-radius: 50px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e3d2a;
  transform: scale(1.03);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--moss-green);
  padding: 14px 36px;
  border-radius: 50px;
  border: 1px solid var(--moss-green);
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--moss-green);
  color: var(--paper-white);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: rgba(212, 224, 216, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.site-header.scrolled .nav-link,
.site-header.scrolled .brand-name,
.site-header.scrolled .lang-toggle {
  color: var(--deep-forest);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .header-inner { padding: 0 48px; }
}

.brand-name {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--paper-white);
  transition: color 0.3s ease;
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--paper-white);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--moss-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.lang-toggle {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--paper-white);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-toggle span {
  opacity: 0.6;
  font-weight: 300;
  transition: opacity 0.2s ease;
}

.lang-toggle span.active {
  opacity: 1;
  font-weight: 500;
}

.lang-toggle span:hover {
  opacity: 0.9;
}

/* Mobile menu */
.mobile-menu-btn {
  display: block;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(212, 224, 216, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 40px 24px;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  color: var(--deep-forest);
  font-size: 20px;
  font-weight: 400;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(212,224,216,0.3) 0%, rgba(26,51,41,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--paper-white);
  padding: 0 24px;
  max-width: 640px;
}

.hero-title-ja {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(56px, 10vw, 96px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
}

.hero-title-en {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-tagline-ja {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(16px, 3vw, 24px);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-tagline-en {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.75;
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: var(--paper-white);
  opacity: 0.6;
}

.scroll-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper-white);
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Hero mini (for inner pages) */
.hero-mini {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-mini .hero-video,
.hero-mini .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mini .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(212,224,216,0.3) 0%, rgba(26,51,41,0.55) 100%);
}

.hero-mini .hero-content {
  position: relative;
  z-index: 2;
}

.hero-mini-solid {
  background: var(--deep-forest);
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-mini-sage {
  background: var(--sage-mist);
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-mini-pale {
  background: var(--pale-sage);
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- Section Label --- */
.section-label {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--moss-green);
  margin-bottom: 12px;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Philosophy Section --- */
.philosophy-section {
  background: var(--sage-mist);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 55% 45%;
  }
}

.philosophy-text h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--deep-forest);
  margin-bottom: 16px;
}

.philosophy-text p {
  font-size: 17px;
  color: var(--deep-forest);
  opacity: 0.85;
  margin-bottom: 24px;
}

.philosophy-chars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.char-svg {
  width: 100%;
  height: 100%;
}

.char-svg text {
  font-family: "Noto Serif JP", serif;
  font-size: 100px;
  fill: none;
  stroke: var(--pale-sage);
  stroke-width: 2;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 2.5s ease, stroke 0.8s ease;
}

.char-svg.drawn text {
  stroke: var(--moss-green);
  stroke-dashoffset: 0;
}

/* --- Spiral Helix Section --- */
.helix-section {
  height: 80vh;
  min-height: 400px;
  background: var(--deep-forest);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .helix-section { height: 50vh; }
}

.helix-column {
  --duration: 40s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform-style: preserve-3d;
  animation: helixRotate var(--duration) linear infinite;
  position: relative;
  perspective: 600px;
}

.helix-column:last-child {
  --rotation: -360deg;
}

.helix-column span {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--sage-mist);
  opacity: 0.7;
  white-space: nowrap;
  will-change: transform;
}

.helix-column:first-child { perspective-origin: 75% 50%; }
.helix-column:last-child { perspective-origin: 25% 50%; }

@keyframes helixRotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(var(--rotation, 360deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .helix-column { animation: none; }
  .helix-column span { transform: none !important; position: static; }
}

/* --- Table Styles --- */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead {
  background: var(--dust-gold);
}

.data-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--deep-forest);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tbody tr {
  background: var(--paper-white);
  transition: background 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
  background: var(--pale-sage);
}

.data-table tbody tr:hover {
  background: var(--sage-mist);
}

.data-table tbody td {
  padding: 14px 16px;
  color: var(--deep-forest);
}

.data-table .route-name {
  font-weight: 500;
  font-size: 15px;
}

.data-table .route-name .en {
  font-size: 13px;
  color: var(--soft-stone);
  font-weight: 400;
}

.surface-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.surface-paved { background: var(--moss-green); }
.surface-gravel { background: var(--warm-clay); }
.surface-earth { background: var(--bark-brown); }

.shade-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--paper-white);
}

.shade-mostly { background: var(--moss-green); }
.shade-partial { background: var(--river-blue); }
.shade-sunny { background: var(--warm-clay); }

.toilet-yes { color: var(--moss-green); font-weight: 500; }
.toilet-no { color: var(--soft-stone); }

/* --- Route Cards --- */
.route-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.route-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--pale-sage);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .route-card {
    grid-template-columns: 45% 55%;
  }
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.route-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .route-card-img { height: 100%; min-height: 200px; }
}

.route-card-content {
  padding: 28px;
}

.route-card-content h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.route-card-content .route-meta {
  font-size: 14px;
  color: var(--soft-stone);
  margin-bottom: 12px;
}

.route-card-content p {
  font-size: 15px;
  color: var(--deep-forest);
  opacity: 0.85;
  line-height: 1.7;
}

/* --- Steps Component --- */
.steps-container {
  background: var(--deep-forest);
  border-radius: 16px;
  padding: 48px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.steps-label {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dust-gold);
  margin-bottom: 16px;
}

.steps-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--paper-white);
  line-height: 1.2;
  margin-bottom: 16px;
  min-height: 2.8rem;
}

.steps-desc {
  font-size: 16px;
  color: var(--sage-mist);
  line-height: 1.6;
  max-width: 480px;
}

.steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.steps-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--moss-green);
  background: transparent;
  color: var(--paper-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.steps-arrow:hover {
  background: var(--moss-green);
  transform: scale(1.05);
}

.steps-arrow:active {
  transform: scale(0.95);
}

.steps-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.steps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--soft-stone);
  cursor: pointer;
  transition: all 0.3s ease;
}

.steps-dot.active {
  background: var(--sage-mist);
  transform: scale(1.3);
}

/* --- Pricing Card --- */
.pricing-card {
  background: var(--paper-white);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  margin: 48px auto 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.pricing-card h3 {
  font-size: 22px;
  color: var(--deep-forest);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--moss-green);
  margin-bottom: 8px;
}

.pricing-note {
  font-size: 13px;
  color: var(--soft-stone);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  max-width: 320px;
  margin: 0 auto 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--moss-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Team Cards --- */
.team-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .team-cards {
    flex-direction: row;
  }
}

.team-card {
  background: var(--paper-white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--paper-white);
  flex-shrink: 0;
}

.team-info h4 {
  font-size: 18px;
  color: var(--deep-forest);
  margin-bottom: 2px;
}

.team-info p {
  font-size: 14px;
  color: var(--soft-stone);
}

.team-info a {
  font-size: 14px;
  color: var(--moss-green);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--deep-forest);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #c44;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--pale-sage);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--deep-forest);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--moss-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--soft-stone);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  background: var(--moss-green);
  color: var(--paper-white);
  padding: 16px;
  border-radius: 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: #1e3d2a;
  transform: scale(1.01);
}

/* --- Office Info --- */
.office-block {
  margin-bottom: 32px;
}

.office-block h4 {
  font-size: 18px;
  color: var(--deep-forest);
  border-bottom: 1px solid var(--sage-mist);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.office-block p {
  font-size: 14px;
  color: var(--deep-forest);
  margin-bottom: 4px;
}

.office-block p.muted {
  color: var(--soft-stone);
}

.office-block a {
  color: var(--moss-green);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--sage-mist);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--deep-forest);
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
}

.faq-question:hover {
  color: var(--moss-green);
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 16px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--deep-forest);
  opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--bark-brown);
}

.footer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(92,64,51,0.95) 0%, rgba(92,64,51,0.9) 100%);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 32px;
  color: var(--sage-mist);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(212,224,216,0.2);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--paper-white);
}

.footer-brand-sub {
  font-size: 14px;
  color: var(--sage-mist);
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer-nav a {
  font-size: 14px;
  color: var(--sage-mist);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--paper-white);
}

.footer-offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(212,224,216,0.2);
}

@media (min-width: 768px) {
  .footer-offices {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.footer-office h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dust-gold);
  margin-bottom: 8px;
}

.footer-office p {
  font-size: 13px;
  color: var(--sage-mist);
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--sage-mist);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-legal a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 12px;
  color: var(--sage-mist);
  opacity: 0.6;
  margin-top: 8px;
}

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper-white);
  border-top: 1px solid var(--sage-mist);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 9999;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.cookie-text {
  font-size: 14px;
  color: var(--deep-forest);
  margin-bottom: 16px;
}

.cookie-text a {
  color: var(--moss-green);
  text-decoration: underline;
}

.cookie-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--deep-forest);
}

.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--soft-stone);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--moss-green);
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.toggle-switch.active::after {
  transform: translateX(18px);
}

.toggle-switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Thank You / 404 Pages --- */
.message-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: var(--sage-mist);
}

.message-page h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(48px, 8vw, 80px);
  color: var(--deep-forest);
  margin-bottom: 16px;
}

.message-page p {
  font-size: 18px;
  color: var(--deep-forest);
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: var(--header-height);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-content h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--deep-forest);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--deep-forest);
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--deep-forest);
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--deep-forest);
  opacity: 0.85;
  margin-bottom: 12px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 15px;
  color: var(--deep-forest);
  opacity: 0.85;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--moss-green);
  text-decoration: underline;
}

.legal-content .effective-date {
  font-size: 14px;
  color: var(--soft-stone);
  margin-bottom: 32px;
}

/* --- Utility Classes --- */
.bg-sage { background: var(--sage-mist); }
.bg-pale { background: var(--pale-sage); }
.bg-paper { background: var(--paper-white); }
.bg-forest { background: var(--deep-forest); }

.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.max-w-480 { max-width: 480px; }
.max-w-640 { max-width: 640px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-2-55-45 {
    grid-template-columns: 55% 45%;
  }
  .grid-2-45-55 {
    grid-template-columns: 45% 55%;
  }
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Process Steps --- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    align-items: flex-start;
  }
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    border-top: 2px dotted var(--sage-mist);
    z-index: 0;
  }
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--moss-green);
  color: var(--paper-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.process-step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 15px;
  color: var(--deep-forest);
  opacity: 0.85;
}

/* --- Sample Plan Mockup --- */
.sample-plan {
  background: var(--paper-white);
  border: 1px solid var(--sage-mist);
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  transform: rotate(-1deg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sample-plan-header {
  font-size: 13px;
  color: var(--soft-stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.sample-plan h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.sample-plan-map {
  width: 100%;
  height: 200px;
  background: var(--pale-sage);
  border-radius: 8px;
  border: 1px dashed var(--sage-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sample-plan-map span {
  font-size: 14px;
  color: var(--soft-stone);
}

.sample-plan-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.sample-plan-details dt {
  font-size: 13px;
  color: var(--soft-stone);
}

.sample-plan-details dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--deep-forest);
}

.sample-plan-note {
  font-size: 15px;
  color: var(--deep-forest);
  opacity: 0.85;
  font-style: italic;
  padding: 12px;
  background: var(--pale-sage);
  border-radius: 8px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  :root {
    --section-pad: 64px;
  }

  .helix-section {
    height: 50vh;
  }

  .steps-container {
    padding: 32px 20px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .sample-plan {
    transform: none;
  }

  .table-container {
    margin: 0 -24px;
    border-radius: 0;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .cookie-banner,
  .scroll-indicator,
  .helix-section,
  .footer-video {
    display: none !important;
  }

  .site-footer {
    min-height: auto;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
