/**
 * 年齢確認ポップアップ CSS
 */

/* オーバーレイ（背景） */
.age-popup-overlay {
    display: none; /* JavaScriptで制御 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.age-popup-overlay.show {
    display: flex;
    opacity: 1;
}

/* ポップアップ本体 */
.age-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* コンテナ */
.age-popup__container {
    padding: 40px 30px;
    text-align: center;
}

/* ロゴ */
.age-popup__logo {
    margin-bottom: 30px;
}

.age-popup__logo img {
    max-width: 200px;
    height: auto;
}

/* 警告文 */
.age-popup__text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.age-popup__text--warning {
    color: #bb242a;
    font-weight: 600;
}

/* 質問文 */
.age-popup__question {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

/* ボタンエリア */
.age-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* 「はい」ボタン */
.age-popup__button--yes {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 60px;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.age-popup__button--yes:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.age-popup__button--yes:active {
    transform: translateY(0);
}

/* 「いいえ」リンク */
.age-popup__link--no {
    color: #bb242a;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.age-popup__link--no:hover {
    text-decoration: underline;
    color: #8b1c1f;
}

/* スクロール固定用 */
body.age-popup-active {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .age-popup {
        max-width: 90%;
        width: 90%;
    }

    .age-popup__container {
        padding: 30px 20px;
    }

    .age-popup__logo img {
        max-width: 150px;
    }

    .age-popup__text {
        font-size: 1.1rem;
    }

    .age-popup__question {
        font-size: 1.4rem;
    }

    .age-popup__button--yes {
        font-size: 1.4rem;
        padding: 12px 50px;
    }

    .age-popup__link--no {
        font-size: 1.2rem;
    }
}

/* 極小画面対応 */
@media (max-width: 480px) {
    .age-popup__logo img {
        max-width: 120px;
    }

    .age-popup__text {
        font-size: 1rem;
    }

    .age-popup__question {
        font-size: 1.2rem;
    }

    .age-popup__button--yes {
        font-size: 1.2rem;
    }
}
