/* 整体院の予約サイト。
   色は、藍染めの施術着と、温めるための湯たんぽから取っている。 */
:root {
  --ai: #1d3b47;
  --ai-soft: #4f7078;
  --bone: #f1f4f1;
  --mist: #dbe4e1;
  --warm: #e9a53f;
  --warm-pale: #fbe9c6;
  --white: #ffffff;
  --alert: #a3341c;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;

  --ai-mid: #2f6072;   /* 藍の中間の濃さ */
  --asagi: #dcebec;    /* 浅葱。藍をうすく染めた色 */
  /* 豆絞りの手ぬぐいの柄。帯の地に使う */
  --mame: radial-gradient(circle, rgba(29, 59, 71, 0.15) 0 3px, transparent 3.6px) 0 0 / 22px 22px;
  --mame-white: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0 3px, transparent 3.6px) 0 0 / 22px 22px;
  --sat: #2a62a8;
  --sun: #b23a48;
  --shade: #e9edeb;

  /* 実在の予約サイト10件を測った範囲(本文12〜16px、行間1.4〜1.6倍、節の見出し18〜20px)に寄せている。
     1店だけのサイトなので、範囲の上の端を使う。 */
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
/* display を指定した部品でも、hidden 属性で確実に隠す */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ai);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, fieldset, legend, pre { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }

