/* 和田内科医院 — 色は医院の建物と、サイトに使う写真から取っている。ここで定義した値だけを使う */
:root {
  --midori: #1E5E4B;        /* 看板の緑（深め）：見出し・リンク・ボタン */
  --midori-koi: #123F33;    /* 押したとき・フッター */
  --wakaba: #DCE7DE;        /* ユーカリの葉（淡）：写真の後ろに敷く面。文字には使わない */
  --mimosa: #D8A72A;        /* 黄色い壁とミモザ：お知らせの目印。文字には使わない */
  --mimosa-usui: #FBF4DF;   /* お知らせの地 */
  --mimosa-moji: #6B4A00;   /* 黄色い地の上の小さな文字 */
  --shiro: #FFFFFF;         /* 白い外壁 */
  --kinari: #FBFAF6;        /* 生成り：ページの地 */
  --suna: #F2EEE5;          /* 砂壁：帯の背景 */
  --sen: #DDD8CB;           /* 罫線 */
  --sumi: #2A2E2B;          /* 本文 */
  --sumi-usu: #59605B;      /* 補足の文字 */

  --gothic: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "BIZ UDPMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --en: Georgia, "Times New Roman", serif;

  --text: 1.0625rem;        /* 17px */
  --text-s: 0.9375rem;      /* 15px */
  --lh: 2;
  --gutter: 22px;
  --sec: 4.5rem;
  --radius: 3px;
  --tap: 56px;
  --bar-h: 68px;
  --header-h: 0px;
  --ease: 0.22s ease;
}
@media (min-width: 1024px) {
  :root { --text: 1.125rem; --text-s: 1rem; --gutter: 48px; --sec: 8rem; --header-h: 88px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  background: var(--kinari);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: var(--text);
  line-height: var(--lh);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  html { scroll-padding-bottom: 16px; }
  body { padding-bottom: 0; }
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--midori); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { color: var(--midori-koi); }
:focus-visible { outline: 3px solid var(--sumi); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible { outline-color: var(--shiro); }
svg { flex: none; }
.nb { display: inline-block; }

.wrap { display: block; width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 12px 20px; background: var(--sumi); color: var(--shiro); border-radius: var(--radius); }
.skip:focus { top: 8px; color: var(--shiro); }

/* レビュー版だけの表示 */
.review-ribbon { padding: 8px var(--gutter); background: #2B2F2C; color: var(--shiro); font-size: 0.875rem; line-height: 1.6; letter-spacing: 0.02em; text-align: center; }
.review-ribbon strong { margin-right: 0.75em; color: #F2D27A; }
.review-ribbon a { display: inline-block; padding: 12px 4px; margin: -12px 0 -12px 0.75em; color: inherit; font-weight: 700; }
.review-ribbon :focus-visible { outline-color: var(--shiro); }
.badge-kakunin { display: inline-block; padding: 0 9px; border: 1px dashed var(--mimosa-moji); border-radius: 2px; background: var(--shiro); color: var(--mimosa-moji); font-family: var(--gothic); font-size: 0.8125rem; font-weight: 700; line-height: 1.7; letter-spacing: 0.02em; vertical-align: middle; white-space: nowrap; }
.photo-missing { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 24px; border: 2px dashed var(--mimosa-moji); background: var(--mimosa-usui); color: var(--mimosa-moji); font-size: 0.9375rem; line-height: 1.7; text-align: center; }
.photo-missing strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; }

/* ヘッダー */
.site-header { background: var(--kinari); }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; min-height: 72px; }
.logo { display: inline-grid; align-content: center; gap: 1px; min-height: var(--tap); line-height: 1.3; text-decoration: none; }
.logo-name { color: var(--sumi); font-family: var(--mincho); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.16em; white-space: nowrap; }
.logo-en { color: var(--midori); font-family: var(--en); font-size: 0.6875rem; letter-spacing: 0.32em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-tel, .menu-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 60px; height: 52px; border: 1px solid var(--sen); border-radius: var(--radius); background: var(--shiro); color: var(--midori); font: inherit; font-size: 0.75rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-decoration: none; cursor: pointer; }
.header-tel { background: var(--midori); border-color: var(--midori); color: var(--shiro); }
.header-tel:hover { background: var(--midori-koi); color: var(--shiro); }
.header-tel svg { width: 22px; height: 22px; }
.header-tel-num { display: none; }
.menu-btn { display: none; }
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; }
.menu-btn-bars { position: relative; margin: 8px 0 7px; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
.menu-btn-bars::before { top: -7px; }
.menu-btn-bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { top: 0; transform: rotate(-45deg); }
.gnav { order: 3; width: 100%; }
.gnav ul { display: grid; border-top: 1px solid var(--sen); }
.gnav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 4px; border-bottom: 1px solid var(--sen); color: var(--sumi); font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.gnav a:hover { color: var(--midori); }
/* スクリプトが動くときだけ、スマートフォンのメニューをたたむ */
.js .menu-btn { display: inline-flex; }
.js .gnav { display: none; }
.js .gnav.is-open { display: block; }
@media (max-width: 359px) { .logo-name { font-size: 1.1875rem; letter-spacing: 0.1em; } }
@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 246, 0.96); border-bottom: 1px solid var(--sen); }
  .header-in { flex-wrap: nowrap; gap: 36px; min-height: var(--header-h); }
  .logo-name { font-size: 1.625rem; }
  .js .menu-btn, .menu-btn { display: none; }
  .gnav, .js .gnav { display: block; order: 0; width: auto; margin-left: auto; }
  .gnav ul { display: flex; gap: 4px; border: 0; }
  .gnav a { position: relative; padding: 0 16px; min-height: 48px; border: 0; font-size: 1rem; white-space: nowrap; }
  .gnav li:last-child a { border: 0; }
  .gnav a::after { content: ""; position: absolute; inset: auto 16px 8px; height: 1px; background: var(--midori); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
  .gnav a:hover::after { transform: scaleX(1); }
  .header-tel { flex-direction: row; gap: 10px; width: auto; height: 52px; padding: 0 24px; border-radius: 999px; }
  .header-tel svg { width: 20px; height: 20px; }
  .header-tel-label { display: none; }
  .header-tel-num { display: inline; font-size: 1.1875rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
}

/* 運営開始の予定（下層ページ用の帯。トップでは最初の画面の中に出す） */
.phase-band { background: var(--mimosa-usui); color: var(--sumi); font-weight: 700; line-height: 1.6; text-align: center; }
.phase-band .wrap { padding-block: 10px; }

/* 縦長の窓：建物の正面にある細長い窓の形。雰囲気の写真はこの形で見せる（このサイトの目印） */
.window { overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: var(--wakaba); }
.window-img { width: 100%; height: 100%; object-fit: cover; }

/* 最初の画面 */
.hero { overflow: hidden; }
.hero-in { display: grid; gap: 0; padding-bottom: 8px; }
.hero-visual { position: relative; order: -1; margin-inline: calc(var(--gutter) * -1); }
/* 外観写真は、看板と入口が両方入る範囲でだけ切り抜く */
.hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--focus-m, 50% 50%); }
.hero-visual:has(.photo-missing) { margin-inline: 0; padding-top: var(--gutter); }
.hero-window { position: absolute; right: var(--gutter); bottom: -128px; width: 72px; height: 160px; border: 6px solid var(--kinari); border-bottom-width: 6px; box-sizing: content-box; }
.hero-text { padding-top: 28px; }
.hero-notice { display: inline-block; max-width: calc(100% - 104px); padding: 2px 0 2px 14px; border-left: 3px solid var(--mimosa); font-size: var(--text-s); font-weight: 700; line-height: 1.7; letter-spacing: 0.06em; }
.hero-notice span, .hero-copy span { display: inline-block; }
.hero-copy { margin-top: 48px; font-family: var(--mincho); font-size: clamp(1.75rem, 8.2vw, 2.375rem); font-weight: 600; line-height: 1.7; letter-spacing: 0.14em; }
.hero-name { margin-top: 20px; color: var(--midori); font-family: var(--mincho); font-size: 1.375rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.2em; }
.hero-area { display: block; color: var(--sumi-usu); font-family: var(--gothic); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.18em; }
.hero-cta { display: grid; gap: 12px; margin-top: 28px; }
.hero--text .hero-text { padding-block: 48px 24px; }
.hero--text .hero-notice { max-width: none; }
@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: 72px; padding-block: 56px 168px; }
  .hero--text .hero-in { grid-template-columns: 1fr; }
  .hero-visual { order: 0; margin: 0 calc(var(--gutter) * -1) 0 0; }
  /* 写真の後ろに、葉の色の面を少しずらして敷く */
  .hero-visual::before { content: ""; position: absolute; inset: -32px 0 48px 88px; background: var(--wakaba); }
  .hero-photo { position: relative; }
  .hero-img { border-radius: var(--radius) 0 0 var(--radius); object-position: var(--focus-d, 50% 50%); }
  .hero-window { left: -64px; right: auto; bottom: -128px; width: 132px; height: 300px; border-width: 10px; }
  .hero-text { padding-top: 0; }
  .hero-notice { max-width: none; }
  .hero-copy { margin-top: 44px; font-size: clamp(2.375rem, 3.5vw, 3.125rem); line-height: 1.75; }
  .hero-copy span { display: block; }
  .hero-name { margin-top: 28px; font-size: 1.625rem; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
}

