/* ==========================================================
   ペットシッター おるすばん日和
   値はすべて 課題/HP/DESIGN.md（2026-10-02 確定）に合わせる。
   範囲：トップページ・ナビ・下層ページ（サービスと料金／お店について／今日のおるすばん／写真クレジット）。
   ========================================================== */

:root {
  /* 色（DESIGN.md 2-1） */
  --cream: #fcf5ec;       /* 地の色 */
  --linen: #f9f2e8;       /* 帯 */
  --sand: #f6ecdd;        /* 濃い帯・読み込み中の背景 */
  --paper: #fefcf8;       /* ヘッダー・面 */
  --sage: #f3f3e4;        /* 「こんな時に」の面 */
  --honey: #feebb2;       /* 地域ラベル */
  --blush: #fdeadb;       /* 休止中のお知らせ */
  --terracotta: #b4480f;  /* アイコン・強調・フォーカス */
  --ink: #3b2f25;         /* 本文・見出し */
  --ink-soft: #6b5a4c;    /* 補足・メニュー */
  --rule: #e6d9c6;        /* 罫 */
  --olive: #75673a;       /* サブボタン */
  --line: #06813d;        /* LINE */
  --line-hover: #056a32;

  /* 文字（DESIGN.md 3）：1書体・5段階 */
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fs-2xl: 2.625rem;   /* 42px */
  --fs-xl: 1.625rem;    /* 26px */
  --fs-l: 1.375rem;     /* 22px */
  --fs-m: 1.125rem;     /* 18px */
  --fs-s: 0.9375rem;    /* 15px */
  --fs-nav: 1rem;       /* 16px：PC のメニューだけの例外（DESIGN.md 3-2） */

  /* 余白（DESIGN.md 4-1） */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 40px; --s7: 64px; --s8: 96px;

  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --max: 1120px;
  --gutter: clamp(24px, 3.4vw, 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-m);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* フォーカス（DESIGN.md 5-1）：すべての部品で同じ */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 本文へスキップ（キーボード操作用） */
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  padding: var(--s2) var(--s4);
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-s); text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: var(--s2); }

/* ---------- ヘッダー（DESIGN.md 5-2） ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; margin-right: auto; }
.brand svg { width: 44px; height: auto; color: var(--terracotta); flex: none; }
.brand-name { font-size: var(--fs-l); font-weight: 700; line-height: 1.3; letter-spacing: .06em; }
.brand-name small { display: block; font-size: var(--fs-s); font-weight: 400; color: var(--ink-soft); letter-spacing: .08em; }

.nav ul { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-nav); color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav a:hover { color: var(--terracotta); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

.menu-btn {
  display: none;
  align-items: center; gap: var(--s2);
  min-height: 44px; min-width: 44px; padding: 0 var(--s3);
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: var(--fs-s); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .close-icon { display: none; }
.menu-btn[aria-expanded="true"] .open-icon { display: none; }
.menu-btn[aria-expanded="true"] .close-icon { display: block; }

/* ---------- ボタン（DESIGN.md 5-2） ---------- */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s5);
  background: var(--line); color: #fff;
  font-size: var(--fs-m); font-weight: 700; letter-spacing: .04em; line-height: 1.4;
  text-decoration: none; border-radius: var(--radius);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn-line:hover { background: var(--line-hover); }
.btn-line:active { transform: translateY(1px); }
.btn-line svg { width: 22px; height: 22px; flex: none; }
.btn-line .chev { width: 14px; height: 14px; margin-left: var(--s1); }
.btn-line.is-small { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-s); gap: var(--s2); }
.btn-line.is-small svg { width: 18px; height: 18px; }

