/* ===== Web Tuning Fork 固有スタイル ===== */
/* 共通スタイルは ../shared/css/common.css を参照 */

/* ボタンの追加スタイル */
button {
    min-width: 120px;
    text-align: center;
}

#toggleButton.playing {
    background: #d35400;
    border-color: #e67e22;
    color: #fff;
    box-shadow: 0 0 18px rgba(211, 84, 0, 0.55);
}

/* ギター弦選択ボタン */
.string-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.string-btn {
    min-width: 50px;
    padding: 12px 16px;
    font-size: 1rem;
    background: #222;
    border: 2px solid #555;
    color: #aaa;
}

.string-btn:hover {
    background: #333;
    border-color: #888;
    color: #fff;
}

.string-btn.active {
    background: #d35400;
    border-color: #e67e22;
    color: #fff;
    box-shadow: 0 0 12px rgba(211, 84, 0, 0.5);
}

.frequency-control {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.frequency-control label {
    font-size: 1rem;
    color: #ccc;
}

#freqSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #444;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 5px;
}

#freqSlider:hover {
    opacity: 1;
}

#freqSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #d35400;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
}

#freqSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #d35400;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* 広告領域 */
.ad-space {
    margin-top: 30px;
    width: 100%;
    max-width: 728px;
    min-height: 100px;
    text-align: center;
    background: #111;
    border: 1px dashed #333;
    position: relative;
    overflow: hidden;
}

/* 広告未表示時に文字を出す */
.ad-space::before {
    content: "AD SPACE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 0.8rem;
    z-index: 0;
    pointer-events: none;
}

/* 広告要素が重なれば文字は隠れる */
.ad-space ins {
    position: relative;
    z-index: 1;
    background: #000;
}