/* ご案内：診療科目・診療時間・電話・所在地 */
.guide { position: relative; padding-top: 40px; }
.guide-in { border-top: 1px solid var(--sumi); border-bottom: 1px solid var(--sen); background: var(--shiro); }
.guide-item { padding: 22px 20px; border-bottom: 1px solid var(--sen); }
.guide-item:last-child { border-bottom: 0; }
.guide-item dt { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--midori); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.24em; }
.guide-item dt::before { content: ""; width: 18px; height: 1px; background: var(--midori); }
.guide-item dd { line-height: 1.8; }
.guide-dept { display: flex; flex-wrap: wrap; gap: 0 1.2em; font-family: var(--mincho); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.08em; }
.guide-dept li { white-space: nowrap; }
.guide-hours li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 0 8px; padding: 1px 0; }
.guide-hours-days { font-weight: 700; white-space: nowrap; }
.guide-hours-times { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.guide-tel { display: inline-block; color: var(--midori); font-family: var(--en); font-size: 2.125rem; line-height: 1.35; letter-spacing: 0.04em; font-variant-numeric: lining-nums tabular-nums; text-decoration: none; white-space: nowrap; }
.guide-tel:hover { text-decoration: underline; }
@media (min-width: 700px) { .guide-item { padding: 26px 32px; } }
@media (min-width: 1024px) {
  .guide { padding-top: 0; }
  .guide-list { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "dept hours tel" "dept hours addr"; }
  .guide-item { padding: 32px 30px; border-bottom: 0; }
  .guide-hours li { grid-template-columns: 6.2em minmax(0, 1fr); }
  .guide-hours-times { white-space: nowrap; }
  .guide-item--dept { grid-area: dept; }
  .guide-item--hours { grid-area: hours; border-inline: 1px solid var(--sen); }
  .guide-item--tel { grid-area: tel; padding-bottom: 14px; }
  .guide-item--addr { grid-area: addr; padding-top: 14px; }
  .guide-dept { gap: 2px 1em; font-size: 1.1875rem; }
  .guide-tel { font-size: 2.25rem; }
}

/* 文字のリンクとボタン */
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; letter-spacing: 0.06em; }
.text-link .arrow, .btn .arrow { transition: transform var(--ease); }
.text-link:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--tap); padding: 10px 30px; border: 1px solid var(--midori); border-radius: 999px; background: var(--midori); color: var(--shiro); font-size: 1.0625rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.1em; text-decoration: none; transition: background var(--ease), color var(--ease); }
.btn:hover { background: var(--midori-koi); border-color: var(--midori-koi); color: var(--shiro); }
.btn svg:not(.arrow) { width: 20px; height: 20px; }
.btn-sub { font-weight: 500; font-size: 0.875rem; letter-spacing: 0.02em; }
.btn--line { background: transparent; color: var(--midori); }
.btn--line:hover { background: var(--midori); border-color: var(--midori); color: var(--shiro); }
.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; }
.link-more--back .arrow { transform: rotate(180deg); }

