/* デモサイト共通（医院ごとの色・文字は各ページの :root、医院ごとの違いは .t-◯◯ で上書き） */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.85; letter-spacing: .04em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
svg { display: block; }

/* デモのお知らせ（固定しない。本物のサイトには無い帯なので細く） */
.demobar { margin: 0; padding: 6px 16px; background: #3a3a3a; color: #eee; font-size: 12px; line-height: 1.6; text-align: center; }
.demobar a { color: #fff; margin-left: .8em; text-underline-offset: 3px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r); font-weight: 700; font-size: 14.5px; text-decoration: none; line-height: 1.3; transition: opacity .3s, background-color .3s; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--main { background: var(--p); color: #fff; }
.btn--tel { background: var(--a); color: #fff; }
.btn--line { border: 1px solid currentColor; color: var(--p2); background: transparent; }
.btn--line svg { width: 7px; height: 12px; }
.btn.is-demo { opacity: .55; cursor: not-allowed; }
@media (hover: hover) { .btn:hover { opacity: .85; } }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.06); }
.hd__in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo__t { display: flex; flex-direction: column; min-width: 0; }
.logo__n { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: .06em; white-space: nowrap; }
.logo__e { font-size: 10.5px; letter-spacing: .14em; color: var(--p); line-height: 1.4; white-space: nowrap; }
.hd__info { text-align: right; }
.hd__tel a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--p2); text-decoration: none; letter-spacing: .04em; line-height: 1.2; }
.hd__tel svg { width: 18px; height: 18px; color: var(--p); }
.hd__hours { font-size: 11.5px; color: #777; line-height: 1.5; }
.burger { display: none; }
.gnav { border-top: 1px solid rgba(0,0,0,.05); }
.gnav ul { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; }
.gnav li { flex: 1; }
.gnav a { display: block; padding: 13px 4px; text-align: center; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.gnav a[aria-current] { border-bottom-color: var(--p); color: var(--p2); font-weight: 700; }
@media (hover: hover) { .gnav a:hover { color: var(--p); } }
.gnav__sp { display: none; }

/* トップの写真 */
.hero { position: relative; overflow: hidden; }
.hero__ph { position: relative; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s; }
.hero__ph img.on { opacity: 1; }
.hero__lead { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--p); }
.hero__h { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.5; letter-spacing: .06em; margin-top: 14px; }
.hero__p { margin-top: 18px; font-size: 15px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 写真の上に白い面（内科） */
.hero--overlay-left .hero__ph { height: min(78vh, 680px); }
.hero--overlay-left .hero__t { position: absolute; left: max(24px, calc(50% - 576px)); bottom: 56px; width: min(640px, calc(100% - 48px)); background: rgba(255,255,255,.93); padding: 40px 44px; border-radius: var(--r); }
/* 左に文字・右に写真（歯科） */
.hero--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; max-width: 1280px; margin: 0 auto; padding: 48px 24px 56px; gap: 48px; }
.hero--split .hero__t { order: 1; }
.hero--split .hero__ph { order: 2; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; }
/* 写真いっぱいに中央の文字（美容皮膚科） */
.hero--full-center .hero__ph { height: min(84vh, 720px); }
.hero--full-center .hero__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(248,244,238,.15), rgba(248,244,238,.55)); }
.hero--full-center .hero__t { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
.hero--full-center .hero__lead { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 18px; letter-spacing: .2em; color: var(--p2); }
.hero--full-center .hero__h { font-weight: 500; letter-spacing: .2em; }
.hero--full-center .hero__btns { justify-content: center; }
/* 角の丸い写真と波（小児科） */
.hero--round { padding: 28px 24px 0; }
.hero--round .hero__ph { max-width: 1240px; margin: 0 auto; height: min(70vh, 600px); border-radius: 40px; overflow: hidden; }
.hero--round .hero__t { position: relative; max-width: 760px; margin: -110px auto 0; background: #fff; border-radius: 32px; padding: 36px 40px; text-align: center; box-shadow: 0 10px 30px rgba(120,80,60,.08); }
.hero--round .hero__btns { justify-content: center; }
/* 縦書き（心療内科） */
.hero--vertical { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1280px; margin: 0 auto; padding: 40px 24px 56px; gap: 40px; align-items: stretch; }
.hero--vertical .hero__t { display: grid; grid-template-columns: auto auto; justify-content: center; align-content: center; gap: 0 28px; }
.hero--vertical .hero__lead { writing-mode: vertical-rl; letter-spacing: .3em; font-weight: 500; grid-column: 2; grid-row: 1; }
.hero--vertical .hero__h { writing-mode: vertical-rl; font-weight: 500; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.9; letter-spacing: .24em; margin: 0; grid-column: 1; grid-row: 1; height: 15.5em; }
.hero--vertical .hero__p, .hero--vertical .hero__btns { grid-column: 1 / -1; }
.hero--vertical .hero__p { margin-top: 28px; text-align: center; }
.hero--vertical .hero__btns { justify-content: center; }
.hero--vertical .hero__ph { min-height: 560px; border-radius: var(--r); overflow: hidden; }
/* 暗い写真に白い文字（整形外科） */
.hero--dark { background: var(--p2); color: #fff; }
.hero--dark .hero__ph { height: min(86vh, 760px); }
.hero--dark .hero__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,54,.94) 0%, rgba(11,34,54,.78) 45%, rgba(11,34,54,.25) 100%); }
.hero--dark .hero__t { position: absolute; inset: 0; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; }
.hero--dark .hero__lead { font-family: 'Oswald', sans-serif; letter-spacing: .3em; color: var(--p); }
.hero--dark .hero__h { font-weight: 900; max-width: 14em; }
.hero--dark .hero__p { max-width: 34em; color: #d6e2ea; }
.hero--dark .btn--line { color: #fff; }
.stats { display: flex; margin-top: 36px; border: 1px solid rgba(255,255,255,.2); max-width: 620px; }
.stats li { flex: 1; padding: 16px 18px; border-left: 1px solid rgba(255,255,255,.2); }
.stats li:first-child { border-left: 0; }
.stats b { font-family: 'Oswald', sans-serif; font-size: 34px; color: var(--p); letter-spacing: 0; }
.stats small { margin-left: 4px; font-size: 13px; }
.stats span { display: block; font-size: 12px; color: #c3d2dc; line-height: 1.5; }
.stats__note { font-size: 11px; color: #9fb2c0; margin-top: 8px; }

/* お知らせ＋診療時間 */
.info { background: var(--bg2); padding: 56px 24px; }
.info__in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.info__news, .info__hours { background: #fff; border-radius: var(--r); padding: 28px 30px; }
.info__h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--p); padding-bottom: 10px; margin-bottom: 8px; }
.info__h h2 { font-family: var(--head); font-size: 20px; letter-spacing: .08em; }
.info__h a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--p2); }
.info__h a svg { width: 6px; height: 11px; }
.news li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed #ddd; }
.news time { font-size: 13px; color: #888; font-variant-numeric: tabular-nums; }
.news p { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.7; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; justify-self: start; }
.tag--info { background: var(--bg2); color: var(--p2); }
.tag--off { background: #fbe9e7; color: #b44c3a; }

/* 診療時間の表（スマホでも8列が入る大きさ） */
.ht table { width: 100%; text-align: center; font-size: 14px; table-layout: fixed; }
.ht th, .ht td { padding: 10px 2px; border-bottom: 1px solid #e3e3e3; }
.ht thead th { background: var(--p); color: #fff; font-weight: 500; font-size: 13px; }
.ht thead th:first-child { width: 30%; }
.ht tbody th { font-weight: 500; font-size: 13px; text-align: left; padding-left: 8px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ht td { color: var(--p); font-size: 15px; }
.ht td.is-off { color: #bbb; }
.ht__lab { display: block; font-size: 11px; color: #888; }
.notes { margin-top: 12px; }
.notes li { position: relative; padding-left: 1.2em; font-size: 14px; line-height: 1.75; color: #666; }
.notes li::before { content: "※"; position: absolute; left: 0; }

/* 見出し */
.sh { text-align: center; margin-bottom: 40px; }
.sh__en { font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--p); }
.sh__ja { font-family: var(--head); font-size: clamp(24px, 2.4vw, 30px); letter-spacing: .1em; line-height: 1.5; margin-top: 4px; }
.sh__lead { margin-top: 12px; font-size: 14.5px; color: #666; }
.sec { padding: 88px 24px; }
.sec > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* 特徴 */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feat__ph { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.feat__ph img { width: 100%; height: 100%; object-fit: cover; }
.feat__t { padding-top: 18px; }
.feat__no { font-family: var(--head); font-size: 13px; color: var(--a); letter-spacing: .1em; font-weight: 700; }
.feat h3 { font-family: var(--head); font-size: 18.5px; line-height: 1.5; margin: 4px 0 8px; }
.feat p { font-size: 14.5px; }

/* 診療案内カード */
.sec--med { background: var(--bg2); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; }
.card__ph { aspect-ratio: 3 / 2; overflow: hidden; }
.card__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
@media (hover: hover) { .card:hover .card__ph img { transform: scale(1.05); } }
.card__t { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__t b { font-family: var(--head); font-size: 18px; color: var(--p2); }
.card__t span { font-size: 14.5px; line-height: 1.7; color: #666; margin-top: 6px; }
.card__t i { margin-top: auto; padding-top: 12px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--p); display: inline-flex; align-items: center; gap: 6px; }
.card__t i svg { width: 6px; height: 11px; }

/* 院長あいさつ */
.greet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.greet__ph { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.greet__ph img { width: 100%; height: 100%; object-fit: cover; }
.greet .sh { text-align: left; margin-bottom: 24px; }
.greet__t p + p { margin-top: 14px; }
.greet__sign { margin: 22px 0 26px !important; font-size: 14px; }
.greet__sign b { font-family: var(--head); font-size: 20px; margin-left: .5em; }

/* アクセス */
.sec--access { background: var(--bg2); }
.acc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.map { width: 100%; height: auto; border-radius: var(--r); }
.acc__dl { display: grid; grid-template-columns: 5em 1fr; background: #fff; border-radius: var(--r); padding: 12px 24px; }
.acc__dl dt, .acc__dl dd { padding: 14px 0; border-bottom: 1px solid #eee; font-size: 14.5px; }
.acc__dl dt { font-weight: 700; color: var(--p2); }
.acc__dl dt:last-of-type, .acc__dl dd:last-of-type { border-bottom: 0; }

/* 下層ページ */
.phead { position: relative; height: 260px; overflow: hidden; }
.phead__ph, .phead__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phead__ph::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.phead__t { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; padding: 0 16px; }
.phead__en { font-size: 12px; letter-spacing: .3em; font-weight: 700; }
.phead h1 { font-family: var(--head); font-size: clamp(26px, 3vw, 36px); letter-spacing: .12em; }
.crumb ol { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; font-size: 12.5px; color: #888; }
.crumb li + li::before { content: "＞"; margin: 0 .6em; }
.crumb a { text-decoration: none; color: var(--p2); }
.pbody { max-width: 1100px; margin: 0 auto; padding: 32px 24px 96px; }
.pbody__lead { font-size: 15.5px; text-align: center; margin-bottom: 48px; }
.psec + .psec { margin-top: 88px; }
.dept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid rgba(0,0,0,.08); }
.dept--rev .dept__ph { order: 2; }
.dept__ph { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; }
.dept__ph img { width: 100%; height: 100%; object-fit: cover; }
.dept h2 { font-family: var(--head); font-size: 24px; letter-spacing: .08em; color: var(--p2); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--bg2); color: var(--p2); }
.more-link { text-align: center; margin-top: 40px; }
.doc { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; background: #fff; border-radius: var(--r); padding: 40px; }
.doc + .doc { margin-top: 24px; }
.doc__mono { width: 180px; height: 220px; display: grid; place-items: center; background: var(--bg2); color: var(--p); font-family: var(--head); font-size: 64px; border-radius: var(--r); }
.doc__role { font-size: 13px; color: var(--p); font-weight: 700; }
.doc__name { font-family: var(--head); font-size: 26px; letter-spacing: .1em; margin-bottom: 16px; }
.doc__name small { font-size: 13px; color: #888; margin-left: 1em; letter-spacing: .1em; }
.doc__t > p + p { margin-top: 12px; }
.doc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eee; }
.doc__cols h3 { font-size: 14px; color: var(--p2); margin-bottom: 6px; }
.doc__cols li, .doc__lic li { font-size: 14px; line-height: 1.9; }
.doc__lic { margin-top: 10px; }
.doc__note { font-size: 12px; color: #999; margin-top: 16px; }
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gal img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--r); }
.gal figcaption { margin-top: 10px; font-size: 14px; line-height: 1.7; }
.gal figcaption b { display: block; font-family: var(--head); font-size: 16.5px; color: var(--p2); }
.eq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.eq li { position: relative; padding: 12px 0 12px 1.6em; border-bottom: 1px solid #e6e6e6; font-size: 14.5px; }
.eq li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r); padding: 26px 24px; border-top: 4px solid var(--p); }
.step__no { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--p); }
.steps h3 { font-family: var(--head); font-size: 18px; margin: 4px 0 8px; }
.steps p { font-size: 14px; }
.note-box { margin-top: 24px; background: var(--bg2); padding: 18px 22px; border-radius: var(--r); font-size: 14px; }
.reserve { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
.reserve > div { background: #fff; border-radius: var(--r); padding: 30px 20px; }
.reserve__h { font-weight: 700; color: var(--p2); margin-bottom: 8px; }
.reserve__tel a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 30px; font-weight: 700; text-decoration: none; color: var(--p2); }
.reserve__tel svg { width: 24px; height: 24px; color: var(--p); }
.reserve p + p { margin-top: 10px; font-size: 13px; color: #777; }
.cals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mcal { background: #fff; border-radius: var(--r); padding: 20px; }
.mcal__h { text-align: center; font-family: var(--head); font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.mcal table { width: 100%; text-align: center; table-layout: fixed; font-variant-numeric: tabular-nums; }
.mcal th { font-size: 12px; color: #888; padding: 4px 0; }
.mcal th:first-child { color: #c0533f; }
.mcal td { padding: 6px 0; font-size: 14px; }
.mcal td.c-off { background: #fbe9e7; color: #b44c3a; }
.mcal td.c-half { background: #fdf3dc; color: #8a6a1f; }
.cal-legend { display: flex; gap: 18px; justify-content: center; margin-top: 14px; font-size: 13px; }
.cal-legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border: 1px solid #ddd; }
.cal-legend .c-open { background: #fff; } .cal-legend .c-off { background: #fbe9e7; } .cal-legend .c-half { background: #fdf3dc; }
.pr, .vx { width: 100%; background: #fff; font-size: 14px; }
.pr th, .pr td, .vx th, .vx td { padding: 16px 14px; border-bottom: 1px solid #e6e1d8; text-align: left; vertical-align: top; line-height: 1.7; }
.pr thead th, .vx thead th { background: var(--bg2); font-weight: 600; font-size: 13px; }
.pr tbody th small { display: block; font-size: 12px; color: #888; font-weight: 400; }
.pr__yen { white-space: nowrap; font-weight: 600; color: var(--p2); }
.pr__risk { font-size: 13px; color: #666; }
.vx tbody th { white-space: nowrap; color: var(--p2); }

/* フッター */
.ft { background: var(--p2); color: rgba(255,255,255,.88); padding: 56px 24px 32px; font-size: 13.5px; }
.ft__in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.ft__logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 10px; }
.ft__logo svg { width: 34px; height: 34px; }
.ft__info p + p { margin-top: 4px; }
.ft .ht table { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 4px; overflow: hidden; }
.ft__nav { max-width: 1200px; margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 6px 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.ft__nav a { text-decoration: none; }
.ft__note { max-width: 1200px; margin: 20px auto 0; font-size: 11.5px; color: rgba(255,255,255,.65); line-height: 1.7; }
.ft__copy { max-width: 1200px; margin: 6px auto 0; font-size: 11px; color: rgba(255,255,255,.55); }
.spbar { display: none; }

/* ---- 医院ごとの違い ---- */
.t-derma .logo__n { font-weight: 500; letter-spacing: .16em; }
.t-derma .sh__en, .t-derma .phead__en { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 15px; letter-spacing: .3em; }
.t-derma .sh__ja, .t-derma .dept h2, .t-derma .doc__name { font-weight: 500; }
.t-derma .info__news, .t-derma .info__hours, .t-derma .card, .t-derma .doc { border: 1px solid #e6dccd; }
.t-derma .btn { letter-spacing: .14em; font-weight: 500; }
.t-kids .sh__ja, .t-kids .hero__h { font-weight: 800; }
.t-kids .info { background: #fff3e6; }
.t-kids .sec--med { background: #eef7fa; }
.t-kids .feat__ph { border-radius: 50% 50% 28px 28px / 36% 36% 28px 28px; }
.t-kids .hero__h { color: #4a3f3a; }
.t-mental .sh__ja, .t-mental .dept h2, .t-mental .doc__name, .t-mental .logo__n { font-weight: 500; }
.t-mental .info__news, .t-mental .info__hours, .t-mental .card, .t-mental .doc { border: 1px solid #e0ddd2; }
.t-mental .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t-ortho .logo__n { font-weight: 900; }
.t-ortho .logo__e { font-family: 'Oswald', sans-serif; letter-spacing: .2em; }
.t-ortho .sh__en, .t-ortho .phead__en { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: .3em; }
.t-ortho .sh__ja { font-weight: 900; }
.t-ortho .hd { background: #0b2236; color: #fff; border-bottom: 0; }
.t-ortho .hd__tel a { color: #fff; }
.t-ortho .hd__hours { color: #9fb2c0; }
.t-ortho .gnav { border-top-color: rgba(255,255,255,.1); }
.t-ortho .gnav a[aria-current] { color: #fff; }
.t-ortho .ht thead th { background: #0b2236; }
.t-ortho .btn--tel { background: #e9572b; }
.t-dental .hero { background: linear-gradient(180deg, #f3f8fd, #fff); }
.t-dental .btn { border-radius: 999px; }

/* ---- タブレット ---- */
@media (max-width: 1100px) {
  .hd__info { display: none; }
  .gnav a { font-size: 13.5px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- スマホ ---- */
@media (max-width: 767px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .demobar { font-size: 11px; padding: 6px 12px; }
  .demobar a { display: inline-block; margin-left: .4em; }
  .hd__in { padding: 10px 16px; gap: 10px; }
  .logo svg { width: 34px; height: 34px; }
  .logo__n { font-size: 16px; white-space: normal; }
  .t-mental .logo__n { font-size: 14.5px; letter-spacing: .02em; }
  .logo__e { font-size: 9px; white-space: normal; }
  .hd__in > .btn { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 48px; height: 48px; padding: 0; border: 0; background: var(--p); color: #fff; border-radius: var(--r); flex: none; }
  .t-derma .burger, .t-mental .burger { border-radius: 4px; }
  .burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
  .burger b { font-size: 9px; font-weight: 500; line-height: 1; margin-top: 2px; letter-spacing: 0; }
  .is-nav .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-nav .burger span:nth-child(2) { opacity: 0; }
  .is-nav .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; max-height: calc(100vh - 70px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.12); color: var(--ink); }
  .is-nav .gnav { display: block; }
  .gnav ul { display: block; padding: 0 16px; }
  .gnav a { text-align: left; padding: 15px 4px; border-bottom: 1px solid #eee; font-size: 15px; }
  .gnav a[aria-current] { border-bottom-color: #eee; color: var(--p); }
  .t-ortho .gnav a[aria-current] { color: var(--p); }
  .gnav__sp { display: block; padding: 18px 16px 24px; text-align: center; font-size: 13px; color: #666; }
  .gnav .gnav__sp a.btn { display: flex; width: 100%; font-size: 17px; margin-bottom: 10px; padding: 0 22px; border: 0; color: #fff; text-align: center; }

  .hero__h { font-size: 26px; }
  .hero--overlay-left .hero__ph { height: 300px; }
  .hero--overlay-left .hero__t { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 16px 0; padding: 26px 22px; }
  .hero--split { display: flex; flex-direction: column; padding: 16px 16px 40px; gap: 24px; }
  .hero--split .hero__ph { order: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; }
  .hero--full-center .hero__ph { height: 70vh; min-height: 460px; }
  .hero--round { padding: 12px 12px 0; }
  .hero--round .hero__ph { height: 280px; border-radius: 26px; }
  .hero--round .hero__t { margin: -60px 8px 0; padding: 26px 20px; border-radius: 24px; }
  .hero--vertical { display: flex; flex-direction: column; padding: 16px 16px 40px; gap: 24px; }
  .hero--vertical .hero__ph { min-height: 0; aspect-ratio: 4 / 3; order: -1; width: 100%; }
  .hero--vertical .hero__h { font-size: 24px; height: 12.5em; }
  .hero--dark .hero__ph { height: auto; min-height: 640px; }
  .hero--dark .hero__ph::after { background: linear-gradient(180deg, rgba(11,34,54,.5) 0%, rgba(11,34,54,.88) 60%); }
  .hero--dark .hero__t { padding: 40px 16px; justify-content: flex-start; }
  .stats li { padding: 12px 10px; }
  .stats b { font-size: 24px; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .hero__btns .btn { width: 100%; }

  .info { padding: 32px 12px; }
  .info__in { grid-template-columns: 1fr; gap: 16px; }
  .info__news, .info__hours { padding: 20px 16px; }
  .ht th, .ht td { padding: 9px 0; }
  .ht thead th { font-size: 13px; }
  .ht thead th:first-child { width: 27%; }
  .ht tbody th { font-size: 13.5px; padding-left: 4px; }
  .ht td { font-size: 13.5px; }
  .sec { padding: 56px 16px; }
  .sh { margin-bottom: 28px; }
  .feats, .cards, .t-mental .cards { grid-template-columns: 1fr; gap: 24px; }
  .greet { grid-template-columns: 1fr; gap: 24px; }
  .greet__ph { aspect-ratio: 3 / 2; }
  .acc { grid-template-columns: 1fr; gap: 16px; }
  .acc__dl { padding: 6px 16px; grid-template-columns: 4.5em 1fr; }
  .phead { height: 170px; }
  .crumb ol { padding: 10px 16px; }
  .pbody { padding: 20px 16px 64px; }
  .psec + .psec { margin-top: 56px; }
  .dept { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .dept--rev .dept__ph { order: 0; }
  .doc { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
  .doc__mono { width: 96px; height: 96px; font-size: 40px; }
  .doc__cols { grid-template-columns: 1fr; }
  .gal, .eq, .reserve, .cals { grid-template-columns: 1fr; }
  .gal { gap: 24px; }
  .reserve__tel a { font-size: 26px; }
  /* 料金・予防接種の表は縦に積む */
  .pr thead, .vx thead { display: none; }
  .pr, .pr tbody, .pr tr, .pr th, .pr td, .vx, .vx tbody, .vx tr, .vx th, .vx td { display: block; width: 100%; }
  .pr tr, .vx tr { padding: 14px 16px; border-bottom: 1px solid #e6e1d8; }
  .pr th, .pr td, .vx th, .vx td { border: 0; padding: 2px 0; }
  .pr td:nth-of-type(2)::before { content: "回数の目安："; color: #888; }
  .pr__yen { font-size: 17px; }
  .ft { padding: 40px 16px 28px; }
  .ft__in { grid-template-columns: 1fr; gap: 24px; }
  .ft__nav { gap: 6px 18px; }
  /* 下に固定の2つのボタン（電話・予約／アクセス） */
  .spbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.1); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .spbar .btn { min-height: 48px; padding: 0 8px; font-size: 14px; }
  .t-ortho .hd__tel a { color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .hero__ph img { transition: none; } }
