@charset "utf-8";
/* ぽっけ歯科クリニック（制作サンプル・5ページ共通） */

:root {
  --ac: #2e7c78;
  --ac-deep: #1f5a57;
  --ac-pale: #e6f2f0;
  --bg: #ffffff;
  --bg-2: #f3f8f7;
  --ink: #1d2a30;
  --ink-2: #46535a;
  --muted: #6b767b;
  --line: #dbe7e5;
  --line-2: #edf3f2;
  --line-green: #06C755;
  --line-green-dark: #05B34C;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;
  --hh: 80px;
  --wrap: 1160px;
  --gut: clamp(20px, 4vw, 56px);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ac-deep); }
a:hover { color: var(--ac); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .05em; line-height: 1.45; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
.nw, .ib { display: inline-block; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
p, li, dt, dd, figcaption, td, th { text-wrap: pretty; }
li, dt, dd, .btn { word-break: auto-phrase; }

/* サンプル明示バー（追従させない） */
.sample-banner {
  background: var(--ac);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  text-align: center;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.6;
}

/* ヘッダー（追従するのはヘッダーだけ） */
header.site {
  position: sticky; top: 0; z-index: 200;
  height: var(--hh);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e9eef0;
}
header.site .inner {
  height: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(16px, 2.6vw, 40px);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .08em; }
.brand-text small b { font-weight: 500; color: var(--ac-deep); }
.brand-text strong { font-size: 1.16rem; letter-spacing: .1em; font-weight: 700; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; display: flex; gap: clamp(2px, .8vw, 12px); }
.gnav a {
  display: block; padding: 10px 8px; text-decoration: none; color: var(--ink-2);
  font-size: .94rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent;
}
.gnav a:hover { color: var(--ac); }
.gnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ac); }
.head-tel { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; color: var(--ink); white-space: nowrap; text-align: right; }
.head-tel b { font-size: 1.22rem; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ac-deep); }
.head-tel b .ico { width: 18px; height: 18px; color: var(--ac); }
.head-tel small { font-size: .7rem; color: var(--muted); }
.head-line {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--line-green); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 11px 18px; border-radius: 999px; min-height: 46px;
}
.head-line:hover { background: var(--line-green-dark); color: #fff; }
.head-line .ico { width: 18px; height: 18px; }
.nav-toggle { display: none; }
.mobile-nav, .nav-overlay { display: none; }

@media (max-width: 1239px) {
  .head-tel small { display: none; }
}
@media (max-width: 1100px) {
  .head-tel { display: none; }
}
@media (max-width: 959px) {
  :root { --hh: 62px; }
  .gnav, .head-line { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.05rem; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-text small { font-size: .66rem; letter-spacing: .04em; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
    background: #fff; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(29, 42, 48, .38); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 180; }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
  .mobile-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; height: 100%; width: 86%; max-width: 380px;
    background: #fff; z-index: 190; overflow-y: auto;
    padding: calc(var(--nav-top, var(--hh)) + 12px) 0 20px;
    transform: translateX(100%); transition: transform .3s; pointer-events: none; visibility: hidden;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
  }
  .mobile-nav[data-open="true"] { transform: none; pointer-events: auto; visibility: visible; }
  .mobile-nav ul { list-style: none; border-top: 1px solid var(--line); }
  .mobile-nav li a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 24px; border-bottom: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 500;
  }
  .mobile-nav li a::after { content: ""; width: 8px; height: 8px; border-top: 1.5px solid var(--ac); border-right: 1.5px solid var(--ac); transform: rotate(45deg); }
  .mobile-nav li a[aria-current="page"] { color: var(--ac-deep); font-weight: 700; background: var(--ac-pale); }
  .mobile-nav .mn-contact { padding: 18px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mobile-nav .mn-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 12px; text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.2; text-align: center; }
  .mobile-nav .mn-c .ico { width: 22px; height: 22px; }
  .mobile-nav .m-tel { background: var(--ac); color: #fff; }
  .mobile-nav .m-line { background: var(--line-green); color: #fff; }
  .mobile-nav .mn-note { padding: 12px 24px 0; margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.7; }
  body.nav-open header.site { background: #fff; }
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.4; border: 1px solid transparent;
  font-family: var(--sans); white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; }
.btn-tel { background: var(--ac); color: #fff; }
.btn-tel:hover { background: var(--ac-deep); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-dark); color: #fff; }
.btn-tel-big { background: #fff; border-color: var(--line); color: var(--ink); flex-direction: column; gap: 0; border-radius: 16px; padding: 8px 26px; }
.btn-tel-big small { font-size: .76rem; color: var(--muted); font-weight: 500; }
.btn-tel-big b { font-size: 1.4rem; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; color: var(--ac-deep); }
.btn-tel-big b .ico { color: var(--ac); }
.btn-tel-big:hover { border-color: var(--ac); color: var(--ink); }
.more {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ac-deep); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid currentColor; padding: 4px 0;
}
.more::after { content: "→"; font-weight: 400; }
.more:hover { color: var(--ac); }

/* レイアウト */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(64px, 8.5vw, 116px) 0; }
.sec.tint { background: var(--bg-2); }
.sec.pale { background: var(--ac-pale); }
.sec-head { margin-bottom: clamp(32px, 4.4vw, 56px); max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .en { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--ac); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.sec-head p { margin: 14px 0 0; color: var(--ink-2); }
.sec-foot { margin-top: clamp(28px, 4vw, 48px); }
.sec-foot.center { text-align: center; }
.note { font-size: .84rem; color: var(--muted); line-height: 1.8; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 12px; }
.lead { color: var(--ink-2); }
.dots { list-style: none; }
.dots li { position: relative; padding-left: 1.2em; margin-bottom: 6px; line-height: 1.8; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.ph-round { border-radius: var(--r); overflow: hidden; background: var(--ac-pale); }
.ph-round img { width: 100%; }
.ph-cap { margin-top: 10px; font-size: .86rem; color: var(--muted); line-height: 1.7; }

/* ===== 最初の画面（B案：左に言葉と診療時間・右に写真） ===== */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  min-height: calc(100svh - var(--hh) - 40px); max-height: 860px;
  padding: clamp(24px, 4vh, 48px) 0 clamp(24px, 4vh, 48px) clamp(20px, 6vw, 96px);
  background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
}
.hero-text h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); line-height: 1.35; letter-spacing: .06em; margin: 0 0 16px; color: var(--ink); }
.hero-text .catch-sub { font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.45vw, 1.35rem); letter-spacing: .08em; color: var(--ac-deep); margin: -4px 0 14px; }
.hero-text .hero-lead { margin: 0; font-size: 1rem; color: var(--ink-2); max-width: 30em; line-height: 1.85; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta-row .btn { padding: 14px 24px; }
.hero-photo { position: relative; height: 100%; max-height: 720px; min-height: 460px; }
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 45%; border-radius: 28px 0 0 28px; }
.photo-tag { position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, .95); border-radius: 10px; padding: 8px 14px; font-size: .84rem; font-weight: 700; color: var(--ac-deep); line-height: 1.5; }
.sp-chips { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #dfe7ea; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: 1.5; }
.chip i { font-style: normal; color: var(--ac); font-weight: 700; }

/* 診療時間の表（最初の画面・アクセス共通） */
.hours { margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; max-width: 440px; }
.hours table { width: 100%; border-collapse: collapse; font-size: .82rem; text-align: center; line-height: 1.5; }
.hours th, .hours td { padding: 7px 4px; border-bottom: 1px solid var(--line-2); }
.hours thead th { background: var(--ac-pale); color: var(--ac-deep); font-weight: 700; }
.hours tbody th { text-align: left; padding-left: 12px; font-weight: 500; white-space: nowrap; }
.hours .o { color: var(--ac); font-weight: 700; }
.hours .x { color: #b4bcc0; }
.hours-note { padding: 8px 12px; font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; line-height: 1.6; }
.hours.wide { max-width: none; margin-top: 0; }
.hours.wide table { font-size: .92rem; }
.hours.wide th, .hours.wide td { padding: 10px 4px; }
.hours.wide .hours-note { font-size: .86rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 0; min-height: 0; max-height: none; gap: 0; }
  .hero-photo { order: -1; min-height: 0; height: auto; max-height: none; aspect-ratio: 16 / 9; }
  .hero-photo img { border-radius: 0 0 22px 22px; }
  .photo-tag { display: none; }
  .hero-text { padding: 24px var(--gut) 32px; }
}
@media (max-width: 767px) {
  /* スマホ：写真＋見出しで最初の画面。高さは script.js が開いた時の画面の高さから px で固定する */
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  .hero-photo { flex: none; aspect-ratio: auto; height: var(--ph, max(calc(100svh - var(--hh) - 36px - 72px - 170px), 100vw)); }
  .hero-photo img { object-position: 58% 45%; }
  .photo-tag { display: none; }
  .hero-text { flex: none; padding: 18px 18px 16px; }
  .hero-text h1 { font-size: 1.6rem; margin-bottom: 8px; }
  .hero-text .catch-sub { font-size: 1rem; margin: 0 0 10px; }
  .hero-text .hero-lead, .hero-text .cta-row, .hero-text .hours { display: none; }
  .sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
}

/* ===== 大切にしていること（交互配置） ===== */
.policy { display: grid; gap: clamp(40px, 6vw, 80px); }
.policy-item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.policy-item:nth-child(even) .ph-round { order: 2; }
.policy-num { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ac); font-size: .9rem; letter-spacing: .12em; margin-bottom: 10px; }
.policy-num .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); }
.policy-item h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: 16px; }
.policy-item p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) {
  .policy-item { grid-template-columns: 1fr; gap: 20px; }
  .policy-item:nth-child(even) .ph-round { order: 0; }
}

