:root {
    --bg: #0d0e12;
    --bg-panel: #14161c;
    --bg-card: #191c24;
    --ink: #eceae4;
    --ink-soft: #b7b4ac;
    --ink-muted: #7f7d77;
    --line: rgba(236, 234, 228, 0.09);
    --gold: #d8b25c;
    --gold-deep: #a8853c;
    --radius-lg: 22px;
    --radius-md: 14px;
    --font-display: "Cormorant Garamond", serif;
    --font-body: "Inter", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(60vw 40vw at 85% -10%, rgba(216, 178, 92, 0.08), transparent 60%),
        radial-gradient(50vw 40vw at -10% 30%, rgba(127, 184, 164, 0.06), transparent 60%),
        var(--bg);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(18px, 3vw, 36px);
    background: linear-gradient(180deg, rgba(13, 14, 18, 0.9), rgba(13, 14, 18, 0));
}

.brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.24em;
    color: var(--gold);
}

.brand span { color: var(--ink); letter-spacing: 0.24em; }

.site-nav {
    display: flex;
    gap: 26px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.site-nav a { position: relative; transition: color 0.25s ease; }
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== Stage ===== */
.stage-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(20px, 3vw, 44px);
    padding: 96px clamp(18px, 3vw, 44px) 48px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: stretch;
}

.stage-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(80% 70% at 50% 108%, rgba(216, 178, 92, 0.12), transparent 55%),
        radial-gradient(120% 90% at 50% 0%, #171921 0%, #0e1016 70%);
    min-height: 62vh;
}

#gl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
}

#gl:active { cursor: grabbing; }

.stage-hint {
    position: absolute;
    left: 18px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.stage-hint span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hint-drag::before { content: "⟲"; color: var(--gold); }
.hint-wheel::before { content: "⤢"; color: var(--gold); }
.hint-tap::before { content: "◎"; color: var(--gold); }

.price-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 2px;
    justify-items: end;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(13, 14, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(216, 178, 92, 0.28);
}

.price-label {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.price-tag strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

#shotBtn {
    margin-top: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    transition: all 0.25s ease;
}

#shotBtn:hover {
    color: var(--gold);
    border-color: rgba(216, 178, 92, 0.5);
}

/* ===== Panel ===== */
.panel {
    align-self: center;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 2.4vw, 34px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.panel-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.model-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.model-name em { font-style: italic; color: var(--gold); }

.model-desc {
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-bottom: 26px;
}

.control-group { margin-bottom: 24px; }

.control-group h2 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.control-group.is-target h2 { color: var(--gold); }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }

.swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ink-soft);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease,
        transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease;
}

.swatch i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset -2px -3px 5px rgba(0, 0, 0, 0.4);
}

.swatch:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 178, 92, 0.4);
    color: var(--ink);
}

.swatch.is-active {
    border-color: var(--gold);
    background: rgba(216, 178, 92, 0.08);
    color: var(--ink);
}

.control-group.flash .swatches {
    animation: group-flash 0.9s ease;
}

@keyframes group-flash {
    0%   { box-shadow: 0 0 0 0 rgba(216, 178, 92, 0); border-radius: 18px; }
    30%  { box-shadow: 0 0 0 6px rgba(216, 178, 92, 0.18); }
    100% { box-shadow: 0 0 0 0 rgba(216, 178, 92, 0); }
}

.spec-list {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: 9px;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.82rem;
}

.spec-list span { color: var(--ink-muted); }
.spec-list b { font-weight: 500; color: var(--ink-soft); }

/* ===== Detail section ===== */
.detail-section {
    padding: clamp(72px, 10vw, 130px) 0;
    scroll-margin-top: 80px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 36px); }

.kicker {
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.detail-section h2 {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.3;
    margin-bottom: 42px;
}

.point-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.point-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.35s ease, box-shadow 0.35s ease;
}

.point-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 178, 92, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.point-num {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.2em;
}

.point-card h3 { font-size: 1.05rem; font-weight: 700; margin: 12px 0 10px; }

.point-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Reveal / footer ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.point-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }
.point-grid > .reveal:nth-child(3) { transition-delay: 0.24s; }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 26px clamp(18px, 3vw, 36px) 34px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.site-footer a:hover { color: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .stage-section {
        grid-template-columns: 1fr;
        padding-top: 84px;
    }
    .stage-wrap { min-height: 58vh; }
    .site-nav a:not(:last-child) { display: none; }
}

@media (max-width: 560px) {
    .price-tag strong { font-size: 1.2rem; }
    .model-name { font-size: 1.4rem; }
    .point-grid { grid-template-columns: 1fr; }
    .hint-wheel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .control-group.flash .swatches { animation: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Scene presets / gallery / toast (v2) ===== */
.scene-row { display: flex; gap: 8px; }

.scene-btn {
    flex: 1;
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 9px 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: all 0.25s ease;
}

.scene-btn:hover { color: var(--ink); border-color: rgba(216, 178, 92, 0.4); }

.scene-btn.is-active {
    color: #17130a;
    background: linear-gradient(94deg, #e8c877, #d8b25c);
    border-color: transparent;
}

.action-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 4px; }

.action-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: all 0.25s ease;
}

.action-btn:hover { color: var(--ink); border-color: rgba(216, 178, 92, 0.45); }

.action-btn.primary {
    color: #17130a;
    background: linear-gradient(94deg, #ecd28c, #d8b25c);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(216, 178, 92, 0.25);
}

.action-btn.primary:hover { transform: translateY(-2px); }

.share-note {
    margin-top: 10px;
    font-size: 0.68rem;
    color: var(--ink-muted);
}

.gallery-wrap {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

.gallery-title {
    font-family: var(--font-en);
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 12px;
}

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

.gallery-item { position: relative; }

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1.35;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-item img:hover {
    transform: scale(1.04);
    border-color: rgba(216, 178, 92, 0.55);
}

.gallery-item figcaption {
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.62rem;
    color: var(--ink-muted);
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

.g-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(13, 14, 18, 0.8);
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .g-del { opacity: 1; }
.g-del:hover { color: #ff8080; }

.wc-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 16px);
    z-index: 100;
    background: rgba(20, 22, 28, 0.95);
    border: 1px solid rgba(216, 178, 92, 0.4);
    color: var(--ink);
    font-size: 0.82rem;
    padding: 11px 20px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Stage scene tints */
.stage-wrap.scene-dusk {
    background:
        radial-gradient(80% 70% at 50% 108%, rgba(255, 140, 84, 0.2), transparent 55%),
        radial-gradient(120% 90% at 50% 0%, #241a20 0%, #120e13 70%);
}

.stage-wrap.scene-night {
    background:
        radial-gradient(80% 70% at 50% 108%, rgba(96, 150, 220, 0.14), transparent 55%),
        radial-gradient(120% 90% at 50% 0%, #10141f 0%, #070a10 70%);
}