/* 旧クリニックの方へのお知らせ */
.keiji { padding-top: var(--sec); }
.keiji-in { display: grid; background: var(--mimosa-usui); }
.keiji-photo { overflow: hidden; }
.keiji-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 80% 60%; }
.keiji-text { padding: 30px 22px 36px; }
.keiji-label { display: flex; align-items: center; gap: 10px; color: var(--mimosa-moji); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.24em; }
.keiji-label::before { content: ""; width: 18px; height: 1px; background: var(--mimosa-moji); }
.keiji h2 { margin: 8px 0 20px; font-family: var(--mincho); font-size: clamp(1.1875rem, 4.9vw, 1.875rem); font-weight: 600; line-height: 1.7; letter-spacing: 0.03em; text-wrap: wrap; }
.keiji h2 span { display: inline-block; }
.keiji-text p + p { margin-top: 14px; }
.keiji-text .keiji-more { margin-top: 28px; }
@media (min-width: 1024px) {
  .keiji h2 { letter-spacing: 0.08em; }
  .keiji-in { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
  .keiji-in--text { grid-template-columns: 1fr; }
  .keiji-photo { height: 100%; }
  .keiji-img { height: 100%; min-height: 420px; aspect-ratio: auto; }
  .keiji-text { padding: 64px 72px 68px; align-self: center; }
}

/* セクション：見出しを左、内容を右に置く */
.sec { padding-block: var(--sec); }
.sec + .sec { padding-top: 0; }
.sec--page { padding-block: 40px var(--sec); }
.sec-in { display: grid; gap: 28px; }
.sec-en { color: var(--midori); font-family: var(--en); font-size: 0.9375rem; font-style: italic; letter-spacing: 0.12em; line-height: 1.4; }
.sec-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; font-family: var(--mincho); font-size: clamp(1.625rem, 6.4vw, 2.125rem); font-weight: 600; line-height: 1.6; letter-spacing: 0.18em; }
.sec-body { min-width: 0; }
.sec-window { width: 120px; height: 264px; justify-self: end; margin-top: -8px; }
.sub-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 48px 0 14px; font-family: var(--mincho); font-size: 1.25rem; font-weight: 600; line-height: 1.6; letter-spacing: 0.16em; }
.sec-body > .sub-h:first-child, .sec-note + .sub-h { margin-top: 0; }
.page-title { margin-bottom: 36px; font-family: var(--mincho); font-size: clamp(1.5rem, 5.6vw, 2.125rem); font-weight: 600; line-height: 1.7; letter-spacing: 0.08em; }
.sub-title { margin: 48px 0 16px; font-family: var(--mincho); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.1em; }
.sec-more { margin-top: 16px; }
.sec-note { margin-bottom: 32px; padding: 2px 0 2px 14px; border-left: 3px solid var(--mimosa); font-weight: 700; line-height: 1.8; }
.soon { margin-top: 24px; color: var(--sumi-usu); font-size: var(--text-s); }
.soon::before { content: "※ "; }
@media (min-width: 1024px) {
  .sec-in { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
  .sec--side .sec-in { grid-template-columns: 260px minmax(0, 1fr) 200px; }
  .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .sec-window { width: 200px; height: 460px; margin-top: 8px; }
}
@media (max-width: 1023px) {
  /* スマートフォンでは、窓の写真を見出しの右に小さく添える */
  .sec--side .sec-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .sec--side .sec-body { grid-column: 1 / -1; grid-row: 2; }
  .sec--side .sec-window { grid-column: 2; grid-row: 1; width: 84px; height: 176px; margin: 0; }
}

/* 写真の帯 */
.band { margin-bottom: var(--sec); }
.band-img { width: 100%; height: clamp(180px, 30vw, 380px); object-fit: cover; object-position: 50% 30%; }

/* 診療科目 */
.dept-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sen); }
.dept-list li { padding: 15px 4px; border-bottom: 1px solid var(--sen); font-family: var(--mincho); font-size: 1.1875rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.1em; }
@media (max-width: 359px) { .dept-list li { font-size: 1.0625rem; letter-spacing: 0.04em; } }
@media (min-width: 700px) {
  .dept-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dept-list li { padding: 20px 4px; font-size: 1.25rem; white-space: nowrap; }
}