h2 {
  text-wrap: balance;
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.lead { max-width: 38rem; margin-bottom: 2rem; }
.small { font-size: var(--step--1); line-height: 1.7; color: var(--ai-soft); }

.wrap { width: min(100% - 2.5rem, 64rem); margin-inline: auto; }

.sample-note {
  background: var(--ai);
  color: var(--bone);
  font-size: var(--step--1);
  line-height: 1.6;
  padding: 0.5rem 1.25rem;
  text-align: center;
}

.button {
  display: inline-block;
  background: var(--ai);
  color: var(--bone);
  border: 0;
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #12262e; }
.button:disabled { opacity: 0.6; cursor: wait; }
.button-wide { width: 100%; }

/* ---------- 上の帯 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem max(1.25rem, calc((100% - 64rem) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mist);
}
.brand { font-weight: 900; font-size: 1.25rem; text-decoration: none; letter-spacing: 0.08em; }
.top nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; font-weight: 700; }
.top nav a { text-decoration: none; padding: 0.3rem 0; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.top .nav-book {
  background: var(--ai);
  color: var(--white);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
}

/* 最初の画面の写真。測った10件のうち6件が、ここに写真を置いている */
.shop-photo {
  display: block;
  width: min(100% - 2.5rem, 64rem);
  height: 15rem;
  margin: 1.5rem auto 0;
  object-fit: cover;
  object-position: 50% 70%;
}

/* 店の基本の情報。最初の画面で、何の店か・どこにあるか・予約できるかが分かるようにする */
.shop {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
  padding: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.shop-kind { font-size: var(--step--1); color: var(--ai-soft); }
.shop-name { font-weight: 700; font-size: var(--step-2); line-height: 1.4; }
.shop-facts { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font-size: 0.9rem; margin-top: 0.25rem; }
.shop-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- 冒頭: 背骨の図から選ぶ ---------- */
.hero {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
  padding: 2.5rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1fr 12rem 19rem;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.parts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.parts button {
  background: var(--white);
  border: 2px solid var(--ai);
  border-radius: 999px;
  min-width: 4.2rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.parts button[aria-pressed="true"] { background: var(--warm); }

.spine { display: block; width: 100%; height: auto; overflow: visible; }
.bone-group { fill: var(--ai); cursor: pointer; transition: fill 0.2s; }
.bone-group:hover { fill: var(--ai-soft); }
.bone-group.is-on { fill: var(--warm); }

.advice {
  align-self: center;
  border: 2px dashed var(--ai-soft);
  border-radius: 1.5rem;
  padding: 1.75rem;
  min-height: 17rem;
  display: grid;
  align-content: center;
}
.advice.is-filled { background: var(--warm-pale); border: 0; border-left: 0.375rem solid var(--warm); border-radius: 0; }
.advice-empty { color: var(--ai-soft); }
.advice-part { font-size: var(--step--1); font-weight: 700; }
.advice-menu { font-weight: 700; font-size: var(--step-2); line-height: 1.4; margin-top: 0.25rem; }
.advice-fact { font-weight: 700; margin-top: 0.25rem; }
.advice-reason { margin: 0.75rem 0 1.25rem; font-size: 0.9rem; }

/* ---------- 色のついた帯 ---------- */
.band { background: var(--mame), var(--bone); padding: 4rem 0; }
/* 柄の上では、見出しと文章の下だけ地を塗って読みやすくする */
.band h2, .band .lead, .band .small, .band .phone, .band .hours-grid p,
.band .menu-notes dt, .band .menu-notes dd, .band .hours-table, .band .route {
  width: fit-content;
  background: var(--bone);
  box-shadow: -0.4rem 0 0 var(--bone), 0.4rem 0 0 var(--bone);
}

/* メニューは1件ずつの札。それぞれに予約のボタンを付ける */
.menu-list { display: grid; gap: 0.6rem; max-width: 46rem; }
.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.25rem 1.25rem;
  align-items: center;
  background: var(--white);
  border-left: 0.375rem solid var(--ai-mid);
  padding: 0.75rem 0.75rem 0.75rem 1rem;
}
.menu-list li:has(.badge) { border-left-color: var(--warm); }
.menu-name { font-weight: 700; }
.menu-time { font-size: 0.9rem; color: var(--ai-soft); }
.menu-price { font-weight: 700; font-size: var(--step-1); }
.menu-book {
  background: var(--ai-mid);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.3rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-book:hover { background: var(--ai); }
.menu-notes { max-width: 44rem; margin-top: 2rem; display: grid; gap: 1rem; }
.menu-notes dt { font-weight: 700; }
.menu-notes dd { font-size: 0.9rem; }

/* ---------- 施術する人 ---------- */
.staff { padding: 0 0 4rem; }
.staff-grid { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; max-width: 44rem; }
.staff-mark {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 2rem;
  background: var(--mame-white), var(--ai-mid);
  color: var(--warm);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 6.5rem;
  text-align: center;
}
.staff-photo { display: block; width: 9rem; height: 9rem; object-fit: cover; border-radius: 2rem; }
.staff-name { font-weight: 700; font-size: var(--step-2); line-height: 1.4; margin-bottom: 0.4rem; }
.staff .small { margin-top: 0.75rem; }
.phone { margin-top: 1.25rem; font-weight: 700; }
.phone strong { font-weight: 700; font-size: var(--step-2); margin-left: 0.5rem; letter-spacing: 0.04em; }

/* ---------- はじめての方へ ---------- */
.first { padding: 4rem 0; }
.first-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3rem; align-items: start; }
.first-photo { margin: 0; }
.first-photo img { display: block; width: 100%; height: auto; }
.first-photo figcaption { margin-top: 0.5rem; font-size: var(--step--1); color: var(--ai-soft); }

/* 4枚の札にせず、背骨の図と同じ形の節を縦に積んで、1本の流れにする。
   節は、下へ行くほど少しずつ大きくなる(本物の背骨と同じ)。 */
.flow {
  counter-reset: flow;
  max-width: 40rem;
  display: grid;
  gap: 0.5rem;
}
.flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: 1.25rem;
  align-items: start;
  padding-bottom: 0.9rem;
}
.flow li::before {
  content: counter(flow);
  justify-self: center;
  display: grid;
  place-items: center;
  height: 2.1rem;
  border-radius: 0.85rem;
  background: var(--ai);
  color: var(--white);
  font-weight: 700;
  grid-row: 1 / 3;
}
.flow li:nth-child(1)::before { width: 2.9rem; transform: rotate(-7deg); }
.flow li:nth-child(2)::before { width: 3.3rem; transform: rotate(-2deg); background: var(--ai-mid); }
.flow li:nth-child(3)::before { width: 3.8rem; transform: rotate(4deg); background: var(--warm); color: var(--ai); }
.flow li:nth-child(4)::before { width: 4.3rem; transform: rotate(8deg); }
.flow h3 { font-weight: 700; font-size: var(--step-1); line-height: 1.5; margin-bottom: 0.2rem; }
.flow p { font-size: 0.9rem; line-height: 1.7; grid-column: 2; }

/* ---------- 営業時間と場所 ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ai); margin-bottom: 1rem; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mist);
}
.hours-table th { font-weight: 400; }
.hours-table td { text-align: right; font-weight: 700; }
.route { width: 100%; height: auto; display: block; margin-bottom: 1rem; }
.route text { font: 700 15px var(--font); fill: var(--ai); }

/* ---------- 予約 ---------- */
.book { padding: 4rem 0 5rem; }
.book-grid { display: grid; grid-template-columns: 1fr 19rem; gap: 2.5rem; align-items: start; }

.step { margin-bottom: 2.5rem; }
.step > legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: var(--step-1);
  margin-bottom: 0.9rem;
}
.step-no {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ai);
  color: var(--bone);
  flex: none;
}

.choices { display: grid; gap: 0.6rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ai-soft);
  border-radius: 1.75rem;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--ai); box-shadow: inset 0 0 0 1px var(--ai); background: var(--warm-pale); }
