/* ひなたドライブ: 日向の黄色と深い緑。丸みのある太い形で、飼い主の「迷い」に先に答える並びにする。
   背景は黄色・クリーム・白の3段で区切り、影とグラデーションは使わない */
:root {
  --cream: #fff8e8;
  --sun: #f6c33b;
  --sun-soft: #fff3cf;
  --ink: #1f3a2e;
  --mute: #55665c;
  --line: #e4d9b8;
  --red: #c4432b;
  --round: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--round); font-size: 16px; line-height: 1.85; padding-bottom: 76px; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 40; }

.head { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--sun); border-bottom: 3px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; text-decoration: none; white-space: nowrap; }
.paw { width: 26px; height: 26px; fill: var(--ink); }
.menu-btn { width: 92px; height: 40px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.gnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--sun); border-bottom: 3px solid var(--ink); padding: 8px 20px 20px; flex-direction: column; }
.gnav.open { display: flex; }
.gnav a { text-decoration: none; padding: 12px 0; border-bottom: 2px dotted var(--ink); font-weight: 700; }
.gnav .gnav-cta { margin-top: 16px; background: var(--ink); color: var(--cream); text-align: center; border: 0; border-radius: 999px; padding: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--cream); font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; border: 3px solid var(--ink); cursor: pointer; text-align: center; }
.btn:hover { background: #2f5442; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sun-soft); }

.hero { display: grid; gap: 28px; padding: 32px 20px 48px; max-width: 1120px; margin: 0 auto; }
.pill { display: inline-block; background: var(--ink); color: var(--sun); font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; }
h1 { font-size: 38px; font-weight: 800; letter-spacing: .02em; margin-bottom: 16px; }
.lead { max-width: 32em; }
.hero-price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; }
.hero-price strong { font-size: 52px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-price small { font-size: 22px; }
.hero-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero-art svg { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: 28px; background: var(--sun-soft); }

.sec { padding: 48px 20px; max-width: 1120px; margin: 0 auto; }
.sec.alt { max-width: none; background: var(--sun-soft); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding-left: 0; padding-right: 0; }
.sec.alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 19px; margin-bottom: 8px; }
.sub { color: var(--mute); margin-bottom: 20px; }
.sub.small { font-size: 14px; margin: 16px 0 0; }

/* 料金: 選んだタブは色の反転だけで、太さ・幅は変えない。表と説明の箱は高さを固定して下が動かないようにする */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button { flex: 1; height: 52px; border: 3px solid var(--ink); border-radius: 999px; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--sun); }
.price-wrap { display: grid; gap: 20px; }
.price { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; background: #fff; border: 3px solid var(--ink); }
.price th, .price td { padding: 14px 16px; text-align: left; border-bottom: 2px solid var(--line); font-weight: 700; }
.price tbody tr:last-child > * { border-bottom: 0; }
.price thead th { background: var(--sun); font-size: 13px; border-bottom: 3px solid var(--ink); }
.price td { font-size: 22px; font-weight: 800; text-align: right; }
.price thead th:last-child { text-align: right; }
.fit { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 16px 18px; display: grid; }
/* 3車種ぶんの説明を同じ場所に重ね、一番長い物に高さが揃う。切り替えても下が動かない */
.fit-item { grid-area: 1 / 1; visibility: hidden; }
.fit-item[data-on] { visibility: visible; }
.fit-title { font-weight: 800; font-size: 18px; margin-bottom: 4px; }

.flow { list-style: none; margin: 0 auto; padding: 0; counter-reset: s; display: grid; gap: 0; position: relative; }
.flow li { counter-increment: s; position: relative; padding: 0 0 22px 60px; }
.flow li::before { content: counter(s); position: absolute; left: 20px; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); text-align: center; line-height: 34px; font-weight: 800; }
.flow li::after { content: ""; position: absolute; left: 39px; top: 44px; bottom: 4px; border-left: 3px dotted var(--ink); }
.flow li:last-child::after { display: none; }
.flow b { display: block; font-size: 18px; font-weight: 800; }
.flow span { color: var(--mute); }

.rules { display: grid; gap: 28px; }
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li { padding: 10px 0 10px 28px; border-bottom: 2px dotted var(--line); position: relative; }
.rules li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }

.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 20px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 52px 14px 18px; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 18px; top: 14px; font-weight: 800; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 18px 16px; color: var(--mute); }

.form { display: grid; gap: 0 20px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; font-size: 14px; }
input, select { font: inherit; font-size: 16px; width: 100%; height: 52px; padding: 0 16px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); background: #fff1ed; }
.err { min-height: 1.6em; line-height: 1.6; font-size: 13px; font-weight: 700; color: var(--red); }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--ink); }
.submit-row { display: flex; flex-direction: column; gap: 12px; }
.status { min-height: 3.7em; font-size: 14px; color: var(--mute); }
.status[data-state="error"] { color: var(--red); font-weight: 700; }

.shop { margin: 0 auto; }
.shop div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 12px 20px; border-bottom: 2px dotted var(--ink); }
.shop dt { font-weight: 800; }
.shop dd { margin: 0; }

.foot { padding: 24px 20px 32px; text-align: center; }
.sample-note { font-size: 12px; color: var(--mute); }

/* 画面下の予約帯: 常に同じ場所に出ているだけで、操作で中身は変わらない */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 16px; background: var(--sun); border-top: 3px solid var(--ink); }
.bar .btn { flex: 1; min-height: 48px; padding: 0 12px; }
.bar .btn.ghost { background: var(--cream); }

@media (min-width: 880px) {
  .head { padding: 0 40px; }
  .menu-btn { display: none; }
  .gnav { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; padding: 0; border: 0; background: transparent; }
  .gnav a { padding: 0; border: 0; font-size: 15px; }
  .gnav .gnav-cta { margin: 0; padding: 0 22px; height: 44px; display: inline-flex; align-items: center; }
  body { padding-bottom: 0; }
  .bar { display: none; }
  .hero { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 64px 40px 80px; align-items: center; }
  h1 { font-size: 54px; }
  .hero-actions { flex-direction: row; }
  .sec { padding: 80px 40px; }
  .sec.alt > * { padding-left: 40px; padding-right: 40px; }
  h2 { font-size: 34px; }
  .price-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow li { padding: 52px 0 0 0; }
  .flow li::before { left: 0; }
  .flow li::after { left: 46px; right: -12px; top: 18px; bottom: auto; border-left: 0; border-top: 3px dotted var(--ink); }
  .rules { grid-template-columns: 1fr 1fr; gap: 56px; }
  .form { grid-template-columns: 1fr 1fr; }
  .field.wide, .submit-row { grid-column: 1 / -1; }
  .submit-row .btn { align-self: flex-start; min-width: 320px; }
}
@media (max-width: 879px) {
  .field.wide { grid-column: auto; }
}
