:root {
  --brand-teal: #5bb1ac;
  --brand-secondary: #329196;
  --brand-primary: #32b382;
  --brand-bg: #ebe1d7;
  --brand-cream: #f7f3ef;
  --brand-text: #707070;
  --brand-mint: #edf7f4;
  --gold-color: #73695F;
  --gold-color: #707070;
  --site-max: 1920px;
  --header-h: 5.5rem;
  --font: "MiSans ExtraLight", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
  --font-light: "MiSans Light", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
  --font-regular: "MiSans", "MiSans Regular", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
  /* 桌面 MiSans ExtraLight 由 300 改 400；手機亦維持 400 */
  --font-weight: 400;
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--font);
  font-weight: var(--font-weight);
  color: var(--brand-text);
  font-size: 20px;
  line-height: 28px;
}


.typo-title,
main h1 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--brand-secondary);
}
.typo-subtitle,
main h2 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--gold-color);
}
.typo-lead {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 40px !important;
  line-height: 1.75;
  color: var(--brand-text);
}
.typo-body,
.intro-section,
.intro-section p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.3;
  color: var(--gold-color);
}
.typo-label {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 24px;
  line-height: 1.4;
  color: var(--gold-color);
}
.typo-label-green {
  color: #329196;
}
.typo-body{
  color: var(--gold-color);
}
.typo-note {
  font-family: var(--font-light);
  font-weight: var(--font-weight);
  font-size: 14px;
  line-height: 1.75;
  color: var(--gold-color);
}
/* 覆寫 Tailwind .font-light（300），前台統一跟 --font-weight */
main .font-light {
  font-weight: var(--font-weight);
}
.bg-article{
  background: #e9f6f2;
  border-radius: 0px 0px 100px 0px;
}
.bg-article .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 2); /* 依實際 line-height 調整 */
  line-height: 1.55;
  margin-bottom: 1rem;
}
.text-sub{
  color:#32B382;
}
.bg-green{
  background-color: #8ED0BC;
}
/* 免責條款／私隱政策：段內段落間距＝一行空白（desktop 35px／mobile 22.4px）；章節間距 3rem */
.policy-body p + p,
.policy-body ul + p,
.policy-body ol + p {
  margin-top: 1.75em;
}
.policy-body > div + div {
  margin-top: 3rem;
}
/* 私隱政策／免責條款設計排版：內文灰色（非 teal）、標題與內文同款、清單平排 */
main .policy-body p,
main .policy-body li {
  color: #707070;
  font-weight: 400;
}
main .policy-body .policy-heading {
  margin-bottom: 1.75em;
}
main .policy-body .policy-list {
  margin-top: 1.75em;
}
main .policy-body ul.policy-list,
main .policy-body ol.policy-list {
  list-style: none;
  padding: 0;
}
@media (max-width: 768px) {
  .policy-body p + p,
  .policy-body ul + p,
  .policy-body ol + p {
    margin-top: 1.4em;
  }
  main .policy-body .policy-heading {
    margin-bottom: 1.4em;
  }
  main .policy-body .policy-list {
    margin-top: 1.4em;
  }
}
.text-brand-teal{
  color: var(--gold-color) !important;
  font-size: 15px;
}
.text-brand-teal:hover{
  color: var(--brand-secondary) !important;
}
.form-subtitle__em {
  color: #329196;
  font-size: 28px;
}
@media (max-width:768px) {
  :root {
    --font: "MiSans Light", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
  }
  body,
  body.font-sans {
    font-family: "MiSans Light", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
  }
  .bg-article .card-title {
    display: -webkit-box;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: hidden;
    min-height: unset;
    line-height: 1.55;
    margin-bottom: 0.5rem;
  }
  /* 皮膚醫論列表：手機標題行距跟營養護膚內文（1.4） */
  .journal-list .bg-article .card-title {
    line-height: 1.4;
  }

  .text-more{
    font-size: 13px !important;
  }
  .typo-title,
  main h1,
  .typo-subtitle,
  main h2 {
    font-size: 28px;
    font-weight: 400;
  }
  .typo-lead {
    font-size: 20px;
    font-weight: 400;
  }
  .typo-body,
  .intro-section,
  .intro-section p {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
  }
  .typo-label {
    font-size: 20px;
    line-height: 22px;
    font-weight: 400;
  }
  .typo-note {
    font-size: 12px;
    font-weight: 400;
  }
  .form-subtitle__em {
      font-size: 24px;
  }
}

.bg-brand-soft {
    background-color: #e9f6f2;
}

.bg-brand-cream {
  --register-curve-h: clamp(50px, 15.78125vw, 303px);
  width: 100%;
  background-color: #f7f3ef !important;
  position: relative;
  overflow: visible;
}
.bg-brand-cream::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-0.99 * var(--register-curve-h));
  height: var(--register-curve-h);
  background-color: #f7f3ef;
  -webkit-mask-image: url(../images/desktop/registerBGup.svg);
  mask-image: url(../images/desktop/registerBGup.svg);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.bg-brand-cream::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-0.99 * var(--register-curve-h));
  height: var(--register-curve-h);
  background-color: #f7f3ef;
  -webkit-mask-image: url(../images/desktop/registerBGdown.svg);
  mask-image: url(../images/desktop/registerBGdown.svg);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.register-form.bg-brand-cream > * {
  position: relative;
  z-index: 1;
}

/* Override common Tailwind text utilities used in pages
   字級統一：內文段落 20px（桌面）／16px（手機 ≤768px），與 body 預設一致 */
main .text-sm,
main .text-base {
  font-size: 20px;
  line-height: 1.75;
  font-weight: 200;
  color: #329196;
}
main .text-xs{
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

main .text-lg,
main .text-xl,
main .text-2xl,
main .text-3xl,
main .text-4xl {
  font-family: var(--font);
  font-weight: 400;
}
main h1.text-3xl,
main h1.text-4xl,
main h2.text-2xl,
main h2.text-3xl,
main h2.text-xl {
  font-size: 40px;
  line-height: 1.3;
  color: var(--brand-secondary);
}
@media (max-width: 1024px) {
  main .text-xs {
    font-size: 13px;
    line-height: 20px;
  }
  main h1.text-3xl,
  main h1.text-4xl,
  main h2.text-2xl,
  main h2.text-3xl,
  main h2.text-xl {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  main .text-sm,
  main .text-base {
    font-size: 16px;
    line-height: 1.4;
    color: #329196;
    font-weight: 400;
  }
}

/* ---- Header overlays main banner ---- */
/* 防禦：drawer 收起不可只靠 Tailwind 的 .hidden — 若 tw.css 載入失敗／快取舊版，
   #site-nav 會常開，header LOGO + drawer LOGO 同時出現（「2 個 LOGO」問題） */
#site-nav.hidden {
  display: none !important;
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
}
/* LOGO 獨立在非 fixed 層，跟頁面一起捲動 */
.site-header__logo-layer {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}
.site-header__inner {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  max-width: var(--site-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
@media (min-width: 768px) {
  .site-header__logo-layer,
  .site-header__inner {
    padding: 1.75rem 3rem 0;
  }
}
@media (min-width: 1280px) {
  .site-header__logo-layer,
  .site-header__inner {
    padding: 2.25rem 4.5rem 0;
  }
}
.site-header__menu-btn,
.site-header__logo {
  pointer-events: auto;
}
.site-header__menu-btn {
  color: var(--brand-teal);
  padding: 0.25rem;
  line-height: 0;
  margin-left: auto;
}
.site-header__logo {
  position: relative;
  transform: none;
  text-align: left;
}
.site-header__logo-img {
  height: 4.75rem;
  width: auto;
  margin: 0;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .site-header__logo {
    position: absolute;
    left: 30%;
    transform: translateX(-50%);
    text-align: center;
  }
  .site-header__menu-btn {
    margin-left: 0;
  }
  .site-header__logo-img {
    height: 4.5rem;
    margin: 0 auto;
  }
}
@media (min-width: 1280px) {
  .site-header__logo-img {
    height: 16rem;
  }
}
.site-header__page-title {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.35rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #349297;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .site-header__page-title {
    display: none;
  }
}
@media (min-width: 768px) {
  .site-header__page-title {
    margin-top: 3.15rem;
    font-size: clamp(26px, 2.6vw, 50px);
  }
}
.site-header__spacer {
  width: 1.75rem;
}

/* 向下捲動時只固定 MENU 列；LOGO 留在原層跟頁面捲走，不再縮細 */
body.site-scrolled .site-header__inner {
  align-items: center;
  padding-top: .65rem;
  padding-bottom: .65rem;
  background-color: rgba(229, 242, 238, .0);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(50, 145, 150, .08);
}
@media (max-width: 767px) {
  body.site-scrolled .site-header__inner {
    padding: .5rem 1.25rem;
  }
}

/* ---- Full-bleed 1920 main banner ---- */
.main-banner {
  position: relative;
  width: 100%;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  aspect-ratio: 1920 / 750;
  /*background: #eef8f4;*/
}
.main-banner--short {
  aspect-ratio: 1920 / 450;
}
.main-banner picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.main-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
}
@media (max-width: 767px) {
  .main-banner {
    aspect-ratio: 1 / 1;
  }
  .main-banner--home {
    aspect-ratio: 1080 / 1350;
  }
  .main-banner--short {
    aspect-ratio: 1080 / 480;
  }
}
.main-banner__title {
  position: absolute;
  top: 3.75rem;
  right: 1.25rem;
  left: auto;
  z-index: 2;
  margin: 0;
  transform: none;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #349297;
  white-space: nowrap;
  pointer-events: none;
}
@media (min-width: 768px) {
  .main-banner__title--left {
    display: none;
  }
  .main-banner__title--right {
    top: 53%;
    right: 24.8%;
    font-size: clamp(28px, 2.7vw, 52px);
    transform: translateY(-50%);
  }
}
@media (max-width: 767px) {
  .main-banner__title {
    top: 4.75rem;
	font-size: 36px;
  }
  .site-header__logo-img {
    height: 6.75rem;
  }
}
.page-shell {
  position: relative;
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
}

.writing-vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
}

