/* =========================================
   外壁塗装LP 共通フォーム
   ・無料診断・お見積り
   ・資料請求
========================================= */

:is(body.page-paint-estimate, body.page-paint-document) .u-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

:is(body.page-paint-estimate, body.page-paint-document) .wpcf7 {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* =========================================
   フォーム全体
========================================= */

:is(body.page-paint-estimate, body.page-paint-document) .paint-form {
    width: 100%;
    color: #222;
}

:is(body.page-paint-estimate, body.page-paint-document) .paint-form *,
:is(body.page-paint-estimate, body.page-paint-document) .paint-form *::before,
:is(body.page-paint-estimate, body.page-paint-document) .paint-form *::after {
    box-sizing: border-box;
}



/* =========================================
   冒頭説明（共通）
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__intro {
    margin-bottom: 36px;
    padding: 24px 28px;
    border-left: 5px solid #fae600;
    background: #f6f8fb;
}

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__intro p {
    margin: 0;
    color: #0b2f69;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.9;
}

/* =========================================
   資料請求ページのみ
========================================= */

body.page-paint-document .paint-form__intro {
    padding: 24px clamp(16px, 4vw, 28px);
}

body.page-paint-document .paint-form__intro h2 {
    margin: 0 0 20px;
    color: #0b2f69;
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.5;
}

body.page-paint-document .paint-form__intro p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
}

body.page-paint-document .paint-form__intro p:last-child {
    margin-bottom: 0;
}



/* =========================================
   各項目
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__group {
    display: grid;
    gap: 20px;
}

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__item {
    padding: 30px 32px;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(20, 40, 70, .05);
}


/* =========================================
   ラベル
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #0b2f69;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}


/* 必須 */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 3px;
    background: #c83c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}


/* 条件付き必須 */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__conditional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 3px;
    background: #0b5ca8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}


