/* =========================================================
   益茂中醫診所 RWD — 共用樣式
   參考風格：淡綠白底、白色浮動導覽、分割大圖、明朝體標語
   ========================================================= */

:root {
  --bg: #f8f6f3;
  --bg-sky: #f3ece8;
  --paper: #ffffff;
  --ink: #242424;
  --ink-sub: #6f6f6f;
  --ink-mute: #9a9a9a;
  --line: #e9e2dc;
  --green: #ba1b22;     /* 企業紅（沿用變數名） */
  --green-deep: #8f1419;
  --green-soft: #f8e8e7;
  --wood: #8a6a4a;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --serif: "Noto Serif TC", "Zen Old Mincho", "Hiragino Mincho ProN", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Hiragino Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { 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: 15px;
  line-height: 1.9;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease), opacity .3s var(--ease); }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.6; margin: 0; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--green); color: #fff; padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 16px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

/* ---------- Header（白色浮動圓角導覽列） ---------- */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(12px, 2.4vw, 32px);
  transition: top .4s var(--ease);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0 14px 0 26px;
  box-shadow: 0 2px 24px rgba(60, 30, 25, .05);
}
.is-scrolled .site-header { top: 10px; }
.is-scrolled .site-header__bar { box-shadow: 0 6px 30px rgba(60, 30, 25, .10); }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { width: 200px; height: auto; }
.brand--footer .brand__logo { width: 260px; }

.gnav { display: flex; align-items: center; height: 100%; }
.gnav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); list-style: none; height: 100%; }
.gnav__item { position: relative; height: 100%; display: flex; align-items: center; }
.gnav__link { font-size: 14px; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gnav__link[aria-current="page"], .gnav__item.is-current > .gnav__link { color: var(--green); }
.gnav__plus {
  width: 16px; height: 16px; border-radius: 50%; background: var(--green); position: relative; flex-shrink: 0;
}
.gnav__plus::before, .gnav__plus::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gnav__plus::before { width: 8px; height: 1.5px; }
.gnav__plus::after { width: 1.5px; height: 8px; transition: transform .3s var(--ease); }
.gnav__item:hover .gnav__plus::after, .gnav__item:focus-within .gnav__plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.gnav__sub {
  position: absolute; top: calc(100% - 6px); left: 50%; transform: translate(-50%, 8px);
  min-width: 190px; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(60, 30, 25, .12); padding: 12px 0; list-style: none;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.gnav__item:hover .gnav__sub, .gnav__item:focus-within .gnav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnav__sub a { display: block; padding: 8px 24px; font-size: 13.5px; white-space: nowrap; }
.gnav__sub a::before { content: ""; display: inline-block; width: 8px; height: 1px; background: var(--green); vertical-align: middle; margin-right: 10px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 64px; height: 56px; border-radius: 6px; font-size: 10.5px; letter-spacing: .04em; color: var(--ink-sub);
}
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn:hover { background: var(--green-soft); color: var(--green-deep); }
.icon-btn--accent svg { color: var(--green); }

.menu-toggle { display: none; width: 52px; height: 52px; border-radius: 6px; position: relative; }
.menu-toggle__bar { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .35s; }
.menu-toggle__bar:nth-child(1) { top: 13px; }
.menu-toggle__bar:nth-child(2) { top: 20px; }
.menu-toggle__bar:nth-child(3) { top: 27px; }
.menu-open .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle__label { position: absolute; bottom: 7px; left: 0; right: 0; font-size: 9px; line-height: 1; letter-spacing: .1em; color: var(--ink-sub); }

/* 手機選單 */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--header-h) + 44px) var(--gutter) 40px;
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.drawer__list { list-style: none; border-top: 1px solid var(--line); }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__list > li > a, .drawer__group > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 4px; font-size: 16px; letter-spacing: .12em; text-align: left;
}
.drawer__en { font-family: var(--en); font-size: 13px; color: var(--ink-mute); letter-spacing: .12em; }
.drawer__group > button .gnav__plus { margin-left: 12px; }
.drawer__group.is-open > button .gnav__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.drawer__sub { list-style: none; padding: 0 0 14px 14px; display: none; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a { display: block; padding: 8px 0; font-size: 14.5px; color: var(--ink-sub); }
.drawer__contact { margin-top: 32px; display: grid; gap: 12px; }

/* ---------- Buttons / links ---------- */
.more {
  display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .12em;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
}
.more__arrow {
  width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease);
}
.more__arrow::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: translateX(-1px) rotate(45deg); }
.more:hover .more__arrow, a:hover > .more__arrow { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: 6px; font-size: 15px; letter-spacing: .12em;
  background: var(--green); color: #fff; transition: background .3s var(--ease);
}
.btn:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Section heading ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__en { display: block; font-family: var(--en); font-size: 15px; letter-spacing: .24em; color: var(--green); margin-bottom: 8px; }
.sec-head__title { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); letter-spacing: .18em; }
.sec-head__lead { margin-top: 18px; color: var(--ink-sub); max-width: 640px; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero（首頁分割大圖） ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #1b1b17; }
.hero__slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide figure { margin: 0; overflow: hidden; }
.hero__slide .hero__wide { grid-column: 1 / -1; grid-row: 1 / -1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.hero__copy {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(48px, 9vh, 96px); color: #fff;
}
.hero__catch { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 48px); letter-spacing: .24em; line-height: 1.7; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__sub { margin-top: 18px; font-family: var(--serif); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .22em; opacity: .95; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero__dots { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 3px; background: rgba(255,255,255,.4); border-radius: 2px; overflow: hidden; position: relative; }
.hero__dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; animation: dot 6s linear forwards; transform-origin: left; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Concept（天空漸層＋直書標語） ---------- */
.concept { position: relative; background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 100%); overflow: hidden; }
.concept__inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 8vw, 140px); align-items: start; }
.concept__body p { color: var(--ink-sub); line-height: 2.4; letter-spacing: .1em; }
.concept__body p.lead { color: var(--ink); font-family: var(--serif); font-size: clamp(16px, 1.5vw, 19px); line-height: 2.2; }
.vertical {
  writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 50px);
  letter-spacing: .28em; line-height: 1.6; color: var(--ink); white-space: nowrap;
}
.vertical em { font-style: normal; color: var(--green); }

