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

/* 桜アニメーション用キャンバス */
#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.6); /* ビデオの明るさ（うっすら表示） */
}


/* クリック画面のスタイル */
#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: 2em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* メインコンテンツのスタイル */
#main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 10;
    box-sizing: border-box;
    padding-bottom: 80px;
}

/* メインプロフィール */
.main-profile {
    text-align: center;
    margin-bottom: 40px;
    position: relative; /* 子要素を絶対配置するための基準にする */
}

.main-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

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

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* アイコンステータス */
#status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 5px solid #fff; /* アイコンの背景と同じ色で縁取り */
    box-sizing: border-box;
    z-index: 10;
}

#status-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#status-indicator.status-online { background-color: #3ba55d; } /* 緑 */
#status-indicator.status-offline { background-color: #747f8d; } /* グレー */
#status-indicator.status-offline::before {
    /* オフラインマーク（くり抜き） */
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
}

#status-indicator.status-dnd { background-color: #ed4245; } /* 赤 */
#status-indicator.status-dnd::before {
    /* dndマーク（横棒） */
    width: 14px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
}

#status-indicator.status-idle { background-color: #faa61a; } /* 黄色 */
#status-indicator.status-idle::before {
    /* 月マーク */
    width: 15px;
    height: 15px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: -4px 4px 0 0 #fff; /* 三日月を影で表現 */
    transform: translate(-50%, -50%) rotate(-135deg);
}

/* サブプロフィール */
.secondary-profile {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 15px 25px;
    max-width: 350px;
}

.secondary-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-right: 20px;
}

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

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

#status-text {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* SNSリンク */
.social-links {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.2em;
    transition: color 0.3s, text-shadow 0.3s;
}

.social-links a:hover {
    color: #f0f0f0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