/* ---------- ファーストビュー（DESIGN.md 6-1） ---------- */
.hero { background: var(--linen); }
.hero .wrap {
  /* 文章の列は h1 の長さに合わせ、写真は残りの幅を使う（h1 が写真に重ならないように） */
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  align-items: center; gap: var(--s6);
  padding-top: var(--s7); padding-bottom: var(--s7);
}
.hero-text { display: grid; gap: var(--s5); }
.hero h1 { font-size: var(--fs-2xl); font-weight: 500; line-height: 1.6; letter-spacing: .06em; }
.hero h1 .accent { color: var(--terracotta); }
.hero h1 .line, .hero h1 .nobr { white-space: nowrap; }  /* 「お留守／番」のような途中の改行を防ぐ */
.hero-lead { color: var(--ink-soft); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 65% 50%; border-radius: var(--radius); background: var(--sand); }
.hero-photo figcaption { margin-top: var(--s2); font-size: var(--fs-s); color: var(--ink-soft); }

/* 地域ラベル＋要約＋LINE＋お知らせ */
.intro { padding: var(--s6) 0 var(--s7); }
.intro .wrap { display: grid; justify-items: center; gap: var(--s5); text-align: center; }
.area {
  display: inline-block; padding: var(--s1) var(--s4);
  background: var(--honey); border-radius: var(--radius);
  font-size: var(--fs-s); font-weight: 700;
}
.summary { max-width: 40em; }
.summary p + p { margin-top: 0; }

.notice {
  display: flex; align-items: flex-start; gap: var(--s4);
  width: 100%; max-width: 40em;
  padding: var(--s4) var(--s5);
  background: var(--blush); border-radius: var(--radius);
  text-align: left;
}
.notice svg { width: 24px; height: 24px; flex: none; color: var(--terracotta); margin-top: 3px; }
.notice strong { display: block; font-weight: 700; }
.notice p { color: var(--ink); }

/* LINE 準備中の案内（移動先） */
.line-info {
  width: 100%; max-width: 40em;
  padding: var(--s5);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  text-align: left;
}
.line-info h2 { font-size: var(--fs-l); font-weight: 700; line-height: 1.6; margin-bottom: var(--s2); }
.line-info p { color: var(--ink-soft); }
.line-info:target, .line-info:focus { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- 準備中ページ ---------- */
.placeholder { padding: var(--s7) 0; }
.placeholder h1 { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.5; margin-bottom: var(--s4); }
.placeholder p { color: var(--ink-soft); max-width: 40em; }
.placeholder p + p { margin-top: var(--s3); }
.text-link { color: var(--terracotta); font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }

/* ---------- フッター ---------- */
.footer { padding: var(--s6) 0; background: var(--sand); font-size: var(--fs-s); color: var(--ink-soft); line-height: 1.7; }
.footer p + p { margin-top: var(--s2); }
.footer a { color: var(--ink); text-underline-offset: 3px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-s); }

/* 画面には出さず、読み上げにだけ伝える */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- スマホ下部の固定バー（DESIGN.md 5-2・決定 #8） ---------- */
.bottombar { display: none; }

/* ---------- 動き（DESIGN.md 7） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: fade 1.2s var(--ease) both; }
  .hero-text > * { animation: rise .9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .1s; }
  .nav-panel { transition: opacity .3s var(--ease), transform .3s var(--ease); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   1080px 以下：メニューをボタンで開く形に切り替える（DESIGN.md 4-2）
   ========================================================== */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .header .btn-line.is-small { display: none; }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s3) var(--gutter) var(--s5);
  }
  .nav-panel[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { display: flex; min-height: 52px; font-size: var(--fs-m); border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; box-shadow: inset 3px 0 0 var(--ink); padding-left: var(--s3); }
  .nav-panel .btn-line { width: 100%; margin-top: var(--s5); }

  /* ファーストビューは写真→文字の縦並びにする（h1 を 1 行ずつ収めるため） */
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s5); padding-top: 0; padding-bottom: var(--s6); }
  .hero-photo { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .hero-photo img { aspect-ratio: 16 / 9; border-radius: 0; }
}
@media (min-width: 1081px) {
  .nav-panel { display: contents; }
  .nav-panel .btn-line { display: none; }
}

/* ==========================================================
   860px 以下：スマホ（DESIGN.md 3-2・4・6-1）
   ========================================================== */
