/* Taste storefront — hero-object / JBV. Replaces alibarbar style.css chrome. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: var(--track-display); line-height: var(--leading-display); font-weight: 700; margin: 0 0 .6em; }
p { font-family: var(--font-text); margin: 0 0 1em; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.muted { color: var(--muted); }

/* Promo / warning */
.promo-bar {
  background: var(--paper);
  color: var(--bg);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .55rem var(--pad);
}
.warning-bar {
  background: #1a0a0a;
  color: #ffb4b4;
  text-align: center;
  font-size: 13px;
  padding: .4rem var(--pad);
}

/* Header — wordmark + one action (Taste: no heavy nav chrome) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink);
}
.logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.logo-mark { display: none; }
.site-header-nav {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: 14px; font-weight: 600;
}
.site-header-nav a { color: var(--muted); }
.site-header-nav a:hover, .site-header-nav a.is-active { color: var(--ink); }
.header-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper); color: var(--bg) !important;
  padding: .65rem 1rem; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.header-cta:hover { filter: brightness(1.08); color: var(--accent-ink) !important; }
.nav-toggle { display: none; background: none; border: 0; outline: none; color: var(--ink); padding: .4rem .6rem; }
@media (max-width: 820px) {
  .site-header-nav { display: none; }
  .site-header-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); padding: 1rem var(--pad) 1.25rem;
    
  }
  .nav-toggle { display: inline-block; }
}

/* Buttons */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border: 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .85rem 1.25rem; text-decoration: none;
}
.btn-gold, .btn-primary { background: var(--paper); color: var(--bg) !important; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 0; outline: none; }
.btn-paper { background: var(--paper); color: var(--bg) !important; }

/* Hero — object large + view-with-two-cards geometry (adapted) */
.hero-object {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bg);
}
.hero-object-media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-object-media img {
  width: 140%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  position: absolute; right: -12%; top: 0;
}
.hero-object-scrim {
  position: absolute; inset: 0 auto 0 0; width: 55%;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  pointer-events: none;
}
.hero-object-copy {
  position: relative; z-index: 2;
  grid-column: 1;
  align-self: center;
  padding: var(--pad);
  max-width: 34rem;
}
.hero-object-copy h1 {
  font-size: clamp(44px, 3.9vw, 60px);
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--paper);
}
.hero-object-copy .lede {
  font-size: 18px; max-width: 40ch; color: var(--paper);
  margin-bottom: 1.5rem;
}
.hero-object-fact {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 16px; color: var(--paper); margin-top: 1.25rem;
}
.hero-object-fact::before {
  content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.hero-cards {
  position: absolute; z-index: 2;
  right: var(--pad); bottom: var(--pad);
  display: flex; gap: 16px;
}
.hero-card {
  width: min(210px, 42vw);
  background: var(--surface);
  display: block; color: var(--ink);
}
.hero-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hero-card-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); color: var(--bg);
  height: 40px; padding: 0 .75rem; font-size: 14px; font-weight: 600;
}
@media (max-width: 820px) {
  .hero-object { grid-template-columns: 1fr; min-height: auto; }
  .hero-object-media { position: relative; height: 55svh; }
  .hero-object-media img { width: 150%; right: -20%; object-position: center top; }
  .hero-object-scrim { width: 100%; background: color-mix(in srgb, var(--bg) 75%, transparent); inset: auto 0 0 0; height: 45%; }
  .hero-object-copy { padding: 1.5rem var(--pad) 1rem; }
  .hero-object-copy h1 { font-size: 9vw; }
  /* Cards become an eyebrow above the next section on phone — omit */
  .hero-cards { display: none; }
}

/* Showcase — two objects two fields */
.showcase-split { display: grid; grid-template-columns: 1fr 1fr; }
.showcase-panel {
  position: relative; min-height: 92svh; overflow: hidden;
  padding: 2rem var(--pad) 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.showcase-panel:nth-child(1) { background: var(--field); }
.showcase-panel:nth-child(2) { background: var(--surface); }
.showcase-panel h2 { position: relative; z-index: 3; font-size: clamp(28px, 3vw, 40px); max-width: 10ch; }
.showcase-panel img {
  position: absolute; top: -8%; right: -20%;
  width: 140%; max-width: none; height: auto;
  pointer-events: none; mix-blend-mode: normal;
}
.showcase-meta {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.showcase-meta .name { font-size: 20px; font-weight: 600; max-width: 18ch; }
.showcase-meta .price { font-size: 17px; color: var(--muted); }
.showcase-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 820px) {
  .showcase-split { grid-template-columns: 1fr; }
  .showcase-panel { min-height: 78svh; }
  /* Avoid CTA "商品を見る" reading as eyebrow above this heading */
  .showcase-panel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}

/* How-it-works — one verb */
.how-stack .how-panel {
  min-height: 100svh; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface);
  
}
.how-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .35;
}
.how-verb {
  position: sticky; top: 45%;
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 220px);
  text-transform: uppercase; letter-spacing: var(--track-display);
  line-height: .85; z-index: 2; color: var(--paper);
  text-align: center; padding: 0 var(--pad);
}
.how-note {
  position: absolute; left: var(--pad); bottom: var(--pad);
  z-index: 2; max-width: 36ch; font-size: 18px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: .75rem 1rem;
}

