/*
 * Xtend 公開サイト（LP / ガイド / 規約）共通スタイル。
 * frontend/design-system/tokens.css のトークンを踏襲（ネイビー基調・ティール主要アクセント・
 * ゴールドは限定使用）。アプリ本体と同じ見え方にして「動いてるツール」の信頼感をそのまま持ち込む。
 * 2026-09-30: ガイド・規約ページは body.lp.doc（明るい地）で使う。ヘッダー/フッターは lp.css 側。
 * 末尾の「本文ライト化」ブロックが、ダーク前提のトークンを明るい地用に上書きする。
 */

:root {
  /* ネイビー基調（背景・面） */
  --navy-900: #070d1a;
  --navy-850: #0b1526;
  --navy-800: #0f1c33;
  --navy-700: #16263f;
  --navy-600: #1e3350;

  /* ティール（プライマリ・アクセント） */
  --teal-500: #2fb6ab;
  --teal-400: #45c7bc;
  --teal-300: #6fd8ce;
  --teal-glow: rgba(69, 199, 188, 0.28);

  /* ゴールド（限定使用：価格・重要CTAのみ） */
  --gold-500: #c9a75a;
  --gold-400: #d9bd76;

  /* テキスト */
  --text-strong: #f3f7fb;
  --text: #dbe4ef;
  --text-muted: #9fb0c4;
  --text-faint: #6f8199;

  /* ステータス */
  --ok: #46c78a;
  --warn: #e0b74e;
  --danger: #e5715f;

  /* ガラス面 */
  --glass-bg: rgba(22, 38, 63, 0.55);
  --glass-bg-strong: rgba(22, 38, 63, 0.78);
  --glass-border: rgba(146, 178, 214, 0.18);
  --glass-shadow: 0 12px 32px rgba(2, 8, 20, 0.45);
  --glass-blur: 18px;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 30px;
  --space-6: 44px;
  --space-7: 64px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Segoe UI", Roboto, sans-serif;

  --content-max: 1080px;
  --content-narrow: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(69, 199, 188, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(201, 167, 90, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy-850), var(--navy-900));
  background-attachment: fixed;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--teal-300);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow {
  max-width: var(--content-narrow);
}

/* ヘッダー・フッターは lp.css（header.site-header / footer.site-footer）を共通で使う。ここには定義しない。 */

/* ── 汎用ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
  color: #04211d;
  box-shadow: 0 14px 30px var(--teal-glow);
}
.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--teal-400);
  color: var(--text-strong);
}
.btn-block {
  width: 100%;
}

/* ── セクション共通 ── */
section {
  padding: var(--space-7) 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--teal-300);
  font-weight: 700;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 var(--space-3);
}
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-5);
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── カード / ガラス面 ── */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--glass-shadow);
}
.card-strong {
  background: var(--glass-bg-strong);
}

/* ── ヒーロー ── */
.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-line1 {
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.hero-line1 .quote-mark {
  color: var(--teal-300);
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin-bottom: var(--space-3);
}
.hero .lead {
  font-size: 1.08rem;
  margin-bottom: var(--space-4);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-3);
}
.hero-note {
  font-size: 0.85rem;
  color: var(--text-faint);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px 12px;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}

/* ── チャット→予約 デモ図（実写でなく概念図として明示） ── */
.demo-figure {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  padding: var(--space-4);
  box-shadow: var(--glass-shadow);
}
.demo-figure .demo-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
}
.chat-window {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
.chat-window .chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--glass-border);
}
.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.6;
}
.bubble.me {
  margin-left: auto;
  background: var(--teal-500);
  color: #04211d;
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  background: var(--navy-700);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  margin: var(--space-2) 0;
  font-size: 0.78rem;
  gap: 6px;
}
.schedule-list {
  background: var(--navy-800);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.schedule-list .sched-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}
.sched-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--glass-border);
  font-size: 0.85rem;
}
.sched-item:first-of-type {
  border-top: none;
}
.sched-item .sched-time {
  color: var(--teal-300);
  font-weight: 700;
  white-space: nowrap;
  min-width: 68px;
}
.sched-item .sched-tag {
  display: inline-block;
  font-size: 0.68rem;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 6px;
}

