/* さくら鍼灸整体院（教材用デモ）
   土台＝無印ミニマル（design/DESIGN.md §1-C）× 見出しは明朝（§1-D）
   全ページ共通。触るのはこの1枚だけ。 */

:root {
  --bg: #F6F4F0;          /* 生成り。純白にしない */
  --surface: #FFFFFF;
  --ink: #2E2A26;         /* 純黒にしない */
  --muted: #857E74;
  --accent: #A9663C;      /* くすんだテラコッタ */
  --accent-dark: #8A5230;
  --line: #E4DFD6;
  --line-soft: #EFEBE4;
  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --wrap: 900px;
  --narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }

/* ── 教材用のおことわり（自分の院で使うときは、この1ブロックを消す） ── */
.demo-note {
  background: #35302B;
  color: #EFEBE4;
  font-size: 12.5px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.7;
  letter-spacing: .04em;
}

/* ── ヘッダー ── */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { text-decoration: none; color: var(--ink); line-height: 1.4; }
.logo .name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .08em; display: block; }
.logo .roman { font-size: 10px; color: var(--muted); letter-spacing: .22em; display: block; margin-top: 2px; }
.header-tel { font-size: 13.5px; text-decoration: none; color: var(--muted); white-space: nowrap; letter-spacing: .06em; }
.header-tel strong { display: block; font-size: 17px; color: var(--ink); font-family: var(--serif); letter-spacing: .04em; }

/* ── ナビ ── */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-nav ul {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
}
.site-nav a {
  display: block; padding: 13px 16px;
  font-size: 13.5px; letter-spacing: .08em;
  text-decoration: none; color: var(--ink);
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); }

/* ── ヒーロー（画像つき） ── */
.hero { position: relative; background: #1F1B18; overflow: hidden; }
.hero-img { width: 100%; height: clamp(340px, 52vw, 560px); object-fit: cover; opacity: .82; }
.hero-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: linear-gradient(180deg, rgba(30,26,22,.34) 0%, rgba(30,26,22,.52) 100%);
}
.hero h1 {
  font-family: var(--serif); color: #fff; font-weight: 600;
  font-size: clamp(22px, 4.4vw, 34px); line-height: 1.85; letter-spacing: .06em;
  text-shadow: 0 1px 14px rgba(0,0,0,.28);
}
.hero p {
  color: rgba(255,255,255,.94); font-size: clamp(13px, 2.2vw, 15px);
  margin-top: 16px; letter-spacing: .08em; text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

/* 下層ページの見出し帯（画像なし） */
.page-head {
  background: var(--surface); border-bottom: 1px solid var(--line);
  text-align: center; padding: 52px 24px 44px;
}
.page-head h1 { font-family: var(--serif); font-size: clamp(21px, 3.6vw, 28px); font-weight: 600; letter-spacing: .1em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 12px; letter-spacing: .06em; }

/* ── レイアウト ── */
main { max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 40px; }
.section { margin-bottom: 76px; }
.section:last-child { margin-bottom: 0; }
.section > p, .section > ul, .section > ol, .section > table { max-width: var(--narrow); }

h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(19px, 2.8vw, 23px); letter-spacing: .1em;
  text-align: center; margin-bottom: 34px;
}
h2::after {
  content: ""; display: block; width: 32px; height: 1px;
  background: var(--accent); margin: 16px auto 0;
}
h2.left { text-align: left; }
h2.left::after { margin-left: 0; }
h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; margin: 32px 0 12px; }
p { margin-bottom: 18px; }
ul, ol { margin: 0 0 18px 1.5em; }
li { margin-bottom: 8px; }

.lead { font-size: 15.5px; color: var(--muted); text-align: center; max-width: var(--narrow); margin: -14px auto 34px; }

/* ── 悩みリスト ── */
.checklist { list-style: none; margin: 0 auto 24px; max-width: var(--narrow); }
.checklist li {
  background: var(--surface); border: 1px solid var(--line);
  padding: 15px 20px 15px 48px; margin-bottom: 10px; position: relative;
  font-size: 15.5px;
}
.checklist li::before {
  content: ""; position: absolute; left: 22px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--accent);
}

/* ── カード（画像つき） ── */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); display: block; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-title { font-family: var(--serif); font-size: 16.5px; font-weight: 600; letter-spacing: .06em; display: block; margin-bottom: 8px; }
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.9; display: block; }
.card-more { font-size: 12.5px; color: var(--accent-dark); display: block; margin-top: 12px; letter-spacing: .06em; }