/* ---- Form fields (280 landing style) ---- */
.field-pill,
.register-form input[type="text"],.register-form input[type="tel"],.register-form input[type="date"],.register-form input[type="time"],
.register-form select {
  width: 100%;
  border: 1px solid #369999;
  border-radius: 15px;
  padding: 10px 25px;
  outline: none;
  color: #000;
  background: #f7f3ef;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  appearance: none;
  -webkit-appearance: none;
}
.register-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='%23369999' d='M8 10L0 0h16z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 50px;
  cursor: pointer;
}
.field-pill:focus,
.register-form input:focus,
.register-form select:focus {
  border-color: #369999;
  box-shadow: 0 0 0 3px rgba(54, 153, 153, 0.12);
}
.field-pill::placeholder,
.register-form input::placeholder {
  color: #000;
  font-weight: 200;
}
@media (max-width: 1024px) {
  .field-pill,
  .register-form input[type="text"],
  .register-form input[type="tel"],
  .register-form input[type="date"],
  .register-form input[type="time"],
  .register-form select {
    padding: 8px 18px;
    font-size: 17px;
    border-radius: 12px;
  }
}

/* ---- 自訂療程下拉：一行療程名、一行備註（原生 select 隱藏，保留提交功能） ---- */
.cs-wrap { position: relative; }
.cs-wrap .cs-native { display: none; }
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #369999;
  border-radius: 15px;
  padding: 15px 50px 15px 25px;
  outline: none;
  color: #000;
  background-color: #f7f3ef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='%23369999' d='M8 10L0 0h16z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  cursor: pointer;
  text-align: left;
}
.cs-trigger:focus { border-color: #369999; box-shadow: 0 0 0 3px rgba(54, 153, 153, 0.12); }
.cs-trigger .cs-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 打開時箭嘴保持原樣（不再換成窄長版） */
.cs-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: .35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #369999;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  max-height: 300px;
  overflow-y: auto;
}
.cs-option {
  padding: .55rem 1.1rem;
  cursor: pointer;
}
.cs-option:hover,
.cs-option.is-selected { background: #e9f4f2; }
.cs-option__name {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #000;
}
.cs-option__desc {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: #9a9a9a;
  margin-top: .15rem;
}
.cs-option--placeholder {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  color: #000;
}
@media (max-width: 1024px) {
  .cs-trigger {
    padding: 8px 40px 8px 18px;
    font-size: 17px;
    border-radius: 12px;
  }
}
@media (max-width: 767px) {
  .cs-trigger {
    border-radius: 999px;
    background-color: #fff;
    padding: 12px 40px 12px 22px;
  }
  .cs-option__name { font-size: 15px; }
  .cs-option__desc { font-size: 13px; color: #707070;}
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #369999;
  color: #fff;
  border-radius: 99px;
  padding: 10px 100px;
  font-family: var(--font-light);
  font-weight: var(--font-weight);
  font-size: 22px;
  line-height: 28px;
  transition: opacity .2s ease, transform .2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
@media (max-width: 1024px) {
  .btn-primary {
    width: 100%;
    padding: 12px 40px;
    font-size: 20px;
    line-height: 24px;
  }

  #regist{
    width: 80%;
  }
}

.form-title {
  text-align: center;
  font-family: var(--font);
  font-size: 40px;
  font-weight: var(--font-weight);
  color: var(--brand-secondary);
  margin-bottom: 0;
}
.form-subtitle {
  text-align: center;
  font-family: var(--font);
  font-size: 20px;
  font-weight: var(--font-weight);
  color: var(--brand-text);
  margin-bottom: 32px;
  margin-top: 5px;
}
@media (max-width: 768px) {
  .form-title { font-size: 24px; }
  .form-subtitle { font-size: 17px; margin-bottom: 24px; }
}

.section-curve-top {
  border-top-left-radius: 50% 40px;
  border-top-right-radius: 50% 40px;
}
@media (min-width: 768px) {
  .section-curve-top {
    border-top-left-radius: 50% 80px;
    border-top-right-radius: 50% 80px;
  }
}

.card-soft {
  background: #f3ebe3;
  border-radius: 88px;
}
@media (min-width: 768px) {
  .card-soft {
    background: url(/assets/images/desktop/greybg.png) no-repeat center / 100% 100%;
    border-radius: 0;
  }
}

.card-soft-sub {
  background: #f3ebe3;
  border-radius: 88px;
}

.home-intro__lead {
  color: #32B382 !important;
}

.home-treatments__card {
  overflow: hidden;
}
.home-treatments__deco {
  position: absolute;
  bottom: -45px;
  right: 0px;
  width: 65px;
  pointer-events: none;
}
.home-treatments__leaf {
  display: none;
}
@media (max-width: 767px) {
  .home-treatments__leaf {
    display: block;
    position: absolute;
    bottom: 0px;
    left: 10px;
    width: 80px;
    pointer-events: none;
    z-index: 1;
  }
}
@media (min-width: 768px) {
  .home-treatments__deco { display: none; }
}

.treatments-carousel {
  position: relative;
  margin: 0 -1.5rem 8px;
}
.treatments-carousel__viewport {
  overflow: hidden;
  position: relative;
}
.treatments-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
}
.treatments-carousel[data-peek] .carousel-track {
  display: block;
  position: relative;
  transform: none !important;
}
.treatments-carousel[data-peek] .carousel-track > * {
  flex: none;
  width: 62%;
}
.treatments-carousel[data-peek] .treatments-carousel__slide {
  position: absolute;
  top: 0;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  /* 以中心為基準；非活躍 slide 沿弧線轉出，仿 cosmax treatment wheel */
  transform: translateX(-50%);
  transition: transform 0.55s cubic-bezier(.25, .6, .3, 1), opacity 0.55s ease, visibility 0s linear 0.55s;
}
.treatments-carousel[data-peek] .treatments-carousel__slide.is-active {
  position: relative;
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transition: transform 0.55s cubic-bezier(.25, .6, .3, 1), opacity 0.55s ease, visibility 0s;
}
/* 先旋轉再位移（位移沿已旋轉的軸），做出沿輪弧滑動的效果 */
.treatments-carousel[data-peek] .treatments-carousel__slide.is-prev {
  transform: translateX(-50%) rotate(-14deg) translateX(-96%) scale(.9);
  opacity: 0.45;
  z-index: 1;
  transition: transform 0.55s cubic-bezier(.25, .6, .3, 1), opacity 0.55s ease, visibility 0s;
}
.treatments-carousel[data-peek] .treatments-carousel__slide.is-next {
  transform: translateX(-50%) rotate(14deg) translateX(96%) scale(.9);
  opacity: 0.45;
  z-index: 1;
  transition: transform 0.55s cubic-bezier(.25, .6, .3, 1), opacity 0.55s ease, visibility 0s;
}
.treatments-carousel[data-peek] .treatments-carousel__slide:not(.is-active):not(.is-prev):not(.is-next) {
  opacity: 0;
  visibility: hidden;
}
.treatments-carousel[data-peek] .treatments-carousel__caption {
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.treatments-carousel[data-peek] .treatments-carousel__slide.is-active .treatments-carousel__caption {
  transition: opacity 0.45s ease, visibility 0s;
}
.treatments-carousel[data-peek] .treatments-carousel__slide:not(.is-active) .treatments-carousel__caption {
  opacity: 0;
  visibility: hidden;
}
.treatments-carousel[data-peek] .treatments-carousel__media {
  filter: none;
}
.treatments-carousel[data-peek] .treatments-carousel__slide:not(.is-active) .treatments-carousel__media {
  filter: grayscale(8%) brightness(1.05);
}
.treatments-carousel__btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  line-height: 0;
  cursor: pointer;
  z-index: 4;
}
.treatments-carousel__btn--prev { left: 10%; }
.treatments-carousel__btn--next { right: 10%; }
.treatments-carousel__btn img {
  width: 45px;
  height: auto;
}

/* ---- 手機版「三大核心治療」輪播：依設計稿 — 橢圓相片、兩側淡出、標題下分隔線 ---- */
@media (max-width: 767px) {
  .home-treatments .treatments-carousel[data-peek] .carousel-track > * {
    width: 46%;
  }
  .home-treatments .treatments-carousel[data-peek] .treatments-carousel__slide.is-prev {
    transform: translateX(-50%) rotate(-7deg) translateX(-130%) scale(.94);
    opacity: .32;
  }
  .home-treatments .treatments-carousel[data-peek] .treatments-carousel__slide.is-next {
    transform: translateX(-50%) rotate(7deg) translateX(130%) scale(.94);
    opacity: .32;
  }
  .home-treatments .treatments-carousel[data-peek] .treatments-carousel__slide:not(.is-active) .treatments-carousel__media {
    filter: brightness(1.06) saturate(.85);
  }
  /* 標題下分隔線 + 了解更多 */
  .home-treatments .treatments-carousel__caption .text-more {
    display: inline-block;
    min-width: 12em;
    padding-top: .9rem;
    border-top: 0px solid #cfc4b4;
  }
  .home-treatments .treatments-carousel__btn { top: 40%; }
}


.checkbox-wrap {
  text-align: left;
}
.checkbox-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.checkbox-item input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #369999;
}
@media (max-width: 767px) {
  .checkbox-item input[type="checkbox"] {
    margin-top: 2px;
  }
}
.checkbox-item a {
  text-decoration: underline;
}
.datepicker {
  z-index: 60 !important;
}
@media (max-width: 767px) {
  /* 內容與登記表的距離跟首頁一致，去掉各頁多餘的下邊距 */
  .section-before-form {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .section-before-form > :last-child {
    margin-bottom: 0 !important;
    padding: 0px 10px;
  }
  
  .home-dialectic .section-before-form > :last-child {
    padding: 0px 0px !important;
  }

  .register-form input[type="text"],
  .register-form input[type="tel"],
  .register-form select {
    border-radius: 999px;
    background: #fff;
    padding: 12px 22px;
  }
  .form-title {
    color: #5bb1ac;
  }
  .home-intro {
    padding: 1rem 1.5rem 1.2rem !important;
  }
  .home-intro__lead {
    font-size: 24px !important;
  }
  .home-dialectic .typo-subtitle {
    font-size: 24px;
  }
  .treatments-carousel__caption{
	width: 200%;
    margin-left: -50%;
  }
}

.placeholder-img {
  background: linear-gradient(135deg, #c8e6df, #ebe1d7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #329196;
  font-size: 17px;
}

/* ---- Type table (280 landing style) ---- */
.type-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 32px 48px;
}
.type-table-wrap {
  width: 100%;
  overflow: hidden;
}
.type-table {
  width: 100%;
  border-collapse: collapse;
}
.table-caption-fixed {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 40px;
  color: var(--brand-secondary);
  padding: 10px 0;
  background: #edf7f4;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  margin-bottom: 8px;
  text-align: center;
}
.type-table th,
.type-table td {
  padding: 20px 16px;
  vertical-align: top;
  font-family: var(--font);
  font-weight: var(--font-weight);
}
.type-table th {
  font-size: 28px;
  line-height: 32px;
  letter-spacing: 1px;
  color: var(--brand-primary);
  text-align: center;
  background: #e7f4ef;
}
.type-table td {
  font-size: 20px;
  line-height: 28px;
  color: var(--brand-text);
  background: #e7f4ef;
}
.type-table td:first-child,
.type-table th:first-child {
  font-size: 28px;
  line-height: 36px;
  color: var(--brand-text);
  text-align: center;
  background: #dcf0e9;
  border-right: 8px solid #fff;
}
.type-table th:nth-child(2),
.type-table th:nth-child(4) {
  background: #e9f6f2;
}
.type-table th:nth-child(3) {
  background: #d7efe8;
}
.type-tableblock2 {
  background: #c8e9e0 !important;
  border-right: 8px solid #fff;
  width: 100px;
  padding: 15px;
}
.type-tableblock3 {
  background: #d7efe8 !important;
  border-right: 8px solid #fff;
  padding: 15px;
}
.type-table .thwidth {
  width: 30%;
}
.slider-nav-container {
  display: none;
}
.donly{
  display: block;
}
.monly{
  display: none;
}
@media (max-width: 1024px) {
  .type-section {
    width: 97%;
    padding: 0 0 15px;
    margin-left: 3%;
    overflow: hidden;
  }
  .table-caption-fixed {
    font-size: 28px;
    padding: 10px 25px;
    border-radius: 50px 0 0 0;
    text-align: left;
    margin: 0 -4px 0;
  }
  .type-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .type-table {
    min-width: 800px;
  }
  .type-table th,
  .type-table td {
    padding: 12px 10px;
    font-size: 17px;
    line-height: 22px;
  }
  .type-table th {
    font-size: 24px;
    line-height: 32px;
  }
  .type-table td:first-child,
  .type-table th:first-child {
    font-size: 17px;
    line-height: 22px;
    min-width: 60px;
    border-right: 4px solid #fff;
  }
  .slider-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 16px;
    background: #edf7f4;
    border-radius: 0 0 16px 16px;
    width: 100%;
    margin: 5px 0;
  }
  .slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #bde3d7;
    border-radius: 15px;
  }
  .slider-nav .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #91d0bd;
    border: none;
    padding: 0;
  }
  .slider-nav .dot.active {
    background: #3cb384;
  }
  .slider-arrow {
    border: none;
    font-size: 20px;
    color: #329196;
    cursor: pointer;
    background: #bde3d7;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 1;
  }
  .donly{
    display: none;
  }
  .monly{
    display: block;
  }
}
.nav-color{color:#329196}
#site-nav:not(.hidden) { display: block; }
/* tw.css 目前只有 /90 的 class；這裡直接指定不要用舊色，確保 backdrop 與固定 header 一致 */
.nav-backdrop { background-color: rgba(229, 242, 238, .8); }
.nav-panel { animation: slideIn .28s ease; }
@keyframes slideIn {
  from { transform: translateX(-16px); opacity: .6; }
  to { transform: translateX(0); opacity: 1; }
}

.fade-up {
  animation: fadeUp .6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* cosmax treatment wheel 入場：由 30° 沿弧線轉入並淡入 */
@keyframes treatmentFadeIn {
  from { transform: rotate(30deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.case-section {
  position: relative;
  width: min(920px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
}
.case-section__empty {
  text-align: center;
  color: #707070;
  padding: 3rem 0;
}
.case-section__viewport {
  overflow: hidden;
  margin: 0 5.5rem;
}
.case-nav {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.case-nav img { width: 88px; height: 88px; }
.case-nav--prev { left: 0; }
.case-nav--next { right: 0; }
.case-slide { flex: 0 0 100%; width: 100%; }
.case-card {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 1.75rem 2.5rem 2.6rem;
  border: 2px solid #8ed0bc;
  border-radius: 80px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
}
.case-card__hero {
  margin: 0 auto 0.35rem;
  max-width: 520px;
}
.case-card__hero img {
  display: block;
  width: 100%;
  height: auto;
}
.case-photos {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 0;
  margin: 0.25rem 0 0.5rem;
}
.case-photos__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 16px;
  color: #707070;
  font-weight: 400;
}
.case-photos__side--after .case-photos__label { color: #32b382; }
.case-photos__side img,
.case-photos__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.case-photos__portrait img {
  border: 10px solid #fff;
  box-shadow: 0 0 0 1px #e8f4ef;
  background: #cfeee3;
}
.case-card__name {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 26px;
  line-height: 1.75;
  color: #707070;
}
.case-quote {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: start;
  column-gap: 0.85rem;
  max-width: 36em;
  margin: 0 auto 1.5rem;
}
.case-quote p {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
}
.case-quote__mark {
  width: 52px;
  height: auto;
  margin-top: 0.1rem;
}
.case-quote__mark--l { transform: scaleX(-1); }
.case-card__label {
  margin: 1.15rem 0 0.65rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 16px;
  color: #707070;
  font-weight: 400;
}
.case-pill {
  background: #e8f5f0;
  border-radius: 56px;
  padding: 1.5rem 2rem 1.65rem;
  margin: 0 0.2rem;
}
.case-pill h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 22px;
  line-height: 1.75;
  color: #32b382;
}
.case-pill p {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
}
@media (max-width: 767px) {
  .case-section { width: calc(100% - 0.5rem); margin-top: 1.25rem; }
  .case-section__viewport { margin: 0 42px; }
  .case-nav { width: 40px; height: 40px; top: 22%; }
  .case-nav img { width: 40px; height: 40px; }
  .case-card {
    padding: 1rem 0.85rem 1.4rem;
    border-radius: 40px;
  }
  .case-card__name { font-size: 20px; }
  .case-quote { grid-template-columns: 26px minmax(0, 1fr) 26px; column-gap: 0.3rem; }
  .case-quote p { font-size: 16px; line-height: 1.4; font-weight: 400;}
  .case-quote__mark { width: 26px;margin-top: 10px; }
  .case-pill { padding: 1rem 1.05rem 1.1rem; border-radius: 32px; }
  .case-pill h3 { font-size: 18px; }
  .case-pill p { font-size: 16px; line-height: 1.4; font-weight: 400;}
}

.carousel-track {
  display: flex;
  transition: transform .35s ease;
}
.carousel-track > * {
  flex: 0 0 100%;
  width: 100%;
}

.store-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0 1.5rem;
}
.store-tabs__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 32px;
  line-height: 1.3;
  color: #c8c8c8;
  padding: 0 4px;
}
.store-tabs__btn.is-active,
.store-tabs__btn:hover {
  color: var(--brand-secondary);
}
.store-tabs__sep {
  color: #c8c8c8;
  font-size: 22px;
}
.store-brand-logo {
  display: flex;
  justify-content: center;
  margin: 3.5rem 0 1.25rem;
}
.store-brand-logo img {
  height: 50px;
  width: auto;
}
.store-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #8ed0bc;
}
.store-meta {
  text-align: center;
  margin: 1.25rem 0 1.5rem;
  color: var(--brand-text);
  font-size: 18px;
  line-height: 1.4;
}
.store-meta__addr,
.store-meta__phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 0.35rem 0;
}
.store-meta__phone a {
  color: var(--brand-secondary);
}
.store-ico {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  flex-shrink: 0;
  color: #5bb1ac;
}
.store-hours {
  background: #e7f4ef;
  border-radius: 48px;
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  color: var(--brand-text);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 200;
}
.store-hours h3 {
  font-size: 28px;
  font-weight: 200;
  color: var(--brand-secondary);
  margin-bottom: 0.75rem;
}
.store-note {
  text-align: center;
  font-size: 13px;
  color: #8a8a8a;
  margin-top: 1rem;
}
@media (max-width: 767px) {
  .store-tabs__btn { font-size: 20px; }
  .store-hours { border-radius: 32px; font-size: 16px; line-height: 1.4;font-weight: 400;}
  .store-hours h3 { font-size: 22px; }
  .store-meta { font-size: 16px; font-weight: 400;}
}

.brand-aes-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.brand-aes {
  position: relative;
}
.brand-aes picture {
  display: block;
  line-height: 0;
  /* BG 未載入前先用 aspect-ratio 撐起高度（圖為 1030x2256），
     免得容器塌陷令絕對定位文字全部疊埋一齊 */
  aspect-ratio: 1030 / 2256;
  background: #f4fbf9;
}
.brand-aes__bg {
  display: block;
  width: 100%;
  height: auto;
}
.brand-aes__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brand-aes__title,
.brand-aes__lead,
.brand-aes__point,
.brand-aes__foot {
  position: absolute;
  margin: 0;
  font-family: var(--font);
  font-weight: var(--font-weight);
}
.brand-aes__title {
  top: 4.5%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #32b382;
  font-size: clamp(22px, 5.6vw, 32px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.brand-aes__lead {
  top: 9.5%;
  left: 3%;
  width: 100%;
  text-align: center;
  color: #707070;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}
.brand-aes__point {
  color: #32b382;
  font-size: clamp(20px, 5.2vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.brand-aes__point--1 {
  top: 32%;
  left: 8%;
  width: 48%;
}
.brand-aes__point--2 {
  top: 47%;
  right: 0%;
  width: 35%;
}
.brand-aes__point--3 {
  top: 72%;
  left: 0%;
  width: 44%;
  text-align: right;
}
.brand-aes__foot {
  bottom: 2.5%;
  left: 0%;
  width: 100%;
  text-align: center;
  color: #707070;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}
@media (min-width: 768px) {
  .brand-aes-wrap { max-width: 750px; }
  .brand-aes__title { font-size: 40px; }
  .brand-aes__lead,
  .brand-aes__foot { font-size: 20px; }
  .brand-aes__point { font-size: 40px; }
}

/* ---- Aesthetics / Advantage ---- */
.adv-leaf {
  position: relative;
  overflow: hidden;
  padding: 0 0 0rem;
  background: #fff;
}
.adv-leaf__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 78%;
  z-index: 0;
  pointer-events: none;
}
.adv-leaf__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.adv-panel {
  position: relative;
  z-index: 1;
  width: min(90%, 680px);
  margin: 1.75rem auto 0;
  background: #fff;
  border-radius: 99px 99px 0 0;
  padding: 2.5rem 0rem 1.75rem;
  text-align: center;
}
.adv-panel__title {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(24px, 6.2vw, 40px);
  line-height: 1.4;
  color: #8a8a8a;
  margin: 0 0 0.85rem;
}
.adv-panel__lead {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.75;
  color: #707070;
  max-width: 30em;
  margin: 0 auto 1.35rem;
  padding: 0px 20px;
}
.adv-circles {
  position: relative;
  width: min(90%, 460px);
  margin: 0 auto 1.5rem;
  aspect-ratio: 1;
  container-type: inline-size;
}
.adv-circles__inner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f3ebe3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12% 17% 57%;
  box-sizing: border-box;
  text-align: center;
  z-index: 1;
}
.adv-circles__inner h2 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(22px, 9.2cqw, 40px);
  line-height: 1.2;
  color: #8a8a8a;
  margin: 0 0 0.45rem;
}
.adv-circles__inner p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 4.8cqw, 20px);
  line-height: 1.45;
  color: #707070;
  margin: 0;
}
.adv-circles__outer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44%;
  height: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d2dfde;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14% 10%;
  box-sizing: border-box;
  z-index: 2;
}
.adv-circles__outer h2 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 6.4cqw, 28px);
  line-height: 1.15;
  color: #5bb1ac;
  text-align: center;
  margin: 0 0 0.4rem;
}
.adv-circles__outer p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(10px, 3.2cqw, 13.5px);
  line-height: 1.5;
  color: #5f6d6a;
  text-align: center;
  margin: 0;
}
.adv-rebuild {
  background: transparent;
  margin-top: 0.25rem;
}
.adv-rebuild__title {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(26px, 6.2vw, 40px);
  color: #5bb1ac;
  margin: 0 0 0.85rem;
}
.adv-rebuild__body {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.75;
  color: #707070;
  margin: 0 auto 1.25rem;
  max-width: 24em;
}
.adv-rebuild__lead {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(20px, 5vw, 24px);
  color: #32B382;
  margin: 0;
}
.adv-steps {
  position: relative;
  margin-top: 0rem;
}
.adv-steps__graphic {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto 1.25rem;
}
.adv-steps__bg {
  display: block;
  width: 100%;
  height: auto;
}
.adv-steps__item {
  position: absolute;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.4;
  color: #707070;
  text-align: center;
}
.adv-steps__item p { margin: 0; }
.adv-steps__item--1 {
	top: 17%;
	left: 33%;
	width: 30%;
}
.adv-steps__item--2 {
  top: 65%;
  left: 18%;
  width: 28%;
}
.adv-steps__item--3 {
  top: 65%;
  right: 13%;
  width: 28%;
}
.adv-steps__foot {
  text-align: center;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.75;
  color: #707070;
  max-width: 28em;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .adv-panel__lead,
  .adv-rebuild__body,
  .adv-steps__foot {
    line-height: 1.4;
  }
}