@media (max-width: 860px) {
  :root {
    --fs-2xl: 1.875rem;  /* 30px */
    --fs-xl: 1.375rem;   /* 22px */
    --fs-l: 1.1875rem;   /* 19px */
    --fs-m: 1.0625rem;   /* 17px */
    --header-h: 56px;
    --gutter: 16px;
  }
  .brand svg { width: 36px; }
  .brand-name { font-size: var(--fs-m); }
  .brand-name small { font-size: 0.75rem; }

  .hero-photo img { aspect-ratio: 4 / 3; }

  .intro { padding: var(--s5) 0 var(--s6); }
  .intro .btn-line { width: 100%; }
  .summary { text-align: left; }  /* 中央そろえのままだと折り返しが読みにくいため */
  .notice { padding: var(--s4); }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .bottombar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule);
  }
  .bottombar .btn-line { width: 100%; }
}

@media (max-width: 480px) {
  /* 細い画面では「いつも通りの／お留守番。」の位置でだけ改行できるようにする */
  .hero h1 .line { white-space: normal; }
}

@media (max-width: 360px) {
  .brand-name small { display: none; }
  .menu-btn .label { display: none; }
}

/* ==========================================================
   下層ページ（DESIGN.md 5・6-2）
   部品の形は草案どおり：角 2px、線のアイコン、影なし、同じ形のカードを並べるだけにしない。
   ========================================================== */

/* ページの見出し帯：パンくず → h1 → リード → 要約 */
.page-head { background: var(--linen); padding: var(--s6) 0 var(--s7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: var(--fs-s); color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--s2); }
.breadcrumb a { color: var(--ink-soft); text-underline-offset: 3px; }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.page-lead { margin-top: var(--s4); max-width: 40em; color: var(--ink-soft); }
.page-summary {
  margin-top: var(--s5); max-width: 44em;
  padding: var(--s4) var(--s5);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
}

/* セクション */
.section { padding: var(--s7) 0; }
.section.bg-linen { background: var(--linen); }
.section.bg-sand { background: var(--sand); }
.section.bg-sage { background: var(--sage); }
.section h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.section-lead { margin-top: var(--s3); max-width: 40em; color: var(--ink-soft); }
.section-body { margin-top: var(--s6); }
.section h3 { font-size: var(--fs-l); font-weight: 700; line-height: 1.6; }

.fine { margin-top: var(--s3); font-size: var(--fs-s); color: var(--ink-soft); }

/* 写真と文章の組（12 列を 6／5 で分ける） */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--s5); align-items: center; }
.split + .split { margin-top: var(--s7); }
.split-body { grid-column: 1 / 7; display: grid; gap: var(--s4); }
.split-photo { grid-column: 8 / 13; margin: 0; }
.split.reverse .split-body { grid-column: 7 / 13; grid-row: 1; }
.split.reverse .split-photo { grid-column: 1 / 6; grid-row: 1; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.split-photo figcaption { margin-top: var(--s2); font-size: var(--fs-s); color: var(--ink-soft); }

/* 線のアイコンつきリスト */
.icon-list { display: grid; gap: var(--s3); }
.icon-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; }
.icon-list svg { width: 24px; height: 24px; color: var(--terracotta); margin-top: 4px; }
.icon-list small { display: block; font-size: var(--fs-s); color: var(--ink-soft); }

