/* ============================================================
   Web Assist — 共通スタイル
   トークン: 色/タイプ/レイアウトはここで一元管理する
   ============================================================ */

:root {
  /* Color */
  --ink: #14231F;
  --ink-soft: #3C4A45;
  --bg: #F6F7F2;
  --bg-panel: #FFFFFF;
  --line: #DCE2D9;
  --accent: #0E8F7A;      /* ティール：診断/成長のメインアクセント */
  --accent-deep: #0B6F5E;
  --accent-line: #06C755; /* LINEブランドグリーン：LINE関連要素のみに限定使用 */
  --accent-warm: #E8963D; /* 警告/バッジ用アンバー */
  --danger: #C1443A;

  /* Type */
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", monospace;

  /* Layout */
  --max-width: 1080px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(20, 35, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  color: var(--ink); letter-spacing: 0.02em;
}
.brand span { color: var(--accent); }
.site-footer .brand { color: #F6F7F2; }
.site-footer .brand span { color: #7DE0CF; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 12px;
}
.section-alt { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy p.lead { font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

.route-map {
  position: relative; width: min(100%, 430px); margin: 0 auto; min-height: 430px;
  display: grid; place-items: center;
}
.route-panel {
  width: min(100%, 360px); background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(20,35,31,0.12);
  position: relative; overflow: hidden; animation: floatPanel 5.6s ease-in-out infinite;
}
.route-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 28%, rgba(14,143,122,0.10) 34%, transparent 42% 100%);
  transform: translateX(-120%); animation: panelScan 4.8s ease-in-out infinite;
}
.route-panel-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-bottom: 18px;
}
.route-panel-header strong { color: var(--accent-deep); font-size: 13px; }
.route-stack { display: grid; gap: 12px; }
.route-node {
  position: relative; display: grid; gap: 2px; padding: 14px 44px 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-panel);
  transform: translateX(18px); opacity: 0; animation: nodeEnter 0.7s ease forwards;
}
.route-node:nth-child(2) { animation-delay: 0.16s; }
.route-node:nth-child(3) { animation-delay: 0.32s; }
.node-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--accent-deep); }
.route-node strong { font-size: 14px; }
.route-node i {
  position: absolute; right: 16px; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); transform: translateY(-50%); box-shadow: 0 0 0 0 rgba(14,143,122,0.3);
  animation: nodePulse 2.4s ease-in-out infinite;
}
.node-google i { background: var(--accent-warm); animation-delay: 0.3s; }
.node-line i { background: var(--accent-line); animation-delay: 0.6s; }
.route-output {
  margin-top: 18px; border-radius: 12px; padding: 16px; background: #F2FAF7;
  border: 1px solid rgba(14,143,122,0.24);
}
.route-output span, .route-summary span {
  display: block; font-family: var(--font-mono); font-size: 11px; color: var(--accent-deep); margin-bottom: 4px;
}
.route-output strong { font-size: 20px; }
.route-connector {
  position: absolute; width: 2px; height: 74px; bottom: 78px; left: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: connectorFlow 1.8s linear infinite;
}
.route-summary {
  position: absolute; bottom: 0; right: 16px; width: 190px; padding: 16px 18px;
  border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  animation: floatChip 4.4s ease-in-out infinite;
}
.route-summary strong { display: block; font-family: var(--font-mono); font-size: 26px; }
.route-summary em { display: block; font-style: normal; font-size: 12px; color: #C9D6D0; margin-top: 4px; }
@keyframes floatPanel { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes panelScan { 0%, 45% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes nodeEnter { to { opacity: 1; transform: translateX(0); } }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,143,122,0.24); } 50% { box-shadow: 0 0 0 8px rgba(14,143,122,0); } }
@keyframes connectorFlow { 0% { opacity: 0.25; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0.25; transform: scaleY(0.5); } }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Cards / Grids ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.issue-list li:last-child { border-bottom: none; }
.issue-list li::before {
  content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

/* ---- Pricing ---- */
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; right: 20px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.plan-price { font-family: var(--font-mono); font-size: 30px; font-weight: 700; margin: 12px 0; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.plan-note { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.plan-detail { font-size: 13px; color: var(--ink); line-height: 1.7; margin: 10px 0 12px; }
.plan-includes {
  list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px;
  font-size: 12px; color: var(--ink-soft);
}
.plan-includes li { position: relative; padding-left: 16px; }
.plan-includes li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* ---- Forms ---- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: var(--font-body); background: #fff;
}
.form-field input:focus, .checkbox-field input:focus { outline: 3px solid rgba(14, 143, 122, 0.3); }
.checkbox-field {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; font-size: 14px; color: var(--ink-soft);
}
.checkbox-field input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.checkbox-field a { color: var(--accent-deep); text-decoration: underline; }
.form-error { color: var(--danger); font-size: 14px; margin-top: 4px; display: none; }
.form-error.visible { display: block; }

/* ---- Status / Loading ---- */
.status-panel {
  text-align: center; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-panel);
}
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 16px; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner, .route-panel, .route-panel::before, .route-node, .route-node i, .route-connector, .route-summary { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Estimate ---- */
.module-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.module-row:last-child { border-bottom: none; }
.module-row .module-name { font-weight: 700; }
.module-row .module-meta { font-size: 13px; color: var(--ink-soft); }
.module-row .module-price { font-family: var(--font-mono); white-space: nowrap; }
.recommended-tag {
  display: inline-block; font-size: 11px; background: rgba(14,143,122,0.12); color: var(--accent-deep);
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; font-weight: 700;
}
.estimate-summary {
  position: sticky; top: 88px; background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.estimate-total { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--accent-deep); }
.mt-16 { margin-top: 16px; }
.estimate-status {
  min-height: 1.7em; color: var(--accent-deep);
}
.estimate-status.is-error { color: var(--danger); }

/* ---- Legal pages ---- */
.legal-body h2 { margin-top: 2em; font-size: 20px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.legal-body table th, .legal-body table td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 14px; vertical-align: top;
}
.legal-body table th { background: var(--bg-panel); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.legal-nav a {
  font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.legal-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.notice-box {
  background: #FDF6EC; border: 1px solid var(--accent-warm); border-radius: var(--radius);
  padding: 16px 20px; font-size: 14px; margin: 24px 0;
}

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #E8ECE9; padding: 48px 0 32px; margin-top: 48px; }
.site-footer a { color: #C9D6D0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; font-size: 13px; }
.footer-note { font-size: 12px; color: #8FA098; margin-top: 24px; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.small { font-size: 13px; color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .estimate-summary { position: static; }
}
