/* =========================================
   中京マイコン 年齢確認
========================================= */

body.chukyo-age-gate-open {
    overflow: hidden;
}

.chukyo-age-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #171717;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    isolation: isolate;
}

.chukyo-age-gate[hidden] {
    display: none !important;
}

.chukyo-age-gate__backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #1C1987;
}

.chukyo-age-gate__backdrop::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.chukyo-age-gate__panel {
    position: relative;
    width: min(100%, 680px);
    margin: auto;
    padding: 48px 56px 30px;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: chukyo-age-gate-enter 0.38s ease-out both;
}

.chukyo-age-gate__panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 7px;
    content: "";
    background: #ffffff;
}

.chukyo-age-gate__age-mark {
    position: absolute;
    top: 22px;
    right: 24px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: #1C1987;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(28, 25, 135, 0.30);
}

.chukyo-age-gate__logo {
    margin: 0 auto 24px;
    padding: 0 72px;
}

.chukyo-age-gate__logo img {
    display: block;
    width: min(100%, 340px);
    height: auto;
    margin: 0 auto;
}

.chukyo-age-gate__eyebrow {
    margin: 0 0 5px;
    color: #1C1987;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.chukyo-age-gate__title {
    margin: 0 0 24px;
    line-height: 1;
}

.chukyo-age-gate__title span {
    display: block;
    color: #1C1987;
    font-size: clamp(38px, 7vw, 62px);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.chukyo-age-gate__title small {
    display: block;
    margin-top: 12px;
    color: #1c1c1c;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.chukyo-age-gate__message {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
}

.chukyo-age-gate__message p {
    margin: 0;
}

.chukyo-age-gate__question {
    margin-top: 15px !important;
    color: #171717;
    font-size: 20px;
    font-weight: 700;
}

.chukyo-age-gate__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 30px;
}

.chukyo-age-gate__button {
    appearance: none;
    min-height: 72px;
    padding: 12px 18px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    border: 0;
    border-radius: 12px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.chukyo-age-gate__button span {
    display: block;
    margin-bottom: 2px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.chukyo-age-gate__button:hover {
    transform: translateY(-2px);
}

.chukyo-age-gate__button:active {
    transform: translateY(0);
}

.chukyo-age-gate__button:focus-visible {
    outline: 3px solid #f2aa2b;
    outline-offset: 3px;
}

.chukyo-age-gate__button--yes {
    color: #fff;
    background: linear-gradient(135deg, #1C1987, #1C1987);
    box-shadow: 0 10px 24px rgba(28, 25, 135, 0.25);
}

.chukyo-age-gate__button--yes:hover {
    background: linear-gradient(135deg, #1C1987, #1C1987);
    box-shadow: 0 13px 28px rgba(28, 25, 135, 0.32);
}

.chukyo-age-gate__button--no {
    color: #333;
    background: #ececec;
    box-shadow: inset 0 0 0 1px #d0d0d0;
}

.chukyo-age-gate__button--no:hover {
    background: #e2e2e2;
}

.chukyo-age-gate__notice {
    margin: 20px 0 0;
    color: #737373;
    font-size: 12px;
    line-height: 1.6;
}

.chukyo-age-gate__since {
    margin-top: 0.9rem;
    color: #1C1987;
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.82;
}

.chukyo-age-gate.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.24s ease,
        visibility 0.24s ease;
}

.chukyo-age-gate.is-closing .chukyo-age-gate__panel {
    transform: translateY(8px) scale(0.985);
    transition: transform 0.24s ease;
}

@keyframes chukyo-age-gate-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .chukyo-age-gate {
        align-items: flex-start;
        padding: 14px;
    }

    .chukyo-age-gate__panel {
        width: 100%;
        margin: auto;
        padding: 38px 20px 24px;
        border-radius: 18px;
    }

    .chukyo-age-gate__age-mark {
        top: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 17px;
    }

    .chukyo-age-gate__logo {
        margin-bottom: 22px;
        padding: 0 56px 0 20px;
    }

    .chukyo-age-gate__title {
        margin-bottom: 20px;
    }

    .chukyo-age-gate__title small {
        margin-top: 9px;
        font-size: 19px;
    }

    .chukyo-age-gate__message {
        font-size: 14px;
        line-height: 1.8;
    }

    .chukyo-age-gate__question {
        margin-top: 13px !important;
        font-size: 18px;
    }

    .chukyo-age-gate__buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .chukyo-age-gate__button {
        min-height: 64px;
    }

    .chukyo-age-gate__pc-break {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chukyo-age-gate__panel,
    .chukyo-age-gate,
    .chukyo-age-gate__button {
        animation: none;
        transition: none;
    }
}