/* 2 列のまとまり（左右で大きさを変える） */
.care { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); }
.care-box { padding: var(--s5); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.care-box h3 { margin-bottom: var(--s4); }
.care-box.is-sub { background: transparent; border-style: dashed; }

/* 表（料金・比較・クレジット） */
.table-wrap + .table-wrap { margin-top: var(--s6); }
.table { width: 100%; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; }
.table caption { text-align: left; font-size: var(--fs-l); font-weight: 700; padding-bottom: var(--s3); }
.table th, .table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table thead th { background: var(--sand); font-size: var(--fs-s); font-weight: 700; color: var(--ink); }
.table tbody th { font-weight: 700; }
.table.stack tbody th { width: 24%; }  /* 項目名が狭い欄で折り返さないように */
.compare-text { display: grid; gap: var(--s4); max-width: 44em; }
.compare-text + .table-scroll { margin-top: var(--s5); }
.table .yen { text-align: right; white-space: nowrap; font-weight: 700; }
.table .note { font-size: var(--fs-s); color: var(--ink-soft); }

/* ご利用の流れ（番号つきの縦の線） */
.flow { counter-reset: step; display: grid; gap: var(--s5); margin: 0; padding: 0 0 0 52px; list-style: none; position: relative; }
.flow::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 1px solid var(--terracotta); }
.flow li { position: relative; }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -52px; top: 0;
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--cream); border: 1px solid var(--terracotta); border-radius: 50%;
  color: var(--terracotta); font-weight: 700; font-size: var(--fs-s);
}
.section.bg-linen .flow li::before { background: var(--linen); }
.flow h3 { font-size: var(--fs-m); }
.flow p { color: var(--ink-soft); }

/* よくある質問 */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: grid; grid-template-columns: 36px 1fr 24px; gap: var(--s3); align-items: center;
  min-height: 56px; padding: var(--s3) 0; cursor: pointer; list-style: none; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--terracotta); border-radius: var(--radius); color: var(--terracotta);
}
.faq summary::after { content: "+"; font-size: var(--fs-l); font-weight: 400; text-align: center; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--s5) calc(36px + var(--s3)); color: var(--ink-soft); }
.faq .answer p + p { margin-top: var(--s2); }

/* 定義リスト（お店の情報・動物取扱業の表示） */
.info { margin: 0; border-top: 1px solid var(--rule); background: var(--paper); }
.info div { display: grid; grid-template-columns: 13em 1fr; gap: var(--s4); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); }
.info dt { font-weight: 700; }
.info dd { margin: 0; }

/* LINE への帯 */
.line-band { padding: var(--s7) 0; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.line-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s6); align-items: center; }
.line-band h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.5; }
.line-band p { margin-top: var(--s2); color: var(--ink-soft); }

/* 今日のおるすばん：絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.filters button {
  min-height: 44px; padding: 0 var(--s4);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: var(--fs-s); cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }

/* 今日のおるすばん：写真カード（列ごとに上下をずらす） */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.gallery > li:nth-child(3n+2) { margin-top: var(--s6); }
.card {
  display: grid; gap: var(--s3); width: 100%; padding: 0;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.card-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.card-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.04); }
.card-date {
  position: absolute; left: 0; top: 0; padding: var(--s1) var(--s3);
  background: var(--paper); font-size: var(--fs-s); line-height: 1.4; font-variant-numeric: tabular-nums;
}
.card-date b { display: block; font-size: var(--fs-l); }
.card-title { font-weight: 700; line-height: 1.6; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--fs-s); color: var(--ink-soft); }
.tag { padding: 0 var(--s2); background: var(--honey); border-radius: var(--radius); color: var(--ink); }
.gallery li[hidden] { display: none; }
.empty { color: var(--ink-soft); }

/* 今日のおるすばん：記事のダイアログ */
.post {
  width: min(720px, calc(100vw - 2 * var(--s4))); max-height: calc(100vh - 2 * var(--s4));
  padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.post::backdrop { background: rgb(59 47 37 / .55); }
.post-close {
  position: sticky; top: var(--s3); z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; margin: var(--s3) var(--s3) -56px auto;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 50%; cursor: pointer; font-size: var(--fs-l);
}
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-inner { display: grid; gap: var(--s4); padding: var(--s5) var(--s6) var(--s6); }
.post-inner h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.5; }
.post-cta { display: grid; gap: var(--s3); margin-top: var(--s2); padding: var(--s5); background: var(--linen); border-radius: var(--radius); }
.post-cta p { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .card-photo img { transition: none; }
}

