/*---------------------------------------------
ステータスバー
---------------------------------------------*/
.contact-step {
    width: min(580px, 100%);
    margin: 0 auto 60px;

    /* 初期値：入力画面は進捗0 */
    --contact-step-progress: 0;
}

@media screen and (max-width: 767px) {
    .contact-step {
        margin-bottom: 30px;
        width: 90%;
    }
}

/* 入力画面：横棒はまだ青くしない */
.contact-step--input {
    --contact-step-progress: 0;
}

/* 確認画面：横棒を半分まで青くする */
.contact-step--confirm {
    --contact-step-progress: 0.5;
}

/* 完了画面：横棒を最後まで青くする */
.contact-step--complete {
    --contact-step-progress: 1;
}

.contact-step__list {
    position: relative;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

/* グレーの横棒 */
.contact-step__list::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 35px;
    right: 35px;
    height: 4px;
    background-color: var(--maeq-gray06);
    border-radius: 999px;
}

/* 青い横棒 */
.contact-step__list::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 35px;
    right: 35px;
    height: 4px;
    background-color: var(--maeq-navy03);
    border-radius: 999px;
    transform: scaleX(var(--contact-step-progress));
    transform-origin: left center;
}

/* 各ステップ */
.contact-step__item {
    position: relative;
    z-index: 1;
    width: 70px;
    text-align: center;
}

/* 丸 */
.contact-step__circle {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 6px;
    background-color: var(--maeq-white);
    border: 8px solid var(--maeq-gray06);
    border-radius: 50%;
    box-sizing: border-box;
}

/* 文字 */
.contact-step__text {
    display: block;
    color: var(--maeq-gray06);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* 現在地 */
.contact-step__item.is-current .contact-step__circle {
    border-color: var(--maeq-navy03);
}

.contact-step__item.is-current .contact-step__text {
    color: var(--maeq-navy03);
}

/* 完了済みステップ */
.contact-step__item.is-done .contact-step__circle {
    border-color: var(--maeq-navy03);
}

.contact-step__item.is-done .contact-step__text {
    color: var(--maeq-navy03);
}


/*---------------------------------------------
フォーム
---------------------------------------------*/
.form-section {
    width: calc(100% - 120px);
    max-width: 910px;
    margin: 0 auto 100px;
    border-radius: 18px;
    padding: 60px 52px;
    background: #fff;
    box-shadow: 0 1px 16px rgba(0, 0, 0, .2);
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    .form-section {
        width: calc(100% - 80px);
        padding: 28px 20px;
    }
}

@media screen and (max-width: 480px) {
    .form-section {
        width: calc(100% - 20px);
    }
}

/*---------------------------------------------
ご留意事項
---------------------------------------------*/
.form-box {
    background-color: var(--maeq-gray01);
    padding: 22px 28px;
    margin-bottom: 34px;
    border-radius: 5px;
}

.form__ttl {
    width: 245px;
    color: var(--maeq-navy03);
    font-size: 16px;
    font-weight: var(--w-bold);
    text-align: left;
    vertical-align: top;
    padding: 18px 18px 18px 0;
    line-height: 1.6;
    white-space: nowrap;
}

.form__ttl__ditails {
    padding: 18px 18px 0 0;
}

.form__ttl::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    background-color: var(--maeq-navy03);
    margin-right: 4px;
    vertical-align: 1px;
    border-radius: 2px;
}

.form__ttl--no {
    width: auto;
    color: var(--maeq-navy03);
    padding: 0;
    margin-bottom: 6px;
    white-space: normal;
}

.form__ttl--no::before {
    content: none;
}

.form__list {
    list-style: none;
}

.form__list li {
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    padding-left: 1em;
}

.form__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

.form__list li+li {
    margin-top: 2px;
}

@media screen and (max-width: 767px) {
    .form-box {
        padding: 18px;
        margin-bottom: 28px;
    }

    .form__ttl {
        width: 100%;
        display: block;
        padding: 0;
        white-space: normal;
    }

    .form__list li {
        font-size: 14px;
    }
}

/*---------------------------------------------
必須・任意バッジ
---------------------------------------------*/
.mandatory {
    display: inline-block;
    color: var(--maeq-navy02);
    background-color: var(--maeq-yellow);
    border: 1px solid var(--maeq-navy02);
    border-radius: 999px;
    font-size: 11px;
    vertical-align: top;
    position: relative;
    font-weight: var(--w-black);
    line-height: 1;
    padding: 3px 7px 4px;
    top: 0.3em !important;
    margin-left: 4px;
    -webkit-text-stroke: 0.5px currentColor;
}

.mandatory__txt {
    color: var(--maeq-navy03);
    font-size: 13px;
    margin-bottom: 18px;
}

