/* =========================================================
   あめのもり内科  ── オリジナルデザイン
   色を変えたいときは、下の --brand（メインの色）を変更してください。
   ========================================================= */
:root {
  --brand: #1d5fa8;          /* ベースカラー：信頼感のある青 */
  --brand-deep: #133f73;
  --brand-soft: #e9f1fb;
  --tint: #f5f8fc;           /* 背景の薄い色 */
  --accent: #2bb3a3;         /* 差し色（ミントグリーン） */
  --ink: #1b2533;
  --ink-2: #4a5566;
  --ink-3: #7a8494;
  --line: #e2e8f0;
  --white: #fff;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --shadow: 0 10px 30px rgba(19, 63, 115, .08);
  --shadow-lg: 0 24px 60px rgba(19, 63, 115, .14);
  --head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --latin: "Outfit", "Noto Sans JP", sans-serif;
  --w: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16.5px/1.9 var(--body); letter-spacing: .02em; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.45; letter-spacing: .03em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.pc { display: inline; }
.nb { display: inline-block; }
.eyebrow { font: 600 13px/1 var(--latin); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font: 700 15.5px/1.3 var(--body); border: 2px solid var(--brand); cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand); }
.btn--block { width: 100%; }
.text-link { font-weight: 700; text-decoration: none; font-size: 14.5px; }

