@charset "utf-8";
/* CSS Document */
.p-mv {
    background: url('../../assets/img/about/hero-img.jpg') no-repeat 30%/cover;
    position: relative;
    padding: 196px 0;
    min-height: 350px;
}
/* --- 全体レイアウトエリア --- */
.p-contact {
    padding: 80px 0;
    background-color: #fff;
}
.p-contact__inner {
    width: 100%;
    max-width: 900px; /* フォームが綺麗に収まる横幅 */
    margin: 0 auto;
    padding: 0 20px;
}
/* --- 上部アナウンス・電話番号 --- */
.p-contact__intro {
    text-align: center;
    margin-bottom: 60px;
}
.p-contact__intro-text {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 25px;
}
.p-contact__tel-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.p-contact__tel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background-color: var(--color-primary);
    ;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
}
.p-contact__tel-number {
    font-size: 3.0rem;
    font-weight: bold;
    color: var(--color-primary);
    ;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 3.6px;
}
.p-contact__tel-time {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-top: .5rem;
}
/* --- フォーム各行（フィールド）の共通設定 --- */
.p-contact__form {
    margin-top: 40px;
}
.p-contact__field {
    display: flex;
    align-items: flex-start; 
    padding: 20px 0;
    border-bottom: none; /* 線は引かず、ゆったりとした余白で構成 */
}
.p-contact__field--textarea {
    align-items: flex-start; /* テキストエリアの時だけ上揃え */
}
/* 左側：ラベル＆必須バッジエリア */
.p-contact__label-wrap {
    width: 30%; /* 左側エリアの幅を30%に固定 */
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
}
.p-contact__label {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--color-text);
    cursor: pointer;
}
/* 必須バッジ */
.c-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}
.c-badge--required {
    background-color: #d97706; /* オレンジ */
}
/* 右側：入力要素エリア */
.p-contact__input-wrap {
    width: 70%; /* 右側エリアの幅を70%に */
}
/* 入力枠そのものの装飾（画像ベースの細いグレー枠） */
.p-contact__input-wrap input[type="text"], .p-contact__input-wrap input[type="email"], .p-contact__input-wrap input[type="tel"], .p-contact__input-wrap textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--color-text);
    border: 1px solid #707070; /* 画像をベースにしたシャープなグレー枠 */
    border-radius: 0; /* 四角形にするため角丸はゼロ */
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s;
}
.p-contact__input-wrap textarea {
    height: 160px; /* テキストエリアの高さ */
    resize: vertical; /* 縦方向のみユーザーが広げられるように */
}
/* フォーカス時の挙動（全体のトーンである青系に） */
.p-contact__input-wrap input:focus, .p-contact__input-wrap textarea:focus {
    border-color: #1d4ed8;
}
/* プレースホルダー（薄い文字）の色調整 */ ::placeholder {
    color: #b1b1b1;
}
/* --- プライバシーポリシー同意チェック --- */
.p-contact__privacy {
    text-align: center;
    margin: 50px 0 30px;
}
.p-contact__privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 2rem;
}
.p-contact__privacy-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    border: 1px solid #707070;
    cursor: pointer;
}
.p-contact__privacy-text {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
}
.p-contact__privacy-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
/* --- 送信ボタン（submit-button） --- */
.p-contact__submit {
    text-align: center;
}
.c-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 54px;
    background-color: var(--color-primary);
    ; /* テーマの濃紺 */
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* Font Awesomeの右矢印を擬似要素で追加 */
.c-submit-button::after {
    content: '\f054';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 12px;
    font-size: 0.85rem;
}
.c-submit-button:hover {
    background-color: #1d4ed8; /* ホバー時は明るい青へ */
    transform: translateY(-1px);
}
.c-btn:hover {
    opacity: .8;
}
/* --- レスポンシブ対応（スマホ表示） --- */
@media (max-width: 768px) {
    .p-contact__tel-number {
        font-size: 1.8rem;
    }
    .p-contact__tel-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    /* スマホ時は横並びを解除して縦1列に積み上げる */
    .p-contact__field {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }
    .p-contact__label-wrap {
        width: 100%;
        margin-bottom: 8px;
        padding-right: 0;
    }
    .p-contact__input-wrap {
        width: 100%;
    }
    .c-submit-button {
        width: 100%; /* スマホ時はボタンを横幅いっぱいに */
    }
    .p-contact__tel-time {
        margin-top: 0;
    }
}
/* --- サンクスコンテナ --- */
.p-thanks {
    padding: 180px 0 100px;
    background-color: #fff;
    text-align: center;
}
.p-thanks__inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
/* --- チェックアイコン（青い丸に白いチェック） --- */
.p-thanks__icon-wrap {
    margin-bottom: 35px;
}
.p-thanks__check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background-color: var(--color-primary); /* 濃紺 */
    color: #fff;
    border-radius: 50%;
    font-size: 2.8rem;
}
/* --- ヘッダー（金色のTHANK YOU ＋ 明朝体タイトル） --- */
.p-thanks__header {
    margin-bottom: 30px;
}
.p-thanks__sub-title {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-accent); /* ゴールド・オレンジ */
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}
.p-thanks__main-title {
    font-family: Noto Serif JP;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    display: inline-block;
    position: relative;
    padding-bottom: 25px;
}
/* タイトル下の細いゴールド線 */
.p-thanks__main-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}
/* --- リード文（青みの強い濃紺テキスト） --- */
.p-thanks__body {
    margin-bottom: 60px;
}
.p-thanks__body p {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--color-primary); /* 画像に合わせた青みのある文字色 */
    line-height: 2;
}
/* --- ナビゲーションボタンエリア --- */
.p-thanks__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
/* ボタンベース共通スタイル */
.c-btn-thanks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 290px;
    height: 64px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 12px; /* 少し丸みのある角 */
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}
/* 右端の矢印を擬似要素で配置 */
.c-btn-thanks::after {
    content: '\f054'; /* Font Awesome 6 右矢印 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 25px;
    font-size: 0.85rem;
}
.c-btn-thanks__icon {
    margin-right: 12px;
    font-size: 1.15rem;
}
/* 1. ホームへ戻る（濃紺ベタ塗りボタン） */
.c-btn-thanks--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}
.c-btn-thanks--primary:hover {
    background-color: #1d4ed8; /* ホバー時は明るい青へ */
    border-color: #1d4ed8;
    transform: translateY(-2px);
}
/* 2. 業務内容を見る（白背景・濃紺線ボタン） */
.c-btn-thanks--secondary {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.c-btn-thanks--secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}
/* --- スマホ表示用（レスポンシブ） --- */
@media (max-width: 768px) {
    .p-thanks {
        padding: 100px 0;
    }
    .p-thanks__check-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
    .p-thanks__sub-title {
        font-size: 1rem;
    }
    .p-thanks__main-title {
        font-size: 1.75rem;
        padding-bottom: 20px;
    }
    .p-thanks__body p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    /* スマホ時はボタンを縦並びに */
    .p-thanks__actions {
        flex-direction: column;
        gap: 15px;
    }
    .c-btn-thanks {
        width: 100%; /* 横幅いっぱいに広げる */
        height: 56px;
        font-size: 1rem;
    }
}

