/* レイアウト: 予約サイトと同じ青い帯ヘッダー + 白カード。1 ページ縦積み、セクションごとに見出しアンカー */
:root {
  --brand: #3878b0;
  --brand-dark: #2c5f8f;
  --brand-tint: #e9f1f9;
  --brand-tint-2: #d5e4f3;
  --fg: #1f2933;
  --muted: #5f6b7a;
  --bg: #f3f6fa;
  --card: #ffffff;
  --line: #dfe6ee;
  --closed: #7a5f30;
  --closed-bg: #f6f0e4;
  --holiday: #b4473a;
  --holiday-bg: #fbeceb;
  --on-brand: #ffffff;
  --guest: #1d6b50;
  --guest-bg: #dcf1e7;
  --sat: #2c5f8f;
  --sun: #b4473a;
  --font-display:
    "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2f6496;
    --brand-dark: #8dbbe6;
    --brand-tint: #1b2a3a;
    --brand-tint-2: #22364b;
    --fg: #e4e9ef;
    --muted: #9aa7b6;
    --bg: #10161d;
    --card: #17202a;
    --line: #2a3644;
    --closed: #d8b981;
    --closed-bg: #2b2518;
    --holiday: #ec958a;
    --holiday-bg: #33201e;
    --sat: #8dbbe6;
    --guest: #86d6b4;
    --guest-bg: #17342a;
    --sun: #ec958a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2f6496;
  --brand-dark: #8dbbe6;
  --brand-tint: #1b2a3a;
  --brand-tint-2: #22364b;
  --fg: #e4e9ef;
  --muted: #9aa7b6;
  --bg: #10161d;
  --card: #17202a;
  --line: #2a3644;
  --closed: #d8b981;
  --closed-bg: #2b2518;
  --holiday: #ec958a;
  --holiday-bg: #33201e;
  --sat: #8dbbe6;
  --guest: #86d6b4;
  --guest-bg: #17342a;
  --sun: #ec958a;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--brand);
}
a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.35;
}
.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* ヘッダー（予約サイトと同じ青帯 + 白抜きロゴ） */
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: #fff;
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--brand);
  color: var(--on-brand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-brand);
  text-decoration: none;
}
.brand svg {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
/* HTML の並びは ロゴ → 電話 → メニューボタン → ナビ（スマホでボタンの次にメニュー項目を読むため）。
   広い画面では見た目だけ ロゴ → ナビ → 電話 に並べ替える */
.nav {
  order: 1;
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--on-brand);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 6px;
}
.nav a:hover,
.tel:hover,
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.tel {
  order: 2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-brand);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.menu-btn {
  display: none;
}
/* スマホ: ロゴ・電話・メニューボタンの 1 行にし、ページ内リンクはメニューにしまう。
   JS が動かないとメニューを開けないので、.js がないときは従来どおり並べて出す */
@media (max-width: 760px) {
  .site-header .wrap {
    gap: 8px;
  }
  /* 1 行目の高さをロゴで 60px に固定する。メニューを開いて 2 行になったとき、
     1 行目が中身の高さ（44px）に縮んでロゴが上にずれないように */
  .brand {
    margin-right: auto;
    min-height: 60px;
  }
  .brand-name {
    font-size: 19px;
  }
  .tel {
    order: 1;
    font-size: 14px;
    padding: 6px 10px;
  }
  .menu-btn {
    order: 2;
  }
  .nav {
    order: 3;
    margin-left: 0;
    width: 100%;
    padding-bottom: 8px;
  }
  .js .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
  .js .nav.open {
    display: flex;
  }
  .js .nav a {
    font-size: 16px;
    padding: 12px 8px;
  }
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--on-brand);
    cursor: pointer;
  }
  .bars,
  .bars::before,
  .bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
  }
  .bars::before,
  .bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .bars::before {
    top: -7px;
  }
  .bars::after {
    top: 7px;
  }
  .menu-btn[aria-expanded="true"] .bars {
    background: transparent;
  }
  .menu-btn[aria-expanded="true"] .bars::before {
    top: 0;
    transform: rotate(45deg);
  }
  .menu-btn[aria-expanded="true"] .bars::after {
    top: 0;
    transform: rotate(-45deg);
  }
}
/* 360〜400px（Android に多い幅）でもロゴ・電話番号・メニューを 1 行に収める */
@media (max-width: 400px) {
  .site-header .wrap {
    gap: 6px;
  }
  .brand {
    gap: 8px;
  }
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 17px;
    letter-spacing: 0.02em;
  }
  .tel {
    padding: 6px 8px;
    font-size: 13.5px;
  }
  .tel > [aria-hidden="true"] {
    display: none;
  }
}
/* それでも入りきらない画面では「電話」とだけ出す（番号の一部だけが見える状態にしない） */
@media (max-width: 339px) {
  .tel-num {
    font-size: 0;
  }
  .tel-num::after {
    content: "電話";
    font-size: 14px;
  }
}

