/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* 基本設定 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', 'Helvetica', 'Arial', 'Hiragino Sans', sans-serif;
    color: white;
    overflow: hidden;
    background-color: #000; /* Fallback for video */
}

/* 桜アニメーション用キャンバス */
#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* 背景ビデオの設定 */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    filter: brightness(0.5) blur(3px); /* 少し暗く、ぼかす */
}

/* クリック画面のスタイル */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    transition: opacity 1s ease-in-out;
}

.enter-text {
    font-size: 2.5em;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* メインコンテンツのスタイル */
#main-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s; /* delay */
    z-index: 10;
    box-sizing: border-box;
    padding: 2rem;
    gap: 5rem;
}

/* --- 左コンテナ --- */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: slideInLeft 1.2s 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.main-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 192, 203, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-avatar:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6), 0 0 25px rgba(255, 192, 203, 0.7);
}

.animated-name {
    font-size: 4em;
    font-weight: 700;
    margin-top: 25px;
    background: linear-gradient(90deg, #ffafbd, #ffffff, #ffafbd);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s infinite linear;
}

/* --- 右コンテナ --- */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: slideInRight 1.2s 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.secondary-profile {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secondary-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
}

.secondary-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    margin-right: 25px;
}

.secondary-info {
    text-align: left;
}

.secondary-name {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

#status-text {
    margin: 5px 0 0 0;
    font-size: 1em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* SNSリンク */
.social-links {
    text-align: center;
    padding-top: 10px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 18px;
    font-size: 2.2em; /* アイコンサイズを大きく */
    transition: color 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* アニメーション */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 820px) {
    #main-content {
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        padding: 1rem;
        text-align: center;
    }

    .profile-container, .info-container {
        animation: none;
        opacity: 1;
    }
    
    .info-container {
        align-items: center;
    }

    .main-avatar {
        width: 140px;
        height: 140px;
    }

    .animated-name {
        font-size: 3em;
    }

    .secondary-profile {
        padding: 15px 25px;
    }

    .secondary-avatar {
        width: 60px;
        height: 60px;
    }

    .secondary-name {
        font-size: 1.5em;
    }

    .social-links a {
        font-size: 2em;
        margin: 0 15px;
    }
}