/* ============================================================
   やどサイト LP — Retra Design System (retra.jp 準拠)
   - フォント：Outfit + Zen Kaku Gothic New + Noto Sans JP
   - カラー：warm-gray/beige + gold(#fed061) / gold-dark(#ffa933)
   - 角丸：8 / 16 / 24 / 96(pill)
   - イージング：cubic-bezier(0.4, 0.4, 0, 1)
   ============================================================ */

:root {
  /* Colors (retra.jp と同じ) */
  --dark: #242528;
  --dark-muted: rgba(36, 37, 40, 0.7);
  --dark-soft: rgba(36, 37, 40, 0.55);
  --dark-hover: rgba(36, 37, 40, 0.1);
  --line: rgba(36, 37, 40, 0.08);
  --warm-gray: #f0efef;
  --warm-beige: #f1ebe5;
  --warm-beige-2: #ece5d8;
  --white: #ffffff;
  --gold: #fed061;
  --gold-dark: #ffa933;
  --gold-soft: rgba(254, 208, 97, 0.18);
  --peach: #f9e2ca;
  --icon-gray: #333;

  /* 互換用エイリアス（旧変数名を使っている箇所があるため残す） */
  --bg: var(--warm-beige);
  --bg-2: var(--warm-gray);
  --text: var(--dark);
  --muted: var(--dark-muted);
  --gold-2: var(--gold-dark);
  --gold-3: var(--gold);
  --charcoal: var(--dark);
  --charcoal-2: var(--dark);

  /* Typography */
  --font-heading: "Outfit", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Outfit", "Noto Sans JP", sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-logo: "MuseoModerno", sans-serif;
  --serif: var(--font-heading); /* 旧コード互換 */
  --sans: var(--font-body);

  /* Layout */
  --content-padding: 40px;
  --section-gap: 40px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 96px;
  --radius: var(--radius-lg);

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(45, 36, 24, 0.05);
  --shadow: 0 18px 48px rgba(45, 36, 24, 0.08);
  --shadow-lg: 0 32px 80px rgba(45, 36, 24, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0.4, 0, 1);
  --ease-default: cubic-bezier(0.4, 0.4, 0, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.19, 1, 0.22, 1);
  --duration: 300ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--dark);
  background: var(--warm-beige);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: opacity var(--duration) var(--ease); }
