:root {
    --primary-color: #0a0b0c;
    --secondary-color: #0a0b0c;
    --accent-color: #ff3366;
    --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(29, 161, 242, 0.5), 0 0 20px rgba(29, 161, 242, 0.3), 0 0 30px rgba(29, 161, 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;
}

.entrance-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.entrance {
    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;
    transition: transform 0.5s ease;
}

.entrance:hover {
    /* ホバー時の変換を削除 */
    /* transform: rotateX(0deg) rotateY(0deg); */
}

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

.entrance::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, rgba(29, 161, 242, 0.5), rgba(255, 51, 102, 0.5), rgba(29, 161, 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: 50px;
    filter: drop-shadow(0 0 15px rgba(29, 161, 242, 0.5));
    position: relative;
}

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

.btn-primary.bgBlk {
    background: #000000;
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    padding: 14px 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: 20px auto !important;
    width: 100% !important;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 50px !important;
}

.btn-primary.bgBlk::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.bgBlk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    z-index: -2;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.btn-primary.bgBlk: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;
    }
}

.btn-primary.bgBlk .iconX {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.btn-primary.bgBlk .iconX:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.suppl {
    margin-top: 30px;
    font-size: 16px;
}

.suppl a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.suppl a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(29, 161, 242, 0.1), rgba(29, 161, 242, 0.3));
    transition: width 0.4s ease;
    z-index: -1;
}

.suppl a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.3);
}

.suppl a:hover::before {
    width: 100%;
}

@media (max-width: 480px) {
    .entrance {
        padding: 30px 20px;
        width: 95%;
    }
    .logo {
        width: 150px;
        margin-bottom: 30px;
    }
    .btn-primary.bgBlk {
        padding: 12px 20px;
        font-size: 14px;
        height: 46px !important;
    }

    .btn-primary.bgBlk .iconX {
        font-size: 14px;
        padding-left: 28px;
    }

    .btn-primary.bgBlk .iconX:before {
        width: 20px;
        height: 20px;
    }

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

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

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