@media (min-width: 768px) {
  .adv-leaf {
    padding-bottom: 0px;
  }
  .adv-leaf__bg {
    height: 92%;
  }
  .adv-leaf__img {
    object-fit: fill;
  }
  .adv-panel {
    width: min(62%, 680px);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 3.5rem;
    border-radius: 169px 169px 0 0;
  }
  .adv-panel__title {
    font-size: 40px;
  }
  .adv-panel__lead {
    font-size: 20px;
  }
  .adv-circles {
    margin-bottom: 0;
  }
  .adv-rebuild {
    padding-top: 2.5rem;
  }
  .adv-rebuild__title {
    font-size: 40px;
  }
  .adv-rebuild__body {
    font-size: 20px;
    margin-bottom: 2rem;
  }
  .adv-rebuild__lead {
    font-size: 24px;
  }
  .adv-steps {
    margin-top: 0px;
  }
  .adv-steps__graphic {
    width: min(100%, 680px);
  }
  .adv-steps__item {
    font-size: 20px;
  }
  .adv-steps__item--1 {
    top: 16%;
    left: 34%;
  }
  .adv-steps__item--2 {
    top: 75%;
    left: 13%;
  }
  .adv-steps__item--3 {
    top: 60%;
    right: 14%;
  }
  .adv-steps__foot {
    font-size: 20px;
  }
}