/* Trust strip (compact, not AU card row) */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  
}
.trust-strip > div {
  background: var(--bg); padding: 1.25rem var(--pad);
  font-size: 14px;
}
.trust-strip strong { display: block; font-size: 15px; margin-bottom: .25rem; }
.trust-strip span { color: var(--muted); font-family: var(--font-text); }
@media (max-width: 820px) { .trust-strip { grid-template-columns: 1fr 1fr; } }

/* Product grid */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.section-title { font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column;
  border: 0; outline: none;
}
.product-card a { color: inherit; }
.product-card .thumb, .product-card .product-card-media {
  aspect-ratio: 1; overflow: hidden; background: var(--field);
}
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body, .product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.product-card h3, .product-card .product-title { font-size: 15px; line-height: 1.25; letter-spacing: -0.02em; text-transform: none; font-family: var(--font-ui); font-weight: 600; }
.product-card .price, .product-price { font-size: 16px; font-weight: 700; color: var(--paper); }
.product-card .btn { margin-top: auto; width: 100%; }

/* FAQ split */
.faq-split {
  display: grid; grid-template-columns: 5fr 7fr; gap: 2rem;
  background: var(--field); padding: clamp(48px, 8vw, 96px) var(--pad);
}
.faq-split h2 { font-size: clamp(32px, 3.5vw, 44px); text-transform: uppercase; }
.faq-facts { font-size: 18px; color: var(--muted); margin: 1rem 0 1.5rem; }
.faq-list details {
  border: 0; padding: .85rem 0; margin: 0;
  
}
.faq-list summary {
  cursor: pointer; font-size: 20px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "▾"; opacity: .6; }
.faq-list details[open] summary::after { content: "▴"; }
.faq-list p { font-size: 17px; color: var(--muted); margin: .6rem 0 0; }
.faq-photo { position: relative; }
.faq-photo img.tall { width: 100%; aspect-ratio: 3/4; object-fit: cover; margin-top: -40px; }
.faq-photo img.square {
  position: absolute; left: -8%; bottom: 8%;
  width: 38%; aspect-ratio: 1; object-fit: cover;
  border: 6px solid var(--field);
}
@media (max-width: 820px) {
  .faq-split { grid-template-columns: 1fr; }
  .faq-photo { order: -1; }
  .faq-photo img.tall { margin-top: 0; aspect-ratio: 4/5; }
  .faq-photo img.square { left: auto; right: 4%; bottom: -6%; width: 38%; }
}

/* CTA object returns */
.cta-object {
  min-height: 90svh; display: grid; grid-template-columns: 8fr 4fr;
  gap: 2rem; align-items: center; overflow: hidden;
  background: var(--surface); padding: 0 0 0 var(--pad);
}
.cta-object-media { overflow: hidden; height: 90svh; }
.cta-object-media img { width: 130%; height: 100%; object-fit: cover; object-position: left center; }
.cta-object-copy { padding-right: var(--pad); }
.cta-object-copy h2 { font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; }
@media (max-width: 820px) {
  .cta-object { grid-template-columns: 1fr; min-height: auto; padding: 2rem var(--pad); }
  .cta-object-media { height: 55svh; order: 2; }
  .cta-object-media img { width: 140%; }
}

