/* 全ページ共通: 音量設定ボタン+ポップアップ */

.kotonoha-volume-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background-color: #607d8b;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
}
.kotonoha-volume-btn:hover { background-color: #4b636e; }

.kotonoha-volume-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}
.kotonoha-volume-popup.active { display: flex; }

.kotonoha-volume-popup-inner {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.kotonoha-volume-title {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 16px;
    color: #ff9800;
}

.kotonoha-volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.kotonoha-volume-row label {
    width: 48px;
    font-weight: bold;
    font-size: 0.9rem;
}
.kotonoha-volume-row input[type="range"] {
    flex: 1;
    accent-color: #ff9800;
}

.kotonoha-volume-close {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background-color: #607d8b;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin-top: 4px;
}

/* 全ページ共通: 遊び方ボタン+ポップアップ */

.kotonoha-howto-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background-color: #ff9800;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
}
.kotonoha-howto-btn:hover { background-color: #e68a00; }

.kotonoha-howto-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}
.kotonoha-howto-popup.active { display: flex; }

.kotonoha-howto-popup-inner {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.kotonoha-howto-title {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 12px;
    color: #ff9800;
    border-bottom: 2px dashed #eee;
    padding-bottom: 8px;
}

.kotonoha-howto-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}
.kotonoha-howto-content h3 {
    font-size: 1rem;
    color: #607d8b;
    margin: 16px 0 6px;
}
.kotonoha-howto-content h3:first-child { margin-top: 0; }
.kotonoha-howto-content ul, .kotonoha-howto-content ol {
    margin: 0 0 8px;
    padding-left: 1.3em;
}
.kotonoha-howto-content li { margin-bottom: 6px; }

.kotonoha-howto-close {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background-color: #607d8b;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
}
