/* 2042 心理諮商所 — 旋鈕 變化4 / 動效3 / 密度3,調性參考島語 */
:root {
  --bg: #fbf8f3;
  --tint: #f6ebe1;
  --tint-2: #efdfd1;
  --fg: #3b3430;
  --dim: #6f645c;
  --line: rgba(59, 52, 48, .12);
  --accent: #3f7a6d;
  --accent-hover: #336559;
  --accent-soft: #e1eeea;
  --peach: #eeb99c;
  --mint: #a9cfc3;
  --line-green: #06c755;
  --shadow: 0 10px 30px rgba(120, 84, 60, .10);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --z-float: 40;
  --z-head: 50;
  --z-nav: 60;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.8 var(--sans);
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .facts a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id], [id] { scroll-margin-top: 96px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }

/* 波浪分隔 */
.wave { display: block; width: 100%; height: clamp(36px, 5vw, 72px); fill: var(--tint); }
.wave-top { transform: scaleY(-1); margin-bottom: -1px; fill: var(--bg); }
.wave-bottom { margin-top: -1px; fill: var(--bg); }
.band.tint .wave-top, .band.tint .wave-bottom { position: absolute; left: 0; right: 0; }
.band.tint .wave-top { top: -1px; }
.band.tint .wave-bottom { bottom: -1px; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 500;
  border: 1px solid var(--accent);
  transition: background-color .25s, transform .2s, box-shadow .25s;
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(63, 122, 109, .25); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); box-shadow: none; }
.link, .more { display: inline-flex; align-items: center; gap: .35em; color: var(--accent); font-weight: 500; }
.link .ico, .more .ico { transition: transform .25s; }
.link:hover .ico, .more:hover .ico { transform: translateX(4px); }

/* 頁首 */
.site-head {
  position: sticky; top: 0; z-index: var(--z-head);
  background: rgba(251, 248, 243, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(120, 84, 60, .06); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .04em;
  color: var(--accent); line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-weight: 500; font-size: 16px; letter-spacing: .2em; }
.brand-text small { font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > ul:first-child a {
  display: block; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.nav > ul:first-child a:hover { background: var(--tint); }
.nav a.on { color: var(--accent); }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--dim); transition: color .2s, background-color .2s;
}
.social a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: var(--z-nav);
    width: min(320px, 86vw); padding: 96px 28px 28px;
    flex-direction: column; align-items: stretch; gap: 24px;
    background: var(--bg); box-shadow: -20px 0 40px rgba(59, 52, 48, .12);
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > ul:first-child { flex-direction: column; align-items: stretch; }
  .nav > ul:first-child a { padding: 12px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; position: relative; z-index: calc(var(--z-nav) + 1);
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent-soft);
  }
  .nav-toggle span:not(.sr) { display: block; width: 18px; height: 2px; background: var(--accent); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* 主視覺:插畫滿版,標題置中在上、四入口圓盤疊在畫面中央(旭立式) */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(251, 248, 243, .85) 0%, rgba(251, 248, 243, .15) 34%, rgba(251, 248, 243, 0) 60%),
    var(--hero) center 62% / cover no-repeat;
}
.hero-blank {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(169, 207, 195, .55), transparent 70%),
    radial-gradient(50% 60% at 20% 90%, rgba(238, 185, 156, .45), transparent 70%),
    var(--bg);
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  min-height: min(calc(100dvh - 76px), 900px); padding-top: clamp(32px, 5vh, 56px); padding-bottom: clamp(72px, 10vh, 110px);
}
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: .08em; margin-top: 8px; }
.hero h1 span { display: inline-block; white-space: nowrap; }
.wave-hero { position: absolute; left: 0; right: 0; bottom: -1px; fill: var(--bg); }