.admin-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  padding: .55rem .75rem;
}
.admin-label { display: block; font-size: .875rem; margin-bottom: .25rem; color: #374151; }

/* ---- Rosacea treatment page ---- */

.about-intro p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
  margin: 0 auto 1rem;
  max-width: 46em;
}

.rosa-intro,
.rosa-types,
.rosa-const,
.rosa-adv,
.rosa-methods {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 3.5rem;
}
.rosa-intro {
  padding-top: 2.5rem;
  text-align: center;
}
.rosa-intro p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
  margin: 0 auto 1rem;
  max-width: 46em;
}
h2.rosa-title {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
  color: #329196;
  margin: 0 0 0.35rem;
}
h2.rosa-title--muted {
  color: #707070;
  margin-bottom: 2rem;
}
.rosa-types {
  background: #f3ebe3;
  border-radius: 56px;
  padding: 2.75rem 2.5rem 3rem;
}
.rosa-types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.rosa-types__carousel { display: none; }
.rosa-type { text-align: center; }
.rosa-type picture { display: block; }
.rosa-type__img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
}
.rosa-type h3 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 24px;
  line-height: 1.75;
  color: #707070;
  margin: 0 0 0.35rem;
}
.rosa-type p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
  margin: 0;
}
.rosa-const__card {
  background: transparent;
}
.rosa-const__head {
  background: #edf7f4;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  padding: 10px 16px 12px;
  margin-bottom: 8px;
  text-align: center;
}
.rosa-const__head .rosa-title { margin: 0; text-align: inherit; }
.rosa-const__sub {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 28px;
  line-height: 1;
  color: #329196;
}
.rosa-const__scroll { padding: 0; overflow: hidden; }
.rosa-const__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}
.rosa-const__table th,
.rosa-const__table td {
  border: 0;
  padding: 20px 16px;
  vertical-align: top;
  font-family: var(--font);
  font-weight: var(--font-weight);
  background: #e7f4ef;
}
.rosa-const__table thead th {
  background: #e9f6f2;
  color: #32b382;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: 1px;
  text-align: center;
}
.rosa-const__table thead th:nth-child(3) {
  background: #d7efe8;
}
.rosa-const__table thead th:first-child {
  background: #d7efe8;
  border-right: 8px solid #fff;
}
.rosa-const__table thead th:first-child,
.rosa-const__table tbody th {
  width: 110px;
}
.rosa-const__table thead th:not(:first-child),
.rosa-const__table td {
  width: calc((100% - 110px) / 3);
  box-sizing: border-box;
}
.rosa-const__table tbody th {
  padding: 15px;
  background: #c8e9e0;
  color: #707070;
  font-size: 28px;
  line-height: 36px;
  text-align: center;
  border-right: 8px solid #fff;
}
.rosa-const__table tbody tr:nth-child(even) th {
  background: #d7efe8;
}
.rosa-const__table tbody tr:nth-child(odd) td:nth-child(2),
.rosa-const__table tbody tr:nth-child(odd) td:nth-child(4) {
  background: #d7efe8;
}
.rosa-const__table tbody tr:nth-child(odd) td:nth-child(3) {
  background: #c8e9e0;
}
.rosa-const__table tbody tr:nth-child(even) td:nth-child(2),
.rosa-const__table tbody tr:nth-child(even) td:nth-child(4) {
  background: #e9f6f2;
}
.rosa-const__table tbody tr:nth-child(even) td:nth-child(3) {
  background: #d7efe8;
}
.rosa-const__table td {
  color: #707070;
  font-size: 20px;
  line-height: 28px;
  text-align: left;
}
.rosa-const__nav { display: none; }
.rosa-adv { text-align: center; padding-top: 0.5rem; }
.rosa-adv > p {
  max-width: 45em;
  margin: 0.85rem auto 0;
  font-family: var(--font);
  font-weight: 200;
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
}
.rosa-circles {
  position: relative;
  width: min(460px, 92%);
  margin: 2rem auto 0;
  aspect-ratio: 1;
  container-type: inline-size;
}
.rosa-circles__inner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f3efe9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13% 12% 45%;
  box-sizing: border-box;
  text-align: center;
  z-index: 1;
}
.rosa-circles__inner h3 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(22px, 8.6cqw, 40px);
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: #8a8a8a;
  margin: 0 0 0.65rem;
}
.rosa-circles__inner p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(13px, 5cqw, 20px);
  line-height: 1.4;
  color: #707070;
  margin: 0;
}
.rosa-circles__outer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40%;
  height: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c9ddd6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11% 8%;
  box-sizing: border-box;
  z-index: 2;
}
.rosa-circles__outer h3 {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(16px, 6.2cqw, 28px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: #329196;
  text-align: center;
  margin: 0 0 0.4rem;
}
.rosa-circles__outer p {
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(10px, 3.2cqw, 13.5px);
  line-height: 1.5;
  color: #4f625d;
  text-align: center;
  margin: 0;
}
/* 雙圓互換轉場：位置/尺寸/透明度同步過渡（0.7s） */
.adv-circles__inner,
.adv-circles__outer,
.rosa-circles__inner,
.rosa-circles__outer {
  transition:
    left .7s cubic-bezier(.25, .6, .3, 1),
    width .7s cubic-bezier(.25, .6, .3, 1),
    height .7s cubic-bezier(.25, .6, .3, 1),
    padding .7s cubic-bezier(.25, .6, .3, 1),
    transform .7s cubic-bezier(.25, .6, .3, 1),
    opacity .7s ease;
}
.adv-circles h2,
.adv-circles p,
.rosa-circles h3,
.rosa-circles p {
  transition: opacity .25s ease, font-size .7s cubic-bezier(.25, .6, .3, 1);
}
.adv-circles__outer,
.rosa-circles__outer { cursor: pointer; }
.adv-circles__inner,
.rosa-circles__inner { cursor: default; }
/* 切換瞬間：兩球文字先淡出（球體背景全程不動） */
.adv-circles.is-swapping h2,
.adv-circles.is-swapping p,
.rosa-circles.is-swapping h3,
.rosa-circles.is-swapping p {
  opacity: 0;
}
/* 小圓平時只顯示標題；放大成主球後才顯示描述 */
.adv-circles__outer p,
.rosa-circles__outer p {
  display: none;
}
.adv-circles.is-swapped .adv-circles__outer p,
.rosa-circles.is-swapped .rosa-circles__outer p {
  display: block;
}
/* 互換第一段：小圓（綠）放大至主位，全程在最上層 */
.adv-circles.is-swapped .adv-circles__outer {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  padding: 12% 17% 57%;
  z-index: 2;
}
.adv-circles.is-swapped .adv-circles__outer h2 { font-size: clamp(22px, 9.2cqw, 40px); }
.adv-circles.is-swapped .adv-circles__outer p { font-size: clamp(13px, 4.8cqw, 20px); }
/* 第二步：大圓（淺棕）隨後（延遲 0.2s）縮小至原小圓位置並快速淡出 */
.adv-circles.is-swapped .adv-circles__inner {
  left: 50%;
  bottom: 0;
  width: 44%;
  height: 44%;
  transform: translateX(-50%);
  padding: 14% 10%;
  opacity: 0;
  z-index: 1;
  transition:
    left .65s cubic-bezier(.25, .6, .3, 1) .2s,
    width .65s cubic-bezier(.25, .6, .3, 1) .2s,
    height .65s cubic-bezier(.25, .6, .3, 1) .2s,
    padding .65s cubic-bezier(.25, .6, .3, 1) .2s,
    transform .65s cubic-bezier(.25, .6, .3, 1) .2s,
    opacity .15s ease .2s;
}
/* 大圓文字在互換後保持隱藏：描述移出版面（避免佔位把標題推出球外） */
.adv-circles.is-swapped .adv-circles__inner h2 { opacity: 0; }
.adv-circles.is-swapped .adv-circles__inner p { display: none; }
.adv-circles.is-swapped .adv-circles__inner h2 { font-size: clamp(16px, 6.4cqw, 28px); }
/* 定段：大圓一邊縮小一邊淡入成為上方的小球（顯示標題） */
.adv-circles.is-settled .adv-circles__inner {
  opacity: 1;
  z-index: 3;
  cursor: pointer;
  transition:
    left .65s cubic-bezier(.25, .6, .3, 1) .2s,
    width .65s cubic-bezier(.25, .6, .3, 1) .2s,
    height .65s cubic-bezier(.25, .6, .3, 1) .2s,
    padding .65s cubic-bezier(.25, .6, .3, 1) .2s,
    transform .65s cubic-bezier(.25, .6, .3, 1) .2s,
    opacity .45s ease;
}
.adv-circles.is-settled .adv-circles__inner h2 { opacity: 1; }
.rosa-circles.is-swapped .rosa-circles__outer {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  padding: 13% 12% 45%;
  z-index: 2;
}
.rosa-circles.is-swapped .rosa-circles__outer h3 { font-size: clamp(22px, 8.6cqw, 40px); }
.rosa-circles.is-swapped .rosa-circles__outer p { font-size: clamp(13px, 5cqw, 20px); }
.rosa-circles.is-swapped .rosa-circles__inner {
  left: 50%;
  bottom: 0;
  width: 40%;
  height: 40%;
  transform: translateX(-50%);
  padding: 11% 8%;
  opacity: 0;
  z-index: 1;
  transition:
    left .65s cubic-bezier(.25, .6, .3, 1) .2s,
    width .65s cubic-bezier(.25, .6, .3, 1) .2s,
    height .65s cubic-bezier(.25, .6, .3, 1) .2s,
    padding .65s cubic-bezier(.25, .6, .3, 1) .2s,
    transform .65s cubic-bezier(.25, .6, .3, 1) .2s,
    opacity .15s ease .2s;
}
.rosa-circles.is-swapped .rosa-circles__inner h3 { opacity: 0; }
.rosa-circles.is-swapped .rosa-circles__inner p { display: none; }
.rosa-circles.is-swapped .rosa-circles__inner h3 { font-size: clamp(16px, 6.2cqw, 28px); }
.rosa-circles.is-settled .rosa-circles__inner {
  opacity: 1;
  z-index: 3;
  cursor: pointer;
  transition:
    left .65s cubic-bezier(.25, .6, .3, 1) .2s,
    width .65s cubic-bezier(.25, .6, .3, 1) .2s,
    height .65s cubic-bezier(.25, .6, .3, 1) .2s,
    padding .65s cubic-bezier(.25, .6, .3, 1) .2s,
    transform .65s cubic-bezier(.25, .6, .3, 1) .2s,
    opacity .45s ease;
}
.rosa-circles.is-settled .rosa-circles__inner h3 { opacity: 1; }
/* WOW.js 風格 fadeIn：整個區塊進入視窗時淡入（參考 cosmax treatment__main） */
.fade-in-view.motion-ready {
  opacity: 0;
  transform: translateY(16px);
}
.fade-in-view.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .9s ease, transform .9s ease;
}
/* ---- 文字 fade-in 特效（site.js 自動套用 .fx-text；無 JS 時文字正常顯示） ---- */
.fx-text {
  opacity: 0;
  transform: translateY(14px);
}
.fx-text.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fx-text {
    opacity: 1;
    transform: none;
  }
}
.rosa-methods__card {
  background: #e5f3ee;
  border-radius: 90px 90px 28px 28px;
  overflow: hidden;
  padding-top: 2.75rem;
}
.rosa-methods__lead {
  max-width: 40em;
  margin: 0.6rem auto 1.75rem;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 20px;
  line-height: 1.75;
  color: #707070;
}
.rosa-methods__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
/* 只有 3 張圖時收窄整塊，單格闊度與四張版接近 */
.rosa-methods--3 {
  width: min(810px, calc(100% - 2rem));
}
.rosa-methods--3 .rosa-methods__grid {
  grid-template-columns: repeat(3, 1fr);
}
.rosa-methods--5 .rosa-methods__grid {
  grid-template-columns: repeat(5, 1fr);
}
/* 平板／中窄視窗（768–1099px）：固定欄數會把圖片裁成細條，改為自動換行、置中排列 */
@media (min-width: 768px) and (max-width: 1500px) {
	.rosa-methods {
	  margin: 0 auto 8rem;
	}
}