/* Footer — back of postcard feel */
.site-footer {
  background: var(--bg); padding: 3rem var(--pad) 2rem;
}
.footer-card {
  background: var(--paper); color: #1a1a1a;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  clip-path: polygon(0 12px, 8% 0, 16% 12px, 24% 0, 32% 12px, 40% 0, 48% 12px, 56% 0, 64% 12px, 72% 0, 80% 12px, 88% 0, 96% 12px, 100% 0, 100% 100%, 0 100%);
}
.footer-card h3 { color: #1a1a1a; text-transform: uppercase; font-size: 28px; }
.footer-card a { color: #1a1a1a; display: block; margin: .35rem 0; font-size: 16px; }
.footer-card a:hover { color: var(--accent); }
.footer-imprint {
  text-align: center; color: var(--muted); font-size: 13px; margin-top: 1.25rem;
}
.age-footer-note { text-align: center; color: var(--muted); font-size: 13px; margin: 1rem 0 0; }
@media (max-width: 820px) {
  .footer-card { grid-template-columns: 1fr; clip-path: polygon(0 10px, 16% 0, 33% 10px, 50% 0, 66% 10px, 83% 0, 100% 10px, 100% 100%, 0 100%); }
}

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, #000);
  display: grid; place-items: center; padding: var(--pad);
}
.age-card {
  background: var(--surface); max-width: 28rem; width: 100%;
  padding: 2rem; border: 0; outline: none;
}
.age-card .age-kicker { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.age-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
body.age-locked main, body.age-locked .site-header, body.age-locked .promo-bar, body.age-locked .site-footer, body.age-locked .warning-bar { filter: blur(6px); pointer-events: none; user-select: none; }

/* Alerts / forms (checkout still works) */
.alert { padding: .85rem 1rem; margin: 1rem 0; border: 0; outline: none; }
.alert-info { background: var(--surface); }
.alert-error { background: #3a1520; border-color: var(--danger); }
.alert-success { background: #143028; }
.panel { background: var(--surface); padding: 1.25rem; border: 0; outline: none; }
.form-grid { display: grid; gap: 1rem; }
.form-grid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: .35rem; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 0; outline: none; padding: .75rem .85rem; font: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.split.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.5rem; }
@media (max-width: 900px) { .split.cart-layout { grid-template-columns: 1fr; } }
.cart-summary { background: var(--surface); padding: 1.25rem; border: 0; outline: none; align-self: start; }
.checkout-order-lines { list-style: none; padding: 0; margin: 0; }
.checkout-order-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; align-items: center; margin-bottom: .85rem; }
.checkout-order-thumb img { width: 64px; height: 64px; object-fit: cover; }
.page-hero { padding: 2rem 0 1rem; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); text-transform: uppercase; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: left; padding: .75rem;  vertical-align: top; }
.legal-table th { width: 30%; color: var(--muted); font-weight: 600; }

/* Shop sidebar soften */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }
.shop-sidebar { background: var(--surface); padding: 1rem; border: 0; outline: none; }
.shop-sidebar a { display: block; padding: .4rem 0; color: var(--muted); }
.shop-sidebar a:hover { color: var(--ink); }

/* Kill old gold-strip / heavy AU chrome if residual markup appears */
.gold-strip, .site-top, .site-nav-bar, .wa-float, .pay-icons, .tp-badge, .footer-avatars { display: none !important; }


/* Motion layer (Taste step 9) — transform/opacity only */
@media (prefers-reduced-motion: no-preference) {
  .hero-object-copy, .showcase-meta, .trust-strip > div, .product-card, .faq-split, .cta-object-copy {
    animation: taste-rise .7s ease both;
  }
  .showcase-panel:nth-child(2) .showcase-meta { animation-delay: .08s; }
  .product-card:nth-child(2) { animation-delay: .05s; }
  .product-card:nth-child(3) { animation-delay: .1s; }
  .product-card:nth-child(4) { animation-delay: .15s; }
  .hero-object-media img {
    animation: taste-drift 12s ease-in-out infinite alternate;
  }
}
@keyframes taste-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes taste-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translateX(-2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-object-media img { animation: none; }
}


/* Checkout: COD radio / age+terms checkboxes align with labels */
.checkout-pay-option,
.checkout-age-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.checkout-pay-option input[type="radio"],
.checkout-age-confirm input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--accent, #c9a227);
}
.checkout-pay-option span,
.checkout-age-confirm span {
  flex: 1;
  line-height: 1.45;
  text-align: left;
}
.form-grid .checkout-pay-option,
.form-grid .checkout-age-confirm {
  display: flex;
  margin-bottom: 0.35rem;
}
.checkout-payment {
  text-align: left;
}

/* Mobile nav panel solid so content never ghosts through */
@media (max-width: 820px) {
  .site-header { position: sticky; background: var(--bg); }
  .site-header-nav.is-open {
    background: var(--bg);
    z-index: 60;
    box-shadow: 0 12px 24px color-mix(in srgb, #000 35%, transparent);
  }
}

/* Shop/cart/news heroes: keep JP readable (no forced English all-caps look) */
.page-hero h1 { text-transform: none; letter-spacing: 0.02em; }
