/* ==========================================================================
   JJ Market LLC — "The tea decides the mood."
   Warm paper, ink brushwork, and a palette that steeps per selected tea.
   body[data-tea] drives --acc/--acc2/--warm across the whole site.
   ========================================================================== */

:root {
  --paper: #f0e8d5;
  --paper-deep: #e9dfc7;
  --ink: #26201a;
  --ink-soft: #5c5240;
  --ink-faint: #93876e;
  --line: rgba(38, 32, 26, 0.16);
  --line-light: rgba(240, 232, 213, 0.22);

  --display: "Italiana", "Zen Old Mincho", serif;
  --body: "EB Garamond", "Zen Old Mincho", serif;
  --mincho: "Zen Old Mincho", serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  /* default tea: matcha */
  --acc: #5c8038;
  --acc2: #42622a;
  --warm: #8fae54;
}

body[data-tea="matcha"]    { --acc: #5c8038; --acc2: #42622a; --warm: #8fae54; }
body[data-tea="hojicha"]   { --acc: #9a6b43; --acc2: #75492c; --warm: #c09363; }
body[data-tea="sencha"]    { --acc: #7ba23f; --acc2: #5a7d2e; --warm: #a3c063; }
body[data-tea="gyokuro"]   { --acc: #2f5d46; --acc2: #1f4433; --warm: #4f7d5e; }
body[data-tea="genmaicha"] { --acc: #b28a2e; --acc2: #8a6a22; --warm: #d0ae5c; }
body[data-tea="wakocha"]   { --acc: #a84b32; --acc2: #7e3522; --warm: #c97b4e; }

html[lang="ja"] {
  --display: "Zen Old Mincho", serif;
  --body: "Zen Old Mincho", "EB Garamond", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ja"] body { line-height: 2; font-size: 0.98rem; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--warm); color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ===== paper grain, vignette, tea progress bar ===== */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse 128% 104% at 50% 34%, transparent 52%, rgba(92, 52, 20, 0.13) 100%);
}
.teabar {
  position: fixed; left: 0; bottom: 0; z-index: 91;
  height: 3px; width: 0%;
  background: var(--acc);
  transition: background 0.9s;
}

/* ===== typography helpers ===== */
h1, h2, h3, .brand-word, .footer-logo {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
html[lang="ja"] h2, html[lang="ja"] h3 { font-weight: 500; line-height: 1.45; letter-spacing: 0.05em; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--acc2);
  margin-bottom: 1.4rem;
  transition: color 0.9s;
}
.eyebrow.light { color: rgba(240, 232, 213, 0.66); }

/* ===== reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== language fade ===== */
body.lang-fading [data-i18n],
body.lang-fading [data-i18n-html] { opacity: 0; }
[data-i18n], [data-i18n-html] { transition: opacity 0.22s ease; }

/* ===== tea-swap fade (hero texts when switching tea) ===== */
.tea-swap { transition: opacity 0.28s ease, color 0.9s, background 0.9s; }
body.tea-fading .tea-swap { opacity: 0 !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(240, 232, 213, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-header.is-scrolled .header-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, var(--warm), var(--acc2));
  color: var(--paper);
  box-shadow: 0 2px 10px rgba(60, 40, 24, 0.3);
  display: grid; place-items: center;
  font-family: var(--mincho); font-size: 0.95rem; font-weight: 500;
  transition: background 0.9s;
}
.brand-word { font-size: 1.2rem; letter-spacing: 0.14em; display: flex; flex-direction: column; line-height: 1.1; }
.brand-word small {
  font-family: var(--body);
  font-size: 0.55rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 0.2rem;
}

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  position: relative; padding: 0.2rem 0;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--acc);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.9s;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--acc2);
  color: var(--acc2);
  border-radius: 999px;
  padding: 0.5rem 1.35rem !important;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.9s;
}
.nav-cta:hover { background: var(--acc2); color: var(--paper); }

.header-right { display: flex; align-items: center; gap: 1.4rem; }
.lang-switch { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; }
.lang-switch button {
  background: none; border: none; font: inherit;
  letter-spacing: 0.08em; color: var(--ink-soft);
  cursor: pointer; padding: 0.2rem 0.1rem;
  opacity: 0.5; transition: opacity 0.25s ease, border-color 0.9s;
  border-bottom: 1px solid transparent;
}
.lang-switch button.is-active { opacity: 1; color: var(--ink); border-bottom-color: var(--acc); }
.lang-switch button:hover { opacity: 1; }
.lang-divider { color: var(--line); }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative; z-index: 110;
}
.menu-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s ease, top 0.35s ease;
}
.menu-toggle span:nth-child(1) { top: 5px; }
.menu-toggle span:nth-child(2) { top: 15px; }
.menu-toggle.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { top: 10px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero stage
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(640px, 100svh, 1000px);
  overflow: hidden;
}
body.fine-pointer .hero { cursor: none; }
body.fine-pointer .hero a,
body.fine-pointer .hero button { cursor: pointer; }

.scene-cv, #cv-air {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.scene-cv { transition: opacity 0.9s ease; }
.scene-cv.is-hidden { opacity: 0; }
#cv-air { z-index: 3; }

.hero-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

.hero-copy {
  position: absolute;
  left: clamp(1.6rem, 6vw, 6.5rem);
  top: 50%;
  transform: translateY(-52%);
  max-width: 46rem;
}
.ghost {
  position: absolute; z-index: -1;
  left: -0.1em; top: -0.45em;
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(13rem, 30vw, 26rem); line-height: 1;
  color: var(--acc);
  opacity: 0.06;
  user-select: none;
}
.kicker {
  display: flex; align-items: center; gap: 1.1rem;
  font-size: 0.68rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--acc2);
  margin-bottom: 1.6rem;
}
.kicker::before {
  content: ""; width: 44px; height: 1px; background: var(--acc);
  flex: none; transition: background 0.9s;
}
.hero-copy h1 {
  font-size: clamp(4rem, 11.5vw, 10rem);
  letter-spacing: 0.06em; line-height: 0.94;
  white-space: nowrap; min-height: 0.94em;
  color: var(--ink);
}
h1 .lt { display: inline-block; opacity: 0; }
.tag {
  margin-top: 1.7rem; font-style: italic;
  font-size: clamp(1.08rem, 1.8vw, 1.4rem);
  color: var(--ink-soft); line-height: 1.55;
}
html[lang="ja"] .tag { font-style: normal; letter-spacing: 0.06em; }
.sub {
  margin-top: 0.9rem;
  font-size: clamp(0.86rem, 1.15vw, 0.98rem);
  color: var(--ink-faint); letter-spacing: 0.04em; line-height: 1.9;
  max-width: 34rem;
}