.p-banner-area {
    background: none;
    margin: 64px 0;
}

/* --- プライバシーポリシー --- */
.p-contact__privacy {
    border: 1px solid #333;
    padding: 2rem;
    text-align: justify;
}
.privacy__box {
    height: 16rem;
    overflow-y: scroll;
    padding-right: 1rem;
}
.privacy__title {
    border-bottom: 1px solid #333;
    padding: 0 0 1rem;
    margin-bottom: 1rem;
}
.privacy__heading {
    padding: 0 0 1rem;
}
.privacy__text {
    margin-bottom: 1rem;
}

/* Contact Form 7 が勝手に生成する不要な p タグや br タグを無効化 */
.p-contact__form br {
    display: none;
}

.p-contact__form p {
    margin: 0;
    padding: 0;
    display: inline; /* もしpタグで囲まれても横並びを維持させる */
}

.screen-reader-response ,
.wpcf7-response-output {
    color: #D01446;
    margin: 1rem 0;
}
.wpcf7-not-valid-tip {
    background-color: #D01446;
    color: #fff !important;
    padding: .5rem 1rem;
    display: inline-block;
}

.screen-reader-response li {
    display: none;    
}


/*  確認画面用　*/
/* 本物のCF7送信ボタンは画面上から隠す */
.u-hidden-submit {
    display: none !important;
}

/* 確認画面エリア（初期表示：非表示） */
.p-contact__confirm-wrap {
    display: none;
}

/* 表示切り替えクラス */
.p-contact__form-wrap.is-hidden {
    display: none !important;
}

.p-contact__confirm-wrap.is-show {
    display: block !important;
}

/* 確認画面の値の表示スタイル */
.p-contact__confirm-value {
    padding: 0.8em 1em;
    background-color: #f9f9f9;
    border-radius: 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
    word-break: break-all;
    line-height: 1.6;
}

.p-contact__field--textarea .p-contact__confirm-value {
    align-items: flex-start;
}

/* 送信完了・エラーメッセージ枠の制御 */
.wpcf7-response-output {
    display: none !important;
}

/* ------------------------------------------
 * 確認画面・サンクス画面での指定要素非表示
 * ------------------------------------------ */

/* 1. 入力確認画面表示時 */
body:has(.js-confirm-wrap.is-show) .p-mv,
body:has(.js-confirm-wrap.is-show) .p-contact__intro,
body:has(.js-confirm-wrap.is-show) .screen-reader-response {
    display: none !important;
}

/* 2. サンクスページ表示時 */
.page-slug-thanks .p-mv,
.page-slug-thanks .p-contact__intro,
.page-slug-contact-thanks .p-mv,
.page-slug-contact-thanks .p-contact__intro {
    display: none !important;
}

/* ==========================================
 * サンクスページ（/thanks/）での非表示設定
 * ========================================== */

/* WordPressが自動付与する body クラスを指定 */
.page-slug-thanks .p-mv,
.page-slug-thanks .p-contact__intro {
    display: none !important;
}

.c-btn--gray {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.c-btn--gray {
}

.chiiki-link {
    font-size: 1.24rem;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    padding: .5rem 0;
}
.chiiki-link a {
    white-space: nowrap;
}