/* てのひら整体院（見本）
   色: 白い地・うすい若葉・深い松の緑・木の色。字は丸ゴシック1種類。 */
:root {
  color-scheme: only light;
  --paper: #ffffff;
  --sage: #f1f4ee;
  --pine: #2e5441;
  --pine-dark: #213d2f;
  --wood: #a97c50;
  --ink: #26302a;
  --muted: #56615a;
  --line: #047a37;
  --rule: #dfe5da;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.45; font-weight: 700; }
p, dd, summary { margin: 0; }
/* 見出し・質問・ボタンは言葉の途中で切らない（切ってよい所は <wbr>）。文節で折り返せるブラウザはそれを使う */
h1, h2, h3, summary, .btn { word-break: keep-all; }
@supports (word-break: auto-phrase) {
  h2, h3, summary, figcaption, .hero-lead, .hero-note { word-break: auto-phrase; }
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 400px) { .wrap { padding-inline: 16px; } }

section { padding-block: 72px; }
@media (min-width: 900px) { section { padding-block: 104px; } }
section h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); margin-bottom: 36px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  transition: background-color .15s ease;
}
.btn-main { background: var(--pine); color: #fff; }
.btn-main:hover { background: var(--pine-dark); }
.btn-line { background: #fff; color: var(--line); box-shadow: inset 0 0 0 2px var(--line); }
.btn-line:hover { background: #eef7f1; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .95rem; background: var(--pine); color: #fff; }

/* 見本の帯とヘッダー */
.sample-bar {
  display: block; padding: 6px 16px;
  background: var(--ink); color: #fff;
  font-size: .8125rem; text-align: center; text-decoration: none;
}
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
@media (min-width: 760px) { .site-header { position: sticky; top: 0; z-index: 5; } }
@media (min-width: 760px) { [id] { scroll-margin-top: 80px; } html { scroll-padding-top: 80px; } }
.nowrap { white-space: nowrap; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--pine); letter-spacing: .08em; }
.header-contact { display: flex; align-items: center; gap: 20px; }
.header-tel { display: none; color: var(--muted); font-size: .9rem; }
.header-tel span { color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
@media (min-width: 760px) { .header-tel { display: block; } }

/* 最初の画面 */
.hero { padding-block: 32px 64px; }
.hero-inner { display: grid; gap: 32px; }
.hero-photo { margin: 0; order: -1; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% 40%;
  border-radius: 160px 160px 18px 18px;
  background: var(--sage);
}
.hero-price { margin-top: 20px; font-size: .95rem; color: var(--pine-dark); }
.hero-price strong { font-size: 1.5rem; letter-spacing: .02em; }
.hero h1 {
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.35; letter-spacing: .04em;
  color: var(--pine-dark);
}
.hero-lead { margin-top: 20px; max-width: 30em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-note { margin-top: 18px; font-size: .875rem; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding-block: 56px 96px; }
  .hero-inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
  .hero-photo { order: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; border-radius: 50% 50% 24px 24px / 40% 40% 24px 24px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* どこがつらいか */
.body-map { background: var(--sage); }
.map-inner { display: grid; gap: 8px 48px; }
.figure { width: 100%; max-width: 260px; margin: 0 auto 16px; font-family: var(--font); font-weight: 700; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pain-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.pain-list li:last-child { border-bottom: 1px solid var(--rule); }
.pain-list h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; color: var(--pine-dark); }
.pain-list h3::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--wood); box-shadow: 0 0 0 3px #fff;
}
.pain-list p { margin-top: 4px; padding-left: 24px; color: var(--muted); }
.map-foot { margin-top: 24px; font-size: .9rem; color: var(--muted); max-width: 40em; }
@media (min-width: 900px) {
  .map-inner { grid-template-columns: 340px 1fr; align-items: center; }
  .map-inner h2, .map-foot { grid-column: 1 / -1; }
  .figure { margin: 0; max-width: 340px; }
  .pain-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .pain-list li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

/* 大切にしていること */
.reason { display: grid; gap: 20px; margin-top: 48px; }
.reason:first-of-type { margin-top: 0; }
.reason img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.reason img.tall { object-position: 50% 45%; }
.reason h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); color: var(--pine-dark); }
.reason p { margin-top: 12px; max-width: 30em; }
@media (min-width: 900px) {
  .reason { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 72px; }
  .reason:nth-of-type(even) img { order: 2; }
}

/* はじめての流れ */
.flow { background: var(--sage); }
.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.flow-list li {
  counter-increment: step; position: relative;
  padding: 0 0 32px 64px;
}
.flow-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pine); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.flow-list li::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px;
  width: 2px; background: var(--wood); opacity: .5;
}
.flow-list li:last-child { padding-bottom: 0; }
.flow-list li:last-child::after { display: none; }
.flow-list h3 { font-size: 1.15rem; line-height: 44px; color: var(--pine-dark); }
.flow-list p { color: var(--muted); }
@media (min-width: 900px) {
  .flow-list { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .flow-list li { padding: 64px 0 0; }
  .flow-list li::after { left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .flow-list li:last-child::after { display: none; }
}

/* 料金 */
.price-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 2px solid var(--pine); }
.price-table th { font-size: 1.1rem; font-weight: 700; }
.price-table th span { display: block; font-size: .875rem; font-weight: 500; color: var(--muted); }
.price-table td { text-align: right; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; color: var(--pine-dark); white-space: nowrap; padding-left: 16px; }
.price-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.price-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; max-width: 720px; }
.price-actions .btn { flex: 1 1 200px; }