.mandatory__txt p {
    color: var(--maeq-navy03);
    font-size: 13px;
}

.mandatory__txt sup.mandatory {
    margin-left: 0;
    margin-right: 4px;
}

/*---------------------------------------------
フォーム項目
---------------------------------------------*/
.contact-form {
    margin-top: 32px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
}

.form-label {
    flex: 0 0 300px;
    width: 300px;
}

.form-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    .form-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
        align-items: stretch;
        text-align: left;
    }

    .form-label {
        flex: none;
        width: 100%;
    }

    .form-input {
        width: 100%;
    }
}


.form__ttl span {
    color: var(--maeq-navy02);
    font-weight: var(--w-bold);
}

.form-input {
    width: 100%;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--maeq-white);
    border: 1px solid var(--maeq-gray02);
}

.form-input:focus {
    outline: 2px solid var(--maeq-navy02);
    box-shadow: 0 0 3px 2px var(--maeq-gray07);
}

.form-input::placeholder {
    color: var(--maeq-gray03);
}

@media screen and (max-width: 767px) {
    .form-input::placeholder {
        font-size: 13px;
        line-height: 1.8;
    }
}

.description {
    color: var(--maeq-gray02) !important;
    font-weight: var(--w-medium) !important;
    font-size: 12px !important;
}

/* -- 最初の項目 -- */
.form-group--first {
    align-items: flex-start;
}

.form-group--first .form__ttl {
    padding-top: 0;
}

.checks {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    min-width: 0;
}

.checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--maeq-black01);
    font-size: 15px;
    font-weight: var(--w-regular);
    line-height: 1.5;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
}

/* ブラウザ標準のチェックボックスをリセット */
.checks input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;

    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;

    border: 2px solid var(--maeq-gray02);
    border-radius: 2px;
    background-color: var(--maeq-white);

    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.01s ease-out,
        border-color 0.01s ease-out;
}

/* 選択された状態 */
.checks input[type="checkbox"]:checked {
    border-color: var(--maeq-navy02);
    background-color: var(--maeq-navy02);
}

/* 白いチェックマーク */
.checks input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 8px;
    border-right: 2px solid var(--maeq-white);
    border-bottom: 2px solid var(--maeq-white);
    transform: rotate(45deg);
    box-sizing: border-box;
}

/* キーボード操作時 */
.checks input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(23, 41, 79, 0.35);
    outline-offset: 2px;
}

/* マウスを乗せた状態 */
.checks label:hover input[type="checkbox"] {
    border-color: var(--maeq-navy02);
}

/* 無効状態を使用する場合 */
.checks input[type="checkbox"]:disabled {
    border-color: var(--maeq-gray04);
    background-color: var(--maeq-gray01);
    cursor: not-allowed;
}

.checks label:has(input[type="checkbox"]:disabled) {
    color: var(--maeq-gray02);
    cursor: not-allowed;
}

@media screen and (max-width: 767px) {
    .form-group--first {
        align-items: stretch;
    }

    .form-group--first .form-label {
        width: 100%;
    }

    .checks {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }

    .checks label {
        width: fit-content;
        white-space: normal;
    }
}


/* -- 最終項目 -- */
.form-group--last {
    display: block;
}

/* タイトル */
.form-group--last .form__ttl {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin-bottom: 12px;
    white-space: normal;
    text-align: left;
}

/* テキストエリア */
.form-group--last .form-input {
    display: block;
    width: 100%;
    min-height: 148px;
    box-sizing: border-box;
    resize: vertical;
}

@media screen and (max-width: 767px) {
    .form-group--last .form__ttl {
        margin-bottom: 10px;
    }
}

/*---------------------------------------------
同意欄・確認ボタン
---------------------------------------------*/

.privacy-section {
    width: 100%;
    margin-top: 32px;
    text-align: center;
}


/*---------------------------------------------
個人情報同意チェック
---------------------------------------------*/

.privacy-checkbox {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* 本来のチェックボックスを非表示 */

.privacy-checkbox>input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}


/* チェックボックスと同意文 */

.privacy-checkbox>label {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--maeq-navy02);
    font-size: 13px;
    font-weight: var(--w-regular);
    line-height: 1.5;
    text-align: left;

    cursor: pointer;
}


/* カスタムチェックボックス */

.custom-checkbox {
    position: relative;
    display: inline-block;
    flex-shrink: 0;

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

    border: 1.7px solid var(--maeq-gray02);
    border-radius: 2px;
    background-color: var(--maeq-white);

    box-sizing: border-box;

    transition:
        background-color 0.01s ease-out,
        border-color 0.01s ease-out;
}


/* チェックされた状態 */

