:root {
  --c-text: #344144;
  --c-muted: rgba(52, 65, 68, .68);

  /* Brand Colors */
  --c-brand: #459FD7;
  --c-brand-dark: #3B7BB1;
  --c-nav: #3B7BB1;
  --c-nav-hover: #2E6A99;
  --c-accent: #82B5D7;
  --c-accent-dark: #6E7988;
  --c-line: #AFC9DA;
  --c-warm: #EEF5F9;
  --c-surface: rgba(255, 255, 255, .82);
  --c-surface-strong: rgba(255, 255, 255, .92);
  --c-red:#f6725f;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --pill: 999px;

  --shadow-sm: 0 10px 22px rgba(52, 80, 104, .10);
  --shadow-md: 0 16px 36px rgba(52, 80, 104, .14);

  --header-space-desktop: 65px;
  --header-space-mobile: 54px;

  /* Buttons */
  --btn-main: #459FD7;
  --btn-main-dark: #3B7BB1;
  --btn-shadow: rgba(69, 159, 215, .26);
  --btn-shadow-hover: rgba(69, 159, 215, .34);

  /* Modal */
  --modal-z: 9999;
  --backdrop: rgba(30, 48, 66, .55);
  --radius: 16px;
}

/* -----------------------------
  1) Base / Background
----------------------------- */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--c-warm);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, "微軟正黑體", sans-serif;
  -webkit-text-size-adjust: 100%;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-text);
  background:
    radial-gradient(1200px 420px at 50% -140px, rgba(255,255,255,.92), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, #F5FAFD 0%, #EAF4FA 42%, #EEF5F9 100%);
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  body {
    font-size: 16px;
  }
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.text-muted {
  color: var(--c-muted) !important;
}

.font-308e92 {
  color: var(--c-brand) !important;
}

.font-e35959 {
  color: #e35959 !important;
}

/* header fixed 後，body 讓出空間 */
body.headerSpace {
  padding-top: var(--header-space-desktop);
}

@media (max-width: 991px) {
  body.headerSpace {
    padding-top: var(--header-space-mobile);
  }
}

/* -----------------------------
  2) Header / Navbar
----------------------------- */
header.header {
  min-height: 55px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(52, 80, 104, .10);
  position: relative;
  z-index: 2000;
}

header.header.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

header.header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-brand-dark) 0%, var(--c-brand) 100%);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--c-nav);
  font-weight: 800;
  padding: .8rem 1rem;
  border-radius: 12px;
  transition: background .18s ease, transform .08s ease, color .18s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #fff;
  background: linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  transform: translateY(-1px);
}

/* -----------------------------
  3) KV / Banner spacing
----------------------------- */
.kv-bg {
  margin: 5px 0 18px 0;
  padding: 0;
}

@media (max-width: 991px) {
  .kv-bg {
    margin-top: 5px;
    margin-bottom: 12px;
  }
}

.kv-bg .kv-bg_item {
  height: 580px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 991px) {
  .kv-bg .kv-bg_item {
    height: auto;
  }
}

/* -----------------------------
  4) Sections
----------------------------- */
.section-bg,
.section-bg2,
section.section-border {
  background: transparent !important;
}

.section-padding {
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 991px) {
  .section-padding {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

section.section-border {
  position: relative;
  border-bottom: 0 !important;
  padding-bottom: 56px;
  margin-bottom: 56px;
}

@media (max-width: 991px) {
  section.section-border {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }
}

@media (max-width: 575px) {
  section.section-border {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
}

section.section-border::before {
  content: none !important;
  display: none !important;
}

section.section-border::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(130, 181, 215, 0) 0%,
    rgba(130, 181, 215, .28) 20%,
    rgba(59, 123, 177, .45) 50%,
    rgba(130, 181, 215, .28) 80%,
    rgba(130, 181, 215, 0) 100%
  );
  opacity: .95;
  pointer-events: none;
}

section.section-border:last-of-type {
  margin-bottom: 0;
  padding-bottom: 28px;
}

section.section-border:last-of-type::after {
  content: none !important;
  display: none !important;
}

/* -----------------------------
  5) Buttons (CTA)
----------------------------- */
.activity-main-btn,
.activity-main-btn.more-btn,
.js-noticebox1-close,
.js-noticebox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 30px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .4px;
  text-decoration: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--btn-main), var(--btn-main-dark));
  box-shadow:
    0 14px 26px var(--btn-shadow),
    inset 0 0 0 1px rgba(255, 255, 255, .24);
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
  position: relative;
  overflow: hidden;
}