@media (max-width: 860px) {
  .page-head { padding: var(--s5) 0 var(--s6); }
  .page-summary { padding: var(--s4); }
  .section { padding: var(--s6) 0; }
  .section-body { margin-top: var(--s5); }

  /* 写真と文章の組は、スマホでは写真を先に（DESIGN.md 6-2） */
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .split + .split { margin-top: var(--s6); }
  .split .split-body, .split .split-photo,
  .split.reverse .split-body, .split.reverse .split-photo { grid-column: 1; grid-row: auto; }
  .split-photo { order: -1; }

  .care { grid-template-columns: 1fr; }
  .care-box { padding: var(--s4); }

  /* 表は「項目｜金額」の 1 行目と「補足」の 2 行目に組み替える（DESIGN.md 6-2） */
  .table.stack thead { display: none; }
  .table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); }
  .table.stack th, .table.stack td { padding: 0; border: 0; }
  .table.stack tbody th { width: auto; }
  .table.stack .yen { grid-column: 2; grid-row: 1; }
  .table.stack .note { grid-column: 1 / -1; }
  /* 比較表・クレジットの表は横に並べたまま、画面の幅に収めて折り返す。
     それでも収まらない場合は、表の部分だけを横にスクロールする */
  .table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
  .table-scroll .table th, .table-scroll .table td { padding: var(--s2) var(--s3); }

  .info div { grid-template-columns: 1fr; gap: 0; }
  .line-band { padding: var(--s6) 0; }
  .line-band .wrap { grid-template-columns: 1fr; }
  .line-band .btn-line { width: 100%; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .gallery > li:nth-child(3n+2) { margin-top: 0; }
  .card-date b { font-size: var(--fs-m); }
  .post-inner { padding: var(--s4) var(--s4) var(--s5); }
}

/* ==========================================================
   料金のめやす計算（サービスと料金）
   入力欄の枠は ink-soft（背景との差 3:1 以上）。エラーの色は DESIGN.md 2-1 の error。
   ========================================================== */