/* 任意 */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__optional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 3px;
    background: #747b85;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================
   入力欄
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="text"],

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="email"],

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="tel"],

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form select,

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;

    border: 1px solid #ccd3dd;
    border-radius: 6px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="text"]:focus,

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="email"]:focus,

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="tel"]:focus,

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form select:focus,

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form textarea:focus {
    outline: none;
    border-color: #0b4a87;
    box-shadow: 0 0 0 3px rgba(11, 74, 135, .12);
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form textarea {
    min-height: 200px;
    resize: vertical;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form ::placeholder {
    color: #9aa0a8;
}


/* =========================================
   ラジオ・チェックボックス
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form .wpcf7-radio,

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form .wpcf7-list-item {
    margin: 0;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form .wpcf7-list-item label {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 50px;
    padding: 12px 18px;

    border: 1px solid #d8dee7;
    border-radius: 7px;

    background: #f7f9fc;
    color: #222;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form .wpcf7-list-item label:hover {
    border-color: #0b4a87;
    background: #eef5fb;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="radio"],

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #0b4a87;
}


/* =========================================
   個人情報同意
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__privacy {
    margin-top: 8px;
    padding: 24px;

    border-radius: 8px;
    background: #f6f8fb;

    text-align: center;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__privacy label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 14px;
    font-weight: 600;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__privacy a {
    color: #0b4a87;
    text-decoration: underline;
}


/* =========================================
   Cloudflare Turnstile
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.wpcf7-turnstile {
    margin: 8px auto 20px;
    text-align: center;
}


:is(body.page-paint-estimate, body.page-paint-document)
.wpcf7-turnstile > div {
    margin: 0 auto;
}


/* =========================================
   送信ボタン 共通
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__submit {
    margin-top: 10px;
    text-align: center;
}


:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: min(560px, 100%);
    min-height: 72px;

    margin: 0;
    padding: 16px 30px;

    border: 0;
    border-radius: 6px;

    color: #fff;

    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);

    font-family: inherit;
    font-size: 19px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease,
        box-shadow .2s ease;
}


/* =========================================
   無料診断・お見積り
   LPに合わせて緑
========================================= */

body.page-paint-estimate
.paint-form__submit input[type="submit"] {
    background: #00998f;
}


/* =========================================
   資料請求
   LPに合わせてオレンジ
========================================= */

body.page-paint-document
.paint-form__submit input[type="submit"] {
    background: #f36b21;
}


/* ホバー */

:is(body.page-paint-estimate, body.page-paint-document)
.paint-form__submit input[type="submit"]:hover {
    opacity: .88;
    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
}


/* =========================================
   CF7 エラー
========================================= */

:is(body.page-paint-estimate, body.page-paint-document)
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;

    color: #c83c3c;

    font-size: 13px;
    font-weight: 600;
}


:is(body.page-paint-estimate, body.page-paint-document)
.wpcf7-response-output {
    margin: 25px 0 0 !important;
    padding: 16px 20px !important;

    border-radius: 6px;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   LP・フォーム関連ページ
   共通フッターCTAを非表示
========================================= */

body.page-paint-estimate .p-footer-contact,
body.page-paint-estimate-complete .p-footer-contact,
body.page-paint-document .p-footer-contact,
body.page-paint-document-complete .p-footer-contact {
    display: none;
}


/* =========================================
   フッターCTA削除後の余白調整
========================================= */

:is(
    body.page-paint-estimate,
    body.page-paint-estimate-complete,
    body.page-paint-document,
    body.page-paint-document-complete
) .l-content {
    margin-bottom: 0;
    padding-bottom: 0;
}


/* =========================================
   SP
========================================= */

@media (max-width: 767px) {

    :is(body.page-paint-estimate, body.page-paint-document)
    .u-section {
        padding-top: 25px;
        padding-bottom: 30px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .wpcf7 {
        width: 100%;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__intro {
        margin-bottom: 24px;
        padding: 18px 16px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__intro p {
        font-size: 14px;
        line-height: 1.8;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__intro br {
        display: none;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__group {
        gap: 14px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__item {
        padding: 22px 16px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__label {
        flex-wrap: wrap;
        margin-bottom: 12px;
        font-size: 16px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form .wpcf7-radio,

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form .wpcf7-checkbox {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form .wpcf7-list-item label {
        width: 100%;
        min-height: 48px;

        padding: 10px 13px;

        font-size: 14px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__privacy {
        padding: 18px 12px;
    }

    :is(body.page-paint-estimate, body.page-paint-document)
    .paint-form__submit input[type="submit"] {
        min-height: 62px;
        font-size: 16px;
    }

}
/* =========================================
   フォームページ専用レイアウト
   ・無料診断・お見積り
   ・無料診断・お見積り完了
   ・資料請求
   ・資料請求完了
========================================= */

:is(
    body.page-paint-estimate,
    body.page-paint-estimate-complete,
    body.page-paint-document,
    body.page-paint-document-complete
) {

    /* ヘッダー上部の説明文を非表示 */
    .l-site-top {
        display: none !important;
    }

    /* ヘッダー内：ロゴ以外を非表示 */
    .p-header .p-gnav,
    .p-header .p-tel,
    .p-header .p-gnav__open,
    .p-header .p-gnav-button {
        display: none !important;
    }

    /* ヘッダーをロゴのみのシンプル表示に */
    .p-header__container {
        justify-content: center;
    }

    .p-header-logo {
        margin: 0 auto;
    }

    /* サイド・追従ボタンを非表示 */
    .p-fixed-nav {
        display: none !important;
    }

    /* 共通お問い合わせCTAを非表示 */
    .p-footer-contact {
        display: none !important;
    }

    /* フッター：不要要素を非表示 */
    .p-footer-info > .u-fs-s,
    .p-footer-locations,
    .p-footer-instagram,
    .p-footer-nav {
        display: none !important;
    }

    /* フッターはロゴ＋コピーライトのみ */
    .p-footer__inner {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .p-footer-info {
        width: 100%;
        text-align: center;
    }

    .p-footer-info-logo {
        margin: 0 auto;
    }

    .p-footer-info-logo__image {
        margin: 0 auto;
    }

    /* ページトップボタンもフォームでは不要 */
    #pagetop {
        display: none !important;
    }
}


/* =========================================
   フォームページ SP
========================================= */

@media (max-width: 767px) {

    :is(
        body.page-paint-estimate,
        body.page-paint-estimate-complete,
        body.page-paint-document,
        body.page-paint-document-complete
    ) .p-header-logo {
        margin: 0 auto;
    }

}

/* =========================================
   Form page title and hero (completion pages excluded)
========================================= */
:is(body.page-paint-estimate, body.page-paint-document) .page-title__container {
    box-sizing: border-box;
    min-height: 156px;
    padding-block: 32px;
    display: flex;
    align-items: center;
    background-image: none !important; /* Override the existing inline background. */
    color: #fff;
    border-block-end: 0;
}
body.page-paint-estimate .page-title__container {
    background-color: #00998f;
}
body.page-paint-document .page-title__container {
    background-color: #0b2f69;
}
:is(body.page-paint-estimate, body.page-paint-document) .page-title__container > .u-width-l {
    width: 100%;
}
:is(body.page-paint-estimate, body.page-paint-document) .page-title__text,
:is(body.page-paint-estimate, body.page-paint-document) .page-title .breadcrumb,
:is(body.page-paint-estimate, body.page-paint-document) .page-title .breadcrumb a {
    color: #fff;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero {
    --paint-hero-color: #0b2f69;
    box-sizing: border-box;
    width: min(1240px, calc(100% - 48px));
    margin: 40px auto 0;
    color: #334155;
}
body.page-paint-estimate .paint-form-hero {
    --paint-hero-color: #00998f;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero + .u-section {
    margin-top: 0;
    margin-block-start: 0;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__card {
    display: grid;
    grid-template-columns: 540fr 700fr;
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 40, 70, .07);
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__content {
    min-width: 0;
    padding: clamp(28px, 3.2vw, 44px);
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__badge {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 4px;
    background: #fae600;
    color: #0b2f69;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__title {
    margin: 0 0 20px;
    color: #0b2f69;
    font-size: clamp(24px, 2.3vw, 30px);
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__body {
    margin: 0;
    font-size: 15px;
    line-height: 1.95;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__body--sp {
    display: none;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: #0b2f69;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__points li::before {
    content: '✓';
    margin-right: 5px;
    color: var(--paint-hero-color);
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__note {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.8;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__photo {
    display: block;
    position: relative;
    min-width: 0;
}
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 820px) {
    :is(body.page-paint-estimate, body.page-paint-document) .page-title__container {
        min-height: 104px;
        padding-block: 20px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .page-title__text {
        font-size: 24px;
        line-height: 1.5;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero {
        width: calc(100% - 32px);
        margin-top: 24px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__card {
        grid-template-columns: minmax(0, 1fr);
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__photo {
        grid-row: 1;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__photo img {
        position: static;
        height: 200px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__content {
        padding: 24px 20px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__badge {
        margin-bottom: 14px;
        font-size: 12px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__title {
        margin-bottom: 16px;
        font-size: 24px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__body {
        font-size: 14px;
        line-height: 1.9;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__body--pc {
        display: none;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__body--sp {
        display: block;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__points {
        display: grid;
        gap: 6px;
        margin-top: 20px;
        font-size: 12px;
    }
}

/* One form title, with a mobile-only line break. */
:is(body.page-paint-estimate, body.page-paint-document) .paint-form-title__break {
    display: none;
}
@media (max-width: 820px) {
    body.page-paint-estimate .paint-form-hero__title br.pc-only {
        display: none;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-title__break {
        display: inline;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-title__line {
        white-space: nowrap;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .page-title__text {
        font-size: clamp(18px, 5.5vw, 24px);
    }
}
@media (min-width: 821px) and (max-width: 1023px) {
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__card {
        grid-template-columns: minmax(0, 1fr);
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__photo {
        grid-row: 1;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__photo img {
        position: static;
        height: 300px;
    }
    :is(body.page-paint-estimate, body.page-paint-document) .paint-form-hero__title {
        font-size: 28px;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }
}

/* Booklet intro imported from intro_booklet.html; document page only. */
/* ---- 資料請求：フォーム冒頭の説明エリア ---- */
body.page-paint-document .paint-form__intro .doc-intro { display: grid; grid-template-columns: minmax(0, 580fr) minmax(0, 360fr); gap: 44px; align-items: center; }
body.page-paint-document .paint-form__intro .doc-intro h2 { margin: 0 0 14px; color: #0b2f69; font-weight: 700; line-height: 1.5; }
body.page-paint-document .paint-form__intro .doc-intro p { margin: 0 0 14px; color: #334155; font-size: 14px; line-height: 1.9; }
body.page-paint-document .paint-form__intro .doc-intro .doc-region { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #e3e8ef; color: #5b6677; font-size: 13px; line-height: 1.85; }

body.page-paint-document .paint-form__intro .doc-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
body.page-paint-document .paint-form__intro .doc-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 0 0 10px; border-bottom: 1px dashed #e3e8ef; }
body.page-paint-document .paint-form__intro .doc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body.page-paint-document .paint-form__intro .doc-list .n { width: 22px; height: 22px; border-radius: 50%; background: #f2f5f9; color: #0b2f69;
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
body.page-paint-document .paint-form__intro .doc-list .t { display: block; color: #0b2f69; font-size: 14px; font-weight: 700; line-height: 1.5; }
body.page-paint-document .paint-form__intro .doc-list .d { display: block; color: #5b6677; font-size: 12.5px; line-height: 1.7; margin-top: 3px; }

body.page-paint-document .paint-form__intro .fan { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 10 / 11; margin: 0; }
body.page-paint-document .paint-form__intro .fan img { position: absolute; top: 2%; width: 65%; height: auto; background: #fff;
  border: 1px solid #dfe5ec; border-radius: 2px; box-shadow: 0 12px 30px rgba(16, 35, 60, .18); }
body.page-paint-document .paint-form__intro .fan .f1 { left: 0; transform: rotate(-9deg); z-index: 1; }
body.page-paint-document .paint-form__intro .fan .f2 { left: 35%; transform: rotate(9deg); z-index: 1; }
body.page-paint-document .paint-form__intro .fan .f3 { left: 17.5%; transform: rotate(0deg); z-index: 3; }
body.page-paint-document .paint-form__intro .doc-intro .fan-cap { margin: 10px 0 0; color: #8a94a6; font-size: 11px; line-height: 1.6; }

@media (max-width: 820px) {
  body.page-paint-document .paint-form__intro .doc-intro { grid-template-columns: 1fr; gap: 18px; }
  body.page-paint-document .paint-form__intro .fan { max-width: 360px; margin: 0 auto; }
}