@media (min-width: 768px) and (max-width: 1099px) {
  .rosa-methods__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .rosa-methods--5 .rosa-method,
  .rosa-methods--3 .rosa-method {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
  }
  .rosa-methods:not(.rosa-methods--5):not(.rosa-methods--3) .rosa-method {
    flex: 0 0 50%;
    box-sizing: border-box;
  }
}
.rosa-methods--5 .rosa-method figcaption {
  font-size: 28px;
}
.rosa-method { position: relative; margin: 0; cursor: pointer; }
.rosa-method picture { display: block; }
.rosa-method__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease;
  position: relative;
}
.rosa-method.is-active .rosa-method__expand { max-height: 460px; }
.rosa-method__expand p {
  margin: 0;
  padding: 0.2rem 0.5rem 0.9rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 14px;
  line-height: 1.75;
  color: #707070;
  text-align: center;
}
.rosa-method__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.rosa-method.is-active .rosa-method__hover {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .rosa-method:hover .rosa-method__hover,
  .rosa-method:focus-visible .rosa-method__hover {
    opacity: 1;
  }
}
/* 桌面／平板（≥768px）：說明以浮層顯示於圖片上（hover／click／鍵盤 focus），卡片高度不變 */
@media (min-width: 768px) {
  .rosa-method__expand {
    position: absolute;
    left: -6px;
    right: 0;
    top: 0px;
    bottom: 0px;
    max-height: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 80px 10px 0px;
    transition: opacity .35s ease, visibility 0s linear .35s;
    background: rgba(241, 231, 221, 0.5);
    border-radius: 0px;
    margin: 0 6px;
    width: 100%;
  }
  .rosa-method.is-active .rosa-method__expand {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
  }
  .rosa-method figcaption {
    bottom: auto;
    top: 7.65rem;
    transition: top .35s ease;
  }
  .rosa-method.is-active figcaption { top: 2rem; }
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .rosa-method:hover .rosa-method__expand,
  .rosa-method:focus-visible .rosa-method__expand {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
  }
  .rosa-method:hover figcaption,
  .rosa-method:focus-visible figcaption { top: 2rem; }
}
.rosa-method__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.6;
}
.rosa-method figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7.35rem;
  z-index: 2;
  pointer-events: none;
  text-align: center;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 32px;
  line-height: 1.3;
  color: #329196;
}
@media (max-width: 767px) {
  .rosa-intro,
  .rosa-types,
  .rosa-const,
  .rosa-adv,
  .rosa-methods {
    width: min(100% - 3.5rem, 520px);
    margin-bottom: 2rem;
  }
  .rosa-intro { padding-top: 1.25rem; }
  .rosa-intro p,.about-intro p { font-size: 16px; line-height: 1.4; font-weight: 400;}
  .rosa-type p { font-size: 16px; font-weight: 400;}
  h2.rosa-title { font-size: 26px; font-weight: 400;}
  h2.rosa-title--muted { margin-bottom: 1.25rem; }
  .rosa-types {
    border-radius: 70px;
    padding: 3.2rem 0 3.25rem;
    overflow: hidden;
  }
  .rosa-types__grid { display: none; }
  .rosa-types__carousel { display: block; }
  .rosa-types .treatments-carousel { margin: 0; }
  /* Cosmax wheel：圓圖繞遠處圓心排列，整組 rotateZ 轉動；文字獨立淡入 */
  .rosa-types .rosa-wheel {
    --step: 8deg;
    --rot: 0deg;
    position: absolute;
    inset: 0;
    transform-origin: center 760%;
    transform: rotate(var(--rot));
    transition: transform .6s cubic-bezier(.23, 1.53, .45, 1.02);
  }
  .rosa-types .rosa-wheel-holder {
    position: relative;
    height: 196px;
    margin: 0 0 0.85rem;
    pointer-events: none;
    transform-origin: center 760%;
  }
  .rosa-types .rosa-wheel__item {
    position: absolute;
    top: 0;
    left: 50%;
    width: 196px;
    margin-left: -98px;
    transform-origin: 50% 760%;
    transform: rotate(calc(var(--i) * var(--step)));
    z-index: 1;
  }
  .rosa-types .rosa-wheel__item.is-front { z-index: 2; }
  .rosa-types .rosa-wheel__disc {
    border-radius: 50%;
    overflow: hidden;
    transform: rotate(calc((var(--i) * var(--step) + var(--rot)) * -1)) scale(.58);
    transition: transform .6s cubic-bezier(.23, 1.53, .45, 1.02);
  }
  .rosa-types .rosa-wheel__item.is-front .rosa-wheel__disc {
    transform: rotate(calc((var(--i) * var(--step) + var(--rot)) * -1)) scale(1);
  }
  .rosa-types .rosa-wheel__disc picture { display: block; }
  .rosa-types .rosa-wheel__disc .rosa-type__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
  }
  .rosa-types .rosa-wheel__caption {
    text-align: center;
    min-height: 4.8em;
    opacity: 0;
    transition: opacity .28s ease;
  }
  .rosa-types .rosa-wheel__caption.is-in { opacity: 1; }
  .rosa-types .treatments-carousel__btn {
    top: 98px;
  }
  .rosa-types .treatments-carousel__btn--prev { left: 8%; }
  .rosa-types .treatments-carousel__btn--next { right: 8%; }
  .rosa-types .treatments-carousel__btn img {
    width: 20px;
  }
  .rosa-types .treatments-carousel.fade-in-view--wheel.is-visible .rosa-wheel-holder {
    animation: treatmentFadeIn .8s ease-out both;
  }
  .rosa-types .rosa-wheel__caption h3 {
    font-family: var(--font);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: #707070;
    margin: 8px 0 0.35rem;
    padding: 0 28px;
  }
  .rosa-types .rosa-wheel__caption p {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #707070;
    margin: 0;
    padding: 0 36px;
  }
  .rosa-const {
    width: 94%;
    margin-left: auto;
    margin-right: 0;
  }
  .rosa-const__head {
    border-radius: 36px 0 0 0;
    text-align: center;
    padding: 14px 16px 12px;
    margin: 0 0 6px;
  }
  .rosa-const__sub { font-size: 18px; line-height: 1.4; }
  .rosa-const__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 0;
  }
  .rosa-const__table { min-width: 700px; }
  .rosa-const__table thead th { font-size: 18px; line-height: 1.35; }
  .rosa-const__table thead th:first-child,
  .rosa-const__table tbody th {
    width: 3.6em;
    min-width: 3.6em;
    max-width: 3.6em;
    padding: 12px 4px;
    white-space: nowrap;
    word-break: keep-all;
    border-right-width: 4px;
  }
  .rosa-const__table tbody th {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
  }
  .rosa-const__table th,
  .rosa-const__table td { padding: 12px 10px; font-size: 16px; line-height: 1.4; font-weight: 400;}
  .rosa-const__table thead th:not(:first-child),
  .rosa-const__table td { width: auto; }
  /* 欄與欄之間白色間隔（跟設計圖） */
  .rosa-const__table thead th:not(:first-child),
  .rosa-const__table tbody td { border-right: 4px solid #fff; }
  .rosa-const__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 16px;
    background: #edf7f4;
    border-radius: 0 0 16px 16px;
    margin: 5px 0;
  }
  .rosa-const__nav button,
  .rosa-const__dots {
    background: #bde3d7;
    color: #329196;
    border: 0;
  }
  .rosa-const__nav button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .rosa-const__dots {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 15px;
    padding: 10px;
  }
  .rosa-const__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #91d0bd;
  }
  .rosa-const__dots span.is-active { background: #3cb384; }
  .rosa-adv > p { font-size: 16px; font-weight: 400;line-height:1.4;}
  .rosa-circles { width: min(330px, 90%); }
  .rosa-circles__inner { padding: 8% 12% 42%; }
  .rosa-circles__outer { width: 40%; height: 40%; padding: 9% 6%; }
  .rosa-circles.is-swapped .rosa-circles__outer {
    width: 100%;
    height: 100%;
    padding: 8% 12% 42%;
  }
  .rosa-circles.is-swapped .rosa-circles__inner {
    width: 40%;
    height: 40%;
    padding: 9% 6%;
  }
  .rosa-methods__card {
    border-radius: 48px 48px 16px 16px;
    padding-top: 1.5rem;
  }
  .rosa-methods__lead { font-size: 17px; margin-bottom: 1.1rem;line-height:1.4; }
  .rosa-methods__grid { display: block; }
  .rosa-method {
    overflow: hidden;
    width: 100%;
    padding: 20px 5px 20px;
    box-sizing: border-box;
    text-align: center;
  }
  .rosa-method > picture,
  .rosa-method__hover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
  }
  /* hover 內層 picture 都要定位：否則高度 auto，select 圖 height:100% 失效 → 底部露出綠色 normal 圖（兩截色） */
  .rosa-method__hover > picture {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .rosa-method__img {
    height: 100%;
    width: 100%;
    transform: scale(1.38);
    transform-origin: center center;
    transition: transform 1s ease, opacity .25s ease;
  }
  .rosa-method.is-active .rosa-method__img {
    transform: scale(1);
  }
  .rosa-method figcaption {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    display: inline-block;
    font-size: 25px;
    line-height: 1.3;
  }
  .rosa-method__expand p {
    font-size: 16px;
    font-weight: 400;
    padding: 0.7rem 0.6rem 0rem;
    border-radius: 10px;
    margin: 0 6px 6px;
	line-height:1.4;
  }
  .is-active figcaption {
    bottom: 0px !important;
  }

  .store-brand-logo img {
      height: 40px;
  }
}

