* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', 'Noto Sans TC', system-ui, sans-serif;
  color: #333333;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a, button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
a { color: inherit; }
::selection { background: #FFEA00; color: #333333; }

@keyframes floatUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes arrowNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }

.wrap { max-width: 1180px; margin: 0 auto; position: relative; }
.band { position: relative; overflow: hidden; }
.band-sky { background: #EAF4FD; border-top: 1px solid #DCEBF9; border-bottom: 1px solid #DCEBF9; }
.sec-pad { padding: 56px 20px; }
@media (min-width: 880px) { .sec-pad { padding: 84px 56px; } }

.sec-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; position: relative; }
.sec-bar { width: 6px; height: 30px; background: #FFEA00; border-radius: 2px; flex: none; }
.sec-title { font-size: clamp(26px, 4vw, 34px); font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.sec-sub { color: #888; margin: 0 0 28px 20px; font-size: 15px; }
.sec-sub-sky { color: #3f5a70; font-weight: 500; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E0E0E0;
}
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 10px 16px; position: relative; }
.nav-logo { display: flex; align-items: center; cursor: pointer; flex: none; border: none; background: none; padding: 0; }
.nav-logo-img { height: 30px; width: auto; display: block; }
.nav-btns { display: none; gap: 4px; margin-left: auto; white-space: nowrap; }
.nav-link {
  position: relative; border: none; background: transparent; font-family: inherit;
  font-weight: 700; color: #333333; cursor: pointer; font-size: 14px; padding: 9px 13px; border-radius: 6px;
}
.nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 6px; background: #FFEA00;
  transform: scaleX(0); transform-origin: left center; transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after, .nav-link:active::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-menu-wrap { position: relative; margin-left: auto; }
.nav-menu-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid #E0E0E0; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #333; padding: 9px 14px; border-radius: 8px; cursor: pointer;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 128px; background: #fff;
  border: 1px solid #E0E0E0; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14);
  overflow: hidden; padding: 6px; z-index: 60; animation: floatUp .16s ease both;
}
/* [hidden] must keep winning over this — only lay out as flex once the attribute is removed */
.nav-dropdown:not([hidden]) { display: flex; flex-direction: column; }
.nav-link-mobile {
  text-align: center !important; font-size: 15px; padding: 13px 14px; border-radius: 8px;
}
.nav-link-mobile::after { left: 50%; right: auto; width: 4em; margin-left: -2em; bottom: 5px; }
.nav-link-mobile.is-active::after { transform: scaleX(1); }

@media (min-width: 880px) {
  .nav-btns { display: flex !important; }
  .nav-menu-wrap { display: none !important; }
}

/* ---------- hero ---------- */
.hero-media { width: 100vw; position: relative; left: 50%; margin-left: -50vw; line-height: 0; }
.hero-img { width: 100%; height: auto; display: block; }
.kv-cta {
  position: absolute; left: 50%; top: 91%; transform: translate(-50%, -50%);
  display: flex; justify-content: center; width: 100%; pointer-events: none;
}
@media (min-width: 880px) { .kv-cta { top: 90%; } }
.kv-cta-link {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; background: #FFEA00; color: #333;
  text-decoration: none; font-weight: 900; font-size: clamp(15px, 1.5vw, 19px); line-height: 1;
  padding: clamp(13px, 1.4vw, 18px) clamp(28px, 3vw, 40px); border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transition: box-shadow .18s cubic-bezier(.2,.7,.2,1), transform .18s cubic-bezier(.2,.7,.2,1);
}
.kv-cta-link:hover { transform: translateY(-3px) scale(1.03); }
.kv-cta-link:active { transform: translateY(1px) scale(.99); }
.kv-cta-full { display: none; }
@media (min-width: 880px) { .kv-cta-full { display: inline; } }
.kv-cta-arrow { font-size: 1.1em; display: inline-block; animation: arrowNudge 1.6s ease-in-out infinite; }

/* ---------- info section ---------- */
#sec-info {
  position: relative; width: 100vw; left: 50%; margin-left: -50vw;
  background: #dbebff url('assets/info-bg.png') top center / 100% auto no-repeat;
  border-style: none;
}
@media (min-width: 880px) { #sec-info { background: #dbebff url('assets/info-bg-desktop.png') top center / 100% auto no-repeat; } }
#sec-info .wrap { z-index: 2; }
.info-deco-tea {
  display: block; object-fit: contain; height: 104px; aspect-ratio: 279 / 196;
  position: absolute; left: 275px; top: -20px; pointer-events: none; width: 149px; z-index: -1;
}
#info-coins { display: contents; }
#info-deco-ocoin2, #info-deco-ocoin1 { display: block; object-fit: contain; pointer-events: none; position: absolute; z-index: 5; }
#info-deco-ocoin2 { width: clamp(90px, 12vw, 168px); aspect-ratio: 258 / 284; right: clamp(18px, 6vw, 239px); top: 432px; }
#info-deco-ocoin1 { width: clamp(94px, 12.5vw, 175px); aspect-ratio: 266 / 205; right: clamp(36px, 10vw, 301px); top: 519px; }

@media (max-width: 879px) {
  #sec-info { padding-bottom: 56px !important; margin-top: -1px; }
  #info-coins { display: none !important; }
  .info-deco-tea { display: none !important; }
}

.info-card { background: #fff; border: 1px solid #E0E0E0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.info-row { display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid #F2F2F2; }
.info-row-last { border-bottom: none; }
.info-key { flex: none; width: 84px; font-weight: 700; color: #333; font-size: 14px; line-height: 1.65; }
.info-val { color: #444; font-size: 15px; flex: 1; min-width: 0; line-height: 1.65; }
.hl { color: #333; background: linear-gradient(transparent 60%, #FFEA00 60%); }
.hl-plain { color: #333; }

/* ---------- stores / map ---------- */
#sec-stores { background-color: #F7F8F8; }
.map-wrap { position: relative; max-width: 780px; margin: 0 auto; }
.map-img { width: 100%; height: auto; display: block; border-radius: 8px; }

.pin { position: absolute; transform: translate(-50%, -50%); cursor: pointer; width: 12%; min-width: 36px; max-width: 44px; -webkit-tap-highlight-color: transparent; }
.pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
.pin-label {
  position: absolute; bottom: 105%; left: 50%; transform: translateX(-50%); margin-bottom: 1px;
  font-size: clamp(13px, 3.2vw, 22px); font-weight: 700; line-height: 1.15; white-space: nowrap;
  width: max-content; display: flex; align-items: center; justify-content: center;
  padding: .29em .69em; border-radius: 999px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.22);
  transition: transform .12s, background .12s, color .12s;
}
.pin-mark { display: block; width: 100%; height: auto; transition: transform .12s; }
.pin-mark-active { position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; pointer-events: none; transition: transform .12s, opacity .12s; }
.pin:hover .pin-label { transform: translateX(-50%) scale(1.08); }

/* Map graphic + pin coordinates switch to the desktop set at 600px (matches the <picture> breakpoint
   and script.js's isMapDesktopStyle()) so tablets don't get the phone-scaled map with illegibly tiny pins. */
@media (min-width: 600px) {
  .pin { width: 8.5%; max-width: 82px; min-width: 0; }
  .pin-label { font-size: 13px; padding: 5px 11px; bottom: 104%; margin-bottom: 2px; }
}

@media (min-width: 880px) {
  .pin:hover { z-index: 7 !important; }
  .pin:hover .pin-mark { transform: none; }
  .pin:hover .pin-mark-active { opacity: 1; transform: none; }
  .pin:hover .pin-label { background: #225176 !important; color: #fff !important; transform: translateX(-50%) scale(1.15); }
}

.event-popup {
  position: absolute; z-index: 20; width: 320px; background: #fff; border: 1px solid #E0E0E0; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.30); padding: 20px 22px; animation: fadeIn .2s ease both;
}
.popup-head { display: flex; align-items: flex-start; gap: 12px; }
.popup-title { flex: 1; min-width: 0; font-weight: 900; font-size: 18px; color: #333; line-height: 1.35; }
.popup-close {
  flex: none; border: none; background: #F2F2F2; color: #888; font-size: 18px; line-height: 1; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
}
.popup-line { font-size: 14px; color: #555; line-height: 1.75; margin-top: 12px; }
.popup-line + .popup-line { margin-top: 0; }
.popup-line .lbl { color: #999; }
.popup-line a { color: #333; text-decoration: underline; font-weight: 700; }
.popup-order {
  display: inline-flex; align-items: center; gap: 6px; background: #FFEA00; color: #333; text-decoration: none;
  font-weight: 800; font-size: 14px; padding: 12px 24px; border-radius: 999px; margin-top: 16px;
}

/* ---------- bottom sheet (mobile store detail) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.42); animation: floatUp .2s ease both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff;
  border-top-left-radius: 18px; border-top-right-radius: 18px; box-shadow: 0 -8px 30px rgba(0,0,0,.18);
  padding: 18px 18px max(24px, env(safe-area-inset-bottom)); animation: sheetUp .25s cubic-bezier(.2,.7,.2,1) both;
}
.sheet-handle { width: 38px; height: 4px; border-radius: 999px; background: #E0E0E0; margin: 0 auto 16px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-title { flex: 1; min-width: 0; font-weight: 900; font-size: 19px; color: #333; line-height: 1.35; }
.sheet-close {
  flex: none; border: none; background: #F2F2F2; color: #888; font-size: 20px; line-height: 1; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
}
.sheet-line { font-size: 15px; color: #555; line-height: 1.85; margin-top: 14px; }
.sheet-line + .sheet-line { margin-top: 0; }
.sheet-line .lbl { color: #999; }
.sheet-line a { color: #333; text-decoration: underline; font-weight: 700; }
.sheet-order {
  display: flex; align-items: center; justify-content: center; gap: 6px; background: #FFEA00; color: #333;
  text-decoration: none; font-weight: 900; font-size: 16px; padding: 15px; border-radius: 999px; margin-top: 18px;
}

/* ---------- steps ---------- */
.steps-section { position: relative; z-index: 1; margin-top: -50px; border-radius: 50px 50px 0 0; overflow: hidden; background-color: #FFFFFF; }
.steps-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 0 8px;
}
.steps-rail::-webkit-scrollbar { display: none; }
.steps-rail > * { flex: 0 0 78%; scroll-snap-align: center; }
.step-card {
  display: flex; flex-direction: column-reverse; background: #fff; border: none; border-radius: 14px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.step-cap {
  display: flex; gap: 10px; align-items: center; padding: 14px 20px; min-height: 60px; flex: 1;
  background: linear-gradient(90deg, #7EDAE8, #5380ED, #5380ED, #5380ED);
}
.step-num { flex: none; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; color: #FFEA00; line-height: 1.5; }
.step-cap p { margin: 0; font-size: 18px; line-height: 1.5; color: #FFFFFF; font-weight: 500; text-align: justify; }
.step-shot { position: relative; overflow: hidden; background: #F4F4F4; display: flex; align-items: center; justify-content: center; height: clamp(300px, 44vh, 360px); width: 100%; }
.step-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.step-dots { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.step-dots-inner { display: flex; align-items: center; gap: 7px; }
.step-dot { height: 8px; width: 8px; background: #D5D5D5; border-radius: 999px; transition: all .2s; }
.step-dot.is-active { background: #333333; }

@media (min-width: 600px) and (max-width: 879px) {
  .steps-rail { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; gap: 20px; }
  .steps-rail > * { flex: none; }
  .step-card { height: 100%; }
  .step-shot { height: 300px; }
  .step-dots { display: none; }
}

@media (min-width: 880px) {
  .steps-rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 24px; }
  .steps-rail > * { flex: none; }
  .step-card { height: 100%; }
  .step-shot { height: 300px; }
  .step-dots { display: none; }
}

@media (max-width: 599px) {
  .step-cap p { font-size: 14px !important; line-height: 1.45 !important; }
}

/* ---------- logos ---------- */
.logos-section { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid #F0F0F0; }
.logo-row { display: flex; flex-direction: column; align-items: center; gap: 32px; justify-content: center; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 760px) { .logo-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; } }
.logo-col { text-align: center; }
.logo-col-label { font-size: 15px; color: #888; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.logo-col-img { height: 72px; display: flex; align-items: center; justify-content: center; }
.logo-tax { height: 46px; width: auto; display: block; }
.logo-ocard { height: 48px; width: auto; display: block; }
.logo-kebuke { height: 40px; width: auto; display: block; }

/* ---------- notes ---------- */
.notes-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.notes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.notes-list li { display: flex; gap: 14px; }
.notes-num {
  flex: none; width: 26px; height: 26px; border: 1.5px solid #333; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px;
}
.notes-list p { margin: 0; font-size: 15px; line-height: 1.7; color: #444; }
.notes-list a { color: #333; font-weight: 700; text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: #333333; color: #fff; padding: 52px 20px 96px; }
.foot-mobile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.foot-desktop { display: none; }
@media (min-width: 760px) {
  .foot-mobile { display: none; }
  .foot-desktop { display: block; }
}
.foot-logo { height: 44px; width: auto; display: block; }
.foot-apps { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.app-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #000; border: 1px solid #5a5a5a; border-radius: 8px;
  padding: 7px 13px; color: #fff; text-decoration: none; transition: border-color .15s;
}
.app-badge:hover { border-color: #FFEA00; }
.app-badge-text { text-align: left; line-height: 1.2; }
.app-badge-sub { display: block; font-size: 9px; color: #fff; margin-top: 3px; }
.app-badge-main { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.foot-social { display: flex; gap: 16px; align-items: center; justify-content: center; }
.social-icon { color: #fff; display: inline-flex; transition: color .15s; }
.social-icon:hover { color: #FFEA00; }
.foot-contact { font-size: 15px; line-height: 2; color: #cfcfcf; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-divider { height: 1px; width: 100%; max-width: 560px; background: #4a4a4a; }
.foot-biz { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-biz-logo { display: inline-flex; }
.foot-biz-logo img { height: 40px; width: auto; display: block; }
.foot-biz-links { font-size: 15px; color: #bbb; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.foot-biz-link { color: #bbb; text-decoration: none; }
.foot-biz-link:hover { color: #fff; }
.foot-biz-dot { color: #666; }
.foot-legal { font-size: 13px; color: #999; }
.foot-legal a { color: #999; text-decoration: none; }
.foot-legal a:hover { color: #fff; }
.foot-copyright { font-size: 12px; color: #888; line-height: 1.6; }

.foot .foot-left { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.foot .foot-right { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; text-align: right; }
.foot { display: flex; flex-direction: column; gap: 36px; }
@media (min-width: 760px) {
  .foot { flex-direction: row; justify-content: space-between; align-items: center; gap: 48px; }
}
.foot-desktop-divider { height: 1px; background: #4a4a4a; margin: 40px 0 24px; }
.foot-copyright-desktop { text-align: center; }

/* ---------- floating CTA ---------- */
.float-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: none; align-items: center;
  justify-content: center; gap: 8px; background: #FFEA00; color: #333333; text-decoration: none; font-weight: 900;
  font-size: 17px; padding: 16px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.float-cta-arrow { font-size: 18px; display: inline-block; animation: arrowNudge 1.6s ease-in-out infinite; }
.float-cta-desktop {
  display: none; position: fixed; right: 28px; bottom: 28px; z-index: 60; flex-direction: column; align-items: center;
  gap: 7px; text-decoration: none;
}
.float-circle {
  width: 96px; height: 96px; border-radius: 50%; background: #FFEA00; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-bottom: 14px;
  transition: transform .12s, background .15s;
}
.float-cta-desktop:hover .float-circle { transform: translateY(-2px); background: #333333; }
.float-cta-desktop:hover .float-circle svg { stroke: #FFEA00; }
.float-cta-desktop:hover .float-circle-label { color: #FFEA00; }
.float-circle-label { color: #333; font-size: 14px; font-weight: 900; line-height: 1; letter-spacing: .02em; height: 9px; }

/* JS toggles inline display:flex/none on the correct element for the breakpoint;
   these !important rules stop the wrong-breakpoint element from ever showing (e.g. on resize). */
@media (min-width: 880px) { .float-cta { display: none !important; } }
@media (max-width: 879px) { .float-cta-desktop { display: none !important; } }