/* 専門外来など */
.menu-list { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.menu-list li { padding: 6px 18px; border: 1px solid var(--sen); border-radius: 999px; background: var(--shiro); font-weight: 700; line-height: 1.7; letter-spacing: 0.06em; }
.info + .sub-h, .hours + .sub-h { margin-top: 48px; }

/* 診療時間の表 */
.hours table { width: 100%; border-collapse: collapse; background: var(--shiro); text-align: center; font-size: 1rem; }
.hours th, .hours td { padding: 13px 2px; border-bottom: 1px solid var(--sen); }
.hours thead th { border-top: 1px solid var(--sumi); border-bottom-color: var(--sumi); color: var(--sumi); font-weight: 700; }
.hours tbody th { font-weight: 700; line-height: 1.5; }
.hours td.is-open { color: var(--midori); font-size: 1.125rem; font-weight: 700; }
.hours td.is-closed { color: var(--sumi-usu); font-size: 0.9375rem; }
.hours-label, .hours-time { display: block; }
.hours-time { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours-legend { margin-top: 8px; color: var(--sumi-usu); font-size: var(--text-s); }
.hours-notes { margin-top: 8px; font-size: var(--text-s); }
.hours td:has(.hours-mark) { position: relative; }
.hours-mark { position: absolute; top: 50%; left: calc(50% + 0.55em); transform: translateY(-110%); font-size: 0.6em; line-height: 1; }
.hours + .info { margin-top: 32px; }
@media (min-width: 700px) {
  .hours th, .hours td { padding: 18px 8px; font-size: 1.0625rem; }
  .hours td.is-open { font-size: 1.25rem; }
  .hours-time { font-size: 0.9375rem; }
}

/* お知らせ */
.news-list { border-top: 1px solid var(--sen); }
.news-item { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--sen); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--sumi-usu); font-size: var(--text-s); font-variant-numeric: tabular-nums; }
.news-meta:empty { display: none; }
.news-pin { padding: 0 12px; border: 1px solid var(--mimosa-moji); border-radius: 999px; color: var(--mimosa-moji); font-size: 0.8125rem; font-weight: 700; line-height: 1.8; letter-spacing: 0.1em; }
.news-link { display: inline-block; padding-block: 8px; color: var(--sumi); font-size: 1.125rem; font-weight: 700; line-height: 1.8; text-decoration: none; }
.news-link:hover { color: var(--midori); text-decoration: underline; }
article .news-meta { margin-bottom: 12px; }

