/**
 * 就業支援希望フォームLP 専用スタイル
 * 参照元:
 *   kaigojob-academy-hubspot/src/sms-theme/css/forms/richTextForm/school_mm_006.css
 *   kaigojob-academy-hubspot/src/sms-theme/css/forms/richTextForm/school_mm_006_form.css
 *   kaigojob-academy-hubspot/src/sms-theme/css/forms/richTextForm/common.css
 * 対象ページ: /support-inquiry-crm/
 *
 * 設計方針:
 *   - すべて .crmlp-page スコープで囲み、他ページへの影響を排除
 *   - support.css が rem + !important で設定する値を px + !important で上書き
 *   - フォントサイズは school_mm_006.css の px 値を直接使用
 *   - normalize.css が h1 margin をリセットするため、元LP相当値を明示補完
 */

/* =====================================================
   ユーティリティ
   ===================================================== */
.cmn-show--sp {
    display: none;
}
@media screen and (max-width: 667px) {
    .cmn-show--sp {
        display: block;
    }
}

/* =====================================================
   ベース
   school_mm_006.css: font-family / letter-spacing
   ===================================================== */
.crmlp-page {
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 1px;
}

/* =====================================================
   ヒーローセクション幅修正
   support.css の @media (max-width:820px) .support { margin: 0 -16px } は
   親コンテナに padding:16px がある前提の打ち消しだが、
   このLPでは親にパディングがないため両端がはみ出す
   ===================================================== */
@media screen and (max-width: 820px) {
    .crmlp-page .support {
        margin-left: 0;
        margin-right: 0;
    }
}

/* =====================================================
   ヒーローコンテンツ (.support-chap1__content)
   school_mm_006.css: padding: 16px 16px 32px (PC) / 0 16px (SP)
   support.css は padding: 2rem 0 で上書きするため再上書き
   ===================================================== */
.crmlp-page .support-chap1__content {
    background: #26a3e4;
    padding: 16px 16px 32px;
}
.crmlp-page .support-chap1__content > div {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-chap1__content {
        padding: 0 16px;
    }
}

/* =====================================================
   ヒーローアイテム幅制限
   school_mm_006.css: width: min(100%, 728px); margin: auto;
   ===================================================== */
.crmlp-page .support-chap1__item {
    width: min(100%, 728px);
    margin: auto;
}

/* dt: position:relative / text-align
   support.css の place-items:center / margin:0 0 1rem を上書き */
.crmlp-page .support-chap1__item dt {
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    margin: 0;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-chap1__item dt {
        text-align: left;
        place-items: flex-start;
    }
    /* SP では dd（説明テキスト）を非表示 */
    .crmlp-page .support-chap1__item dd {
        display: none;
    }
}

/* =====================================================
   ヒーローテキスト (.support-chap1__feature)
   school_mm_006.css の px 値を直接指定。
   support.css の rem + !important を上書きするため !important を使用。
   normalize.css が h1 margin をリセットするため、
   元LP（HubSpot）のブラウザデフォルト値（0.67em × 28px = 18.76px）を復元。
   ===================================================== */
.crmlp-page .support-chap1__feature {
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: fot-udkakugo-large-pr6n, sans-serif;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 2px;
    font-feature-settings: "palt";
    -webkit-font-feature-settings: "palt";
    margin: 18.76px 0;
}
.crmlp-page .support-chap1__feature span:first-child {
    font-size: 24px !important;
}
.crmlp-page .support-chap1__feature span:last-child {
    font-size: 30px !important;
    line-height: 1.6;
}
.crmlp-page .support-chap1__feature span strong {
    color: #ffea00;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-chap1__feature {
        line-height: 1.6;
    }
    .crmlp-page .support-chap1__feature span:first-child {
        font-size: 17px !important;
        line-height: 1.8;
    }
    .crmlp-page .support-chap1__feature span:last-child {
        font-size: 25px !important;
        letter-spacing: 2px;
    }
    .crmlp-page .support-chap1__feature strong {
        display: block;
        line-height: 1.5;
    }
}

/* =====================================================
   ヒーローイラスト位置
   school_mm_006.css: top:35px / right:30px (PC)
                      top:59px / right:2px / width:98px (SP)
   support.css の top:-136px (PC) / top:-124px (SP) を上書き
   min-height: img が display:block のため、元LP（display:inline + line-height）
   相当の div 高さ 130px を確保する
   ===================================================== */
