/* ===== Guitar Fret Calculator 固有スタイル ===== */
/* 共通スタイルは ../shared/css/common.css を参照 */

body {
    justify-content: flex-start;
}

.subtitle {
    font-size: 0.8em;
    font-weight: normal;
}

.is-hidden {
    display: none;
}

.calc-panel {
    width: 100%;
    max-width: 760px;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    background: #101010;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.form-row:last-of-type {
    margin-bottom: 0;
}

label {
    color: #ccc;
    font-size: 0.92rem;
}

.form-help {
    margin: 2px 0 0;
    color: #999;
    font-size: 0.8rem;
    line-height: 1.4;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #181818;
    color: #fff;
    font-family: 'Noto Serif JP', serif;
    box-sizing: border-box;
}

.input-group select {
    width: 120px;
    flex: 0 0 auto;
}

.scale-group > select {
    width: 100%;
    flex: 1 1 auto;
}

.scale-input-group {
    flex: 0 0 250px;
    max-width: 250px;
}

#unitSelect {
    width: 92px;
    flex: 0 0 92px;
}

.correction-group select {
    width: 100%;
    flex: 1 1 auto;
}

.correction-group input[type="number"] {
    width: 120px;
    flex: 0 0 120px;
}

#fretCountInput {
    width: 120px;
    max-width: 100%;
}

#btnCalc {
    background: #d35400;
    border-color: #e67e22;
    color: #fff;
}

#btnCalc:hover {
    box-shadow: 0 4px 16px rgba(211, 84, 0, 0.55);
}

.summary {
    margin-top: 16px;
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
    color: #ccc;
    font-size: 0.92rem;
}

.summary strong {
    color: #fff;
}

.formula-note {
    width: 100%;
    max-width: 760px;
    margin: 8px 0 0;
    color: #999;
    font-size: 0.82rem;
    text-align: center;
}

.table-wrap {
    margin-top: 14px;
    width: 100%;
    max-width: 760px;
    overflow-x: auto;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    background: #0d0d0d;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #252525;
    text-align: right;
    font-size: 0.9rem;
}

th {
    background: #161616;
    color: #ddd;
    position: sticky;
    top: 0;
    z-index: 1;
}

th:first-child,
td:first-child {
    text-align: center;
    width: 80px;
}

tbody tr:hover {
    background: #161616;
}

.status-message {
    min-height: 1.2em;
    margin-top: 10px;
    font-size: 0.84rem;
    color: #999;
}

.site-nav {
    margin-top: 20px;
}

.ad-space {
    margin-top: 26px;
}

@media (max-width: 680px) {
    .calc-panel {
        padding: 14px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group select {
        width: 100%;
    }

    .scale-input-group {
        flex: 1 1 auto;
        max-width: none;
    }

    #unitSelect,
    .correction-group input[type="number"],
    #fretCountInput {
        width: 100%;
        flex: 1 1 auto;
    }
}