.hub {
  position: relative;
  width: clamp(340px, min(38vw, 62dvh), 500px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: rgba(255, 253, 249, .72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.hub-q { position: absolute; inset: 0; transition: background-color .25s; }
/* 六等分扇形,每塊 60°,正上方為第 1 塊,順時針 */
.hub-q1 { clip-path: polygon(50% 50%, 21.13% 0, 78.87% 0); }
.hub-q2 { clip-path: polygon(50% 50%, 78.87% 0, 100% 0, 100% 50%); }
.hub-q3 { clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 78.87% 100%); }
.hub-q4 { clip-path: polygon(50% 50%, 78.87% 100%, 21.13% 100%); }
.hub-q5 { clip-path: polygon(50% 50%, 21.13% 100%, 0 100%, 0 50%); }
.hub-q6 { clip-path: polygon(50% 50%, 0 50%, 0 0, 21.13% 0); }
.hub-q:hover, .hub-q:focus-visible { background: rgba(169, 207, 195, .35); outline: none; }
.hub-label {
  position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  width: 32%; transform: translate(-50%, -50%);
}
.hub-q1 .hub-label { left: 50%; top: 20%; }
.hub-q2 .hub-label { left: 75.5%; top: 35%; }
.hub-q3 .hub-label { left: 75.5%; top: 65%; }
.hub-q4 .hub-label { left: 50%; top: 80%; }
.hub-q5 .hub-label { left: 24.5%; top: 65%; }
.hub-q6 .hub-label { left: 24.5%; top: 35%; }
.hub-label .ico {
  width: 40px; height: 40px; padding: 7px; margin-bottom: 2px;
  border: 1px solid rgba(59, 52, 48, .25); border-radius: 50%; color: var(--accent);
  transition: background-color .25s, color .25s;
}
.hub-q:hover .ico, .hub-q:focus-visible .ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.hub-label b { font-weight: 500; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.hub-label small { font-size: 11.5px; color: var(--dim); line-height: 1.4; }
.hub-soon { font-style: normal; font-size: 11px; line-height: 1; margin-top: 3px; padding: 3px 8px; border-radius: 99px; background: #fbeee4; color: #a25a36; }
.hub-q.is-soon { cursor: default; }
.hub-q.is-soon .ico { color: var(--dim); }
.hub-q.is-soon:hover { background: none; }
.hub-q.is-soon:hover .ico { background: none; color: var(--dim); border-color: rgba(59, 52, 48, .25); }
.hub-lines { position: absolute; inset: 0; pointer-events: none; }
.hub-lines path { stroke: rgba(59, 52, 48, .18); stroke-width: .3; fill: none; }

@media (max-width: 860px) {
  .hero { background:
    linear-gradient(180deg, rgba(251, 248, 243, .7) 0%, rgba(251, 248, 243, .1) 30%, rgba(251, 248, 243, .1) 55%, rgba(251, 248, 243, .95) 72%),
    var(--hero) 50% 0 / auto 62% no-repeat, var(--bg); }
  .hero h1 { font-size: clamp(22px, 6.4vw, 30px); letter-spacing: .04em; }
  .hub-label b { font-size: clamp(14px, 4vw, 16px); letter-spacing: .02em; white-space: nowrap; }
  .hero-blank { background:
    radial-gradient(80% 50% at 80% 10%, rgba(169, 207, 195, .5), transparent 70%),
    radial-gradient(70% 50% at 10% 90%, rgba(238, 185, 156, .4), transparent 70%), var(--bg); }
  .hero-inner { min-height: 0; gap: 0; padding-top: 28px; }
  .hero-copy { min-height: 46vw; margin-bottom: 38vw; }
  .hub {
    justify-self: stretch; width: 100%; aspect-ratio: auto; border-radius: var(--r-lg);
    display: grid; grid-template-columns: 1fr 1fr; overflow: visible; background: transparent; box-shadow: none;
    gap: 12px;
  }
  .hub-q {
    position: static; clip-path: none; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .78); box-shadow: 0 4px 16px rgba(120, 84, 60, .08);
    padding: 18px 10px;
  }
  .hub-label { position: static; transform: none; width: auto; }
  .hub-lines { display: none; }
}

/* 區段 */
.band { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.band.tint { background: var(--tint); padding: clamp(88px, 11vw, 150px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .06em; }
.sec-head h2::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--peach); }

/* 最新消息輪播 */
.carousel { position: relative; }
.slide {
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  animation: fade .6s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide-media {
  display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--tint);
}
.slide-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.slide-illus img { object-fit: cover; }
.slide-media:hover img { transform: scale(1.02); }
.slide-blank { display: grid; place-items: center; background:
  radial-gradient(70% 80% at 30% 30%, rgba(169, 207, 195, .7), transparent 70%),
  radial-gradient(60% 70% at 80% 80%, rgba(238, 185, 156, .6), transparent 70%), var(--tint); }
.slide-blank .ico { width: 72px; height: 72px; color: rgba(63, 122, 109, .55); stroke-width: 1.2; }
.slide-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tag { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.slide-copy h3 { font-size: clamp(20px, 2.2vw, 28px); }
.slide-copy p { color: var(--dim); }
.car-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.car-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; transition: background-color .2s, transform .2s;
}
.car-btn:hover { background: var(--accent-soft); }
.car-btn:active { transform: scale(.96); }
.car-btn.prev .ico { transform: rotate(180deg); }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--tint-2); transition: width .3s, background-color .3s; }
.dots button[aria-selected="true"] { width: 28px; background: var(--accent); }

/* 預約 */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.booking-copy h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 18px; }
.booking-copy > p { max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.cta .btn-ghost { background: #fff; }
.note { font-size: 14px; color: var(--dim); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative;
  display: grid; grid-template-columns: 48px 1fr; column-gap: 16px;
  padding: 18px 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .7);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font-family: var(--serif); font-size: 26px; color: var(--peach); line-height: 1.2;
}
.steps b { font-weight: 500; font-size: 17px; }
.steps span { color: var(--dim); font-size: 15px; }

/* 團隊 */
.team-leads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.lead {
  display: grid; grid-template-columns: clamp(140px, 15vw, 172px) 1fr; align-items: center; gap: 20px;
  padding: 16px; border-radius: var(--r-lg); background: var(--tint);
  transition: background-color .25s;
}
.lead:hover { background: var(--tint-2); }
.lead img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 999px 999px var(--r-md) var(--r-md); }
.lead span { display: flex; flex-direction: column; }
.lead small { color: var(--accent); font-weight: 500; letter-spacing: .12em; }
.lead b { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .1em; }
.lead em { font-style: normal; color: var(--dim); font-size: 14px; }
.team-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 172px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--tint-2) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.team-strip.is-auto { scroll-snap-type: none; }
.team-strip.at-end { -webkit-mask-image: none; mask-image: none; }
.member { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; }
.member .ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 10px;
  border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; background: var(--tint);
}
.member .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.member:hover .ph img { transform: scale(1.04); }
.member .ph img.is-avatar { object-fit: cover; object-position: center 40%; }
.member .ph .ico { width: 48px; height: 48px; color: var(--mint); }
.member b { font-weight: 500; letter-spacing: .1em; }
.member small { color: var(--dim); font-size: 13px; }

