/* 活整骨院 交通事故対応サイト
   方針：かっこよく、スタイリッシュに。1列・スマホ優先・動きなし。
   色：黒（メイン）／青（2番目・アクセント）／白（＋うすい灰色の背景） */

:root {
  --ink: #0a0a0a;        /* 黒：最初の画面・フッター */
  --ink-2: #171717;      /* 黒（カード） */
  --ink-3: #262626;      /* 黒（線・ホバー） */
  --accent: #1f63c8;       /* 青：白地の上で使う（文字・線・ボタン） */
  --accent-bright: #62a4ff; /* 青：黒地の上で使う（文字） */
  --paper: #f3f3f3;      /* うすい灰色の背景 */
  --text: #111;
  --sub: #555;
  --mute: #a6a6a6;       /* 黒地の上の補足の文字 */
  --line: #dddddd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--text);
  background: #fff;
  padding-bottom: 64px; /* 下に固定したボタンの分 */
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー（白地にロゴ・上に青い線） */
.site-header { background: #fff; color: var(--text); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.site-name { display: block; color: var(--text); text-decoration: none; line-height: 1.3; }
.site-name img { height: 40px; width: auto; }
.site-name small { display: block; font-size: .68rem; letter-spacing: .08em; color: var(--sub); margin-top: 4px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: .85rem; font-weight: 700; }
.menu a { color: var(--text); text-decoration: none; display: inline-block; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* パンくず */
.breadcrumb ol { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; font-size: .8rem; color: var(--sub); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--line); }

/* 英字の小見出し */
.eyebrow { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .3em; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; font-family: "Helvetica Neue", Arial, sans-serif; }

/* 見出し・本文 */
h1 { font-size: 1.7rem; line-height: 1.45; letter-spacing: .05em; margin: 22px 0 14px; font-weight: 800; }
h2 { font-size: 1.5rem; line-height: 1.5; letter-spacing: .05em; margin: 0 0 20px; font-weight: 800; }
h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-top: 12px; }
h3 { font-size: 1.1rem; line-height: 1.55; letter-spacing: .04em; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; margin: 0 0 14px; }
li { margin-bottom: 4px; }
.lead { font-size: 1.02rem; }
.note { font-size: .86rem; color: var(--sub); }
.updated { font-size: .8rem; color: var(--sub); margin-top: 8px; }

.section { padding: 56px 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: #e6e6e6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: var(--accent-bright); }
.section.dark a { color: #fff; }
.section.dark .note { color: var(--mute); }

/* 最初の画面 */
.hero { background: var(--ink); color: #fff; padding: 44px 0 52px; overflow: hidden; }
.hero .eyebrow { color: var(--accent-bright); }
.hero .eyebrow::after { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin-top: 10px; }
.hero h1 { font-size: 2.1rem; margin: 12px 0 18px; }
.hero h1 .accent { color: var(--accent-bright); }
.hero .lead { color: #d9d9d9; }
.hero .note { color: var(--mute); }

/* ボタン（角を立てる） */
.buttons { display: grid; gap: 10px; margin: 22px 0 8px; }
.btn { display: block; text-align: center; padding: 15px 14px; border-radius: 0; font-weight: 800; letter-spacing: .08em; text-decoration: none; border: 2px solid var(--accent); color: var(--accent); background: transparent; font-size: 1rem; }
.btn.primary { background: var(--accent); color: #fff; }
.hero .btn, .section.dark .btn { border-color: #fff; color: #fff; }
.hero .btn.primary, .section.dark .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.more { display: inline-block; margin-top: 6px; font-weight: 800; letter-spacing: .06em; text-decoration: none; border-bottom: 2px solid currentColor; }
.more::after { content: " →"; }

/* 写真の仮置き（本物の写真が届いたら差し替え） */
.photo-placeholder { border: 1px dashed var(--line); background: var(--paper); color: var(--sub); text-align: center; padding: 48px 12px; margin: 16px 0; font-size: .9rem; }
.hero .photo-placeholder, .section.dark .photo-placeholder { background: var(--ink-2); border-color: var(--ink-3); color: var(--mute); }

/* 3つの安心 */
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--text); }
.promises > li { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 10px 16px; }
.promises .num { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.02em; font-family: "Helvetica Neue", Arial, sans-serif; }
.promises h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; }
.promises p:last-child { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 14px; }
.facts li { padding-left: 1em; text-indent: -1em; }
.facts li::before { content: "— "; color: var(--accent); }

/* 3つの入口（セミナー・KATSU NOTE・ショップ） */
.features { display: grid; gap: 14px; }
.feature { display: block; position: relative; padding: 30px 24px 26px; background: var(--ink-2); color: #fff; text-decoration: none; border-top: 3px solid var(--accent); }
.feature .eyebrow { color: var(--accent-bright); }
.feature h3 { margin: 0 0 10px; font-size: 1.35rem; color: #fff; font-weight: 800; }
.feature p { color: #cfcfcf; margin-bottom: 14px; font-size: .95rem; }
.feature .go { font-weight: 800; letter-spacing: .1em; font-size: .85rem; color: #fff; border-bottom: 2px solid var(--accent); }
.feature .go::after { content: " →"; }
.feature:hover { background: var(--ink-3); }

/* 表 */
table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .93rem; border-top: 2px solid var(--text); }
th, td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
th { width: 32%; font-weight: 700; color: var(--sub); letter-spacing: .06em; }

/* 流れ */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 46px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 800; font-size: 1.3rem; color: var(--accent); font-family: "Helvetica Neue", Arial, sans-serif; }

/* 注意の囲み */
.box { border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 16px 18px; margin: 16px 0; background: #fff; }
.box h3 { margin-top: 0; }

/* 要確認の印（公開前にすべて消す） */
.tbd { background: #fff1a8; color: #5a4300; border: 1px solid #e0c650; padding: 0 4px; font-size: .82em; font-weight: 700; letter-spacing: 0; }

/* 地図 */
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* フッター */
.site-footer { background: var(--ink); color: var(--mute); padding: 36px 0 24px; font-size: .86rem; border-top: 3px solid var(--accent); }
.site-footer strong { color: #fff; letter-spacing: .12em; }
.site-footer a { color: #e6e6e6; }
.site-footer p { margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* 下に固定する「電話・LINE・予約」ボタン */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--ink); border-top: 1px solid var(--ink-3); }
.cta-bar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px; text-align: center; font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: .9rem; line-height: 1.3; color: #fff; }
.cta-bar a + a { border-left: 1px solid var(--ink-3); }
.cta-bar .tel { background: var(--accent); }

/* 1ページに見出しが続く場合（プライバシーポリシーなど）の間隔 */
.wrap > h2:not(:first-child) { margin-top: 36px; }

/* 成長期の痛み：一覧と比較表 */
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pain-list li { margin: 0; }
.pain-list a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); text-decoration: none; color: var(--text); background: #fff; }
.pain-list a strong { display: block; font-size: 1.05rem; color: var(--text); letter-spacing: .04em; }
.pain-list a span { display: block; font-size: .86rem; color: var(--sub); }
.pain-list a:hover { border-color: var(--accent); }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.table-scroll table { min-width: 640px; margin: 0; }
.compare th { width: auto; }
.compare thead th { background: var(--ink); color: #fff; }
.lead-answer { font-size: 1.05rem; border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin: 0 0 18px; }
.sources { font-size: .84rem; color: var(--sub); }

/* 写真 */
figure { margin: 16px 0; }
figure img { width: 100%; max-width: 560px; }
figcaption { margin-top: 6px; }
.portrait { margin: 20px 0; max-width: 300px; }
.portrait img { width: 100%; }

/* 最初の画面の院長の写真：右下に青い影をずらして重ねる */
.hero .portrait { max-width: 320px; margin: 32px 14px 0 0; }
.hero .portrait img { box-shadow: 14px 14px 0 var(--accent); }
.hero .portrait figcaption { margin-top: 26px; text-align: left; font-weight: 800; letter-spacing: .14em; color: #fff; font-size: 1rem; line-height: 1.6; position: relative; }
.hero .portrait figcaption small { display: block; font-weight: 400; color: var(--mute); font-size: .72rem; letter-spacing: .04em; }

@media (min-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .hero { padding: 64px 0 64px; }
  .hero h1 { font-size: 2.7rem; }
  .buttons { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .promises .num { font-size: 2.8rem; }
  .promises > li { grid-template-columns: 76px 1fr; }
  .section { padding: 80px 0; }
  .pain-list { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 0 40px; align-items: center; }
  .hero-grid .hero-text { min-width: 0; }
  .hero .portrait { max-width: 360px; margin: 0; }
  .hero-grid .buttons { grid-template-columns: 1fr; max-width: 360px; }
}

/* よくある質問 */
.faq dt { font-weight: 800; margin-top: 26px; padding-left: 2em; position: relative; }
.faq dt::before { content: "Q"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.15em; }
.faq dd { margin: 8px 0 0; padding-left: 2em; position: relative; }
.faq dd::before { content: "A"; position: absolute; left: 0; top: 0; color: var(--sub); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.15em; line-height: 1.7; }
.faq dd p:last-child { margin-bottom: 0; }

/* 黒地の上の表 */
.section.dark table { border-top-color: #fff; }
.section.dark th, .section.dark td { border-bottom-color: var(--ink-3); }
.section.dark th { color: var(--mute); }

/* スマホ：見出し・文章 → 院長の写真 → ボタンの順に。ヘッダーを少し詰める */
@media (max-width: 719px) {
  .hero-grid { display: flex; flex-direction: column; }
  .hero-grid .hero-text { display: contents; }
  .hero-grid .portrait { order: 1; max-width: 250px; margin: 8px 14px 6px 0; }
  .hero-grid .buttons, .hero-grid .note, .hero-grid .updated { order: 2; }
  .hero .portrait img { box-shadow: 10px 10px 0 var(--accent); }
  .hero .portrait figcaption { margin-top: 20px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 8px; gap: 4px 16px; }
  .site-name img { height: 34px; }
  .menu ul { gap: 0 14px; font-size: .8rem; }
}
