/* めぐりて サービスサイト（色・文字は design-system.md とアプリ画面と同じ） */
:root {
  --ground: #F3F4F1; --paper: #FFFFFF; --rule: #DCE0DB;
  --pine: #1F3D38; --pine2: #2C504A; --mint: #7FD1B9;
  --take: #0B7A62; --take-d: #08624F; --take-l: #E3F1EC;
  --ink: #1E2A2E; --sub: #5C686B;
  --yama: #B76E00; --yama-l: #FCF1DC; --beni: #B8342A; --beni-l: #FBE7E4;
  --sky: #F5B841; --sky-d: #E9A620;
  --wrap: 1200px;
  --f: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.85;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--take); text-underline-offset: 3px; }
a:hover { color: var(--take-d); }
:focus-visible { outline: 3px solid var(--take); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.45; letter-spacing: .01em; text-wrap: pretty; }
h1 { font-size: 52px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.l { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; left: 16px; top: 16px; width: auto; height: auto; clip: auto; background: var(--paper); padding: 8px 16px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.read { max-width: 800px; }
.center { text-align: center; }
.note { font-size: 14px; color: var(--sub); line-height: 1.7; }
.more { margin-top: 40px; text-align: center; }

/* 日本語の改行：phrase-wrap.js が句読点までを .ph で包む（site-line-breaks） */
.phs { display: inline; }
.nb { display: inline-block; }
.ph, .pst { display: inline-block; word-break: auto-phrase; text-wrap: pretty; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
  text-decoration: none; text-align: center; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-l { min-height: 56px; padding: 12px 28px; font-size: 17px; }
.btn-s { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn-cta { background: var(--sky); color: var(--ink); }
.btn-cta:hover { background: var(--sky-d); color: var(--ink); }
.btn-main { background: var(--take); color: #fff; }
.btn-main:hover { background: var(--take-d); color: #fff; }
.btn-sub { background: var(--paper); color: var(--take); border-color: #9CC9BA; }
.btn-sub:hover { border-color: var(--take); color: var(--take-d); }
.btn-line-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-line-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }

/* 制作例の帯・ヘッダー */
.demo-bar { margin: 0; background: var(--ink); color: #E7EEEC; font-size: 13px; line-height: 1.6; text-align: center; padding: 7px 16px; }
.demo-bar .for-sp { display: none; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.is-scrolled { border-bottom-color: var(--rule); }
.head-in { width: min(1320px, 100% - 48px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: .04em; flex: none; }
.logo:hover { color: var(--ink); }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 28px; list-style: none; }
.gnav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.gnav a:hover { color: var(--take); }
.gnav a[aria-current="page"] { color: var(--take); border-bottom-color: var(--take); }
.gnav .gnav-cta { display: none; }
.head-cta { display: flex; gap: 8px; }
.menu-btn { display: none; }

/* ファーストビュー */
.fv { background: var(--ground); padding: 64px 0 72px; overflow: hidden; }
.fv-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.fv h1 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.4; }
.fv-lead { margin: 24px 0 32px; font-size: 18px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fv-note { margin-top: 16px; font-size: 14px; color: var(--sub); }
.fv-shots { position: relative; padding: 0 0 48px; }
.fv-shots .shot-pc { width: 100%; }
.fv-shots .shot-sp { position: absolute; right: -8px; bottom: 0; width: 25%; }

.shot { margin: 0; overflow: hidden; background: var(--paper); }
.shot-pc { border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 28px 56px -28px rgba(31,61,56,.38); }
.shot-sp { border: 6px solid var(--ink); border-radius: 30px; box-shadow: 0 24px 40px -20px rgba(31,61,56,.45); }

/* 署名の部品：1日の巡回ルート */
.fv-route { margin-top: 40px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 28px 26px; }
.route-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--sub); margin-bottom: 14px; }
.route-cap span { background: var(--take-l); color: var(--take); font-weight: 600; border-radius: 999px; padding: 1px 12px; font-size: 13px; }
.route { position: relative; }
.route ol { list-style: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; z-index: 1; }
.route li { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.45; }
.route .t { font-size: 14px; color: var(--sub); height: 22px; }
.route .dot { width: 22px; height: 22px; margin: 6px 0 8px; border-radius: 50%; background: var(--paper); border: 3px solid #8A9693; transition: background-color .3s, border-color .3s; }
.route .is-base .dot { border-radius: 6px; background: var(--pine); border-color: var(--pine); }
.route .is-done .dot { background: var(--take); border-color: var(--take); }
.route .is-now .dot { width: 30px; height: 30px; margin: 2px 0 4px; border: 5px solid var(--take); box-shadow: 0 0 0 6px #CBE7DD; }
.route b { font-size: 16px; font-weight: 600; }
.route small { font-size: 13px; color: var(--sub); }
.route .is-now small { color: var(--take); font-weight: 600; }
.route-track { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 37px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #C9D2CE 0 10px, transparent 10px 17px); }
.route-fill { position: absolute; inset: 0 auto 0 0; width: var(--to); background: var(--take); border-radius: 2px; transform-origin: left center; }
.js .route-fill { transform: scaleX(0); transition: transform 1.8s cubic-bezier(.55, 0, .2, 1); }
.js .route .is-done .dot, .js .route .is-now .dot { background: var(--paper); border-color: #8A9693; box-shadow: none; }
.js .route.is-drawn .route-fill { transform: scaleX(1); }
.js .route.is-drawn .is-done .dot { background: var(--take); border-color: var(--take); }
.js .route.is-drawn .is-now .dot { background: var(--paper); border-color: var(--take); box-shadow: 0 0 0 6px #CBE7DD; transition-delay: 1.6s; }
.js .route.is-drawn li:nth-child(2) .dot { transition-delay: .35s; }
.js .route.is-drawn li:nth-child(3) .dot { transition-delay: .8s; }
.js .route.is-drawn li:nth-child(4) .dot { transition-delay: 1.25s; }

/* セクション */
.sec { padding: 96px 0; }
.sec-ground { background: var(--ground); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--sub); font-size: 17px; }

/* 現場の困りごと */
.pains { list-style: none; }
.pain { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--rule); }
.pain:last-child { padding-bottom: 0; }
.pain:nth-child(even) .pain-text { order: 2; }
.pain h3 { font-size: 22px; margin-bottom: 16px; }
.pain p { color: var(--ink); }
.pain.is-sp { grid-template-columns: 1fr 1fr; }
.pain.is-sp .shot-sp { width: 210px; justify-self: center; }

/* 数字（前 → 後） */
.ba { margin: 0; }
.ba > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.ba dt { font-size: 14px; color: var(--sub); }
.ba dd { margin: 2px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ba .before { color: var(--sub); font-size: 17px; }
.ba .after { color: var(--take); font-size: 26px; font-weight: 700; line-height: 1.3; }
.ba .arrow { width: 28px; height: 2px; background: currentColor; color: #9AA6A3; position: relative; }
.ba .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }

.sec-pine { background: var(--pine); color: #E7EEEC; }
.sec-pine h2 { color: #fff; margin-bottom: 40px; }
.ba-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.ba-big > div { border-top-color: #3C5E58; padding: 24px 0 8px; }
.ba-big dt { color: #BFD0CC; font-size: 15px; }
.ba-big .before { color: #BFD0CC; font-size: 20px; }
.ba-big .after { color: var(--mint); font-size: 44px; }
.ba-big .arrow { color: #5E807A; }
.sec-pine .note { color: #BFD0CC; margin-top: 32px; }

/* 機能の一覧（トップ） */
.feat-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-grid a { display: block; height: 100%; padding: 26px 26px 24px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.feat-grid a:hover { border-color: var(--take); }
.feat-grid h3 { font-size: 20px; margin-bottom: 6px; color: var(--take); }
.feat-grid p { color: var(--sub); font-size: 16px; }

/* 導入事例 */
.case-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-list.is-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 32px auto 0; }
.case-list > li[hidden] { display: none; }
.case-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.case-card:hover { border-color: var(--take); color: var(--ink); }
.case-card figure { margin: 0; aspect-ratio: 3 / 2; background: var(--ground); }
.case-card figure img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card .org { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.5; }
.case-card .org span { display: block; font-size: 13px; }
.case-card h3 { font-size: 20px; line-height: 1.5; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags li { background: var(--take-l); color: var(--take); font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 12px; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 12px; }
.filter { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.filter .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter label { position: relative; cursor: pointer; }
.filter input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.filter span { display: inline-block; border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px 16px; font-size: 15px; line-height: 1.6; background: var(--paper); }
.filter input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
.filter input:focus-visible + span { outline: 3px solid var(--take); outline-offset: 2px; }
.filter-count { font-size: 14px; color: var(--sub); margin: 8px 0 24px; min-height: 1.7em; }

/* 使い始めるまで（順番） */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.flow li { position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 56px; right: 8px; top: 21px; height: 3px; background: repeating-linear-gradient(90deg, #C9D2CE 0 8px, transparent 8px 14px); }
.flow .pin { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.flow h3 { font-size: 19px; margin-bottom: 8px; }
.flow p { font-size: 16px; color: var(--sub); }

/* 料金 */
.plans { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 30px 28px 28px; }
.plan.is-rec { border: 2px solid var(--take); }
.plan .rec { position: absolute; top: -14px; left: 26px; margin: 0; background: var(--take); color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 14px; line-height: 1.7; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--sub); font-size: 15px; margin: 2px 0 14px; }
.plan .price { display: flex; align-items: baseline; gap: 2px; margin: 0 0 12px; }
.plan .price b { font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.plan .yen { font-size: 22px; font-weight: 600; }
.plan .per { font-size: 14px; color: var(--sub); margin-left: 4px; }
.plan .desc { font-size: 15px; color: var(--sub); padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.plan .checks { margin: 16px 0 24px; flex: 1; }
.plan .btn { width: 100%; }
.sec-ground .plan { border-color: #D3D8D2; }
.plans + .note { margin-top: 24px; }

.checks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.65; }
.checks li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 13px; height: 7px; border-left: 2.5px solid var(--take); border-bottom: 2.5px solid var(--take); transform: rotate(-45deg); }

.table-scroll { overflow-x: auto; margin-top: 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: center; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-size: 18px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.cmp td { white-space: nowrap; }
.cmp tbody th { width: 19em; }
.cmp thead small { display: block; font-size: 14px; font-weight: 400; color: var(--sub); }
.cmp tbody th { text-align: left; font-weight: 500; }
.cmp .is-rec { background: #F2F8F5; }
.cmp thead .is-rec { color: var(--take); }
.cmp .yes { display: inline-block; width: 16px; height: 9px; border-left: 3px solid var(--take); border-bottom: 3px solid var(--take); transform: rotate(-45deg) translate(1px, -2px); }
.cmp .no { color: #9AA6A3; }

/* よくある質問 */
.faq { border-top: 1px solid var(--rule); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span:first-child { flex: 1; }
.faq .pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--take); transition: transform .2s; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .a { padding: 0 4px 22px; color: var(--ink); }
.faq-cat { font-size: 22px; margin-top: 48px; }
.faq-cat:first-child { margin-top: 0; }

/* 申し込みの帯 */
.band { background: var(--pine); color: #D5E1DE; padding: 64px 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.band p { font-size: 16px; }

/* 下層ページの見出し */
.page-hero { background: var(--ground); padding: 40px 0 48px; margin-bottom: 40px; }
.page-hero h1 { font-size: 44px; }
.page-hero .lead { margin: 16px 0 0; font-size: 18px; color: var(--sub); max-width: 40em; }
.crumbs { margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--sub); }
.crumbs li { white-space: nowrap; }
.crumbs li + li::before { content: "／"; margin: 0 8px; color: #9AA6A3; }
.crumbs a { color: var(--sub); }

/* 機能のページ */
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; border: 1.5px solid var(--rule); border-radius: 999px; padding: 6px 18px; font-size: 15px; color: var(--ink); text-decoration: none; line-height: 1.6; }
.toc a:hover { border-color: var(--take); color: var(--take); }
.feature { padding: 80px 0; }
.feature + .feature { border-top: 1px solid var(--rule); }
.feature-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature.is-rev .feature-text { order: 2; }
.feature h2 { font-size: 34px; }
.feature-lead { font-size: 21px; font-weight: 600; color: var(--take); margin: 6px 0 24px; line-height: 1.5; }
.feature-shots { position: relative; }
.feature-shots.has-sp { padding-bottom: 40px; }
.feature-shots.has-sp .shot-sp { position: absolute; right: -12px; bottom: 0; width: 26%; }
.feature.is-rev .feature-shots.has-sp .shot-sp { right: auto; left: -12px; }

/* 導入事例の1件 */
.case-hero .org { font-size: 16px; color: var(--sub); margin-bottom: 6px; }
.case-hero h1 { font-size: 40px; margin-bottom: 16px; }
.case-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.case-photo, .case-photo2 { margin: 0; }
.case-photo img, .case-photo2 img { width: 100%; border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font-size: 13px; color: var(--sub); margin-top: 8px; }
.facts { margin: 0 0 20px; }
.facts > div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.6; }
.facts dt { color: var(--sub); }
.facts dd { margin: 0; }
.case-body .quote { margin: 0 0 48px; padding: 28px 32px; background: var(--take-l); border-radius: 12px; }
.case-body .quote p { font-size: 22px; font-weight: 600; line-height: 1.6; color: var(--pine); }
.case-body h2 { font-size: 26px; margin: 40px 0 12px; }
.case-body .quote + h2 { margin-top: 0; }
.case-photo2 { margin: 40px 0 8px; }

/* フォーム */
.form-wrap { max-width: 760px; }
.form-demo { background: var(--yama-l); color: #6E4300; border-radius: 8px; padding: 12px 18px; font-size: 15px; margin-bottom: 28px; }
.form-error { background: var(--beni-l); color: var(--beni); border-radius: 8px; padding: 12px 18px; font-weight: 600; }
.steps-bar { list-style: none; display: flex; margin-bottom: 40px; }
.steps-bar li { flex: 1; text-align: center; padding-top: 14px; font-size: 15px; color: var(--sub); border-top: 4px solid var(--rule); }
.steps-bar li.on { border-top-color: var(--take); color: var(--ink); font-weight: 600; }
.field { margin-bottom: 28px; }
.field > label, .field .lbl { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.req-mark, .opt-mark { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 0 7px; line-height: 1.7; }
.req-mark { background: var(--beni-l); color: var(--beni); }
.opt-mark { background: #ECEFEC; color: var(--sub); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid #B9C2BE; border-radius: 8px; background: #fff; font: inherit; font-size: 17px; color: var(--ink);
}
.field textarea { min-height: 150px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--take); box-shadow: 0 0 0 3px #CBE7DD; }
.field [aria-invalid="true"] { border-color: var(--beni) !important; background: #FFFBFA !important; }
.choices { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.choices label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; }
.choices input { width: 20px; height: 20px; accent-color: var(--take); flex: none; margin: 0; }
.choices.is-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choices.is-cards label { border: 1.5px solid #B9C2BE; border-radius: 8px; padding: 14px 16px; background: #fff; }
.choices.is-cards label:has(input:checked) { border-color: var(--take); background: #F2F8F5; font-weight: 600; }
.hint { font-size: 14px; color: var(--sub); margin: 8px 0 0; }
.err { color: var(--beni); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
#pane-confirm h2, .done h2 { font-size: 28px; margin-bottom: 24px; }
.confirm-list { margin: 0; border-top: 1px solid var(--rule); }
.confirm-list div { display: grid; grid-template-columns: 12em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.confirm-list dt { color: var(--sub); font-size: 15px; }
.confirm-list dd { margin: 0; white-space: pre-wrap; }
.done { text-align: center; background: var(--ground); border-radius: 12px; padding: 48px 32px; }
.done .note { margin-top: 12px; }
.done .btn { margin-top: 16px; }

/* お知らせ・本文 */
.news-list { list-style: none; border-top: 1px solid var(--rule); }
.news-list a { display: flex; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.news-list a:hover span { color: var(--take); }
.news-list time { color: var(--sub); flex: none; font-size: 15px; padding-top: 1px; }
.page-hero .date { margin: 0 0 6px; color: var(--sub); font-size: 15px; }
.h-post { font-size: 32px !important; }
.entry-content h2 { font-size: 24px; margin: 40px 0 12px; }
.entry-content ul { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-bottom: 4px; }
.nf h1 { font-size: 36px; margin-bottom: 16px; }
.nf .actions { margin-top: 32px; }
.nav-links { display: flex; gap: 12px; margin-top: 32px; }

/* フッター */
.site-foot { background: var(--ink); color: #C9D2CE; padding: 56px 0 40px; font-size: 15px; }
.site-foot a { color: #E7EEEC; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.foot-brand .logo { color: #fff; }
.foot-brand p { margin-top: 14px; }
.foot-brand .addr { font-size: 14px; color: #9AA6A3; }
.foot-nav { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; align-content: start; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-demo { margin-top: 40px; padding-top: 24px; border-top: 1px solid #34413F; font-size: 13px; color: #9AA6A3; }
.foot-demo .credit { display: block; margin-top: 4px; }

/* ── 幅ごとの調整 ── */
@media (max-width: 1180px) {
  .head-in { gap: 20px; }
  .gnav ul { gap: 20px; }
  .head-cta .btn-sub { display: none; }
}

/* ナビをメニューに畳む（タブレット・スマホ） */
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding: 8px 12px; min-height: 44px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; position: relative; transition: transform .2s, background-color .2s; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn .bars::before { top: -6px; }
  .menu-btn .bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .head-cta { margin-left: auto; }
  .head-cta .btn-sub { display: inline-flex; }
  .gnav { position: fixed; inset: 72px 0 0; margin: 0; background: var(--paper); border-top: 1px solid var(--rule); padding: 16px 24px 32px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .gnav.is-open { visibility: visible; opacity: 1; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--rule); }
  .gnav a { display: block; padding: 16px 4px; font-size: 18px; border-bottom: 0; }
  .gnav a[aria-current="page"] { border-bottom: 0; }
  .gnav .gnav-cta { display: grid; gap: 10px; border-bottom: 0; padding-top: 24px; }
  .gnav .gnav-cta .btn { display: flex; padding: 12px 20px; font-size: 17px; }
  body.menu-open { overflow: hidden; }

  .fv { padding: 48px 0 56px; }
  .fv-in { grid-template-columns: 1fr; gap: 40px; }
  .fv h1 { font-size: clamp(26px, calc((100vw - 48px) / 12.6), 46px); }
  .fv-shots { max-width: 680px; width: 100%; margin-inline: auto; }
  .sec { padding: 80px 0; }
  .pain, .pain.is-sp { gap: 40px; }
  .feature-in { gap: 40px; }
  .case-top { gap: 32px; }
  .plan { padding: 28px 22px 24px; }
}

@media (max-width: 860px) {
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  .page-hero h1 { font-size: 34px; }
  .case-hero h1 { font-size: 30px; }
  .pain, .pain.is-sp { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .pain:nth-child(even) .pain-text { order: 0; }
  .pain .shot-pc { max-width: 640px; }
  .feature-in { grid-template-columns: 1fr; }
  .feature.is-rev .feature-text { order: 0; }
  .feature-shots { max-width: 640px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .case-list { grid-template-columns: repeat(2, 1fr); }
  .case-top { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .flow li:not(:last-child)::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 28px; }
  .ba-big { grid-template-columns: 1fr; }
  .ba-big .after { font-size: 36px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* 巡回ルートを縦に（スマホ） */
@media (max-width: 640px) {
  .route ol { grid-template-columns: 1fr; }
  .route li { display: grid; grid-template-columns: 48px 30px auto 1fr; align-items: center; column-gap: 12px; height: 48px; text-align: left; }
  .route .t { height: auto; font-size: 14px; }
  .route .dot { margin: 0; justify-self: center; }
  .route .is-now .dot { margin: 0; }
  .route small { padding-left: 4px; }
  .route-track { left: calc(48px + 12px + 13px); right: auto; top: 24px; bottom: 24px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, #C9D2CE 0 10px, transparent 10px 17px); }
  .route-fill { inset: 0 0 auto 0; width: auto; height: var(--to); transform-origin: center top; }
  .js .route-fill { transform: scaleY(0); }
  .js .route.is-drawn .route-fill { transform: scaleY(1); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .head-in { width: calc(100% - 32px); height: 64px; gap: 8px; }
  .gnav { inset: 64px 0 0; }
  .logo { font-size: 19px; }
  .logo svg { width: 28px; height: 28px; }
  .head-cta .btn-sub { display: none; }
  .head-cta .btn { padding: 6px 12px; font-size: 13px; min-height: 40px; }
  .menu-btn { padding: 8px 10px; }
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .demo-bar .for-pc { display: none; }
  .demo-bar .for-sp { display: inline; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .fv { padding: 36px 0 48px; }
  .fv-lead { font-size: 16px; margin: 18px 0 24px; }
  .fv .actions .btn { flex: 1 1 100%; }
  .fv-route { padding: 18px 16px 18px; margin-top: 32px; }
  .route-cap span { font-size: 12px; }
  .pain h3 { font-size: 20px; }
  .pain.is-sp .shot-sp { width: 200px; }
  .feat-grid, .case-list, .case-list.is-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .flow .pin { grid-row: span 2; margin: 0; }
  .flow h3 { margin: 8px 0 4px; }
  .ba-big .after { font-size: 32px; }
  .band { padding: 48px 0; }
  .band h2 { font-size: 26px; }
  .band .actions { width: 100%; }
  .band .actions .btn { flex: 1 1 100%; }
  .page-hero { padding: 28px 0 36px; margin-bottom: 24px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .lead { font-size: 16px; }
  .case-hero h1 { font-size: 25px; }
  .feature { padding: 56px 0; }
  .feature h2 { font-size: 28px; }
  .feature-lead { font-size: 18px; }
  .feature-shots.has-sp { padding-bottom: 28px; }
  .feature-shots.has-sp .shot-sp, .fv-shots .shot-sp { width: 30%; border-width: 4px; border-radius: 20px; }
  .fv-shots .shot-sp { right: -4px; }
  .facts > div { grid-template-columns: 7.5em 1fr; font-size: 14px; }
  .nf h1 { font-size: 28px; }
  .case-body .quote { padding: 22px 22px; }
  .case-body .quote p { font-size: 19px; }
  .case-body h2 { font-size: 22px; }
  .choices.is-cards { grid-template-columns: 1fr; }
  .confirm-list div { grid-template-columns: 1fr; gap: 2px; }
  .form-actions .btn { flex: 1 1 100%; }
  .news-list a { flex-direction: column; gap: 2px; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .plan .price b { font-size: 38px; }
  /* 比較表：スマホは項目名を1行に置き、その下に3つのプランの値を並べる（横スクロールなし） */
  .table-scroll { overflow: visible; }
  .cmp, .cmp thead, .cmp tbody { display: block; min-width: 0; }
  .cmp tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .cmp thead th:first-child { display: none; }
  .cmp th, .cmp td { padding: 10px 6px; font-size: 15px; }
  .cmp thead th { font-size: 16px; padding: 14px 6px; }
  .cmp thead small { font-size: 12px; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 14px 16px 2px; border-bottom: 0; font-size: 15px; }
  .cmp tbody tr:last-child > th { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