a:hover { opacity: 0.7; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.container.narrow { width: min(920px, calc(100% - 48px)); }
.sp-only { display: none; }
.pc-only { display: inline; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 239, 239, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
/* タグラインバー（ヘッダー下、ヒーロー上の目立つ帯） */
.tagline-bar {
  background: var(--gold);
  color: var(--dark);
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(36,37,40,0.10);
}
.tagline-bar p {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.header-inner {
  height: 68px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--dark);
}
.desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.desktop-nav a { color: var(--dark-muted); transition: color .25s var(--ease); position: relative; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.desktop-nav a:hover { color: var(--dark); opacity: 1; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-cta {
  background: var(--gold);              /* 公式サイトと同じ黄色 #fed061 */
  color: var(--dark);
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.header-cta:hover { background: var(--gold-dark); color: var(--dark); opacity: 1; }
.menu-button,
.mobile-nav { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  color: var(--dark);
  background: var(--warm-beige);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 88% 18%, rgba(254,208,97,0.42), transparent 58%),
    radial-gradient(800px 600px at 12% 92%, rgba(249,226,202,0.55), transparent 60%),
    linear-gradient(160deg, var(--warm-beige) 0%, var(--warm-gray) 55%, var(--peach) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-glow {
  position: absolute;
  right: -10%;
  top: -12%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(254,208,97,0.45) 0%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  min-height: 620px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
}
.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-kicker { background: var(--gold-soft); border-color: rgba(254,208,97,0.40); }

/* 見出しはすべて sans (Outfit + Zen Kaku Gothic New) */
/* 日本語の禁則処理：句読点と <br> の位置でだけ改行する */
.hero h1,
.section-heading h2,
.price-card h2,
.final-copy h2,
.company-card h2,
.message-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--dark);
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 24px;
  font-weight: 700;
  line-height: 1.45;
}
.hero-copy { min-width: 0; max-width: 100%; position: relative; z-index: 2; }
.hero-lead {
  font-size: 16px;
  color: var(--dark-muted);
  margin: 0 0 32px;
  line-height: 2;
  font-family: var(--font-jp);
  font-weight: 500;
}
.hero-lead strong { color: var(--dark); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-left: 0;
}
.hero-meta li { display: grid; gap: 8px; }
.hero-meta strong {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5.5vw, 76px);   /* 約2倍に拡大 */
  color: var(--dark);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-meta strong span {
  font-family: var(--font-jp);
  font-size: 19px;                        /* 「円〜」「営業日〜」を1.2倍に拡大 */
  font-weight: 700;
  color: var(--gold-dark);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.hero-meta small {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--dark-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}
/* 「業界最安水準」「最短」のさりげない強調 */
.hero-meta small em {
  font-style: normal;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(180deg, transparent 60%, var(--gold-soft) 60%);
  padding: 0 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
  cursor: pointer;
}
.btn:hover { opacity: 1; }
.btn.primary {
  background: var(--gold);              /* 公式と統一の黄色 #fed061 */
  color: var(--dark);
  border-color: var(--gold);
}
.btn.primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--dark); }
.btn.ghost-light {
  color: var(--dark);
  background: var(--white);
  border-color: rgba(36,37,40,0.18);
}
.btn.ghost-light:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn.large { min-height: 60px; padding-inline: 36px; font-size: 15px; }
.btn.full { width: 100%; border: 0; }

/* ============================================================
   Hero device visual — 完成版 PNG（PC + スマホUIあり）を表示
   ============================================================ */
.device-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.devices-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-right: -40px;
  transform: scale(1.2);
  transform-origin: 100% 50%;     /* 右中央を起点にスケール（右寄せのまま左に伸びる） */
}
.devices-frame {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   Promise (3 約束)
   ============================================================ */

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding: 110px 0; }
.section-heading { margin-bottom: 56px; }
.section-heading.centered { text-align: center; }
.section-heading h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  margin: 0;
  font-weight: 700;
}
.section-heading .serif-em {
  font-family: var(--font-heading);
  font-style: normal;
  color: var(--gold-dark);
  font-weight: 700;
}
.section-lead {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  font-weight: 500;
}
.section-lead strong { color: var(--gold-dark); font-weight: 700; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   LP Samples — 右から左へ流れる無限マーキー
   ============================================================ */
.samples {
  padding: 56px 0;
  background: var(--warm-beige);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.samples-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.samples-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.samples-track li {
  flex: 0 0 auto;
  margin-right: 24px;       /* gap ではなく margin-right に統一して50%translateの境界を整合 */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.samples-track img {
  display: block;
  height: 360px;
  width: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.samples-marquee:hover .samples-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .samples-track { animation: none; transform: translateX(0); }
}
@media (max-width: 640px) {
  .samples { padding: 40px 0; }
  .samples-track li { margin-right: 16px; }
  .samples-track img { height: 240px; }
}

/* Problem */
.problem { background: linear-gradient(180deg, var(--warm-beige) 0%, var(--white) 100%); }
/* 日本語のkicker / eyebrow — 全セクション統一スタイル（1.5倍サイズ） */
.section-kicker.is-jp,
.eyebrow.is-jp {
  font-family: var(--font-jp);
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: none;
  padding: 11px 28px;
}
/* H2 modifier（旧 1.5倍 → 元のセクション見出しサイズに揃える） */
.h2-large { font-size: clamp(28px, 3.2vw, 40px) !important; line-height: 1.5 !important; }
/* 3カードと「予約の流れ」カードを縦に分離。flow-cardは3カードと同じ全幅 */
.problem-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.problem-layout .flow-card {
  width: 100%;
  max-width: none;
}
/* カード番号 01/02/03 を約2倍サイズに */
.problem-card .card-number {
  font-size: 26px;
  display: block;
  margin-bottom: 4px;
}
.problem-card { padding: 30px; min-height: 260px; }
.card-number {
  font-family: var(--font-heading);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.problem-card h3,
.feature-card h3,
.template-body h3,
.step h3,
.recommend-card h3 {
  line-height: 1.6;
  margin: 10px 0 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.problem-card p,
.feature-card p,
.template-body p,
.step p,
.recommend-card p {
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.95;
  margin: 0;
  font-weight: 500;
}
.problem-card p strong { color: var(--gold-dark); font-weight: 700; }
/* コインの山が 4→3→2→1 と減っていくイラスト（利益減少を可視化） */
.icon.coins {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 76px;
}
.coin-stack {
  width: 18px;
  background-image: radial-gradient(circle, var(--gold) 0 46%, transparent 48%);
  background-size: 18px 14px;
  background-repeat: repeat-y;
  background-position: bottom;
  border-radius: 2px;
}
.coin-stack[data-count="4"] { height: 56px; }
.coin-stack[data-count="3"] { height: 42px; }
.coin-stack[data-count="2"] { height: 28px; }
.coin-stack[data-count="1"] { height: 14px; }
.coin-arrow {
  color: var(--gold-dark);
  font-size: 32px;
  line-height: 1;
  margin-left: 2px;
  align-self: flex-end;
}
/* PCモニタとスマホをはっきり分けて並べる */
.icon.monitor {
  width: 88px; height: 64px;
  margin-top: 51px;            /* 02カード内の他要素と高さを揃える微調整 */
  margin-right: 64px;          /* 右側にスマホ用のスペース */
  border: 6px solid #cfc6b6;
  border-radius: 8px;
  position: relative;
  background: var(--warm-gray);
}
.icon.monitor::before {
  /* モニタ台座 */
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  transform: translateX(-50%);
  width: 36px; height: 4px;
  background: #cfc6b6;
  border-radius: 0 0 4px 4px;
}
.icon.monitor::after {
  /* スマホ（PC の右隣に独立配置） */
  content: "!";
  position: absolute;
  right: -54px; bottom: -2px;
  width: 32px; height: 52px;
  border: 4px solid #cfc6b6;
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  color: var(--gold-dark);
}
.source-icons { display: flex; gap: 10px; margin-top: 34px; }
.source-icons span,
.data-icons span {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  background: var(--gold-soft); color: var(--gold-dark);
  letter-spacing: 0.04em;
}
.flow-card { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.flow-title {
  text-align: center;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.flow-items { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-items div { text-align: center; }
.flow-icon {
  width: 54px; height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--white);
  color: var(--dark);
}
.flow-items small {
  display: block;
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 11px;
}
.flow-note {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Features */
.features { background: var(--white); }
.feature-card { padding: 28px; }
.feature-visual {
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--warm-gray);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-visual.photo {
  background: linear-gradient(180deg, var(--warm-beige) 0%, var(--warm-gray) 100%);
  padding: 16px;
}
.feature-visual.photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
/* MacBook（横長 1.6:1）— 幅100%で配置 */
.feature-visual.photo-lg img { width: 100%; }
/* MEOバッジ画像（中央のラベル群） */
.feature-visual.photo-md > img[src*="meo"] { width: 90%; height: auto; }
/* CTAボタン画像（横長） */
.feature-visual.photo-md > img[src*="cta"] { width: 90%; height: auto; }
/* iPhone（縦長）— 他カードの視覚ボリュームに合わせて高さを抑制 */
.feature-visual.photo-md > img[src*="iphone"] { height: 70%; width: auto; }
.wireframe {
  background-image:
    linear-gradient(#dad4c5 16px, transparent 16px),
    linear-gradient(90deg, #e7e0d1 1px, transparent 1px);
  background-size: 80% 34px, 28px 28px;
  background-position: 18px 22px, 0 0;
}
.cta-wire { display: grid; place-items: center; }
.data-icons { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-wire {
  width: 82px; margin-inline: auto;
  border: 8px solid #d6cfc1;
  background-image: linear-gradient(#e6dfcf 12px, transparent 12px);
  background-size: 100% 28px;
}
.connection-card { margin-top: 36px; padding: 30px; text-align: center; }
.connection-card > p {
  margin: 0 0 32px;
  color: var(--gold-dark);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  font-size: 32px;
  line-height: 1.5;
}
.connection-flow { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.connection-flow div { display: grid; gap: 8px; place-items: center; }
.connection-flow small {
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 11px;
}
.mini-photo {
  width: 92px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  background: var(--warm-gray);
}
.mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.pin, .ig {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 30px; color: var(--white);
  background: var(--gold-dark);
  overflow: hidden;
}
.pin {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 4px;
}
.pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ig {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 4px;
}
.ig img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   Templates
   ============================================================ */
.templates { background: var(--warm-gray); }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 8px; }
.template-card { overflow: hidden; }
.template-image {
  position: relative;
  height: 260px;
  display: block;
  color: var(--white);
  font-weight: 700;
  overflow: hidden;
}
.template-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.template-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.20em;
  background: rgba(36,37,40,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.template-image.luxury {
  background:
    linear-gradient(160deg, rgba(0,0,0,0.10), rgba(0,0,0,0.55)),
    radial-gradient(circle at 70% 30%, rgba(254,208,97,0.35), transparent 55%),
    linear-gradient(145deg, #1a1814 0%, #3d2c1c 45%, #14110d 100%);
}
.template-image.poetic {
  background:
    linear-gradient(160deg, rgba(80,60,40,0.20), rgba(80,60,40,0.55)),
    linear-gradient(145deg, #d8c8ad 0%, #f5ecdf 38%, #786350 100%);
}
.template-image.casual {
  background:
    linear-gradient(160deg, rgba(50,70,40,0.10), rgba(50,70,40,0.42)),
    linear-gradient(145deg, var(--peach) 0%, #fff5e6 35%, #8aa979 100%);
}
.template-preview {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-eyebrow {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.20em;
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}
.tp-title {
  font-family: var(--font-jp);
  font-size: 22px;
  line-height: 1.45;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.30);
}
.tp-btn {
  align-self: flex-start;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36,37,40,0.20);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tp-btn:hover { background: var(--gold-dark); color: var(--white); }
.tp-btn.light { background: rgba(255,255,255,0.92); color: var(--dark); }
.tp-btn.casual-btn { background: var(--gold-dark); color: var(--white); }

.template-body { padding: 26px 28px 28px; background: var(--white); }
.label {
  color: var(--gold-dark) !important;
  font-family: var(--font-heading);
  font-size: 11px !important;
  font-weight: 700;
  margin: 0 0 6px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   Before / After
   ============================================================ */
.before-after { background: var(--white); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}
.ba-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ba-card.before { background: var(--warm-gray); }
.ba-card.after { background: linear-gradient(160deg, var(--white) 0 50%, var(--gold-soft)); }
.ba-label {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  background: var(--dark-hover);
  color: var(--dark-muted);
  text-transform: uppercase;
}
.ba-card.after .ba-label { background: var(--gold-dark); color: var(--white); }
.ba-mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-mock-bar { height: 22px; background: #ddd5c4; border-radius: 6px; width: 30%; }
.ba-mock-line { height: 8px; background: #e6dfcf; border-radius: 4px; }
.ba-mock-line.w70 { width: 70%; }
.ba-mock-line.w50 { width: 50%; }
.ba-mock-line.w80 { width: 80%; }
.ba-mock-line.w40 { width: 40%; }
.ba-mock-line.w60 { width: 60%; }
.ba-mock-note {
  margin: 14px 0 0;
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--dark-muted);
  line-height: 1.7;
  font-weight: 500;
}
.ba-mock { align-items: center; }
.ba-mock.after-mock { gap: 12px; }
.before-devices-img,
.after-devices-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-mock-hero {
  height: 88px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(0,0,0,0.10), rgba(0,0,0,0.50)),
    linear-gradient(135deg, #2a3826 0%, #6b4d2c 70%, #1a1410 100%);
}
.ba-mock-cta {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.ba-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.ba-mock-cards > div {
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--peach), #f0d9b8);
}
.ba-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ba-points li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--dark-muted);
  line-height: 1.75;
  font-weight: 500;
}
.ba-card.before .ba-points li::before {
  content: "×";
  position: absolute; left: 4px; top: 0;
  color: #c4654a;
  font-weight: 900;
}
.ba-card.after .ba-points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold-dark);
  font-weight: 900;
}
.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ba-arrow span {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--gold-dark);
  line-height: 1;
  font-weight: 700;
}
.ba-arrow small {
  font-family: var(--font-jp);
  font-size: 10px;
  color: var(--dark-muted);
  font-weight: 700;
  letter-spacing: 0.10em;
}

/* ============================================================
   Process
   ============================================================ */
.process { background: linear-gradient(180deg, var(--white) 0%, var(--warm-beige) 100%); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  margin-top: 8px;
}
.timeline.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}
.step { position: relative; text-align: center; padding: 10px 18px 0; }
.step-icon {
  position: relative;
  z-index: 1;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.step span {
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================
   Price
   ============================================================ */
.price { background: var(--warm-beige); }
.price-card {
  padding: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, var(--white) 0 70%, var(--gold-soft));
}
.price-card h2 { margin: 0 0 12px; font-size: 28px; }
.price-number {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.price-number span {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-left: 6px;
}
.price-tax {
  margin: 5px 0 0;            /* 数字との余白を詰める */
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.price-sub {
  margin: 12px 0 0;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--dark-muted);
  line-height: 1.85;
  font-weight: 500;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  align-items: start;
}
.check-list.single { grid-template-columns: 1fr; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.75;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  color: var(--gold-dark); font-weight: 900; font-size: 16px;
}
.note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--dark-muted);
  margin: 0;
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 500;
}
.note.small { font-size: 11px; opacity: 0.8; }
.options-card .note { margin-top: 24px; }

/* Options card */
.options-card {
  margin-top: 28px;
  padding: 40px;
  background: var(--white);
}
.options-title {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--dark);
}
.options-title .label { margin: 0 !important; }
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.option {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  display: grid;
  gap: 8px;
  transition: border-color .25s var(--ease), transform .35s var(--ease-out), background .25s var(--ease);
}
.option:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--white), var(--gold-soft));
}
.option h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.option p {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 12.5px;
  color: var(--dark-muted);
  line-height: 1.85;
  font-weight: 500;
}
.option-price {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}

/* ============================================================
   Recommended
   ============================================================ */
.recommended { background: var(--white); }
.recommend-card { padding: 32px 26px; text-align: center; }
.recommend-icon {
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 32px;
  font-weight: 700;
}
.recommend-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--warm-beige); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold-dark);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-size: 13px;
  line-height: 1.95;
  font-weight: 500;
}

/* ============================================================
   Trust
   ============================================================ */
.trust { background: var(--white); }
.trust-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; }
.company-card,
.message-card { padding: 38px; }
.company-card {
  min-height: 320px;
  background: linear-gradient(135deg, var(--white) 0 56%, var(--gold-soft));
}
.script {
  font-family: var(--font-logo);
  color: var(--gold-dark);
  font-size: 28px;
  font-weight: 500;
  margin: 32px 0 0;
  letter-spacing: 0.02em;
}
.message-card { display: block; }
.message-card p {
  color: var(--dark-muted);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 2;
  font-weight: 500;
}
.signature {
  color: var(--dark) !important;
  font-weight: 700;
  font-family: var(--font-heading);
}
.portrait {
  width: 180px; height: 230px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 30%, var(--peach) 0 12%, transparent 13%),
    linear-gradient(180deg, var(--warm-beige-2) 0 45%, var(--dark) 46% 100%);
}

/* ============================================================
   Final CTA — 公式と統一感を出すためダーク系背景は維持しつつ
   ゴールドはブランドの黄系（#fed061 / #ffa933）に
   ============================================================ */
.final-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 110px 0;
  isolation: isolate;
  background: var(--dark);
}
.final-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 80% 18%, rgba(254,208,97,0.32), transparent 60%),
    radial-gradient(700px 500px at 18% 88%, rgba(255,169,51,0.18), transparent 60%),
    linear-gradient(135deg, var(--dark) 0%, #2c2924 60%, #1a1815 100%);
}
.final-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(254,208,97,0.18), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06), transparent 28%);
}
.final-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.40;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.final-copy .eyebrow {
  background: rgba(254,208,97,0.14);
  border-color: rgba(254,208,97,0.36);
  color: var(--gold);
}
.final-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 24px;
  line-height: 1.5;
  color: var(--white);
}
.final-lead {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  margin: 0 0 32px;
  font-weight: 500;
}
.final-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.final-cta .btn.primary { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.final-cta .btn.primary:hover { background: var(--white); border-color: var(--white); color: var(--dark); }
.final-cta .btn.ghost-light { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.36); backdrop-filter: blur(8px); }
.final-cta .btn.ghost-light:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.contact-form {
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-muted);
  display: grid;
  gap: 6px;
  letter-spacing: 0.04em;
}
.required-badge {
  font-family: var(--font-jp);
  font-size: 9px;
  background: var(--gold-dark);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(36,37,40,0.14);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  font-family: var(--font-jp);
  font-size: 14px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 4px var(--gold-soft); }
