/* ================================================================
   Contact page
   ================================================================ */
.fp-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.page-subhero {
    min-height: unset;
}

.page-subhero__deco > img {
    display: none;
}

.page-subhero__deco > .page-subhero__deco-img--circle-7,
.page-subhero__deco > .page-subhero__deco-img--note-1,
.page-subhero__deco > .page-subhero__deco-img--note-3 {
    display: block;
}

.page-subhero__deco-img--circle-7 {
    top: 59px;
    left: calc(50% - 222px);
    width: 88px;
}

.page-subhero__deco-img--note-3 {
    top: 84px;
    left: calc(50% + 102px);
);
    width: 34.187px;
    transform: rotate(5.651deg);
}

.page-subhero__deco-img--note-1 {
    top: 37px;
    left: calc(50% + 161px);
    width: 45.634px;
    transform: rotate(27.918deg);
}

.page-subhero__inner {
    padding-top: 30px;
    padding-bottom: 18px;
}

.page-subhero__content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.page-subhero__title {
    font-family: var(--fp-font-en);
    font-size: 48px;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-subhero__sub-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
}

/* ================================================================
   Contact Form (BEM)
   ================================================================ */

.contact-form {
    margin: 56px auto 0;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-feature-settings: normal;
    font-weight: 700;
    line-height: 125%;
    cursor: pointer;
}

.contact-form__badge {
    padding: 2px 4px;
    background: #fff;
    border-radius: 4px;
    outline: 1px #FF0004 solid;
    outline-offset: -1px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #FF0004;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.contact-form__control input[type="text"],
.contact-form__control input[type="tel"],
.contact-form__control input[type="email"],
.contact-form__control textarea {
    width: 100%;
    height: 56px;
    padding: 14px 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-feature-settings: normal;
    font-weight: 400;
    line-height: 175%;
    letter-spacing: 0.04em;
    background: #fff;
    color: #1A1A2E;
    box-sizing: border-box;
}

.contact-form__control input[type="text"]::placeholder,
.contact-form__control input[type="tel"]::placeholder,
.contact-form__control input[type="email"]::placeholder,
.contact-form__control textarea::placeholder {
    color: #B0B8C9;
}

.wpcf7-form-control-wrap {
    display: flex;
}

.contact-form__control textarea {
    margin-top: -4px;
    min-height: 240px;
    resize: vertical;
    font-family: var(--fp-font-jp);
}

/* CF7 validation states */
.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-not-valid {
    border: 2px solid #FF0004 !important;
    box-shadow: none !important;
}

.wpcf7-not-valid:focus {
    outline: none;
}

.contact-form__control .wpcf7-not-valid-tip {
    display: block;
    color: #FFBFBF;
    font-size: 16px;
    font-weight: 700;
    line-height: 200%;
    letter-spacing: 0.04em;
}

.wpcf7-form-control-wrap[data-name="your-name"] .wpcf7-not-valid-tip::before {
    content: "担当者名を";
}

.wpcf7-form-control-wrap[data-name="your-company"] .wpcf7-not-valid-tip::before {
    content: "会社名を";
}

.wpcf7-form-control-wrap[data-name="your-tel"] .wpcf7-not-valid-tip::before {
    content: "電話番号を";
}

.wpcf7-form-control-wrap[data-name="your-email"] .wpcf7-not-valid-tip::before {
    content: "メールアドレスを";
}

.wpcf7-form-control-wrap[data-name="your-subject"] .wpcf7-not-valid-tip::before {
    content: "お問い合わせ件名を";
}

.wpcf7-form-control-wrap[data-name="your-message"] .wpcf7-not-valid-tip::before {
    content: "お問い合わせ内容を";
}

.contact-form__control:has(textarea) .wpcf7-form-control-wrap {
    gap: 8px;
}

/* Submit */
.contact-form__submit p {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    align-self: center;
}

.contact-form__submit .wpcf7-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);

}

.contact-form__submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 60px;
    padding: 0 48px;
    background: linear-gradient(to right, #8D59FF, #1C4BFF);
    color: #fff;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--fp-font-jp);
    border: none;
    cursor: pointer;
    transition: background var(--fp-ease);
}

.contact-form__submit input[type="submit"]:hover {
    background: linear-gradient(to right, #6728F1, #0232EA);
}

.contact-form__submit input[type="submit"]:focus-visible {
    outline: 2px solid var(--fp-yellow);
    outline-offset: 2px;
}

/* Policy */
.contact-form__policy {
    font-size: 16px;
    font-weight: 500;
    line-height: 200%;
    letter-spacing: 0.04em;
}

.contact-form__policy-link {
    text-decoration: underline;
    transition: opacity var(--fp-ease);
}

.contact-form__policy-link:hover {
    opacity: 0.7;
}

.fp-footer {
    padding: 60px 30px 28px;
}

.fp-footer .fp-footer__breadcrumb-list {
    margin-top: 0;
    margin-bottom: 16px;
}

/* ================================================================
   Desktop (≥ 1024px)
   ================================================================ */

@media (min-width: 1024px) {
    .page-subhero__deco > img,
    .page-content__deco > img {
        display: block;
    }

    .page-subhero__deco-img--circle-7 {
        top: 38px;
        left: calc(50% - 654px);
        width: 175.929px;
    }

    .page-subhero__deco-img--note-3 {
        top: 108px;
        left: calc(50% + 348px);
        width: 66.421px;
        transform: rotate(5.651deg);
    }

    .page-subhero__deco-img--note-1 {
        top: 18px;
        left: calc(50% + 462px);
        width: 88.661px;
        transform: rotate(27.918deg);
    }
    
    .page-subhero__deco-img--circle-2 {
        top: 49px;
        left: calc(50% - 447px);
        width: 53.1px;
    }
    
    .page-subhero__deco-img--shape-3 {
        top: 108px;
        left: calc(50% - 357px);
        width: 83px;
    }

    .page-subhero__inner {
        padding: 37px 0;
        min-height: unset;
    }

    .page-subhero__content {
        padding: 0;
        gap: 8px;
    }

    .page-subhero__title {
        font-family: var(--fp-font-en);
        font-size: 72px;
        font-weight: 300;
        line-height: 100%;
        letter-spacing: 0.04em;
    }

    .page-subhero__sub-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 150%;
        letter-spacing: 0.04em;
    }
    
    .contact-form {
        margin-top: 61px;
    }
}