.activity-main-btn:hover,
.activity-main-btn.more-btn:hover,
.js-noticebox1-close:hover,
.js-noticebox-close:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px var(--btn-shadow-hover),
    inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.activity-main-btn.is-green {
  --btn-main: #6AA7C8;
  --btn-main-dark: #4B89AC;
  --btn-shadow: rgba(106, 167, 200, .24);
  --btn-shadow-hover: rgba(106, 167, 200, .32);
}

.activity-main-btn.is-yellow {
  --btn-main: #fff000;        /* 主黃 */
  --btn-main-dark: #ff9600;   /* 深黃 */
  --btn-shadow: rgba(234, 179, 8, .30);
  --btn-shadow-hover: rgba(234, 179, 8, .38);
color: #000;
}

/* -----------------------------
  6) traFix
----------------------------- */
.traFix {
  position: fixed;
  right: 12px;
  bottom: 220px;
  z-index: 1200;
  width: 64px;
  height: 164px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #6DB7E3, #3B7BB1);
  box-shadow: 0 16px 34px rgba(69, 159, 215, .28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.traFix span {
  color: #fff;
  font-weight: 800;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  column-count: 2;
  column-gap: 8px;
  height: 120px;
  line-height: 1.1;
  text-align: center;
}

/* -----------------------------
  7) Pills
----------------------------- */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(59, 123, 177, .08);
  font-weight: 700;
  color: rgba(52, 65, 68, .88);
}

.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c-brand);
  box-shadow: 0 0 0 6px rgba(69, 159, 215, .12);
}

/* -----------------------------
  8) warn-note
----------------------------- */
.warn-note {
  display: block;
  position: relative;
  margin: 10px 0 12px;
  padding: 10px 12px 10px 40px;
  border-radius: 14px;
  border: 1px solid rgba(69, 159, 215, .18);
  background: rgba(69, 159, 215, .08);
  color: rgba(52, 65, 68, .85) !important;
  font-weight: 600;
  line-height: 1.85;
}

.warn-note::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  box-shadow: 0 10px 18px rgba(69, 159, 215, .18);
}

small.warn-note {
  font-size: 0.95em;
}

/* -----------------------------
  9) Noticebox
----------------------------- */
.noticebox1__listbox,
.noticebox__listbox {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(59, 123, 177, .08);
  box-shadow: 0 14px 28px rgba(52, 80, 104, .10);
  padding: 18px;
}

.noticebox1__listbox.is-collapsed,
.noticebox__listbox.is-collapsed {
  max-height: 220px;
  overflow: hidden;
  cursor: pointer;
}

.noticebox1__listbox.is-collapsed::after,
.noticebox__listbox.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

.noticebox1__listbox.is-open,
.noticebox__listbox.is-open {
  max-height: none;
  overflow: visible;
  cursor: default;
}

.noticebox1__action,
.noticebox__action,
.noticebox__action,
.noticebox__action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* -----------------------------
  10) Pag6 注意事項
----------------------------- */
#pag6 .noticebox1__listbox {
  padding: 18px 16px;
}

#pag6 .noticebox1__listbox > ol {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

#pag6 .noticebox1__listbox > ol > li {
  position: relative;
  padding-left: 42px;
  margin: 14px 0;
  line-height: 1.9;
  font-size: 1em;
  font-weight: 500;
}