.privacy-checkbox>input[type="checkbox"]:checked+label .custom-checkbox {
    border-color: var(--maeq-navy02);
    background-color: var(--maeq-navy02);
}


/* 白いチェックマーク */

.privacy-checkbox>input[type="checkbox"]:checked+label .custom-checkbox::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;

    width: 5px;
    height: 8px;

    border-right: 2px solid var(--maeq-white);
    border-bottom: 2px solid var(--maeq-white);

    transform: rotate(45deg);
    box-sizing: border-box;
}


/* ホバー */

.privacy-checkbox>label:hover .custom-checkbox {
    border-color: var(--maeq-navy02);
}


/* キーボード操作時 */

.privacy-checkbox>input[type="checkbox"]:focus-visible+label .custom-checkbox {
    outline: 2px solid rgba(23, 41, 79, 0.35);
    outline-offset: 2px;
}


/*---------------------------------------------
同意文
---------------------------------------------*/

.privacy-checkbox__text {
    display: inline;
    color: var(--maeq-navy02);
    font-size: 14px;
    font-weight: var(--w-regular);
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
}


/* リンク */

.privacy-checkbox__text .maeq-link {
    display: inline;
    white-space: nowrap;
    transition: var(--tran-opacity-a);
}

.privacy-checkbox__text .maeq-link:hover {
    opacity: 0.7;
}


/*---------------------------------------------
確認ボタン
---------------------------------------------*/

.submit-btn {
    position: relative;

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

    width: min(390px, 100%);
    min-height: 50px;

    margin: 10px auto 0;
    padding: 10px 55px;

    border: none;
    border-radius: 100px;

    color: var(--maeq-white);
    background-color: var(--maeq-navy02);

    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: var(--w-semibold);
    line-height: 1.5;
    text-align: center;

    box-shadow: 0 2px 4px rgba(23, 41, 79, 0.35);

    cursor: pointer;

    transition:
        opacity 0.15s ease-out,
        background-color 0.15s ease-out,
        box-shadow 0.15s ease-out;
}


/* 右側の矢印 */

.submit-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 25px;

    width: 10px;
    height: 10px;

    border-top: 2px solid var(--maeq-white);
    border-right: 2px solid var(--maeq-white);

    transform: translateY(-50%) rotate(45deg);
}


/* 活性時：ホバー */

.submit-btn:not(:disabled):hover {
    opacity: 0.7;
}


/* 活性時：押したとき */

.submit-btn:not(:disabled):active {
    opacity: 1;
    box-shadow: none;
}


/*---------------------------------------------
非活性状態
---------------------------------------------*/

.submit-btn:disabled,
.submit-btn.disabled {
    background-color: var(--maeq-gray04);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}


/* 非活性時はホバーしても変化させない */

.submit-btn:disabled:hover,
.submit-btn.disabled:hover {
    opacity: 1;
}


/*---------------------------------------------
SSLについての注記
---------------------------------------------*/

.privacy-ssl-note {
    width: min(390px, 100%);
    margin: 8px auto 0;
    font-size: 12px;
    font-weight: var(--w-regular);
    line-height: 1.5;
    text-align: left;
}


/*---------------------------------------------
スマホ
---------------------------------------------*/

@media screen and (max-width: 767px) {
    .privacy-section {
        margin-top: 24px;
    }

    /* 同意チェック部分を中央に配置 */
    .privacy-checkbox {
        justify-content: center;
    }

    .privacy-checkbox>label {
        align-items: flex-start;
        gap: 12px;

        width: fit-content;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    .privacy-checkbox__text {
        flex: 0 1 auto;
        min-width: 0;

        font-size: 13px;
        line-height: 1.7;
        text-align: left;
    }

    .custom-checkbox {
        margin-top: 2px;
    }

    /* ボタンをPCと同じ最大幅390pxにする */
    .submit-btn {
        width: 100%;
        max-width: 390px;
        min-height: 50px;

        margin: 18px auto 0;
        padding: 10px 45px 10px 30px;

        font-size: 16px;
    }

    .submit-btn::after {
        right: 22px;
        width: 9px;
        height: 9px;
    }

    /* 注記をボタンと同じ幅にする */
    .privacy-ssl-note {
        width: 100%;
        max-width: 390px;

        margin: 10px auto 0;

        font-size: 11px;
        line-height: 1.6;
        text-align: left;
    }
}

/*---------------------------------------------
確認画面
---------------------------------------------*/
.read {
    margin-bottom: 34px;
}

.read p {
    font-size: 16px;
    line-height: 1.8;
}

@media screen and (max-width: 767px) {
    .read p {
        font-size: 14px;
        line-height: 1.6;
    }
}


/*---------------------------------------------
確認画面：戻る・送信ボタン
---------------------------------------------*/

.btn-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 12px 0 16px;
}

