/* 基本設定 */
html, body {
    height: 100%;
    margin: 0;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
}
body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto; /* 縦スクロールを許可 */
    background-color: #010314;
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
    color: #f0f8ff;
    text-align: center;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
}

.background, .aurora, .stars, .shooting-stars-container {
    position: fixed; /* 背景要素を画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.background {
    background: linear-gradient(135deg, #0a0a2a, #1b1039);
    opacity: 0.8;
}

.aurora {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.25), rgba(0, 255, 255, 0.2), rgba(75, 0, 130, 0.25), transparent);
    background-size: 400% 100%;
    animation: aurora-borealis 15s infinite alternate;
    opacity: 0.5;
    mix-blend-mode: color-dodge;
}

.aurora::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 191, 255, 0.15), transparent 60%);
    animation: aurora-swirl 20s infinite alternate-reverse;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

@keyframes aurora-borealis {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes aurora-swirl {
    0% { transform: rotate(0deg) translate(-10%, -10%); }
    100% { transform: rotate(360deg) translate(10%, 10%); }
}

.stars {
    z-index: -1;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    will-change: transform, opacity;
}

@keyframes twinkle1 {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes twinkle2 {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes twinkle3 {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.05); }
    75% { opacity: 0.6; transform: scale(0.95); }
}

.shooting-star {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    width: 2px;
    height: 60px;
    border-radius: 1px;
    opacity: 0;
    animation: shooting 3s infinite;
    transform-origin: top left;
    will-change: transform, opacity;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        transform: translateX(300px) translateY(300px) rotate(-45deg);
        opacity: 0;
    }
}

.content {
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.profile {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: rgba(1, 3, 20, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.profile p {
    margin: 0 0 1.5em 0;
    line-height: 1.8;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.profile p:last-child {
    margin-bottom: 0;
}

.profile-jp {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-en {
    opacity: 0.9;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 0.5px;
    font-size: 1.05em; /* 少しだけ大きくして読みやすく */
}

.profile strong {
    color: #ffb6c1; /* 強調文字をライトピンクに */
    font-weight: bold;
    text-shadow: 0 0 8px #ffb6c1;
}

.access-button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.access-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    border: 2px solid #fff;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    min-width: 0;
    width: 120px;
}

.access-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.access-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.5),
        0 5px 20px rgba(0, 0, 0, 0.4);
}

.access-button:hover::before {
    transform: translateX(100%);
}

/* モバイル用レスポンシブ調整 */
@media (max-width: 600px) {
    body {
        -webkit-overflow-scrolling: touch; /* スムーズなスクロールを有効に */
    }
    h1 {
        font-size: 1.8em;
    }

    .profile {
        padding: 20px 15px; /* 少しパディングを調整 */
    }

    .profile p {
        font-size: 0.9em;
        line-height: 1.7;
    }

    .access-button {
        font-size: 0.95em;
        padding: 10px 16px;
        width: 100px;
    }
}