/* お知らせ（検診予約） */
.notice {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--brand-tint-2);
  border-left: 6px solid var(--brand);
  border-radius: 10px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: center;
}
.notice .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.08em;
}
.notice p {
  margin: 0;
}
.notice .sub {
  font-size: 14px;
  color: var(--muted);
}
.notice-actions {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 640px) {
  .notice {
    grid-template-columns: 1fr;
  }
  .notice-actions {
    grid-row: auto;
    grid-column: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: #2c5f8f;
  color: #fff;
}
.btn-primary:hover {
  background: #244e76;
}
.btn-secondary {
  background: var(--card);
  color: var(--brand-dark);
  border-color: var(--brand-tint-2);
}
.btn-secondary:hover {
  background: var(--brand-tint);
}

/* ヒーロー */
.hero {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.hero-text {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hero-eyebrow {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0;
  color: var(--brand-dark);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--brand-tint-2) 62%);
}
.hero p {
  margin: 0;
}
.hero-photo {
  min-height: 260px;
  background: center / cover no-repeat url(/img/room-wait.jpg);
}
.today {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--bg);
}
/* カレンダーの取得が終わるまでは空。読み込んだときに下が大きくずれないよう、いちばん低い表示の高さを取っておく */
.today:empty {
  min-height: 108px;
}
@media (max-width: 560px) {
  .today:empty {
    min-height: 120px;
  }
}
.today-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.today-head strong {
  color: var(--fg);
  font-size: 15px;
}
.today-rows {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.today-rows li {
  display: grid;
  grid-template-columns: 3em 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.today-rows .l {
  font-weight: 700;
}
.today-rows .t {
  color: var(--muted);
}
.today-rows .doc {
  text-align: right;
  color: var(--muted);
  font-size: 15px;
}
.today-rows li.off,
.today-rows li.done {
  color: var(--muted);
}
.today-rows li.off .l,
.today-rows li.done .l {
  font-weight: 400;
}
.state {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 8px;
  margin-right: 8px;
  vertical-align: 1px;
}
.state.now {
  background: #2c5f8f;
  color: #fff;
}
.state.done {
  background: var(--line);
  color: var(--muted);
}
.today-msg {
  margin: 6px 0 0;
  font-weight: 700;
}
.today-msg.closed {
  color: var(--closed);
}
.today-next {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.today-next strong {
  color: var(--fg);
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    order: -1;
    min-height: 200px;
  }
  .hero-text {
    padding: 22px 20px;
  }
}

/* セクション */
section.block {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
}
@media (max-width: 640px) {
  section.block {
    padding: 22px 18px;
  }
}
.block > h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--brand-dark);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.block > h2 .en {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.block .lead {
  margin: 0 0 18px;
  color: var(--muted);
}

/* 診療時間表 */
.hours-wrap {
  overflow-x: auto;
}
table.hours {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.hours th,
.hours td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}
.hours thead th {
  font-weight: 700;
  font-size: 15px;
  background: var(--brand-tint);
}
.hours thead th:first-child {
  border-top-left-radius: 8px;
}
.hours thead th:last-child {
  border-top-right-radius: 8px;
}
.hours thead .sat {
  color: var(--sat);
}
.hours thead .sun {
  color: var(--sun);
}
.hours thead th:first-child {
  width: 8.5em;
}
.hours tbody th {
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  padding-left: 12px;
}
.hours tbody th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}
.hours .on {
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1;
}
.hours .off {
  color: var(--muted);
  font-size: 15px;
}
.hours td {
  position: relative;
}
/* 注記は丸の下に置く（注記のある列だけ丸の位置がずれないように） */
.hours .note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}
@media (max-width: 560px) {
  .hours th,
  .hours td {
    padding: 10px 2px;
  }
  .hours thead th {
    font-size: 14px;
    white-space: nowrap;
  }
  /* 「日・祝」が列幅に入らず折り返すので、スマホでは「日祝」にする */
  .hours thead .sep {
    display: none;
  }
  .hours thead th:first-child {
    width: 5.6em;
  }
  .hours tbody th {
    padding-left: 6px;
    font-size: 15px;
  }
  .hours tbody th small {
    font-size: 12px;
  }
  .hours .on {
    font-size: 18px;
  }
  .hours .off {
    font-size: 13px;
  }
  .hours .note {
    font-size: 12px;
  }
}
.hours-notes {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}
.hours-notes li:not(.mark)::before {
  content: "・";
}