.estimate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.est-form { display: grid; gap: var(--s5); }
.est-form fieldset { margin: 0; padding: var(--s4) var(--s5) var(--s5); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.est-form legend { padding: 0 var(--s2); font-weight: 700; }
.choices { display: grid; gap: var(--s1); }
.fields + .choices { margin-top: var(--s4); }
.choice {
  display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s3); align-items: center;
  min-height: 44px; cursor: pointer;
}
.choice span { font-size: var(--fs-s); color: var(--ink-soft); white-space: nowrap; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--terracotta); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: var(--s4) var(--s5); }
.field { display: grid; gap: var(--s1); align-content: start; }
.field label { font-weight: 700; line-height: 1.5; }
.field label small { display: block; font-weight: 400; font-size: var(--fs-s); color: var(--ink-soft); }
.num { display: inline-flex; align-items: center; gap: var(--s2); }
.num input {
  width: 5.5em; min-height: 44px; padding: 0 var(--s3);
  background: #fff; border: 1px solid var(--ink-soft); border-radius: var(--radius);
  font: inherit; color: var(--ink); text-align: right;
}
.num input[aria-invalid="true"] { border-color: #a8400d; border-width: 2px; }
.field-error { font-size: var(--fs-s); color: #a8400d; font-weight: 700; }
.btn-sub {
  justify-self: start; min-height: 44px; padding: 0 var(--s5);
  background: transparent; border: 1px solid var(--ink-soft); border-radius: var(--radius);
  font-size: var(--fs-s); cursor: pointer; transition: background-color .25s var(--ease);
}
.btn-sub:hover { background: var(--paper); }

.est-result {
  position: sticky; top: calc(var(--header-h) + var(--s4));
  display: grid; gap: var(--s4); padding: var(--s5);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
}
.est-summary { display: grid; gap: var(--s1); }
.est-label { font-size: var(--fs-s); color: var(--ink-soft); }
.est-total { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
/* 試算であることの注意。合計のすぐ下に、地の色を変えて目立たせる */
.est-disclaimer {
  padding: var(--s2) var(--s3);
  background: var(--blush); border: 1px solid var(--terracotta); border-radius: var(--radius);
  font-size: var(--fs-s); font-weight: 700; line-height: 1.6;
}
.est-result .table th, .est-result .table td { padding: var(--s2) 0; }
.est-result .table tbody th { width: auto; font-size: var(--fs-s); }
.est-result .is-discount th, .est-result .is-discount .yen { color: var(--terracotta); }
.est-notes { display: grid; gap: var(--s2); padding-left: 1.2em; list-style: disc; font-size: var(--fs-s); color: var(--ink-soft); }

/* 結果の表は PC でも「項目｜金額」と「補足」の 2 段にする（欄が狭いため） */
.est-result .table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.est-result .table.stack th, .est-result .table.stack td { padding: 0; border: 0; }
.est-result .table.stack .yen { grid-column: 2; grid-row: 1; }
.est-result .table.stack .note { grid-column: 1 / -1; }

/* スマホだけ：入力中も合計が見えるように、画面上部に残す帯 */
.est-mini { display: none; }

@media (max-width: 860px) {
  .estimate { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .est-mini {
    position: sticky; top: var(--header-h); z-index: 5;
    display: flex; align-items: center; gap: var(--s3);
    margin: 0 calc(-1 * var(--gutter)); padding: var(--s2) var(--gutter);
    background: var(--ink); color: var(--paper); font-size: var(--fs-s);
  }
  .est-mini b { font-size: var(--fs-l); font-variant-numeric: tabular-nums; }
  .est-mini a { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-underline-offset: 3px; }
  .est-result:focus { outline: 2px solid var(--terracotta); outline-offset: 3px; }
  .est-form fieldset { padding: var(--s3) var(--s4) var(--s4); }
  .est-result { position: static; padding: var(--s4); }
}

/* ==========================================================
   トップページ：最初の画面より下（DESIGN.md 5-2・6-1）
   並び：今日のおるすばん → 3つの特長 → こんな時に → 料金の目安 → よくある質問＋お店の情報
   ========================================================== */
.section h2.center { text-align: center; }  /* 「3つの特長」だけ中央にそろえる（DESIGN.md 3-2） */
.more { margin-top: var(--s5); font-size: var(--fs-s); }

/* 今日のおるすばん（写真の帯）：PC は4枚。矢印かスワイプで動かし、自動では動かさない */
.today { padding-top: 0; }
.strip-frame {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-areas: "title title title" "prev strip next";
  align-items: center; gap: var(--s5) var(--s3);
}
.strip-frame h2 { grid-area: title; }
.strip-btn.is-prev { grid-area: prev; }
.strip-btn.is-next { grid-area: next; }
.strip-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease), opacity .25s var(--ease);
}
.strip-btn svg { width: 20px; height: 20px; }
.strip-btn:hover { border-color: var(--ink); }
.strip-btn[aria-disabled="true"] { opacity: .35; cursor: default; border-color: var(--rule); }
.strip {
  grid-area: strip;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--s5)) / 4); gap: var(--s5);
  /* フォーカスの枠が切れないように、内側に少し余白をとる */
  margin: -6px; padding: 6px; scroll-padding-inline: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip > li { scroll-snap-align: start; }
.strip .card { text-decoration: none; }
.strip-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4);
  margin-top: var(--s4); padding: 0 calc(44px + var(--s3));
}
.strip-dots { grid-column: 2; display: flex; gap: var(--s2); }
.strip-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); transition: background-color .25s var(--ease); }
.strip-dots .is-current { background: var(--terracotta); }
.strip-foot .text-link { grid-column: 3; justify-self: end; font-size: var(--fs-s); }

