* {
    box-sizing: border-box;
}
.text-on-img {
    width: 400px;
    aspect-ratio: 2 / 1 ;
    font-size: 2rem;
    color: #FFF;
    font-weight: bold;
    background-image: url("../img/page-title-back-01.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    flex-direction: column-reverse !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.text-on-img > h1 {
    font-weight: 500 !important;
    font-size: 1rem !important;
}

.age-gate {
    position: fixed;
    inset: 0;               /* 画面全体を覆う */
    background: #1a1a1a;    /* 単色。画像にするなら下記に差し替え */
    background: url("../img/popup-back-pc.webp") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center; /* ボックスを中央に */
    z-index: 999999999;           /* 最前面に */
}

.age-gate h2 {
    color: #DD2F7A;
    margin-bottom: 30px;
}

.age-gate p {
    color: #DD2F7A;
    text-align: center;
}

.age-gate__box {
    background: #fff;
    width: min(90%, 800px);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
}

.error404 footer {
    margin-top: -100px;
}

.page-404__container {
    width: 100vw;
    height: 100vh;
    background-color: #FFEFF7;
    display: flex;
    align-items: center;
    justify-content: center; /* ボックスを中央に */
    color: #DD2F7A;
}

.page-404__container h1 {
    font-size: 64px;
    margin-bottom: 30px;
}

.page-404__container h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.page-404__container a {
    color: #289BD4 !important;
}

@keyframes yureru-j {
    0% {
        transform: translate(0px, 2px);
    }
    50% {
        transform: translate(0px, -2px);
    }
    100% {
        transform: translate(0px, 2px);
    }
    /* 15% {
        transform: translate(0px, -2px);
    }
    20% {
        transform: translate(0px, 2px);
    }
    25% {
        transform: translate(0px, -2px);
    }
    30% {
        transform: translate(0px, 0px);
    } */
}

@keyframes yureru-s {
    0% {
        transform: translate(2px, 0px);
    }
    50% {
        transform: translate(-2px, 0px);
    }
    100% {
        transform: translate(2px, 0px);
    }
    /* 15% {
        transform: translate(-2px, 0px);
    }
    20% {
        transform: translate(2px, 0px);
    }
    25% {
        transform: translate(-2px, 0px);
    }
    30% {
        transform: translate(0px, 0px);
    } */
}

.age-gate__box::before {
    content: "";
    display: block;
    background-image: url(../img/footer-bebiru-heart.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: clamp(90px, 20%, 120px);
    aspect-ratio: 1185 / 1219;
    height: auto;
    position: absolute;
    left: -45px;
    top: 0;
    transform: translateY(-40%);
    animation: yureru-s 2s infinite;
    /* animation: yureru-j 2s infinite; */
}

.age-gate__box::after {
    content: "";
    display: block;
    background-image: url(../img/footer-bebiru-dollar.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: clamp(90px, 20%, 120px);
    aspect-ratio: 164 / 169;
    height: auto;
    position: absolute;
    right: -45px;
    bottom: 30px;
    transform: translateY(60%);
    animation: yureru-s 2s infinite;
    /* animation: yureru-j 2s infinite; */
}

.age-gate__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

.age-gate__buttons button {
    border: 1px solid #DD2F7A;
    border-radius: 16px;
    padding: 20px;
    background-color: #fff;
    color: #DD2F7A;
    transition: all 0.3s;
}

.age-gate__buttons button:hover {
    background-color: #DD2F7A;
    color: #fff;
}

.age-gate__error {
    color: #289BD4 !important;   /* 赤文字 */
    margin-top: 12px;
    font-size: 14px;
}
/* 確認画面表示中はスクロール禁止 */
body.age-locked { overflow: hidden; }

.grecaptcha-badge {
    bottom: 10px;
    right: 10px;
    transform: scale(0.85);
    opacity: 0.6;
}

.sm-only {
    display: none;
}
@media (max-width: 1536px) {

}

@media (max-width: 1280px) {

}

@media (max-width: 1024px) {

}

@media (max-width: 960px) {
    .age-gate {
        background: url("../img/popup-back-sp.webp") center/cover no-repeat;
    }
    .page-404__container h1 {
        font-size: 32px;
    }

    .page-404__container h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .age-gate__box::before {
        left: -15px;
    }
    .age-gate__box::after {
        right: -20px;
        bottom: 80px;
    }
}

@media (max-width: 640px) {
    .sm-only {
        display: block;
    }
}