/* ワッチモ LP — page layout. tokens.css → components.css → lp.css の順に読み込む */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; }
a { color: var(--harbor); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: var(--bw-2) solid var(--focus); outline-offset: 2px;
}
.wm-btn { text-decoration: none; }

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--harbor); color: var(--on-harbor); border-radius: var(--r-md); }
.skip-link:focus { top: var(--s-2); color: var(--on-harbor); }

/* ---------- layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--s-6); }
.container--narrow { max-width: 880px; }
@media (max-width: 480px) { .container { padding-inline: var(--s-4); } }

.section { padding-block: var(--s-10); }
@media (max-width: 768px) { .section { padding-block: var(--s-9); } }
.section--page { background: var(--page); }
.section--soft { background: var(--harbor-soft); }
.section--harbor { background: var(--harbor); color: var(--on-harbor); }

.stack { display: flex; flex-direction: column; }
.stack--32 { gap: var(--s-7); }
.stack--40 { gap: 40px; }
.list-reset { margin: 0; padding: 0; list-style: none; }
.stack--48 { gap: var(--s-8); }

.section-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 800px; }
.section-head .wm-eyebrow { color: var(--ink-3); }
.section--soft .section-head .wm-eyebrow { color: var(--ink-2); }

.h1 { margin: 0; font-family: var(--font-jp); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
.h2 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.35; font-weight: 600; }
.h3 { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 600; }
.h4 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 600; }
.lead { margin: 0; color: var(--ink-2); }
.body-sm { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* 2カラム → 折り返し */
.split { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.split > * { flex: 1 1 460px; min-width: 0; }
.split--top { align-items: flex-start; }

/* カード */
.card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: var(--bw-1) solid var(--line); display: flex; flex-direction: column; gap: var(--s-2); }
.card--plain { border: 0; }
.card .wm-eyebrow { color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- 01 header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: var(--bw-1) solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-7); padding-block: var(--s-3); }
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 32px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--s-1); flex: 1 1 auto; }
@media (max-width: 1024px) { .site-nav { display: none; } .site-header__inner { justify-content: space-between; } }