.btn-contact p {
    margin: 0;
}


/* ボタン共通 */

.btn-contact__btn {
    position: relative;

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

    width: 216px;
    min-height: 50px;
    padding: 10px;

    border: none;
    border-radius: 39px;

    color: var(--maeq-white);
    background-color: var(--maeq-navy02);

    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: var(--w-bold);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;

    box-shadow: none;
    cursor: pointer;

    transition: var(--tran-opacity-a);
}

/*---------------------------------------------
戻るボタン
---------------------------------------------*/

.btn-contact__btn--glay {
    color: var(--maeq-white) !important;
    background-color: var(--maeq-gray05) !important;
}


/* 戻るボタン：ホバー・フォーカス */

.btn-contact__btn--glay:hover,
.btn-contact__btn--glay:focus {
    opacity: 0.7;
}


/* 戻るボタン：押したとき */

.btn-contact__btn--glay:active {
    opacity: 1;
}


/*---------------------------------------------
送信ボタン：活性状態
---------------------------------------------*/

.btn-contact--2col button.btn-contact__btn:not(:disabled):not(.disabled) {
    color: var(--maeq-white);
    background-color: var(--maeq-navy02);

    transition: var(--tran-opacity-a);
}


/* 活性時：ホバー・フォーカス */

.btn-contact--2col button.btn-contact__btn:not(:disabled):not(.disabled):hover,
.btn-contact--2col button.btn-contact__btn:not(:disabled):not(.disabled):focus {
    opacity: 0.7;
}


/* 活性時：押したとき */

.btn-contact--2col button.btn-contact__btn:not(:disabled):not(.disabled):active {
    opacity: 1;
}


/*---------------------------------------------
送信ボタン：非活性状態
---------------------------------------------*/

.btn-contact__btn.disabled,
.btn-contact__btn:disabled {
    color: var(--maeq-white);
    background-color: var(--maeq-gray04);

    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
    transition: none;
}


/* 非活性時はホバーしても変化させない */

.btn-contact__btn.disabled:hover,
.btn-contact__btn:disabled:hover,
.btn-contact__btn.disabled:focus,
.btn-contact__btn:disabled:focus {
    opacity: 1;
}


/*---------------------------------------------
スマホ
---------------------------------------------*/

@media screen and (max-width: 767px) {
    .btn-contact {
        flex-direction: column;
        gap: 14px;
        margin: 16px 0;
    }

    .btn-contact__btn {
        width: 280px;
        max-width: 100%;
        min-height: 50px;

        font-size: 16px;
    }

.btn-contact--2col p:first-child {
    order: 2;
}

/* 戻るボタンを下にする */

.btn-contact--2col p:nth-child(2) {
    order: 1;
}
}

/*---------------------------------------------
サンクスページ
---------------------------------------------*/

.thanks-section {
    padding: 0 20px 140px;
}

.thanks__inner {
    width: min(887px, 100%);
    margin: 0 auto;
}

.thanks__ttl {
    margin: 0 0 32px;
    color: var(--maeq-navy02);
    font-size: 36px;
    font-weight: var(--w-bold);
    line-height: 1.5;
    text-align: center;
}


/*---------------------------------------------
案内文
---------------------------------------------*/

.list-desc {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-desc li {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    font-weight: var(--w-regular);
    line-height: 1.6;
}

.list-desc li::before {
    content: "・";
    position: absolute;
    top: 0;
    left: 0;
}

.list-desc li+li {
    margin-top: 10px;
}


/*---------------------------------------------
トップへ戻るボタン
---------------------------------------------*/

.white-btn {
    margin-top: 60px;
    text-align: center;
}

.white-btn a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: min(390px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 12px 24px;

    border: 1px solid var(--maeq-gray05);
    border-radius: 100px;

    color: var(--maeq-gray05);
    background-color: var(--maeq-white);

    font-size: 18px;
    font-weight: var(--w-medium);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;

    transition: var(--tran-opacity-a);
}

.white-btn a:hover,
.white-btn a:focus {
    opacity: 0.7;
}

.white-btn a:active {
    opacity: 1;
}


/*---------------------------------------------
サンクスページ：スマートフォン
---------------------------------------------*/

@media screen and (max-width: 767px) {
    .thanks-section {
        padding: 0 20px 80px;
    }

    .thanks__ttl {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .list-desc li {
        font-size: 14px;
    }

    .white-btn {
        margin-top: 40px;
    }

    .white-btn a {
        min-height: 54px;
        font-size: 16px;
    }
}

@media screen and (max-width: 409px) {
    .thanks__ttl {
        font-size: 20px;
    }

}