/* 久香食品 — 全螢幕滑動版型 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:root {
  --red: #b11118;
  --ink: #1c1714;
  --line: #06c755;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #fff;
  background: #111;
  line-height: 1.7;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.pages {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: "Noto Serif TC", serif; font-weight: 900; }
p { margin: 0; }

/* ---- Fixed header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
.site-header.is-light {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.site-header__logo img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a.active { background: rgba(255,255,255,.18); color: #fff; }
.site-header.is-light .site-nav a { color: var(--ink); }
.site-header.is-light .site-nav a:hover,
.site-header.is-light .site-nav a.active { background: rgba(177,17,24,.1); color: var(--red); }

/* ---- Side nav (logo icons) ---- */
.page-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-dots__item {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.45);
  opacity: .55;
  transition: transform .25s, opacity .25s, border-color .25s, box-shadow .25s;
}
.page-dots__item:not(.page-dots__item--group):not(.page-dots__item--label) {
  background: #000;
}
.page-dots__item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.page-dots__item:not(.page-dots__item--group):not(.page-dots__item--label) img {
  object-fit: contain;
}
.page-dots__item[data-nav="chaomaji"] img,
[data-brand="chaomaji"] img {
  object-fit: cover;
  transform: scale(1.12);
}
.page-dots__item--group {
  background: rgba(255,255,255,.92);
  padding: 4px;
}
.page-dots__item--group img {
  object-fit: contain;
}
.page-dots__item--label {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,.45);
  object-fit: unset;
}
.page-dots__item:hover {
  opacity: .85;
  transform: scale(1.08);
}
.page-dots__item.active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--dot, var(--red));
  transform: scale(1.12);
}
.page-dots__item.active.page-dots__item--label {
  background: var(--red);
  box-shadow: 0 4px 14px rgba(177,17,24,.4);
}

/* ---- Fullscreen pages ---- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(30,5,8,.88) 0%, rgba(80,10,14,.72) 50%, rgba(20,10,5,.6) 100%);
}
.page__overlay--home {
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.45) 100%);
}
.page__overlay--brand {
  background: linear-gradient(110deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, color-mix(in srgb, var(--brand) 35%, transparent) 100%);
}
.page__overlay--light {
  background: linear-gradient(135deg, rgba(251,246,236,.94) 0%, rgba(242,232,214,.88) 100%);
}
.page--contact .page__overlay--light {
  background: linear-gradient(135deg, rgba(251,246,236,.20) 0%, rgba(242,232,214,.20) 100%);
}
.page--contact .page__bg img {
  object-position: center 35%;
}
.page__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 32px) 24px 48px;
  max-width: 900px;
  width: 100%;
}

/* ---- Home page ---- */
.page--home {
  flex-direction: column;
  width: 100%;
}
.page--home .page__bg img {
  object-position: center center;
}
.page__home-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: calc(var(--header-h) + 32px) 0 48px;
}
.page--home .page__content--home {
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
  position: static;
}
.page--home .page__group-logo {
  height: 72px;
  width: auto;
  margin: 0 auto 20px;
}
.page__title {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: .04em;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.page__tagline {
  margin-top: 20px;
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,.85);
  letter-spacing: .08em;
}
.page--home .page__content {
  max-width: 1100px;
}
.page__brand-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 40px 0 0;
  padding: clamp(48px, 8vw, 88px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.page__brand-marquee__track {
  display: flex;
  width: max-content;
  animation: brand-marquee 28s linear infinite;
  align-items: center;
}
.page__brand-marquee__track:hover {
  animation-play-state: paused;
}
.page__brand-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 0 clamp(10px, 2vw, 24px);
  flex-shrink: 0;
}
@keyframes brand-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.page__brand-thumb {
  display: block;
  width: clamp(120px, 24vw, 240px);
  height: clamp(120px, 24vw, 240px);
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  transform: scale(var(--thumb-scale, 1));
  opacity: var(--thumb-opacity, 1);
  transition: opacity .25s;
  will-change: transform;
}
@media (min-width: 769px) {
  .page__brand-marquee {
    padding: clamp(20px, 3vw, 36px) 0;
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }
  .page__brand-marquee__track {
    animation: none;
    width: 100%;
    transform: none !important;
    justify-content: center;
  }
  .page__brand-marquee__group[aria-hidden="true"] {
    display: none;
  }
  .page__brand-marquee__group {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    gap: clamp(20px, 3.5vw, 48px);
    padding: 0 24px;
  }
  .page__brand-thumb {
    width: clamp(72px, 8vw, 120px);
    height: clamp(72px, 8vw, 120px);
  }
}
.page__brand-thumb:hover { opacity: .88; }
.page__brand-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  clip-path: circle(50% at 50% 50%);
}
.page__scroll-hint {
  margin-top: 56px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
  animation: bounce 2s infinite;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Brands board（參考版型）---- */
.page--brands {
  background: #000;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 28px) 20px 40px;
  min-height: 100vh;
  height: auto;
  scroll-snap-stop: normal;
}
.brands-board {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 28px);
}
.brand-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.brand-row__logo {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  transition: opacity .2s;
}
.brand-row__banner {
  display: block;
  transition: opacity .2s;
}
.brand-row__logo:hover,
.brand-row__banner:hover { opacity: .92; }
.brand-row__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  clip-path: circle(50% at 50% 50%);
}
.brand-row__banner {
  line-height: 0;
  overflow: hidden;
}
.brand-row__banner img {
  width: 100%;
  height: auto;
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn--line { background: var(--line); color: #fff; box-shadow: 0 6px 20px rgba(6,199,85,.3); }

/* ---- Support / Contact ---- */
.page--support { color: #fff; }
.page__overlay--support {
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.88) 100%);
}
.page__content--support {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: none;
  width: 100%;
  min-height: 100%;
  padding: calc(var(--header-h) + 24px) clamp(20px, 5vw, 48px) clamp(32px, 6vw, 56px);
}
.support-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  width: 100%;
  max-width: 960px;
  background: rgba(0,0,0,.72);
  padding: clamp(24px, 4vw, 40px) clamp(28px, 5vw, 48px);
}
.support-title {
  font-size: clamp(20px, 3vw, 26px);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}
