/* ============================================================
   トップページ専用スタイル
   前提: styles/index.css を先に読み込むこと
   （デザイントークン・リセット・ボタン・ヘッダー・フッターを共有）
   ============================================================ */
:root {
  --dark: #13201a;
  --font-display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- 共通パーツ ---------- */
.sec { padding: 112px 0; }
.sec.wash { background: var(--bg-gray); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--g600); margin-bottom: 14px; }
.h2 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.4; letter-spacing: .01em;
  font-size: clamp(27px, 3.6vw, 42px); text-wrap: balance; word-break: auto-phrase;
}
.lede { margin-top: 18px; color: var(--sub); font-size: 16px; max-width: 38em; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 600; line-height: 1.7; }
.ticks li::before {
  content: ""; position: absolute; left: 5px; top: .42em; width: 6px; height: 11px;
  border: solid var(--g600); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--g700);
  border-bottom: 1.5px solid currentColor; padding-bottom: 3px; transition: gap .2s ease;
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* 管理画面スクリーンショットの枠 */
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 56px -20px rgba(19, 32, 26, .28);
}
.shot img { width: 100%; height: auto; }
.shot-bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5;
}
.shot-bar strong { color: var(--ink); font-weight: 700; }
.shot-bar span { color: #8a978f; font-size: 12px; white-space: nowrap; }
.shot-note { margin-top: 18px; font-size: 14px; color: var(--sub); }

/* ---------- hero（配色と比率は旧トップの first view を踏襲） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 420px at 85% 12%, rgba(34, 197, 94, .12), transparent 65%),
    radial-gradient(560px 380px at 8% 88%, rgba(22, 163, 74, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--g50) 100%);
  padding: 80px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-kicker { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--g700); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.38; letter-spacing: .015em;
  font-size: clamp(34px, 4.6vw, 54px);
}
.hero h1 em {
  font-style: normal; color: var(--g600);
  background: linear-gradient(transparent 68%, var(--g100) 68%); padding: 0 2px;
}
.hero-lede { margin-top: 22px; font-size: 16px; line-height: 1.95; max-width: 30em; color: var(--sub); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; font-size: 13px; color: var(--sub); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 10px; height: 1px; background: currentColor; opacity: .7; }

/* hero の概念図：3 通のメールを経てレビュー数が伸びる */
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art-cap { font-size: 12.5px; font-weight: 600; fill: var(--sub); letter-spacing: .04em; }
.art-grid line { stroke: rgba(22, 163, 74, .2); stroke-width: 1; stroke-dasharray: 2 5; }
.art-hair line { stroke: rgba(22, 163, 74, .22); stroke-width: 1; }
.art-axis { stroke: var(--line-strong); stroke-width: 1; }
.art-curve { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-drop { stroke: var(--g600); stroke-width: 1; stroke-dasharray: 2 4; opacity: .55; }
.art-halo { fill: rgba(34, 197, 94, .16); }
.art-node { fill: #fff; stroke: var(--g600); stroke-width: 1.5; }
.art-star { fill: var(--amber); stroke: var(--amber); stroke-width: 1.6; stroke-linejoin: round; }
.art-goal { font-size: 13px; font-weight: 700; fill: var(--g700); }
.art-env { fill: none; stroke: var(--g700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-pill { fill: #fff; stroke: #bbf7d0; stroke-width: 1; }
.art-name { font-size: 12.5px; font-weight: 700; fill: var(--g700); }
.art-when { font-size: 12px; font-weight: 600; fill: var(--sub); }
.art-spark { fill: var(--amber); }
.art-spark.d { fill: #ffd76a; opacity: .75; }
.art-halo2, .art-rays { transform-box: fill-box; transform-origin: center; }
.art-card { fill: #fff; stroke: var(--g100); stroke-width: 1; }
.art-stars { font-size: 15px; fill: var(--amber); letter-spacing: .14em; }
.art-card-t { font-size: 12.5px; font-weight: 700; fill: var(--ink); }

/* 読み込み時に、線 → メール 3 通 → レビューの順で現れる */
.art-curve { stroke-dasharray: 1; stroke-dashoffset: 1; animation: art-draw 1.7s .25s cubic-bezier(.5, 0, .2, 1) forwards; }
.art-area, .art-hair { opacity: 0; animation: art-in .9s 1.2s ease-out forwards; }
.art-step, .art-peak { opacity: 0; animation: art-in .5s ease-out forwards; }
.art-step.s1 { animation-delay: .55s; }
.art-step.s2 { animation-delay: 1.05s; }
.art-step.s3 { animation-delay: 1.4s; }
.art-step.s4 { animation-delay: 1.75s; }
.art-peak { animation-delay: 2.1s; }
.art-spark.tw { transform-box: fill-box; transform-origin: center; animation: art-twinkle 2.8s 2.4s ease-in-out infinite; }
.art-halo2 { animation: art-breathe 4.2s 2.4s ease-in-out infinite; }
.art-rays { animation: art-breathe 4.2s 2.4s ease-in-out infinite reverse; }
@keyframes art-draw { to { stroke-dashoffset: 0; } }
@keyframes art-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes art-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .82; } }
@keyframes art-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .art-curve { animation: none; stroke-dashoffset: 0; }
  .art-area, .art-hair, .art-step, .art-peak { animation: none; opacity: 1; }
  .art-spark.tw, .art-halo2, .art-rays { animation: none; }
}

/* ---------- 数字 ---------- */
.stats { padding: 88px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 2px solid var(--ink); padding-top: 20px; position: relative; }
.stat::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--g600); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ink); }
.stat-num b { font-weight: 800; font-size: 46px; letter-spacing: -.01em; margin-right: 3px; }
.stat:first-child .stat-num b, .stat:nth-child(3) .stat-num b { color: var(--g600); }
.stat h2 { font-size: 15.5px; font-weight: 700; margin-top: 12px; line-height: 1.6; }
.stat p:last-child { font-size: 13.5px; color: var(--sub); margin-top: 4px; line-height: 1.8; }

/* ---------- これまで／導入後 ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; align-items: start; }
.ba { border-radius: 12px; padding: 30px 36px 14px; }
.ba h3 { font-size: 14px; font-weight: 700; letter-spacing: .04em; padding-bottom: 16px; }
.ba dl > div {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--line); font-size: 15px; line-height: 1.75;
}
.ba dt { font-size: 13.5px; font-weight: 600; padding-top: 1px; }
.ba-before { background: var(--bg-gray); color: var(--sub); }
.ba-before h3 { color: var(--sub); }
.ba-after {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--g600);
  box-shadow: 0 24px 56px -24px rgba(19, 32, 26, .25);
}
.ba-after h3, .ba-after dt { color: var(--g700); }
.ba-after dd { color: var(--sub); }
.ba-after dd strong { color: var(--ink); font-weight: 700; }

/* ---------- しくみ（3 通のメール） ---------- */
.mail-steps, .flow { list-style: none; }
.how-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; margin: 52px 0 72px; }
.mail-steps { display: grid; gap: 28px; }
.mail-steps li { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.mail-steps .when { display: block; font-size: 13px; font-weight: 700; color: var(--g600); margin-bottom: 8px; }
.mail-steps h3 { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.mail-steps p { font-size: 14.5px; color: var(--sub); }

/* ---------- 機能 ---------- */
.frow { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 88px; }
.frow.rev .frow-text { order: 2; }
.fnum { display: block; font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--g600); letter-spacing: .08em; margin-bottom: 12px; }
.frow h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.5; margin-bottom: 14px; }
.frow-text > p { font-size: 15px; color: var(--sub); }
.frow .ticks { margin-top: 20px; }

.compare { border-top: 1px solid var(--line-strong); }
.compare-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 4px;
  border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--sub); align-items: start;
}
.compare-row > div:first-child { font-weight: 700; font-size: 14px; padding-top: 2px; }
.compare-row.win { background: var(--g50); padding-left: 20px; padding-right: 20px; }
.compare-row.win > div:first-child { color: var(--g700); }
.compare-row.win .ticks { margin-top: 0; gap: 6px; color: var(--ink); }

