/* =========================================================
   お問い合わせフォーム（現行フォームのレイアウトを流用）
   ========================================================= */
.contact-page {
    --corporate-black: #160C1C;
    --corporate-red: #F71F21;
    --white: #FFF;
    --gray: #9CA0A6;
    --light-gray: #F5F6F8;
    --border-gray: #E9EBF2;
    color: var(--corporate-black);
    font-size: 16px;
}
.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}
.contact-page input,
.contact-page textarea,
.contact-page button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline-offset: 2px;
}
.contact-page button {
    cursor: pointer;
}
.contact-page a {
    color: inherit;
    text-decoration: none;
}
.contact-page img {
    display: block;
    max-width: 100%;
}

/* ---- ページカバー ---- */
.page_cover {
    position: relative;
    height: 440px;
    padding: 100px 0;
    background: #000;
    overflow: hidden;
}
.page_cover img.page_cover_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    object-fit: cover;
}
.page_titles {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    justify-content: flex-end;
    max-width: 1240px;
    width: 92%;
    margin: auto;
}
.en_page_title {
    color: var(--white);
    font-family: Urbanist, var(--english-font);
    font-size: 86px;
    font-weight: 700;
    line-height: 88.372%;
}
.jp_page_title {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4em;
    letter-spacing: 0.96px;
}
.page_shapre {
    position: absolute;
    top: 130px;
    right: 0;
    width: 26vw;
    max-width: 380px;
    pointer-events: none;
}
.page_shapre img {
    width: 100%;
    height: auto;
}

/* ---- セクション ---- */
.section_space {
    position: relative;
    padding: 150px 0;
}
.inner_space {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 92%;
    max-width: 1240px;
    margin: auto;
}
.page_head_1 {
    font-size: 28px;
    line-height: 157.143%;
    letter-spacing: 0.84px;
}
.desc {
    line-height: 175%;
    letter-spacing: 0.48px;
}
.form_err_summary {
    padding: 16px 24px;
    border: 1px solid var(--corporate-red);
    background: rgba(247, 31, 33, 0.06);
    color: var(--corporate-red);
    line-height: 1.6;
}

/* ---- フォーム ---- */
.contact_form {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.input_area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border: 1px solid var(--border-gray);
}
.input_area .row {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}
.input_area .row .label {
    display: flex;
    width: 240px;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    padding: 32px 24px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--white);
    background: var(--border-gray);
}
.input_area .row .label p {
    line-height: 28px;
    letter-spacing: 0.48px;
}
.input_area .row .label .required {
    display: flex;
    padding: 1px 8px;
    justify-content: center;
    align-items: flex-start;
    background: var(--corporate-red);
    color: var(--white);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.36px;
    white-space: nowrap;
}
.input_area .row .input_frame {
    display: flex;
    padding: 32px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    flex: 1 0 0;
    align-self: stretch;
    border-bottom: 1px solid var(--border-gray);
}
.input_area .row .input_frame input:not([type="checkbox"]):not([type="file"]),
.input_area .row .input_frame textarea {
    display: flex;
    max-width: 600px;
    width: 100%;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    line-height: 28px;
    letter-spacing: 0.48px;
}
.input_area .row .input_frame textarea {
    min-height: 220px;
    resize: vertical;
}
.input_area .row .input_frame input::placeholder,
.input_area .row .input_frame textarea::placeholder {
    color: var(--gray);
}
.input_area .row .input_frame .is-err {
    border: 2px solid var(--corporate-red) !important;
    background: rgba(247, 31, 33, 0.1) !important;
}
.input_area .row .input_frame .check_value {
    display: flex;
    max-width: 600px;
    width: 100%;
    padding: 16px 0;
    line-height: 28px;
    letter-spacing: 0.48px;
    word-break: break-all;
}
.post_number_wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}
.input_area .row .input_frame .post_number_wrap input:not([type="checkbox"]):not([type="file"]) {
    max-width: 200px;
}
.input_area .row .input_frame .post_number_wrap .check_value {
    width: auto;
}
.field_err {
    color: var(--corporate-red);
    font-size: 14px;
    line-height: 1.6;
}