/* ===== 診療内容カード（押せる合図の帯つき） ===== */
.menu-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.mcard:hover { color: var(--ink); border-color: var(--ac); }
.mcard .bd { padding: 24px 22px 20px; flex: 1; }
.mcard .m-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); display: grid; place-items: center; margin-bottom: 14px; }
.mcard .m-ico .ico { width: 28px; height: 28px; }
.mcard h3 { font-size: 1.25rem; margin-bottom: 8px; }
.mcard p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.75; }
.mcard .go { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ac-pale); border-top: 1px solid var(--line); color: var(--ac-deep); font-weight: 700; font-size: .88rem; padding: 12px 10px; }
.mcard .go::after { content: '\25b6'; font-size: .7rem; }
.mcard:hover .go { background: var(--ac); color: #fff; border-top-color: var(--ac); }
@media (max-width: 1000px) { .menu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .menu-cards { grid-template-columns: 1fr; } .mcard .bd { padding: 20px 18px 16px; } }

/* ===== 院長あいさつ ===== */
.greet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.greet blockquote { margin: 0; }
.greet blockquote p { font-size: 1.04rem; color: var(--ink-2); line-height: 2; }
.greet .sign { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin: 18px 0 20px; }
.greet .sign small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
@media (max-width: 820px) { .greet { grid-template-columns: 1fr; gap: 22px; } }

/* ===== 院内の様子 ===== */
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.room-grid figure .ph-round { border-radius: 14px; }
.room-grid figcaption { margin-top: 12px; }
.room-grid figcaption b { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.room-grid figcaption span { font-size: .9rem; color: var(--ink-2); line-height: 1.7; display: block; }
.room-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .room-grid { grid-template-columns: 1fr; gap: 24px; } .room-grid.four { grid-template-columns: 1fr; } }

/* ===== 初めての方へ（4ステップ） ===== */
.steps4 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps4 li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; position: relative; counter-increment: st; }
.steps4 li::before { content: "STEP " counter(st); display: block; font-size: .76rem; font-weight: 700; letter-spacing: .14em; color: var(--ac); margin-bottom: 10px; }
.steps4 .s-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); display: grid; place-items: center; margin-bottom: 12px; }
.steps4 .s-ico .ico { width: 24px; height: 24px; }
.steps4 h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps4 p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 1000px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }

/* ===== 診療時間・アクセス ===== */
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.info-dl { margin: 22px 0 0; }
.info-dl div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.info-dl div:last-child { border-bottom: 1px solid var(--line); }
.info-dl dt { font-weight: 700; color: var(--ac-deep); font-size: .94rem; display: flex; align-items: center; gap: 8px; }
.info-dl dt .ico { color: var(--ac); }
.info-dl dd { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.8; }
.map-box { margin-top: 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ac-pale); }
.map-box iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-box p { margin: 0; padding: 8px 14px; font-size: .8rem; color: var(--muted); background: #fff; line-height: 1.6; }
@media (max-width: 860px) { .access-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .info-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ===== お問い合わせの帯 ===== */
.contact-band { background: var(--ac-deep); color: #e8f1f0; padding: clamp(56px, 7vw, 88px) 0; }
.contact-band .inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.contact-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 12px; }
.contact-band p { margin: 0; color: #d4e5e3; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-band .btn-tel-big { border-color: #fff; }
.contact-band .note { grid-column: 1 / -1; color: #bcd3d0; margin: 0; }
@media (max-width: 860px) { .contact-band .inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-actions { flex-direction: column; } .contact-actions .btn { width: 100%; } }

/* ===== このサンプルについて ===== */
.about-sample { background: #fff; border-top: 1px solid var(--line); }
.about-sample h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 16px; }
.about-sample .lead { max-width: 46em; }
.as-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 28px 0 0; }
.as-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.as-list dt { font-weight: 700; font-size: .94rem; margin-bottom: 4px; }
.as-list dd { margin: 0; color: var(--ink-2); font-size: .94rem; }
@media (max-width: 760px) { .as-list { grid-template-columns: 1fr; } }

/* ===== 下層ページ ===== */
.page-head { padding: clamp(44px, 6.5vw, 88px) 0 clamp(36px, 4.5vw, 60px); background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line-2); }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.page-head .lead { max-width: 40em; margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; }
.jump a:hover { border-color: var(--ac); color: var(--ac-deep); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.two-col.mid { align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* 初診の流れ（5段） */
.flow5 { list-style: none; display: grid; gap: 0; counter-reset: fl; }
.flow5 > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); counter-increment: fl; }
.flow5 > li:last-child { border-bottom: 1px solid var(--line); }
.flow5 .f-num { width: 60px; height: 60px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; }
.flow5 h3 { font-size: 1.25rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.flow5 h3 .ico { color: var(--ac); width: 24px; height: 24px; }
.flow5 p { margin: 0; color: var(--ink-2); }
.flow5 .f-body.with-ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: start; }
.flow5 .f-body.with-ph .ph-round { border-radius: 12px; }
@media (max-width: 760px) {
  .flow5 > li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .flow5 .f-num { width: 44px; height: 44px; font-size: 1.15rem; }
  .flow5 .f-body.with-ph { grid-template-columns: 1fr; gap: 14px; }
}

/* 情報カード（持ち物など） */
.icon-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.icon-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; line-height: 1.7; }
.icon-list .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); }
.icon-list b { display: block; font-size: 1rem; }
.icon-list span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 640px) { .icon-list { grid-template-columns: 1fr; } }