/* 影音文章 */
.media-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
/* 欄寬不被影片縮圖列(8 支 × 160px)撐開,縮圖列改在欄內橫向捲動 */
.media-grid > * { min-width: 0; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.video-frame iframe, .video-poster { width: 100%; height: 100%; border: 0; display: block; }
.video-poster { position: relative; padding: 0; background: none; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--accent); transition: transform .25s;
}
.play .ico { width: 32px; height: 32px; margin-left: 4px; }
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 12px; overflow-x: auto; }
.video-list a { display: block; color: inherit; text-decoration: none; text-align: left; font-size: 13px; line-height: 1.5; opacity: .7; transition: opacity .2s; }
.video-list a:hover, .video-list a:focus-visible { opacity: 1; }
.video-list img { border-radius: var(--r-sm); margin-bottom: 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.pod-strip { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; margin-bottom: clamp(24px, 4vw, 40px); padding: 16px 24px 16px 16px; border-radius: var(--r-lg); background: var(--tint); color: inherit; text-decoration: none; transition: box-shadow .25s; }
.pod-strip:hover { box-shadow: var(--shadow); }
.pod-strip img { width: 88px; height: 88px; border-radius: var(--r-md); object-fit: cover; }
.pod-strip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pod-strip-text small { font-size: 12px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.pod-strip-text b { font-size: 18px; font-weight: 500; }
.pod-strip-text span { color: var(--dim); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pod-strip-go { display: inline-flex; align-items: center; gap: .4em; padding: .6em 1.2em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; white-space: nowrap; }
.pod-strip-go .ico { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .pod-strip { grid-template-columns: 64px 1fr; gap: 14px; padding: 12px; }
  .pod-strip img { width: 64px; height: 64px; }
  .pod-strip-text span { -webkit-line-clamp: 2; }
  .pod-strip-go { display: none; }
}
.articles { display: grid; gap: 20px; }
.post { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start; }
.post-img { display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--tint); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post:hover .post-img img { transform: scale(1.05); }
.post h3 { font-size: 18px; margin-bottom: 6px; }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--dim); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post small { display: block; margin-top: 6px; color: var(--accent); font-size: 13px; }
/* 沒有影片時:第一篇放大在左,其餘兩篇疊在右 */
.no-video { grid-template-columns: 1fr; }
.no-video .articles { grid-template-columns: 1.2fr 1fr; align-content: start; align-items: start; column-gap: clamp(24px, 4vw, 48px); }
.no-video .post:first-child { grid-row: span 3; grid-template-columns: 1fr; }
.no-video .post:first-child .post-img { aspect-ratio: 16 / 10; }
.no-video .post:first-child h3 { font-size: 22px; }

/* 交通 */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit-info h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 24px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.facts .ico { color: var(--accent); margin-top: 4px; }
.facts b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ways details { border-top: 1px solid var(--line); }
.ways details:last-child { border-bottom: 1px solid var(--line); }
.ways summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; font-weight: 500;
}
.ways summary::-webkit-details-marker { display: none; }
.ways summary .ico { color: var(--accent); transition: transform .25s; }
.ways details[open] summary .ico { transform: rotate(45deg); }
.ways details p { padding: 0 4px 16px; color: var(--dim); }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint-2); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 頁尾 */
.site-foot { margin-top: 0; }
main:has(> .band.tint:last-child) + .site-foot { background: var(--tint); }
main:has(> .band.tint:last-child) > .band:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.wave-foot { fill: var(--tint-2); margin-bottom: -1px; }
.foot-body { background: var(--tint-2); padding: 40px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.foot-brand p { margin: 16px 0 12px; font-size: 14px; color: var(--dim); line-height: 1.9; }
.foot-brand .social { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sitemap div { display: flex; flex-direction: column; gap: 6px; }
.sitemap h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sitemap a { font-size: 14px; color: var(--dim); transition: color .2s; }
.sitemap a:hover { color: var(--accent); }
.foot-legal {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--dim);
}
.foot-legal a:hover { color: var(--accent); }

/* 浮動按鈕 */
.float-line {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--line-green); color: #fff; font-weight: 500; font-size: 15px;
  box-shadow: 0 8px 24px rgba(6, 120, 60, .3);
  transition: transform .25s, box-shadow .25s;
}
.float-line .ico { width: 26px; height: 26px; }
.float-line:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6, 120, 60, .35); }
.float-line:active { transform: translateY(0); }
.to-top {
  position: fixed; right: 26px; bottom: 84px; z-index: var(--z-float);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--accent); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top .ico { transform: rotate(-90deg); }
