* {
    box-sizing: border-box;
}

:root {
    --white: #fff;
    --muted: #9a9a9a;
    --line: #2c2c2c;
    --panel: #030303;
    --red: #ff2200;
    --magenta: #ff00ff;
    --green: #39ff00;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.page {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px;
}

/* HEADER */

.header {
    padding-bottom: 14px;
}

.system-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.header h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 42px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.03em;
}

.subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 700;
}

/* COMMON */

.section {
    border: 1px solid var(--line);
    background: var(--panel);
}

.section-title,
.dimension-head {
    min-height: 42px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title.no-border {
    padding: 0;
    border-bottom: 0;
    min-height: auto;
}

.section-title span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #777;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.section-title h2,
.dimension-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}

/* SELECT */

.select-section {
    margin-bottom: 14px;
}

/* VISUAL */

.visual-section {
    margin-bottom: 14px;
}

.visual {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1300 / 470;
    background: #000;
    overflow: hidden;
}

.bg,
.bar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bg {
    z-index: 1;
}

.bar {
    display: none;
    pointer-events: none;
}

.bar:not([src]),
.bar[src=""] {
    display: none;
}

.genuine-img {
    z-index: 5;
}

.zeta-img {
    z-index: 6;
}

/* DIMENSION OVERLAY */

.dimension-overlay {
   position: absolute;
    z-index: 50;
    left: 8%;
    bottom: 20px;
    width: 60%;
    background: rgba(0, 0, 0, .86);
    border: 1px solid var(--line);
}

.dimension-overlay * {
    position: relative;
    z-index: 51;
}

.overlay-head {
    min-height: 36px;
    padding: 8px 12px;
}

.overlay-head .section-title span {
    width: 18px;
    height: 18px;
    font-size: 10px;
}

.overlay-head .section-title h2 {
    font-size: 10px;
}

.overlay-head p {
    margin: 0;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* DIMENSION GRID */

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dimension-item {
    min-width: 0;
    padding: 16px 8px 14px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.dimension-item:last-child {
    border-right: 0;
}

.dimension-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 11px;
}

.dimension-label i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}

.dimension-label span {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.dimension-item strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.dimension-item em {
    color: #777;
    font-style: normal;
}

.dimension-item b:first-child {
    color: var(--magenta);
}

.dimension-item b:last-child {
    color: var(--green);
}

/* INFO LAYOUT */

.info-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    align-items: stretch;
}

.current-section,
.dimen-guide-section {
    min-width: 0;
}

.current-section {
    padding-bottom: 12px;
}

.selected-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: baseline;
    gap: 8px;
    padding: 0 12px;
    margin-top: 13px;
}

.selected-row span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

.selected-row strong {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    word-break: break-word;
}

button {
    margin: 16px 0 0 12px;
    height: 32px;
    padding: 0 18px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
}

button:hover {
    background: #fff;
    color: #000;
}

/* DIMENSION GUIDE */

.dimen-guide {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px;
}

.dimen-guide-image {
    flex: 0 0 52%;
    min-width: 0;
}

.dimen-guide-image img {
    width: 100%;
    display: block;
}

.dimen-guide-note li {
    flex: 1;
    color: #fff;
    line-height: 1.6;
    font-size: 80%;
    margin-bottom: 15px;
}

/* SELECT */

.selector-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 14px;
}

.select-box {
    position: relative;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.015);
}

.select-box::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 12px;
    width: 44px;
    height: 7px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0,
        #fff 5px,
        transparent 5px,
        transparent 9px
    );
    opacity: .45;
}

.genuine-box {
    border-left: 2px solid var(--magenta);
}

.zeta-box {
    border-left: 2px solid var(--green);
}

.box-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.select-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.color {
    margin: 0 0 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.magenta {
    color: var(--magenta);
}

.green {
    color: var(--green);
}

label {
    display: block;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

select {
    width: 100%;
    height: 34px;
    margin-bottom: 10px;
    padding: 0 10px;
    border: 1px solid #444;
    border-radius: 0;
    background: rgba(255,255,255,.84);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

select:focus {
    outline: 1px solid #fff;
    outline-offset: 1px;
}

/* FOOTER */

.footer {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #777;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

/* MOBILE */

@media (max-width: 900px) {
    .visual {
        position: relative;
        width: 100%;
        aspect-ratio: auto;
        overflow: visible;
        background: #000;
        padding-top: 36.153846%;
    }

    .bg,
    .bar {
        position: absolute;
        inset: auto auto auto auto;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .bg {
        display: block;
        z-index: 1;
    }

    .bar {
        pointer-events: none;
    }

    .bar:not([src]),
    .bar[src=""] {
        display: none !important;
    }

    .genuine-img {
        z-index: 5;
    }

    .zeta-img {
        z-index: 6;
    }

    .dimension-overlay {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        z-index: 50;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        background: #030303;
        margin-top: 14px;
    }

    .info-layout {
        grid-template-columns: 1fr;
    }

    .dimen-guide {
        display: block;
        padding: 18px 14px 20px;
    }

    .dimen-guide-image {
        flex: none;
        width: 100%;
        margin: 0 auto 18px;
    }

    .dimen-guide-image img {
        width: 100%;
        max-width: none;
        height: auto;
        display: block;
    }

    .dimen-guide-note {
        width: 100%;
        padding: 12px 14px;
        border-top: 1px solid var(--line);
        border-left: 2px solid var(--red);
        color: #fff;
        font-size: 13px;
        line-height: 1.7;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 10px;
    }

    .header h1 {
        font-size: clamp(28px, 9vw, 42px);
    }

    .dimension-grid {
        grid-template-columns: 1fr;
    }

    .dimension-item {
        display: grid;
        grid-template-columns: 28px 1fr auto;
        gap: 8px;
        align-items: center;
        padding: 12px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .dimension-item:last-child {
        border-bottom: 0;
    }

    .dimension-label {
        margin: 0;
        justify-content: flex-start;
    }

    .dimension-label i {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .dimension-label span {
        font-size: 12px;
    }

    .dimension-item strong {
        justify-content: flex-end;
        font-size: 12px;
    }

    .selected-row {
        grid-template-columns: 78px 1fr;
    }

    .selected-row strong {
        font-size: 13px;
    }

    .selector-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .select-box h2 {
        font-size: 18px;
    }

    select {
        height: 34px;
        font-size: 12px;
    }
}

@-moz-document url-prefix() {
    @font-face {
        font-family: "Firefox JP Fix";
        src: local("Meiryo"), local("Yu Gothic"), local("YuGothic");
        unicode-range:
            U+3000-303F,
            U+3040-309F,
            U+30A0-30FF,
            U+31F0-31FF,
            U+3400-9FFF,
            U+F900-FAFF,
            U+FF00-FFEF;
    }

    html[lang="ja"] body {
        font-family:
            Arial,
            "Firefox JP Fix",
            "Hiragino Kaku Gothic ProN",
            Meiryo,
            sans-serif;
    }
}