:root {
    --primary-color: #9982F2;
    --secondary-color: #7B5FE9;
    --accent-color: #4F1787;
    --dark-color: #0a1929;
    --light-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --neon-glow: 0 0 10px rgba(153, 130, 242, 0.5), 0 0 20px rgba(153, 130, 242, 0.3), 0 0 30px rgba(153, 130, 242, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background: #090A0F;
    overflow: hidden;
}

body {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--light-color);
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23404' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23505'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -2 !important;
}

/* Stars animation */
@keyframes fallingStar {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-2000px, 2000px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.stars {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.star {
    position: absolute !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: fallingStar linear infinite, twinkle ease-in-out infinite !important;
}

.star.small {
    width: 1px !important;
    height: 1px !important;
    animation-duration: 50s, 3s !important;
}

.star.medium {
    width: 2px !important;
    height: 2px !important;
    animation-duration: 100s, 5s !important;
}

.star.large {
    width: 3px !important;
    height: 3px !important;
    animation-duration: 150s, 7s !important;
}

.shooting-star {
    position: absolute !important;
    width: 100px !important;
    height: 1px !important;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)) !important;
    transform: rotate(135deg) !important;
    animation: shootingStar 5s linear infinite !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100px) translateY(0) rotate(135deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(135deg);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 1;
}

.age_confirmation-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    perspective: 1000px;
}

.age_confirmation {
    background: rgba(10, 25, 41, 0.6);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.age_confirmation:hover {
    /* transform: rotateX(0deg) rotateY(0deg); */
}

.age_confirmation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(153, 130, 242, 0.1) 0%, rgba(153, 130, 242, 0) 70%);
    z-index: -1;
    animation: pulse-bg 8s infinite alternate;
}

.age_confirmation::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, rgba(153, 130, 242, 0.5), rgba(79, 23, 135, 0.5), rgba(153, 130, 242, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: border-glow 4s infinite alternate;
}

@keyframes border-glow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse-bg {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.logo {
    width: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(153, 130, 242, 0.5));
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateZ(0deg);
    }
    50% {
        transform: translateY(-15px) rotateZ(2deg);
    }
    100% {
        transform: translateY(0px) rotateZ(0deg);
    }
}

.age_confirmation p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.age_confirmation p.fbold {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.age_confirmation p.clPrimary {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(153, 130, 242, 0.3), 0 0 15px rgba(153, 130, 242, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 400%;
    z-index: -2;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(153, 130, 242, 0.4), 0 0 30px rgba(153, 130, 242, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    opacity: 1;
    animation: animate-glow 4s linear infinite;
}

@keyframes animate-glow {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.modal00 {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal00-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal00-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 25, 41, 0.9);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 130, 242, 0.3);
    overflow: hidden;
}

.desc-basic {
    padding: 40px 30px;
    text-align: center;
}

.desc-basic .title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .age_confirmation {
        padding: 30px 20px;
        width: 95%;
    }
    .logo {
        width: 150px;
        margin-bottom: 30px;
    }
    .btn-primary {
        padding: 15px 20px;
        font-size: 16px;
    }
    .age_confirmation p.fbold {
        font-size: 18px;
    }

    /* モバイルでの背景表示を改善 */
    html, body {
        height: 100%;
        overflow: hidden;
    }

    body {
        background-attachment: scroll;
        background-position: center;
    }

    body::before {
        background-size: cover;
    }
}
