
/* ===== Shared chrome overrides for v0 themes ===== */
body { background: var(--bg); color: var(--ink); font-family: var(--font-text); }
.promo-bar { background: var(--announce); color: var(--announce-ink); }
.site-header { background: var(--v0-primary); color: var(--accent-ink); border-bottom: 0; }
.site-header .logo img { filter: brightness(0) invert(1); max-height: 40px; width: auto; }
.site-header-nav a { color: rgba(255,255,255,.92) !important; font-weight: 700; }
.site-header-nav a:hover, .site-header-nav a.is-active { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { color: #fff !important; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.header-cart { background: var(--paper); color: var(--v0-ink-fg) !important; border-radius: 10px; padding: .45rem .85rem; gap: .5rem; }
.header-cart:hover { filter: brightness(1.1); color: var(--v0-ink-fg) !important; }
.header-cart-badge { background: var(--v0-accent); color: var(--v0-accent-ink, #fff); border-radius: 999px; min-width: 1.35rem; height: 1.35rem; display:inline-grid; place-items:center; font-size: .75rem; font-weight: 800; }
.btn-primary, .btn-gold, .btn-add { background: var(--v0-primary) !important; color: var(--accent-ink) !important; border-radius: var(--radius-sm); }
.btn-primary:hover, .btn-add:hover, .btn-gold:hover { filter: brightness(1.08); color: #fff !important; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink) !important; background: transparent; border-radius: 999px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.product-card .price-now, .product-card .price { color: var(--ink); }
.site-footer { background: var(--paper); color: var(--v0-ink-fg); }
.footer-card { background: transparent; color: var(--v0-ink-fg); }
.footer-card a { color: rgba(255,255,255,.8); }
.footer-card a:hover { color: #fff; }
.footer-card h3 { color: #fff; text-transform: none; }
.footer-imprint, .age-footer-note { color: rgba(255,255,255,.55); }
.line-fab { background: #06C755; }
.v0-wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.v0-display { font-family: var(--font-display); letter-spacing: var(--track-display); line-height: var(--leading-display); }
@keyframes v0-rise { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform:none;} }
.v0-rise { animation: v0-rise .65s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .v0-rise { animation: none; } }

/* ===== RED 自販機 theme ===== */
body.theme-vm .site-header { background: var(--v0-primary); }
body.theme-vm .header-cart { background: #17181a; border-radius: 8px; }
body.theme-vm .header-cart-badge, body.theme-vm .header-cart .header-cart-badge { background: transparent; color: #fff; font-family: var(--font-display); font-size: 1.15rem; min-width: auto; height: auto; text-shadow: 0 0 8px rgba(244,245,246,.45); }
body.theme-vm .header-cart-label::after { content: none; }

.vm-hero { padding: 2rem 0 2.5rem; }
.vm-hero-shell { background: var(--v0-primary); border-radius: 1.5rem; padding: .85rem; }
.vm-hero-grid { display: grid; gap: .85rem; }
@media (min-width: 900px) { .vm-hero-grid { grid-template-columns: 1.35fr 1fr; } }
.vm-hero-media { position: relative; overflow: hidden; border-radius: 1rem; background: #17181a; }
.vm-hero-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; display:block; }
.vm-hero-badge { position:absolute; top:1rem; left:1rem; background: var(--v0-accent); color:#fff; border-radius:8px; padding:.35rem .75rem; font-family: var(--font-display); font-size:1.05rem; }
.vm-hero-cap { display:flex; justify-content:space-between; gap:1rem; align-items:center; color:#f4f5f6; padding:.75rem 1rem; font-family: var(--font-display); }
.vm-hero-cap .live { display:inline-flex; align-items:center; gap:.45rem; font-size:.75rem; font-family: var(--font-text); }
.vm-hero-cap .dot { width:8px; height:8px; border-radius:50%; background: var(--v0-primary); animation: blink 1.4s steps(2,end) infinite; }
@keyframes blink { 50% { opacity:.35; } }
.vm-hero-copy { background: var(--surface); border-radius: 1rem; padding: 1.5rem; display:flex; flex-direction:column; justify-content:space-between; gap:1.25rem; }
.vm-hero-kicker { font-size:.875rem; font-weight:700; color: var(--muted); }
.vm-hero-copy h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); margin:0; }
.vm-hero-copy h1 .hi { color: var(--v0-accent); }
.vm-hero-copy p { color: var(--muted); margin:0; line-height:1.7; }
.vm-specs { display:grid; grid-template-columns: repeat(3,1fr); gap:.5rem; }
.vm-specs div { background: var(--field); border-radius:10px; padding:.55rem .7rem; }
.vm-specs dt { font-size:.7rem; color: var(--muted); }
.vm-specs dd { margin:0; font-size:.85rem; font-weight:700; }
.vm-cta-row { display:flex; flex-wrap:wrap; gap:.75rem; }
.vm-pricebox { flex:1; min-width:140px; background:#17181a; color:#f4f5f6; border-radius:10px; padding:.85rem 1rem; display:flex; justify-content:space-between; align-items:baseline; }
.vm-pricebox .yen { font-family: var(--font-display); font-size:1.75rem; text-shadow: 0 0 8px rgba(244,245,246,.45); }
.vm-cta { display:inline-flex; align-items:center; justify-content:center; background: var(--v0-primary); color:#fff; font-weight:700; border-radius:10px; padding:.85rem 1.4rem; }
.vm-promises { display:grid; gap:.5rem; margin-top:1rem; }
@media (min-width:700px){ .vm-promises { grid-template-columns: repeat(3,1fr);} }
.vm-promises li { list-style:none; background: var(--surface); border-radius:12px; padding:.85rem 1rem; font-size:.875rem; font-weight:700; display:flex; gap:.6rem; align-items:center; }
.vm-promises .ico { color: var(--v0-accent); font-size:1.1rem; }

.vm-machine { padding: 0 0 3rem; }
.vm-machine-head { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:flex-end; margin-bottom:1.25rem; }
.vm-machine-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); margin:0; }
.vm-machine-head p { color: var(--muted); margin:.35rem 0 0; }
.vm-filters { display:flex; flex-wrap:wrap; gap:.5rem; }
.vm-filters button { border:2px solid var(--line); background: var(--surface); border-radius:8px; padding:.4rem 1rem; font-weight:700; font-size:.875rem; cursor:pointer; color: var(--ink); }
.vm-filters button.is-on { background:#17181a; color:#fff; border-color:#17181a; }
.vm-cabinet { background: var(--v0-primary); border-radius:1.5rem; padding:.85rem; }
.vm-cabinet-inner { background:#17181a; border-radius:1rem; padding:1rem; }
.vm-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: .85rem  .75rem; margin:0; padding:0; list-style:none; }
@media (min-width:900px){ .vm-grid { grid-template-columns: repeat(4,1fr); gap:1.1rem .75rem; } }
.vm-slot { display:flex; flex-direction:column; }
.vm-slot-img { background: var(--surface); border-radius:10px 10px 0 0; overflow:hidden; }
.vm-slot-img img { width:100%; aspect-ratio:1; object-fit:cover; display:block; }
.vm-slot-body { background: var(--field); border-radius:0 0 10px 10px; padding:.75rem; display:flex; flex-direction:column; gap:.45rem; flex:1; }
.vm-slot-tags { display:flex; justify-content:space-between; gap:.35rem; align-items:center; }
.vm-slot-tags .cool { background: var(--v0-accent); color:#fff; font-size:.7rem; font-weight:700; border-radius:4px; padding:.15rem .4rem; }
.vm-slot-tags .series { font-size:.7rem; font-weight:700; color: var(--muted); }
.vm-slot-body h3 { font-size:.85rem; margin:0; line-height:1.35; }
.vm-slot-body h3 a { color: inherit; }
.vm-slot-body .meta { font-size:.72rem; color: var(--muted); margin:0; line-height:1.4; }
.vm-slot-buy { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:.5rem; background:#17181a; color:#f4f5f6; border:0; border-radius:8px; padding:.55rem .7rem; width:100%; cursor:pointer; font: inherit; }
.vm-slot-buy .yen { font-family: var(--font-display); font-size:1.05rem; text-shadow: 0 0 8px rgba(244,245,246,.45); }
.vm-slot-buy .led { width:14px; height:14px; border-radius:50%; border:2px solid rgba(244,245,246,.6); background:transparent; }
.vm-slot-buy.is-lit .led { background: var(--v0-primary); }
.vm-tray { display:flex; flex-direction:column; gap:.75rem; margin-top:.75rem; }
@media (min-width:700px){ .vm-tray { flex-direction:row; } }
.vm-tray-slot { flex:1; min-height:3.5rem; background:#17181a; color:#f4f5f6; border-radius:12px; padding:1rem 1.25rem; box-shadow: inset 0 6px 14px rgba(0,0,0,.55); font-size:.875rem; display:flex; align-items:center; }
.vm-tray-count { background:#17181a; color:#f4f5f6; border-radius:12px; padding:.85rem 1.25rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; min-width:12rem; }
.vm-tray-count .n { font-family: var(--font-display); font-size:1.75rem; text-shadow: 0 0 8px rgba(244,245,246,.45); }

.vm-info { display:grid; gap:1.25rem; padding: 0 0 3rem; }
@media (min-width:900px){ .vm-info { grid-template-columns: 1fr 1.3fr; } }
.vm-flow { background: var(--surface); border-radius:1rem; padding:1.5rem; }
.vm-flow h2 { font-family: var(--font-display); font-size:1.75rem; margin:0 0 .5rem; }
.vm-flow > p { color: var(--muted); margin:0 0 1rem; }
.vm-steps { list-style:none; margin:0; padding:0; }
.vm-steps li { display:flex; gap:1rem; border-top:1px dashed var(--line); padding:1rem 0; }
.vm-steps li:first-child { border-top:0; }
.vm-steps .n { font-family: var(--font-display); font-size:1.75rem; color: var(--v0-primary); line-height:1; }
.vm-steps h3 { margin:0 0 .25rem; font-size:1rem; }
.vm-steps p { margin:0; font-size:.875rem; color: var(--muted); }
.vm-note { background: var(--field); border-radius:10px; padding:.75rem 1rem; font-size:.75rem; color: var(--muted); margin-top:1rem; }
.vm-faq h2 { font-family: var(--font-display); font-size:1.75rem; margin:0 0 1rem; }
.vm-faq details { background: var(--surface); border-radius:12px; margin-bottom:.5rem; }
.vm-faq summary { list-style:none; cursor:pointer; font-weight:700; padding:1rem 1.15rem; display:flex; justify-content:space-between; gap:1rem; }
.vm-faq summary::-webkit-details-marker { display:none; }
.vm-faq details p { margin:0; padding:0 1.15rem 1rem; font-size:.875rem; color: var(--muted); line-height:1.6; }
.vm-faq summary::after { content:"▾"; color: var(--muted); transition: transform .2s; }
.vm-faq details[open] summary::after { transform: rotate(180deg); }

.vm-news { padding: 0 0 3rem; }
.vm-news-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:1rem; }
.vm-news-head h2 { font-family: var(--font-display); font-size:1.75rem; margin:0; }
.vm-news-head a { font-size:.875rem; font-weight:700; }
.vm-news-list { list-style:none; margin:0; padding:0; background: var(--surface); border-radius:1rem; overflow:hidden; }
.vm-news-list li { border-top:1px solid var(--line); }
.vm-news-list li:first-child { border-top:0; }
.vm-news-list a { display:flex; flex-direction:column; gap:.5rem; padding:1rem 1.15rem; }
@media (min-width:700px){ .vm-news-list a { flex-direction:row; align-items:center; gap:1.25rem; } }
.vm-news-list .date { font-family: var(--font-display); font-size:.85rem; color: var(--muted); }
.vm-news-list .tag { background:#17181a; color:#fff; font-size:.7rem; font-weight:700; border-radius:4px; padding:.15rem .45rem; width:fit-content; }
.vm-news-list .ttl { font-weight:700; }

/* Footer LINE panel accent */
body.theme-vm .footer-line-qr-col { background: var(--v0-primary); color:#fff; border-radius:1rem; padding:1.25rem; }
body.theme-vm .footer-line-qr-kicker { font-family: var(--font-display); font-size:1.25rem; }

/* Inner pages */
body.theme-vm .brand-hero, body.theme-vm .faq-split, body.theme-vm .showcase-split { background: var(--bg); }
body.theme-vm .trust-card, body.theme-vm .how-step-card { background: var(--surface); }

/* ===== Hover / active / focus contrast fixes (2026-10-31) =====
   Keep WCAG-ish readable pairs: white on solid primary/dark; dark ink on yellow/coral/light.
   Also stop storefront a:hover from flipping solid CTA text to accent-on-accent. */
.btn-primary, .btn-gold, .btn-add,
a.btn-primary, a.btn-gold, a.btn-add {
  background: var(--v0-primary) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-gold:hover, .btn-add:hover,
.btn-primary:active, .btn-gold:active, .btn-add:active,
.btn-primary:focus-visible, .btn-gold:focus-visible, .btn-add:focus-visible,
a.btn-primary:hover, a.btn-gold:hover, a.btn-add:hover,
a.btn-primary:active, a.btn-gold:active, a.btn-add:active,
a.btn-primary:focus-visible, a.btn-gold:focus-visible, a.btn-add:focus-visible {
  background: var(--v0-primary) !important;
  color: #fff !important;
  filter: brightness(1.08);
}
.btn-outline, a.btn-outline, .btn-ghost, a.btn-ghost,
.btn-outline:hover, a.btn-outline:hover, .btn-ghost:hover, a.btn-ghost:hover,
.btn-outline:active, a.btn-outline:active, .btn-ghost:active, a.btn-ghost:active,
.btn-outline:focus-visible, a.btn-outline:focus-visible,
.btn-ghost:focus-visible, a.btn-ghost:focus-visible {
  color: var(--ink) !important;
}
.btn-outline:hover, a.btn-outline:hover,
.btn-outline:active, a.btn-outline:active {
  background: var(--field, #f0f0f0) !important;
  border-color: var(--ink) !important;
}
.header-cart-badge {
  background: var(--v0-accent);
  color: var(--v0-accent-ink, #fff) !important;
}
.header-cart:hover .header-cart-badge {
  /* group-b flips badge to white plate — keep accent ink readable */
  background: #fff !important;
  color: var(--v0-primary) !important;
}
.footer-card a:hover, .footer-card a:active, .footer-card a:focus-visible {
  color: #fff !important;
}
/* Mobile open nav sits on light surface — never keep desktop white nav text */
@media (max-width: 820px) {
  .site-header-nav.is-open a {
    color: var(--ink) !important;
    opacity: 1;
  }
  .site-header-nav.is-open a:hover,
  .site-header-nav.is-open a.is-active,
  .site-header-nav.is-open a:focus-visible,
  .site-header-nav.is-open a:active {
    color: var(--v0-primary) !important;
  }
  /* group-b paints .nav-toggle on white plate — never keep theme-v0 desktop white text */
  .nav-toggle {
    color: var(--ink) !important;
    border-color: var(--line);
  }
  .nav-toggle:hover, .nav-toggle:active, .nav-toggle:focus-visible {
    color: var(--ink) !important;
  }
}

/* RED 自販機 — solid CTA / chip hover contrast */
.vm-cta, a.vm-cta,
.vm-cta:hover, a.vm-cta:hover,
.vm-cta:active, a.vm-cta:active,
.vm-cta:focus-visible, a.vm-cta:focus-visible {
  background: var(--v0-primary) !important;
  color: #fff !important;
  filter: none;
}
.vm-cta:hover, a.vm-cta:hover, .vm-cta:active, a.vm-cta:active {
  filter: brightness(1.08);
}
.vm-filters button:hover, .vm-filters button:focus-visible {
  border-color: var(--ink);
  color: var(--ink) !important;
  background: var(--surface);
}
.vm-filters button.is-on,
.vm-filters button.is-on:hover,
.vm-filters button.is-on:active {
  background: #17181a !important;
  color: #fff !important;
  border-color: #17181a;
}
.vm-slot-buy:hover, .vm-slot-buy:active, .vm-slot-buy:focus-visible {
  background: #17181a !important;
  color: #f4f5f6 !important;
  filter: brightness(1.12);
}
.vm-slot-tags .cool { color: #fff !important; } /* accent is blue #1463d6 */
.vm-news-list a:hover, .vm-news-list a:active, .vm-news-list a:focus-visible {
  color: var(--v0-accent) !important;
}
.vm-news-list a:hover .ttl, .vm-news-list a:focus-visible .ttl { color: inherit; }
body.theme-vm .header-cart:hover,
body.theme-vm .header-cart:active,
body.theme-vm .header-cart:focus-visible {
  background: var(--v0-primary) !important;
  color: #fff !important;
  filter: none;
}

/* Red footer LINE card — storefront kicker/lead use var(--bg) (~4.3:1); force pure white */
body.theme-vm .footer-line-qr-col,
body.theme-vm .footer-line-qr-col .footer-line-qr-kicker,
body.theme-vm .footer-line-qr-col .footer-line-qr-lead,
body.theme-vm .footer-line-qr-col .footer-line-qr-hint {
  color: #fff !important;
}
