/* はりま交通事故サポートナビ 共通スタイル（スマホファースト） */

:root {
  --navy: #0f2747;
  --navy-2: #1a3a63;
  --blue: #2c64a6;
  --blue-2: #4a7fbf;
  --blue-soft: #e9f1fa;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --ink: #1d2733;
  --muted: #4f5d6d;
  --line: #d8e1ec;
  --alert: #a3241d;
  --alert-soft: #fdf1f0;
  --pr: #6a4b00;
  --pr-soft: #fff6dc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 39, 71, .06), 0 4px 16px rgba(15, 39, 71, .06);
  --max: 1080px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px; /* 高齢の方にも読みやすい大きさ */
  line-height: 1.9;
  letter-spacing: .02em;
  padding-bottom: 72px; /* スマホ下部の固定バー分 */
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--navy); line-height: 1.45; letter-spacing: .03em; }
h1 { font-size: 1.6rem; margin: 0 0 .75rem; }
h2 { font-size: 1.35rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4em; margin: 0 0 1rem; }
li + li { margin-top: .35rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand-name { font-weight: 700; font-size: min(.95rem, 3.6vw); letter-spacing: 0; white-space: nowrap; }
.brand-sub { font-size: .62rem; color: var(--muted); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap;
  min-height: 44px; padding: 0 12px;
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
}
.menu-toggle-icon { width: 18px; height: 18px; }
.menu-toggle[aria-expanded="true"] .icon-open,
.menu-toggle[aria-expanded="false"] .icon-close { display: none; }

.global-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.global-nav.is-open { display: block; max-height: calc(100vh - 60px); overflow-y: auto; }
.global-nav ul { list-style: none; margin: 0 auto; padding: 8px 16px 16px; }
.global-nav li + li { margin-top: 0; }
.global-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 6px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.global-nav a::after { content: "›"; color: var(--blue); font-size: 1.2rem; }
.global-nav a[aria-current="page"] { color: var(--blue); }
.global-nav .nav-cta a { color: var(--blue); font-weight: 700; }
.no-js .global-nav { display: block; }

/* ---------- パンくず ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 10px 0; }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- 共通パーツ ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; margin-bottom: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--blue);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.4; text-align: center;
  border: 2px solid transparent;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--blue-soft); color: var(--navy); }
.btn-row { display: flex; flex-direction: column; gap: 12px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}

.grid { display: grid; gap: 16px; }

.link-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--blue-2); color: var(--ink); transform: translateY(-1px); }
.link-card-title { color: var(--navy); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.link-card-title::after { content: "›"; margin-left: auto; color: var(--blue); font-size: 1.3rem; }
.link-card-text { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.link-card-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-size: .8rem; font-weight: 700;
}

.note {
  border-left: 4px solid var(--blue-2); background: var(--blue-soft);
  padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: .97rem;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.placeholder {
  display: inline-block; padding: 0 .4em; border-radius: 4px;
  background: #eef1f5; border: 1px dashed #9aa7b6; color: var(--muted); font-size: .9em;
}

.tag-pr {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: var(--pr); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
}

/* ---------- 緊急ボックス ---------- */
.emergency {
  border: 2px solid var(--alert); background: var(--alert-soft);
  border-radius: var(--radius); padding: 20px;
}
.emergency h2 { color: var(--alert); font-size: 1.2rem; margin-bottom: .5rem; }
.emergency-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }
.tel-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px; border-radius: 10px; text-decoration: none; color: #fff; background: var(--alert);
  font-weight: 700; line-height: 1.3;
}
.tel-btn:hover { color: #fff; background: #841c16; }
.tel-btn-num { font-size: 1.6rem; letter-spacing: .05em; }
.tel-btn-label { font-size: .8rem; }
.tel-btn.police { background: var(--navy); }
.tel-btn.police:hover { background: var(--navy-2); }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 110% -10%, rgba(74, 127, 191, .35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 44px 0 52px;
}
.hero .eyebrow { color: #b9d2ee; }
.hero h1 { color: #fff; font-size: clamp(1.4rem, 6.4vw, 1.85rem); line-height: 1.55; margin-bottom: 1rem; }
.hero h1 span { display: inline-block; }
.hero-lead { color: #e3ecf6; font-size: .98rem; margin-bottom: 1.75rem; }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-primary:hover { background: var(--blue-soft); }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .1); }
.hero-areas { margin-top: 1.5rem; font-size: .8rem; color: #b9d2ee; }

/* ---------- 流れ（ステップ） ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  position: relative; counter-increment: step;
  padding: 0 0 22px 52px; margin: 0;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700;
}
.steps > li::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps-title { display: block; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 36px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }
.steps li.is-urgent::before { background: var(--alert); }

/* ---------- 地域チップ ---------- */
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li + li { margin-top: 0; }
.area-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--navy); font-weight: 700;
}
.area-list a:hover { border-color: var(--blue-2); background: var(--blue-soft); }

/* ---------- PR（医健コンシェル紹介） ---------- */
.pr-block { border: 1px solid #e7d7a8; background: #fffdf6; border-radius: var(--radius); padding: 20px; }
.pr-disclosure {
  background: var(--pr-soft); border-radius: 8px; padding: 12px 14px;
  font-size: .86rem; color: var(--pr); margin-bottom: 1rem;
}
.pr-disclosure strong { color: var(--pr); }
.clinic-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 1rem; }
.clinic-list li + li { margin-top: 0; }
.clinic {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.clinic-area { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.clinic-name { font-weight: 700; color: var(--navy); margin: 2px 0 6px; }
.clinic dl { margin: 0; font-size: .86rem; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.clinic dt { color: var(--muted); }
.clinic dd { margin: 0; }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--bg-alt); padding: 32px 0 28px; border-bottom: 1px solid var(--line); }
.page-head .lead { color: var(--muted); margin: 0; }
.page-meta { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

.toc { margin: 0 0 2rem; }
.toc h2 { font-size: 1rem; margin-bottom: .5rem; }
.toc ol { margin: 0; }

.article { padding: 36px 0 24px; }
.article > .container { max-width: 800px; }
.article section { margin-bottom: 2.5rem; }
.article h2 { padding-bottom: .5rem; border-bottom: 2px solid var(--blue-soft); }

.status-draft {
  border: 1px dashed #9aa7b6; background: #f8fafc; border-radius: 8px;
  padding: 12px 14px; color: var(--muted); font-size: .88rem; margin-bottom: 1rem;
}

.related { padding: 36px 0 48px; background: var(--bg-alt); }

/* よくある質問（details/summary で開閉。JS不要） */
.faq details {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  margin-bottom: 10px;
}
.faq summary {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy); line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .8rem;
}
.faq summary::after { content: "+"; margin-left: auto; color: var(--blue); font-size: 1.3rem; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 16px 14px 52px; font-size: .94rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.case-list { display: grid; gap: 12px; margin-bottom: 1rem; }
.case-list .card h3 { margin-top: 0; font-size: 1rem; }
.case-list .card p:last-child, .case-list .card ul:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.7; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--blue-soft); color: var(--navy); }
tbody th[scope="row"] { width: 6.5em; }

@media (min-width: 640px) {
  table { font-size: .92rem; }
  th, td { padding: 10px 12px; }
}

/* ---------- フッター ---------- */
.disclaimer-band { background: var(--blue-soft); padding: 24px 0; font-size: .9rem; color: var(--muted); }
.disclaimer-band p:last-child { margin-bottom: 0; }

.site-footer { background: var(--navy); color: #c9d6e6; padding: 40px 0 28px; font-size: .88rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-nav li + li { margin-top: 0; }
.footer-small { font-size: .82rem; color: #9fb2c9; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; margin-top: 8px; }

/* ---------- スマホ下部固定バー ---------- */
.quick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: .8fr .8fr 1fr 1.15fr;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  gap: 6px; box-shadow: 0 -4px 16px rgba(15, 39, 71, .08);
}
.quick-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 8px; text-decoration: none; font-weight: 700; line-height: 1.25;
  font-size: .8rem; color: #fff; background: var(--navy);
}
.quick-bar a strong { font-size: 1.05rem; }
.quick-bar .qb-119 { background: var(--alert); }
.quick-bar .qb-guide { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.quick-bar .qb-guide strong { font-size: .92rem; }
.quick-bar .qb-consult { background: var(--blue); }
.quick-bar .qb-consult strong { font-size: .92rem; }

/* ---------- アイコン（インラインSVG。色は文字色を引き継ぐ） ---------- */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.lc-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 10px; background: var(--blue-soft); color: var(--navy);
}
.h-with-icon { display: flex; align-items: center; gap: 12px; }
.h-with-icon .lc-icon { width: 46px; height: 46px; }

/* ---------- 情報区分ラベル（通常の情報提供／広告） ---------- */
.tag-info {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: var(--blue-soft); color: var(--navy); border: 1px solid #c7d9ee;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
}
.tag-pr { font-size: .8rem; }

/* ---------- 立場別の入口 ---------- */
.role-grid { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.role-grid li + li { margin-top: 0; }
.role-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 20px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); border-top: 5px solid var(--blue);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.role-card:hover { color: var(--ink); transform: translateY(-1px); border-color: var(--blue-2); }
.role-card.is-fault { border-top-color: var(--navy); }
.role-card.is-unknown { border-top-color: #6b86a3; }
.role-card-head { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.4; }
.role-card ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }
.role-card-more { margin-top: auto; font-weight: 700; color: var(--blue); }
.role-card-more::after { content: " ›"; }

/* ---------- 身体・通院の相談導線 ---------- */
.consult-cta {
  margin-top: 28px; padding: 22px 20px; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--blue); box-shadow: var(--shadow);
}
.consult-cta-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: .5rem; }
.consult-cta-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; background: var(--blue); color: #fff;
}
.consult-cta-icon .ico { width: 28px; height: 28px; }
.consult-cta-title { margin: 0 0 .2rem; font-size: 1.25rem; color: var(--navy); line-height: 1.45; }
.consult-cta-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.pr-mini {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--pr-soft); color: var(--pr); border-radius: 8px;
  padding: 10px 12px; font-size: .92rem; margin: 14px 0;
}
.pr-mini .tag-pr { flex: none; margin-top: 2px; }
.consult-cta .pr-mini:first-child { margin-top: 0; }
.area-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.area-btns li + li { margin-top: 0; }
.area-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 64px; border-radius: 10px; background: var(--blue-soft); border: 1px solid #c7d9ee;
  color: var(--navy); font-weight: 700; font-size: 1.1rem; text-decoration: none; line-height: 1.3;
}
.area-btn small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.area-btn:hover { background: #dbe8f7; color: var(--navy); }
.btn-consult { background: var(--blue); color: #fff; width: 100%; }
.btn-consult:hover { background: var(--navy); color: #fff; }

/* ---------- 3院の紹介カード ---------- */
.clinic-cards { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0 0 1rem; }
.clinic-cards > li + li { margin-top: 0; }
.clinic-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.clinic-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.clinic-card-head .ico { width: 26px; height: 26px; color: #9fc3ea; }
.clinic-card-area { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.clinic-card-cover { font-size: .82rem; color: #c9d6e6; line-height: 1.4; }
.clinic-card-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 16px; }
.clinic-card-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0; }
.clinic-card dl { display: grid; grid-template-columns: 5.2em 1fr; gap: 6px 10px; margin: 0; font-size: .95rem; }
.clinic-card dt { color: var(--muted); }
.clinic-card dd { margin: 0; }
.clinic-actions { display: grid; gap: 8px; margin-top: auto; }
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 8px 12px; border-radius: 10px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
  font-weight: 700; text-decoration: none; line-height: 1.3; text-align: center;
}
.action-btn:hover { background: var(--blue-soft); color: var(--navy); }
.action-btn.is-line { background: #0b7a46; border-color: #0b7a46; color: #fff; }
/* URL・連絡先が未確定のボタン（リンクにせず、押せない表示にする） */
.action-btn[aria-disabled="true"] {
  background: #f1f3f6; border: 2px dashed #9aa7b6; color: var(--muted); cursor: not-allowed;
}
.action-btn[aria-disabled="true"] .ico { opacity: .6; }
.action-note { font-size: .78rem; font-weight: 600; }
/* 院の写真（トリミングせず元の縦横比で表示） */
.clinic-photo { display: block; width: 100%; height: auto; background: var(--bg-alt); }
.clinic-photo-main { margin: 0; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.clinic-photo-main figcaption,
.clinic-gallery-item figcaption,
.clinic-group-photo figcaption { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.clinic-photo-main figcaption { padding: 6px 16px; background: #fff; }
.clinic-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; align-content: start; padding: 0 16px 16px; }
.clinic-gallery-item { margin: 0; }
/* 縦長・横長の写真を同じ枠にそろえる（切り取らず全体を表示） */
.clinic-gallery-item img { aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.clinic-gallery-item figcaption { margin-top: 4px; }
.clinic-gallery a:hover img, .clinic-photo-main a:hover img { opacity: .92; }
.clinic-group-photo { margin: 0 0 2rem; }
.clinic-group-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.clinic-group-photo figcaption { margin-top: 6px; text-align: center; }
.clinic-options { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.clinic-options li + li { margin-top: 0; }
.clinic-options li {
  padding: 2px 10px; border-radius: 999px; background: var(--blue-soft); border: 1px solid #c7d9ee;
  color: var(--navy); font-size: .88rem; font-weight: 700;
}
.clinic-ryoyohi { margin: 0; font-size: .88rem; color: var(--muted); }
.clinic-pending-note { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }

/* ---------- 図解：通院の流れ ---------- */
.care-flow { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 22px; }
.care-flow > li {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.care-flow > li:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%);
  border: 8px solid transparent; border-top: 10px solid var(--blue-2); border-bottom: 0;
}
.care-flow .cf-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--blue-soft); color: var(--navy);
}
.care-flow .cf-title { display: block; font-weight: 700; color: var(--navy); line-height: 1.45; }
.care-flow .cf-text { display: block; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.care-flow > li.is-first { border-color: var(--alert); background: var(--alert-soft); }
.care-flow > li.is-first .cf-icon { background: var(--alert); color: #fff; }
.care-flow > li.is-both { border: 2px solid var(--blue); }
.care-flow > li.is-both .cf-icon { background: var(--blue); color: #fff; }

/* ---------- 特長・ポイント（アイコン付きリスト） ---------- */
.feature-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 1rem; }
.feature-list > li + li { margin-top: 0; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.feature h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- 協力事業者 ---------- */
.label-legend { display: grid; gap: 10px; margin-bottom: 1.5rem; }
.label-legend > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.label-legend p { margin: 0; font-size: .95rem; }
.partner-cats { display: grid; gap: 16px; }
.partner-cat { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.partner-cat h3 { margin: 0 0 .5rem; }
.partner-cat ul { font-size: .95rem; }
.partner-empty {
  margin: 0; padding: 10px 12px; border: 1px dashed #9aa7b6; border-radius: 8px;
  background: #f8fafc; color: var(--muted); font-size: .9rem;
}
.partner-card { border: 1px solid #e7d7a8; background: #fffdf6; border-radius: 10px; padding: 14px 16px; }
/* 協力事業者カード（partners.js が partners-data.js から作る） */
.partner-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 1rem; }
.partner-card.is-info { border-color: var(--line); background: #fff; }
.partner-card-tag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 .35rem; font-size: .85rem; color: var(--muted); font-weight: 700; }
.partner-card-name { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.08rem; line-height: 1.5; }
.partner-card-person { margin: 0; font-size: .92rem; }
.partner-dl { display: grid; grid-template-columns: 5.2em 1fr; gap: 4px 10px; margin: .6rem 0; font-size: .92rem; line-height: 1.7; }
.partner-dl dt { color: var(--muted); }
.partner-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.partner-card-desc { margin: .5rem 0; font-size: .92rem; }
.partner-notes { margin: 0 0 .75rem; font-size: .88rem; color: var(--muted); }
.partner-actions { display: grid; gap: 8px; margin-top: .75rem; }
.partner-actions .action-btn { min-height: 48px; font-size: .95rem; }
.partner-source { margin: .6rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.partner-inline { font-size: .92rem; }
/* 「車が動かない・レッカーを呼びたい方へ」の案内（partners.js の data-tow-guide） */
.tow-guide { margin: 0 0 1.25rem; padding: 18px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.tow-guide-title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.5; }
.tow-guide-safety { margin: 0 0 .9rem; padding: 10px 12px; border-radius: 8px; background: var(--alert-soft); color: var(--alert); font-size: .92rem; font-weight: 700; }
.tow-guide-text { margin: .2rem 0 0; font-size: .95rem; }
.action-btn.is-tel { background: var(--navy); color: #fff; font-size: 1.05rem; }
.action-btn[href^="tel:"] { white-space: normal; } /* 長いボタン文言は折り返す（電話番号だけのリンクは折り返さない） */
.action-btn.is-tel:hover { background: var(--navy-2); color: #fff; }
.tow-guide-notes { margin: .9rem 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- タブレット以上 ---------- */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .partner-cats { grid-template-columns: 1fr 1fr; }
  .partner-cat.is-wide { grid-column: 1 / -1; }
  .article .partner-list .partner-actions,
  .partner-cat.is-wide .partner-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .tow-guide .partner-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .label-legend { grid-template-columns: 1fr 1fr; }
  .feature-list.cols-2 { grid-template-columns: 1fr 1fr; }
  .btn-consult { width: auto; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .clinic-list { grid-template-columns: repeat(3, 1fr); }
  .footer-nav ul { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 17.5px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .header-bar { height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; letter-spacing: .02em; }
  .brand-sub { font-size: .74rem; }
  .menu-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; max-height: none; overflow: visible; }
  .global-nav ul { display: flex; justify-content: space-between; padding: 0 16px; }
  .global-nav a {
    min-height: 46px; border-bottom: 3px solid transparent; padding: 0 2px;
    font-size: .86rem; font-weight: 600;
  }
  .global-nav a::after { content: none; }
  .global-nav a:hover { color: var(--blue); }
  .global-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
  .global-nav ul { align-items: center; }
  .global-nav .nav-cta a {
    min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
    background: var(--blue); color: #fff;
  }
  .global-nav .nav-cta a:hover { background: var(--navy); color: #fff; }
  .global-nav .nav-cta a[aria-current="page"] { background: var(--navy); }
  html { scroll-padding-top: 130px; }

  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .clinic-cards { grid-template-columns: repeat(3, 1fr); }
  /* 記事内（3院紹介ページ）はカードを縦に並べ、ボタンを横並びにする */
  .article .clinic-cards { grid-template-columns: 1fr; }
  /* 3院紹介ページ：左にメイン写真とサブ写真、右に院の情報を並べる */
  .article .clinic-card { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; }
  .article .clinic-card-head { grid-column: 1 / -1; }
  .article .clinic-photo-main { grid-column: 1; grid-row: 2; border-bottom: 0; background: #fff; }
  .article .clinic-gallery { grid-column: 1; grid-row: 3; padding: 4px 16px 16px; }
  .article .clinic-card-body { grid-column: 2; grid-row: 2 / 4; border-left: 1px solid var(--line); }
  .article .clinic-actions { grid-template-columns: 1fr; }
  .article .action-btn { font-size: .95rem; }
  .consult-cta { padding: 28px 32px; }
  .area-btns { max-width: 560px; }
  .care-flow { grid-template-columns: repeat(var(--cf-cols, 4), 1fr); gap: 26px; }
  .care-flow > li { flex-direction: column; align-items: flex-start; }
  .care-flow > li:not(:last-child)::after {
    left: auto; right: -20px; top: 50%; bottom: auto; transform: translateY(-50%);
    border: 8px solid transparent; border-left: 10px solid var(--blue-2); border-right: 0;
  }

  .section { padding: 72px 0; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-lead { font-size: 1.05rem; max-width: 40em; }
  .hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .page-head { padding: 48px 0 40px; }
  .quick-bar { display: none; }
}

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

@media print {
  .site-header, .quick-bar, .site-footer, .breadcrumb { display: none; }
  body { padding: 0; }
}

/* ==========================================================
   ビジュアル改善（2026-10-30）：イラスト・要点・アイコン付き見出しなど
   ========================================================== */

/* ページ冒頭：右側にイラストや写真 */
.page-head-grid { display: grid; grid-template-columns: 1fr; gap: 12px 16px; align-items: center; }
/* スマホでは見出しと緊急連絡を優先し、冒頭のイラストは出さない（写真のページは見出しの下に表示） */
.page-head-art { display: none; margin: 0; }
.page-head-art img { display: block; width: 100%; height: auto; }
.page-head-photo { grid-column: 1 / -1; margin: 6px 0 0; }
.page-head-photo .clinic-group-photo { margin: 0; }
.page-head-photo .clinic-group-photo img { border-radius: var(--radius); }

/* このページで分かること */
.key-points {
  margin: 0 0 2rem; padding: 18px 18px 14px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); box-shadow: var(--shadow);
}
.key-points-title { display: flex; align-items: center; gap: 10px; margin: 0 0 .6rem; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.key-points-title .ico { color: var(--blue); }
.key-points ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.key-points li { position: relative; padding-left: 28px; margin: 0; font-size: .97rem; line-height: 1.7; }
.key-points li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c64a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* 記事の見出しにアイコン */
.article h2.h-ico { display: flex; align-items: center; gap: 12px; }
.h2-ico {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue-soft); color: var(--navy);
}
.h2-ico .ico { width: 22px; height: 22px; }
.h2-ico.is-alert { background: var(--alert-soft); color: var(--alert); }

/* アイコン付きの小さなカード（2列） */
.info-cards { display: grid; gap: 12px; margin: 0 0 1rem; }
.info-card { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.info-card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 .5rem; font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.5; }
.info-card-title .ico { color: var(--blue); width: 22px; height: 22px; }
.info-card ul { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.info-card p { margin: 0; font-size: .95rem; }
.info-card p + p { margin-top: .5rem; }

/* しないほうがよいこと */
.dont-list { list-style: none; padding: 14px 16px; margin: 0; border-radius: 12px; background: var(--alert-soft); border: 1px solid #efc9c6; display: grid; gap: 8px; }
.dont-list li { position: relative; padding-left: 30px; margin: 0; }
.dont-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--alert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* チェックリスト */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.checklist li {
  position: relative; margin: 0; padding: 10px 14px 10px 44px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); line-height: 1.6;
}
.checklist li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 5px; border: 2px solid var(--blue-2); background: #fff;
}

/* アイコン付きの項目一覧（症状など） */
.icon-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.icon-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; line-height: 1.6; }
.icon-list .ico { flex: none; width: 22px; height: 22px; color: var(--blue); }

/* トップ：状況別の入口 */
.topic-grid { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.topic-grid > li { margin: 0; }
.topic-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center; height: 100%;
  padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.topic-card:hover { color: var(--ink); border-color: var(--blue-2); transform: translateY(-1px); }
.topic-icon { grid-row: span 3; align-self: start; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); color: var(--navy); }
.topic-icon .ico { width: 28px; height: 28px; }
.topic-icon.is-alert { background: var(--alert-soft); color: var(--alert); }
.topic-tag { font-size: .75rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.topic-title { font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.5; }
.topic-text { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* トップ：ヒーローと流れのイラスト */
.hero-art { display: none; margin: 0 0 20px; }
.hero-art img { display: block; width: 100%; height: auto; }
.flow-art { margin: 1.25rem 0 0; max-width: 260px; }
.flow-art img { display: block; width: 100%; height: auto; }

/* 3院紹介：ご来院までの流れ（カード型） */
.step-cards { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 12px; counter-reset: sc; }
.step-cards > li {
  counter-increment: sc; position: relative; margin: 0; padding: 16px 16px 16px 72px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 76px;
}
.step-cards .sc-icon { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); }
.step-cards > li.is-urgent .sc-icon { background: var(--alert); color: #fff; }
.step-cards .sc-title { display: block; font-weight: 700; color: var(--navy); line-height: 1.5; }
.step-cards .sc-title::before { content: "STEP " counter(sc) "　"; font-size: .75rem; color: var(--blue); letter-spacing: .06em; }
.step-cards p { margin: 4px 0 0; font-size: .93rem; color: var(--muted); }

/* 3院紹介：電話ボタン */
.action-btn.is-call { background: var(--navy); border-color: var(--navy); color: #fff; }
.action-btn.is-call:hover { background: var(--navy-2); color: #fff; }

@media (min-width: 640px) {
  .page-head-grid { grid-template-columns: 1fr 200px; gap: 24px; }
  .page-head-grid.has-photo { grid-template-columns: 1fr; }
  .page-head-art { display: block; }
  .key-points ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .icon-list { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .step-cards { grid-template-columns: repeat(3, 1fr); }
  .step-cards > li { padding: 18px; padding-top: 74px; }
  .step-cards .sc-icon { left: 18px; top: 18px; }
}
@media (min-width: 960px) {
  .page-head-grid { grid-template-columns: 1fr 260px; gap: 40px; }
  .page-head-grid.has-photo { grid-template-columns: 1fr 420px; }
  .page-head-photo { grid-column: auto; grid-row: span 1; margin: 0; }
  .hero-art { display: block; max-width: 400px; margin: -16px auto 20px; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-card { grid-template-columns: 1fr; align-content: start; padding: 22px; }
  .topic-icon { grid-row: auto; margin-bottom: 8px; }
  .flow-art { max-width: 320px; margin-top: 2rem; }
}

/* 地域ガイド：市町ごとの欄をカードに */
.article section.area-sec { padding: 18px 18px 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.area-sec h3 { margin-top: 1rem; font-size: 1rem; padding-left: 10px; border-left: 4px solid var(--blue-2); }
.area-sec h2 + h3 { margin-top: 0; }

/* 協力事業者：分野のアイコンを大きく、分野ごとに色分け */
.partner-cat h3 .lc-icon { width: 52px; height: 52px; border-radius: 14px; }
.partner-cat h3 .lc-icon .ico { width: 28px; height: 28px; }
#lawyer.partner-cat .lc-icon { background: var(--navy); color: #fff; }
#gyosei.partner-cat .lc-icon { background: var(--blue); color: #fff; }
#tow.partner-cat .lc-icon { background: #f2b84b; color: var(--navy); }
#bodyshop.partner-cat .lc-icon { background: #dbe8f7; color: var(--navy); }
.partner-jump { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.partner-jump li { margin: 0; }
.partner-jump a {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; line-height: 1.35; font-size: .95rem;
}
.partner-jump a:hover { border-color: var(--blue-2); background: var(--blue-soft); color: var(--navy); }
.partner-jump .ico { width: 24px; height: 24px; color: var(--blue); }
@media (min-width: 640px) { .partner-jump { grid-template-columns: repeat(4, 1fr); } }
/* ==========================================================
   ビジュアル改善 第2弾（2026-10-30）：写真・メディア配置・メリハリ
   ========================================================== */

/* イメージ写真（共通） */
.photo-fig { margin: 0; }
.photo-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--bg-alt); }
.photo-note { margin-top: 6px; font-size: .72rem; color: var(--muted); text-align: right; line-height: 1.4; }

/* トップ：写真を背景にしたファーストビュー */
.hero.has-photo {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 39, 71, .62) 0%, rgba(15, 39, 71, .80) 32%, rgba(15, 39, 71, .93) 62%, rgba(15, 39, 71, .97) 100%),
    url("/assets/img/photos/street-sm.webp") center 25% / cover no-repeat,
    var(--navy);
}
.hero-photo-note { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: .68rem; color: rgba(255, 255, 255, .6); }

/* 写真と文章を横に並べる（スマホは写真が上） */
.media-split { display: grid; gap: 20px; align-items: start; }
.media-title { display: flex; align-items: center; gap: 10px; margin: 0 0 .5rem; font-size: 1.12rem; color: var(--navy); }
.media-text .media-title:not(:first-child) { margin-top: 1.5rem; }
.media-num { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; }
.media-text p { margin-bottom: .6rem; }
.media-link { font-weight: 700; }
.media-link a::after { content: " ›"; }
.flow-photo { margin-top: 1.5rem; }
.flow-photo img { aspect-ratio: 16 / 8; }

/* トップ：状況別の入口はスマホでは1行にまとめる（説明文はPCのみ） */
@media (max-width: 639px) {
  .topic-card { grid-template-columns: 44px 1fr 16px; padding: 12px 14px; gap: 2px 12px; }
  .topic-card::after { content: "›"; grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--blue); font-size: 1.4rem; }
  .topic-icon { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; align-self: center; }
  .topic-icon .ico { width: 24px; height: 24px; }
  .topic-tag, .topic-title { grid-column: 2; }
  .topic-text { display: none; }
  .topic-grid { gap: 8px; }
}

/* トップ：ガイド一覧は同じ形のカードを並べず、すっきりした一覧に */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-list > li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-list > li:last-child { border-bottom: 0; }
.guide-list .link-card { border: 0; border-radius: 0; box-shadow: none; padding: 14px 18px; flex-direction: row; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.guide-list .link-card:hover { transform: none; background: var(--blue-soft); }
.guide-list .link-card-title { flex: 1 1 260px; }
.guide-list .link-card-text { flex: 1 1 260px; font-size: .88rem; }
@media (max-width: 639px) { .guide-list .link-card-text { display: none; } }

/* ページ冒頭：写真付き（ケガ・通院ガイドなど） */
.page-head.has-photo { padding-bottom: 24px; }
.page-head-photo-wide { margin: 14px 0 0; }
.page-head-photo-wide img { aspect-ratio: 16 / 7; border-radius: 14px; }

/* 冒頭の要点と目次をひとつに */
.page-intro { margin: 0 0 2rem; padding: 18px; border-radius: var(--radius); background: var(--blue-soft); }
.page-intro .key-points-title { margin-bottom: .5rem; }
.page-intro ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px 24px; }
.page-intro li { position: relative; padding-left: 26px; margin: 0; font-size: .97rem; line-height: 1.7; }
.page-intro li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c64a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.page-toc { margin-top: 14px; border-top: 1px solid #c7d9ee; padding-top: 10px; }
.page-toc summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; }
.page-toc summary::-webkit-details-marker { display: none; }
.page-toc summary::after { content: "＋"; margin-left: auto; color: var(--blue); }
.page-toc[open] summary::after { content: "－"; }
.page-toc ol { margin: .6rem 0 0; font-size: .95rem; }

/* 薄い背景色で区切る帯（記事の幅のまま、背景だけ画面いっぱい） */
.article section.band { background: var(--bg-alt); box-shadow: 0 0 0 100vmax var(--bg-alt); clip-path: inset(0 -100vmax); padding: 28px 0 8px; }
.article section.band h2 { border-bottom-color: #dbe5f1; }

/* 枠で囲まない2列の説明 */
.plain-cols { display: grid; gap: 18px; margin: 0 0 1rem; }
.plain-cols h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 .35rem; font-size: 1.05rem; }
.plain-cols h3 .ico { color: var(--blue); width: 24px; height: 24px; }
.plain-cols p { margin: 0; font-size: .96rem; }

@media (min-width: 640px) {
  .media-split { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .media-split.is-reverse > .photo-fig { order: 2; }
  .page-intro ul { grid-template-columns: 1fr 1fr; }
  .plain-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .page-head-photo-wide img { aspect-ratio: 16 / 6; }
}
@media (min-width: 960px) {
  .hero.has-photo {
    background:
      linear-gradient(90deg, rgba(15, 39, 71, .97) 0%, rgba(15, 39, 71, .90) 42%, rgba(15, 39, 71, .30) 100%),
      url("/assets/img/photos/street.webp") center 40% / cover no-repeat,
      var(--navy);
  }
  .hero.has-photo .hero-inner { min-height: 440px; }
  .media-split { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .media-split .photo-fig img { aspect-ratio: 4 / 3; }
  .flow-photo img { aspect-ratio: 4 / 3; }
  .page-head.has-photo .page-head-grid { grid-template-columns: 1fr 440px; }
  .page-head.has-photo .page-head-photo-wide { margin: 0; }
  .page-head.has-photo .page-head-photo-wide img { aspect-ratio: 4 / 3; }
}
/* ケガ・通院ガイド：気持ちの不調（やわらかい囲み） */
.mind-box { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: #fffaf0; border: 1px solid #f1e3c4; }
.mind-box img { width: 96px; height: auto; }
.mind-box p { margin: 0; }
@media (min-width: 640px) and (max-width: 959px) { .page-head.has-photo .page-head-grid { grid-template-columns: 1fr; } }
/* トップ：スマホでは119・110の下に横長の写真（PCは背景写真のため非表示） */
.hero-photo-sp { margin: 16px 0 0; }
.hero-photo-sp img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; }
@media (min-width: 960px) { .hero-photo-sp { display: none; } }
/* 見出しの直後に置く横長の写真 */
.section-photo { margin: 0 0 1.1rem; }
.section-photo img { aspect-ratio: 16 / 7; }
@media (min-width: 640px) { .section-photo img { aspect-ratio: 16 / 6; } }
/* 事故直後のページ：スマホでは119・110を最優先し、写真はその下に置く */
.urgent-photo-sp { margin: -1rem 0 2rem; }
.urgent-photo-sp img { aspect-ratio: 16 / 7; }
@media (max-width: 959px) { .page-head.is-urgent .page-head-photo-wide { display: none; } }
@media (min-width: 960px) { .urgent-photo-sp { display: none; } }
/* スマホのトップ：背景写真を見せつつ、119・110を最初の画面に収めるため余白を少し詰める */
@media (max-width: 959px) {
  .hero.has-photo { padding-top: 28px; padding-bottom: 32px; }
  .hero.has-photo h1, .hero.has-photo .hero-lead { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
  .hero.has-photo .hero-lead { margin-bottom: 1.25rem; }
  .hero.has-photo .hero-areas { margin-top: .9rem; }
  .hero.has-photo .btn-row { gap: 10px; }
  .hero.has-photo .btn { min-height: 48px; }
}
/* トップ：状況別カード（スマホは2列×3段。アイコンと短い見出しを中心に、補足は小さく） */
@media (max-width: 639px) {
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 136px; padding: 14px 12px 12px; }
  .topic-card::after { content: none; }
  .topic-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 0 6px; align-self: flex-start; }
  .topic-tag { font-size: 1.02rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; line-height: 1.4; }
  .topic-title { font-size: .8rem; font-weight: 500; color: var(--muted); line-height: 1.55; }
  .topic-text { display: none; }
}
/* トップ（スマホ）：緊急連絡先を最初の画面に入れるため、タイトルの直後に119・110の枠を表示する */
@media (max-width: 959px) {
  .hero.has-photo .hero-inner { display: flex; flex-direction: column; }
  .hero.has-photo .hero-inner > div { display: contents; }
  .hero.has-photo .eyebrow { order: 1; align-self: flex-start; }
  .hero.has-photo h1 { order: 2; margin-bottom: .9rem; }
  .hero.has-photo .emergency { order: 3; margin-bottom: 1.25rem; padding: 16px; }
  .hero.has-photo .emergency h2 { font-size: 1.08rem; }
  .hero.has-photo .emergency-actions { margin: 12px 0 8px; }
  .hero.has-photo .hero-lead { order: 4; }
  .hero.has-photo .btn-row { order: 5; }
  .hero.has-photo .hero-areas { order: 6; }
}@media (max-width: 359px) {
  .hero.has-photo { padding-top: 18px; }
  .hero.has-photo .eyebrow { margin-bottom: .2rem; font-size: .72rem; }
  .hero.has-photo h1 { font-size: 1.3rem; line-height: 1.45; margin-bottom: .6rem; }
  .hero.has-photo .emergency { padding: 12px 14px; }
  .hero.has-photo .emergency h2 { margin-bottom: .3rem; }
  .hero.has-photo .emergency > p:first-of-type { font-size: .88rem; line-height: 1.7; }
  .hero.has-photo .emergency-actions { margin: 10px 0 6px; }
  .hero.has-photo .tel-btn { min-height: 64px; }
}
/* ヘッダー：幅375px未満ではメニューボタンを縦並びにして幅を詰め、サイト名と重ならないようにする */
@media (max-width: 374px) {
  .header-bar { gap: 8px; }
  .menu-toggle { flex-direction: column; justify-content: center; gap: 1px; min-width: 52px; min-height: 48px; padding: 4px 8px; }
  .menu-toggle-label { font-size: .62rem; line-height: 1.2; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
}
/* トップ：運営会社グループの鍼灸整骨院（状況別の入口の直後） */
.group-clinics .pr-block { padding: 24px 20px; }
.group-head { margin-bottom: 1.25rem; }
.group-head .eyebrow { color: var(--pr); }
.group-head h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.group-head p { margin-bottom: .5rem; }
.group-note { font-size: .9rem; color: var(--muted); }
.group-badge { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: .5rem 0 0; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid #e7d7a8; color: var(--navy); }
.group-badge strong { font-size: 1.15rem; }
.group-badge small { font-size: .75rem; color: var(--muted); }
.group-cta { margin: 16px 0 10px; text-align: center; }
@media (min-width: 960px) {
  .group-clinics .pr-block { padding: 32px 36px; }
  .group-head h2 { font-size: 1.55rem; }
}
@media (max-width: 639px) { .group-badge { display: flex; } }

/* 運営会社グループの鍼灸整骨院の印（2026-10-30：3院はPRマークではなく運営会社グループと表示） */
.tag-group { display: inline-block; flex: none; padding: 2px 10px; border-radius: 4px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.group-mini { display: flex; gap: 8px; align-items: flex-start; background: var(--blue-soft); color: var(--navy); border-radius: 8px; padding: 10px 12px; font-size: .92rem; margin: 14px 0; }
.group-mini .tag-group { margin-top: 2px; }
.consult-cta .group-mini:first-child { margin-top: 0; }
.group-clinics .pr-block { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); box-shadow: var(--shadow); }
.group-head .eyebrow { color: var(--blue); }
.group-badge { border-color: #c7d9ee; background: var(--blue-soft); }
.group-foot { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.75; }
.hero-operator { margin: .4rem 0 0; font-size: .8rem; color: #b9d2ee; }
@media (max-width: 959px) { .hero.has-photo .hero-operator { order: 7; } }@media (max-width: 639px) { .group-mini { flex-direction: column; gap: 6px; } .group-mini .tag-group { align-self: flex-start; margin-top: 0; } }

/* ---------- サイト専用LINE（交通事故の総合相談）2026-10-31 ----------
   URLは /assets/js/site-line.js で管理。各院のLINE（.action-btn.is-line）とは別のボタン */
.btn-site-line { background: #06893a; color: #fff; border-color: #06893a; }
.btn-site-line:hover { background: #05702f; border-color: #05702f; color: #fff; }
.btn-site-line .ico { width: 22px; height: 22px; }
.site-line-hero { margin-top: 1.25rem; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.site-line-hero-title { margin: 0 0 .6rem; font-weight: 700; color: #fff; line-height: 1.5; }
.site-line-hero .btn-site-line { width: 100%; }
.site-line-note { margin: .6rem 0 0; font-size: .8rem; line-height: 1.7; color: #d6e4f3; }
.site-line-cta { margin: 2.25rem 0 0; padding: 20px; border-radius: var(--radius); background: #f0f9f3; border: 2px solid #06893a; }
.site-line-cta.is-section { margin-top: 0; }
.site-line-cta-head { display: flex; gap: 12px; align-items: center; margin-bottom: .6rem; }
.site-line-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: #06893a; color: #fff; }
.site-line-label { margin: 0; font-size: .8rem; font-weight: 700; color: #05702f; line-height: 1.5; }
.site-line-title { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.45; }
.site-line-lead { margin: 0 0 .9rem; }
.site-line-cta .btn-site-line { width: 100%; }
.site-line-id { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.site-line-notes { margin: .9rem 0 0; padding-left: 1.2em; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.site-line-notes li + li { margin-top: .2rem; }
@media (min-width: 640px) {
  .site-line-cta { padding: 24px 28px; }
  .site-line-cta .btn-site-line, .site-line-hero .btn-site-line { width: auto; min-width: 320px; }
}
@media (max-width: 959px) { .hero.has-photo .site-line-hero { order: 5; } }
.quick-bar .qb-line { background: #06893a; }
.quick-bar .qb-line strong { font-size: .92rem; }.site-line-hero-title span { display: inline-block; }
.site-line-cta.is-section { margin-bottom: 1rem; }
