:root {
  color-scheme: light;
  --canvas: #f6fbfa;
  --canvas-end: #e7f1ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #142d30;
  --ink-soft: #577073;
  --muted: #8ba0a0;
  --line: rgba(21, 63, 66, 0.13);
  --primary: #2f7774;
  --primary-dark: #153f42;
  --primary-soft: #dcefeb;
  --warm: #c58f62;
  --warm-soft: #f0d9c4;
  --shadow: 0 1px 3px rgba(21, 63, 66, 0.05), 0 16px 44px rgba(21, 63, 66, 0.08);
  --shadow-strong: 0 24px 72px rgba(21, 63, 66, 0.14), 0 8px 22px rgba(21, 63, 66, 0.07);
  --font-sans: "Noto Sans TC", "Manrope", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #102a2d;
  --canvas-end: #183f42;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --ink: #f4fbfa;
  --ink-soft: #bed3d2;
  --muted: #86a3a2;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #8fd0c8;
  --primary-dark: #e7fbf7;
  --primary-soft: rgba(143, 208, 200, 0.14);
  --warm: #d8a579;
  --warm-soft: rgba(216, 165, 121, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.82;
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 119, 116, 0.12), transparent 30rem),
    radial-gradient(circle at 92% 4%, rgba(197, 143, 98, 0.1), transparent 32rem),
    linear-gradient(180deg, var(--canvas) 0%, #fbfefd 46%, var(--canvas-end) 100%);
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(47, 119, 116, 0.18);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.08);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 180ms ease-out, background 180ms ease-out;
}

.desktop-nav a:hover {
  color: var(--primary-dark);
  background: rgba(47, 119, 116, 0.1);
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-self: end;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 36px rgba(47, 119, 116, 0.2);
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-button span::before {
  transform: translateY(-6px);
}

.menu-button span::after {
  transform: translateY(4px);
}

.mobile-nav {
  position: fixed;
  inset: 92px 16px auto;
  z-index: 29;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-strong);
}

.mobile-nav a {
  display: block;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-weight: 800;
}

body.is-menu-open .mobile-nav {
  display: grid;
}

.hero,
.trust-strip,
.services-section,
.doctors-section,
.process-section,
.care-section,
.journal-section,
.faq-section,
.contact-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 58px;
  align-items: center;
  padding: 104px 0 58px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.kicker::before {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.section-heading h2,
.doctor-card h2,
.process-copy h2,
.care-copy h2,
.contact-copy h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10.5em;
  margin: 18px 0 22px;
  font-size: clamp(2.05rem, 4vw, 3.55rem);
  line-height: 1.2;
  text-wrap: balance;
}

.hero-copy > p:not(.kicker),
.section-heading p,
.doctor-card p,
.process-copy p,
.care-copy p,
.journal-grid p,
.faq-list p,
.contact-copy p,
.service-card p,
.timeline p {
  color: var(--ink-soft);
  line-height: 1.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 42px rgba(47, 119, 116, 0.22);
}

.button-secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.68);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 42, 45, 0), rgba(16, 42, 45, 0.48));
  content: "";
}

.hero-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: rgba(16, 42, 45, 0.68);
  backdrop-filter: blur(18px);
}

.hero-visual figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-visual figcaption strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 24px;
  border-left: 1px solid var(--line);
}

.trust-strip div:first-child {
  border-left: 0;
}

.trust-strip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.trust-strip span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.services-section,
.doctors-section,
.process-section,
.care-section,
.journal-section,
.faq-section,
.contact-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.doctor-card h2,
.process-copy h2,
.care-copy h2,
.contact-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.3;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff;
  background: var(--primary-dark);
}

.service-grid,
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.doctor-list article,
.timeline article,
.journal-grid article,
.faq-list details,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.service-card:hover,
.doctor-list article:hover,
.timeline article:hover,
.journal-grid article:hover,
.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 119, 116, 0.28);
  box-shadow: var(--shadow-strong);
}

.service-card,
.journal-grid article {
  min-height: 300px;
  padding: 26px;
}

.service-card small,
.journal-grid span,
.doctor-list span,
.timeline span {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.service-card h3,
.doctor-list h3,
.timeline h3,
.journal-grid h3 {
  margin: 18px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.36rem;
  line-height: 1.42;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-tags span,
.care-tags span {
  border: 1px solid rgba(47, 119, 116, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.doctor-card,
.process-section,
.care-section,
.faq-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 52px;
  align-items: start;
}

.doctor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.doctor-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.doctor-list article,
.timeline article {
  padding: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.care-section {
  align-items: center;
}

.care-section figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.care-section img {
  display: block;
  width: 100%;
  min-height: 600px;
  object-fit: cover;
}

.care-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.55;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface-strong);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

textarea {
  resize: vertical;
}

.form-result {
  min-height: 28px;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .doctor-card,
  .process-section,
  .care-section,
  .faq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .hero {
    padding-top: 84px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    width: min(100% - 24px, 1180px);
    min-height: 62px;
    padding: 8px 8px 8px 12px;
  }

  .brand span {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 138px;
  }

  .hero,
  .trust-strip,
  .services-section,
  .doctors-section,
  .process-section,
  .care-section,
  .journal-section,
  .faq-section,
  .contact-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    gap: 30px;
    padding: 64px 0 42px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 7vw, 2.35rem);
    line-height: 1.28;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 370px;
  }

  .hero-visual figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .trust-strip,
  .service-grid,
  .doctor-list,
  .timeline,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div,
  .trust-strip div:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-strip div:first-child {
    border-top: 0;
  }

  .services-section,
  .doctors-section,
  .process-section,
  .care-section,
  .journal-section,
  .faq-section,
  .contact-section {
    padding: 66px 0;
  }

  .doctor-card,
  .contact-form {
    padding: 22px;
  }

  .care-section img {
    min-height: 360px;
  }

  .section-heading h2,
  .doctor-card h2,
  .process-copy h2,
  .care-copy h2,
  .contact-copy h2 {
    font-size: clamp(1.62rem, 6.4vw, 2.2rem);
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-left: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    max-width: 104px;
  }
}

/* 2026-06-10：作品集展示用 RWD 修正層。 */
.hero,
.doctor-card,
.process-section,
.care-section,
.faq-section,
.contact-section,
.trust-strip,
.service-grid,
.journal-grid,
.timeline,
.doctor-list {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
button,
summary,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.hero h1,
.section-heading h2,
.doctor-card h2,
.process-copy h2,
.care-copy h2,
.contact-copy h2 {
  line-height: 1.32;
}

.trust-strip strong {
  line-height: 1.25;
}

@media (min-width: 1081px) {
  .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  }

  .doctor-card,
  .process-section,
  .care-section,
  .faq-section {
    grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  }

  .contact-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-visual,
  .hero-visual img,
  .care-section img {
    min-height: 300px;
  }
}
