:root {
  --ink: #090705;
  --soft-ink: #16110f;
  --charcoal: #201816;
  --ivory: #fffdf8;
  --rice: #f8f0e4;
  --warm-white: #fff8ed;
  --gold: #e7b94e;
  --deep-gold: #b8872d;
  --sakura: #f5a3b8;
  --petal: #ffd8e4;
  --branch: #5c2d1e;
  --glass: rgba(255,255,255,.12);
  --glass-strong: rgba(255,255,255,.22);
  --shadow: 0 28px 90px rgba(9,7,5,.24);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245,163,184,.20), transparent 32vw),
    linear-gradient(180deg, var(--ivory), var(--rice) 56%, #fffaf1);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--petal); color: var(--ink); }
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 9999; background: var(--ink); color: var(--ivory);
  padding: 12px 16px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }
.site-shell { position: relative; min-height: 100vh; }
.grain {
  pointer-events: none; position: fixed; inset: 0; opacity: .08; z-index: 1000;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(9,7,5,.3) 49% 51%, transparent 52% 100%);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
.nav {
  position: fixed; z-index: 100; left: 0; right: 0; top: 0; padding: 18px clamp(18px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(255,253,248,.86); backdrop-filter: blur(18px); box-shadow: 0 18px 40px rgba(9,7,5,.08); padding-top: 10px; padding-bottom: 10px;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 174px; }
.brand-lockup img { width: min(220px, 42vw); height: auto; filter: drop-shadow(0 12px 28px rgba(9,7,5,.12)); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); color: var(--ink); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { position: relative; padding: 10px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--gold); transition: right .25s ease; }
.nav-link:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn, .menu-btn {
  border: 1px solid rgba(9,7,5,.18); background: rgba(255,255,255,.5); color: var(--ink); border-radius: 999px; padding: 10px 14px;
  min-width: 44px; min-height: 44px; box-shadow: 0 8px 22px rgba(9,7,5,.08);
}
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: .75rem; }
.menu-btn { display: none; }
.mobile-panel {
  position: fixed; z-index: 200; inset: 0; background: rgba(255,253,248,.96); backdrop-filter: blur(18px);
  transform: translateX(100%); transition: transform .35s ease; padding: 96px 28px 28px; display: flex; flex-direction: column; gap: 22px;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; }