/* 費用の表 */
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { padding: 16px 18px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; line-height: 1.7; }
.fee-table thead th { background: var(--ac-pale); color: var(--ac-deep); font-size: .92rem; }
.fee-table tbody th { font-weight: 700; width: 46%; }
.fee-table td b { font-size: 1.2rem; color: var(--ac-deep); white-space: nowrap; }
.fee-table.compare tbody th { width: 22%; }
.fee-table.compare td { width: 39%; }
@media (max-width: 640px) {
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: auto !important; }
  .fee-table thead { display: none; }
  .fee-table tbody th { background: var(--bg-2); padding-bottom: 8px; }
  .fee-table td { padding-top: 10px; }
  .fee-table td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--ac); letter-spacing: .06em; }
}

/* 枠つきの説明カード */
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 20px; }
.box h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.box h3 .ico { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); }
.box p { color: var(--ink-2); font-size: .96rem; margin: 0 0 .6em; }
.box p:last-child { margin-bottom: 0; }
.box .note { margin-top: 8px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }

/* 診療案内の各ブロック */
.treat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.treat.no-ph { grid-template-columns: 1fr; }
.treat h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.treat h2 .ico { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); }
.treat .lead { margin-bottom: 18px; }
.treat h3 { font-size: 1.15rem; margin: 22px 0 8px; }
@media (max-width: 860px) { .treat { grid-template-columns: 1fr; } }
.ins-note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--ac); background: var(--bg-2); border-radius: 0 12px 12px 0; font-size: .94rem; color: var(--ink-2); }
.ins-note b { color: var(--ink); }
.equip { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: center; }
.equip .ph-round { border-radius: 12px; }
@media (max-width: 640px) { .equip { grid-template-columns: 1fr; } .equip .ph-round { max-width: 320px; } }