.contact-form input.error,
.contact-form textarea.error { border-color: #d65a3a; background: rgba(214, 90, 58, 0.04); }
.form-note {
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--dark-muted);
  text-align: center;
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: var(--white); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-logo {
  color: var(--white);
  font-family: var(--font-logo);
  font-weight: 500;
}
.footer-logo .tm {
  font-family: var(--font-heading);
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: super;
  margin-left: 2px;
  opacity: 0.85;
}
.site-footer p {
  color: rgba(255,255,255,0.62);
  margin: 8px 0 0;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.socials a:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); opacity: 1; }
.footer-links {
  justify-self: end;
  display: flex;
  gap: 22px;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-jp);
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.footer-links a { transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--gold); opacity: 1; }
.copyright {
  text-align: center;
  margin-top: 32px !important;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.62);
}

/* ============================================================
   Success Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 40px 90px rgba(45, 36, 24, 0.32);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .25s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-content { transform: translateY(0) scale(1); opacity: 1; }
.modal-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-heading);
}
.modal-content h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.modal-content p {
  margin: 0 0 24px;
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.85;
  color: var(--dark-muted);
  font-weight: 500;
}

/* ============================================================
   Animations
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: .12s; }
.fade-up.delay-2 { transition-delay: .24s; }
.fade-up.delay-3 { transition-delay: .36s; }
.fade-up.delay-4 { transition-delay: .48s; }

/* ヒーロー専用：自動再生で順次フェードイン（JSタイミング非依存・初回ロードでフリッカーなし） */
.hero .fade-up {
  animation: heroRise 1.1s var(--ease-out) both;
  transition: none;
}
.hero .fade-up.delay-1 { animation-delay: .15s; }
.hero .fade-up.delay-2 { animation-delay: .30s; }
.hero .fade-up.delay-3 { animation-delay: .50s; }
.hero .fade-up.delay-4 { animation-delay: .70s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .fade-up { animation: none; opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .btn:hover, .header-cta:hover, .socials a:hover, .card:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: block; margin-left: auto; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--dark); }
  .mobile-nav { display: none; padding: 0 24px 20px; background: var(--white); border-top: 1px solid var(--line); }
  .mobile-nav.is-open { display: grid; gap: 12px; font-family: var(--font-jp); }
  .hero-grid, .problem-layout, .price-card, .trust-grid, .final-grid { grid-template-columns: 1fr; }
  .device-stage { justify-content: center; }
  .devices-wrap { margin-right: 0; max-width: 540px; }
  .cards.three, .cards.four, .template-grid, .timeline, .timeline.five, .faq-grid, .options-grid { grid-template-columns: 1fr 1fr; }
  .message-card { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); padding: 12px 0; }
}
@media (max-width: 640px) {
  .container, .container.narrow, .header-inner { width: min(100% - 32px, 1120px); }
  .sp-only { display: block; }
  .pc-only { display: none; }
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding: 72px 0 60px; gap: 36px; }
  .hero-meta { grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding-top: 16px; margin-top: 32px; }
  .hero-meta strong { font-size: 22px; }
  .hero-meta strong span { font-size: 11px; }
  .hero-meta small { font-size: 10px; }
  .hero-actions, .final-buttons { flex-direction: column; align-items: stretch; }
  .devices-wrap { max-width: 100%; }
  .promise { padding: 40px 0; }
  .cards.three, .cards.four, .template-grid, .timeline, .timeline.five, .faq-grid, .options-grid { grid-template-columns: 1fr; }
  .options-card { padding: 28px 22px; }
  .price-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .connection-flow, .flow-items { flex-wrap: wrap; }
  .check-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-self: center; flex-direction: column; gap: 10px; }
  .socials { justify-content: center; }
  .template-image { height: 220px; }
  .tp-title { font-size: 19px; }
}