.close-menu { position: absolute; right: 22px; top: 22px; border: 0; background: var(--ink); color: var(--ivory); border-radius: 999px; padding: 12px 16px; }
.hero {
  min-height: 100vh; position: relative; overflow: hidden; display: grid; align-items: center;
  padding: 120px clamp(20px, 5vw, 70px) 72px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20%; opacity: .82;
  background:
    radial-gradient(circle at 24% 20%, rgba(231,185,78,.32), transparent 20%),
    radial-gradient(circle at 72% 26%, rgba(245,163,184,.26), transparent 19%),
    radial-gradient(circle at 50% 86%, rgba(92,45,30,.18), transparent 27%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url('../images/tokiju-cosmic-hero-reference.webp');
  background-size: cover; background-position: center; opacity: .12; mix-blend-mode: multiply;
}
.hero-grid { position: relative; z-index: 2; width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 78px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--deep-gold); }
.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero-title {
  margin: 0; max-width: 780px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
  font-size: clamp(4rem, 10vw, 9.8rem); line-height: .82; letter-spacing: -.06em;
}
.hero-title span { display: block; }
.brush { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: transparent; -webkit-text-stroke: 1.2px var(--ink); text-shadow: 0 18px 40px rgba(231,185,78,.2); }
.hero-copy { margin: 26px 0 0; max-width: 610px; font-size: clamp(1.06rem, 1.6vw, 1.35rem); color: rgba(9,7,5,.74); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  border: 1px solid var(--ink); border-radius: 999px; min-height: 52px; padding: 15px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 650; letter-spacing: .05em; transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}
.btn-primary { background: var(--ink); color: var(--ivory); box-shadow: 0 18px 42px rgba(9,7,5,.22); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(9,7,5,.28); }
.btn-secondary { background: rgba(255,255,255,.26); color: var(--ink); }
.btn-secondary:hover { transform: translateY(-3px); background: var(--ivory); }
.hero-orbit { position: relative; min-height: 540px; border-radius: 48px; background: linear-gradient(145deg, rgba(255,255,255,.54), rgba(255,255,255,.12)); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(231,185,78,.36); }
#tokiju-three { width: 100%; height: 100%; min-height: 540px; display: block; }
.logo-orbit {
  position: absolute; inset: auto 30px 30px 30px; border-radius: 34px; padding: 18px;
  background: rgba(255,253,248,.72); border: 1px solid rgba(231,185,78,.34); backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(9,7,5,.14);
}
.logo-orbit img { width: min(360px, 100%); margin: 0 auto; }
.floating-kanji {
  position: absolute; right: -18px; top: 16px; color: rgba(9,7,5,.07); font-family: "Noto Serif JP", serif; writing-mode: vertical-rl;
  font-size: clamp(7rem, 12vw, 15rem); line-height: .85; pointer-events: none;
}
.section { padding: clamp(74px, 10vw, 142px) clamp(20px, 5vw, 70px); position: relative; }
.section-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-eyebrow { text-transform: uppercase; color: var(--deep-gold); letter-spacing: .24em; font-size: .78rem; margin: 0 0 16px; }
.section-title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.8rem, 6vw, 6.4rem); line-height: .9; letter-spacing: -.045em; }
.section-copy { margin: 20px 0 0; max-width: 680px; color: rgba(9,7,5,.68); font-size: 1.08rem; }
.promise { background: var(--ink); color: var(--ivory); overflow: hidden; }
.promise::before { content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(231,185,78,.32); border-radius: 50%; left: -160px; top: -120px; }
.promise .section-copy { color: rgba(255,253,248,.7); }
.pillar-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar-card { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,253,248,.06); border: 1px solid rgba(255,253,248,.14); min-height: 230px; }
.pillar-index { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; }
.pillar-card h3 { margin: 42px 0 12px; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; }
.pillar-card p { color: rgba(255,253,248,.7); margin: 0; }
.products { background: linear-gradient(180deg, var(--ivory), #fbf1df); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter-btn { border: 1px solid rgba(9,7,5,.16); background: rgba(255,255,255,.55); border-radius: 999px; padding: 11px 16px; transition: .2s ease; }
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.product-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { position: relative; overflow: hidden; background: rgba(255,255,255,.62); border: 1px solid rgba(9,7,5,.08); border-radius: var(--radius-xl); box-shadow: 0 24px 60px rgba(9,7,5,.09); transition: transform .28s ease, box-shadow .28s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(9,7,5,.16); }
.product-media { aspect-ratio: 1/1; overflow: hidden; background: var(--rice); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 24px; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--deep-gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.product-body h3 { margin: 16px 0 10px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; line-height: .95; }
.product-body p { color: rgba(9,7,5,.68); min-height: 74px; }
.product-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 20px; }
.small-btn { border: 1px solid var(--ink); border-radius: 999px; background: transparent; padding: 10px 14px; }
.add-btn { background: var(--ink); color: var(--ivory); }
.ritual { background: var(--rice); }
.ritual-board { margin-top: 46px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.concern-panel, .ritual-result { border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 48px); background: rgba(255,253,248,.7); border: 1px solid rgba(9,7,5,.08); box-shadow: 0 24px 70px rgba(9,7,5,.08); }
.concern-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.concern-btn { border: 1px solid rgba(9,7,5,.14); background: var(--ivory); border-radius: 18px; padding: 16px; text-align: left; }
.concern-btn.active { background: var(--ink); color: var(--ivory); }
.ritual-line { display: grid; gap: 14px; margin-top: 24px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 20px; background: rgba(231,185,78,.12); }
.step-number { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--gold); background: rgba(255,255,255,.6); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; }
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: rgba(9,7,5,.64); }
.science { background: var(--ink); color: var(--ivory); overflow: hidden; }
.science::after { content: "時寿"; position: absolute; right: -2vw; bottom: -3vw; color: rgba(255,253,248,.035); font-family: "Noto Serif JP", serif; font-size: min(26vw, 360px); }
.science .section-copy { color: rgba(255,253,248,.7); }
.ingredient-grid { position: relative; z-index: 2; margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ingredient-card { border-radius: 26px; border: 1px solid rgba(255,253,248,.13); background: linear-gradient(180deg, rgba(255,253,248,.08), rgba(255,253,248,.03)); padding: 24px; min-height: 230px; }
.ingredient-card h3 { margin: 0 0 18px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; line-height: 1; color: var(--gold); }
.ingredient-card p { color: rgba(255,253,248,.72); }
.gallery { background: #fff9ef; }
.gallery-track { margin-top: 46px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: dense; }
.gallery-item { min-height: 220px; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 70px rgba(9,7,5,.11); border: 1px solid rgba(9,7,5,.07); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item.wide { grid-column: span 6; }
.gallery-item.tall { grid-column: span 3; grid-row: span 2; }
.gallery-item.square { grid-column: span 3; }
.story { background: linear-gradient(135deg, #fffaf1, #fce8ef); }
.story-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 44px; align-items: center; }
.story-card { background: rgba(255,253,248,.72); border: 1px solid rgba(9,7,5,.08); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); }
.story-logo { width: min(520px, 100%); margin: 0 auto; filter: drop-shadow(0 28px 58px rgba(9,7,5,.16)); }
.contact { background: var(--ink); color: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.contact .section-copy { color: rgba(255,253,248,.7); }
.form-card { background: rgba(255,253,248,.08); border: 1px solid rgba(255,253,248,.16); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1px solid rgba(255,253,248,.2); background: rgba(255,253,248,.1); color: var(--ivory); border-radius: 16px; padding: 15px 16px; outline: none; }
.form-card input::placeholder, .form-card textarea::placeholder { color: rgba(255,253,248,.56); }
.form-card select option { color: var(--ink); }
.form-card small { display: block; margin-top: 14px; color: rgba(255,253,248,.58); }
.footer { padding: 44px clamp(20px, 5vw, 70px); background: #050403; color: rgba(255,253,248,.68); }
.footer-inner { width: min(var(--max), 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-logo { width: 180px; filter: invert(1) brightness(2.6); opacity: .88; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.cart-drawer {
  position: fixed; z-index: 300; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; background: var(--ivory); color: var(--ink); box-shadow: -28px 0 70px rgba(9,7,5,.22);
  transform: translateX(110%); transition: transform .35s ease; padding: 24px; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cart-items { flex: 1; overflow: auto; padding: 20px 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border: 1px solid rgba(9,7,5,.1); border-radius: 18px; padding: 10px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.close-cart { border: 0; background: var(--ink); color: var(--ivory); border-radius: 999px; padding: 10px 13px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .ritual-board, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-orbit, #tokiju-three { min-height: 430px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide, .gallery-item.tall, .gallery-item.square { grid-column: span 6; grid-row: span 1; }
}
@media (max-width: 640px) {
  .nav { padding-left: 14px; padding-right: 14px; }
  .brand-lockup img { width: 180px; }
  .hero { padding-top: 108px; }
  .hero-title { font-size: clamp(3.4rem, 19vw, 5.4rem); }
  .hero-actions, .section-heading-row, .footer-inner { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .pillar-grid, .product-grid, .ingredient-grid, .form-grid { grid-template-columns: 1fr; }
  .concern-grid { grid-template-columns: 1fr; }
  .gallery-track { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.tall, .gallery-item.square { grid-column: auto; }
  .product-body p { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}