/* 項目名と内容の並び */
.info { border-top: 1px solid var(--sen); }
.info-row { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--sen); }
.info-row dt { color: var(--midori); font-weight: 700; letter-spacing: 0.08em; }
@media (min-width: 700px) { .info-row { grid-template-columns: 12em minmax(0, 1fr); gap: 24px; padding: 22px 0; } }
.info + p { margin-top: 28px; }
.plain-list li { position: relative; padding-left: 1.2em; }
.plain-list li::before { content: ""; position: absolute; left: 0.1em; top: 1em; width: 8px; height: 1px; background: var(--midori); }

/* 医師紹介 */
.doctors { display: grid; gap: 40px; }
.doctor { display: grid; gap: 24px; }
.doctor h3 { display: grid; gap: 2px; margin-bottom: 14px; line-height: 1.5; }
.doctor-role { color: var(--midori); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.4em; }
.doctor-name { font-family: var(--mincho); font-size: clamp(1.875rem, 7.4vw, 2.5rem); font-weight: 600; letter-spacing: 0.22em; }
.doctor-photo { width: 100%; max-width: 280px; border-radius: 140px 140px var(--radius) var(--radius); }
.doctor-greeting { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--sen); }
.doctor-greeting-title { margin-bottom: 20px; font-family: var(--mincho); font-size: clamp(1.25rem, 4.6vw, 1.5rem); font-weight: 600; letter-spacing: 0.12em; line-height: 1.6; }
.doctor-greeting p + p { margin-top: 1em; }
.doctor-greeting-sign { margin-top: 28px !important; text-align: right; font-family: var(--mincho); letter-spacing: 0.1em; }
.doctor-scene { margin: 36px 0 0; }
.doctor-scene img { width: 100%; height: auto; border-radius: var(--radius); }
.doctor-scene figcaption { margin-top: 8px; color: var(--sumi-usu); font-size: 0.8125rem; letter-spacing: 0.08em; }
.doctor-profile-h { margin: 32px 0 8px; color: var(--midori); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.24em; }
.doctor-profile { border-top: 1px solid var(--sen); }
.doctor-profile li { display: grid; gap: 0 20px; padding: 12px 0; border-bottom: 1px solid var(--sen); line-height: 1.7; }
.doctor-profile-when { color: var(--sumi-usu); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 700px) { .doctor-profile li { grid-template-columns: 8.5em minmax(0, 1fr); } }
@media (min-width: 700px) and (max-width: 1023px), (min-width: 1280px) { .doctor:has(.doctor-photo) { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
@media (min-width: 1280px) { .doctor-photo { position: sticky; top: calc(var(--header-h) + 32px); } }

/* アクセス */
.access { display: grid; gap: 28px; }
.access-img { width: 100%; aspect-ratio: var(--photo-ratio, 3 / 2); object-fit: cover; border-radius: var(--radius); }
@media (min-width: 700px) { .access .info-row { grid-template-columns: 8em minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .access:not(.access--single) .info-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .access { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
  .access--single { grid-template-columns: minmax(0, 1fr); }
}

/* 下層ページ */
.crumbs { border-bottom: 1px solid var(--sen); font-size: 0.9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; padding-block: 4px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--sumi-usu); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { margin-top: 2.6em; padding-bottom: 8px; border-bottom: 1px solid var(--sumi); font-family: var(--mincho); font-size: 1.3125rem; font-weight: 600; line-height: 1.6; letter-spacing: 0.1em; }
.prose ul { padding-left: 1.4em; list-style: disc; }
.dest { margin-top: 48px; padding: 28px 24px; border-top: 1px solid var(--sumi); background: var(--shiro); }
.dest h2 { color: var(--midori); font-size: 0.875rem; letter-spacing: 0.24em; }
.dest p { margin-top: 12px; }
.dest strong { font-family: var(--mincho); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.16em; }
.back { margin-top: 48px; }

/* フッター */
.site-footer { background: var(--midori-koi); color: var(--shiro); }
.site-footer a { color: var(--shiro); }
.footer-in { display: grid; gap: 28px; padding-block: 56px 40px; }
.footer-name { font-family: var(--mincho); font-size: 1.75rem; font-weight: 600; letter-spacing: 0.2em; }
.footer-corp { font-size: var(--text-s); letter-spacing: 0.1em; }
.footer-addr, .footer-tel { margin-top: 14px; }
.footer-tel a { display: inline-block; padding-block: 8px; font-family: var(--en); font-size: 1.5rem; letter-spacing: 0.06em; }
.footer-links { display: grid; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }
.site-footer .badge-kakunin { border-color: transparent; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.8125rem; letter-spacing: 0.06em; }
.copyright .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 18px; }
@media (min-width: 1024px) { .footer-in { grid-template-columns: 1fr auto; padding-block: 80px 56px; } }

/* スマートフォンの固定メニュー */
.bottom-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--sen); background: var(--kinari); }
.bar-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: calc(var(--bar-h) - 16px); border: 1px solid var(--midori); border-radius: 999px; background: var(--shiro); color: var(--midori); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.bar-btn--main { background: var(--midori); color: var(--shiro); }
.bar-btn--main:hover { color: var(--shiro); }
@media (min-width: 1024px) { .bottom-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .bottom-bar, .menu-btn, .review-ribbon, .skip, .header-actions, .band, .window { display: none !important; }
  body { padding-bottom: 0; }
}

/* チラシから足した情報（科目ごとの主な診療内容・携帯番号・Instagram） */
.dept-detail { margin-top: 20px; }
.guide-tel-sub { display: block; margin-top: 4px; font-size: var(--text-s); }
.guide-tel-sub a, .footer-tel-sub a { text-decoration: underline; text-underline-offset: 3px; }
.footer-tel-sub { font-size: 0.9375rem; }
.footer-tel-sub a { padding-block: 4px; font-family: inherit; font-size: inherit; }
.footer-sns { margin-top: 10px; }
.footer-sns a { text-decoration: underline; text-underline-offset: 3px; }

/* 各科の説明・受診の流れ */
.dept-lead { margin-bottom: 8px; }
.flow { display: grid; gap: 0; border-top: 1px solid var(--sen); counter-reset: none; }
.flow li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--sen); }
.flow-no { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--midori); color: #fff; font-family: var(--en); font-size: 1.0625rem; line-height: 1; }
.flow-title { color: var(--midori); font-weight: 700; letter-spacing: 0.08em; }
.flow + .sub-h { margin-top: 48px; }