/* ---------- 02 hero ---------- */
.hero__copy { display: flex; flex-direction: column; gap: var(--s-6); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.hero__meta .wm-eyebrow { color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); border: var(--bw-1) solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hero__sub { margin: 0; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__visual { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: flex-end; justify-content: center; }
.hero__visual figure { margin: 0; display: flex; flex-direction: column; gap: var(--s-3); max-width: 100%; }
.hero__visual figcaption { color: var(--ink-3); }
.night-panel { padding: var(--s-5); border-radius: var(--r-lg); background: var(--page); }
.wm-notice { max-width: 100%; }

/* ---------- 03 background ---------- */
.stat { flex: 1 1 360px; padding: var(--s-7); border-radius: var(--r-lg); background: var(--harbor); color: var(--on-harbor); display: flex; flex-direction: column; gap: var(--s-3); }
.stat .wm-eyebrow { color: var(--seaglass); }
.stat__figure { display: flex; align-items: baseline; gap: var(--s-2); font-family: var(--font-mono); margin: 0; }
.stat__figure .unit-pre { font-size: 20px; font-weight: 500; }
.stat__figure .num { font-size: 96px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.stat__figure .unit { font-size: 28px; font-weight: 500; }
.stat__text { margin: 0; line-height: 1.7; }
.stat__source { margin: 0; font-size: 13px; line-height: 1.5; color: #c9e3de; } /* harbor 上 ≥4.5:1 */
.factors { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.factors ol { margin: 0; padding: 0; list-style: none; }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: stretch; }

/* ---------- 04 comparison ---------- */
.table-wrap { overflow-x: auto; border: var(--bw-1) solid var(--line); border-radius: var(--r-lg); }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.cmp caption { text-align: left; padding: var(--s-5) var(--s-6) var(--s-2); font-weight: 700; color: var(--ink); }
.cmp th, .cmp td { text-align: left; padding: var(--s-4) var(--s-6); border-bottom: var(--bw-1) solid var(--line); }
.cmp thead th { padding-block: var(--s-3); font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--line-strong); }
.cmp tbody th { font-weight: 700; width: 20%; }
.cmp td { color: var(--ink-2); }
.cmp .is-ours { background: var(--harbor-soft); color: var(--ink); }
.cmp thead .is-ours { color: var(--harbor); }
.cmp tbody tr:last-child > * { border-bottom: 0; }

/* ---------- 05 system ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-4); }
.steps > li { flex: 1 1 300px; min-width: 0; padding: 28px var(--s-6); gap: var(--s-3); }
.icon { width: 40px; height: 40px; stroke: var(--harbor); stroke-width: var(--bw-icon); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.states { padding: var(--s-7); gap: var(--s-5); }
.states__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); margin: 0; }
.states__item { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; margin: 0; }
.states__item dd { margin: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.states__kind { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.states__foot { margin: 0; padding-top: var(--s-4); border-top: var(--bw-1) solid var(--line); font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- 06 interface ---------- */
.screens { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: flex-start; }
.screens figure { margin: 0; padding: var(--s-6); border-radius: var(--r-lg); background: var(--page); display: flex; flex-direction: column; gap: var(--s-4); }
.screens__bridge { flex: 0 1 380px; align-items: center; }
.screens__shore { flex: 1 1 520px; min-width: 0; }
.screens__tiles { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.screens figcaption { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.screens figcaption strong { color: var(--ink); display: block; }

/* ---------- 08 install ---------- */
.card--outline { background: transparent; }

/* ---------- 09 pilot ---------- */
.pilot__intro { display: flex; flex-direction: column; gap: var(--s-6); }
.pilot__intro > .wm-eyebrow { color: var(--ink-3); }
.phases { margin: 0; padding: 0; list-style: none; }
.phases li { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-top: var(--bw-1) solid var(--line); }
.phases li:last-child { border-bottom: var(--bw-1) solid var(--line); }
.phases__label { flex: none; width: 104px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.phases li.is-current .phases__label { color: var(--teal-ink); }
.phases__title { font-weight: 700; }
.download { padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: var(--bw-1) solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; }
.download > div { flex: 1 1 220px; }
.download__title { font-weight: 700; }
.download__desc { font-size: 14px; color: var(--ink-3); }

.form { padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 480px) { .form { padding: var(--s-5); } }
.form__row { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { margin-left: var(--s-1); font-size: 12px; font-weight: 600; color: var(--red); }
.field .opt { margin-left: var(--s-1); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  min-height: 44px; padding: 0 var(--s-3); border: var(--bw-1) solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface-soft); font: inherit; font-size: 15px; color: var(--ink);
}
.field textarea { padding: var(--s-3); line-height: 1.65; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 13px; color: var(--red); }
.form__submit { white-space: normal; text-align: left; }

/* ---------- 10 faq ---------- */
.faq { border-top: var(--bw-1) solid var(--line); }
.faq details { border-bottom: var(--bw-1) solid var(--line); padding: var(--s-4) 0; }
.faq summary { font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: var(--s-3); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: var(--bw-2) solid var(--ink-3); border-bottom: var(--bw-2) solid var(--ink-3); transform: rotate(45deg); transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin: var(--s-2) 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- 11 closing band ---------- */
.band { display: flex; flex-direction: column; gap: var(--s-6); align-items: center; text-align: center; }
.band img { height: 40px; width: auto; }
.band .h1 { font-size: clamp(28px, 3.6vw, 44px); }
.band .wm-btn { border-color: #ffffff; } /* harbor 地でボタン輪郭を見せるため白 */

/* ---------- 12 footer ---------- */
.site-footer { border-top: var(--bw-1) solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); align-items: center; justify-content: space-between; padding-block: 40px; }
.site-footer__inner img { height: 28px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: 14px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer small { flex-basis: 100%; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