#pag6 .noticebox1__listbox > ol > li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: .5em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  box-shadow: 0 6px 12px rgba(69, 159, 215, .25), inset 0 0 0 2px rgba(255, 255, 255, .65);
}

#pag6 .noticebox1__listbox ol ol {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 6px;
}

#pag6 .noticebox1__listbox ol ol > li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  line-height: 1.85;
}

#pag6 .noticebox1__listbox ol ol > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(69, 159, 215, .14);
}

#pag6 .noticebox1__listbox > ol li > ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 8px;
}

#pag6 .noticebox1__listbox > ol li > ul > li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.5;
  color: rgba(52, 65, 68, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .20)),
    linear-gradient(180deg, rgba(69, 159, 215, .14), rgba(69, 159, 215, .06));
  border: 1px solid rgba(69, 159, 215, .18);
  box-shadow: 0 10px 18px rgba(52, 80, 104, .06);
}

#pag6 .noticebox1__listbox > ol li > ul > li::before {
  content: none !important;
  display: none !important;
}

#pag6 .noticebox1__listbox p[style*="text-indent"] {
  text-indent: 0 !important;
  padding-left: 14px;
  border-left: 3px solid rgba(69, 159, 215, .18);
  margin: 6px 0;
}

.notice-indent {
  padding-left: 1.75em;
  color: rgba(52, 65, 68, .78);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .notice-indent {
    padding-left: 1.25em;
  }
}

#pag6 h3 {
  font-size: 20px;
  font-weight: 700;
}

/* -----------------------------
  11) Footer
----------------------------- */
.footer {
  position: relative;
  padding: 26px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #4F86AE, #344F68);
  box-shadow: 0 -18px 44px rgba(52, 80, 104, .18);
  margin-top: 24px;
}

.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .22) 20%,
    rgba(255, 255, 255, .35) 50%,
    rgba(255, 255, 255, .22) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: .85;
}

.footer-info {
  color: rgba(255, 255, 255, .94);
}

.footer-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.common-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.common-line i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(69, 159, 215, .12);
}

.common-line abbr {
  font-weight: 900;
  font-size: 26px;
}

.common-line_left {
  margin-right: 10px;
}

.common-line_right {
  margin-left: 10px;
}

/* -----------------------------
  12) Campaign Tabs
----------------------------- */
#campaignTabs {
  border-bottom: 0;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .60);
  border: 1px solid rgba(59, 123, 177, .08);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

#campaignTabs .nav-item {
  padding: 0;
}

#campaignTabs .nav-link {
  border: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .3px;
  color: rgba(52, 65, 68, .78);
  background: rgba(255, 255, 255, .84);
  box-shadow:
    inset 0 0 0 1px rgba(59, 123, 177, .06),
    0 10px 18px rgba(52, 80, 104, .06);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

#campaignTabs .nav-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(59, 123, 177, .06),
    0 16px 26px rgba(52, 80, 104, .10);
}

#campaignTabs .nav-link.active {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  box-shadow:
    0 18px 34px rgba(69, 159, 215, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}

#campaignTabs .nav-link:focus-visible {
  outline: 3px solid rgba(69, 159, 215, .28);
  outline-offset: 2px;
}

#campaignTabsContent {
  padding-top: 12px;
}

@media (max-width: 575px) {
  #campaignTabs {
    border-radius: 18px;
    padding: 8px;
    gap: 8px;
  }

  #campaignTabs .nav-link {
    padding: 10px 10px;
    font-size: 15px;
  }
}

/* -----------------------------
  13) Campaign pane
----------------------------- */
.campaign-pane {
  padding: 6px 2px 2px;
}

.campaign-pane .hero-img {
  border-radius: 16px !important;
  box-shadow: 0 16px 30px rgba(52, 80, 104, .10);
}

.campaign-pane .info-block {
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(59, 123, 177, .08);
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .50),
    0 10px 18px rgba(52, 80, 104, .06);
}