/* 診療時間外のご相談 */
.after-hours { display: grid; gap: 14px; padding: 22px 20px; border: 1px solid var(--sen); border-radius: var(--radius); background: var(--shiro); }
.after-hours-tel { display: grid; gap: 2px; }
.after-hours-label { color: var(--midori); font-size: var(--text-s); font-weight: 700; letter-spacing: 0.12em; }
.after-hours-tel a { font-family: var(--en); font-size: clamp(1.5rem, 6.4vw, 1.875rem); letter-spacing: 0.04em; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.after-hours-doc { color: var(--sumi-usu); font-size: var(--text-s); }
.after-hours + .sub-h, .flow + .after-hours, .flow + .sub-h { margin-top: 48px; }

/* Instagram（お知らせの下・メニュー） */
.ig-card { display: grid; gap: 14px; margin-top: 28px; padding: 22px 20px; border-radius: var(--radius); background: var(--wakaba); }
.ig-card-text { line-height: 1.8; }
.ig-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--midori); font-family: var(--en); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.06em; }
.ig-card-head svg { width: 22px; height: 22px; }
.ig-card-btn { width: 100%; }
.ig-card-id { color: var(--sumi-usu); font-family: var(--gothic); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; }
@media (min-width: 700px) { .ig-card-btn { width: auto; } }
@media (min-width: 700px) { .ig-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; } }
.gnav-ig a { display: inline-flex; align-items: center; gap: 6px; }
.gnav-ig svg { width: 18px; height: 18px; }
@media (min-width: 1024px) and (max-width: 1279px) { .gnav-ig { display: none; } }
.dept-detail .info-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }

/* スマホ点検（2026-12-02）：押しやすさと行末の1〜2文字の取り残し */
.guide-tel-sub a, .footer-tel-sub a, .footer-sns a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-tel-sub { margin-top: 0; }
p, li, dd, dt { text-wrap: pretty; }

/* パソコン点検（2026-12-02） */
@media (min-width: 1024px) {
  /* 写真を横に添える節（診療案内）は本文の列が狭いので、項目名を上に置く */
  .sec--side .info .info-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* 移転の案内の見出しが単語の途中で折れないよう、列の幅に合わせて文字を小さめに */
  .keiji h2 { font-size: clamp(1.25rem, 2vw, 1.875rem); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* 案内板の診療時間が電話の列へはみ出さないよう、「／」の位置で折り返す */
  .guide-hours-times { white-space: normal; }
  .guide-tel { font-size: 1.875rem; }
}
