.contact-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.container {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* 既存のテーブルスタイル */
.responsive-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
}

.responsive-table th,
.responsive-table td {
    border: 1px solid #ffffff;
    padding: 15px;
    text-align: left;
    background-color: #e9e9e9;
}

.responsive-table th {
    background-color: #fcfcfc;
    border: 1px solid #e9e9e9;
    width: 30%;
}

.gaiyou .detailGrayTable td span {
    color: rgb(67, 67, 67);
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
}

.gaiyou .detailGrayTable th span {
    color: rgb(67, 67, 67);
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
}

.responsive-table th span {
    color: red;
    font-size: 0.8rem;
    display: block;
}

.responsive-table td span {
    color: red;
    font-size: 0.8rem;
    display: block;
}

/* フォーム部品の調整 */
.responsive-table input[type="text"],
.responsive-table input[type="email"],
.responsive-table input[type="tel"],
.responsive-table textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.responsive-table textarea {
    height: 200px;
}

/* チェックボックス */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.checkbox-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 送信ボタン */
.submit-area {
    text-align: center;
}

.btn-submit {
    background: #333;
    color: #fff;
    padding: 15px 80px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #666;
}

/* メッセージ */
.msg-success {
    background: #e7f7ed;
    border: 1px solid #28a745;
    padding: 20px;
    text-align: center;
}

.msg-error {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    padding: 15px;
    margin-bottom: 20px;
    color: #e74c3c;
}


.toiawaseErea {
    background-image: url(../img/mousikomi-img.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1366 / 516;
}

.toiawaseBtnErea {
    padding: 24px 0;
    text-align: center;
    background-color: #ffc1c2;
}

/* スマホ対応用 */
@media screen and (max-width: 767px) {
    .responsive-table {
        display: block;
        width: 100%;
        /* autoではなく100%を指定 */
    }



    .responsive-table tbody,
    .responsive-table tr {
        display: block;
        width: 100%;
    }

    .responsive-table th,
    .responsive-table td {
        display: block;
        width: 100% !important;
        /* 強制的に100%にする */
        box-sizing: border-box;
        /* パディングを含めた幅計算にする */
    }

    .responsive-table th {
        border-bottom: none;
        background-color: #fff;

        /* 見出しっぽく色を変えると見やすい */
    }

    .responsive-table th span {
        display: inline;
        /* スマホでは(必須)を横に並べた方が高さが縮まる */
        margin-left: 5px;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
        /* ボタンも横いっぱいにすると押しやすい */
        padding: 15px 0;
    }
}