.to-top.is-shown { opacity: 1; pointer-events: auto; }

/* 進場 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .slide, .booking-grid, .media-grid, .visit-grid, .foot-grid { grid-template-columns: 1fr; }
  .team-leads { grid-template-columns: 1fr; }
  .no-video .articles { grid-template-columns: 1fr; }
  .no-video .post:first-child { grid-row: auto; }
  .sitemap { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-wrap: wrap; }
  .float-line span { display: none; }
  .float-line { padding: 12px; }
  .to-top { right: 24px; bottom: 80px; }
}
@media (max-width: 480px) {
  .post { grid-template-columns: 96px 1fr; }
  .foot-legal { flex-direction: column; }
}

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

/* ===== 內頁共用 ===== */
.band-tight { padding: clamp(40px, 6vw, 72px) 0; }
.page-head { position: relative; background: var(--tint); padding-top: clamp(20px, 3vw, 36px); }
.page-head .wave-hero { fill: var(--bg); }
.page-head-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head-in.no-illus { grid-template-columns: 1fr; padding-bottom: clamp(56px, 7vw, 88px); }
.page-head h1 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: .06em; margin: 6px 0 14px; }
.page-head .lede { max-width: 32em; }
.page-illus {
  width: 100%; height: auto; max-height: 360px; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
          mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mix-blend-mode: multiply;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--fg); max-width: 22em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { margin-top: 40px; }
