/* クリニックサンプル「あさひ内科・小児科クリニック」共通スタイル（青緑 × 白 × 橙、丸みのある温かい医院らしさ） */
:root {
  --teal: #2a9d8f;          /* 主色：装飾・罫線・大きい見出し用 */
  --teal-deep: #1c7c70;     /* ボタン背景・白文字を載せる面（コントラスト確保） */
  --teal-ink: #1b6e63;      /* 小さいラベル文字（淡色面の上でも 4.5:1 以上） */
  --teal-dark: #155e55;
  --orange: #f4a261;        /* 補助色：番号・下線・差し色。文字色には使わない */
  --orange-ink: #a2521b;    /* 補助色系の文字が必要なとき */
  --ink: #2b2b2b;
  --ink-2: #4f5b63;
  --bg: #ffffff;
  --t1: #eaf6f4;            /* 淡い青緑 */
  --t2: #fff8e1;            /* 淡い黄 */
  --t3: #fff0ec;            /* 淡い桃 */
  --line: #dfe7e6;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --disp: "Zen Kaku Gothic New", var(--sans);
  --num: "Inter", var(--sans);
  --max: 1120px;
  --r: 22px;
  --r-lg: 32px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .02em; font-feature-settings: "palt"; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; letter-spacing: .01em; font-family: var(--disp); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
@media (min-width: 560px) { .wrap { width: min(var(--max), 100% - 48px); } }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.label { font-size: 13px; letter-spacing: .14em; color: var(--teal-ink); font-weight: 700; }
.sec { padding-block: clamp(60px, 8vw, 104px); }
.sec-t1 { background: var(--t1); }
.sec-t2 { background: var(--t2); }
.sec-t3 { background: var(--t3); }
.sec-head { margin-bottom: clamp(28px, 4.5vw, 52px); }
.sec-head h2 { font-size: clamp(25px, 3.4vw, 38px); margin-top: 10px; font-weight: 900; }
.sec-head .lead { margin-top: 14px; max-width: 700px; color: var(--ink-2); font-size: 16px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--teal-deep); color: var(--teal-deep); background: #fff; transition: background .25s var(--ease), color .25s, border-color .25s, box-shadow .25s; cursor: pointer; font-family: var(--sans); line-height: 1.4; text-align: center; }
.btn:hover { background: var(--t1); box-shadow: 0 8px 20px rgba(28,124,112,.14); }
.btn-primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--teal-dark); }
.btn-white { background: #fff; border-color: #fff; color: var(--teal-dark); }
.btn-white:hover { background: var(--t2); border-color: var(--t2); color: var(--teal-dark); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(28,124,112,.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 40px; height: 40px; border-radius: 14px; background: var(--teal); display: grid; place-items: center; color: #fff; flex: none; }
.logo .mark svg { width: 22px; height: 22px; }
.logo .name { font-family: var(--disp); font-weight: 900; font-size: 18px; letter-spacing: .01em; color: var(--teal-dark); line-height: 1.3; }
.logo .name small { display: block; font-size: 11px; letter-spacing: .06em; color: var(--ink-2); font-weight: 500; font-family: var(--sans); }
.nav ul { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 700; padding: 12px 0; display: inline-block; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .tel { text-align: right; line-height: 1.3; }
.header-cta .tel b { font-family: var(--num); font-size: 19px; color: var(--teal-dark); display: block; }
.header-cta .tel small { font-size: 12px; color: var(--ink-2); }
.header .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; border-radius: 12px; }
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--teal-dark); margin: 5px 0; transition: transform .3s, opacity .3s; }
@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  body.menu-open .nav { display: block; position: fixed; inset: 76px 0 0; background: #fff; padding: 18px 20px 40px; overflow: auto; }
  body.menu-open .nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  body.menu-open .nav a { font-size: 18px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
  body.menu-open .nav a::after { display: none; }
  body.menu-open .nav .m-cta { display: grid; gap: 10px; margin-top: 22px; }
  body.menu-open .nav .m-cta .tel-m { text-align: center; font-size: 14px; color: var(--ink-2); }
  body.menu-open .nav .m-cta .tel-m b { display: block; font-family: var(--num); font-size: 26px; color: var(--teal-dark); }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}
.nav .m-cta { display: none; }

/* 下層ページの見出し */
.page-head { background: var(--t1); padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 76px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -140px; top: -120px; width: 420px; height: 420px; background: rgba(42,157,143,.13); border-radius: 58% 42% 40% 60% / 50% 46% 54% 50%; animation: blobA 20s ease-in-out infinite; }
.page-head::after { content: ""; position: absolute; left: -110px; bottom: -160px; width: 300px; height: 300px; background: rgba(244,162,97,.18); border-radius: 46% 54% 60% 40% / 56% 44% 56% 44%; animation: blobB 24s ease-in-out infinite; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(28px, 4.2vw, 46px); margin-top: 10px; font-weight: 900; color: var(--teal-dark); }
.page-head .lead { margin-top: 14px; max-width: 660px; color: var(--ink-2); }
.crumb { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.crumb a { color: var(--teal-ink); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* カード・共通部品 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(28,124,112,.12); }
.ic { width: 54px; height: 54px; border-radius: 18px; background: var(--t1); display: grid; place-items: center; color: var(--teal-dark); flex: none; }
.ic svg { width: 27px; height: 27px; }
.ic-o { background: #fdeedd; color: var(--orange-ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.tag { display: inline-block; font-size: 13px; padding: 4px 13px; border-radius: 999px; background: var(--t1); color: var(--teal-ink); font-weight: 700; }
.tag-o { background: #fdeedd; color: var(--orange-ink); }
.note-s { font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* 有機的な背景の動き */
@keyframes blobA {
  0%, 100% { border-radius: 58% 42% 40% 60% / 50% 46% 54% 50%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 42% 58% 56% 44% / 44% 56% 44% 56%; transform: translate(-2%, 3%) rotate(8deg); }
}
@keyframes blobB {
  0%, 100% { border-radius: 46% 54% 60% 40% / 56% 44% 56% 44%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 60% 40% 44% 56% / 40% 58% 42% 60%; transform: translate(3%, -3%) rotate(-7deg); }
}

/* 出現 */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; } .rv-d3 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .page-head::before, .page-head::after, .hero .blob-1, .hero .blob-2, .hero .blob-3 { animation: none !important; }
  .card:hover { transform: none; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero .blob-1, .hero .blob-2, .hero .blob-3 { position: absolute; z-index: 0; pointer-events: none; }
.hero .blob-1 { right: -12%; top: -22%; width: 58%; padding-bottom: 58%; background: var(--t1); border-radius: 58% 42% 40% 60% / 50% 46% 54% 50%; animation: blobA 22s ease-in-out infinite; }
.hero .blob-2 { left: -14%; bottom: -26%; width: 40%; padding-bottom: 40%; background: var(--t3); border-radius: 46% 54% 60% 40% / 56% 44% 56% 44%; animation: blobB 26s ease-in-out infinite; }
.hero .blob-3 { right: 32%; bottom: -12%; width: 20%; padding-bottom: 20%; background: rgba(244,162,97,.22); border-radius: 52% 48% 44% 56% / 48% 54% 46% 52%; animation: blobA 30s ease-in-out infinite reverse; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 5.5vw, 76px); }
.hero h1 { font-size: clamp(30px, 4.3vw, 52px); line-height: 1.3; color: var(--teal-dark); margin-top: 14px; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--ink); }
.hero .lead { margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 17px); max-width: 520px; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .pts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .pts li { font-size: 13.5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 5px 14px; border-radius: 999px; font-weight: 500; }
.hero .ph { position: relative; }
.hero .ph img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 24px 50px rgba(28,124,112,.16); }
.hero .badge { position: absolute; left: -16px; bottom: -18px; background: #fff; border-radius: 20px; padding: 14px 20px; box-shadow: 0 14px 34px rgba(28,124,112,.18); display: flex; gap: 12px; align-items: center; max-width: 84%; }
.hero .badge .ico { width: 42px; height: 42px; border-radius: 14px; background: var(--t2); display: grid; place-items: center; color: var(--orange-ink); flex: none; }
.hero .badge .ico svg { width: 22px; height: 22px; }
.hero .badge .k { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.hero .badge .k b { display: block; font-size: 15px; color: var(--ink); }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .ph { order: -1; }
  .hero .badge { left: 10px; bottom: -16px; }
  .hero .blob-1 { width: 80%; padding-bottom: 80%; top: -14%; }
}

/* ---------- 診療時間の表 ---------- */
.hours-band { background: var(--t1); padding-block: clamp(40px, 5vw, 64px); }
.hours-band .inner { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 38px) clamp(16px, 3vw, 38px); box-shadow: 0 16px 40px rgba(28,124,112,.10); }
.hours-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.hours-head h2 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 900; color: var(--teal-dark); }
.hours-head .rest { font-size: 14.5px; color: var(--ink-2); }
.hours-head .rest b { color: var(--ink); }
table.hours { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.hours th, table.hours td { text-align: center; border-bottom: 1px solid var(--line); padding: 12px 2px; }
table.hours thead th { background: var(--t1); font-size: 14px; font-weight: 700; color: var(--teal-dark); border-bottom: 2px solid var(--teal); font-family: var(--sans); }
table.hours thead th:first-child { background: #fff; border-bottom-color: var(--line); width: 96px; }
table.hours thead th.sun { color: var(--orange-ink); }
table.hours th[scope="row"] { text-align: left; font-size: 15px; font-weight: 700; padding-left: 4px; width: 88px; font-family: var(--sans); }
table.hours th[scope="row"] small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); font-family: var(--num); letter-spacing: 0; white-space: nowrap; }
table.hours td { font-size: 17px; color: var(--teal-deep); font-weight: 700; }
table.hours td.no { color: #8a949b; font-weight: 500; }
table.hours tbody tr:last-child th, table.hours tbody tr:last-child td { border-bottom: 0; }
.hours-notes { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.hours-notes li { padding-left: 18px; position: relative; }
.hours-notes li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hours-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hours-cta .tel { line-height: 1.4; }
.hours-cta .tel b { font-family: var(--num); font-size: 24px; color: var(--teal-dark); display: block; }
.hours-cta .tel small { font-size: 13px; color: var(--ink-2); }
@media (min-width: 561px) { table.hours thead th:first-child { width: 132px; } table.hours th[scope="row"] { width: 132px; padding-left: 14px; } table.hours th[scope="row"] small { display: inline; margin-left: 8px; font-size: 13.5px; } table.hours td { font-size: 19px; } table.hours thead th { font-size: 15px; } }

/* ---------- お知らせ ---------- */
.news .list { display: grid; gap: 12px; }
.news .item { background: #fff; border-radius: var(--r); padding: 20px 24px; display: grid; grid-template-columns: 108px 128px 1fr; gap: 6px 18px; align-items: center; border: 1px solid var(--line); }
.news .item time { font-family: var(--num); font-size: 14px; color: var(--ink-2); }
.news .item p { font-size: 16px; font-weight: 500; }
@media (max-width: 720px) { .news .item { grid-template-columns: auto 1fr; } .news .item p { grid-column: 1 / -1; } }

/* ---------- 特長 ---------- */
.feats .card { background: #fff; }
.feats .card h3 { font-size: 19px; margin-top: 16px; }
.feats .card p { font-size: 15px; color: var(--ink-2); margin-top: 10px; }

/* ---------- 診療内容 ---------- */
.menus .card { display: grid; grid-template-rows: auto auto auto 1fr; }
.menus .card h3 { font-size: 21px; margin-top: 14px; }
.menus .card > p { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.menus dl { margin: 18px 0 0; border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.menus dt { font-size: 13px; font-weight: 700; color: var(--teal-ink); }
.menus dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 手順（初めての方へ） ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border-radius: var(--r); padding: 26px 24px; position: relative; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-family: var(--num); font-weight: 600; font-size: 19px; }
.step h3 { font-size: 18px; margin-top: 14px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 940px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.bring { background: #fff; border-radius: var(--r); padding: 26px 26px 28px; margin-top: 20px; }
.bring h3 { font-size: 18px; }
.bring ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.bring li { font-size: 14.5px; background: var(--t1); color: var(--ink); padding: 6px 16px; border-radius: 999px; }

/* ---------- 医師・スタッフ ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.person { background: #fff; border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: 230px 1fr; }
.person .ph { background: var(--t1); }
.person .ph img { height: 100%; width: 100%; object-fit: cover; min-height: 220px; }
.person .in { padding: 24px 26px 26px; }
.person .role { font-size: 13px; font-weight: 700; color: var(--teal-ink); }
.person h3 { font-size: 21px; margin-top: 4px; }
.person h3 span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; font-family: var(--num); margin-left: 8px; letter-spacing: .04em; }
.person .spec { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.person p { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }
.person dl { margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; }
.person dt { font-weight: 700; color: var(--teal-ink); font-size: 12.5px; }
.person dd { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 1040px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person .ph img { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- 院内の写真 ---------- */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.photos figure { margin: 0; }
.photos img { border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.photos figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) { .photos { grid-template-columns: 1fr; } }

/* ---------- アクセス ---------- */
.access .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.access .map { background: var(--t1); border: 2px dashed var(--teal); border-radius: var(--r-lg); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--teal-ink); }
.access .map svg { width: 46px; height: 46px; }
.access .map p { font-size: 14.5px; margin-top: 10px; color: var(--ink-2); }
.access dl { margin: 0; display: grid; gap: 0; }
.access dt { font-size: 13px; font-weight: 700; color: var(--teal-ink); padding-top: 16px; }
.access dd { margin: 4px 0 0; font-size: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.access dd small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 860px) { .access .grid { grid-template-columns: 1fr; } }

/* ---------- 予約の帯 ---------- */
.cta-band { background: linear-gradient(120deg, #0f4840, var(--teal-dark) 55%, var(--teal-deep)); color: #fff; padding: clamp(48px, 6.5vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; background: rgba(255,255,255,.07); border-radius: 58% 42% 40% 60% / 50% 46% 54% 50%; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; }
.cta-band p { margin-top: 12px; color: #f2fbf9; font-size: 16px; }
.cta-band .btns { display: grid; gap: 12px; }
.cta-band .tel { text-align: center; }
.cta-band .tel b { font-family: var(--num); font-size: 30px; font-weight: 600; display: block; letter-spacing: .02em; }
.cta-band .tel small { display: block; font-size: 13px; color: #f2fbf9; margin-top: 4px; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.footer { background: #14312d; color: #c3d8d4; padding: 52px 0 32px; font-size: 14.5px; }
.footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer .logo .name { color: #fff; }
.footer .logo .name small { color: #c3d8d4; }
.footer .logo .mark { background: rgba(255,255,255,.16); }
.footer address { font-style: normal; margin-top: 14px; line-height: 1.9; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer .links a { text-decoration: none; display: block; padding: 7px 0; }
.footer .links a:hover { color: #fff; text-decoration: underline; }
.footer .copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .footer .top { grid-template-columns: 1fr; } }

/* デモ注記 */
.demo-note { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: rgba(20,49,45,.92); color: #fff; font-size: 12.5px; padding: 8px 10px 8px 15px; border-radius: 999px; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(6px); max-width: calc(100% - 24px); }
.demo-note button { border: 0; background: transparent; color: inherit; width: 26px; height: 26px; cursor: pointer; font-size: 17px; line-height: 1; padding: 0; flex: none; }

/* ---------- 医師・スタッフページ ---------- */
.staff-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-roles .card { background: #fff; }
.staff-roles h3 { font-size: 18px; margin-top: 14px; }
.staff-roles .cnt { font-family: var(--num); font-size: 13px; color: var(--teal-ink); font-weight: 600; margin-top: 4px; }
.staff-roles p { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 940px) { .staff-roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .staff-roles { grid-template-columns: 1fr; } }
.policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: pol; }
.policy .p { background: #fff; border-radius: var(--r); padding: 28px 26px; }
.policy .p .n { font-family: var(--num); font-size: 13px; letter-spacing: .16em; color: var(--orange-ink); font-weight: 600; }
.policy .p h3 { font-size: 19px; margin-top: 8px; }
.policy .p p { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 940px) { .policy { grid-template-columns: 1fr; } }
.staff-photo { border-radius: var(--r-lg); aspect-ratio: 2 / 1; object-fit: cover; object-position: center 30%; width: 100%; }

/* ---------- 診療案内ページ ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail:nth-of-type(even) .ph { order: 2; }
.detail .ph img { border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.detail h2 { font-size: clamp(22px, 2.9vw, 32px); margin-top: 8px; font-weight: 900; }
.detail p.lead { margin-top: 14px; color: var(--ink-2); }
.detail ul.chk { margin-top: 18px; display: grid; gap: 9px; font-size: 15.5px; }
.detail ul.chk li { padding-left: 28px; position: relative; }
.detail ul.chk li::before { content: ""; position: absolute; left: 0; top: 10px; width: 15px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); border-radius: 1px; }
.detail .box { margin-top: 18px; padding: 16px 20px; background: var(--t1); border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-2); }
.detail .box b { color: var(--ink); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail:nth-of-type(even) .ph { order: 0; } }

.scroll-hint { display: none; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
@media (max-width: 620px) { .scroll-hint { display: block; } }
.vac-tbl { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }
.vac-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.vac-tbl th, .vac-tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vac-tbl thead th { background: var(--t1); font-weight: 700; color: var(--teal-dark); font-family: var(--sans); white-space: nowrap; }
.vac-tbl tbody tr:last-child th, .vac-tbl tbody tr:last-child td { border-bottom: 0; }
.vac-tbl td small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; font-size: 16px; position: relative; min-height: 44px; font-family: var(--disp); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--num); color: var(--teal-deep); margin-right: 12px; font-weight: 700; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 13px; height: 13px; margin-top: -8px; border-right: 2.5px solid var(--teal-deep); border-bottom: 2.5px solid var(--teal-deep); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .a { padding: 0 22px 20px 50px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 480px) { .faq .a { padding-left: 22px; } }

/* ---------- ご予約ページ ---------- */
.res-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res-steps .s { background: #fff; border-radius: var(--r); padding: 28px 26px; position: relative; }
.res-steps .s .n { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; font-family: var(--num); font-weight: 600; font-size: 19px; }
.res-steps .s h3 { font-size: 19px; margin-top: 14px; }
.res-steps .s p { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 860px) { .res-steps { grid-template-columns: 1fr; } }
.res-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }
.side-box { background: #fff; border-radius: var(--r); padding: 24px 26px; margin-top: 16px; border: 1px solid var(--line); }
.side-box h3 { font-size: 17px; }
.side-box p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.side-box .tel { font-family: var(--num); font-size: 28px; font-weight: 600; color: var(--teal-dark); line-height: 1.3; margin-top: 8px; }
.side-box.warm { background: var(--t2); border-color: #f0e2b5; }
.side-box.warm h3 { color: var(--orange-ink); }

/* フォーム */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px 34px; }
.form .row { display: grid; gap: 6px; margin-bottom: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form label { font-size: 14.5px; font-weight: 700; }
.form label .req { font-size: 11px; color: #fff; background: #b3261e; padding: 3px 7px; border-radius: 5px; margin-left: 8px; vertical-align: middle; font-weight: 700; }
.form label .opt { font-size: 11px; color: var(--ink-2); background: var(--t1); padding: 3px 7px; border-radius: 5px; margin-left: 8px; vertical-align: middle; font-weight: 700; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c9d5d3; border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal-deep); outline-offset: 1px; border-color: var(--teal-deep); }
.form .hint { font-size: 13px; color: var(--ink-2); }
.form .err { display: none; font-size: 13.5px; color: #b3261e; font-weight: 700; }
.form .row.invalid .err { display: block; }
.form .row.invalid input, .form .row.invalid select, .form .row.invalid textarea { border-color: #b3261e; }
.form .radios { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 400; font-size: 15.5px; }
.form .radios label { font-weight: 400; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.form .radios input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--teal-deep); }
.form .btn { width: 100%; margin-top: 8px; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form .note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.form .done { display: none; text-align: center; padding: 30px 0 12px; }
.form.is-done form { display: none; }
.form.is-done .done { display: block; }
.form .done .ic { margin: 0 auto; }
.form .done h3 { font-size: 21px; margin-top: 14px; }
.form .done p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 520px) { .form { padding: 24px 18px 26px; } .form .row2 { grid-template-columns: 1fr; } }

/* 読み上げ専用 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