/* ---------- 分析（ダーク） ---------- */
.dark { background: var(--dark); color: #fff; }
.dark .kicker { color: #4ade80; }
.dark .lede { color: rgba(255,255,255,.72); }
.dark-shot { margin-top: 48px; }
.dark .shot { border-color: transparent; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.dark-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.dark-points > div { border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
.dark-points h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.dark-points p { font-size: 13.5px; color: rgba(255,255,255,.66); line-height: 1.8; }

/* ---------- 料金 ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.price-ticks { margin-top: 28px; }
.price-card {
  border: 1px solid var(--line); border-top: 3px solid var(--g600); border-radius: 12px;
  padding: 40px 40px 30px; box-shadow: 0 24px 56px -24px rgba(19, 32, 26, .25); background: #fff;
}
.plan-aud { font-size: 13px; font-weight: 600; color: var(--sub); }
.plan-name { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.price { font-family: var(--font-display); font-weight: 800; line-height: 1; color: var(--ink); }
.price .num { font-size: 72px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .yen { font-size: 24px; margin-left: 4px; }
.price .unit { font-size: 14.5px; font-weight: 600; color: var(--sub); margin-left: 8px; }
.plan-limit { margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--g700); }
.price-actions { display: grid; gap: 10px; margin-top: 26px; }
.plans-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.plans-note a { color: var(--g700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 導入の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 52px; }
.flow li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.flow-n { display: block; font-family: var(--font-num); font-size: 34px; font-weight: 700; line-height: 1; color: var(--g600); margin-bottom: 14px; }
.flow h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.flow p { font-size: 14px; color: var(--sub); }

/* ---------- 導入事例 ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line-strong); }
.case { padding: 36px 48px 8px 0; }
.case + .case { padding: 36px 0 8px 48px; border-left: 1px solid var(--line); }
.case .case-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--g600); line-height: 1; display: flex; align-items: baseline; flex-wrap: wrap; }
.case .case-num b { font-weight: 800; font-size: 84px; letter-spacing: -.03em; margin-right: 4px; }
.case .case-num span { font-size: 14px; font-weight: 700; color: var(--ink); margin-left: 14px; }
.case h3 { font-size: 20px; font-weight: 700; line-height: 1.6; margin: 20px 0 10px; text-wrap: balance; }
.case p { font-size: 14.5px; color: var(--sub); }
.case .case-meta { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--ink); }

/* ---------- 安心・安全 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.trust { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.trust-mark { display: flex; align-items: center; height: 68px; margin-bottom: 16px; }
.trust-mark img { height: 68px; width: auto; }
.trust-mark-icon { color: var(--g600); }
.trust-mark-icon svg { width: 52px; height: 52px; }
.trust h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.6; }
.trust p { font-size: 14px; color: var(--sub); }
.trust-link { margin-top: 10px; }
.trust-link a { font-size: 13px; font-weight: 700; color: var(--g700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- サービス概要 ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; margin-top: 44px; }
.about-def { display: grid; gap: 16px; font-size: 15px; line-height: 2; color: var(--sub); }
.about-def strong { color: var(--ink); font-weight: 700; }
.about-facts { border-top: 1px solid var(--line-strong); }
.about-facts > div {
  display: grid; grid-template-columns: 148px 1fr; gap: 16px; padding: 13px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.75;
}
.about-facts dt { font-weight: 700; color: var(--ink); }
.about-facts dd { color: var(--sub); }

/* ---------- FAQ ---------- */
.qa-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.qa-more { margin-top: 28px; }
.qa-list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-weight: 700; font-size: 16px; line-height: 1.6;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border: solid var(--g600); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa p { padding: 0 44px 24px 4px; font-size: 14.5px; color: var(--sub); }

/* ---------- final CTA ---------- */
.final { background: var(--g800); color: #fff; padding: 96px 0; }
.final-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.45; }
.final p { margin-top: 16px; font-size: 14.5px; opacity: .85; }
.final-buttons { display: grid; gap: 12px; min-width: 280px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid, .dark-points, .flow { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .frow, .about-grid { gap: 40px; }
}
@media (max-width: 860px) {
  .sec { padding: 76px 0; }
  .hero { padding-top: 56px; }
  .hero-grid, .how-grid, .ba-grid, .frow, .price-grid, .about-grid, .qa-grid, .final-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 68px; }
  .stats { padding-top: 64px; }
  .how-grid { gap: 36px; margin: 40px 0 52px; }
  .frow { margin-top: 64px; gap: 28px; }
  .frow.rev .frow-text { order: 0; }
  .dark-points { margin-top: 52px; }
  .price-grid, .qa-grid { gap: 40px; }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-grid { grid-template-columns: 1fr; }
  .case, .case + .case { padding: 32px 0 8px; border-left: none; }
  .case + .case { border-top: 1px solid var(--line); margin-top: 28px; }
  .final-buttons { min-width: 0; }
}
@media (max-width: 600px) {
  .stats-grid, .dark-points, .flow { grid-template-columns: 1fr; gap: 26px; }
  .hero-cta .btn { width: 100%; }
  .ba { padding: 24px 22px 8px; }
  .ba dl > div { grid-template-columns: 78px 1fr; gap: 12px; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; }
  .price-card { padding: 30px 24px 24px; }
  .price .num { font-size: 60px; }
  .case .case-num b { font-size: 68px; }
  .about-facts > div { grid-template-columns: 108px 1fr; gap: 10px; }
  .shot-bar span { display: none; }
  .qa p { padding-right: 8px; }
}