.flip { display: inline-flex; transform: scaleX(-1); }
.link:hover .flip .ico { transform: translateX(4px); }
.empty, .placeholder { color: var(--dim); }
.placeholder { display: inline-block; padding: 6px 14px; margin-bottom: 20px; border-radius: var(--r-sm); background: var(--tint); font-size: 14px; }
.note { font-size: 14px; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i { font-style: normal; font-size: 12.5px; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-rev { grid-template-columns: 1fr 1.1fr; align-items: center; }
.split-article { grid-template-columns: minmax(0, 1fr) 320px; }
.h-sec { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }

.prose { max-width: 42em; }
.prose-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(20px, 2vw, 24px); margin: 36px 0 12px; }
.prose > h2:first-child, .prose > .placeholder + h2 { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 0 0 28px; }
.prose figure img { width: 100%; border-radius: var(--r-md); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

.side-box { padding: 22px; border-radius: var(--r-md); background: var(--tint); margin-top: 20px; }
.side-box h3 { font-size: 17px; margin-bottom: 8px; }
.side-box p { font-size: 15px; color: var(--dim); margin-bottom: 14px; }
.side-box a:not(.btn) { color: var(--accent); text-decoration: underline; }
.side-box-lg { margin-top: 0; padding: 28px; }
.side-box .facts { margin-bottom: 20px; }
.sticky-side { position: sticky; top: 100px; }
.btn-line { background: var(--line-green); border-color: var(--line-green); }
.btn-line:hover { background: #05b04b; box-shadow: 0 6px 18px rgba(6, 120, 60, .25); }

.rules { margin: 0 0 1.2em; display: grid; gap: 10px; }
.rules div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 500; color: var(--accent); }
.rules dd { margin: 0; }
.side-box .rules div { grid-template-columns: 3.5em 1fr; font-size: 15px; }

.cta-band { padding: clamp(80px, 10vw, 128px) 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.cta-in p { color: var(--dim); }
.cta-in .cta { margin: 0; }
.cta-in .cta .btn-ghost { background: #fff; }

/* 團隊列表 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 24px; }
.card-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.card-person .ph {
  width: 78%; aspect-ratio: 3 / 4; margin-bottom: 12px; overflow: hidden;
  border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--tint);
}
.card-person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.card-person .ph img.is-avatar { object-position: center 40%; }
.card-person:hover .ph img { transform: scale(1.04); }
.card-person b { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .12em; }
.card-person small { color: var(--dim); font-size: 13px; }
.card-person em { font-style: normal; font-size: 13px; color: var(--fg); margin: 6px 0 8px; line-height: 1.6; }
.card-person .tags { justify-content: center; }
.member-grid li[hidden] { display: none; }

/* 個人頁 */
.person { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.person-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--shadow); background: var(--bg);
}
.person-photo img.is-avatar { object-position: center 40%; }
.person-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.person-name h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); letter-spacing: .14em; }
.person-title { color: var(--dim); margin: 4px 0 20px; }
.person-facts { margin: 0; display: grid; gap: 12px; }
.person-facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; align-items: baseline; }
.person-facts dt { font-size: 14px; font-weight: 500; color: var(--accent); }
.person-facts dd { margin: 0; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab-list button {
  flex: none; padding: 10px 18px; border: 0; background: none; font-weight: 500; color: var(--dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.tab-list button:hover { color: var(--fg); }
.tab-list button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spec-list li { padding: 16px 18px; border-radius: var(--r-md); background: var(--tint); display: flex; flex-direction: column; gap: 4px; }
.spec-list b { font-weight: 500; }
.spec-list span { font-size: 14px; color: var(--dim); }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.bg-grid h2 { font-size: 18px; margin-bottom: 12px; }
.bg-grid ul, .plain-list { list-style: none; padding: 0; margin: 0; }
.bg-grid li, .plain-list li { padding: 8px 0 8px 16px; border-bottom: 1px solid var(--line); position: relative; }
.bg-grid li::before, .plain-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.post-list { display: grid; gap: 24px; }
.post-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.post-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-list-3 .post { grid-template-columns: 1fr; }
.post-list-3 .post-img { aspect-ratio: 16 / 10; }
.post .date { margin-left: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.podcast { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--tint); }
.podcast-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow); }
.podcast-body h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .04em; }
.podcast-body p { margin: 10px 0 20px; color: var(--dim); }
.podcast-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .podcast { grid-template-columns: 1fr; } .podcast-art { width: 160px; } }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-grid p { margin-top: 8px; font-weight: 500; }