.choice input { width: 1.3rem; height: 1.3rem; accent-color: var(--ai); }
.choice-name { font-weight: 700; }
.choice-fact { font-size: 0.9rem; white-space: nowrap; }

/* 入力 → 確認 → 完了 の進み具合 */
.stages {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  max-width: 30rem;
  scroll-margin-top: 5.5rem;
}
.stages li {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem 0.4rem 1.4rem;
  background: var(--shade);
  color: var(--ai-soft);
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%, 0.9rem 50%);
}
.stages li:first-child {
  padding-left: 0.5rem;
  border-radius: 0.6rem 0 0 0.6rem;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%);
}
.stages li[aria-current="step"] { background: var(--ai-mid); color: var(--white); }

/* 1週間の空き状況の表 */
.week-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.week-nav p { text-align: center; font-weight: 700; }
.week-nav button {
  background: var(--asagi);
  border: 1px solid var(--ai-mid);
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
.week-nav button:disabled { background: transparent; border-color: var(--mist); color: var(--ai-soft); cursor: not-allowed; }

/* 予約できるマスは白地に色の付いた○、できないマスは灰色の地にする。
   行が多いので、日にちの見出しは画面の上に留める。 */
.avail-wrap { border: 1px solid var(--mist); border-top: 0.25rem solid var(--ai); }
.avail { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.avail th, .avail td { border-bottom: 1px solid var(--mist); border-left: 1px solid var(--mist); padding: 0; text-align: center; }
.avail tr > :first-child { border-left: 0; }
.avail tbody tr:last-child th, .avail tbody tr:last-child td { border-bottom: 0; }
.avail thead th {
  position: sticky;
  top: var(--sticky-top, 0px);
  z-index: 2;
  background: var(--white);
  border-bottom: 1px solid var(--ai);
}
.avail-corner { width: 3.5rem; font-size: 0.75rem; font-weight: 400; color: var(--ai-soft); }
.avail-day { padding: 0.35rem 0 0.4rem !important; line-height: 1.3; font-weight: 400; }
.avail-day span { display: block; }
.avail-week { font-size: 0.75rem; }
.avail-date { font-weight: 700; font-size: 0.95rem; }
.avail-closed { font-size: 0.75rem; }
.avail-day.is-sat { color: var(--sat); background: #f1f6fc !important; }
.avail-day.is-sun { color: var(--sun); background: #fdf3f4 !important; }
.avail-day.is-closed { color: var(--ai-soft); background: var(--shade) !important; }
.avail-time { font-size: 0.8125rem; font-weight: 400; background: var(--white); }
.avail td button, .avail td span {
  display: block;
  width: 100%;
  height: 2.375rem;
  line-height: 2.375rem;
  font-size: 1.0625rem;
}
.avail td button {
  background: var(--white);
  border: 0;
  font-weight: 700;
  color: #c9781a;
  cursor: pointer;
}
.avail td button:hover { background: var(--warm-pale); }
.avail td button[aria-pressed="true"] { background: var(--ai); color: var(--white); }
.avail td.is-taken, .avail td.is-none { background: var(--shade); }
.avail td.is-taken span { color: #7c8d8a; font-size: 0.9rem; }
.avail td.is-none span { color: #c3cdca; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  margin-top: 0.75rem;
  font-size: var(--step--1);
}
.mark { font-weight: 700; margin-right: 0.35rem; }
.mark-open { color: #c9781a; }
.mark-taken, .mark-none { color: #7c8d8a; }
.times-hint { margin-top: 0.5rem; font-size: var(--step--1); color: var(--ai-soft); }

.badge {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.05rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--warm);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.field { margin-bottom: 1.25rem; }
.field > label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
.optional { font-weight: 400; font-size: var(--step--1); color: var(--ai-soft); margin-left: 0.5rem; }
.required {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.4rem;
  border-radius: 0.25rem;
  background: var(--alert);
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1.6;
  vertical-align: 0.1em;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: 3rem;
  background: var(--white);
  border: 1px solid var(--ai-soft);
  border-radius: 0.375rem;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
}
textarea { resize: vertical; line-height: 1.7; }
[aria-invalid="true"] { border-color: var(--alert) !important; }
.error { margin-top: 0.5rem; color: var(--alert); font-weight: 700; font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; }

.notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: var(--shade);
  font-weight: 700;
  font-size: 0.9rem;
}
.notice.is-error { background: var(--alert); color: var(--white); }

.summary {
  position: sticky;
  top: 5.5rem;
  background: var(--mame-white), var(--ai);
  color: var(--white);
  padding: 1.5rem;
}
.summary h3 { font-weight: 700; font-size: var(--step-1); margin-bottom: 0.5rem; }
.summary dl div { padding: 0.65rem 0; border-top: 1px solid rgba(241, 244, 241, 0.3); }
.summary dt { font-size: var(--step--1); color: var(--warm); font-weight: 700; }
.summary dd { font-weight: 700; line-height: 1.6; }
.summary .small { color: var(--mist); margin-top: 0.75rem; }
.summary dl + .small { padding-top: 1rem; border-top: 1px solid rgba(241, 244, 241, 0.3); }

.confirm {
  max-width: 40rem;
  background: var(--white);
  border: 1px solid var(--mist);
  border-top: 0.375rem solid var(--ai);
  padding: 1.75rem;
}
.confirm:focus, .after:focus { outline: none; }
.confirm h3 { font-weight: 700; font-size: var(--step-2); line-height: 1.4; margin-bottom: 0.4rem; }
.confirm-list { margin: 1.25rem 0 1rem; border-top: 1px solid var(--ai); }
.confirm-list div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--mist);
}
.confirm-list dt { font-size: var(--step--1); font-weight: 700; color: var(--ai-soft); padding-top: 0.15rem; }
.confirm-list dd { font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }
.confirm-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.button-plain {
  background: transparent;
  border: 1px solid var(--ai);
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
#again { margin-top: 1.25rem; }

.after {
  background: var(--warm-pale);
  border-top: 0.375rem solid var(--warm);
  padding: 1.75rem;
  scroll-margin-top: 5.5rem;
}
.after h3 { font-weight: 700; font-size: var(--step-2); line-height: 1.4; }
.after-receipt { font-weight: 700; margin: 0.25rem 0 0.75rem; }
.after-receipt strong { font-weight: 700; font-size: var(--step-1); margin-left: 0.4rem; }

.behind { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px dashed var(--ai); }
.behind h4 { font-weight: 700; font-size: var(--step-1); margin-bottom: 0.4rem; }
.behind-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1.5rem; margin-top: 1.25rem; }
.behind-grid > div { min-width: 0; }
.behind-label { font-weight: 700; font-size: var(--step--1); margin-bottom: 0.4rem; }
.behind-message {
  background: var(--white);
  border-radius: 1rem 1rem 1rem 0.2rem;
  padding: 1rem 1.1rem;
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.behind-table-wrap { overflow-x: auto; background: var(--white); border-radius: 0.6rem; }
.behind-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.85rem; line-height: 1.6; }
.behind-table th, .behind-table td { border: 1px solid var(--mist); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; white-space: pre-line; }
.behind-table td:nth-child(-n+4) { white-space: nowrap; }
.behind-table th { background: var(--mist); font-weight: 700; white-space: nowrap; }

/* ---------- 末尾 ---------- */
.footer { background: var(--mame-white), var(--ai); color: var(--white); padding: 2.5rem 0; font-size: var(--step--1); }

/* スマートフォンで、画面の下に留める予約のボタン */
.bottom-book { display: none; }
.footer p + p { margin-top: 0.25rem; }
.footer a { display: inline-block; padding: 0.6rem 0; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 56rem) {
  :root { --step-3: 1.375rem; --step-2: 1.25rem; --step-1: 1.0625rem; }
  body { font-size: 0.9375rem; padding-bottom: 4.75rem; }
  .wrap, .hero, .shop { width: min(100% - 2rem, 64rem); }

  /* 上の帯は留めず、予約のボタンは画面の下に留める(測った10件のうち5件がこの形) */
  .top { position: static; padding: 0.6rem 1rem; }
  .top nav { display: none; }
  .bottom-book {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--mist);
    transition: transform 0.2s;
  }
  .bottom-book.is-hidden { transform: translateY(110%); }
  .bottom-book .button { display: block; }
  .shop-photo { width: 100%; height: 9.5rem; margin-top: 0; }
  .first-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .staff-photo { width: 6.5rem; height: 6.5rem; border-radius: 1.4rem; }
  .shop { padding-top: 1rem; }
  .shop-name { display: none; } /* すぐ上の帯に店名があるので、くり返さない */
  .brand { display: inline-block; padding: 0.25rem 0; }
  .shop .button { display: none; }
  .shop-facts { font-size: 0.8125rem; }

  .hero {
    grid-template-columns: 1fr 6.5rem;
    grid-template-areas: "text spine" "advice advice";
    gap: 1.25rem 1rem;
    padding: 1.5rem 0 3rem;
    align-items: start;
  }
  .hero-text { grid-area: text; }
  .spine-wrap { grid-area: spine; }
  .advice { grid-area: advice; min-height: 0; padding: 1.25rem; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .parts button { min-width: 3.4rem; }
  .advice .button { display: block; }

  .band, .first { padding: 3rem 0; }
  .menu-list li { grid-template-columns: 1fr auto; padding: 0.75rem 0.75rem 0.75rem 1rem; }
  .menu-name { grid-column: 1; grid-row: 1; }
  .menu-time { grid-column: 1; grid-row: 2; }
  .menu-price { grid-column: 1; grid-row: 3; }
  .menu-book { grid-column: 2; grid-row: 1 / 4; }

  .hours-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .book { padding: 3rem 0 3.5rem; }
  .book-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .choice { grid-template-columns: auto 1fr; }
  .choice-fact { grid-column: 2; }
  .week-nav { grid-template-columns: 1fr 1fr; }
  .week-nav p { grid-column: 1 / -1; grid-row: 1; }
  .avail-corner { width: 3.375rem; }
  .avail-date { font-size: 0.875rem; }
  .staff { padding-bottom: 3rem; }
  .staff-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .staff-mark { width: 4.5rem; height: 4.5rem; border-radius: 1.4rem; font-size: 2.2rem; line-height: 4.5rem; }
  .confirm, .after { padding: 1.25rem; }
  .confirm-list div { grid-template-columns: 1fr; gap: 0; }
  .behind-grid { grid-template-columns: 1fr; }
}

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

/* スマートフォンでは、押す部品の高さを44px以上にそろえる(空き状況のマスも含む) */
@media (max-width: 56rem) {
  button, select, .menu-book,
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) { min-height: 2.75rem !important; }
  .avail td button, .avail td span { height: 2.75rem; line-height: 2.75rem; }
}
