/* ============================================================
   HANA Kimono Salon — Tokens
   ============================================================ */
:root {
  /* watercolor wash layer */
  --wash-lavender: #D7C7E0;
  --wash-peach:    #F2D9C2;
  --wash-cream:    #FAF3E7;
  --wash-mist:     #EDE7DC;

  /* base */
  --bg-base:       #FAF6EE;
  --bg-paper:      #F6EFE2;
  --surface-card:  rgba(255,255,255,0.93);
  --ink-primary:   #2A2422;
  --ink-sub:       #6E665C;
  --line-hairline: #D9CFBE;

  /* accents */
  --gold:          #C9A961;
  --gold-deep:     #A8842F;
  --gold-soft:     #E4D4A8;
  --accent-sumi:   #1F1A17;
  --accent-aka:    #A8324A;
  --line-green:    #06C755;

  /* type */
  --f-mincho:  "Shippori Mincho", "Noto Serif JP", serif;
  --f-serifjp: "Noto Serif JP", "Shippori Mincho", serif;
  --f-sansjp:  "Noto Sans JP", system-ui, sans-serif;
  --f-en:      "Cormorant Garamond", "Noto Serif", serif;
}

/* paper texture utility — subtle noise via layered radial-gradients */
.paper-bg {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(215,199,224,0.45), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(242,217,194,0.40), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(215,199,224,0.30), transparent 36%),
    radial-gradient(circle at 8% 92%, rgba(242,217,194,0.32), transparent 30%),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.55), transparent 60%);
}
.paper-grain {
  position: relative;
}
.paper-grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.62  0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 横スクロール完全抑止
   (watercolor wash 等の絶対配置装飾が viewport を越えて表示されることで
    起きる右寄りズレを根本的に防ぐ)
   overflow:hidden は position:sticky を壊すため、スクロールコンテナを
   生成しない overflow:clip を使用する (Chrome90+/Firefox81+/Safari16+) */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* page fade-in animation — applied on each route mount */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-enter {
  animation: pageFadeIn 0.65s cubic-bezier(0.22, 0.65, 0.32, 1) both;
}

/* dropdown menu fade-in animation — 下層メニュー表示時のふわっと演出 */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-fade-in {
  animation: dropdownFadeIn 0.28s cubic-bezier(0.22, 0.65, 0.32, 1) both;
  transform-origin: top center;
}

/* image-slot 内の img の corner radius は image-slot.js 側で対応 */

/* ============================================================
   Responsive utilities (mobile-first overrides)
   - inline style で grid-template-columns を持つ要素を 1 列に潰すため
     !important を付ける（インラインスタイルの優先度を上書きする必要がある）
   ============================================================ */
