/* ==========================================================
   お問い合わせ — p-contact
   新テーマ専用（旧CSS不要）
   ========================================================== */

/* セクション全体 */
.p-contact {
    position: relative;
    overflow: hidden;
    padding: 0 0 120rem;
}

/* SVGフィルター（非表示） */
.p-contact__svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* テクスチャ */
.p-contact__texture {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    max-width: none;
}

.p-contact__texture--top {
    top: -528rem;
    right: -933rem;
    width: 1873rem;
    rotate: 45deg;
}

/* --------------------------------------------------------
   PC見出し
   -------------------------------------------------------- */
.p-contact__heading {
    position: relative;
    z-index: 1;
    padding-left: 120rem;
    margin-top: 80rem;
    margin-bottom: 55rem;
    font-family: var(--font-body);
    font-size: var(--fs-24);
    font-weight: 100;
    letter-spacing: 0.3em;
    color: #333;
}

.p-contact__heading::after {
    content: '';
    display: block;
    max-width: 480rem;
    height: 1rem;
    margin-top: 8rem;
    background-color: #333;
    transform: scaleX(var(--line-scale, 1));
    transform-origin: left center;
}

/* SP見出し（PCでは非表示） */
.p-contact__heading-sp {
    display: none;
}

/* --------------------------------------------------------
   コンテンツ内側
   -------------------------------------------------------- */
.p-contact__inner {
    position: relative;
    z-index: 1;
    margin: 0 215rem;
}

/* --------------------------------------------------------
   フォームスタイル（旧テーマから移植）
   -------------------------------------------------------- */
.form_wrap ul {
    text-align: left;
    margin-bottom: 40rem;
}

.form_wrap dl {
    border-bottom: 1px dotted #999;
    margin-bottom: 15rem;
    display: flex;
    padding: 0 15rem 15rem;
    flex-wrap: wrap;
}

.form_wrap dt {
    width: 35%;
    margin-bottom: 5rem;
}

.form_wrap dd {
    width: 65%;
}

.required::after {
    content: '必須';
    color: #fff;
    vertical-align: middle;
    background-color: #ed1e79;
    margin-left: 10rem;
    padding: 2rem 5rem;
    font-size: var(--fs-12);
    line-height: 1;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required,
input.wpcf7-form-control.wpcf7-text.wpcf7-tel.wpcf7-validates-as-tel,
input.wpcf7-form-control.wpcf7-text,
input.wpcf7-form-control.wpcf7-email {
    width: 100%;
    box-sizing: border-box;
    padding: 10rem 14rem;
    border: 1px solid #ccc;
    border-radius: 4rem;
    background-color: #fff;
}

.form_wrap textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 160rem;
    padding: 14rem;
    border: 1px solid rgb(239, 239, 239);
    border-radius: 4rem;
    background-color: #fff;
    line-height: 2;
}

/* ボタンエリア中央配置 */
.wpcf7-form p:last-of-type,
.wpcf7-form .form_wrap + p {
    text-align: center;
}

/* ボタン */
input.wpcf7c-btn-back,
input.wpcf7-confirm,
input.wpcf7-submit {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid #000;
    padding: 5rem;
}

input.wpcf7c-btn-back {
    width: 40%;
    margin-right: 10%;
}

input.wpcf7c-btn-back:hover {
    background-color: #e6e6e6;
}

input.wpcf7-confirm {
    width: 40%;
}

input.wpcf7-submit {
    width: 40%;
    color: #fff;
    background: #3e3a39;
}

input.wpcf7-confirm:hover,
input.wpcf7-submit:hover {
    color: #fff;
    background-color: #000;
}

/* 確認画面 */
.wpcf7c-conf {
    background-color: #f7f8f8 !important;
}

/* ==========================================================
   SP (max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {

    .p-contact {
        padding: 0 0 80rem;
    }

    /* テクスチャSP */
    .p-contact__texture--top {
        top: -300rem;
        right: -100rem;
        width: 900rem;
    }

    /* PC見出し非表示 */
    .p-contact__heading {
        display: none;
    }

    /* SP見出し（他下層ページと同型：右寄せ・左に細線＋タイトル） */
    .p-contact__heading-sp {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10rem;
        padding: 0 30rem;
        margin-top: 100rem;
        margin-bottom: 48rem;
        position: relative;
        z-index: 1;
    }

    .p-contact__heading-sp-line {
        display: block;
        flex-shrink: 0;
        width: 32rem;
        height: 1rem;
        background-color: #333;
    }

    .p-contact__heading-sp-title {
        font-family: var(--font-bask-old);
        font-size: var(--fs-18);
        font-weight: 400;
        letter-spacing: 0.3em;
        line-height: 1.35;
        color: #333;
    }

    /* コンテンツ内側 */
    .p-contact__inner {
        margin: 0 20rem;
    }

    /* フォーム入力欄SP */
    input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required,
    input.wpcf7-form-control.wpcf7-text.wpcf7-tel.wpcf7-validates-as-tel,
    input.wpcf7-form-control.wpcf7-text,
    input.wpcf7-form-control.wpcf7-email {
        padding: 10rem 12rem;
    }

    .form_wrap textarea {
        min-height: 140rem;
    }

    .form_wrap dl {
        flex-direction: column;
    }

    .form_wrap dt {
        width: 100%;
    }

    .form_wrap dd {
        width: 100%;
    }
}