/* カレンダー */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 10px;
  flex-wrap: wrap;
}
.cal-head h3 {
  margin: 0;
  font-size: 19px;
}
.cal-nav {
  display: flex;
  gap: 6px;
}
.cal-nav button {
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}
.cal-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}
.cal-nav button:not(:disabled):hover {
  background: var(--brand-tint);
}
/* スワイプ・月の切り替えで横に動かすカレンダーがページの横幅を広げないように切る。
   広がるとスマホではページ全体が縮小表示され、ヘッダーまで小さくなる。
   余白はフォーカスリング（枠 3px + 間隔 2px）を切らないための分 */
.cal-viewport {
  overflow-x: hidden; /* clip に未対応の iOS 15 以前向け */
  overflow-x: clip;
  padding: 6px;
  margin: -6px;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal .dow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
}
.cal .dow.sat {
  color: var(--sat);
}
.cal .dow.sun {
  color: var(--sun);
}
.day {
  position: relative;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  min-width: 0;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}
button.day:hover {
  border-color: var(--brand);
}
.day[aria-pressed="true"] {
  background: var(--brand-tint);
  border-color: var(--brand);
}
.day.empty {
  border-color: transparent;
  background: none;
}
.day .d {
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.day.sat .d {
  color: var(--sat);
}
.day.sun .d,
.day.hol .d {
  color: var(--sun);
}
.day.is-today {
  box-shadow: inset 0 0 0 1px var(--brand);
  border-color: var(--brand);
}
.day.is-today .d::after {
  content: "今日";
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #2c5f8f;
  border-radius: 4px;
  padding: 0 4px;
  vertical-align: 2px;
}
.wide {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.slot {
  display: block;
  border-radius: 4px;
  padding: 1px 4px;
  background: var(--brand-tint);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.slot b {
  font-weight: 700;
  color: var(--brand-dark);
  margin-right: 3px;
}
.slot.guest {
  background: var(--guest-bg);
  color: var(--guest);
  font-weight: 700;
}
.slot.guest b {
  color: var(--guest);
}
.day[aria-pressed="true"] .slot:not(.guest) {
  background: var(--card);
}
.tag {
  display: block;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 700;
}
.tag.closed {
  background: var(--closed-bg);
  color: var(--closed);
}
.tag.hol {
  background: var(--holiday-bg);
  color: var(--holiday);
}
/* スマホ用の午前・午後表示。広い画面では担当医を出すので隠す */
.ampm {
  display: none;
}
.cal-detail {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.cal-detail .hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.cal-detail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px 18px;
  flex-wrap: wrap;
}
.cal-detail li {
  display: flex;
  gap: 8px;
}
.cal-detail .l {
  font-weight: 700;
}
.cal-detail .t,
.cal-detail li.off {
  color: var(--muted);
}
.cal-detail .closed {
  color: var(--closed);
  font-weight: 700;
}
.cal-legend {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-legend i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}
.lg-guest {
  background: var(--guest-bg);
  box-shadow: inset 0 0 0 1px var(--guest);
}
.lg-closed {
  background: var(--closed-bg);
  box-shadow: inset 0 0 0 1px var(--closed);
}
.lg-hol {
  background: var(--holiday-bg);
  box-shadow: inset 0 0 0 1px var(--holiday);
}
.cal-legend .swipe-hint {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .cal-legend .swipe-hint {
    display: inline-flex;
  }
}
@media (max-width: 560px) {
  .day {
    min-height: 70px;
    padding: 4px 3px;
    align-items: center;
    text-align: center;
    font-size: 12px;
  }
  .day .d {
    font-size: 13px;
  }
  .day.is-today .d::after {
    display: none;
  }
  /* スマホは「今日」の文字を出せないので、日付の数字を塗りつぶして示す（選んだ日の背景色と区別する） */
  .day.is-today .d {
    background: #2c5f8f;
    color: #fff;
    border-radius: 999px;
    padding: 0 6px;
  }
  .wide {
    display: none;
  }
  .ampm {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .ampm span {
    border-radius: 3px;
    padding: 0 2px;
    line-height: 1.5;
  }
  .ampm .on {
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 700;
  }
  /* 院長以外: 色に加えて枠線で区別する */
  .ampm .on.guest {
    background: var(--guest-bg);
    color: var(--guest);
    box-shadow: inset 0 0 0 1px var(--guest);
  }
  /* 診療しない時間帯は出さない。場所は残して、日ごとに午前・午後の段をそろえる */
  .ampm .off {
    visibility: hidden;
  }
  .day[aria-pressed="true"] .ampm .on:not(.guest) {
    background: var(--card);
  }
  .tag {
    width: 100%;
  }
}

/* 特徴 */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.features li {
  border-top: 3px solid var(--brand);
  padding-top: 12px;
}
.features h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.features p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.closing {
  margin: 20px 0 0;
  padding: 14px 18px;
  background: var(--brand-tint);
  border-radius: 10px;
}

/* 医師紹介 */
.doctors {
  display: grid;
  gap: 18px;
}
.doctor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doctor:first-child {
  border-top: 0;
  padding-top: 0;
}
.doctor img {
  width: 150px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  max-width: 100%;
  background: var(--bg);
}
.doctor h3 {
  margin: 0;
  font-size: 21px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.doctor h3 .role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 1px 8px;
  border-radius: 999px;
}
.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 10px 0 0;
  font-size: 15px;
}
.meta dt {
  color: var(--muted);
}
.meta dd {
  margin: 0;
}
.doctor .message {
  margin: 12px 0 0;
  font-size: 15.5px;
}
details.career {
  margin-top: 10px;
}
details.career summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
}
.timeline {
  margin: 8px 0 0;
  padding: 0 0 0 1.2em;
  font-size: 14.5px;
}
.timeline li {
  padding: 3px 0;
}
@media (max-width: 560px) {
  .doctor {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }
  .doctor img {
    width: 96px;
  }
}

/* 院内 */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin: 0;
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.gallery figure:first-child {
  grid-row: span 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}
.gallery figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 13px;
  background: rgba(20, 30, 40, 0.72);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
}
@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery figure:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}