/* 添付ファイル */
.input_area .row .input_frame input[type="file"] {
    display: none;
}
.file_wrap {
    display: flex;
    max-width: 600px;
    width: 100%;
    padding: 16px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
}
.file_wrap > p {
    color: var(--gray);
    line-height: 28px;
    letter-spacing: 0.48px;
    word-break: break-all;
}
.file_wrap > p.has-file {
    color: var(--corporate-black);
}
.file_wrap label {
    display: flex;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
    background: var(--light-gray);
    cursor: pointer;
}
.file_wrap label p {
    color: var(--gray);
    line-height: 28px;
    letter-spacing: 0.48px;
}
.file_remove {
    font-size: 14px;
    cursor: pointer;
}
.input_frame .notice {
    color: var(--gray);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.36px;
}

/* 同意チェック */
.privacy_label {
    display: block;
    cursor: pointer;
}
.contact_form .privacy_txt {
    line-height: 28px;
    letter-spacing: 0.48px;
    text-align: center;
}
.contact_form .privacy_txt a {
    text-decoration-line: underline;
}
.err_txt {
    display: none;
    font-size: 14px;
    color: var(--corporate-red);
    text-align: center;
}
.err .err_txt {
    display: block;
}

/* ボタン */
.button_flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}
.button_flex .back_btn,
.button_flex .submit_btn {
    position: relative;
    display: flex;
    max-width: 400px;
    width: 90%;
    padding: 24px;
    align-items: center;
    border-radius: 6px;
    transition: opacity .3s;
}
.button_flex .back_btn {
    background: var(--gray);
}
.button_flex .submit_btn {
    background: var(--corporate-red);
}
.button_flex .back_btn::before,
.button_flex .submit_btn::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 1px solid var(--white);
    border-radius: 50%;
    transform: translateY(-50%);
    background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8 1l4 4-4 4' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
    transition: left .3s, right .3s;
}
.button_flex .back_btn::before {
    left: 24px;
    transform: translateY(-50%) rotate(180deg);
}
.button_flex .submit_btn::before {
    right: 24px;
}
.button_flex .back_btn:hover,
.button_flex .submit_btn:hover {
    opacity: 0.6;
}
.button_flex .back_btn:hover::before {
    left: 16px;
}
.button_flex .submit_btn:hover::before {
    right: 16px;
}
.button_flex .back_btn p,
.button_flex .submit_btn p {
    width: 100%;
    color: var(--white);
    text-align: center;
    line-height: 28px;
    letter-spacing: 0.48px;
}
.button_flex .back_btn p {
    padding-left: 36px;
}
.button_flex .submit_btn p {
    padding-right: 36px;
}
.button_flex .submit_btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ハニーポット（スパム対策・非表示） */
.hp_field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- レスポンシブ ---- */
@media screen and (max-width: 1000px) {
    .button_flex {
        flex-direction: column-reverse;
        gap: 16px;
    }
    .button_flex .back_btn,
    .button_flex .submit_btn {
        margin: auto;
    }
}
@media screen and (max-width: 800px) {
    .file_wrap {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}
@media screen and (max-width: 768px) {
    .page_cover {
        height: auto;
        padding: 120px 0 60px;
    }
    .page_titles {
        gap: 16px;
    }
    .en_page_title {
        font-size: 64px;
    }
    .page_shapre {
        top: 90px;
    }
    .section_space {
        padding: 100px 0;
    }
    .page_head_1 {
        font-size: 20px;
    }
    .desc {
        font-size: 14px;
    }
    .input_area .row {
        flex-direction: column;
    }
    .input_area .row .label {
        width: 100%;
    }
    .input_area .row .input_frame {
        padding: 24px 12px;
    }
}

/* ロボット判定（Turnstile） */
.captcha_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 見出し・本文で1〜2文字だけ改行されるのを防ぐ（文節で改行・行の長さをそろえる） */
.page_head_1 {
    word-break: auto-phrase;
    text-wrap: balance;
}
.desc {
    word-break: auto-phrase;
}
