/* 背景色・ページ全体の基準点 */
body {
    background-color: #F5CD8D;
    position: relative; /* ← guitar-bodyの基準になる */
}
main {
    padding-bottom: 400px; /* ここを大きくすればするほど、下にギターの背景が見えるようになります */
}
/* --- ギター背景 (background.css) --- */
.guitar-body {
    position: absolute; /* fixedからabsoluteに変更：ページ全体基準 */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: calc(100% - 200px); /* ページ全体の高さ */
    display: flex;
    justify-content: center;
    z-index: -1;
    pointer-events: none;
}

/* 指板（木の板）：上から */
.fretboard {
    position: absolute;
    top: 0;
    width: 80px;
    height: calc(100% - 320px);
    background-color: #8B4513;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.1) 100%);
    border-radius: 0 0 10px 10px;
}

/* サウンドホール：ページの一番下から */
.sound-hole {
    position: absolute;
    bottom: 180px;
    width: 160px;
    height: 160px;
    background-color: #000000;
    border-radius: 50%;
    border: 12px solid #733912;
    z-index: 4;
}

/* ブリッジ土台：ページの一番下から */
.bridge {
    position: absolute;
    bottom: 60px;
    width: 140px;
    height: 40px;
    background-color: #4A2200;
    z-index: 10 !important;
}

/* サドル（白い棒）：ページの一番下から */
.bridge-white-bar {
    position: absolute;
    bottom: 85px;
    width: 70px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 2px;
    z-index: 20 !important;
}

/* 弦のエリア：上からページ下まで */
.strings-area {
    position: absolute;
    top: 0;
    width: 60px;
    height: calc(98%);
    display: flex;
    justify-content: space-between;
    z-index: 30 !important;
}

/* 4. 【最前面】ピンのコンテナ */
.pins-container {
    position: absolute;
    top: 97.95%;
    width: 70px;
    display: flex;
    justify-content: space-around;
    z-index: 40 !important;
}

/* ピン本体 */
.pin {
    width: 6px;
    height: 6px;
    background-color: #DAA520;
    border-radius: 50%;
}

/* 弦の見た目 */
.string {
    width: 2px;
    height: 100%;
    background: linear-gradient(to right, #f0f0f0, #ffffff, #e0e0e0);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.4);
}

/* ピンのコンテナ：ページの一番下から */
.pins-container {
    position: absolute;
    bottom: 67px;
    width: 70px;
    display: flex;
    justify-content: space-around;
}

/* ピン本体 */
.pin {
    width: 6px;
    height: 6px;
    background-color: #DAA520;
    border-radius: 50%;
}