
/* =========================
   全ページ共通
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background: linear-gradient(180deg, #07111f 0%, #0b1730 100%);
    color: #f7f3d0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 230, 120, 0.15);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.12em;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.12);
    color: #ffd84d;
    border: 1px solid rgba(255, 216, 77, 0.25);
    margin-bottom: 18px;
}

h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #fff5b3;
}

.subtitle {
    font-size: 14px;
    line-height: 1.8;
    color: #d8d39f;
    margin-bottom: 28px;
}

/* =========================
   ラジオ画面
========================= */

.radio-visual {
    margin: 0 auto 28px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(
        circle,
        rgba(255, 213, 74, 0.15) 0%,
        rgba(255, 213, 74, 0.05) 35%,
        transparent 70%
    );
}

.ring {
    position: absolute;
    border: 1px solid rgba(255, 216, 77, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.ring1 {
    width: 180px;
    height: 180px;
}

.ring2 {
    width: 210px;
    height: 210px;
}

.ring3 {
    width: 240px;
    height: 240px;
}

.play-button {
    width: 110px;
    height: 110px;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(180deg, #ffd84d, #f4b400);
    color: #11203a;
    box-shadow: 0 10px 30px rgba(255, 196, 0, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 36px rgba(255, 196, 0, 0.45);
}

/* 音声波形 */

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    height: 40px;
    margin-bottom: 18px;
}

.bar {
    width: 10px;
    height: 12px;
    background: #ffd84d;
    border-radius: 999px;
    opacity: 0.35;
}

.status {
    font-size: 14px;
    color: #d8d39f;
    min-height: 22px;
}

/* =========================
   再生中のアニメーション
========================= */

.playing .badge {
    animation: pulseBadge 1.5s infinite;
}

.playing .bar {
    opacity: 1;
    animation: bounce 0.9s infinite ease-in-out;
}

.playing .bar:nth-child(2) {
    animation-delay: 0.1s;
}

.playing .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.playing .bar:nth-child(4) {
    animation-delay: 0.3s;
}

.playing .bar:nth-child(5) {
    animation-delay: 0.4s;
}

.playing .ring1 {
    animation: wave 2.4s infinite;
}

.playing .ring2 {
    animation: wave 2.4s infinite 0.5s;
}

.playing .ring3 {
    animation: wave 2.4s infinite 1s;
}

@keyframes bounce {
    0%, 100% {
        height: 12px;
    }
    50% {
        height: 36px;
    }
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 216, 77, 0);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 216, 77, 0.35);
    }
}

@keyframes wave {
    0% {
        transform: scale(0.95);
        opacity: 0.35;
    }
    70% {
        transform: scale(1.05);
        opacity: 0.08;
    }
    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

/* =========================
   おたより掲示板へのリンク
========================= */

.otayori-link {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 18px;
    color: #e9c96e;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255, 216, 77, 0.25);
    border-radius: 999px;
    transition: background 0.2s;
}

.otayori-link:hover {
    background: rgba(255, 216, 77, 0.1);
}

/* =========================
   おたより掲示板ページ
========================= */

.construction-icon {
    font-size: 64px;
    margin-bottom: 18px;
}

.memo {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
    text-align: left;
    color: #e8e1ad;
    font-size: 14px;
    line-height: 2;
}

.memo p:first-child {
    color: #ffd84d;
    font-weight: bold;
    margin-bottom: 8px;
}

.construction-message {
    color: #d8d39f;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(180deg, #ffd84d, #f4b400);
    color: #11203a;
    font-weight: bold;
    font-size: 14px;
    padding: 14px 22px;
    border-radius: 999px;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: scale(1.04);
}

/* =========================
   スマートフォン対応
========================= */

@media (max-width: 480px) {
    .card {
        padding: 28px 18px;
    }

    h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 13px;
    }

    .radio-visual {
        width: 200px;
        height: 200px;
    }
}
