:root {
    --ink: #173027;
    --moss: #1e4a34;
    --leaf: #2f6b45;
    --lake: #1a8b98;
    --gold: #e2b34a;
    --gold-deep: #a56d16;
    --cream: #f6f1e6;
    --paper: #fffdf8;
    --line: rgba(23, 48, 39, 0.12);
    --petal: #d4534a;
    --shadow: 0 18px 50px rgba(20, 48, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(26, 139, 152, 0.16), transparent 60%),
        radial-gradient(800px 380px at 100% 0%, rgba(226, 179, 74, 0.18), transparent 55%),
        var(--cream);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--leaf); }
button, input { font: inherit; }
h1, h2, h3 {
    font-family: Palatino, "Palatino Linotype", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
h1 { font-size: clamp(40px, 5vw, 68px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; }
p { margin: 0 0 14px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 241, 230, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.head-bar {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 96px;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}
.brand img, .foot-brand img { width: 84px; height: 84px; object-fit: contain; }
.brand span, .foot-brand strong {
    max-width: 11em;
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .foot-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
}
.nav a[aria-current="page"] { background: rgba(30, 74, 52, 0.08); }
.shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0c86a, var(--gold-deep));
    color: #1b1406;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(165, 109, 22, 0.28);
}
.shop-link.is-here { outline: 3px solid #1e4a34; outline-offset: 2px; }
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    padding: 8px 14px;
}
.mark {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

main { padding-bottom: 28px; }
.opening {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 110px);
    padding: 36px 0 20px;
}
.kicker {
    margin: 0 0 10px;
    color: var(--gold-deep);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 13px;
}
.lead { font-size: 19px; max-width: 38em; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.badge img { width: 210px; height: auto; aspect-ratio: 499 / 171; display: block; filter: drop-shadow(0 10px 16px rgba(20, 48, 38, 0.16)); }
.frame { overflow: hidden; border-radius: 28px; background: #d7e4d8; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-board { aspect-ratio: 1280 / 800; }
.ratio-wide { aspect-ratio: 1024 / 500; }
.ratio-square { aspect-ratio: 1 / 1; }
.opening-visual { order: 2; }

.band { padding: 72px 0; }
.band-head { max-width: 720px; margin-bottom: 28px; }
.split, .studio, .play-band, .visit, .story, .game-top, .reach-board, .receipt, .result-board, .fault-board {
    display: grid;
    gap: 36px;
    align-items: center;
}
.studio, .visit, .story, .reach-board { grid-template-columns: 1.15fr 0.85fr; }
.play-band, .game-top { grid-template-columns: 0.8fr 1.2fr; }
.play-shots, .stage, .story-photos { display: grid; gap: 16px; }
.play-shots { grid-template-columns: 1fr 0.72fr; }
.stage { grid-template-columns: 1.3fr 1fr; }
.stage .wide { grid-row: span 2; }
.story-photos { align-content: start; }
.story-photos .frame { width: min(100%, 300px); justify-self: end; }
.panel, .order-desk, .coin-lead, .pack-board, .promise article, .fact, .aim article, .advantage article, .culture li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.panel, .coin-lead, .advantage article, .aim article { padding: 28px; }
.text-link {
    display: inline-flex;
    margin-top: 8px;
    font-weight: 700;
    text-decoration: none;
}
.icon-row, .fact, .culture li, .traits article {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.traits article, .culture li, .fact { padding: 18px 20px; background: rgba(255, 253, 248, 0.8); border-radius: 18px; }
.advantage, .aim, .culture { display: grid; gap: 16px; margin-top: 18px; }
.advantage { grid-template-columns: repeat(3, 1fr); }
.aim { grid-template-columns: 1fr 1fr; }
.culture { grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; }
.culture li { display: block; min-height: 150px; }
.culture .mark, .advantage .mark, .aim .mark { color: var(--lake); margin-bottom: 8px; }
.company-top, .game-intro, .contact-top, .shop-top { padding: 48px 0 10px; }
.trail { color: #5d6d64; font-size: 14px; }
.trail a { text-decoration: none; }

.page-shop { background: #e7f0ea; }
.page-company { background: #f8f3e8; }
.page-game { background: #f3f6f1; }
.page-contact { background: #f7f4ee; }
.page-confirm { background: #fbf6ea; }
.page-pay { background: #eef5f2; }
.page-error { background: #f8f1ec; }

.shop-layout { display: grid; gap: 22px; padding-bottom: 10px; }
.coin-lead { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; }
.coin-lead img { width: 130px; height: 130px; object-fit: contain; }
.pack-board { padding: 18px; }
.pack-status { margin: 0 0 10px; color: #5d6d64; }
.pack-list { display: grid; gap: 8px; }
.pack-row {
    width: 100%;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;
    text-align: left;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: #f7fbf8;
    color: inherit;
    cursor: pointer;
}
.pack-row img { width: 52px; height: 52px; object-fit: contain; }
.pack-row.is-picked { border-color: var(--gold-deep); background: #fff8e8; }
.pack-price { font-weight: 700; color: var(--moss); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.pager button, .order-desk button[type="submit"], .solid {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--moss);
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
}
.order-desk { padding: 28px; }
.desk-grid, .pay-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.order-desk label { display: grid; gap: 6px; font-size: 14px; }
.order-desk input[type="text"], .order-desk input[type="email"] {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: min(280px, 100%);
    background: white;
}
.pay-choice, .pay-shown span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: white;
}
.pay-shown { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.agree { grid-template-columns: auto 1fr; align-items: start; max-width: 640px; }
.desk-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 16px; }
.desk-note { background: #fff1ef; border: 1px solid #e7b2ac; color: #7d2a24; padding: 12px 14px; border-radius: 12px; scroll-margin-top: 120px; }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promise article { padding: 22px; }
.promise article:first-child { grid-column: 1 / -1; }

.receipt { grid-template-columns: 0.9fr 1.1fr; padding: 36px 0 20px; }
.receipt-card, .result-card, .fault-card {
    background: var(--paper);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.receipt-card { border: 1px dashed #c8b48a; }
.receipt-card label { display: grid; gap: 6px; font-size: 14px; }
.receipt-card input { width: 100%; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.order-desk fieldset { border: 0; margin: 0; padding: 0; }
.order-desk legend { font-size: 14px; margin-bottom: 6px; }
.fact + .fact { margin-top: 12px; }
.fact h2 { font-size: 26px; margin: 0 0 4px; }
.receipt dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.receipt dt { color: #5d6d64; }
.receipt dd { margin: 0; }
.result-board, .fault-board { grid-template-columns: 1.1fr 0.9fr; padding: 42px 0; }
.fault-card { border-top: 8px solid var(--petal); }
.result-card { border-top: 8px solid var(--leaf); }
.result-card.is-fail { border-top-color: var(--petal); }

.site-foot { margin-top: 20px; background: var(--moss); color: #f4efe4; padding: 42px 0 18px; }
.site-foot a { color: #f4efe4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; margin-bottom: 10px; }
.foot-brand img { width: 64px; height: 64px; background: rgba(255,255,255,0.08); border-radius: 12px; }
.foot-nav { display: grid; align-content: start; gap: 4px; }
.copyline { width: min(1180px, calc(100% - 40px)); margin: 22px auto 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 14px; }

@media (max-width: 980px) {
    .opening, .studio, .play-band, .visit, .story, .game-top, .reach-board, .receipt, .result-board, .fault-board, .advantage, .aim, .culture, .traits, .promise, .foot-grid, .coin-lead, .stage, .play-shots {
        grid-template-columns: 1fr;
    }
    .stage .wide { grid-row: auto; }
    .story-photos .frame { justify-self: start; width: min(100%, 420px); }
    .opening { min-height: 0; }
    .opening-visual { order: 2; }
}
@media (max-width: 820px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        top: 96px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        align-items: stretch;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 10px;
        box-shadow: var(--shadow);
    }
    body.nav-open .nav { display: flex; }
    .shop-link { margin-left: 8px; }
}