.cta-row {
  margin-top: 2.3rem;
  display: flex; align-items: center; gap: 1.7rem; flex-wrap: wrap;
  pointer-events: auto;
}
.wind-btn {
  border: 1px solid var(--acc2);
  background: rgba(240, 232, 213, 0.42);
  cursor: pointer; border-radius: 99px;
  padding: 0.95rem 2.1rem;
  font-family: var(--body);
  font-size: 0.66rem; letter-spacing: 0.4em; text-indent: 0.4em;
  color: var(--acc2);
  display: inline-flex; align-items: center; gap: 0.85rem;
  transition: background 0.4s, color 0.4s, transform 0.15s, box-shadow 0.4s, border-color 0.9s;
}
.wind-btn .k { font-family: var(--mincho); font-size: 1.05rem; letter-spacing: 0; text-indent: 0; }
.wind-btn:hover {
  background: var(--acc2); color: var(--paper);
  box-shadow: 0 10px 30px -12px rgba(60, 40, 30, 0.5);
}
.wind-btn:active { transform: scale(0.94); }
.btn-lg { padding: 1.15rem 2.8rem; font-size: 0.74rem; }

.line-link {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--acc);
  padding-bottom: 0.5rem;
  transition: border-color 0.9s;
}
.line-link .arr { color: var(--acc); transition: transform 0.35s, color 0.9s; }
.line-link:hover .arr { transform: translateX(8px); }

