/* style.css */

body {
    background-color: #f0f0f0;
    color: #333;
    font-family: "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* 青座布団：サイズ調整・角丸なし */
.central-panel {
    background-color: #0000ff;
    color: #fff;
    padding: 50px 40px;
    border-radius: 0;
    text-align: center;
    width: 360px; /* PCでのサイズ感 */
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    box-sizing: border-box; /* paddingを幅に含める */
}

/* タイポグラフィ：画像に基づいた詳細設定 */
.title-section {
    margin-bottom: 40px;
}

.author {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0 0 5px 0;
}

.main-title {
    /* 画像通りのセリフ体 */
    font-family: "Courier New", monospace;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: -0.09em;
    margin: 0;
    line-height: 1.1;
}

/* モード切替：Monospaceフォント */
.mode-controls {
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    margin-bottom: 35px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.mode-btn.active {
    opacity: 1;
}

/* マスター音量スライダー */
.volume-controls {
    width: 100%;
    margin-bottom: 25px;
    box-sizing: border-box;
    padding: 0 25px;
}

.volume-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: "Courier New", monospace;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.volume-label {
    opacity: 0.95;
}

.volume-value {
    opacity: 0.95;
}

#master-volume-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    outline: none;
    background: transparent;
    cursor: pointer;

    /* JSで --percent を 0..100 に更新して進捗色を描画 */
    --percent: 100;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.95) calc(var(--percent) * 1%),
        rgba(255, 255, 255, 0.25) calc(var(--percent) * 1%),
        rgba(255, 255, 255, 0.25) 100%
    );
}

#master-volume-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

#master-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0000ff; /* 青座布団の上で境界を見やすく */
}

#master-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0000ff;
}

/* CTA：枠線付きのボタン */
#cta-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 15px 0;
    width: 100%;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background-color 0.3s, color 0.3s; /* 滑らかなアニメーションを追加 */
}

/* 1. CTAのマウスオーバー時：全体を白く、文字は青に反転 */
#cta-btn:hover:not(:disabled) {
    background-color: #fff; /* ボタン全体を白く */
    color: #0000ff;          /* 文字は青に */
}

#cta-btn:disabled {
    opacity: 0.3;
}

.annotation {
    font-size: 0.65rem;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
}

/* ログ散布：画面全域をカバー */
#random-log-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.log-entry {
    position: absolute;
    font-family: "Courier New", monospace;
    font-size: 0.6rem; /* 小さめの文字 */
    color: #a0a0a0;
    white-space: pre;
    line-height: 1.3;
    animation: logFadeIn 0.4s ease-out;
}

@keyframes logFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 2. スマホサイトでのサイズ調整：左右の余白を確保 */
@media (max-width: 480px) {
    .central-panel {
        width: calc(100% - 80px); /* 左右40pxずつの画面余白 */
        padding: 40px 30px; /* パディングを少し減らす */
    }
}