/* 預約表單 */
.booking-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.booking-side h2 { font-size: 20px; margin-bottom: 14px; }
.steps-compact li { padding: 12px 14px; grid-template-columns: 36px 1fr; background: var(--tint); }
.steps-compact li::before { font-size: 20px; }
.steps-compact b { font-size: 15px; }
.steps-compact span { font-size: 13.5px; }
.form { display: grid; gap: 28px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.form legend { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 14px; padding: 0; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field .label { font-weight: 500; font-size: 15px; }
.req { margin-left: 8px; font-size: 12px; font-weight: 500; color: #b4553a; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 11px 14px; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid rgba(59, 52, 48, .2); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 122, 109, .15); }
.form [aria-invalid="true"] { border-color: #b4553a; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(59, 52, 48, .2); background: var(--bg); font-size: 15px; font-weight: 400;
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice:hover > span { border-color: var(--accent); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice > span { border-color: #b4553a; }
.choice-consent { align-items: flex-start; gap: 10px; }
.choice-consent input { position: static; opacity: 1; width: 18px; height: 18px; margin-top: 5px; accent-color: var(--accent); flex: none; }
.choice-consent > span { padding: 0; border: 0; background: none; font-size: 14.5px; }
.choice-consent:hover > span { border: 0; }
.choice-consent input:checked + span { background: none; color: inherit; }
.choice-consent a { color: var(--accent); text-decoration: underline; }
.field-error { color: #b4553a; font-size: 14px; }
.hint { font-size: 13.5px; color: var(--dim); }
.form-alert { padding: 12px 16px; border-radius: var(--r-sm); background: #fbeae4; color: #8a3c26; font-weight: 500; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn { padding: .9em 2.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 諮商所介紹 */
.photo-stack { margin: 0; display: grid; grid-template-columns: 1fr .7fr; gap: 14px; align-items: end; }
.photo-stack img { border-radius: var(--r-lg); width: 100%; object-fit: cover; }
.photo-stack img:first-child { aspect-ratio: 4 / 5; }
.photo-stack img:last-child { aspect-ratio: 1; margin-bottom: 40px; }
.photo-single { margin: 0; }
.photo-single img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-illus img { mix-blend-mode: multiply; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: grid; grid-template-columns: 14em 1fr auto; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.svc-list li:first-child { border-top: 1px solid var(--line); }
.svc-list b { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.svc-list span { color: var(--dim); }
.mini-leads { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.mini-leads a { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--tint); transition: background-color .2s; }
.mini-leads a:hover { background: var(--tint-2); }
.mini-leads img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.mini-leads span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 500; }
.mini-leads small { font-size: 12px; color: var(--accent); }

/* 補助方案 */
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.program-card { display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 20px; padding: 16px; border-radius: var(--r-lg); background: var(--tint); transition: background-color .25s; }
.program-card:hover { background: var(--tint-2); }
.program-card img { border-radius: var(--r-md); aspect-ratio: 1; object-fit: cover; }
.program-card span { display: flex; flex-direction: column; gap: 6px; }
.program-card small { color: var(--accent); font-weight: 500; }
.program-card b { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.4; }
.program-card em { font-style: normal; color: var(--dim); font-size: 15px; }
.program-card i { font-style: normal; margin-top: 6px; }
.more-line { margin-top: 28px; }
.figure-row { display: flex; flex-wrap: wrap; gap: 24px; }
.figure-row figure { margin: 0; flex: 1 1 320px; max-width: 560px; }
.figure-row img { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* 課程 */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 28px; }
.course-grid-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.course-card { display: flex; flex-direction: column; gap: 14px; }
.course-img { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--tint); }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-img img { transform: scale(1.03); }
.course-card h3 { font-size: 18px; margin: 8px 0 4px; }
.course-card h3 a:hover { color: var(--accent); }
.course-card .meta { font-size: 14px; color: var(--dim); }
.course-card.is-past .course-img img { filter: saturate(.75); }
.tag-soon { background: #fbeee4; color: #a25a36; }
.tag-past { background: var(--tint); color: var(--dim); }

/* 文章頁 */
.article-head h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 4px 0 14px; }
.article-head .prose-narrow { padding-bottom: clamp(48px, 6vw, 72px); }
.byline { display: flex; flex-wrap: wrap; gap: 16px; color: var(--dim); font-size: 15px; }
.byline a { color: var(--accent); }
.source-note { font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 16px; }
.author-box { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; margin-top: 40px; padding: 18px; border-radius: var(--r-lg); background: var(--tint); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.author-box div { display: flex; flex-direction: column; }
.author-box .link { text-decoration: none; font-size: 14px; }
.prose .author-box a.btn { color: #fff; text-decoration: none; }

@media (max-width: 860px) {
  .page-head-in { grid-template-columns: 1fr; }
  .page-illus { max-height: 220px; order: -1; }
  .split, .split-rev, .split-article, .booking-page, .program-grid, .post-list-2, .post-list-3 { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .booking-page .form { order: -1; }
  .booking-side h2 { margin-top: 8px; }
  .person { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .person-photo { width: min(240px, 70vw); }
  .person-info { width: 100%; }
  .svc-list li { grid-template-columns: 1fr auto; }
  .svc-list span { grid-column: 1 / -1; grid-row: 2; }
  .field-row { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card-person .ph { width: 100%; }
  .card-person b { font-size: 17px; }
  .program-card { grid-template-columns: 1fr; }
  .program-card img { aspect-ratio: 16 / 9; }
  .cta-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .person-facts div, .rules div { grid-template-columns: 1fr; gap: 2px; }
  .author-box { grid-template-columns: 48px 1fr; }
  .author-box img { width: 48px; height: 48px; }
  .author-box .btn { grid-column: 1 / -1; justify-content: center; }
}

/* 404 */
.notfound { min-height: 50dvh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.notfound h1 { font-size: clamp(24px, 3vw, 34px); }
.notfound p:not(.eyebrow) { color: var(--dim); max-width: 32em; }