.hanko {
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: 0.72rem; line-height: 1; letter-spacing: 0.28em;
  color: #f4ecdc;
  background: var(--acc2);
  padding: 0.5rem 0.34rem;
  border-radius: 3px;
  transform: rotate(-3.5deg);
  box-shadow: 0 3px 10px rgba(60, 40, 30, 0.3);
  user-select: none;
  transition: background 0.9s, opacity 0.28s;
}
.hanko-static { display: inline-block; margin-left: 1.2rem; vertical-align: middle; }

.tea-rail {
  margin-top: 2.1rem;
  display: flex; gap: 0.55rem; flex-wrap: wrap;
  pointer-events: auto;
}
.tea-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
  border: 1px solid var(--line);
  background: rgba(240, 232, 213, 0.5);
  border-radius: 14px;
  padding: 0.55rem 0.85rem 0.45rem;
  cursor: pointer;
  font-family: var(--body);
  transition: border-color 0.4s, background 0.4s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}
.tea-pill .k { font-family: var(--mincho); font-size: 1.15rem; line-height: 1.2; color: var(--ink-soft); transition: color 0.4s; }
.tea-pill .n { font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); transition: color 0.4s; }
.tea-pill:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--acc); }
.tea-pill.is-active {
  border-color: var(--acc2);
  background: var(--acc2);
  box-shadow: 0 8px 22px -10px rgba(60, 40, 30, 0.5);
}
.tea-pill.is-active .k, .tea-pill.is-active .n { color: var(--paper); }

.hint {
  margin-top: 1.4rem; font-style: italic;
  font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.05em;
}
html[lang="ja"] .hint { font-style: normal; font-size: 0.76rem; }

.hero-kanji {
  position: absolute;
  right: clamp(1.4rem, 4.2vw, 4.4rem); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: flex-start; gap: 1.3rem;
}
.hero-kanji .txt {
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: clamp(1.5rem, 2.9vw, 2.4rem); font-weight: 500; letter-spacing: 0.5em;
  color: var(--acc); opacity: 0.88;
}
.hero-kanji .txt small {
  display: block; font-size: 0.5em; color: var(--ink-soft);
  margin-top: 1.8em; letter-spacing: 0.42em;
}
.hero-kanji .rule {
  width: 1px; height: clamp(10rem, 26vh, 15rem);
  background: linear-gradient(rgba(38, 32, 26, 0), rgba(38, 32, 26, 0.35), rgba(38, 32, 26, 0));
}

.meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  padding: 3rem 2.8rem 1.5rem;
  font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
  background: linear-gradient(to top, rgba(240, 232, 213, 0.9), rgba(240, 232, 213, 0));
}
.meta b { font-weight: 500; color: var(--acc2); font-variant-numeric: tabular-nums; letter-spacing: 0.18em; transition: color 0.9s; }
.meta .k { font-style: normal; font-family: var(--mincho); letter-spacing: 0.3em; color: var(--acc); transition: color 0.9s; }
.meta .m-c .k { margin-right: 0.7em; }
.meta .m-r .k { margin-left: 0.9em; }