/* 院長紹介 */
.career { margin: 0; }
.career div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.career div:last-child { border-bottom: 1px solid var(--line); }
.career dt { color: var(--ac-deep); font-weight: 700; }
.career dd { margin: 0; color: var(--ink-2); }
.staff { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.staff li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; }
.staff .s-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.staff .s-head .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ac-pale); color: var(--ac-deep); }
.staff b { display: block; font-family: var(--serif); font-size: 1.12rem; }
.staff small { color: var(--ac); font-weight: 700; font-size: .84rem; }
.staff p { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 900px) { .staff { grid-template-columns: 1fr; } }

/* よくある質問 */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.faq-item h3 { font-family: var(--sans); font-weight: 700; font-size: 1.04rem; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; letter-spacing: .03em; line-height: 1.6; }
.faq-item h3::before { content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; line-height: 1; margin-top: 1px; }
.faq-item p { margin: 0; padding-left: 40px; color: var(--ink-2); font-size: .96rem; line-height: 1.85; }

/* ほかの見本の帯 */
.os-band { background: var(--bg-2); }

/* フッター */
footer.site { background: #17262a; color: #cfdad8; padding: clamp(56px, 7vw, 84px) 0 calc(28px + env(safe-area-inset-bottom)); }
footer.site a { color: #eef5f4; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 64px); }
.foot-brand b { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 600; letter-spacing: .08em; display: block; margin-bottom: 10px; }
.foot-brand p { font-size: .92rem; line-height: 1.9; margin: 0; }
footer.site h2 { font-family: var(--sans); font-size: .86rem; font-weight: 700; color: #fff; letter-spacing: .1em; margin-bottom: 12px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; font-size: .94rem; }
footer.site li a { text-decoration: none; }
footer.site li a:hover { text-decoration: underline; }
.foot-note { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .82rem; line-height: 1.9; color: #aebfbc; }
.foot-note strong { color: #fff; }
.foot-copy { margin-top: 18px; font-size: .78rem; color: #8fa3a0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* スマホ下の固定ボタン（電話する／LINEで相談） */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 74px; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; text-decoration: none; font-size: .98rem; font-weight: 700; line-height: 1.2; color: #fff; }
  .mobile-cta .ico { width: 20px; height: 20px; }
  .mobile-cta .m-tel { background: var(--ac); }
  .mobile-cta .m-line { background: var(--line-green); }
  .sample-banner { font-size: 11px; letter-spacing: 0; padding: 6px 6px; }
}
@media (max-width: 359px) { .sample-banner { white-space: normal; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-height: 500px) { .photo-tag { display: none; } }