@media (max-width: 768px) {
  /* 共通: 多列グリッドを縦並びに。
     minmax(0,1fr) で列をコンテナ幅まで確実に縮ませる
     （1fr=minmax(auto,1fr) だと nowrap ボタン等の min-content に
       引っ張られて列が膨張し、はみ出す問題を防ぐ）。 */
  .auto-stack {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  /* 2列の比率指定（hero 等）も 1 列に */
  .hero-stack {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  /* デスクトップ専用要素（横並びナビ等） */
  .desktop-only { display: none !important; }
  /* モバイル専用要素（ハンバーガー等） */
  .mobile-only { display: flex !important; }

  /* hero タイトルの強制縮小（whiteSpace: nowrap が指定されたものに対応） */
  .hero-title-jp { font-size: 44px !important; letter-spacing: 0.10em !important; white-space: normal !important; }
  .hero-title-en { font-size: 38px !important; letter-spacing: 0.06em !important; white-space: normal !important; }

  /* セクションパディング縮小 */
  .resp-section { padding: 56px 18px !important; }

  /* image-slot サイズ調整 (heroなど高さ固定のスロット) */
  .resp-slot-h { height: 360px !important; }

  /* PriceTable 等の固定 maxWidth は窮屈なので padding 縮小 */
  .resp-narrow-pad { padding: 10px 16px !important; }

  /* SectionHeader h2 の大きい文字を抑える */
  .resp-section-title { font-size: 28px !important; letter-spacing: 0.10em !important; }
}

/* デフォルト（デスクトップ）: モバイル専用要素は隠す */
.mobile-only { display: none; }

/* ============================================================
   ヘッダー専用ブレークポイント（1200px）
   - デスクトップナビ＋CTAが収まらない中型画面ではハンバーガーに切替える。
   - 日本語版・英語版（英語ラベルはやや幅広）の両方で CTA が確実に収まる閾値。
   - グローバルの .desktop-only / .mobile-only（768px）とは独立。
   ============================================================ */
.hdr-mobile { display: none; }   /* デフォルト=デスクトップではハンバーガー非表示 */
@media (max-width: 1200px) {
  .hdr-desktop { display: none !important; }   /* 横並びナビ・右側CTAを隠す */
  .hdr-mobile  { display: flex !important; }    /* ハンバーガー・モバイルCTAを出す */
}

/* utilities */
.f-mincho { font-family: var(--f-mincho); font-weight: 500; }
.f-mincho-b { font-family: var(--f-mincho); font-weight: 700; }
.f-en { font-family: var(--f-en); letter-spacing: 0.18em; text-transform: uppercase; }
.f-en-it { font-family: var(--f-en); font-style: italic; letter-spacing: 0.10em; }
.f-serif { font-family: var(--f-serifjp); }
.tabnum { font-variant-numeric: tabular-nums; }

/* tiny english caption used everywhere */
.eyebrow {
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
}

.ink { color: var(--ink-primary); }
.sub { color: var(--ink-sub); }

/* link buttons share */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--f-serifjp);
  font-weight: 500;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: 0.92; }
.btn-line {
  background: var(--line-green);
  color: #fff;
  padding: 18px 32px;
  font-size: 18px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px -10px rgba(6,199,85,0.55);
}
.btn-aka {
  background: var(--accent-aka);
  color: #fff;
  padding: 12px 22px;
  font-size: 15px;
  letter-spacing: 0.18em;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-primary);
  padding: 16px 28px;
  font-size: 16px;
  letter-spacing: 0.18em;
  border-color: var(--line-hairline);
}
.btn-white {
  background: #fff;
  color: var(--ink-primary);
  padding: 14px 26px;
  font-size: 15px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line-hairline);
}

/* hairline + ornament wrapper */
.rule-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  color: var(--gold);
}
.rule-row .line {
  height: 1px; width: 56px;
  background: var(--gold);
  opacity: 0.7;
}

/* card */
.plan-card {
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  border-radius: 14px;
  padding: 36px 22px 28px;
  position: relative;
  display: flex; flex-direction: column;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
  backdrop-filter: blur(2px);
}
.plan-card:hover {
  transform: rotate(0.5deg) translateY(-2px);
  box-shadow: 0 18px 36px -22px rgba(42,36,34,0.25);
}
.plan-card.featured {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 22px 42px -26px rgba(168,132,47,0.40);
}
.plan-card.featured:hover {
  transform: translateY(-10px) rotate(0.5deg);
}
.ribbon {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold-deep);
  color: #fff;
  font-family: var(--f-mincho);
  font-size: 14px;
  letter-spacing: 0.22em;
  padding: 6px 18px;
  border-radius: 2px;
  white-space: nowrap;
}
.ribbon::before, .ribbon::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 8px;
  background: inherit;
}
.ribbon::before { left: -8px; clip-path: polygon(100% 0,100% 100%,0 50%); }
.ribbon::after  { right: -8px; clip-path: polygon(0 0,0 100%,100% 50%); }

/* feature list rows (◇ gold diamond) */
.feat-list {
  list-style: none; padding: 0; margin: 0;
  text-align: left;
  font-family: var(--f-serifjp);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-primary);
}
.feat-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px dashed var(--line-hairline);
}
.feat-list li:last-child { border-bottom: 0; }
.feat-list li::before {
  content: "◇";
  position: absolute; left: 0; top: 10px;
  color: var(--gold);
  font-size: 13px;
}

/* gold rule for notice block */
.notice {
  position: relative;
  background: linear-gradient(180deg, #FCEBDB 0%, #F8E0CB 100%);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  padding: 26px 32px;
  font-family: var(--f-serifjp);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-primary);
}

/* watercolor wash background — used as absolute layer */
.wash-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