.crmlp-page .support-chap1__item-illust {
    position: absolute;
    right: 30px;
    top: 35px !important; /* support.css の nth-child 詳細度 (0,3,0) を上書き */
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-chap1__item-illust {
        width: 98px;
        top: 59px !important; /* support.css の nth-child 詳細度 (0,3,0) を上書き */
        right: 2px;
        min-height: 130px;
    }
}

/* =====================================================
   中間セクション (.support-chap3__content)
   school_mm_006.css から移植
   ===================================================== */
.crmlp-page .support-chap3__content {
    background: #dcf5f5;
    padding: 3rem 0 0;
    margin: 0 0 80px;
    position: relative;
}
.crmlp-page .support-chap3__content:after {
    content: "";
    position: absolute;
    bottom: -47.5px;
    width: 100%;
    height: 48px;
    clip-path: polygon(0 0, 100% 0, 50% 100%, 50% 100%);
    background: #dcf5f5;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-chap3__content {
        margin: 0 0 3rem;
        padding: 1.5rem 0 0.5rem;
    }
    .crmlp-page .support-chap3__content:after {
        bottom: -23.5px;
        height: 24px;
    }
}

/* =====================================================
   中間セクション タイトル (.support-chap3__title)
   school_mm_006.css から移植
   ===================================================== */
.crmlp-page .support-chap3__title {
    text-align: center;
    font-family: fot-udkakugo-large-pr6n, sans-serif;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 2px;
    font-feature-settings: "palt";
    -webkit-font-feature-settings: "palt";
    margin: 0 0 1rem;
}
.crmlp-page .support-chap3__title small {
    font-size: 28px !important;
    display: block;
    margin: 0 0 0.5rem;
}
.crmlp-page .support-chap3__title p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.crmlp-page .support-chap3__title em {
    font-size: 36px !important;
    line-height: 1.5;
    font-style: normal;
    display: flex;
    justify-content: center;
    gap: 0.1rem;
}
.crmlp-page .support-chap3__title em.dot {
    line-height: 2;
}
.crmlp-page .support-chap3__title em.dot span {
    position: relative;
    display: inline-block;
}
.crmlp-page .support-chap3__title em.dot span:before {
    position: absolute;
    content: "";
    background-image: radial-gradient(#0071d0 30%, transparent 30%);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center 100%;
    width: 35px;
    height: 13px;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-chap3__title small {
        font-size: 22px !important;
        line-height: 1.5;
    }
    .crmlp-page .support-chap3__title p {
        flex-direction: column;
    }
    .crmlp-page .support-chap3__title em {
        font-size: 28px !important;
        line-height: 0.6;
    }
    .crmlp-page .support-chap3__title em.dot {
        line-height: 2.2;
    }
    .crmlp-page .support-chap3__title em.dot span:before {
        background-size: 12px 12px;
        width: 27px;
    }
}

/* =====================================================
   フォーム上部キャッチコピー (.support-catch)
   school_mm_006.css + common.css .form-lead を参考に移植
   ===================================================== */
.crmlp-page .support-catch {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
    letter-spacing: 2px;
    margin: 0 0 32px;
    color: #555;
    padding: 0 16px;
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    box-sizing: border-box;
    white-space: nowrap;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-catch {
        font-size: 15.36px;
        line-height: 1.5;
        font-weight: 400;
        letter-spacing: 1px;
        margin-bottom: 24px;
    }
}

/* =====================================================
   フォームラベル letter-spacing 調整
   デフォルト 2px だと「お仕事を始めたい時期」が dt 幅(216px)を超えて
   任意バッジが折り返されるため 1px に縮小
   ===================================================== */
.crmlp-page .form-input__title {
    letter-spacing: 1px;
}

/* =====================================================
   送信ボタンオーバーレイ非表示
   このページではオーバーレイを表示せず、ボタン有効化のみ行う
   JS の excluded クラス付与・イベント登録は共有のため変更しない
   ===================================================== */
.crmlp-page .form-submit__overlay {
    display: none !important;
}

/* =====================================================
   フォームコンテナ
   school_mm_006.css .support-form から移植
   ===================================================== */
.crmlp-page .support-form {
    width: min(100%, 520px);
    margin: auto;
    padding: 0 16px;
}
.crmlp-page [data-template-name="school_mm_006"] {
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

/* =====================================================
   FormBuilder 送信ボタン上書き
   school_mm_006_form.css の .hs-button[type='submit'] を FormBuilder 向けに変換
   元LP（HubSpot）のピンク (#fe4882) を再現
   ===================================================== */
.crmlp-page [data-template-name="school_mm_006"] .form-submit__button {
    background: #fe4882;
    border-color: #fe4882;
    box-shadow: 0 5px 0 #e1386d;
    color: #fff;
    position: relative;
}

/* 矢印アイコン（元LPの .actions:after を再現） */
.crmlp-page [data-template-name="school_mm_006"] .form-submit__button::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>') no-repeat center / contain;
}

/* 無効状態（利用規約未同意） */
.crmlp-page [data-template-name="school_mm_006"] .form-submit__button--disabled {
    background: #fe4882;
    border-color: #fe4882;
    box-shadow: 0 5px 0 #e1386d;
    opacity: 0.5;
    cursor: not-allowed;
}

/* ホバー */
.crmlp-page [data-template-name="school_mm_006"] .form-submit__button:not(.form-submit__button--disabled):hover {
    opacity: 0.9;
}

/* =====================================================
   サンクスページ
   school_mm_006.css .support-thanks から移植
   ===================================================== */
.crmlp-page .support-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    width: min(100%, 520px);
    margin: auto;
    padding: 16px;
}
.crmlp-page .support-thanks p {
    margin: 0;
}
.crmlp-page .support-thanks__title {
    font-size: 24px;
    font-weight: 600;
}
.crmlp-page .support-thanks__txt {
    margin: 0;
    width: 100%; /* 折り返しテキストを左揃えで全幅表示 */
}
.crmlp-page .support-thanks__return {
    color: #00acc1;
    font-size: 16px;
    display: block;
}
.crmlp-page .support-thanks__return:hover {
    color: #00acc1;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-thanks {
        gap: 24px;
    }
    .crmlp-page .support-thanks__title {
        font-size: 22px;
    }
}

