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

body {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f2ef; /* 背景色を指定 */
    color: #ffffff;
    overflow: hidden; /* ページ全体のスクロールを無効化 */
    height: 100%; /* ページ全体を覆う */
    margin: 0; /* 余白を消す */
}


.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}





/* BPM表示のコンテナ */
.bpm-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px; /* 円のサイズと同じ */
    height: 200px; /* 円のサイズと同じ */
    margin: 30px auto; /* 画面中央 */
}

/* BPMのリング（円の拡大） */
#bpm-ring {
    position: absolute;
    transform: rotate(-90deg); /* 12時の位置からスタートさせる */
}



/* BPMの表示エリア（円の中に配置） */
#bpm-display {
    position: absolute;
    display: flex;
    flex-direction: column; /* 🔥 縦方向に並べる */
    align-items: center;
    justify-content: center;
}

/* 「BPM：」のデザイン */
#bpm-label {
    font-size: 16px; /* 少し小さめ */
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 0px 0px 5px rgba(255, 235, 59, 0.8);
}

/* 数値のデザイン */
#bpm-value {
    font-size: 32px; /* 数値は大きめ */
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 0px 0px 10px rgba(255, 235, 59, 0.8);
}









/* BPMの変化を示す円（グラデーション適用） */
#bpm-circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    stroke-linecap: round; /* 丸みをつける */
}











/* ボタン共通 */
button {
    font-size: 18px;
    padding: 14px 24px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    width: 100%; /* 幅を統一 */
    max-width: 300px; /* 最大幅を設定 */
    display: block;
    margin: 10px auto; /* 上下に余白をつけて中央配置 */
}




/* ボタンが押された時のアニメーション */
button:active,
button.active {
    transform: scale(0.95); /* 押し込み感 */
    opacity: 0.8; /* 少し透明に */
}












/* タップボタン（上部） */
#tap-button {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
    color: white;
    box-shadow: 0px 4px 6px rgba(255, 118, 156, 0.3);
}

#tap-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff5470, #ff758c);
}

/* リセットボタン（下部） */
#reset-button {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    color: white;
    box-shadow: 0px 4px 6px rgba(74, 144, 226, 0.3);
}

#reset-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #357ABD, #4a90e2);
}





/* サウンドON/OFFボタン */
#sound-toggle-button {
    background: linear-gradient(135deg, #8bc34a, #4caf50);
    color: white;
    box-shadow: 0px 4px 6px rgba(76, 175, 80, 0.3);
}

#sound-toggle-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4caf50, #388e3c);
}






/* スマホ対応 */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    button {
        font-size: 16px;
    }
}