/* アクセス */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .access {
    grid-template-columns: 1fr;
  }
}
.map {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.map svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-note {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 16px;
  /* <wbr> の位置でだけ折り返す（「2」と「階」の間で切れないように） */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.map .road {
  stroke: var(--brand-dark);
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
}
.map .station {
  fill: var(--card);
  stroke: var(--fg);
  stroke-width: 1.5;
}
.map .bldg {
  fill: var(--card);
  stroke: var(--muted);
  stroke-width: 1;
}
.map .ev {
  fill: var(--card);
  stroke: var(--fg);
  stroke-width: 1.5;
}
.map .route {
  stroke: var(--fg);
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
  fill: none;
}
.map .route-head {
  fill: var(--fg);
}
.map text {
  fill: var(--fg);
  font-family: var(--font-body);
}
.map .small {
  fill: var(--muted);
}
.map .arrow {
  fill: var(--fg);
}
.info {
  display: grid;
  gap: 14px;
  margin: 0;
}
.info div {
  display: grid;
  gap: 2px;
}
.info dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.info dd {
  margin: 0;
}
.info .big {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.info ul {
  margin: 0;
  padding-left: 1.2em;
}
.access-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

footer.site-footer {
  margin-top: 28px;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-block: 22px 28px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
footer .f-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  font-size: 16px;
}
