:root {
  --blue-900: #10224d;
  --blue-800: #1e3a8a;
  --blue-700: #2f55b8;
  --blue-100: #e6ebf7;
  --blue-050: #f3f5fb;
  --cyan-500: #2e8b9a;
  --orange-600: #d2691e; /* 電話CTA専用色（ネイビーに合わせたテラコッタ系オレンジ） */
  --orange-700: #b85a17;
  --ink: #1f2d3d;
  --muted: #64748b;
  --line: #d6dcea;
  --white: #fff;
  --shadow: 0 10px 30px rgba(16,34,77,.10);
  --radius: 16px;
  --header-h: 68px;
  --site-w: 600px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: #eceff6;
}
body {
  width: 100%;
  max-width: var(--site-w);
  min-height: 100vh;
  margin-inline: auto;
  padding-bottom: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  box-shadow: 0 0 34px rgba(16,34,77,.08);
}
body.is-menu-open { overflow: hidden; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; padding: 8px 12px; background: var(--blue-900); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214,220,234,.9);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo { color: var(--blue-800); font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.global-nav { display: none; }
.menu-button { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; color: var(--blue-800); }
.menu-button span { width: 24px; height: 2px; background: currentColor; transition: .25s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 50%;
  z-index: 900;
  width: min(100%, var(--site-w));
  padding: 28px 24px 92px;
  color: #fff;
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .22s ease, visibility .22s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.22); font-weight: 700; }
.mobile-menu a::after { content: "›"; font-size: 1.4rem; }