/* ===== entrance choreography ===== */
.fx { opacity: 0; }
.go .fx { animation: rise 1.15s cubic-bezier(0.18, 0.7, 0.2, 1) forwards; }
.go .f1 { animation-delay: 0.35s; }
.go .f2 { animation-delay: 1.05s; }
.go .f3 { animation-delay: 1.25s; }
.go .f4 { animation-delay: 1.5s; }
.go .f5 { animation-delay: 1.75s; }
.go .f6 { animation-delay: 2s; }
.go h1 .lt { animation: lt 1.05s cubic-bezier(0.16, 0.8, 0.24, 1) forwards; animation-delay: calc(0.5s + var(--i) * 0.08s); }
.go h1.re .lt { animation-delay: calc(var(--i) * 0.055s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.go.ui-live .fx { animation: none !important; opacity: 1; }
@keyframes lt {
  0% { opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(7px); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.05rem 0;
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--mincho);
  font-size: 0.95rem; letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { padding: clamp(5rem, 11vw, 8.5rem) 0; }

.section-head {
  display: flex; align-items: center; gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-no {
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--acc2);
  width: 2.3rem; height: 2.3rem;
  border: 1.2px solid var(--acc);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  display: grid; place-items: center;
  transform: rotate(-5deg);
  transition: border-color 0.9s, color 0.9s;
  flex: none;
}
.section-label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.4em; text-transform: uppercase;
}
.section-head::after {
  content: ""; flex: 1; height: 1px; background: var(--line); align-self: center;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-intro h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.section-intro p { color: var(--ink-soft); max-width: 32rem; padding-top: 0.5rem; }
.aside {
  font-style: italic;
  font-size: 0.85rem !important;
  color: var(--acc2) !important;
  transition: color 0.9s;
}
html[lang="ja"] .aside { font-style: normal; font-size: 0.8rem !important; }

.ink-divider {
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--acc);
  opacity: 0.35;
  transition: color 0.9s;
}
.ink-divider svg { width: 100%; height: 26px; display: block; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.about-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.about-body p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.about-body p:first-child { color: var(--ink); font-size: 1.1rem; }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy {
  background: #2a3226;
  color: var(--paper);
  padding: clamp(6rem, 12vw, 10rem) 0;
  position: relative;
  overflow: hidden;
}
.philosophy .container { position: relative; }
.philosophy-kanji {
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  font-family: var(--mincho);
  font-size: clamp(9rem, 22vw, 19rem); line-height: 0.95;
  color: rgba(240, 232, 213, 0.05);
  writing-mode: vertical-rl;
  pointer-events: none; user-select: none;
}
.philosophy blockquote { max-width: 46rem; position: relative; }
.philosophy-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  line-height: 1.5;
  margin-bottom: 2.2rem;
}
html[lang="ja"] .philosophy-quote { line-height: 1.9; font-weight: 500; }
.philosophy cite {
  font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240, 232, 213, 0.55);
  display: flex; align-items: center;
}

/* ==========================================================================
   Teas
   ========================================================================== */
.tea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tea-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 1.8rem 2.4rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.tea-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--card);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.tea-card[data-tea] { cursor: pointer; }
.tea-card:hover, .tea-card:focus-visible {
  background: var(--paper-deep);
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 18px 40px -22px rgba(60, 40, 30, 0.45);
  z-index: 1;
  outline: none;
}
.tea-card:hover::before, .tea-card:focus-visible::before { transform: scaleX(1); }
.tea-kanji {
  display: block;
  font-family: var(--mincho);
  font-size: 3.2rem; line-height: 1;
  color: var(--card);
  opacity: 0.4;
  margin-bottom: 1.6rem;
  transition: opacity 0.4s ease;
  transform-origin: 50% 90%;
}
.tea-card:hover .tea-kanji { opacity: 0.85; animation: wobble 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes wobble {
  25% { transform: rotate(-7deg) translateY(-4px); }
  60% { transform: rotate(4deg); }
  100% { transform: none; }
}
.tea-card.stamped { animation: stamped 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes stamped { 40% { transform: scale(0.96) rotate(-1deg); } }
.tea-card h3 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.tea-jp { font-size: 0.78rem; color: var(--card); letter-spacing: 0.2em; margin-bottom: 1rem; }
.tea-desc { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   Origins
   ========================================================================== */
.origins { background: var(--paper-deep); }
.origins-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.origin-map {
  position: sticky;
  top: 7rem;
  padding: 1rem 0;
}
.jmap { width: 100%; max-width: 420px; margin: 0 auto; display: block; overflow: visible; }
.jmap-land path {
  fill: rgba(38, 32, 26, 0.07);
  stroke: rgba(38, 32, 26, 0.4);
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.jmap-marker { cursor: pointer; }
.jmap-marker .dot {
  fill: var(--acc);
  transition: fill 0.9s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 0 0;
}
.jmap-marker .halo {
  fill: none;
  stroke: var(--acc);
  stroke-width: 1;
  opacity: 0.5;
  transform-origin: 0 0;
  animation: halo 2.6s ease-out infinite;
  transition: stroke 0.9s;
}
@keyframes halo {
  0% { transform: scale(0.35); opacity: 0.7; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}
.jmap-marker .jm-label {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  fill: var(--ink-soft);
  opacity: 0.8;
  paint-order: stroke;
  stroke: var(--paper-deep);
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill 0.4s, opacity 0.4s;
}
.jmap-marker.is-hot .dot { transform: scale(1.9); }
.jmap-marker.is-hot .jm-label { fill: var(--acc2); opacity: 1; font-weight: 700; }
.origin-item.is-hot { padding-left: 0.8rem; }
.origin-item.is-hot .origin-jp { transform: rotate(-2deg) scale(1.04); color: var(--acc2); }
.origin-list { border-top: 1px solid var(--line); }
.origin-item {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.origin-item:hover { padding-left: 0.8rem; }
.origin-jp {
  font-family: var(--mincho);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--acc);
  line-height: 1.1;
  transition: color 0.9s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.origin-item:hover .origin-jp { transform: rotate(-2deg) scale(1.04); }
.origin-item h3 { display: inline-block; font-size: 1.4rem; margin-right: 0.9rem; }
.origin-pref {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--acc2);
  transition: color 0.9s;
}
.origin-item p:not(.origin-pref) {
  font-size: 0.94rem; color: var(--ink-soft);
  margin-top: 0.4rem; max-width: 40rem;
}
.origins-note { margin-top: 2rem; font-size: 0.88rem; color: var(--ink-faint); font-style: italic; }
html[lang="ja"] .origins-note { font-style: normal; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: #262019; color: var(--paper); }
.services .section-label { color: var(--paper); }
.services .section-head::after { background: var(--line-light); }
.services .section-intro p { color: rgba(240, 232, 213, 0.6); }
.services .section-no { border-color: var(--warm); color: var(--warm); }

.service-list { border-top: 1px solid var(--line-light); }
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item:hover { padding-left: 1rem; }
.service-no {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--warm);
  width: 2.6rem; height: 2.6rem;
  border: 1.2px solid var(--warm);
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  display: grid; place-items: center;
  transform: rotate(4deg);
  transition: border-color 0.9s, color 0.9s;
  align-self: start;
}
.service-item h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: 0.7rem; }
.service-item p { color: rgba(240, 232, 213, 0.6); max-width: 44rem; font-size: 0.95rem; }

/* ==========================================================================
   Why
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-item {
  background: var(--paper);
  padding: 2rem 1.6rem 2.2rem;
  transition: background 0.4s ease, transform 0.3s ease;
}
.why-item:hover { background: var(--paper-deep); transform: rotate(-0.5deg); }
.why-item h3 { font-size: 1.12rem; margin-bottom: 0.7rem; }
.why-item h3::after {
  content: "";
  display: block;
  width: 1.8rem; height: 1.5px;
  background: var(--acc);
  margin-top: 0.55rem;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.9s;
}
.why-item:hover h3::after { width: 3.4rem; }
html[lang="ja"] .why-item h3 { font-size: 1rem; }
.why-item p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   Wakokoro brand panel
   ========================================================================== */
.brandpanel {
  background:
    radial-gradient(ellipse 70% 90% at 85% 20%, rgba(240, 220, 170, 0.12), transparent 60%),
    #33402d;
  color: var(--paper);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.brandpanel-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
  position: relative;
}
.brandpanel-text h2 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); margin-bottom: 1.4rem; }
.brandpanel-text > p { max-width: 32rem; color: rgba(240, 232, 213, 0.75); margin-bottom: 2.4rem; }
.btn-light {
  display: inline-block;
  border: 1px solid rgba(240, 232, 213, 0.6);
  border-radius: 99px;
  padding: 0.95rem 2.2rem;
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease;
}
.btn-light:hover { background: var(--paper); color: #33402d; transform: translateY(-2px) rotate(-0.8deg); }
.brandpanel-kanji {
  font-family: var(--mincho);
  font-size: clamp(7rem, 16vw, 14rem); line-height: 1;
  color: rgba(240, 232, 213, 0.08);
  writing-mode: vertical-rl;
  user-select: none;
  flex-shrink: 0;
}

/* ==========================================================================
   Company
   ========================================================================== */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.company-grid h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.company-table div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.company-table div:first-child { border-top: 1px solid var(--line); }
.company-table dt {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.35rem;
}
.company-table dd { font-size: 0.98rem; }
.company-table a { border-bottom: 1px solid var(--acc); transition: opacity 0.25s ease, border-color 0.9s; }
.company-table a:hover { opacity: 0.6; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background:
    radial-gradient(ellipse 60% 70% at 20% 100%, rgba(240, 220, 170, 0.08), transparent 65%),
    #211c15;
  color: var(--paper);
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
}
.cup {
  position: relative;
  width: 64px; margin: 0 auto 2.2rem;
  color: var(--warm);
  transition: color 0.9s;
}
.cup-svg { width: 64px; height: 40px; }
.steam {
  position: absolute;
  left: 50%; bottom: 42px;
  width: 8px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(240, 232, 213, 0.5), transparent 70%);
  filter: blur(2px);
  animation: steam 3.2s ease-in-out infinite;
  opacity: 0;
}
.steam.s1 { margin-left: -14px; animation-delay: 0s; }
.steam.s2 { margin-left: -3px; animation-delay: 1.1s; height: 32px; }
.steam.s3 { margin-left: 9px; animation-delay: 2.2s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(6px) scaleY(0.7); }
  35% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-26px) translateX(4px) scaleY(1.25); }
}
.contact-title { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 1.8rem; }
.contact-lead { max-width: 36rem; margin: 0 auto 3rem; color: rgba(240, 232, 213, 0.65); }
.contact .wind-btn {
  background: transparent;
  border-color: rgba(240, 232, 213, 0.55);
  color: var(--paper);
}
.contact .wind-btn:hover { background: var(--paper); color: #211c15; }
.contact-note {
  margin-top: 2.6rem;
  font-size: 0.72rem; letter-spacing: 0.16em;
  color: rgba(240, 232, 213, 0.45);
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #191510;
  color: var(--paper);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-logo { font-size: 1.6rem; margin-bottom: 0.6rem; letter-spacing: 0.1em; }
.footer-tag { font-size: 0.88rem; color: rgba(240, 232, 213, 0.55); }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.7rem 3rem;
  font-size: 0.78rem; letter-spacing: 0.1em;
}
.footer-nav a { color: rgba(240, 232, 213, 0.7); transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--warm); }
.footer-bottom {
  padding-top: 1.6rem;
  font-size: 0.74rem;
  color: rgba(240, 232, 213, 0.4);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-k { font-family: var(--mincho); letter-spacing: 0.4em; color: var(--warm); opacity: 0.5; transition: color 0.9s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .tea-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0;
    background: var(--paper);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 105;
  }
  .main-nav a { font-size: 1rem; }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .menu-toggle { display: block; }

  .section-intro, .about-grid, .company-grid { grid-template-columns: 1fr; }

  .hero { height: auto; min-height: 100svh; }
  .hero-copy {
    position: relative;
    left: auto; top: auto; transform: none;
    padding: 7.5rem 1.4rem 9rem;
    max-width: none;
  }
  .hero-copy h1 { white-space: normal; font-size: clamp(3.4rem, 16vw, 5.4rem); }
  .kicker { font-size: 0.56rem; letter-spacing: 0.36em; }
  .kicker::before { width: 24px; }
  .hero-kanji { display: none; }
  .hint { display: none; }
  .meta { padding: 2.4rem 1.3rem 1.1rem; font-size: 0.54rem; }
  .meta .m-r { display: none; }

  .origins-body { grid-template-columns: 1fr; }
  .origin-map { position: static; order: -1; padding: 0; }
  .jmap { max-width: 300px; }
  .origin-item { grid-template-columns: 1fr; gap: 0.8rem; align-items: start; }
  .service-item { grid-template-columns: 52px 1fr; gap: 1.2rem; }
  .brandpanel-kanji { display: none; }
}

@media (max-width: 560px) {
  .tea-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .cta-row { gap: 1.2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
  .fx, h1 .lt { opacity: 1 !important; animation: none !important; transform: none !important; filter: none !important; }
  .steam { animation: none; opacity: 0; }
  #windBtn, .hint { display: none; }
  body.fine-pointer .hero { cursor: auto; }
}
