:root {
  --bg: #FFFFFF;
  --bg-alt: #F0F0F0;
  --bg-card: #FFFFFF;
  --text: #171717;
  --text-secondary: #333333;
  --text-muted: #6C6C6C;
  --accent: #111111;
  --accent-light: #E8C8B0;
  --accent-glow: rgba(17, 17, 17, 0.08);
  --border: #DCDCDC;
  --border-light: #E9E9E9;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --container: 1760px;
  --narrow: 960px;
  --font-system: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", "Helvetica", "Arial", sans-serif;
  --font-display: var(--font-system);
  --font-body: var(--font-system);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-handwriting: "Snell Roundhand", "Caveat", "Ma Shan Zheng", "Kaiti SC", "STKaiti", cursive;
  --header-h: 72px;

  --brand-jiushiye: #5A7A4B;
  --brand-blacktree: #2C241E;
  --brand-matcha: #6B8F5E;
  --brand-yoajung: #6BA3D6;
  --brand-moqu: #4A8C5C;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.45;
  font-size: 14px;
}

main { padding-top: var(--header-h); }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.7; }

img, video {
  display: block;
  width: 100%;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ========== Container ========== */
.wide-container,
.container {
  width: min(var(--container), calc(100% - 80px));
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #DADADA;
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 132px;
  width: 132px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.brand img {
  width: 132px;
  height: auto;
  object-fit: contain;
}

.brand small,
.footer-logo small {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #111111;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #111111;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.nav a::after { display: none; }

.nav a:hover,
.nav a.active {
  opacity: 0.7;
}

.header-tools {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #DCDCDC;
  border-radius: 999px;
  background: #FFFFFF;
  color: #111111;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s;
}

.language-toggle:hover {
  border-color: #999;
  background: #F9F9F9;
}

.language-toggle svg {
  width: 12px;
  height: 12px;
  stroke: #999;
  transition: transform 0.2s;
}

.language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  min-width: 120px;
  padding: 4px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.language-menu.open {
  display: grid;
  gap: 2px;
}

.language-menu button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #111111;
  font-family: var(--font-body);
  font-size: 12px;
  white-space: nowrap;
  transition: background 0.15s;
}

.language-menu button:hover {
  background: #F0F0F0;
}

.language-menu button.active {
  font-weight: 600;
  background: #F5F5F5;
}

.mobile-language-switcher {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
}

.mobile-language-switcher button {
  min-height: 34px;
  padding: 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.mobile-language-switcher button:hover {
  opacity: 0.7;
}

.mobile-language-switcher button.active {
  font-weight: 700;
  color: #111111;
}

.user-greeting {
  font-size: 12px;
  font-weight: 500;
  color: #111111;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 0 22px;
  background: var(--bg);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ========== Hero / Carousel ========== */
.home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 933;
  max-height: 80vh;
  overflow: hidden;
  background: #F7F7F7;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1);
}

.home-slide.active {
  opacity: 1;
  transform: scale(1);
}

.home-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slide::after { display: none; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 18px;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dots button.active {
  background: #FFFFFF;
  box-shadow: none;
}

/* ========== Brand Visual (shared) ========== */
.brand-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 933;
  max-height: 80vh;
  overflow: hidden;
  background: #F7F7F7;
}

.brand-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-visual-overlay { display: none; }

/* ========== About Snapshot ========== */
.about-snapshot {
  position: relative;
  padding: 100px 0 80px;
  background: #FFFFFF;
}

.about-snapshot h1 {
  margin: 0 0 80px;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 600;
  font-family: var(--font-body);
}

.about-snapshot h1 small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.about-list {
  display: grid;
  gap: 64px;
  max-width: 720px;
}

.about-list article {
  position: relative;
  padding-left: 0;
}

.about-list article::before { display: none; }

.about-list article span {
  display: block;
  margin-bottom: 16px;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.about-list h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

.about-list p {
  margin-top: 12px;
  color: #333333;
  font-size: 14px;
  line-height: 1.75;
}

.qr-home {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  margin: 60px 0 0 auto;
}

.qr-home-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.qr-home-text span {
  font-size: 13px;
  color: #666666;
}

.qr-home-text strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #111111;
}

.qr-image {
  width: 132px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ========== Group Intro ========== */
.group-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  align-items: center;
  padding: 100px max(60px, calc((100vw - var(--container)) / 2));
  background: #F0F0F0;
}

.group-text {
  max-width: 560px;
  justify-self: center;
}

.group-text h2,
.brand-matrix h2 {
  margin-bottom: 34px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--font-body);
  text-align: center;
}

.group-text p {
  margin: 0 0 18px;
  color: #111111;
  font-size: 13px;
  line-height: 1.75;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 38px 58px;
  align-items: center;
  text-align: center;
}

.group-intro .brand-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 24px;
  justify-items: center;
}

.brand-wall a {
  display: grid;
  gap: 10px;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-wall a:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.brand-wall img {
  width: 100%;
  max-width: 240px;
  max-height: 96px;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-wall a:hover img {
  transform: scale(1.06);
}

.brand-wall span,
.brand-wall small { display: none; }

/* ========== Metrics Strip ========== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 80px 110px;
  background: #FFFFFF;
  text-align: center;
}

.metric-item {
  position: relative;
}

.metric-item:not(:last-child)::after { display: none; }

.metric-item > span,
.metric-item em {
  display: block;
  font-style: normal;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
}

.metric-item strong {
  display: block;
  margin: 8px 0 2px;
  color: #111111;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-body);
}

/* ========== About Page ========== */
.simple-page {
  padding: 80px 0 0;
  background: #FFFFFF;
}

.simple-page h1 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.about-page {
  min-height: auto;
  padding-bottom: 40px;
}

.concept-map-image {
  display: block;
  width: 100%;
  margin: 0;
  object-fit: contain;
}

.company-copy {
  max-width: 720px;
  margin: 80px auto 0;
  text-align: left;
}

.company-copy p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
  text-align: left;
}

.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px 60px;
  max-width: 880px;
  margin: 80px auto 0;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.value-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f0f0f0;
}

.value-title {
  display: inline-block;
  margin-top: 22px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.value-title:hover { opacity: 0.7; }

.value-desc {
  margin: 8px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

/* ========== Join Page ========== */
.join-page {
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 0;
}

.join-page h1 {
  margin: 0 0 100px;
}

.join-banner {
  display: block;
  width: 100%;
  margin: 80px 0;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 120px;
}

.contact-cards article {
  min-width: 0;
  text-align: center;
}

.contact-cards .join-copy {
  margin: 0 0 24px;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.contact-cards .join-addr {
  display: inline-block;
  max-width: 100%;
  color: #111111;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.contact-cards .join-addr:hover {
  opacity: 0.7;
}

.join-metrics { min-height: 0; }

/* ========== Brand Profile ========== */
.brand-profile {
  padding: 80px 0;
  background: var(--bg);
}

.breadcrumb {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.breadcrumb strong { color: var(--text); }

.brand-intro {
  margin: 200px auto 0;
  max-width: 700px;
  text-align: center;
}

.brand-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  font-family: var(--font-display);
  color: var(--text-secondary);
}

.brand-qr {
  display: grid;
  justify-items: center;
  margin-top: 200px;
  text-align: center;
}

.brand-qr img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 180px;
}

.brand-qr span {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.brand-qr strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
}

.brand-qr small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ========== Brand Matrix ========== */
.brand-matrix {
  padding: 100px 80px;
  background: var(--bg-alt);
  text-align: center;
}

.brand-matrix .brand-wall {
  width: min(1100px, 100%);
  margin: 0 auto;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  min-height: auto;
  overflow: hidden;
  padding: 130px 0 150px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url('images/detail-thai-tea-closeup.png') center calc(40%)/cover no-repeat;
  color: #111111;
}

.footer-logo {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 0 auto 160px;
  font-size: 0;
  line-height: 1.35;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  color: #111111;
}

.footer-logo img {
  width: 168px;
  height: auto;
  object-fit: contain;
}

.footer-main {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: 1fr 1.4fr 1fr 1fr 1fr;
  gap: 88px;
  margin: 0 auto;
  padding-top: 100px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.footer-column,
.footer-qr {
  display: grid;
  align-content: start;
  gap: 24px;
  color: #111111;
  font-size: 15px;
  font-weight: 400;
}

.footer-qr {
  justify-items: center;
  text-align: center;
  gap: 8px;
  justify-self: end;
}

.footer-qr span {
  font-size: 13px;
  color: #666666;
}

.footer-column strong,
.footer-column .footer-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

.footer-column a {
  color: #111111;
  font-size: 15px;
  font-weight: 400;
}

.footer-qr {
  justify-items: center;
  text-align: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 400;
}

.footer-qr .qr-image {
  width: 120px;
  border-radius: 0;
}

.footer-qr strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.footer-icp {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.35);
}

.footer-icp a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: rgba(17, 17, 17, 0.7);
}

/* ========== Admin ========== */
.admin-shell {
  min-height: calc(100vh - var(--header-h));
  padding: 70px 0;
  background: var(--bg-alt);
}

.card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 28px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-box.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.asset-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.asset-preview img,
.asset-preview video {
  height: 100%;
  object-fit: cover;
}

.asset-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.asset-actions a,
.asset-actions button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.asset-actions a {
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}

.asset-actions button {
  background: var(--text);
  color: #ffffff;
}

.asset-actions button:hover {
  background: var(--accent);
}

/* ========== Animations ========== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

body.is-ready {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1)  { transition-delay: 0.00s; }
.stagger.visible > *:nth-child(2)  { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3)  { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4)  { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5)  { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6)  { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7)  { transition-delay: 0.48s; }
.stagger.visible > *:nth-child(8)  { transition-delay: 0.56s; }
.stagger.visible > *:nth-child(9)  { transition-delay: 0.64s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.72s; }

/* ========== Responsive ========== */
@media (max-width: 1500px) {
  :root { --header-h: 76px; }

  .nav { gap: 20px; }
}

@media (max-width: 1200px) {
  .group-intro {
    grid-template-columns: 1fr;
    padding: 70px 40px;
  }

  .simple-page,
  .about-page,
  .join-page,
  .brand-profile {
    min-height: auto;
  }

  .brand-intro {
    margin-top: 40px;
  }

  .brand-qr {
    margin-top: 40px;
  }

  .contact-cards {
    gap: 90px;
  }
}

@media (max-width: 1100px) {
  .wide-container,
  .container {
    width: min(100% - 40px, var(--container));
  }

  .nav,
  .user-greeting { display: none; }

  .menu-toggle { display: inline-grid; place-items: center; }

  .about-snapshot,
  .simple-page,
  .join-page,
  .brand-profile { min-height: auto; }

  .about-snapshot { padding-bottom: 140px; }

  .qr-home {
    position: static;
    margin-top: 60px;
  }

  .group-intro,
  .metrics-strip,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .group-intro {
    padding: 70px 32px;
  }

  .group-text { justify-self: center; }

  .brand-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-strip { gap: 36px; }

  .simple-page { padding: 80px 0 120px; }

  .company-copy { margin-top: 80px; }

  .contact-cards {
    gap: 60px;
    flex-direction: column;
    align-items: center;
  }

  .brand-intro { margin-top: 120px; }
  .brand-qr { margin-top: 140px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .brand {
    min-width: 0;
    font-size: 14px;
  }

  .brand::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .home-hero { min-height: 0; }
  .brand-visual { min-height: 0; }

  .about-snapshot h1 {
    font-size: 36px;
  }

  .about-snapshot h1 small {
    font-size: 16px;
  }

  .about-list h2 {
    font-size: 22px;
  }

  .group-text h2,
  .brand-matrix h2 {
    font-size: 32px;
  }

  .brand-wall { gap: 28px 20px; }
  .brand-wall span { font-size: 22px; }
  .brand-wall small { font-size: 14px; }

  .metric-item::after { display: none; }

  .metric-item strong { font-size: 48px; }

  .join-banner { margin: 80px 0; }

  .contact-cards .join-addr { font-size: 24px; }

  .brand-intro p { font-size: 22px; }

  .site-footer { min-height: auto; }
  .footer-logo { margin-bottom: 50px; }
  .footer-main { gap: 24px; padding-top: 40px; }
  .footer-column { font-size: 18px; }

  .grid-3 { grid-template-columns: 1fr; }
}