.article-page {
  width: min(1080px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  padding-bottom: 2.5rem;
}
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.6;
  color: #707070;
}
.article-breadcrumb a {
  color: #329196;
  text-decoration: none;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-breadcrumb [aria-current="page"] {
  color: #707070;
}
.article-page__title {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 0rem;
  padding: 1rem 0rem 0rem;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.45;
  color: #329196;
}
.article-page__byline {
  margin: 0 0 1.5rem;
  text-align: right;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  color: #707070;
  line-height:1.4;
}
.article-page__hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2.25rem;
}
.article-page__hero--solo {
  grid-template-columns: 260px;
}
.article-author {
  background: #f4fcf9;
  padding: 1.5rem 1.15rem 1.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.article-author__photo {
  width: 168px;
  height: 168px;
  object-fit: contain;
  object-position: top center;
  margin-bottom: 1rem;
}
.article-author__name {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 22px;
  line-height: 1.75;
  color: #707070;
}
.article-author__role,
.article-author__reg {
  margin: 0.15rem 0 0;
  font-family: var(--font);
  font-weight: var(--font-weight);
  font-size: 14px;
  line-height: 1.4;
  color: #707070;
}
.article-author--brand .article-author__name {
  font-size: 18px;
  font-weight: 400;
}
.article-author__cta {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.45rem 1.6rem;
  background: #329196;
  color: #fff;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}
.article-page__cover {
  min-height: 100%;
  overflow: hidden;
}
.article-page__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-page__back {
  position: relative;
  z-index: 1;
  clear: both;
  margin: 2.5rem 0 0;
}
.article-page__back a {
  color: #329196;
  text-decoration: none;
}
main > .register-form {
  clear: both;
}
@media (max-width: 767px) {
  .article-page { width: min(100% - 3rem, 520px); margin-top: 1.5rem; }
  .article-breadcrumb { font-size: 13px; margin-bottom: 0.75rem; }
  .article-page__title {
    font-size: 22px;
    padding: 0.55rem 0rem 0.7rem;
  }
  .article-page__byline {
    text-align: left;
    font-size: 15px;
    margin-bottom: 1.1rem;
  }
  .article-page__hero,
  .article-page__hero--solo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .article-page__cover { order: 1; }
  .article-author { order: 2; }
  .article-author {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 1rem;
    height: auto;
  }
  .article-author__photo {
    width: 110px;
    height: 110px;
    margin: 0;
    flex-shrink: 0;
  }
  .article-author--brand {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 180px;
  }
  .article-author__info { flex: 1; min-width: 0; }
  .article-author__name { font-size: 20px; }
  .article-author__cta { margin-top: 0.75rem; }
}
.article-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Inline font-size 縮細時，讓行高跟隨細字，而不是被父層 20px 行距撐住 */
.article-body p > span[style*="font-size"] {
  line-height: 1.4;
}
.article-body p:has(> span[style*="font-size"]) {
  line-height: 0;
}
.article-body p:has(> span[style*="font-size"]) > * {
  line-height: 1.4;
}
.article-body p {
  margin: 0 0 0.8em;
}
.article-body h2 {
  margin: 1.4em 0 0.6em;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #329196;
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body p:empty {
  height: 0.5em;
  margin: 0;
}
.article-body p:last-child {
  margin-bottom: 0;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1em 1.5em;
}
.article-body img,
.article-body iframe {
  max-width: 100%;
  height: auto;
}
.article-body iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 220px;
}

.article-body th,.article-body td {
    box-sizing:unset;
    border: 1px solid; 
	padding: 5px;
}

/* ===== 強制修正 Bootstrap Datepicker 浮動樣式 ===== */
.datepicker.dropdown-menu {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 9999 !important;
    display: none; /* 預設隱藏，由 JS 控制顯示 */
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff !important;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
}

/* 確保日曆表格不會被其他通用 table 樣式影響 */
.datepicker table {
    margin: 0;
    border-collapse: collapse;
}
.datepicker td, .datepicker th {
    text-align: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
}
.datepicker table tr td.day:hover {
    background: #eeeeee;
    cursor: pointer;
}
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active {
    background-color: #32b382 !important; /* 你的品牌主色 */
    color: #fff !important;
}
/* 1. 正常可選的日期（黑色） */
.datepicker table tr td.day {
    color: #333333;
}

/* 2. 禁用/不可選的日期（淺灰色，並加上刪除線） */
.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    background: none !important;
    color: #cccccc !important; /* 淺灰色 */
    cursor: not-allowed !important;
    text-decoration: line-through; /* 加上刪除線，視覺更明顯 */
}

/* 3. 週末（如果你原本有特別標記週末，可維持品牌色，若無則統一黑色） */
.datepicker table tr td.weekend {
    color: #333333;
}

/* 4. 上個月/下個月的日期（淺灰色） */
.datepicker table tr td.old,
.datepicker table tr td.new {
    color: #dddddd;
}

/* 5. 今日（加上外框或品牌色底） */
.datepicker table tr td.today {
    background-color: #f0f9f7 !important; /* 你的品牌淺色 mint */
    color: #32b382 !important; /* 你的品牌主色 */
    font-weight: bold;
}
.datepicker table tr td.today:hover {
    background-color: #32b382 !important;
    color: #ffffff !important;
}

/* 6. 選中的日期（品牌色底、白字） */
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-color: #32b382 !important; /* 你的品牌主色 */
    color: #ffffff !important;
    text-shadow: none;
}

