/* ベース設定：ダークモードでレインボーを際立たせる */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0c10;
    color: #ffffff;
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* 背景の流れるレインボーオーロラエフェクト */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        #ff0055,
        #ff7700,
        #ffdd00,
        #00ff66,
        #00ddff,
        #7700ff,
        #ff0055
    );
    opacity: 0.12;
    animation: rotateBg 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* メインコンテナ */
.container {
    width: 90%;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
}

/* タイトル：レインボーグラデーションテキスト */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff2a85, #ff7b00, #ffea00, #00f260, #0575e6, #8e2de2, #ff2a85);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.subtitle {
    color: #a0a8b8;
    font-size: 1rem;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
}

/* ボタンを並べるグリッド */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* レインボー枠線のカード型リンクボタン */
.rainbow-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px;
    background: #14161f;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

/* 擬似要素でレインボーボーダーを作成 */
.rainbow-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: linear-gradient(45deg, #ff0055, #ff7700, #ffdd00, #00ff66, #00ddff, #7700ff, #ff0055);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderFlow 6s ease infinite;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* 内側の背景を塗りつぶして枠線だけ見せる */
.rainbow-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #14161f;
    border-radius: 16px;
    z-index: -1;
}

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

/* ホバー時のアニメーション */
.rainbow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 221, 255, 0.25);
}

.rainbow-card:hover::before {
    opacity: 1;
}

/* アイコン風バッジ */
.badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.badge-digital {
    background: rgba(0, 221, 255, 0.15);
    color: #00ddff;
    border: 1px solid rgba(0, 221, 255, 0.4);
}

.badge-analog {
    background: rgba(255, 119, 0, 0.15);
    color: #ff9900;
    border: 1px solid rgba(255, 119, 0, 0.4);
}

/* プレイヤータイトル */
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.9rem;
    color: #9aa0b0;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* アクションボタン */
.btn-action {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    background: linear-gradient(90deg, #ff0055, #ff7700, #00ddff, #7700ff);
    background-size: 200% auto;
    color: #fff;
    transition: background-position 0.4s ease;
}

.rainbow-card:hover .btn-action {
    background-position: right center;
}