/* ---------- 1. ヘッダー ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(19,63,115,.06); }
.header__inner { max-width: var(--w); margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font: 700 21px var(--head); letter-spacing: .08em; }
.brand__sub { font: 500 10.5px var(--latin); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav__list a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav__tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--brand-deep); font: 600 21px/1.1 var(--latin); letter-spacing: .02em; }
.nav__tel span { font: 500 11px var(--body); color: var(--ink-3); letter-spacing: .1em; }
.menu { display: none; }

/* ---------- 2. メインビジュアル ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft) 0%, rgba(233,241,251,0) 70%); z-index: -1; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(27px, 3.7vw, 44px); line-height: 1.4; margin-bottom: 24px; }
.hero__lead { color: var(--ink-2); font-size: 16.5px; max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; }
.hero__visual img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; box-shadow: var(--shadow-lg); }
.today { position: absolute; left: -32px; bottom: -28px; background: #fff; border-radius: var(--r-md); padding: 18px 24px; box-shadow: var(--shadow-lg); min-width: 250px; }
.today__label { font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 2px; letter-spacing: .1em; }
.today__value { font: 600 19px/1.4 var(--latin); color: var(--brand-deep); margin: 0 0 4px; }
.today__value.is-closed { color: var(--ink-3); font-family: var(--body); font-size: 16px; }
.today__note { font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.6; }

/* ---------- セクション共通 ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 52px; max-width: 720px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(26px, 3.2vw, 36px); }
.section__lead { color: var(--ink-2); margin: 18px 0 0; }
.section__more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 48px; }

/* ---------- 3. 強み ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__body { position: relative; padding: 34px 28px 30px; }
.feature__num { position: absolute; top: -26px; left: 24px; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 18px var(--latin); box-shadow: 0 8px 18px rgba(29,95,168,.3); }
.feature__title { font-size: 20px; margin: 4px 0 14px; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.topics { margin-top: 48px; padding: 28px 32px; border-radius: var(--r-md); background: var(--brand-soft); display: flex; gap: 20px 28px; align-items: baseline; flex-wrap: wrap; }
.topics__label { margin: 0; font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.topics__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topics__list li { background: #fff; border-radius: 999px; padding: 6px 16px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 4. ブログ ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; list-style: none; margin: 0; }
.tabs button, .tabs a { border: 0; background: none; cursor: pointer; padding: 9px 20px; border-radius: 999px; font: 500 14.5px var(--body); color: var(--ink-2); text-decoration: none; display: block; }
.tabs button[aria-selected="true"], .tabs a[aria-current] { background: var(--brand); color: #fff; }
.tabs button:hover:not([aria-selected="true"]), .tabs a:hover:not([aria-current]) { color: var(--brand); }
.tabs--links { margin-bottom: 40px; flex-wrap: wrap; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card[hidden] { display: none; }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-soft), #dff5f2); display: grid; place-items: center; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { font: 600 28px var(--latin); letter-spacing: .12em; color: rgba(29,95,168,.25); }
.card[data-cat="news"] .card__thumb { background: linear-gradient(135deg, #e3f6f3, #eef6ff); }
.card[data-cat="news"] .card__noimg { color: rgba(43,179,163,.35); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; font: 500 13px var(--latin); color: var(--ink-3); }
.card__title { font: 700 16.5px/1.6 var(--head); }
.card__ex { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }
.chip { display: inline-block; font: 700 11.5px/1 var(--body); padding: 5px 10px; border-radius: 999px; text-decoration: none; letter-spacing: .04em; }
.chip--news { background: #dcf3f0; color: #17756a; }
.chip--blog { background: var(--brand-soft); color: var(--brand-deep); }
.chip--tag { background: #fff3e0; color: #9a5a00; }

/* ---------- 5. 医院案内 ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; vertical-align: top; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.info th { width: 7.5em; font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.about__sub { font-size: 18px; margin: 40px 0 16px; }
.hours { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.hours table { width: 100%; min-width: 440px; border-collapse: collapse; text-align: center; font-size: 15px; }
.hours th, .hours td { padding: 13px 6px; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours thead th { background: var(--tint); font-weight: 700; color: var(--ink-2); }
.hours tbody th { font: 600 14.5px var(--latin); white-space: nowrap; padding: 13px 14px; text-align: left; }
.hours td.on { color: var(--brand); font-size: 17px; }
.hours td.off { color: #c3cad4; }
.note { font-size: 14px; color: var(--ink-2); margin-top: 16px; line-height: 1.8; }
.about__side { display: grid; gap: 16px; }
.about__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-md); background: var(--tint); }
.doctor { margin-top: 72px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; background: var(--tint); border-radius: var(--r-lg); padding: 36px; }
.doctor__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); }
.doctor__name { font: 700 24px/1.4 var(--head); margin: 0 0 14px; }
.doctor__name small { display: block; font: 500 13px var(--body); color: var(--ink-3); letter-spacing: .1em; }
.doctor__list { margin: 0 0 14px; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.doctor__list li::marker { color: var(--accent); }
.doctor__cert { font-size: 14px; font-weight: 700; color: var(--brand-deep); margin: 0; }

/* ---------- 6. お問い合わせ ---------- */
.callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 26px 32px; border-radius: var(--r-md); background: var(--brand); color: #fff; text-decoration: none; margin-bottom: 20px; }
.callout:hover { background: var(--brand-deep); color: #fff; }
.callout__label { font-size: 14px; opacity: .85; }
.callout__tel { grid-row: span 2; grid-column: 2; font: 600 clamp(26px, 4vw, 34px) var(--latin); letter-spacing: .03em; }
.callout__time { font-size: 13px; opacity: .8; }
.alert { background: #fff8ec; border: 1px solid #f5d9a8; color: #6b4a12; border-radius: var(--r-sm); padding: 14px 18px; font-size: 14px; line-height: 1.8; margin-bottom: 32px; }
.form { background: #fff; border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__row { display: grid; gap: 8px; }
.form label { font-weight: 700; font-size: 14.5px; }
.req { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: #d0493f; border-radius: 4px; padding: 2px 6px; vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; font: 400 16px var(--body); padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--tint); color: var(--ink); transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.form [aria-invalid="true"] { border-color: #d0493f; }
.form__row--check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form__row--check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--brand); }
.form__status { margin: 0; font-size: 14.5px; min-height: 1.5em; }
.form__status.is-error { color: #c0392b; }
.form__status.is-ok { color: #17756a; font-weight: 700; }

/* ---------- 下層ページ（ブログ等） ---------- */
.subhead { background: linear-gradient(135deg, var(--brand-soft), #eaf8f6); padding: 56px 0 44px; }
.subhead h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.subhead__cat { font: 700 22px var(--head); margin: 0 0 18px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b8c2cf; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.post__head { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 14px var(--latin); color: var(--ink-3); margin: 0 0 14px; }
.post__title { font-size: clamp(24px, 3.2vw, 32px); }
.post__back { text-align: center; margin-top: 40px; }
.prose { font-size: 16.5px; line-height: 2; }
.prose h2 { font-size: 22px; margin: 2.2em 0 .8em; padding-left: 14px; border-left: 4px solid var(--brand); }
.prose h3 { font-size: 19px; margin: 2em 0 .6em; }
.prose h4, .prose h5 { font-size: 17px; margin: 1.6em 0 .5em; }
.prose img, .prose video { border-radius: var(--r-sm); margin: 1em 0; }
/* 解説動画の一覧（/videos/） */
.lead { max-width: 760px; margin: 0 0 28px; color: var(--muted, #5b6b80); line-height: 1.9; }
.vchans { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 40px; }
.vchan { display: flex; flex-direction: column; padding: 14px 22px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-deep); text-decoration: none; font-weight: 700; }
.vchan small { font-weight: 500; font-size: 12.5px; color: var(--brand); }
.vchan:hover { background: #dbe8f8; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.video { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.video__thumb { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 9; background: #0f1d2e; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.video__thumb:hover img { transform: scale(1.03); }
.video__meta { margin: 0 0 6px; font-size: 13.5px; color: var(--muted, #5b6b80); }
.video__title { font-size: 20px; line-height: 1.5; margin: 0 0 10px; }
.video__desc { margin: 0 0 16px; line-height: 1.8; }
.video__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.video__links .btn { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
@media (max-width: 760px) {
  .video { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .video__title { font-size: 18px; }
}
.prose .yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); margin: 1em 0 1.6em; background: #0f1d2e; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }
.prose th { background: var(--tint); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--tint); border-radius: var(--r-sm); border-left: 4px solid var(--accent); }
.prose pre { background: var(--tint); padding: 16px; border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; font-size: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.postnav a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-size: 14.5px; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
.postnav a:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.postnav small { display: block; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.postnav__next { text-align: right; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font: 500 15px var(--latin); color: var(--ink-2); }
.pager a { border: 1px solid var(--line); background: #fff; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-current { background: var(--brand); color: #fff; }
.pager__step { font-family: var(--body) !important; font-size: 14px !important; }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: #c9d2de; padding: 64px 0 0; font-size: 14.5px; }
.footer a { color: #fff; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__name { font: 700 22px var(--head); color: #fff; letter-spacing: .08em; margin-bottom: 10px; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 36px; align-content: start; }
.footer__nav a { text-decoration: none; color: #c9d2de; }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; margin: 48px 0 0; padding: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8793a3; }
.dock { display: none; }

/* ---------- スクロール時のふわっと表示 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   レスポンシブ（タブレット・スマートフォン）
   ========================================================= */
@media (max-width: 1024px) {
  .features, .cards { grid-template-columns: repeat(2, 1fr); }
  .nav__tel { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .pc { display: none; }
  .menu { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--brand-soft); cursor: pointer; }
  .menu__bar, .menu__bar::before, .menu__bar::after { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--brand-deep); transition: transform .25s, background .25s; }
  .menu__bar { position: relative; }
  .menu__bar::before { position: absolute; top: -6px; }
  .menu__bar::after { position: absolute; top: 6px; }
  .menu[aria-expanded="true"] .menu__bar { background: transparent; }
  .menu[aria-expanded="true"] .menu__bar::before { transform: translateY(6px) rotate(45deg); }
  .menu[aria-expanded="true"] .menu__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__tel { display: flex; align-items: center; margin-top: 16px; padding: 14px; background: var(--brand); color: #fff; border-radius: 14px; font-size: 22px; }
  .nav__tel span { color: rgba(255,255,255,.8); }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 9.5px; }

  .hero { padding: 24px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .hero__visual img { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 72px; }
  .today { left: 16px; right: 16px; bottom: -40px; min-width: 0; padding: 14px 18px; }
  .hero__text { padding-top: 24px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .features, .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .doctor { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .doctor__photo { max-width: 220px; }
  .form { padding: 24px 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; padding: 22px 24px; }
  .callout__tel { grid-row: auto; grid-column: auto; }
  .topics { padding: 22px; }
  .postnav { grid-template-columns: 1fr; }
  .postnav__next { text-align: left; }
  .footer__nav { grid-template-columns: repeat(2, auto); }
  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .dock a { display: grid; place-items: center; height: 46px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; }
  .dock__tel { background: var(--brand); color: #fff; }
  .dock__map { background: var(--brand-soft); color: var(--brand-deep); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .tabs button { padding: 8px 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .header, .dock, .footer, .form { display: none; } }

/* ---------- 調整 ---------- */
.about > *, .hero__inner > *, .doctor > * { min-width: 0; }
.card--noimg .card__thumb { aspect-ratio: auto; height: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.card--noimg[data-cat="news"] .card__thumb { background: linear-gradient(90deg, var(--accent), #8fd9cf); }
.card--noimg .card__body { padding-top: 22px; }

/* ---------- 院長紹介（メッセージ） ---------- */
.section--director { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.director { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.director > * { min-width: 0; }
.director__profile { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 26px; box-shadow: var(--shadow); }
.director__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); margin-bottom: 20px; }
.director__role { margin: 0; font: 600 12px var(--latin); letter-spacing: .2em; color: var(--accent); }
.director__name { font: 700 26px/1.4 var(--head); margin: 2px 0 14px; letter-spacing: .1em; }
.director__name small { display: block; font: 500 12.5px var(--body); color: var(--ink-3); letter-spacing: .12em; }
.director__list { margin: 0 0 14px; padding: 14px 0 0 1.1em; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.director__list li { margin-bottom: 4px; }
.director__list li::marker { color: var(--accent); }
.director__cert { margin: 0; font-size: 13px; font-weight: 700; color: var(--brand-deep); line-height: 1.8; background: var(--brand-soft); border-radius: var(--r-sm); padding: 10px 14px; }
.qa__title { font: 700 14px var(--body); color: var(--ink-3); letter-spacing: .12em; margin: 0 0 8px; }
.qa__item { padding: 36px 0; border-bottom: 1px solid var(--line); }
.qa__item:first-of-type { padding-top: 12px; }
.qa__item:last-child { border-bottom: 0; }
.qa__q { position: relative; font-size: clamp(18px, 2vw, 21px); padding-left: 52px; margin-bottom: 18px; min-height: 38px; display: flex; align-items: center; }
.qa__q::before { content: "Q"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 17px var(--latin); }
.qa__a { position: relative; padding-left: 52px; color: var(--ink-2); line-height: 2.05; }
.qa__a::before { content: "A"; position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 12px; background: #dcf3f0; color: #17756a; display: grid; place-items: center; font: 600 17px var(--latin); }
.qa__a p:last-child { margin-bottom: 0; }
.qa__figure { margin: 8px 0; }
.qa__figure img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; border-radius: var(--r-md); }

@media (max-width: 1024px) {
  .director { grid-template-columns: 260px 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .director { grid-template-columns: 1fr; gap: 32px; }
  .director__profile { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 0 18px; align-items: start; padding: 18px; }
  .director__photo { grid-row: span 3; margin: 0; }
  .director__list, .director__cert { grid-column: 1 / -1; margin-top: 16px; }
  .director__name { font-size: 22px; }
  .qa__q { padding-left: 46px; }
  .qa__q::before, .qa__a::before { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .qa__a { padding-left: 0; padding-top: 0; }
  .qa__a::before { display: none; }
}

/* ---------- 動画 ---------- */
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.movie { margin: 0 auto; max-width: 420px; }
.movie__video { display: block; width: 100%; height: auto; max-height: 80vh; background: #0f1d2e; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: contain; }
.movie--wide { max-width: 900px; }
@media (max-width: 860px) {
  .movie { max-width: 100%; }
  .movie__video { border-radius: var(--r-md); max-height: 78vh; }
}

/* ---------- 主な診療内容 ---------- */
.scope { margin-top: 56px; padding: 36px; border-radius: var(--r-lg); background: var(--brand-soft); }
.scope__title { font-size: 20px; margin: 0 0 20px; color: var(--brand-deep); }
.scope__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scope__item { background: #fff; border-radius: var(--r-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.scope__kind { font: 700 16.5px var(--head); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.scope__kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.scope__desc { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.scope__note { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 1024px) { .scope__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .scope { padding: 24px 18px; }
  .scope__list { grid-template-columns: 1fr; }
}

/* ---------- 院内のご紹介（パノラマ） ---------- */
.tour__tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 20px; overflow-x: auto; }
.tour__panel[hidden] { display: none; }
.pano { position: relative; height: min(62vh, 560px); overflow: hidden; border-radius: var(--r-lg); background: #dfe6ee; box-shadow: var(--shadow-lg); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.pano:focus-visible { box-shadow: 0 0 0 4px var(--accent), var(--shadow-lg); }
.pano.is-dragging { cursor: grabbing; }
.pano__img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; will-change: transform; pointer-events: none; }
.pano__hint { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); padding: 8px 18px; border-radius: 999px; background: rgba(15, 29, 46, .72); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: opacity .4s; pointer-events: none; }
.pano.is-used .pano__hint { opacity: 0; }
.pano__bar { position: absolute; left: 50%; bottom: 18px; width: 120px; height: 4px; margin-left: -60px; border-radius: 4px; background: rgba(255,255,255,.55); overflow: hidden; pointer-events: none; }
.pano__knob { position: absolute; top: 0; left: 0; height: 100%; width: 30%; border-radius: 4px; background: #fff; }
.pano__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--brand-deep); font: 700 26px/1 var(--latin); cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 3px; }
.pano__btn:hover { background: #fff; }
.pano__btn--prev { left: 14px; }
.pano__btn--next { right: 14px; }
.pano__btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  .pano { height: clamp(300px, 46vh, 380px); border-radius: var(--r-md); }
  .pano__btn { width: 38px; height: 38px; font-size: 22px; }
}

/* 写真のない「強み」カード：番号を本文の上に置く（2026-10-24） */
.feature > .feature__body:first-child .feature__num { position: static; margin-bottom: 14px; }
.director__photo { object-position: center 30%; }