/* ---- 手機版見證 Carousel (置中 + 左右露出) ---- */
@media (max-width: 767px) {
  .case-section {
    width: 100%; /* 手機版讓外層滿版，才能讓卡片露出 */
    margin-top: 1.5rem;
    overflow: hidden; /* 隱藏超出螢幕的部分 */
  }
  .case-section__viewport {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 5%;
    overflow: hidden;
    touch-action: pan-y;
  }
  .case-section .carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s ease;
    align-items: center;
    touch-action: pan-y;
  }
  .case-slide {
    flex: 0 0 90%; /* 每張卡片佔據畫面的 90%，兩側會露出下一張 */
    width: 90%;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 0.4; /* 非當前卡片降低透明度 */
    transform: scale(0.98); /* 非當前卡片稍微縮小 */
  }
  .case-slide.is-active {
    opacity: 1;
    transform: scale(1);
  }
  .case-card {
    padding: 1.5rem 1rem 1.5rem;
    border-radius: 32px;
    height: 100%;
    box-sizing: border-box;
  }
  .case-nav {
    display: none; /* 手機版隱藏左右箭頭，改用手指滑動 */
  }

  /* 處理圖片佈局，避免手機版爆版 */
  .case-photos {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 4px;
  }
  .case-photos__portrait img {
    border-width: 4px;
  }
}