.hero { position: relative; overflow: hidden; background: #eef1f8; }
.hero-picture { display: block; width: 100%; }
.hero-image { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
#medical { padding-top: 52px; }

.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading__en { color: var(--blue-700); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.section-heading__jp { margin-top: 3px; color: var(--blue-800); font-size: 1.55rem; font-weight: 800; }
.section-heading__jp::before, .section-heading__jp::after { content: ""; display: inline-block; width: 34px; height: 1px; margin: 0 10px 5px; background: var(--blue-700); }

.medical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.medical-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 20px 14px; text-align: center; min-height: 186px; }
.medical-card--wide { grid-column: 1 / -1; min-height: auto; }
.medical-card__icon { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-size: 1.7rem; }
.medical-card__icon img { width: 40px; height: 40px; }
.medical-card h3 { color: var(--blue-800); font-size: 1.12rem; }
.medical-card p { margin-top: 8px; color: var(--muted); font-size: .88rem; }

.section--soft { background: var(--blue-050); }
.hours-card { width: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.hours-table { width: 100%; table-layout: fixed; text-align: center; font-size: .88rem; }
.hours-table th, .hours-table td { border: 1px solid var(--line); padding: 11px 5px; vertical-align: middle; }
.hours-table th:first-child { width: 24%; }
.hours-table th:not(:first-child), .hours-table td { width: 10.85%; }
.hours-table thead th { background: #f3f5fb; color: var(--blue-900); }
.hours-mark { color: var(--blue-700); font-weight: 900; }
.hours-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.hours-note strong { color: var(--ink); }

.news-list { border-top: 1px solid var(--line); }
.news-item a { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.news-date { font-size: .82rem; color: var(--muted); }
.news-title { font-weight: 700; }
.news-arrow { color: var(--blue-700); font-size: 1.25rem; }
.news-more { margin-top: 22px; text-align: right; }
.news-more a { color: var(--blue-700); font-weight: 800; }

.link-banner { padding: 26px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.link-banner p { color: var(--ink); font-size: .95rem; }
.link-banner .btn { margin-top: 16px; min-width: 220px; }

.disclosure-list { border-top: 1px solid var(--line); }
.disclosure-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.disclosure-no { color: var(--blue-700); font-weight: 900; font-size: 1.02rem; letter-spacing: .06em; }
.disclosure-title { font-weight: 700; }
.disclosure-arrow { color: var(--blue-700); font-size: 1.3rem; }

.clinic-panel { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(16,34,77,.05); }
.detail-list { display: grid; gap: 12px; }
.detail-list div + div { padding-top: 12px; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--blue-800); font-size: .84rem; font-weight: 800; }
.detail-list dd { margin-top: 2px; color: var(--ink); }

.access-grid { display: grid; gap: 20px; }
.access-point { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-top: 12px; }
.access-point__icon { color: var(--blue-700); font-size: 1.25rem; }
.map-embed { overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.map-embed iframe { display: block; width: 100%; height: clamp(300px, 72vw, 380px); border: 0; }
.access-actions { display: grid; grid-template-columns: calc(50% - 5px); justify-content: center; gap: 10px; margin-top: 14px; }
.btn { min-height: 50px; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: .9rem; font-weight: 800; line-height: 1.35; box-shadow: 0 6px 16px rgba(16,34,77,.08); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.btn--secondary { color: var(--blue-800); background: #fff; border-color: var(--blue-700); }
.btn--tel { color: #fff; background: var(--orange-600); border-color: var(--orange-600); }
.btn--tel:hover { background: var(--orange-700); border-color: var(--orange-700); }

.contact-band { padding-block: 28px; background: linear-gradient(90deg, #eef1f8, #f7f8fc); }
.contact-box { display: grid; gap: 14px; text-align: center; }
.contact-label { color: var(--blue-800); font-weight: 800; }
.contact-number { color: var(--blue-800); font-size: clamp(2rem, 10vw, 3.1rem); font-weight: 800; line-height: 1.2; }
.contact-box .btn { width: 100%; }

.site-footer { background: linear-gradient(150deg, var(--blue-900), var(--blue-700)); color: #fff; padding: 44px 0 94px; }
.footer-title { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; transition: opacity .15s ease; }
.footer-title:hover { opacity: .8; }
.footer-address { margin-top: 10px; font-size: .9rem; opacity: .92; }
.footer-copy { margin-top: 30px; text-align: center; font-size: .78rem; opacity: .75; }

.bottom-cta { position: fixed; left: 50%; bottom: 0; z-index: 1100; width: min(100%, var(--site-w)); height: 64px; display: grid; grid-template-columns: 1fr 1fr; transform: translateX(-50%); box-shadow: 0 -6px 20px rgba(16,34,77,.15); }
.bottom-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 800; }
.bottom-cta__tel { background: var(--orange-600); }
.bottom-cta__access { background: var(--cyan-500); }

.page-hero { background: linear-gradient(135deg, var(--blue-050), var(--blue-100)); padding: 46px 0; }
.page-hero h1 { color: var(--blue-800); font-size: clamp(1.8rem, 7vw, 2.7rem); }
.page-hero p { margin-top: 8px; color: var(--muted); }
.breadcrumbs { margin-bottom: 12px; color: var(--muted); font-size: .82rem; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.content-card + .content-card { margin-top: 18px; }
.content-card h2 { color: var(--blue-800); font-size: 1.35rem; line-height: 1.5; }
.content-card p + p { margin-top: 12px; }
.guidance-card { scroll-margin-top: calc(var(--header-h) + 18px); }
.guidance-card h2 { padding-bottom: 12px; border-bottom: 2px solid var(--blue-100); }
.guidance-card h3 { color: var(--blue-800); font-size: 1.05rem; line-height: 1.5; }
.guidance-lead { margin-top: 18px; }
.guidance-list { display: grid; gap: 12px; margin-top: 20px; }
.guidance-list li { position: relative; padding-left: 1.35em; }
.guidance-list li::before { content: "・"; position: absolute; left: 0; top: 0; color: var(--blue-700); font-weight: 900; }
.guidance-note { margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: var(--blue-050); color: var(--muted); font-size: .88rem; }
.guidance-block { margin: 24px 0 20px; }
.guidance-hours { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guidance-hours div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 13px 15px; background: #fff; }
.guidance-hours div + div { border-top: 1px solid var(--line); }
.guidance-hours dt { font-weight: 700; }
.guidance-hours dd { color: var(--blue-800); font-weight: 800; white-space: nowrap; }
.guidance-contact { margin-top: 22px; padding: 20px 16px; border: 1px solid #c2cde3; border-radius: 14px; background: linear-gradient(135deg, var(--blue-050), #fff); text-align: center; }
.guidance-contact__name { color: var(--blue-800); font-weight: 800; }
.guidance-contact__label { margin-top: 12px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.guidance-contact__number { margin-top: 2px; color: var(--blue-800); font-size: clamp(1.8rem, 8vw, 2.5rem); font-weight: 900; line-height: 1.25; }
.guidance-contact__sub { margin-top: 2px; color: var(--ink); font-weight: 700; }
.article-meta { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.article-nav { margin-top: 28px; display: flex; justify-content: center; }
.article-nav a { color: var(--blue-700); font-weight: 800; }

/* 文字サイズ「大」選択時（remベースの文字が全体に拡大される） */
html.font-large { font-size: 112.5%; }

/* 文字サイズ切り替え（明るい背景向けの基本デザイン） */
.font-size-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.font-size-toggle button { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue-800); font-size: .75rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(16,34,77,.08); }
.font-size-toggle button.is-active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
/* ハンバーガーメニュー内（紺背景）用の配色 */
.mobile-menu .font-size-toggle { margin-bottom: 16px; color: rgba(255,255,255,.85); }
.mobile-menu .font-size-toggle button { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; box-shadow: none; }
.mobile-menu .font-size-toggle button.is-active { background: #fff; color: var(--blue-800); border-color: #fff; }

.back-to-top {
  position: fixed;
  z-index: 1090;
  right: max(12px, calc(50% - var(--site-w) / 2 + 12px));
  bottom: 86px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: #fff;
  background: rgba(16,34,77, .82);
  box-shadow: 0 4px 14px rgba(16,34,77, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue-700); }
.back-to-top__arrow { font-size: 1.05rem; line-height: 1; }
.back-to-top__label { font-size: .6rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-align: center; }

/* ===== PC表示: 左固定パネル + サイト本体を右寄せ ===== */
.side-panel { display: none; }

@media (min-width: 1080px) {
  :root {
    --panel-w: 360px;
    --panel-gap: 48px;
    --group-w: calc(var(--site-w) + var(--panel-w) + var(--panel-gap));
    --header-h: 60px;
  }
  /* PCヘッダーは横並びメニューのみの1段構成（院名は左パネル・ヒーローにあるため非表示）。ハンバーガーも非表示 */
  .site-logo { display: none; }
  .header-inner { justify-content: center; }
  .menu-button { display: none; }
  .mobile-menu { display: none; }
  .global-nav { display: flex; width: 100%; justify-content: space-between; align-items: center; }
  .global-nav a { padding: 4px 2px; color: var(--blue-800); font-size: .85rem; font-weight: 700; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
  .global-nav a:hover { color: var(--blue-700); border-bottom-color: var(--blue-700); }
  .global-nav a.is-current { color: var(--blue-700); border-bottom-color: var(--blue-700); }
  /* 文字サイズボタンは紺パネルの外（すぐ上の背景エリア）に表示 */
  .side-panel .font-size-toggle { position: absolute; left: 0; right: 0; top: -44px; }
  /* サイト本体（body）を中央グループの右側へ配置 */
  body {
    margin-left: calc(50% - var(--group-w) / 2 + var(--panel-w) + var(--panel-gap));
    margin-right: 0;
  }
  /* 画面固定要素（メニュー・下部CTA）もサイト本体の位置に追随させる */
  .mobile-menu,
  .bottom-cta {
    left: calc(50% - var(--group-w) / 2 + var(--panel-w) + var(--panel-gap) + var(--site-w) / 2);
  }
  /* PCではサイト本体の右横（外側）に配置。狭い画面では画面端に留める */
  .back-to-top { right: max(12px, calc(50% - var(--group-w) / 2 - 86px)); }
  .side-panel {
    display: block;
    position: fixed;
    z-index: 500;
    top: 50%;
    left: calc(50% - var(--group-w) / 2);
    transform: translateY(-50%);
    width: var(--panel-w);
    padding: 32px 26px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
    box-shadow: var(--shadow);
  }
  .side-panel__name { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; color: #fff; transition: opacity .15s ease; }
  .side-panel__name:hover { opacity: .8; }
  .side-panel__dept { margin-top: 4px; font-size: .78rem; opacity: .85; }
  .side-panel__lead { margin-top: 20px; font-weight: 700; }
  .side-panel__tel { display: block; margin-top: 4px; font-size: 2.1rem; font-weight: 900; letter-spacing: .02em; line-height: 1.3; }
  .side-panel__btn { margin-top: 14px; width: 100%; color: #fff; background: var(--orange-600); border-color: var(--orange-600); }
  .side-panel__btn:hover { background: var(--orange-700); border-color: var(--orange-700); }
  .side-hours { width: 100%; margin-top: 24px; table-layout: fixed; font-size: .78rem; background: rgba(255,255,255,.06); }
  .side-hours th, .side-hours td { border: 1px solid rgba(255,255,255,.28); padding: 6px 2px; text-align: center; font-weight: 600; }
  .side-hours thead th { background: rgba(255,255,255,.14); font-size: .74rem; }
  .side-panel__note { margin-top: 8px; font-size: .7rem; opacity: .85; text-align: left; line-height: 1.6; }
  .side-panel__note + .side-panel__note { margin-top: 2px; }
}

@media (max-width: 480px) {
  .hours-card { border-radius: 10px; }
  .hours-table { font-size: clamp(.58rem, 2.45vw, .72rem); }
  .hours-table th, .hours-table td { padding: 9px 1px; line-height: 1.35; word-break: keep-all; }
  .hours-table th:first-child { width: 25%; }
  .hours-table th:not(:first-child), .hours-table td { width: 10.71%; }
  .hours-table tbody th { font-weight: 700; }
  .hours-note { font-size: .8rem; line-height: 1.7; }
  .news-item a { grid-template-columns: 78px 1fr auto; gap: 7px; }
  .news-date { font-size: .74rem; }
  .access-actions { gap: 8px; }
  .btn { padding-inline: 9px; font-size: .82rem; }
}

/* ===== 印刷用: 診療時間・アクセス等を紙で持ち歩く方向けに装飾を省く ===== */
@media print {
  html { background: #fff; }
  body { max-width: none; margin: 0; padding-bottom: 0; box-shadow: none; }
  .site-header, .mobile-menu, .menu-button, .side-panel,
  .bottom-cta, .back-to-top, .hero, .contact-band, .news-more { display: none !important; }
  .u-section { padding-block: 20px; }
  .section--soft, .today-band { background: #fff; }
  .map-embed { display: none; } /* 地図は紙では読めないため住所テキストのみ印刷 */
  .btn { display: none; }
  a { color: inherit; text-decoration: none; }
  .site-footer { background: none; color: #1f2d3d; padding: 16px 0; }
}
