/* =========================================
   お問い合わせページ (contact.php)
   ========================================= */
.header {
    position: static;
}



.contact_page {
    --contact-primary: #00AAD4;
    --contact-secondary: #059FC1;
    --contact-text: #51656F;
    --contact-input: #E2E2E2;
    padding-bottom: 90px;
}

/* ---- タイトル ---- */
.contact_page-title {
    margin: 56px auto 0;
    font-family: Zen Maru Gothic;
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
    color: var(--contact-text);
    text-align: center;
}

/* ---- リード文 ---- */
.contact_page-lead {
    width: 75%;
    margin: 36px auto 0;
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.02em;
    color: var(--contact-text);
}

.contact_page-lead_link {
    color: var(--contact-primary);
    text-decoration: underline;
}

/* ---- 注意事項 ---- */
.contact_page-notice {
    width: 75%;
    margin: 48px auto 0;
}

.contact_page-notice_title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D9D9D9;
    font-family: Zen Maru Gothic;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--contact-text);
}

.contact_page-notice_icon {
    width: 34px;
    height: auto;
}

.contact_page-notice_list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-flow: column;
    gap: 14px;
}

.contact_page-notice_item {
    position: relative;
    padding-left: 1em;
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--contact-text);
}

.contact_page-notice_item:before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

/* ---- フォームカード ---- */
.contact_page-form_card {
    width: 75%;
    margin: 54px auto 0;
    padding: 40px 60px 48px;
    border-radius: 40px;
    box-shadow: 0px 0px 4px 1px #00000040;
}

.contact_page-form_heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: Zen Maru Gothic;
    font-weight: 500;
    font-size: 28px;
    line-height: 1;
    color: var(--contact-text);
}

.contact_page-form_heading_icon {
    width: 40px;
    height: auto;
}

/* ---- Contact Form 7 ---- */
.contact_page .contact-form {
    margin-top: 38px;
    display: flex;
    flex-flow: column;
    gap: 22px;
}

.contact_page .contact-form_row {
    display: flex;
    align-items: flex-start;
    margin: 0;
    width: 100%;
}

.wpcf7-form-control-wrap {
    width: 70%;
}

.wpcf7-form-control wpcf7-file contact-form_file {
    width: 100%;
}

.contact_page .contact-form_headline {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 30%;
    padding-top: 4px;
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: var(--contact-text);
}

.contact_page .contact-form_require {
    flex: 0 0 auto;
    display: inline-block;
    width: 44px;
    height: 17px;
    border-radius: 8.5px;
    background: var(--contact-primary);
    color: #FFFFFF;
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    text-align: center;
}

.contact_page .contact-form_item {
    flex: 1 1 auto;
    min-width: 0;
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
}

.contact_page .contact-form_input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 4px;
    background: var(--contact-input);
    color: var(--contact-text);
}

.contact_page .contact-form_input::placeholder {
    color: #9B9B9B;
}

.contact_page .contact-form_textarea {
    height: 175px;
    resize: vertical;
}

/* お問い合わせ種別（チェックボックス） */
.contact_page .contact-form_list {
    display: flex;
    flex-flow: column;
    gap: 10px;
}

.contact_page .contact-form_list .wpcf7-list-item {
    margin: 0;
}

.contact_page .contact-form_list .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.contact_page .contact-form_list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--contact-primary);
}

/* 添付ファイル */
.contact_page .contact-form_file {
    font-family: Zen Maru Gothic;
    font-size: 14px;
    color: var(--contact-text);
}

.contact_page .contact-form_file::file-selector-button {
    margin-right: 12px;
    padding: 8px 18px;
    border: 1px solid #B5B5B5;
    border-radius: 4px;
    background: #F4F4F4;
    font-family: Zen Maru Gothic;
    font-size: 14px;
    color: var(--contact-text);
    cursor: pointer;
}

/* 利用規約・個人情報保護方針への同意（CF7 で追加した場合に整形） */
.contact_page .contact-form_privacy {
    margin: 4px 0 0;
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
    color: var(--contact-text);
}