.campaign-pane h3.h5 {
  font-weight: 900;
  letter-spacing: .3px;
}

.campaign-pane p {
  color: rgba(52, 65, 68, .82);
  line-height: 1.7;
}

.campaign-pane ul.list-unstyled {
  margin-top: 10px;
}

.campaign-pane ul.list-unstyled > li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(59, 123, 177, .06);
}

.campaign-pane ul.list-unstyled > li + li {
  margin-top: 10px;
}

.campaign-pane ul.list-unstyled > li .text-danger {
  font-weight: 900;
  color: var(--c-brand-dark) !important;
}

.campaign-pane .small.text-muted {
  margin-top: 4px;
  line-height: 1.5;
}

.campaign-pane .draw-date,
.campaign-pane p.text-center.mb-2 {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(69, 159, 215, .10);
  color: rgba(52, 65, 68, .82);
  border: 1px solid rgba(69, 159, 215, .18);
}

.campaign-pane .row.g-3:has(.activity-main-btn),
.campaign-pane .row.g-3:has(.btn) {
  margin-top: 4px;
}

.campaign-pane .btn.btn-secondary[disabled] {
  border-radius: 12px;
  opacity: .65;
}

@media (max-width: 575px) {
  .campaign-pane .info-block {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .campaign-pane .hero-img {
    border-radius: 14px !important;
  }

  .campaign-pane ul.list-unstyled > li {
    padding: 10px 10px;
  }
}

/* -----------------------------
  14) Back to top
----------------------------- */
.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 110px;
  z-index: 996;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--c-brand), var(--c-brand-dark));
  box-shadow:
    0 14px 26px rgba(69, 159, 215, .26),
    inset 0 0 0 1px rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  filter: brightness(0.95);
}

.back-to-top:focus {
  outline: 2px solid rgba(69, 159, 215, .28);
  outline-offset: 3px;
}

/* -----------------------------
  15) Tables
----------------------------- */
.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  box-shadow: 0 5px 28px rgba(52,80,104,.12);
  backdrop-filter: blur(6px);
}

.table-custom thead th:first-child {
  border-top-left-radius: 16px;
}

.table-custom thead th:last-child {
  border-top-right-radius: 16px;
}

.table-custom tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.table-custom tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

.table-custom th,
.table-custom td {
  padding: 12px;
  text-align: center;
 vertical-align: middle;
  border: 1px solid rgba(59, 123, 177, .14);
}

.table-custom th {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(180deg, #82B5D7, #3B7BB1);
  color: #fff;
  font-weight: bold;
}

.table-custom td {
  background-color: rgba(255,255,255,.88);
}

.table-custom td ul li {
  list-style: none;
}

.text-center {
  text-align: center;
}

/* -----------------------------
  16) Text styles
----------------------------- */
.ogword {
  color: var(--c-red);
  font-weight: bold;
  font-size: 26px;
}
@media (max-width: 480px) {
.ogword {
  font-size: 20px;
}
}
.ogword2 {
  color: var(--c-red);
  font-weight: bold;
}

ul.giftlist {
  list-style: none;
  font-size: 16px;
  opacity: 1;
  color: var(--c-brand-dark);
}

.star {
  font-size: 1.1em;
  color: var(--c-brand-dark);
}

/* -----------------------------
  17) Modal
----------------------------- */
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 40px;
  padding: 8px 14px;
}

#modalA .modal__title,
#modalA h3 {
  color: var(--c-brand-dark);
}

#modalB .modal__title,
#modalB h3 {
  color: #5A89B0;
}

#modalA .modal__title,
#modalB .modal__title {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .5px;
  text-align: center;
}

#modalA h3,
#modalB h3 {
  font-size: 20px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--modal-z);
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 40px 12px;
  box-sizing: border-box;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop);
}