/* ============================================================
   Legal pages (privacy / tokushoho / credits) shared
   ============================================================ */
.legal { padding: 120px 0 80px; background: var(--warm-beige); }
.legal h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 32px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--dark);
}
.legal h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 40px 0 16px;
  font-weight: 700;
  color: var(--dark);
}
.legal p, .legal li {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.95;
  color: var(--dark-muted);
  font-weight: 500;
}
.legal ul { padding-left: 1.5em; list-style: disc; margin-bottom: 16px; }
.legal ul li { margin-bottom: 8px; }
.legal-meta {
  font-size: 13px;
  color: var(--dark-muted);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal a { color: var(--gold-dark); text-decoration: underline; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.legal-table th, .legal-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  line-height: 1.85;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  background: var(--warm-gray);
  font-family: var(--font-heading);
  font-weight: 700;
  width: 220px;
  color: var(--dark);
}
.legal-table td { color: var(--dark-muted); font-family: var(--font-jp); font-weight: 500; }
.credits-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.credit-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.85;
  color: var(--dark-muted);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
.credit-item strong { color: var(--dark); font-family: var(--font-heading); font-weight: 700; }

@media (max-width: 640px) {
  .legal { padding: 80px 0 60px; }
  .legal-table th, .legal-table td { display: block; width: 100%; padding: 12px 16px; }
  .legal-table th { border-bottom: none; padding-bottom: 4px; }
  .legal-table td { padding-top: 0; padding-bottom: 16px; }
}