/* ── 3つの特徴（番号つき） ── */
.features { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--surface); padding: 30px 28px; display: flex; gap: 22px; align-items: flex-start; }
.feature .num {
  font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent);
  opacity: .55; flex: 0 0 auto; margin-top: 4px;
}
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; font-size: 15px; }

/* ── 画像＋文章の2カラム ── */
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split.portrait { grid-template-columns: 300px 1fr; }
.split.portrait img { aspect-ratio: 1 / 1; }
.split p:last-child { margin-bottom: 0; }

/* ── 料金表 ── */
table { width: 100%; border-collapse: collapse; margin: 0 auto 18px; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 17px 20px; text-align: left; font-size: 15.5px; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 400; width: 62%; }
td.price { text-align: right; white-space: nowrap; font-family: var(--serif); font-size: 17px; }
.table-note { font-size: 13px; color: var(--muted); max-width: var(--narrow); }

/* ── 流れ（初回の手順） ── */
.steps { list-style: none; margin: 0 auto; max-width: var(--narrow); counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 28px 44px; margin: 0;
  border-left: 1px solid var(--line);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -13px; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent-dark);
  font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}
.steps b { font-family: var(--serif); font-size: 16px; letter-spacing: .04em; }
.steps span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* ── 情報リスト ── */
.info-list { list-style: none; margin: 0 auto 18px; max-width: var(--narrow); background: var(--surface); border: 1px solid var(--line); }
.info-list li { display: flex; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: 15px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { flex: 0 0 6.5em; color: var(--muted); font-size: 13.5px; letter-spacing: .06em; }

/* ── 注意書き ── */
.notice { background: var(--surface); border-left: 2px solid var(--accent); padding: 22px 24px; max-width: var(--narrow); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

/* ── 予約導線 ── */
.cta-block {
  background: var(--surface); border: 1px solid var(--line);
  padding: 48px 24px; text-align: center; margin-top: 76px;
}
.cta-block h2 { margin-bottom: 10px; }
.cta-block h2::after { display: none; }
.cta-lead { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.cta-buttons { display: grid; gap: 12px; max-width: 380px; margin: 0 auto; }
.btn {
  display: block; padding: 16px 20px; border-radius: 2px;
  text-decoration: none; font-size: 15.5px; text-align: center;
  letter-spacing: .08em; transition: opacity .2s ease;
}
.btn:hover { opacity: .88; }
.btn-tel { background: var(--accent); color: #fff; }
.btn-line { background: #06C755; color: #fff; }
.btn-form { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-note { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }

/* ── フォーム ── */
.form { max-width: 520px; margin: 0 auto; text-align: left; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13.5px; letter-spacing: .06em; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 16px;    /* 16px未満にするとiPhoneで勝手に拡大される */
  font-family: inherit; background: var(--surface); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { min-height: 140px; resize: vertical; }
.required { color: var(--accent); font-size: 11.5px; margin-left: 6px; }

/* ── フッター ── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 48px 24px 40px; text-align: center;
  font-size: 14px; color: var(--muted); margin-top: 76px;
}
.site-footer .footer-name { font-family: var(--serif); font-size: 18px; color: var(--ink); letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: var(--muted); }
.footer-nav { list-style: none; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-nav a { font-size: 13px; text-decoration: none; }
.copyright { font-size: 11.5px; margin-top: 26px; letter-spacing: .06em; }

/* ── スマホ下部の固定バー（治療院サイトの実務） ── */
.mobile-bar { display: none; }

/* スマホのときだけ改行する */
.sp { display: none; }

@media (max-width: 767px) {
  .sp { display: inline; }
  main { padding: 44px 20px 30px; }
  .section { margin-bottom: 56px; }
  .split, .split.portrait { grid-template-columns: 1fr; gap: 22px; }
  .split.portrait img { max-width: 240px; margin: 0 auto; }
  .feature { padding: 24px 20px; gap: 16px; }
  .header-inner { padding: 13px 18px; }
  .site-nav a { padding: 11px 12px; font-size: 12.5px; }
  .cta-block { padding: 38px 20px; }
  .site-footer { margin-top: 56px; }
  body { padding-bottom: 68px; }   /* 固定バーのぶん */

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    border-top: 1px solid rgba(0,0,0,.06);
  }
  .mobile-bar a {
    padding: 15px 8px; text-align: center; text-decoration: none;
    color: #fff; font-size: 14.5px; letter-spacing: .06em;
  }
  .mobile-bar .tel { background: var(--accent); }
  .mobile-bar .line { background: #06C755; }
}
