/* ========================================
   FORM PAGE
======================================== */

.c-formPage {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 96px;
}


/* ========================================
   FORM INTRO
======================================== */

.c-formIntro {
    margin-bottom: 32px;

    text-align: center;
}

.c-formIntro__sub {
    margin: 0 0 8px;

    color: #1f7a6e;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c-formIntro__title {
    margin: 0 0 14px;

    color: #222;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    font-weight: 800;
}

.c-formIntro__lead {
    max-width: 760px;
    margin: 0 auto 20px;

    color: #555;

    font-size: 15px;
    line-height: 1.9;
}

.c-formIntro__points {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 12px;

    list-style: none;
}

.c-formIntro__points li {
    min-height: 36px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1f7a6e;
    background: rgba(31, 122, 110, 0.08);

    border: 1px solid rgba(31, 122, 110, 0.10);
    border-radius: 999px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}


/* ========================================
   FORM BOX
======================================== */

.c-formBox {
    padding: 32px 28px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;

    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.c-formSection+.c-formSection,
.c-form安心,
.c-formPrivacy {
    margin-top: 28px;
}

.c-formSection__title,
.c-form安心__title,
.c-formPrivacy__title {
    margin: 0 0 16px;

    color: #222;

    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
}


/* ========================================
   FORM GRID
======================================== */

.c-formGrid {
    display: grid;
    gap: 16px 18px;
}

.c-formGrid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* ========================================
   FORM FIELD
======================================== */

.c-formField {
    margin-bottom: 14px;
}

.c-formRequired {
    margin-left: 4px;

    color: #e45757;

    font-size: 12px;
    font-weight: 800;
}

.c-formField label {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    color: #222;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
}

.c-formField p {
    margin: 0;
    padding: 0;
}

.c-formField br {
    display: none;
}

.c-formField .wpcf7-form-control-wrap {
    margin: 0;
    padding: 0;

    display: block;

    line-height: 1;
}

.c-formField input,
.c-formField select,
.c-formField textarea {
    width: 100%;
    margin: 0;
    padding: 12px 16px;

    display: block;

    color: #333;
    background: #fff;

    border: 1px solid #dcdcdc;
    border-radius: 14px;

    box-sizing: border-box;

    font-size: 14px;
    line-height: 1.6;

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

.c-formField select {
    min-height: 48px;
}

.c-formField textarea {
    min-height: 180px;
    padding-top: 14px;

    resize: vertical;
}

.c-formField input:focus,
.c-formField select:focus,
.c-formField textarea:focus {
    outline: none;

    border-color: #1f7a6e;

    box-shadow: 0 0 0 4px rgba(31, 122, 110, 0.10);
}


/* ========================================
   安心ブロック
======================================== */

.c-form安心 {
    padding: 24px 22px;

    background:
        linear-gradient(135deg,
            #fff8e8 0%,
            #fffdf7 100%);

    border: 1px solid rgba(247, 201, 72, 0.35);
    border-radius: 20px;
}

.c-form安心__list {
    margin: 0;
    padding-left: 1.2em;
}

.c-form安心__list li {
    margin-bottom: 8px;

    color: #555;

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

.c-form安心__list li:last-child {
    margin-bottom: 0;
}


/* ========================================
   PRIVACY
======================================== */

.c-formPrivacy__title {
    margin-bottom: 12px;
}

/* 個人情報スクロール枠 */
.c-formPrivacy__scroll {
    height: 170px;
    padding: 18px 20px;

    overflow-y: auto;
    overscroll-behavior: contain;

    color: #555;
    background: #fafafa;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    box-sizing: border-box;

    font-size: 13px;
    line-height: 1.8;

    scrollbar-width: thin;
    scrollbar-color: #9cbfc2 #ececec;
}

.c-formPrivacy__scroll:focus {
    outline: none;

    border-color: #2aa7ad;

    box-shadow: 0 0 0 3px rgba(42, 167, 173, 0.10);
}

.c-formPrivacy__scroll h4 {
    margin: 16px 0 0;

    color: #222;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
}

.c-formPrivacy__scroll h4:first-of-type {
    margin-top: 12px;
}

.c-formPrivacy__scroll p {
    margin: 0 0 0px;

    color: #555;

    font-size: 13px;
    line-height: 1.8;
}

.c-formPrivacy__scroll ul {
    margin: 0 0 12px;
    padding-left: 1.4em;
}

.c-formPrivacy__scroll li {
    margin-bottom: 4px;
}

.c-formPrivacy__scroll::-webkit-scrollbar {
    width: 8px;
}

.c-formPrivacy__scroll::-webkit-scrollbar-track {
    background: #ececec;

    border-radius: 999px;
}

.c-formPrivacy__scroll::-webkit-scrollbar-thumb {
    background: #9cbfc2;

    border: 2px solid #ececec;
    border-radius: 999px;
}


/* ========================================
   PRIVACY CHECK
======================================== */

.c-formCheck {
    margin-top: 16px;

    color: #333;

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

.c-formCheck p {
    margin: 0;
}

.c-formCheck .wpcf7-form-control-wrap {
    display: block;
}

.c-formCheck .wpcf7-list-item {
    margin: 0;
}

.c-formCheck .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;
}

.c-formCheck input[type="checkbox"] {
    flex: 0 0 18px;

    width: 18px;
    height: 18px;
    margin: 3px 0 0;

    accent-color: #2aa7ad;

    cursor: pointer;
}

.c-formCheck .wpcf7-list-item-label {
    vertical-align: middle;
}

.c-formCheck a {
    color: #2aa7ad;

    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.c-formCheck a:hover {
    text-decoration: none;
}


/* ========================================
   SUBMIT
======================================== */

.c-formSubmit {
    position: relative;

    width: min(100%, 360px);
    margin: 28px auto 0;

    text-align: center;
}

/* 右側の矢印ボックス */
.c-formSubmit::after {
    content: "→";

    position: absolute;
    top: 50%;
    right: 18px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #222;
    background: #fff;

    border-radius: 10px;

    font-size: 24px;
    line-height: 1;

    transform: translateY(-50%);

    pointer-events: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

/* ボタン本体 */
.c-formSubmit .wpcf7-submit,
.c-formSubmit input[type="submit"] {
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 0 80px 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111;
    background: #ffd400;

    border: 3px solid transparent;
    border-radius: 18px;

    box-sizing: border-box;

    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    text-align: center;

    cursor: pointer;

    box-shadow: 0 12px 26px rgba(255, 212, 0, 0.28);

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* ホバー：白背景＋黄色に反転 */
.c-formSubmit .wpcf7-submit:not(:disabled):hover,
.c-formSubmit input[type="submit"]:not(:disabled):hover {
    color: #d5aa00;
    background: #fff;

    border-color: #ffd400;

    transform: translateY(-2px);

    box-shadow: 0 14px 28px rgba(255, 212, 0, 0.20);
}

/* ホバー時の矢印も反転 */
.c-formSubmit:has(.wpcf7-submit:not(:disabled):hover)::after,
.c-formSubmit:has(input[type="submit"]:not(:disabled):hover)::after {
    color: #fff;
    background: #ffd400;
}

/* 同意前の無効状態 */
.c-formSubmit .wpcf7-submit:disabled,
.c-formSubmit input[type="submit"]:disabled {
    opacity: 1;

    color: #111;
    background: #ffd400;

    cursor: not-allowed;
    transform: none;

    box-shadow: 0 12px 26px rgba(255, 212, 0, 0.28);
}

/* Contact Form 7のスピナー */
.c-formSubmit .wpcf7-spinner {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;

    margin: 0;

    transform: translateX(-50%);
}


/* ========================================
   CF7 MESSAGE
======================================== */

.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 16px;

    border-radius: 14px;

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


/* ========================================
   FORM RESET
======================================== */

.c-formPage p {
    margin: 0;
}

.c-formField p,
.c-formCheck p {
    margin: 0;
}

/* スクロール枠内では段落余白を復活 */
.c-formPrivacy__scroll p {
    margin: 0 0 10px;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 767px) {

    .c-formPage {
        padding: 28px 16px 80px;
    }

    .c-formBox {
        padding: 24px 18px;

        border-radius: 18px;
    }

    .c-formGrid {
        gap: 12px;
    }

    .c-formGrid--2 {
        grid-template-columns: 1fr;
    }

    .c-formField {
        margin-bottom: 12px;
    }

    .c-formIntro__lead,
    .c-formField label,
    .c-form安心__list li,
    .c-formPrivacy__scroll,
    .c-formCheck {
        font-size: 13px;
        line-height: 1.8;
    }

    .c-formSection__title,
    .c-form安心__title,
    .c-formPrivacy__title {
        font-size: 20px;
    }

    .c-formField input,
    .c-formField select,
    .c-formField textarea {
        padding: 12px 14px;
    }

    .c-formPrivacy__scroll {
        height: 160px;
        padding: 16px;
    }

    .c-formPrivacy__scroll h4 {
        font-size: 13px;
    }

    .c-formCheck .wpcf7-list-item label {
        gap: 8px;
    }

    .c-formSubmit {
        width: 100%;
    }

    .c-formSubmit::after {
        right: 12px;

        width: 40px;
        height: 40px;

        border-radius: 9px;

        font-size: 21px;
    }

    .c-formSubmit .wpcf7-submit,
    .c-formSubmit input[type="submit"] {
        min-height: 68px;
        padding: 0 64px 0 24px;

        border-radius: 16px;

        font-size: 18px;
    }
}