/* 3つの特長：1件目は写真つきで大きく、2・3件目は線のアイコン＋文章（DESIGN.md 5-2） */
.features { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5) var(--s6); align-items: center; }
.feature {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); align-items: start;
  padding: var(--s5); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
}
.feature > svg { width: 40px; height: 40px; color: var(--terracotta); }
.feature.is-main { grid-row: 1 / 3; grid-template-columns: 1fr; padding: 0; background: none; border: 0; }
.feature-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.feature h3 { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.feature h3 svg { width: 28px; height: 28px; flex: none; color: var(--terracotta); }
.feature p { color: var(--ink-soft); }

/* こんな時に：sage の面に、線のアイコン＋短い言葉を6つ */
.scenes { padding: var(--s6); background: var(--sage); border-radius: var(--radius); }
.scene-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.scene-list li { display: grid; justify-items: center; gap: var(--s3); text-align: center; font-size: var(--fs-s); font-weight: 700; line-height: 1.5; }
.scene-list svg { width: 40px; height: 40px; color: var(--terracotta); }

/* 料金の目安：写真｜表｜出張費と「詳しく見る」 */
.price-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--s6); align-items: center; }
.price-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.price-top .table th, .price-top .table td { vertical-align: middle; }
.price-top .table tbody th .note { display: block; font-weight: 400; }
.price-side { display: grid; gap: var(--s5); }
.price-fee {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  font-weight: 700;
}
.price-fee small { display: block; font-size: var(--fs-s); font-weight: 400; color: var(--ink-soft); }
.price-fee b { font-size: var(--fs-l); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* サブボタン「詳しく見る」（DESIGN.md 5-2） */
.btn-more {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  background: var(--olive); color: #fff;
  font-size: var(--fs-s); font-weight: 700; text-decoration: none; border-radius: var(--radius);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn-more:hover { background: var(--ink); }
.btn-more:active { transform: translateY(1px); }
.btn-more svg { width: 14px; height: 14px; flex: none; }

/* よくある質問＋お店の情報：PC は左右2列 */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); align-items: start; }
.duo .section-body { margin-top: var(--s5); }
.duo .info div { grid-template-columns: 7em 1fr; }

/* セクションが画面に入ったら、下から 12px 上がりながら現れる（DESIGN.md 7）。
   JavaScript が動くときだけ（js-reveal）隠すので、動かない環境でも内容は見える */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .strip { scroll-behavior: smooth; }
}

@media (max-width: 1080px) {
  .scene-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s5); }
}

@media (max-width: 860px) {
  /* 写真の帯：2枚半を見せて、続きがあることを示す。矢印は見出しの右に置く */
  .strip-frame {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-areas: "title prev next" "strip strip strip";
    gap: var(--s4) var(--s2);
  }
  .strip {
    grid-auto-columns: calc((100% - 2 * var(--s3)) / 2.5); gap: var(--s3);
    margin: -6px calc(-1 * var(--gutter)); padding: 6px var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .strip .card-title { font-size: var(--fs-s); }
  .strip-foot { padding: 0; grid-template-columns: auto 1fr; }
  .strip-dots { grid-column: 1; }
  .strip-foot .text-link { grid-column: 2; }

  .features { grid-template-columns: minmax(0, 1fr); }
  .feature.is-main { grid-row: auto; }
  .feature { grid-template-columns: 32px 1fr; padding: var(--s4); }
  .feature > svg { width: 32px; height: 32px; }

  /* こんな時に：アイコン＋言葉を1行ずつ、縦に6行 */
  .scenes { padding: var(--s5) var(--s4); }
  .scene-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s3); }
  .scene-list li {
    grid-template-columns: 28px 1fr; justify-items: start; align-items: center; gap: var(--s3);
    padding: var(--s3) 0; border-bottom: 1px solid var(--rule); text-align: left; font-size: var(--fs-m);
  }
  .scene-list li:last-child { border-bottom: 0; }
  .scene-list svg { width: 28px; height: 28px; }

  /* 料金の目安：表 → 出張費 → 「詳しく見る」。写真は出さない（DESIGN.md 5-2） */
  .price-top { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .price-photo { display: none; }
  .price-fee { padding: var(--s4); }
  .btn-more { width: 100%; }

  .duo { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
}