/* =====================================================
   サンクスページ: .inner コンテナ
   common.css の .inner を移植
   ===================================================== */
.crmlp-page .support-thanks .inner {
    margin: 0 auto;
    max-width: 100%;
    width: 540px;
    padding: 0 16px;
    box-sizing: border-box;
}
@media screen and (max-width: 667px) {
    .crmlp-page .support-thanks .inner {
        padding: 0 24px;
    }
}

/* =====================================================
   サンクスページ: Flexユーティリティ
   common.css の .flex / .flex--column-center / .flex--center を移植
   ===================================================== */
.crmlp-page .support-thanks .flex {
    display: flex;
}
.crmlp-page .support-thanks .flex--column-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.crmlp-page .support-thanks .flex--center {
    align-items: center;
    justify-content: center;
}

/* =====================================================
   サンクスページ: テキストユーティリティ
   common.css の .text__font--* / .text__weight--* を移植
   ===================================================== */
.crmlp-page .support-thanks .text__font--medium {
    font-size: 16px;
    line-height: 1.6;
}
.crmlp-page .support-thanks .text__font--xlarge {
    font-size: 20px;
    line-height: 1.7;
}
.crmlp-page .support-thanks .text__weight--bold {
    font-weight: 700;
}

/* =====================================================
   サンクスページ: 電話CTAボタン
   common.css の .button / .button--tel / .button--color-blue-wide-text-link を移植
   ===================================================== */
.crmlp-page .support-thanks .button {
    border-radius: 8px;
    color: #fff !important; /* style.css の .button:link { color: #2b2b2b } を上書き */
    font-weight: 700;
    outline: none;
    padding: 16px 1rem;
    position: relative;
    text-decoration: none;
    transition: opacity 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.crmlp-page .support-thanks .button:hover {
    opacity: 0.9;
}
.crmlp-page .support-thanks .button::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 20px;
    width: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>') no-repeat center / contain;
}
.crmlp-page .support-thanks .button--tel {
    padding: 5px 1rem;
}
.crmlp-page .support-thanks .button--color-blue-wide-text-link,
.crmlp-page .support-thanks .button--color-blue-wide-text-link:hover,
.crmlp-page .support-thanks .button--color-blue-wide-text-link:link,
.crmlp-page .support-thanks .button--color-blue-wide-text-link:visited {
    background-color: #47bad4;
    border: none;
    box-shadow: 0 5px 0 #248ba2;
    color: #fff !important;
    margin: auto;
}

/* =====================================================
   フッターロゴサイズ上書き
   crmlp.css の :nth-child ルールは3ロゴ構成を前提としているため、
   2ロゴ構成のこのページでは以下を上書きする。
   - 1番目（上場企業バナー）: 元LP に合わせ 146×63 に変更
   - 2番目（プライバシーマーク）: 90×27 になるところを 60×60 に修正
   ===================================================== */
.crmlp-footer__logos li:nth-child(1) img {
    width: 146px;
    height: 63px;
}

.crmlp-footer__logos li:nth-child(2) img {
    width: 62px;
    height: 62px;
}