.modal__panel {
  position: relative;
  margin: 0 auto;
  width: min(920px, 100%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 40px;
  min-height: 40px;
  font-size: 20px;
  cursor: pointer;
}

.modal__header {
  padding: 22px 20px 10px;
  flex: 0 0 auto;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .5px;
}

.modal__subtitle {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
}

.modal__content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0 20px 18px;
  line-height: 1.75;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal__content img,
.modal__content video,
.modal__content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.modal__img {
  border-radius: 12px;
  margin: 0 0 14px;
}

.modal__actions {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

.modal__btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(59, 123, 177, .18);
}

@media (max-width: 480px) {
  .modal {
    padding: 18px 10px;
  }

  .modal__panel {
    max-height: calc(100vh - 36px);
  }

  .modal__title {
    font-size: 22px;
  }

  .modal__subtitle {
    font-size: 16px;
  }

  .modal__header {
    padding: 18px 14px 8px;
  }

  .modal__content {
    padding: 0 14px 14px;
  }
}

/* -----------------------------
  18) CTA 間距
----------------------------- */
.row.gx-1 {
  --bs-gutter-x: .3rem;
}

/* -----------------------------
  19) Compare cards
----------------------------- */
.compare-wrap {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 12px;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--c-brand-dark);
}

.tip-box {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 5px solid var(--c-brand);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(21, 35, 56, 0.08);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.plan-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.plan-scroller::-webkit-scrollbar {
  display: none;
}

.plan-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.plan-item {
  min-width: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.plan-card {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  position: relative;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
  border-radius: 50%;
}

.plan-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  border-radius: 50%;
}

.plan-item.active .plan-card {
  box-shadow: 0 18px 42px rgba(20, 33, 61, 0.16);
}

.plan-header {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: #2f4558;
}

.plan-a {
  background: linear-gradient(135deg, #E4F3FB, #BDDDF0);
}

.plan-b {
  background: linear-gradient(135deg, #D7ECF8, #9FD0EB);
}

.plan-c {
  background: linear-gradient(135deg, #BFE0F4, #7FBCE2);
}

.plan-d {
  background: linear-gradient(135deg, #9FCCEA, #5F9CCB);
}

.plan-body {
  background: rgba(255,255,255,.88);
  padding: 1rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(59, 123, 177, 0.08);
  border-radius: 14px;
  padding: .85rem .9rem;
  margin-bottom: .75rem;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-label {
  font-size: .95rem;
  color: #4d5d68;
  margin-bottom: .35rem;
  line-height: 1.45;
}

.feature-value {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
  color: #344144;
}

.feature-value.small {
  font-size: 1.05rem;
}

.mobile-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.mobile-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(52, 65, 68, 0.18);
  display: inline-block;
  transition: all .25s ease;
}

.mobile-dots span.active {
  width: 22px;
  border-radius: 999px;
  background: var(--c-brand-dark);
  box-shadow: 0 4px 12px rgba(59, 123, 177, 0.25);
}

@media (max-width: 991.98px) {
  .compare-wrap {
    padding: 0 10px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .tip-box {
    font-size: .95rem;
    line-height: 1.6;
  }

  .plan-scroller {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .plan-track {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .plan-item {
    width: 80vw;
    max-width: 340px;
    min-width: 272px;
    scroll-snap-align: center;
    flex: 0 0 auto;
    transform: scale(.94);
    opacity: .68;
  }

  .plan-item.active {
    transform: scale(1);
    opacity: 1;
  }

  .plan-header {
    font-size: 1.6rem;
    padding: 1rem 1rem .9rem;
  }

  .plan-body {
    padding: .85rem;
  }

  .feature-item {
    padding: .8rem;
    margin-bottom: .65rem;
  }

  .feature-label {
    font-size: .9rem;
  }

  .feature-value {
    font-size: 1.05rem;
  }

  .feature-value.small {
    font-size: .98rem;
  }

  .mobile-dots {
    display: flex;
  }
}

@media (min-width: 992px) {
  .plan-scroller {
    overflow: visible;
  }
}