* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

ol,
ul {
    list-style: none;
}

a {
    color: inherit;
    /* 青くなるのなくす */
    text-decoration: none;
    /* 下線消し */
}

:root {
    --font: #66360c;
    --sub1: #fff5e5;
    --sub2: #f6ad3c;
    --sub3: #aacf52;
}

.inner_box {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

.form_inner {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--font);
    text-align: center;
    padding: 100px 0 30px;
}

@media all and (min-width:767.9px) {

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        border: 1px solid #ccc;
        padding: 10px;
        font-size: 14px;
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
        /* ラベルとフィールド間のスペースを調整 */
        background-color: #f3efe6;
        border-radius: 5px;

    }

    th {
        text-align: left;
        border: 1px solid var(--font);
        padding-left: 30px;
        background-color: #f3efe6;
    }

    .message-title {
        margin: 0 auto;
    }

    table {
        height: 100%;
        border: 1px solid var(--sub1);
        border-collapse: collapse;
        margin: 0 auto;
        margin-bottom: 65px;
        width: 100%;
        max-width: 900px;
    }

    tr {
        height: 50px;
        /* 行の高さを指定 */
        margin: 0 auto;
        /* 水平方向に中央配置 */
    }

    td {
        border: 1px solid var(--font);
        padding: 20px 0 0 30px;
        text-align: center;
        vertical-align: middle;
    }

    input,
    textarea {
        display: block;

    }

    textarea {
        height: 150px;
    }

    .form-Precautions {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding-left: 30px;
        margin-top: 20px;
        background-color: #f3efe6;
        color: var(--font);
        font-weight: bold;
        height: 35px;
        display: flex;
        align-items: center;
        /* 垂直方向の中央揃え */
    }

    .form-form-Precautions_boder {
        color: #462305;
        border: var(--font) solid 1px;
        padding: 25px;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        margin-bottom: 20px;
        margin-top: 20px;
    }

}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #666;
    /* フォーカス時のボーダーカラー */
    outline: none;
}

label.required {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--font);
    margin: 0 auto;
}

label.required::after {
    content: "*";
    color: red;
    /* 文字色を赤 */
    font-size: 0.9em;
    margin-left: 5px;
}



/* 送信ボタンのスタイル */
button.submit-btn {
    background-color: #6fa1e4;
    font-weight: 400;
    color: white;
    padding: 12px 10px;
    margin-top: 10px;
    margin-bottom: 80px;
    border: none;
    border-bottom: 0.1875em solid #5c90d3;
    border-radius: 50px;
    font-size: 25px;
    cursor: pointer;
    width: 180px;
    /* ボタン幅を固定 */
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

button.submit-btn:hover {
    background-color: #658ac7;
    /* ホバー時の色 */
    border-bottom-color: transparent;
    transform: translateY(0.0875em);
}

/* ラジオボタンのスタイル */
.question {
    margin-bottom: 10px;/
}

@media all and (min-width:768px) {
    .qs {
        display: flex;
        gap: 60px;
    }
}

/* 各ラベルを横並びにする */

h2 {
    text-align: center;
    padding-bottom: 50px;
    padding-top: 60px;
    font-size: 2rem;
}

h3 {
    margin-bottom: 12px;
    margin-top: 10px;
}

.form-Precautions {
    text-align: center;
}

/* ボタンを中央に配置する */
.form-actions {
    text-align: center;
    /* ボタンを中央に配置 */
}

/* チェックボックスのスタイル */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* チェックボックスとラベルの配置を整える */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

label {
    font-weight: bold;
    color: var(--font);
    position: relative;
    display: flex;
    margin-bottom: 10px;
}

label input {
    margin-right: 10px;
}

/* ラベルのスタイル */
.checkbox-group label {
    margin-bottom: -5px;
}

@media all and (max-width:767.9px) {

    .contact-form {
        max-width: 700px;
        width: 100%;
    }

    /* 必須ラベルのスタイル */

    label.required {
        font-weight: bold;
        color: var(--font);
        position: relative;
        display: block;
        margin-bottom: 10px;
        /* ボーダーとフィールドの間のスペース */
        padding-bottom: 5px;
        /* ボーダーとテキストの間のスペース */
        border-bottom: 2px solid #5c300954;
        /* ラベルの下にボーダーを追加 */
        padding-bottom: 10px;
    }


    td {
        border: none;
    }

    th {
        border: none;

    }

    table {
        width: 100%;
        border: none;
        border-collapse: unset;
    }

    th,
    td {
        text-align: left;
        display: block;
    }

    /* 一般ラベルのスタイル（ボーダー付き） */


    /* 同意チェックボックスのラベルにボーダーを表示しない */
    label.no-border {
        border-bottom: none;
    }

    /* フィールドのスタイル */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        border: 1px solid #ccc;
        padding: 10px;
        font-size: 14px;
        width: 100%;
        border-radius: 4px;
        margin-bottom: 20px;
        /* ラベルとフィールド間のスペースを調整 */
        background-color: #f0f0f0;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    textarea:focus {
        border-color: #666;
        /* フォーカス時のボーダーカラー */
        outline: none;
    }

    textarea {
        height: 150px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        border: 1px solid #ccc;
        padding: 10px;
        font-size: 14px;
        margin-bottom: 20px;
        /* ラベルとフィールド間のスペースを調整 */
        background-color: #f3efe6;
        border-radius: 5px;
    }

    .form-Precautions {
        color: var(--font);
        text-align: center;
        font-weight: bold;
        margin-bottom: 25px;
        margin-top: 20px;
    }

    .form-form-Precautions_boder {
        border: #333 solid 1px;
        padding: 15px;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        margin-bottom: 20px;
    }


    textarea {
        margin: 0 auto;
    }
}