body {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    color: #333;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

}

header {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #fff;
}

h1 {
    font-size: 1.8rem;
    margin: 0;
}

.red-line {
    border: none;
    border-top: 3px solid #e60012;
    width: 80%;
    margin: 0.5rem auto 1rem;
}

.option-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1rem;
}

.tab {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    background-color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.tab:hover,
.tab.active {
    background-color: #e60012;
    color: #fff;
    border-color: #e60012;
}

.option-section {
    background-color: #f9f9f9;
    margin: 2rem auto;
    padding: 2rem 1rem;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.option-section h2 {
    border-left: 5px solid #e60012;
    padding-left: 0.8rem;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.option-table h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid #e60012;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-table h3 a {
    font-size: 0.85rem;
    text-decoration: none;
    color: #0073e6;
}

.option-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-bottom: 2rem;
    table-layout: auto;
}

.option-table th,
.option-table td {
    border: 1px solid #ccc;
    padding: 0.8rem;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.option-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #666;
    background-color: #f9f9f9;
}

/* ==============================
   スマホ・タブレット対応
   ============================== */

@media (max-width: 768px) {

    .option-table table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        word-break: break-word;
        white-space: normal;
        overflow-x: hidden;
    }

    .option-table th,
    .option-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
        text-align: left;
        vertical-align: top;
        word-wrap: break-word;
    }

    .option-table th:nth-child(1),
    .option-table td:nth-child(1) {
        width: 20%;
    }

    .option-table th:nth-child(2),
    .option-table td:nth-child(2) {
        width: 45%;
    }

    .option-table th:nth-child(3),
    .option-table td:nth-child(3) {
        width: 35%;
    }

    .option-table table {
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
    }

    .option-section {
        padding: 1rem 0.5rem;
        margin: 1rem auto;
    }


    .option-section {
        overflow-x: visible;
    }
}