/* ---------- Full-bleed photo band ---------- */
.band { height: clamp(260px, 52vw, 680px); overflow: hidden; position: relative; }
.band img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- Cards（三欄科別） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; }
.card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__title { margin-top: 22px; font-family: var(--serif); font-size: 20px; color: var(--green); letter-spacing: .18em; }
.card__en { font-family: var(--en); font-size: 13px; color: var(--ink-mute); letter-spacing: .16em; display: block; margin-top: 2px; }
.card__text { margin-top: 14px; color: var(--ink-sub); font-size: 14px; line-height: 2; flex: 1; }
.card .more { margin-top: 20px; align-self: flex-start; }

/* ---------- Panel（白色圓角區塊） ---------- */
.panel { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 72px); }
.panel + .panel { margin-top: clamp(20px, 3vw, 36px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split > *, .cta > *, .cards > *, .concept__inner > *, .product-grid > *, .footer__grid > * { min-width: 0; }
.split__img { border-radius: var(--radius); overflow: hidden; }
.split__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.doctor-aside { position: sticky; top: 120px; }
.split__label { font-size: 13px; color: var(--green); letter-spacing: .16em; display: flex; align-items: center; gap: 10px; }
.split__label::before { content: ""; width: 24px; height: 1px; background: var(--green); }
.split__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .16em; line-height: 1.8; margin: 14px 0 24px; }

/* ---------- Special list（特別門診） ---------- */
.specials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.special { background: var(--paper); padding: 34px 28px 30px; display: flex; flex-direction: column; gap: 10px; transition: background .3s var(--ease); }
.special:hover { background: var(--green-soft); color: inherit; }
.special__num { font-family: var(--en); font-size: 28px; color: var(--green); line-height: 1; }
.special__title { font-family: var(--serif); font-size: 18px; letter-spacing: .14em; }
.special__text { font-size: 13.5px; color: var(--ink-sub); line-height: 1.9; flex: 1; }

/* ---------- News ---------- */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 4px; align-items: baseline; }
.news-item time { font-family: var(--en); font-size: 15px; color: var(--green); letter-spacing: .1em; }
.news-item p { margin: 0; }
.news-tag { display: inline-block; font-size: 11px; padding: 1px 10px; border-radius: 20px; background: var(--green-soft); color: var(--green-deep); margin-right: 10px; letter-spacing: .08em; vertical-align: 2px; }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { padding: 6px 18px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; background: var(--paper); transition: all .25s var(--ease); }
.filter button[aria-pressed="true"], .filter button:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.hours th, .hours td { padding: 14px 6px; border-bottom: 1px solid var(--line); }
.hours thead th { font-family: var(--serif); font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--ink); }
.hours tbody th { text-align: left; font-weight: 400; white-space: nowrap; padding-left: 0; }
.hours tbody th small { display: block; font-family: var(--en); font-size: 13px; color: var(--ink-sub); letter-spacing: .08em; }
.hours .on { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.hours .off { color: var(--ink-mute); font-size: 13px; }
.hours-note { margin-top: 18px; font-size: 13.5px; color: var(--wood); line-height: 2; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Info list (dl) ---------- */
.info-dl { display: grid; grid-template-columns: 7em 1fr; border-top: 1px solid var(--line); }
.info-dl dt, .info-dl dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-dl dt { color: var(--green); font-size: 14px; letter-spacing: .14em; }
.info-dl dd { font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.cta__title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .16em; margin-bottom: 18px; }
.cta__tel { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.cta__tel small { font-size: 13px; color: var(--ink-sub); }
.cta__tel a { font-family: var(--en); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: .06em; line-height: 1; }
.cta__img { border-radius: var(--radius); overflow: hidden; }
.cta__img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 110px) 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: clamp(28px, 4vw, 64px); }
.footer__address { margin-top: 24px; font-size: 13.5px; color: var(--ink-sub); line-height: 2; font-style: normal; }
.footer__links { list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.footer__links a::before { content: ""; display: inline-block; width: 8px; height: 1px; background: var(--green); vertical-align: middle; margin-right: 10px; }
.footer__head { font-size: 12px; color: var(--green); letter-spacing: .16em; margin-bottom: 12px; display: block; }
.footer__vertical { font-size: clamp(22px, 2.2vw, 30px); }
.footer__bottom { margin-top: 64px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-mute); letter-spacing: .1em; }
.sns { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #cfc6c0; color: #fff; margin-top: 20px; }
.sns:hover { background: var(--green); color: #fff; }
.sns svg { width: 16px; height: 16px; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 4px 20px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top::before { content: ""; width: 9px; height: 9px; border-top: 1.5px solid var(--green); border-left: 1.5px solid var(--green); transform: translateY(2px) rotate(45deg); }
.is-scrolled .to-top { opacity: 1; visibility: visible; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + 90px) 0 0; }
.page-hero__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.page-hero__en { font-family: var(--en); font-size: 15px; color: var(--green); letter-spacing: .24em; display: block; margin-bottom: 6px; }
.page-hero__title { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); letter-spacing: .2em; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a:hover { color: var(--green); }
.page-hero__img { margin-top: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; height: clamp(180px, 30vw, 400px); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.local-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(28px, 4vw, 44px) 0 0; list-style: none; }
.local-nav a { display: inline-block; padding: 8px 20px; border-radius: 30px; background: var(--paper); font-size: 13.5px; letter-spacing: .1em; border: 1px solid transparent; }
.local-nav a[aria-current="page"] { background: var(--green); color: #fff; }
.local-nav a:hover { border-color: var(--green); }

/* ---------- Prose（內文） ---------- */
.prose { font-size: 15px; line-height: 2.15; }
.prose p { color: #444; }
.prose h2 { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); letter-spacing: .16em; margin: 2.2em 0 1em; padding-left: 18px; border-left: 3px solid var(--green); line-height: 1.5; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; color: var(--green-deep); margin: 1.8em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; color: #444; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; background: var(--green-soft); border-radius: var(--radius); color: var(--green-deep); }
.prose .sign { text-align: right; font-family: var(--serif); color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; }
.prose .note { font-size: 13.5px; color: var(--wood); }

.lead-text { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 2.1; letter-spacing: .1em; color: var(--ink); }

.check-list { list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
.check-list li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; margin: 0 !important; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 12px; height: 7px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery--free button { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: 12.5px; color: var(--ink-sub); margin-top: 8px; letter-spacing: .08em; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 24, 18, .9); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; color: #fff; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 4px; object-fit: contain; background: #000; }
.lightbox figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .1em; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; color: #fff; font-size: 30px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; color: #fff; font-size: 28px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* article index */
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.article-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius-lg); padding: 30px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(60, 30, 25, .08); color: inherit; }
.article-card__cat { font-size: 11.5px; color: var(--green); letter-spacing: .14em; }
.article-card__title { font-family: var(--serif); font-size: 18px; letter-spacing: .1em; margin: 8px 0 12px; line-height: 1.7; }
.article-card__text { font-size: 13.5px; color: var(--ink-sub); line-height: 1.9; flex: 1; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .more { margin-top: 18px; align-self: flex-start; border: 0; padding: 0; font-size: 13px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.pager a { display: flex; flex-direction: column; gap: 4px; max-width: 46%; font-size: 14px; }
.pager a small { font-size: 11px; color: var(--green); letter-spacing: .14em; }
.pager a:last-child { text-align: right; margin-left: auto; }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { background: var(--paper); border-radius: var(--radius-lg); padding: 32px; }
.product__name { font-family: var(--serif); font-size: 21px; letter-spacing: .16em; color: var(--green-deep); }
.product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; list-style: none; }
.product__tags li { font-size: 12.5px; padding: 3px 12px; background: var(--bg); border-radius: 20px; color: #555; }
.product__use { font-size: 13.5px; color: var(--ink-sub); border-top: 1px dashed var(--line); padding-top: 14px; margin: 0; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 16.5px; letter-spacing: .08em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--en); color: var(--green); font-size: 20px; margin-right: 14px; }
.faq summary .gnav__plus { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.faq details[open] summary .gnav__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq .faq__a { padding: 0 0 22px 34px; color: #444; }

/* form */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: start; }
.form label { font-size: 14px; padding-top: 12px; letter-spacing: .1em; }
.form .req { display: inline-block; font-size: 10.5px; color: #fff; background: var(--green); padding: 0 6px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  transition: border-color .25s, background .25s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form textarea { min-height: 180px; resize: vertical; }
.form__error { font-size: 12.5px; color: #c0392b; margin-top: 6px; display: none; }
.form__row.has-error .form__error { display: block; }
.form__row.has-error input, .form__row.has-error textarea { border-color: #c0392b; }
.form__actions { text-align: center; margin-top: 12px; }
.form__status { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--green-soft); color: var(--green-deep); display: none; }
.form__status.is-show { display: block; }
.form__status.is-error { background: #fdecea; color: #a52a1f; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"][disabled] { opacity: .6; cursor: wait; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.bus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bus__item { background: var(--bg); border-radius: var(--radius); padding: 22px 24px; }
.bus__item h3 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.bus__dot { width: 10px; height: 10px; border-radius: 50%; }
.bus__item p { font-size: 13.5px; color: #555; margin: 0; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .gnav, .header-actions .icon-btn:not(.icon-btn--keep) { display: none; }
  .menu-toggle { display: block; }
  .site-header__bar { padding-right: 8px; }
}

@media (max-width: 1024px) {
  .cards--4, .specials { grid-template-columns: repeat(2, 1fr); }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__vertical-wrap { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: 14.5px; }
  .site-header { top: 10px; padding: 0 10px; }
  .site-header__bar { padding-left: 16px; }
  .brand__logo { width: 150px; }
  .brand--footer .brand__logo { width: 220px; }
  .icon-btn--keep { width: 52px; height: 48px; font-size: 9px; }
  .icon-btn--keep svg { width: 22px; height: 22px; }
  .menu-toggle { width: 48px; height: 48px; }
  .menu-toggle__bar { left: 13px; right: 13px; }
  .menu-toggle__bar:nth-child(1) { top: 11px; }
  .menu-toggle__bar:nth-child(2) { top: 17px; }
  .menu-toggle__bar:nth-child(3) { top: 23px; }
  .menu-toggle__label { bottom: 6px; font-size: 8.5px; }
  .menu-open .menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero__slide { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero__copy { right: var(--gutter); bottom: 72px; }
  .hero__dots { left: var(--gutter); right: auto; bottom: 36px; }
  .hero__scroll { display: none; }

  .concept__inner { grid-template-columns: 1fr; }
  .concept__inner .vertical { order: -1; justify-self: end; font-size: 30px; }

  .cards, .cards--2, .cards--4, .split, .cta, .product-grid, .bus { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .doctor-aside { position: static; }
  .specials { grid-template-columns: 1fr; }
  .special { padding: 26px 22px; }
  .article-list { grid-template-columns: 1fr; }
  .gallery, .gallery--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery--2 { grid-template-columns: 1fr; }

  .news-item { grid-template-columns: 1fr; gap: 2px; padding: 18px 2px; }
  .info-dl { grid-template-columns: 1fr; }
  .info-dl dt { border-bottom: 0; padding-bottom: 0; }
  .info-dl dd { padding-top: 4px; }
  .form__row { grid-template-columns: 1fr; gap: 6px; }
  .form label { padding-top: 0; }

  .hours { font-size: 13px; table-layout: fixed; }
  .hours th, .hours td { padding: 12px 0; }
  .hours thead th:first-child { width: 76px; }
  .hours tbody th { font-size: 13px; }
  .hours tbody th small { font-size: 11px; letter-spacing: 0; }
  .hours .on { width: 10px; height: 10px; }
  .hours .off { font-size: 12px; }
  .panel { padding: 28px 20px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer__bottom { margin-top: 40px; }
  .page-hero { padding-top: calc(var(--header-h) + 56px); }
  .pager a { max-width: 100%; }
  .panel { border-radius: var(--radius); }
}

/* 門診時間圖（可下載） */
.hours-card { text-align: center; }
.hours-card__title { font-family: var(--serif); font-size: 22px; letter-spacing: .16em; }
.hours-card__lead { margin-top: 8px; color: var(--ink-sub); font-size: 14px; }
.hours-card img { display: block; width: 100%; height: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; }
.hours-card__actions { margin-top: 24px; }
.hours-card__note { margin-top: 12px; color: var(--ink-sub); font-size: 12.5px; }