/* 手機版見證導覽列 */
.rosa-const__nav {
  display: none; /* 電腦版隱藏 */
}

@media (max-width: 767px) {
  .rosa-const__navbg{
    background: #fff;
  }
  .rosa-const__nav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 14px 16px;
    margin-top: 5px;
    background: #edf7f4;
    border-radius: 0 0 0 16px;
  }
  .rosa-const__nav button {
    background: #bde3d7;
    color: #0d9e64;
    border: 0;
    width: 26px;
    height: 26px; /* 與 rosa-const__dots 同高（6px 圓點 + 10px x 2 padding = 26px） */
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center; /* 左右置中 */
    align-items: center; /* 上下置中 */
    padding: 0 0 4px; /* ‹› 符號墨跡本身比行框中心低 2px，加底 padding 令視覺置中 */
  }
  .rosa-const__dots {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #bde3d7;
    border-radius: 15px;
    padding: 10px;
  }
  .rosa-const__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #91d0bd;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .rosa-const__dots span.is-active {
    background: #3cb384;
  }
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #c9ddd6;
  color: #329196;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(50, 145, 150, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand-primary, #32b382);
  color:#fff;
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(50, 179, 130, 0.35);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .adv-circles__inner,.adv-circles.is-swapped .adv-circles__outer {
    padding: 17% 12% 57%;
    overflow: hidden;
  }

}

/* 若頁面底部有 sticky 元素（如 form 按鈕），可再往上抬 */
@media (max-width: 767px) {
  .back-to-top { bottom: 76px; }
}

.list-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2.5rem;
}
.list-pager__link,
.list-pager__more {
  min-width: 2.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #c9ddd6;
  border-radius: 999px;
  color: #329196;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.list-pager__link.is-current {
  background: #32b382;
  border-color: #32b382;
  color: #fff;
}
.list-pager__more {
  padding-left: 1rem;
  padding-right: 1rem;
  background: #329196;
  border-color: #329196;
  color: #fff;
}
.list-pager a:hover {
  background: #32b382;
  border-color: #32b382;
  color: #fff;
}