.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.support-list li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
}
.support-list li::before {
  content: "‧";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.page--contact {
  color: var(--ink);
  flex-direction: column;
  justify-content: flex-start;
}
.page--contact .page__content--contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-hotline {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 32px 24px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(24,8,10,.92) 0%, rgba(70,12,18,.88) 45%, rgba(18,10,8,.94) 100%);
  border-top: 3px solid var(--red);
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
}
.contact-hotline__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-hotline__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(255,255,255,.72);
}
.contact-hotline__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
}
.contact-hotline__phone {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(177,17,24,.45);
  transition: color .2s, transform .2s;
}
.contact-hotline__phone:hover {
  color: #ffd4d4;
  transform: translateY(-1px);
}
.contact-hotline__sep {
  font-size: clamp(22px, 3vw, 32px);
  color: rgba(255,255,255,.28);
  line-height: 1;
}
.page--contact .copyright {
  margin: 14px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-align: center;
}
.info-title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--red);
  text-align: center;
  margin-bottom: 28px;
}
.info-title--sub { margin-top: 40px; }
.info-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
}
.info-list li {
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 15px;
  color: #444;
}
.info-list li::before {
  content: "‧";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.info-list--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

/* ---- Contact ---- */
.page__content--contact { max-width: 1000px; }
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  width: 200px;
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  color: var(--ink);
}
.contact-card__logo { height: 44px; width: auto; margin: 0 auto 10px; }
.contact-card h3 { font-size: 16px; font-family: "Noto Sans TC"; font-weight: 700; margin-bottom: 12px; }
.contact-card__qr {
  width: 130px;
  height: 130px;
  margin: 0 auto 12px;
  border: 1px solid #e0d8cc;
  border-radius: 8px;
}
.contact-card a { display: inline-block; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .page-dots { right: 8px; gap: 6px; }
  .page-dots__item { width: 32px; height: 32px; }
  .page-dots__item--label { font-size: 11px; }
  .brand-row {
    grid-template-columns: clamp(100px, 28vw, 200px) 1fr;
  }
  .brand-row__logo {
    width: clamp(100px, 28vw, 200px);
    height: clamp(100px, 28vw, 200px);
  }
  .support-panel { grid-template-columns: 1fr; gap: 28px; }
  .info-list--2col { grid-template-columns: 1fr; }
  .contact-card { width: 100%; max-width: 240px; }
  .contact-hotline { padding: 24px 16px 18px; }
  .contact-hotline__phones { gap: 8px 16px; }
  .contact-hotline__sep { display: none; }
  .contact-hotline__phone { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page__scroll-hint { animation: none; }
  .page__brand-marquee__track { animation: none; }
  .page__brand-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
