@charset "UTF-8";

/* ============================================================
   2026-09 FV改修: TOPページ m-hero（HubSpot資料請求フォーム）
   対象: page-front_custom.php の .m-hero のみ
   ============================================================ */

.m-hero[data-type=a]:not(.m-hero--lp101) {
    position: relative;
    min-height: 483px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    background-image: none;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    max-width: 1750px;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-inner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-63.4%);
    height: 100%;
    width: max-content;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-inner picture {
    display: block;
    height: 100%;
    width: max-content;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__filter {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(-90deg, rgba(0, 0, 0, 0.5) 0%, #000 100%);
    opacity: 0.6;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
background: linear-gradient(270deg, rgba(0, 0, 0, 0.5) 0%, #000000 100%);
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__outer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    min-height: 483px;
    height: auto;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__inner {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 338px;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__catch {
    order: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: #fff;
    line-height: 51px;
    height: 51px;
    letter-spacing: 2.8px;
    text-align: center;
    white-space: nowrap;
    margin: 0;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__catch + .m-hero__catch {
    margin-top: 3px;
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-btn {
    display: none;
}
@media screen and (max-width: 768px) {
    .m-hero[data-type=a]:not(.m-hero--lp101) .m-btn {
        display: flex;
        margin-top: 2vw;
    }
}

.m-hero[data-type=a]:not(.m-hero--lp101) .m-sub_copy_s2 {
    order: 1;
    margin-top: 19px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    height: 17px;
    letter-spacing: 0.7px;
    text-align: center;
    white-space: nowrap;
    color: #fff;
}

.m-hero[data-type=a] .m-hero__form {
    flex: 0 0 330px;
    width: 330px;
    background: #f7f7f7;
    border: 1px solid #5a5a5a;
    border-radius: 7px;
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.14);
    overflow: visible;
}

.m-hero[data-type=a] .m-hero__form-title {
    margin: 0;
    padding: 10px 12px;
    background: #2c3e50;
    border: 0.5px solid #2c3e50;
    border-radius: 5px 5px 0 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
}

.m-hero[data-type=a] .m-hero__form-body {
    padding: 15px 20px 16px;
}

.m-hero[data-type=a] .hs-form-html {
    min-height: 360px;
}

/* HubSpot v4 トークン上書き */
.m-hero[data-type=a] [data-hsfc-id=Renderer] {
    --hsf-global__font-family: "Noto Sans JP", sans-serif;
    --hsf-field-label__font-family: "Noto Sans JP", sans-serif;
    --hsf-field-label__font-size: 12px;
    --hsf-field-label__color: #171717;
    --hsf-field-label-requiredindicator__color: #f86e04;
    --hsf-global__error-color: #f86e04;
    --hsf-field-description__font-family: "Noto Sans JP", sans-serif;
    --hsf-field-description__font-size: 8px;
    --hsf-field-description__color: #171717;
    --hsf-field-footer__font-family: "Noto Sans JP", sans-serif;
    --hsf-field-footer__font-size: 8px;
    --hsf-field-footer__color: #171717;
    --hsf-field-input__font-family: "Noto Sans JP", sans-serif;
    --hsf-field-input__font-size: 12px;
    --hsf-field-input__color: #171717;
    --hsf-field-input__background-color: #fff;
    --hsf-field-input__placeholder-color: #999;
    --hsf-field-input__border-color: transparent;
    --hsf-field-input__border-width: 0;
    --hsf-field-input__border-style: solid;
    --hsf-field-input__border-radius: 3px;
    --hsf-field-input__padding: 5px 10px;
    --hsf-field-checkbox__background-color: #fff;
    --hsf-field-checkbox__border-color: #c5c5c5;
    --hsf-field-checkbox__border-width: 1px;
    --hsf-field-checkbox__padding: 0;
    --hsf-field-checkbox__color: #f86e04;
    --hsf-row__horizontal-spacing: 10px;
    --hsf-row__vertical-spacing: 10px;
    --hsf-module__vertical-spacing: 5px;
    --hsf-background__padding: 0;
    --hsf-button__font-family: "Noto Sans JP", sans-serif;
    --hsf-button__font-size: 13px;
    --hsf-button__font-weight: 700;
    --hsf-button__color: #fff;
    --hsf-button__background-color: #f86e04;
    --hsf-button--hover__background-color: #e06303;
    --hsf-button__border-radius: 50px;
    --hsf-button__padding: 0;
    --hsf-button__box-shadow: none;
    --hsf-erroralert__font-family: "Noto Sans JP", sans-serif;
    --hsf-erroralert__font-size: 12px;
    --hsf-erroralert__color: #fff;
    --hsf-richtext__font-family: "Noto Sans JP", sans-serif;
    --hsf-richtext__font-size: 8px;
    --hsf-richtext__color: #171717;
    --hsf-heading__font-family: "Noto Sans JP", sans-serif;
    --hsf-heading__color: #171717;
    --hsf-navigationrow-buttons__justify-content: center;
    --hsf-navigationrow-buttons-single__justify-content: center;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Form,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Step,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
    background: transparent;
    width: 100%;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
    padding: 0;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Row {
    position: relative;
    margin-bottom: 10px;
    gap: 10px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-FieldLabel,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-FieldLabel span:not(.hsfc-FieldLabel__RequiredIndicator) {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #171717;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: left;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-FieldLabel__RequiredIndicator {
    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
    font-weight: normal;
    color: #f86e04 !important;
    margin-left: 2px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextInput,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextareaInput {
    height: 28px;
    min-height: 28px;
    padding: 5px 10px;
    background: #fff;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #171717;
    line-height: 1.3;
    letter-spacing: 0;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextInput::placeholder {
    color: #999;
    font-weight: normal;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextInput:hover,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextInput:focus,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextInput:active {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextInput[aria-invalid=true] {
    border: 0.5px solid #f86e04;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextField > .hsfc-TextInput,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-EmailField > .hsfc-TextInput,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DropdownField > .hsfc-DropdownInput {
    margin-bottom: 0;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DropdownInput__Caret {
    padding: 0 8px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DropdownInput__Caret > span {
    border-top-width: 5px;
    border-left-width: 4px;
    border-right-width: 4px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DropdownOptions {
    background: #fff;
    border: 1px solid #c5c5c5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    max-height: 180px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DropdownOptions__List__ListItem {
    font-size: 12px;
    padding: 6px 10px;
}

/* 補助テキスト（Figma: メール注意書き / 電話番号） */
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-EmailField .hsfc-FieldLabel::after {
    content: "※入力間違いが多くなっておりますのでご注意ください";
    display: block;
    margin-top: 5px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 8px;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0;
    color: #171717;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextField:has(input[name="0-1/t_37494_rsr2bac8auv3"]) .hsfc-FieldLabel::after {
    content: "半角数字";
    display: block;
    margin-top: 5px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 8px;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0;
    color: #171717;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-ProgressBar {
    display: none;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DataPrivacyField > .hsfc-Row:first-child {
    display: none;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-CheckboxField label,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-CheckboxFieldGroup__Options label {
    align-items: flex-start;
    gap: 4px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-CheckboxInput {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    margin-top: 2px;
    padding: 0;
    background: #fff;
    border: 1px solid #c5c5c5;
    border-radius: 3px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-CheckboxField .hsfc-FieldLabel,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-CheckboxField .hsfc-FieldLabel span {
    font-weight: normal;
    font-size: 12px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-FieldLabel a {
    color: #f86e04;
    font-size: 12px;
    font-weight: normal;
    text-decoration: underline;
    letter-spacing: 0;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-FieldLabel a:hover {
    opacity: 1;
    text-decoration: none;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-RichText,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-RichText p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 8px;
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: 0;
    color: #171717;
    text-align: left;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-NavigationRow {
    margin-top: 5px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons:has(> :only-child) {
    justify-content: center;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 35px;
    margin: 0 auto;
    padding: 0;
    background: #f86e04;
    border: none;
    border-radius: 50px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0;
    color: #fff;
    box-shadow: none;
    transform: none;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):hover,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):focus,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):active {
    background: #e06303;
    transform: none;
    color: #fff;
    opacity: 1;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons:has(> :only-child) .hsfc-Button::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    background: url(../img/m-hero-next.svg) center / 14px 14px no-repeat;
    flex-shrink: 0;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons .hsfc-Button:first-child:not(:only-child) {
    display: none;
}

/* エラー表示（absolute: ヒーロー高さを変えない / 左右中央） */
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-TextField,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-EmailField,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DropdownField,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-CheckboxField,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-DataPrivacyField {
    position: static;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-ErrorAlert {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 4px 0 0;
    padding: 5px 8px 6px;
    background: linear-gradient(to top, #c05300 0%, #f86e04 30%, #f87c04 100%);
    border-radius: 2.5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 12px;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
}

/* 2カラム行は、いずれか一方でもエラーがあれば1つだけ表示 */
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-Row:has(> :nth-child(2)) > *:has(.hsfc-ErrorAlert) ~ * .hsfc-ErrorAlert {
    display: none;
}

/* STEP3 完了メッセージ */
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit {
    padding: 5px 0 10px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit .hsfc-RichText,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit .hsfc-RichText p,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit .hsfc-RichText strong {
    font-family: "Noto Sans JP", sans-serif;
    color: #171717;
    letter-spacing: 0;
    text-align: left;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit .hsfc-RichText p {
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    margin: 0 0 6px;
}

.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit .hsfc-RichText p:first-child,
.m-hero[data-type=a] [data-hsfc-id=Renderer] .hsfc-PostSubmit .hsfc-RichText p:first-child strong {
    font-size: 16px;
    font-weight: bold;
    line-height: 16px;
    margin-bottom: 20px;
}

/* 1024px以下: 画像を全面カバー（タブ用トリミング画像は 768–1024 のみ） */
@media screen and (max-width: 1024px) {
    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-inner {
        left: 0;
        transform: none;
        width: 100%;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-inner picture {
        width: 100%;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__edge {
        display: none;
    }
}

/* タブレット: Figma 834px（文字・フォームサイズはPCと同じ） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .m-hero[data-type=a]:not(.m-hero--lp101) {
        min-height: 475px;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__outer {
        max-width: 834px;
        min-height: 475px;
        gap: 20px;
        padding: 10px 20px;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__inner {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__head {
        width: 338px;
        max-width: 100%;
    }

    /* app.css の 18px 上書き。Figmaどおり PC と同じ 35px */
    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__catch {
        font-size: 35px;
        line-height: 51px;
        height: 51px;
        letter-spacing: 2.8px;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-sub_copy_s2 {
        font-size: 14px;
        line-height: 17px;
        height: 17px;
        letter-spacing: 0.7px;
    }

    .m-hero[data-type=a] .m-hero__form {
        flex: 0 0 330px;
        width: 330px;
    }
}

/* SP: 正方形FV、テキスト中央、幅に応じて可変 */
@media screen and (max-width: 767px) {
    .m-hero[data-type=a]:not(.m-hero--lp101) {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
        background: none;
        background-image: none;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-inner {
        left: 0;
        transform: none;
        width: 100%;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg-inner picture {
        width: 100%;
        height: 100%;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left 40%;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__filter {
        background: rgba(0, 0, 0, 0.45);
        background-image: none;
        opacity: 1;
        mix-blend-mode: multiply;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__edge {
        display: none;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__outer {
        position: absolute;
        inset: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        max-width: none;
        padding: 0 5.3vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__inner,
    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__head {
        max-width: 100%;
        width: 100%;
        height: auto;
        padding: 0;
        background: none;
        background-image: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__catch {
        font-size: clamp(20px, 6.4vw, 32px);
        line-height: 1.46;
        height: auto;
        letter-spacing: 0.08em;
        color: #fff;
        text-shadow: none;
        margin: 0;
        white-space: nowrap;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__catch + .m-hero__catch {
        margin-top: 0.5vw;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-sub_copy_s2 {
        margin-top: 3.2vw;
        font-size: clamp(11px, 3.2vw, 14px);
        line-height: 1.4;
        height: auto;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .m-hero[data-type=a]:not(.m-hero--lp101) .m-hero__form {
        display: none;
    }
}
