/* =========================================================
   〇〇内科クリニック — 下層ページ共通（page.php / page-medical-*.php）
   ========================================================= */
:root {
  --navy: #1f4f7c;
  --navy-2: #173d61;
  --navy-ink: #1d3550;
  --red: #d9592f;          /* アイコン・装飾 */
  --red-ink: #b8461f;      /* 白地テキスト（AA） */
  --btn: linear-gradient(135deg, #e0632f, #c84d1f);
  --red-soft: #fdeee7;
  --blue-soft: #eaf3fa;
  --cream: #fbf8f3;
  --line: #e6e0d6;
  --ink: #34302d;
  --ink-2: #5b5550;
  --green: #86a873;
  --radius: 18px;
  --shadow: 0 8px 26px rgba(60, 60, 80, .07);
  --side: 250px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.85; color: var(--ink); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.sprite { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- Sidebar ---------- */
.site-header { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--side); overflow-y: auto; background: linear-gradient(180deg, #fffdf9, #f8f3ec); border-right: 1px solid var(--line); padding: 30px 18px 40px; }
.brand__name { display: block; font-size: 27px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; color: var(--navy-ink); padding-left: 8px; }
.brand__name span { display: block; }
.menu-btn, .hdr-tel-sp { display: none; }
.gnav__list { margin-top: 34px; display: grid; gap: 4px; }
.gnav__list a { display: flex; align-items: center; gap: 14px; padding: 9px 14px; font-size: 15px; border-radius: 999px; transition: background .2s; }
.gnav__list a:hover { background: #f3ece2; }
.gnav__list a .ico { color: #6a6560; }
.gnav__list a[aria-current] { background: var(--red-soft); color: var(--red-ink); font-weight: 700; }
.gnav__list a[aria-current] .ico, .gnav__list a.is-home .ico { color: var(--red); }

.btn-tel:hover { transform: translateY(-2px); }
.btn-tel { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 16px; border-radius: 14px; color: #fff; background: var(--navy); box-shadow: 0 8px 18px rgba(31, 79, 124, .25); transition: transform .2s; }
.btn-tel .ico { width: 28px; height: 28px; }
.btn-tel small { display: block; font-size: 14px; line-height: 1.3; }
.btn-tel b { display: block; font-size: 21px; line-height: 1.25; letter-spacing: .03em; }
.hdr-hours { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); text-align: center; }
.hdr-info { margin-top: 22px; display: grid; gap: 16px; font-size: 14px; line-height: 1.6; }
.hdr-info li { display: flex; gap: 10px; }
.hdr-info .ico { color: var(--red); width: 22px; height: 22px; margin-top: 1px; }
.hdr-info address { font-style: normal; }
.side-leaf { width: 110px; height: 120px; margin: 24px 0 0 40px; opacity: .7; }

/* ---------- Main ---------- */
.page { margin-left: var(--side); min-width: 0; }
.breadcrumb { position: absolute; z-index: 2; top: 18px; left: calc(var(--side) + 40px); font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red); transform: rotate(45deg); margin-right: 6px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--red-ink); }

/* Hero（全面背景） */
.p-hero { position: relative; isolation: isolate; min-height: 420px; display: flex; flex-direction: column; justify-content: center; padding: 76px 48% 90px 40px; }
.p-hero__bg { position: absolute; inset: 0; z-index: -2; }
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(251, 248, 243, .96) 0%, rgba(251, 248, 243, .86) 34%, rgba(251, 248, 243, .2) 56%, rgba(251, 248, 243, 0) 68%); }
.p-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: -1; }
.p-hero__title { display: flex; align-items: center; gap: 12px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 700; letter-spacing: .1em; line-height: 1.3; color: var(--navy-ink); }
.p-hero__lead { margin-top: 18px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; line-height: 1.75; color: var(--navy-ink); }
.p-hero__text { margin-top: 14px; font-size: 16px; line-height: 1.9; }
.p-hero__bubble { position: absolute; top: 60px; right: 40px; transform: rotate(-12deg); font-size: 15px; line-height: 1.6; color: var(--navy-ink); text-align: center; }
.spark { width: 26px; height: 26px; color: var(--red); stroke-width: 2; flex: none; }
.spark--r { transform: scaleX(-1); }

.p-body { padding: 10px 40px 20px; max-width: 1240px; }

/* Section title */
.s-title { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: .08em; line-height: 1.4; color: var(--navy-ink); }
.s-title--center { justify-content: center; }
.s-title .ico--t { width: 36px; height: 36px; color: var(--navy); }
.s-title .ico--heart { color: var(--red); }
.s-lead { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.s-lead--center { text-align: center; }
section.s { margin-top: 64px; }

/* ---------- 診療案内：カード ---------- */
.dept-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.dept { position: relative; grid-column: span 2; display: flex; flex-direction: column; padding: 26px 26px 28px; border-radius: 20px; background: linear-gradient(140deg, #fdf1ea, #fbf8f3 60%); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.dept:nth-child(even) { background: linear-gradient(140deg, #e8f2fa, #f7fafc 60%); }
.dept--wide { grid-column: span 3; display: grid; grid-template-columns: 130px 1fr; column-gap: 26px; align-items: center; }
.dept:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60, 60, 80, .12); }
.dept__icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(60, 60, 80, .06); }
.dept--wide .dept__icon { width: 130px; height: 130px; grid-row: span 3; }
.dept--wide .dept__more { justify-self: start; }
.dept__icon .ico { width: 48px; height: 48px; stroke-width: 1.5; color: var(--navy); }
.dept__icon--red .ico { color: var(--red); }
.dept--wide .dept__icon .ico { width: 64px; height: 64px; }
.dept h3 { margin-top: 18px; font-size: 22px; letter-spacing: .06em; color: var(--navy-ink); line-height: 1.4; }
.dept--wide h3 { margin-top: 0; font-size: 25px; }
.dept p { margin-top: 10px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.dept__more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; align-self: flex-start; padding: 7px 22px; border: 1.5px solid var(--red); border-radius: 999px; background: #fff; color: var(--red-ink); font-weight: 700; font-size: 15px; }
.dept__link::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* カード全体をクリック可能に */
.dept .leafs { position: absolute; right: 14px; bottom: 10px; width: 64px; height: 76px; opacity: .65; pointer-events: none; }

/* ---------- 循環器：ページ内ナビ ---------- */
.anchor { position: relative; z-index: 3; margin: -28px 40px 0; background: #eef4f9; border-radius: 999px; padding: 10px 24px; }
.anchor ul { display: flex; justify-content: center; flex-wrap: wrap; }
.anchor li + li { border-left: 1px solid #b8c9d8; }
.anchor a { display: flex; align-items: center; gap: 10px; padding: 6px 26px; font-size: 15px; font-weight: 700; color: var(--navy-ink); }
.anchor a .ico { width: 14px; height: 14px; color: var(--navy); stroke-width: 2.4; }
.anchor a:hover { color: var(--red-ink); }

/* 症状カード */
.symptoms { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.symptom { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 22px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.c-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.c-ico--blue { background: var(--blue-soft); color: var(--navy); }
.c-ico .ico { width: 44px; height: 44px; stroke-width: 1.5; }
.symptom h3 { font-size: 18px; line-height: 1.5; color: var(--navy-ink); }
.symptom p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* 対象疾患 */
.diseases { margin-top: 26px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.disease { grid-column: span 2; display: flex; align-items: center; gap: 18px; padding: 14px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700; font-size: 17px; line-height: 1.55; color: var(--navy-ink); }
.disease:nth-child(n+4) { grid-column: span 3; }
.disease .c-ico { width: 64px; height: 64px; }
.disease .c-ico .ico { width: 34px; height: 34px; }

/* 検査 */
.tests { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.test { padding: 22px 22px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.test__head { display: flex; align-items: center; gap: 14px; }
.test .c-ico { width: 64px; height: 64px; }
.test .c-ico .ico { width: 34px; height: 34px; }
.test h3 { font-size: 17px; line-height: 1.5; color: var(--navy-ink); }
.test p { margin-top: 14px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

.notice { position: relative; margin-top: 30px; display: flex; align-items: center; gap: 18px; padding: 22px 30px; border-radius: 20px; background: var(--blue-soft); font-size: 16px; line-height: 1.8; overflow: hidden; }
.notice__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 24px; flex: none; }
.notice .leafs { position: absolute; right: 24px; bottom: 6px; width: 90px; height: 70px; opacity: .7; }

/* 関連 */
.related-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.related-head .s-lead { margin: 0; font-size: 15px; }
.related { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related a { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; padding: 18px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s; }
.related a:hover { transform: translateY(-3px); }
.related .c-ico { width: 72px; height: 72px; }
.related .c-ico .ico { width: 38px; height: 38px; }
.related b { display: block; font-size: 18px; color: var(--navy-ink); }
.related span:not(.c-ico) { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }
.related .ico--sm { color: var(--red); }

/* ---------- CTA band ---------- */
.cta { position: relative; margin-top: 60px; padding: 34px 40px 120px; background: linear-gradient(180deg, rgba(234, 243, 250, 0), var(--blue-soft) 30%); }
.cta__box { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: rgba(255, 255, 255, .55); border-radius: 22px; padding: 26px 30px; }
.cta__col { text-align: center; padding: 0 20px; }
.cta__col + .cta__col { border-left: 1px solid #c9d6e2; }
.cta__col p { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; line-height: 1.6; color: var(--navy-ink); }
.cta__hours { margin-top: 12px; text-align: center; font-size: 15px; color: var(--ink-2); }
.cta__single { text-align: center; font-size: 18px; font-weight: 700; color: var(--navy-ink); }
.cta__row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 30px; border-radius: 999px; color: #fff; background-color: #c84d1f; background-image: var(--btn); font-weight: 700; font-size: 17px; box-shadow: 0 8px 18px rgba(200, 77, 31, .28); transition: transform .2s; }
.cta-btn--tel { color: var(--navy-ink); background: #fff; border: 2px solid var(--navy); box-shadow: none; font-size: 22px; letter-spacing: .03em; padding: 10px 32px; }
.cta-btn--tel small { display: block; font-size: 14px; letter-spacing: 0; line-height: 1.2; }
.cta-btn--tel b { display: block; line-height: 1.2; }
.cta-btn--tel .ico { color: var(--navy); width: 28px; height: 28px; }
.cta-btn:hover { transform: translateY(-2px); }
.cta__row .cta-btn { margin-top: 0; }
.cta .leafs { position: absolute; width: 90px; height: 110px; opacity: .7; bottom: 70px; }
.cta .leafs--l { left: 24px; }
.cta .leafs--r { right: 24px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: -70px; color: #fff; }
.site-footer svg.wave { display: block; width: 100%; height: 70px; }
.footer__inner { background: var(--navy); display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 6px 40px 24px; }
.footer__name { font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.footer__nav ul { display: flex; flex-wrap: wrap; }
.footer__nav li { font-size: 14px; }
.footer__nav li + li::before { content: "|"; margin: 0 12px; opacity: .5; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { margin-left: auto; font-size: 13px; opacity: .9; }
.footer__copy small { font-size: 14px; }
.footer__demo { background: var(--navy-2); text-align: center; font-size: 14px; padding: 10px 20px; opacity: .95; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  :root { --side: 220px; }
  .site-header { padding-left: 14px; padding-right: 14px; }
  .brand__name { font-size: 24px; }
  .gnav__list a { white-space: nowrap; gap: 10px; padding: 9px 10px; }
  .btn-tel { padding: 12px; gap: 8px; }
  .btn-tel .ico { width: 22px; height: 22px; }
  .btn-tel b { font-size: 18px; white-space: nowrap; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .dept, .dept--wide { grid-column: span 1; }
  .dept--wide { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
  .dept--wide .dept__icon { grid-row: auto; }
  .dept--wide .dept__icon { width: 96px; height: 96px; }
  .dept--wide .dept__icon .ico { width: 48px; height: 48px; }
  .dept--wide h3 { margin-top: 18px; font-size: 22px; }
  .symptoms, .tests { grid-template-columns: repeat(2, 1fr); }
  .diseases { grid-template-columns: repeat(2, 1fr); }
  .disease, .disease:nth-child(n+4) { grid-column: span 1; }
  .p-hero__bubble { display: none; }
  .cta .leafs { display: none; }
}

@media (max-width: 960px) {
  body { padding-top: 64px; }
  .site-header { inset: 0 0 auto 0; width: auto; height: 64px; overflow: visible; display: flex; align-items: center; padding: 0 8px 0 16px; border-right: 0; box-shadow: 0 2px 14px rgba(60, 60, 80, .08); background: #fffdf9; }
  .brand { margin-right: auto; }
  .brand__name { font-size: 19px; padding: 0; }
  .brand__name span { display: inline; }
  .hdr-tel-sp, .menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 52px; border: 0; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; }
  .hdr-tel-sp { color: #fff; background: var(--navy); margin-right: 6px; }
  .menu-btn { background: #f3ece2; color: var(--ink); }
  .hdr-tel-sp .ico, .menu-btn .ico { width: 24px; height: 24px; }
  .gnav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: #fff; padding: 16px 20px 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .gnav.is-open { transform: none; visibility: visible; }
  .gnav__list { margin-top: 0; }
  .gnav__list a { font-size: 19px; padding: 14px 16px; border-radius: 12px; border-bottom: 1px solid var(--line); }
  .btn-tel { justify-content: center; }
    .hdr-info { font-size: 15px; }
  .side-leaf { display: none; }
  .page { margin-left: 0; }
  .breadcrumb { position: static; padding: 12px 20px 0; }
  .p-hero { min-height: 0; padding: 230px 20px 70px; justify-content: flex-end; }
  .p-hero__bg img { object-position: 72% 20%; }
  .p-hero::before { background: linear-gradient(180deg, rgba(251, 248, 243, 0) 20%, rgba(251, 248, 243, .85) 52%, rgba(251, 248, 243, .97) 70%); }
  .p-body { padding: 0 20px 10px; }
  .anchor { margin: -20px 20px 0; border-radius: 18px; padding: 8px; }
  .anchor ul { display: grid; grid-template-columns: 1fr 1fr; }
  .anchor li + li { border-left: 0; }
  .anchor a { padding: 8px 10px; justify-content: space-between; font-size: 15px; }
  .cta { padding: 30px 20px 110px; }
  .cta__box { grid-template-columns: 1fr; gap: 20px; }
  .cta__col + .cta__col { border-left: 0; border-top: 1px solid #c9d6e2; padding-top: 20px; }
  .cta .leafs { display: none; }
  .footer__inner { padding: 6px 20px 20px; gap: 14px 30px; }
  .footer__copy { margin-left: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .p-hero { padding-top: 250px; }
  .p-hero__title .spark { display: none; }
  .cta__col { padding: 0; }
  .cta__col p { font-size: 16px; }
  .cta__col p .spark { display: none; }
  .cta-btn { white-space: nowrap; padding-left: 18px; padding-right: 18px; }
  .p-hero__title { font-size: 34px; }
  .p-hero__lead { font-size: 18px; }
  .p-hero__lead br, .p-hero__text br { display: none; }
  .dept-grid, .symptoms, .tests, .diseases, .related { grid-template-columns: 1fr; }
  .dept { padding: 22px 20px 24px; }
  .symptom { grid-template-columns: 68px 1fr; padding: 18px 16px; }
  .symptom .c-ico { width: 68px; height: 68px; }
  .symptom .c-ico .ico { width: 36px; height: 36px; }
  .anchor ul { grid-template-columns: 1fr; }
  .notice { padding: 20px; align-items: flex-start; }
  .notice .leafs { display: none; }
  .related a { grid-template-columns: 60px 1fr auto; padding: 16px; gap: 14px; }
  .related .c-ico { width: 60px; height: 60px; }
  .cta-btn { width: 100%; justify-content: center; }
  .cta__row { flex-direction: column; gap: 12px; }
  .footer__nav li { font-size: 15px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 17px; }
  .s-title { font-size: 22px; gap: 8px; letter-spacing: .04em; }
  .s-title .spark { display: none; }
  .p-hero__title { font-size: 30px; }
}

/* =========================================================
   追加ページ（当院について・特徴・医師紹介・初めての方へ・アクセス・お知らせ・検査）
   ========================================================= */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--btn); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 6px 16px rgba(200, 77, 31, .25); transition: transform .2s; }
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill--line { background: #fff; color: var(--red-ink); border: 1.5px solid var(--red); box-shadow: none; }
.center { text-align: center; }
.photo-note { font-size: 12px; color: var(--ink-2); margin-top: 6px; text-align: right; }

/* あいさつ */
.greet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.greet__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.greet__body p { font-size: 17px; line-height: 2; }
.greet__sign { margin-top: 12px; text-align: right; font-size: 18px; color: var(--navy-ink); }
.greet__body .btn-pill { margin-top: 20px; }

/* 3つの特徴カード */
.feat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat3 li { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feat3 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feat3 h3 { padding: 16px 16px 20px; text-align: center; font-size: 19px; line-height: 1.55; color: var(--navy-ink); }
.feat3 p { padding: 0 20px 22px; font-size: 16px; color: var(--ink-2); margin-top: -8px; }
.num-badge { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--btn); color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 4px 10px rgba(200, 77, 31, .3); }

/* 院内写真 */
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rooms figure { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.rooms img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rooms figcaption { padding: 10px; text-align: center; font-weight: 700; color: var(--navy-ink); }

/* 概要表 */
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.spec th { width: 24%; background: #faf3ea; color: var(--navy-ink); font-weight: 700; white-space: nowrap; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

@media (max-width: 1100px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .greet { grid-template-columns: 1fr; }
  .feat3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rooms { gap: 10px; }
  .spec th, .spec td { padding: 12px 12px; font-size: 15px; }
  .spec th { width: 32%; white-space: normal; }
}

/* 検査カード（写真付き） */
.exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.exam-grid li { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.exam-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exam-grid h3 { padding: 14px 16px 4px; font-size: 18px; color: var(--navy-ink); line-height: 1.45; }
.exam-grid p { padding: 0 16px 18px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
/* 箇条書きボックス */
.note-box { position: relative; background: var(--blue-soft); border-radius: var(--radius); padding: 24px clamp(20px, 3vw, 40px); overflow: hidden; }
.note-box ul { display: grid; gap: 6px; }
.note-box li { position: relative; padding-left: 24px; }
.note-box li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.note-box .leafs { position: absolute; right: 16px; bottom: 8px; width: 70px; opacity: .8; }
@media (max-width: 1100px) { .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .exam-grid { grid-template-columns: 1fr; } }

/* 写真なしの見出しエリア（お知らせ） */
.p-hero.p-hero--plain { min-height: 0; padding: 72px 40px 24px; background: linear-gradient(180deg, #f5efe6, var(--cream)); }
.p-hero--plain::before { display: none; }
.p-hero--plain .leafs { position: absolute; right: 48px; top: 28px; width: 90px; opacity: .8; }
/* カテゴリタブ */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; padding: 10px; border-radius: var(--radius); background: var(--blue-soft); }
.tab { width: 100%; min-height: 48px; padding: 0 8px; border-radius: 12px; border: 0; background: #fff; color: var(--navy-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.tab:hover { color: var(--red-ink); }
.tab[aria-pressed="true"] { background: var(--btn); border-color: transparent; color: #fff; }
/* ラベル */
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #f3ece2; color: var(--ink-2); line-height: 1.6; }
.tag--red { background: #c84d1f; color: #fff; }
.tag--blue { background: var(--blue-soft); color: var(--navy); }
/* 記事一覧 */
.news-rows li + li { border-top: 1px solid var(--line); }
.news-rows a { display: grid; grid-template-columns: 110px 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 6px; }
.news-rows time { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.news-rows .ico { color: var(--red); }
.news-rows a:hover .news-row__title { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.news-empty { padding: 24px 6px; color: var(--ink-2); }
/* 記事 */
.article { max-width: 860px; margin: 0 auto; }
.article__meta { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); }
.article__title { margin-top: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.5; color: var(--navy-ink); }
.article__body { margin-top: 22px; }
.article__body p + p, .article__body p + ul, .article__body ul + p, .article__body table + p { margin-top: 12px; }
.article__body h2 { margin: 32px 0 10px; padding-left: 14px; border-left: 4px solid var(--red); font-size: 20px; line-height: 1.4; color: var(--navy-ink); }
.article__body ul { padding-left: 1.3em; list-style: disc; }
.article__body a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.article__body .spec { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.article__img { margin-top: 28px; }
.article__img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 14px; }
.pager { max-width: 860px; margin: 28px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.pager__prev, .pager__next { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--navy-ink); }
.pager__prev .ico { transform: rotate(180deg); }
.pager__next { justify-self: end; }
@media (max-width: 768px) {
  .p-hero.p-hero--plain { padding: 96px 20px 16px; }
  .news-rows a { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 2px; }
  .news-rows .news-row__title { grid-column: 1 / 3; grid-row: 2; }
  .news-rows .ico { grid-column: 3; grid-row: 1 / span 2; }
  .tag { justify-self: start; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .btn-pill { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* 診療時間表・アクセス */
.hours { width: 100%; border-collapse: collapse; text-align: center; font-size: 16px; }
.hours th, .hours td { padding: 14px 6px; border-bottom: 1px solid var(--line); }
.hours thead th { color: var(--navy-ink); font-weight: 700; border-bottom: 2px solid var(--line); }
.hours tbody th { white-space: nowrap; font-weight: 700; color: var(--navy-ink); }
.hours .on { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); vertical-align: middle; }
.hours .off { color: #b9b0a5; }
.hours-wrap { overflow-x: auto; }
.holiday { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.holiday b { padding: 2px 14px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 14px; }
.access-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.map-box { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background-color: #f2eee7;
  background-image: linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%), linear-gradient(0deg, transparent 44%, #fff 44%, #fff 50%, transparent 50%),
    linear-gradient(28deg, transparent 62%, #e5ddd0 62%, #e5ddd0 65%, transparent 65%), linear-gradient(#ebe4da 1px, transparent 1px), linear-gradient(90deg, #ebe4da 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px; }
.map-box .ico { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; color: var(--red); transform: translate(-50%, -90%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.map-box span { position: absolute; left: 12px; bottom: 10px; font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.9); padding: 2px 12px; border-radius: 999px; }
.info-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .c-ico { width: 40px; height: 40px; }
.info-list b { display: block; color: var(--navy-ink); }
.info-list .tel-big { font-size: 26px; font-weight: 700; color: var(--navy-ink); letter-spacing: .04em; }
.photo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-2 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.photo-2 figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hours { font-size: 14px; } .hours th, .hours td { padding: 10px 2px; } .photo-2 { gap: 10px; } }

/* 受診の流れ・持ち物・FAQ */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: st; }
.steps li { position: relative; padding: 24px 16px 22px; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; margin: -46px auto 10px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 700; }
.steps li + li::after { content: ""; position: absolute; left: -22px; top: 50%; width: 16px; border-top: 2px dotted var(--red); }
.steps .c-ico { margin: 0 auto 10px; }
.steps h3 { font-size: 17px; color: var(--navy-ink); line-height: 1.5; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); font-size: 17px; font-weight: 700; color: var(--navy-ink); }
.checklist .c-ico { width: 44px; height: 44px; }
.alert-box { display: flex; align-items: center; gap: 18px; padding: 22px clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--blue-soft); }
.alert-box .notice__mark { flex: none; }
.alert-box b { display: block; font-size: 18px; color: var(--navy-ink); }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .q, .faq .a { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; }
.faq .q { background: var(--btn); color: #fff; }
.faq .a { background: var(--blue-soft); color: var(--navy); }
.faq details > div { display: flex; gap: 14px; padding: 0 22px 20px; }
.faq details > div p { padding-top: 4px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } .steps li:nth-child(4)::after { display: none; } }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .steps li + li::after { left: 50%; top: -26px; width: 0; height: 16px; border-top: 0; border-left: 2px dotted var(--red); }
  .steps li:nth-child(4)::after { display: block; }
  .checklist { grid-template-columns: 1fr; }
  .alert-box { align-items: flex-start; }
}

/* 医師紹介 */
.doc-msg { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.doc-msg img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 20%; border-radius: 14px; }
.doc-msg h3 { font-size: 22px; color: var(--navy-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.doc-msg p + p { margin-top: 12px; }
.doc-sign { margin-top: 18px; text-align: right; color: var(--navy-ink); }
.doc-sign b { font-size: 20px; margin-left: 8px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cols-2 h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; color: var(--navy-ink); margin-bottom: 14px; }
.cols-2 h3 .c-ico { width: 40px; height: 40px; }
.timeline li { position: relative; padding: 6px 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 26px; bottom: -6px; border-left: 1px dashed var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: inline-block; min-width: 4.5em; color: var(--navy-ink); }
.dots li { position: relative; padding: 6px 0 6px 22px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.values3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.values3 li { text-align: center; padding: 28px 20px; }
.values3 .c-ico { width: 72px; height: 72px; margin: 0 auto 12px; }
.values3 .c-ico .ico { width: 32px; height: 32px; }
.values3 h3 { font-size: 19px; color: var(--navy-ink); }
.values3 p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
/* 特徴（大ブロック） */
.feat-rows { display: grid; gap: 28px; }
.feat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.feat-row:nth-child(even) .feat-row__img { order: 2; }
.feat-row__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.feat-row__num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--btn); color: #fff; font-size: 22px; font-weight: 700; }
.feat-row__head { display: flex; align-items: center; gap: 14px; }
.feat-row h2, .feat-row h3 { margin: 12px 0 10px; font-size: clamp(21px, 2vw, 26px); color: var(--navy-ink); line-height: 1.5; }
.feat-row ul { margin-top: 14px; display: grid; gap: 6px; }
.feat-row ul li { position: relative; padding-left: 28px; }
.feat-row ul li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.go3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.go3 a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; color: var(--navy-ink); }
.go3 a .ico--sm { margin-left: auto; color: var(--red); }
@media (max-width: 900px) {
  .doc-msg, .cols-2, .feat-row { grid-template-columns: 1fr; }
  .feat-row:nth-child(even) .feat-row__img { order: 0; }
  .values3, .go3 { grid-template-columns: 1fr; }
}