/* ── グリッド（できること 等） ── */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(69, 199, 188, 0.14);
  color: var(--teal-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.feature-card h3 {
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ── 前提3つ / ステップ ── */
.step-card {
  display: flex;
  flex-direction: column;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 1px solid var(--glass-border);
  color: var(--teal-300);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

/* ── できない/注意 の帯 ── */
.callout {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  font-size: 0.92rem;
}
.callout-info {
  background: rgba(69, 199, 188, 0.08);
  border-color: rgba(69, 199, 188, 0.3);
}
.callout-warn {
  background: rgba(224, 183, 78, 0.08);
  border-color: rgba(224, 183, 78, 0.35);
}
.callout-no {
  background: rgba(229, 113, 95, 0.08);
  border-color: rgba(229, 113, 95, 0.32);
}
.callout .callout-title {
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* ── 料金 ── */
.price-card {
  border: 1px solid rgba(201, 167, 90, 0.4);
  background: linear-gradient(160deg, rgba(201, 167, 90, 0.08), var(--glass-bg-strong));
  text-align: center;
  padding: var(--space-5) var(--space-4);
}
.price-card .price-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold-400);
  border: 1px solid rgba(201, 167, 90, 0.45);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: var(--space-3);
  font-weight: 700;
}
.price-card .amount {
  font-size: clamp(2.2rem, 7vw, 3rem);
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-card .amount small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-arrow {
  text-align: center;
  color: var(--text-faint);
  margin: var(--space-3) 0;
  font-size: 0.9rem;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.price-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-3) 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-strong);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--teal-300);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item .faq-a {
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-size: 0.94rem;
}

/* ── 最終CTA ── */
.final-cta {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  padding: var(--space-6) var(--space-4);
}

/* ── ガイド専用レイアウト ── */
.guide-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: 84px;
  font-size: 0.86rem;
}
.guide-toc .toc-title {
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.guide-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.guide-toc li {
  counter-increment: toc;
  margin-bottom: 4px;
}
.guide-toc a {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
}
.guide-toc li a::before {
  content: counter(toc);
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 14px;
}
.guide-toc a:hover {
  background: var(--glass-bg);
  color: var(--text-strong);
  text-decoration: none;
}
.guide-toc-mobile {
  display: none;
}

.guide-section {
  scroll-margin-top: 84px;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--glass-border);
}
.guide-section:last-child {
  border-bottom: none;
}
.guide-section .sec-num {
  color: var(--teal-300);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.gpt-say {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--navy-800);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
}
.gpt-say .gpt-say-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--teal-300);
  font-weight: 700;
  margin-bottom: 6px;
}
.gpt-say p {
  color: var(--text-strong);
  font-size: 0.95rem;
  margin: 0;
}
.gpt-say p + p {
  margin-top: 6px;
}
.shot {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  margin: var(--space-3) 0;
}
.shot img {
  width: 100%;
}
.shot figcaption {
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-faint);
  background: var(--navy-800);
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: var(--space-3) 0;
}
table.spec-table th,
table.spec-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}
table.spec-table th {
  color: var(--text-faint);
  font-weight: 600;
  white-space: nowrap;
}
code,
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(146, 178, 214, 0.12);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.86em;
  color: var(--teal-300);
}

