.header_inner .header_lef :is(h1:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h1"])) {
    color: #868daa;
}

.header_item {
    color: #000;
}


main {
    margin-top: 200px;
}

header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    position: relative;
}

.breadcrumb {
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 50px;
}

:is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
    margin-bottom: 120px;
}

:is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
    content: "Contact";
    left: 30%;
    transform: translateX(-50%);
}


/* 全体のフォームスタイル */
.form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* 見出しスタイル */
.form-wrapper :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
    font-size: 40px;
    color: #002d79;
    margin-bottom: 10px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "yu-mincho-pr6n", sans-serif;
    font-weight: bold;
}

.contact_block {
    max-width: 860px;
    margin: 0 auto;
}

/* ラベル */
.form-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 必須マーク */
.required {
    background-color: #002d79;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

/* テキストフィールドとテキストエリア */
.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper textarea {
    width: 100%;
    border: 1px solid #002d79;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 18px;
}

.form-wrapper p {
    margin-bottom: 20px;
}

.form-wrapper .form_txt {
    margin-bottom: 60px;
    font-size: 18px;
}

/* テキストエリア */
textarea {
    resize: none;
    height: 120px;
}

/* お知らせ部分 */
.notice {
    background-color: #fef5d9;
    padding: 80px 65px 45px;
    margin-bottom: 20px;
    position: relative;
    margin-top: 100px;
}

.notice p {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
    
}

/* 同意部分 */
.consent {
    margin-bottom: 20px;
    font-size: 14px;
}

.consent p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

/* 送信ボタン */
.submit-btn input[type="submit"] {
    background-color: #002d79;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 367px;
    height: 60px;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.submit-btn input[type="submit"]::after {
    content: ">";
    color: #fff;
    position: absolute;
    right: 20px;
}

.submit-btn input[type="submit"]:hover {
    background-color: #0056b3;
}


/* チェックボックス */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ラベルのスタイル */
.consent label {
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

/* チェックボックスとラベルを横並びに配置 */
.consent {
    display: flex;
    align-items: center; /* チェックボックスとラベルの縦位置を揃える */
    gap: 8px; /* チェックボックスとテキストの間隔を設定 */
}

/* チェックボックス */
.consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 10px;
}

/* リンクのスタイル */
.consent a {
    color: #002d79;
    text-decoration: underline;
    font-size: 14px;
}

.consent a:hover {
    text-decoration: none;
    color: #0056b3;
}

/* ラベルのスタイル */
.consent label {
    font-size: 14px;
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #afaeae; /* プレースホルダーの文字色 */
    font-size: 18px;
}


@media screen and (max-width: 1000px) {
    main {
        margin-top: 42.5vw;
    }
    .breadcrumb {
        padding-left: 4vw;
        font-size: 3.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
        margin-bottom: 22.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
        left: 50%;
        bottom: 6.25vw;
        font-size: 27.5vw;
    }
    .contact_block {
        width: 85%;
    }
    .form-wrapper .form_txt {
        font-size: 4vw;
    }
    .form-wrapper :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
        font-size: 7vw;
        width: max-content;
        top: -6.25vw;
    }
    .notice {
        padding: 13.75vw 8.75vw 11.25vw;
    }
    .notice p {
        line-height: 2.571;
        font-size: 3.5vw;
    }
    .submit-btn input[type="submit"] {
        width: 80vw;
    }
    header {
        padding-bottom: 0;
    }
    .consent label {
        line-height: 1.5;
    }
}