/* 通っている方の声 */
.voices { background: var(--sage); }
.voice-list { display: grid; gap: 20px; }
.voice { margin: 0; padding: 24px 24px 20px; background: #fff; border-radius: 4px 22px 22px 22px; }
.voice blockquote { margin: 0; }
.voice figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.voices-note { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
@media (min-width: 900px) { .voice-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* 院長 */
.director-inner { display: grid; gap: 28px; }
.director-photo { margin: 0; }
.director-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.director-photo figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.director-text h2 { margin-bottom: 20px; }
.director-text p + p { margin-top: 16px; }
.director-text p { max-width: 32em; }
.director-text .sign { margin-top: 24px; font-weight: 700; color: var(--pine-dark); }
@media (min-width: 900px) { .director-inner { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }

/* よくある質問 */
.faq { background: var(--sage); }
.faq details { max-width: 760px; border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--pine); font-size: 1.25rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 40em; }

/* 予約・アクセス */
.reserve { background: var(--pine); color: #fff; }
.reserve h2 { color: #fff; }
.reserve-inner { display: grid; gap: 40px; }
.hours-wrap { max-width: 560px; overflow-x: auto; }
.hours { width: 100%; max-width: 560px; border-collapse: collapse; background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; font-size: .875rem; line-height: 1.4; text-align: center; }
.hours caption { text-align: left; padding-bottom: 10px; color: #fff; font-weight: 700; }
.hours th, .hours td { padding: 10px 2px; border-bottom: 1px solid var(--rule); }
.hours thead th { background: var(--sage); font-weight: 700; }
.hours tbody th { font-weight: 500; white-space: nowrap; padding-inline: 6px; }
.hours tbody tr:last-child th, .hours tbody tr:last-child td { border-bottom: 0; }
.hours .off { color: #9a4a3a; font-weight: 700; }
.hours .half { color: var(--pine); font-weight: 700; }
.hours-note { margin-top: 8px; font-size: .875rem; opacity: .9; }
.access { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 28px 0 0; }
.access dt { font-weight: 700; }
.access dd { margin: 0; }
.reserve-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.reserve-actions .btn { flex: 1 1 200px; }
.reserve .btn-main { background: #fff; color: var(--pine-dark); }
.reserve .btn-main:hover { background: var(--sage); }
.reserve .btn-line { background: var(--line); color: #fff; box-shadow: none; }
.reserve .btn-line:hover { background: #036a30; }
.map { margin: 0; }
.map svg { display: block; width: 100%; max-width: 440px; height: auto; font-family: var(--font); font-weight: 700; }
.map figcaption { margin-top: 10px; font-size: .9rem; max-width: 440px; }
@media (min-width: 900px) {
  .reserve-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
  .reserve-actions .btn { flex: 0 0 auto; }
}

/* 見本の説明・フッター */
.sample-note { padding-block: 48px; border-top: 1px solid var(--rule); }
.sample-note h2 { font-size: 1.15rem; margin-bottom: 12px; }
.sample-note p { font-size: .9rem; color: var(--muted); max-width: 44em; }
.sample-note p + p { margin-top: 8px; }
.site-footer { padding: 24px 20px 32px; text-align: center; font-size: .8125rem; color: var(--muted); }

/* スマホの下に固定する予約ボタン */
.fixed-bar { display: none; }
.reserve :focus-visible { outline-color: #fff; }
@media (max-width: 759px) {
  html { scroll-padding-bottom: 80px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .fixed-bar :focus-visible { outline-color: #fff; outline-offset: -6px; }
  .fixed-bar {
    position: fixed; inset: auto 0 0 0; z-index: 10;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--pine);
  }
  .fixed-bar a {
    display: grid; place-items: center; min-height: 64px;
    color: #fff; font-weight: 700; text-decoration: none;
  }
  .fixed-bar a.line { background: var(--line); }
}