/* ── 法務ページ ── */
.legal-body h2 {
  font-size: 1.1rem;
  margin-top: var(--space-5);
  padding-left: 12px;
  border-left: 3px solid var(--teal-400);
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
  font-size: 0.92rem;
}
.legal-body table th,
.legal-body table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}
.legal-body table th {
  width: 32%;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-toc {
    display: none;
  }
  .guide-toc-mobile {
    display: block;
    position: sticky;
    top: 62px;
    z-index: 20;
    background: rgba(7, 13, 26, 0.94);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-4);
  }
  .guide-toc-mobile summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-strong);
    font-size: 0.9rem;
  }
  .guide-toc-mobile ol {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0;
    counter-reset: toc;
  }
  .guide-toc-mobile li {
    counter-increment: toc;
    margin-bottom: 2px;
  }
  .guide-toc-mobile a {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    padding: 8px 6px;
    font-size: 0.86rem;
  }
  .guide-toc-mobile a::before {
    content: counter(toc);
    color: var(--text-faint);
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  section {
    padding: var(--space-6) 0;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .shot-row {
    grid-template-columns: 1fr;
  }
  .price-card .amount {
    font-size: 2.2rem;
  }
}

/* ── 本文ライト化（ガイド・規約：body.doc）2026-09-30 ──
 * lp.css（ヘッダー・フッター・トークン）と併用。site.css のダーク前提の色トークンを、
 * 明るい地・濃紺の見出しに差し替える。本文のクラス構成は変えない。 */
body.doc {
  --text-strong: #16243A;
  --text: #2B3A4E;
  --text-muted: #5C6B7D;
  --text-faint: #5C6B7D;
  --teal-300: #17777A;
  --teal-400: #1E8F8E;
  --teal-500: #1E8F8E;
  --teal-glow: rgba(30, 143, 142, 0.18);
  --gold-400: #7A5300;
  --navy-800: #EEF6F7;
  --navy-700: #E3F3F5;
  --glass-bg: #FFFFFF;
  --glass-bg-strong: #FFFFFF;
  --glass-border: #D9E6E8;
  --glass-shadow: 0 10px 30px rgba(22, 36, 58, 0.08);
  overflow-x: hidden;
}
body.doc main p { margin: 0 0 var(--space-3); }
body.doc main h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin: 0 0 var(--space-3); line-height: 1.4; }
body.doc main h2 { margin: 0 0 var(--space-3); line-height: 1.5; }
body.doc main h3 { margin: 0 0 var(--space-2); line-height: 1.5; }
body.doc main a:not(.btn) { color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; }
body.doc main a:not(.btn):hover { color: var(--navy); }
body.doc main .eyebrow { display: block; margin-bottom: var(--space-2); }
body.doc main .lead { color: var(--muted); }
body.doc main code, body.doc main .mono { background: var(--aqua-2); color: var(--teal-d); }
body.doc main .guide-toc a, body.doc main .guide-toc-mobile a { color: var(--muted); text-decoration: none; }
body.doc main .guide-toc a:hover { background: var(--aqua-2); color: var(--navy); }
body.doc .guide-toc { top: 88px; }
body.doc .guide-section { scroll-margin-top: 88px; }
body.doc .guide-section h2[id] { scroll-margin-top: 88px; }
body.doc .guide-toc-mobile { background: rgba(255, 255, 255, 0.96); top: 72px; }
body.doc .gpt-say { background: var(--aqua-2); border-color: var(--aqua); }
body.doc .gpt-say .gpt-say-label { color: var(--teal-d); }
body.doc .shot { margin: var(--space-3) 0; background: #fff; }
body.doc .shot figcaption { margin: 0; padding: 8px 14px; text-align: left; font-size: 0.8rem; color: var(--muted); background: #F8FBFC; }
body.doc .callout { display: block; gap: 0; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; font-size: 0.92rem; }
body.doc .callout-info { background: var(--aqua-2); border-color: var(--aqua); border-left: 5px solid var(--teal-2); }
body.doc .callout-warn { background: #FFF8E6; border-color: var(--gold-2); border-left: 5px solid var(--gold); }
body.doc .callout-no { background: #FDF0EE; border-color: #F0C5BD; border-left: 5px solid #D9634F; }
body.doc .callout .callout-title { color: var(--navy); }
body.doc .gpt-say p, body.doc .callout p { color: var(--ink); }
body.doc .card { padding: var(--space-4); }
body.doc .legal-body h2 { border-left-color: var(--teal); }
body.doc .faq { margin: var(--space-3) 0 0; }
body.doc .faq .a { margin: 0; }
body.doc table.spec-table, body.doc .legal-body table { background: #fff; }