.contact_page .contact-form_privacy a {
    color: var(--contact-primary);
    text-decoration: underline;
}

.contact_page .contact-form_accept {
    display: flex;
    justify-content: center;
}

.contact_page .contact-form_accept .wpcf7-list-item {
    margin: 0;
}

.contact_page .contact-form_accept label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Zen Maru Gothic;
    font-weight: 700;
    font-size: 16px;
    color: var(--contact-text);
    cursor: pointer;
}

.contact_page .contact-form_accept input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--contact-primary);
}

/* バリデーション・レスポンス */
.contact_page .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-family: Zen Maru Gothic;
    font-size: 13px;
    color: #D32F2F;
}

.contact_page .contact-form_response,
.contact_page .wpcf7-response-output {
    margin: 4px auto 0 !important;
    text-align: center;
    font-family: Zen Maru Gothic;
    font-size: 14px;
}

/* 送信ボタン */
.contact_page .contact-form_button {
    display: block;
    width: 153px;
    height: 38px;
    border: none;
    border-radius: 4px;
    background: var(--contact-primary);
    font-family: Zen Maru Gothic;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: #FFFFFF;
    margin: 8px auto 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: opacity 0.2s ease;
}

.contact_page .contact-form_button:hover {
    opacity: 0.85;
}

/* 送信中スピナー位置調整 */
.contact_page .wpcf7-spinner {
    margin: 8px auto 0;
    display: block;
}

/* ---- 送信完了バナー ---- */
.contact_page-complete {
    display: flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
    max-width: 100%;
    margin: 28px auto 0;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0px 2px 10px 0px #00000026;
    /* フェードイン初期状態 */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 非表示時（JS で hidden 属性を外すまで） */
.contact_page-complete[hidden] {
    display: none;
}

/* 表示時 */
.contact_page-complete.is-visible {
    opacity: 1;
    transform: none;
}

.contact_page-complete_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 22px;
    background: var(--contact-primary);
}

.contact_page-complete_icon svg {
    width: 34px;
    height: 34px;
}

.contact_page-complete_body {
    display: flex;
    flex-flow: column;
    gap: 6px;
    padding: 16px 30px 16px 0;
}

.contact_page-complete_title {
    font-family: Zen Maru Gothic;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: var(--contact-text);
}

.contact_page-complete_text {
    font-family: Zen Maru Gothic;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
    color: #7A8A93;
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
    .contact_page-title {
        margin-top: 36px;
        font-size: 28px;
    }

    .contact_page-lead {
        width: 90%;
        font-size: 14px;
    }
    
    .contact_page-notice {
        width: 90%;
    }

    .contact_page-notice_title {
        font-size: 20px;
    }

    .contact_page-notice_icon {
        width: 26px;
    }

    .contact_page-notice_item {
        font-size: 13px;
    }

    .contact_page-form_card {
        padding: 28px 22px 32px;
        border-radius: 16px;
        width: 90%;
    }

    .contact_page-form_heading {
        font-size: 20px;
    }

    .contact_page-form_heading_icon {
        width: 30px;
    }

    .contact_page .contact-form {
        gap: 0px;
    }

    .contact_page .contact-form_row {
        flex-flow: column;
        gap: 0px;
    }

    .wpcf7-form-control-wrap {
        width: 100%;
    }
    
    .contact_page .contact-form_headline {
        width: 100%;
        padding-top: 0;
        font-size: 14px;
    }

    .contact_page .contact-form_item {
        width: 100%;
    }

    .contact_page-complete {
        gap: 14px;
    }

    .contact_page-complete_icon {
        padding: 0 16px;
    }

    .contact_page-complete_icon svg {
        width: 28px;
        height: 28px;
    }

    .contact_page-complete_body {
        padding: 14px 18px 14px 0;
    }

    .contact_page-complete_title {
        font-size: 17px;
    }

    .contact_page-complete_text {
        font-size: 12px;
    }
}
