/*
 * 人探し・所在調査LP（page-hitosagashi.php 専用）
 * functions.php で対象テンプレートのときだけ読み込む。
 * すべて .hitosagashi 配下にスコープし、既存TOPには影響させない。
 *
 * ブレークポイントは既存TOP（style.css）に合わせる：1200 / 991 / 767 / 600px
 * コンテンツ幅は既存TOPの .lp_galu_outer（1100px → 90% → 96%）をそのまま使用。
 */

/* ------------------------------------------
 * 変数
 * ラフ基準の色。ブラウザ確認後にここで調整する。
 * ---------------------------------------- */
.hitosagashi {
    --hs-card-bg: #fff;
    --hs-card-shadow: 0 2px 10px rgba(0, 60, 132, 0.06);

    /* Hero */
    --hs-hero-min-h: 600px;
    --hs-hero-bg-pos: 60% center;
    --hs-hero-visual-w: 38%;
    --hs-chara-w: 400px;
    --hs-balloon-space: 120px;   /* 吹き出しの分だけキャラクターを下げる */

    /* CTA */
    --hs-cta-overlay: rgba(0, 30, 70, 0.55);

    color: var(--text-color, #464646);   /* TOPと同じテーマの本文色 */
}

/* ------------------------------------------
 * Lightning の見出し・リスト装飾のリセット（LP内のみ）
 * ---------------------------------------- */
.hitosagashi h1,
.hitosagashi h2,
.hitosagashi h3 {
    border: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}
.hitosagashi h1::before,
.hitosagashi h1::after,
.hitosagashi h2::before,
.hitosagashi h2::after,
.hitosagashi h3::before,
.hitosagashi h3::after {
    content: none;
}
.hitosagashi p {
    margin: 0;
}
.hitosagashi img {
    max-width: 100%;
    height: auto;
}

/* 原稿未確定の目印（差し替え後は不要） */
.hitosagashi .hitosagashi-tbd {
    background: #ffe0e0;
    color: #c00;
    outline: 1px dashed #c00;
    font-weight: bold;
}

/* PCのみの改行 */
br.hitosagashi-br-pc {
    display: inline;
}

/* ------------------------------------------
 * 共通：見出し・リード
 * h2 のサイズは既存TOPの h2.lp_galu_h2（clamp(24px, 2.5vw, 36px)）を使用
 * ---------------------------------------- */
.hitosagashi .hitosagashi-heading {
    color: var(--text-color, #464646);   /* 重要な単語だけ span.p_galuebisu_h2_green でティール（TOPと同じ） */
    margin: 0 auto 30px;
}
.hitosagashi .hitosagashi-heading__sm {
    font-size: 0.8em;
}
/* 見出しの角の装飾（TOPの .lp_galu_title_h2 を使用）。上のリセットで消えた余白と ::before/::after を戻す */
.hitosagashi h2.lp_galu_title_h2 {
    max-width: 100%;
    padding: 20px 24px;
}
.hitosagashi h2.lp_galu_title_h2::before,
.hitosagashi h2.lp_galu_title_h2::after {
    content: '';
}
@media (max-width: 1200px) {
    .hitosagashi h2.lp_galu_title_h2 {
        padding: 18px 20px;
    }
}
.hitosagashi .hitosagashi-section__lead {
    margin: -14px auto 30px;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}

/* ------------------------------------------
 * 共通：無料相談ボタン
 * 形状は既存TOPの .lp_galu_item_mail_button に合わせ、色はラフ基準
 * ---------------------------------------- */
.hitosagashi .hitosagashi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    min-width: 310px;
    padding: 14px 40px;
    border-radius: 36px;
    border: 2px solid var(--spima-red, #FF4A40);    /* hover時に枠線が出てもずれないよう、通常時も同じ色で入れておく */
    background: var(--spima-red, #FF4A40);
    box-shadow: 3px 3px 5px #00000063;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
/* hover：白地に赤い文字・赤い枠線（TOPの .lp_galu_mail_button と同じ反転） */
.hitosagashi .hitosagashi-btn:hover {
    background: #fff;
    color: var(--spima-red, #FF4A40);
    text-decoration: none;
}
.hitosagashi .hitosagashi-btn:focus-visible {
    outline: 3px solid var(--spima-teal, #008AA3);
    outline-offset: 3px;
}
.hitosagashi .hitosagashi-btn__icon {
    font-size: 1.2em;
}
.hitosagashi .hitosagashi-btn__arrow {
    font-size: 0.75em;
}

/* ------------------------------------------
 * 共通：特徴アイコン（Hero / CTA）
 * ---------------------------------------- */
.hitosagashi .hitosagashi-features {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hitosagashi .hitosagashi-features__item {
    margin: 0;
}
.hitosagashi .hitosagashi-features__icon {
    display: block;
}
.hitosagashi .hitosagashi-features__label {
    display: block;
    line-height: 1.35;
}

/* ------------------------------------------
 * 共通：番号の丸
 * ---------------------------------------- */
.hitosagashi .hitosagashi-num {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;              /* イラスト後ろの黄色い楕円より前に出す */
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--spima-teal, #008AA3);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* ------------------------------------------
 * 共通：カード型セクション
 * ---------------------------------------- */
.hitosagashi .hitosagashi-worry {
    padding: 60px 0;
    background: #fff;
}
.hitosagashi .hitosagashi-reason {
    padding: 60px 0;
    background: var(--spima-teal, #008AA3);
}
.hitosagashi h2#hitosagashi-reason-title {
    color: #fff;
}
.hitosagashi .hitosagashi-flow {
    padding: 60px 0 80px;
    background: #F6F6F6;
}
.hitosagashi .hitosagashi-cards {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hitosagashi .hitosagashi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px;
    background: var(--hs-card-bg);
    box-shadow: var(--hs-card-shadow);
    border: 1px solid #ddd;
}
/* イラストは表示領域の高さを揃え、トリミングせず縦横比を維持 */
/* イラストの後ろに黄色のぼかし楕円を敷く */
.hitosagashi .hitosagashi-card__visual {
    position: relative;
}
.hitosagashi .hitosagashi-card__visual::after {
    content: "";
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--spima-yellow, #FFD33A);
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 50%;
}
/* お悩み・ご相談から調査までは正円（高さに合わせて幅を決める） */
.hitosagashi .hitosagashi-worry .hitosagashi-card__visual::after,
.hitosagashi .hitosagashi-flow .hitosagashi-card__visual::after {
    width: auto;
    aspect-ratio: 1 / 1;
}
/* ご相談から調査まで：TOPの .lp_galu_flow_circle のように STEP＋番号。イラストに重ならないようカードの左上にはみ出して置く */
.hitosagashi .hitosagashi-flow .hitosagashi-num {
    top: -18px;
    left: -18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 64px;
    height: 64px;
}
.hitosagashi .hitosagashi-num__step {
    font-size: 11px;
    letter-spacing: 0.05em;
}
.hitosagashi .hitosagashi-num__no {
    font-size: 26px;
}
.hitosagashi .hitosagashi-reason .hitosagashi-num {
    background: #fff;
    color: var(--spima-teal, #008AA3);
    border: 1px solid var(--spima-teal, #008AA3);
}
.hitosagashi .hitosagashi-card__img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: var(--hs-card-img-h, 180px);
    object-fit: contain;
}
.hitosagashi .hitosagashi-card__title {
    margin: 20px 0 4px;
    color: var(--spima-teal, #008AA3);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}
.hitosagashi .hitosagashi-card__text {
    text-align: justify;
    font-size: 16px;
    line-height: 1.75;
}
.hitosagashi .hitosagashi-card__em {
    color: var(--spima-red, #FF4A40);    /* ボタンと同じ色 */
    font-weight: bold;
}

/* お悩み */
.hitosagashi .hitosagashi-worry__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 左右の余白を詰めて、11文字の見出しをPCで1行に収める */
.hitosagashi .hitosagashi-worry .hitosagashi-card {
    padding: 20px 16px;
}
/* 折り返す幅では2行の長さをそろえ、最後の1文字だけが次の行に行くのを防ぐ */
.hitosagashi .hitosagashi-worry .hitosagashi-card__title {
    text-wrap: balance;
    text-align: center;
}

/* 選ばれる理由 */
.hitosagashi .hitosagashi-reason__list {
    --hs-card-img-h: 170px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hitosagashi .hitosagashi-reason .hitosagashi-card__title {
    text-align: center;
}

/* ご相談から調査まで */
.hitosagashi .hitosagashi-flow .hitosagashi-card__title {
    text-align: center;
}
.hitosagashi .hitosagashi-flow__list {
    --hs-card-img-h: 150px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.hitosagashi .hitosagashi-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 12px solid var(--spima-teal, #008AA3);
    transform: translateY(-50%);
}

/* ------------------------------------------
 * Hero
 * 背景・オーバーレイ・テキスト・キャラクター・吹き出しを独立して調整できる構成
 * ---------------------------------------- */
.hitosagashi .hitosagashi-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hitosagashi .hitosagashi-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hitosagashi .hitosagashi-hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hs-hero-bg-pos);
}
.hitosagashi .hitosagashi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0) 65%);
}
.hitosagashi .hitosagashi-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--hs-hero-visual-w);
    gap: 24px;
    min-height: var(--hs-hero-min-h);
    padding-top: 40px;
}
.hitosagashi .hitosagashi-hero__content {
    align-self: center;
    padding-bottom: 32px;
}
.hitosagashi .hitosagashi-hero__catch {
    display: inline-block;
    padding: 4px 16px;
    background: var(--spima-yellow, #FFD33A);
    color: var(--text-color, #464646);
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
}
.hitosagashi .hitosagashi-hero__title {
    margin: 16px 0 20px;
    color: var(--text-color, #464646);
    font-size: 48px;
    font-weight: bold;
    line-height: 1.3;
}
.hitosagashi .hitosagashi-hero__title-em {
    color: var(--spima-teal, #008AA3);
}
.hitosagashi .hitosagashi-hero__title-sm {
    color: var(--spima-teal, #008AA3);
    font-size: 0.8em;
}
.hitosagashi .hitosagashi-hero__title-sm--plain {
    color: inherit;              /* 「ご相談は」の「は」は周りと同じ色 */
}
.hitosagashi .hitosagashi-hero__lead {
    color: var(--text-color, #464646);
    font-size: 18px;
    line-height: 1.7;
}
/* 見出し・本文は1行ずつ白の半透明の帯 */
.hitosagashi .hitosagashi-hero__title-line,
.hitosagashi .hitosagashi-hero__lead-line {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
}
.hitosagashi .hitosagashi-hero__title-line {
    margin-bottom: 6px;
    padding: 4px 12px;
}
.hitosagashi .hitosagashi-hero__lead-line {
    margin-bottom: 4px;
    padding: 2px 10px;
}
.hitosagashi .hitosagashi-features--hero {
    gap: 12px;
    margin-top: 24px;
}
/* アイコンと文字をまとめて白い丸で囲む */
.hitosagashi .hitosagashi-features--hero .hitosagashi-features__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 128px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 60, 132, 0.12);
    text-align: center;
}
.hitosagashi .hitosagashi-features--hero .hitosagashi-features__icon {
    width: 46px;
    height: auto;
}
.hitosagashi .hitosagashi-features--hero .hitosagashi-features__label {
    margin-top: 6px;
    color: var(--spima-teal, #008AA3);
    font-size: 14px;
}
.hitosagashi .hitosagashi-features--hero small {
    color: inherit;
    font-size: 0.85em;
    font-weight: inherit;        /* テーマの small 指定で細くなるのを上の行に合わせる */
}
.hitosagashi .hitosagashi-hero__action {
    margin-top: 24px;
}
/* Heroのボタン：アイコン＋文言の下に注記、矢印は右端 */
.hitosagashi .hitosagashi-btn--hero {
    justify-content: space-between;
    gap: 16px;
    width: 420px;
    padding: 15px 28px 15px 40px;
    border-radius: 60px;
    font-size: 26px;
    line-height: 1.3;
}
.hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__icon {
    font-size: 1em;
}
.hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__sub {
    font-size: 13px;
    font-weight: bold;
}
.hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__arrow {
    font-size: 1.1em;
}
.hitosagashi .hitosagashi-hero__visual {
    position: relative;
    align-self: end;
    padding-top: var(--hs-balloon-space);
}
.hitosagashi .hitosagashi-hero__chara {
    display: block;
    width: var(--hs-chara-w);
    margin: 0 auto;
}
/* 吹き出し：TOPの .lp_galebisu_nayami_balloon と同じ形（白の六角形＋下向きのしっぽ） */
.hitosagashi .hitosagashi-hero__balloon {
    position: absolute;
    top: 10%;
    right: -5%;
    z-index: 0;
    width: max-content;
    padding: 16px 30px 16px 36px;
    background-color: transparent;
    font-size: 18px;
    line-height: 26px;
    text-align: left;
}
.hitosagashi .hitosagashi-hero__balloon::before {
    content: "";
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%);
    width: 14%;
    height: 0;
    border-top: 23px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    z-index: -1;
}
.hitosagashi .hitosagashi-hero__balloon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    z-index: -2;
}

/* ------------------------------------------
 * CTA（フッター直前）
 * 背景画像は CSS で PC / SP を切り替え、オーバーレイ濃度は --hs-cta-overlay で調整
 * ---------------------------------------- */
.hitosagashi .hitosagashi-cta {
    position: relative;
    isolation: isolate;
    padding: 40px 0;
    background: #1e3a5f url(../hitosagashi/hitosagashi-footer-bg_pc.jpg) center / cover no-repeat;
    color: #fff;
}
.hitosagashi .hitosagashi-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hs-cta-overlay);
}
.hitosagashi .hitosagashi-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "head btn"
        "features features";
    align-items: center;
    gap: 24px 40px;
}
.hitosagashi .hitosagashi-cta__head {
    grid-area: head;
}
.hitosagashi .hitosagashi-cta__btn {
    grid-area: btn;
}
.hitosagashi .hitosagashi-features--cta {
    grid-area: features;
    gap: 16px 32px;
}
.hitosagashi .hitosagashi-cta__sub {
    font-size: 14px;
    font-weight: bold;
}
.hitosagashi .hitosagashi-cta__title {
    margin: 4px 0 0;
    color: #fff;
    font-size: 44px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.05em;
}
.hitosagashi .hitosagashi-features--cta .hitosagashi-features__item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hitosagashi .hitosagashi-features--cta .hitosagashi-features__icon {
    width: 56px;
    flex-shrink: 0;
}
.hitosagashi .hitosagashi-features--cta .hitosagashi-features__label {
    color: #fff;
    font-size: 15px;
}

/* ------------------------------------------
 * レスポンシブ（既存TOPのブレークポイント）
 * ---------------------------------------- */
@media (max-width: 1200px) {
    .hitosagashi {
        --hs-hero-min-h: 540px;
        --hs-chara-w: 340px;
    }
    .hitosagashi .hitosagashi-section__lead {
        font-size: 16px;
        line-height: 27px;
    }
    .hitosagashi .hitosagashi-card__text {
        font-size: 15px;
    }
    .hitosagashi .hitosagashi-hero__title {
        font-size: 40px;
    }
    .hitosagashi .hitosagashi-cta__title {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .hitosagashi {
        --hs-hero-min-h: 0;
        --hs-hero-visual-w: 34%;
        --hs-chara-w: 280px;
    }
    .hitosagashi .hitosagashi-btn {
        min-width: 260px;
        font-size: 19px;
    }
    .hitosagashi .hitosagashi-btn--hero {
        width: 380px;
        padding: 14px 24px 14px 36px;
        font-size: 23px;
    }
    .hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__sub {
        font-size: 12px;
    }
    .hitosagashi .hitosagashi-hero__title {
        font-size: 34px;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__item {
        width: 108px;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__icon {
        width: 34px;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__label {
        font-size: 12px;
    }
    .hitosagashi .hitosagashi-worry__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* 流れもお悩みと同じく2列。矢印は1→2・3→4の横向きだけ残し、段が変わる2→3は消す */
    .hitosagashi .hitosagashi-flow__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 32px;              /* 横のすき間はPCと同じ32pxにして矢印を中央に。縦はSTEPの丸のはみ出し分を空ける */
    }
    .hitosagashi .hitosagashi-step:nth-child(2)::after {
        content: none;
    }
    /* 2→3は一覧の中央（行・列のすき間が交わる所）に左下向きの矢印を置く */
    .hitosagashi .hitosagashi-flow__list {
        position: relative;
    }
    .hitosagashi .hitosagashi-flow__list::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        border-top: 9px solid transparent;
        border-right: 12px solid var(--spima-teal, #008AA3);
        border-bottom: 9px solid transparent;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    /* 見出しの中央揃えはPC（4列）だけ */
    .hitosagashi .hitosagashi-worry .hitosagashi-card__title {
        text-align: left;
    }
    .hitosagashi .hitosagashi-card__title {
        font-size: 18px;
    }
    .hitosagashi .hitosagashi-cta__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "btn"
            "features";
        justify-items: center;
        text-align: center;
    }
    /* CTAの特徴：2列・アイコンとテキストを横並び、列ごとに左端をそろえる */
    .hitosagashi .hitosagashi-features--cta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 24px;
        width: 100%;
        max-width: 520px;
    }
    .hitosagashi .hitosagashi-features--cta .hitosagashi-features__item {
        justify-content: flex-start;    /* 各列でアイコンの左端をそろえる */
        gap: 8px;
    }
    .hitosagashi .hitosagashi-features--cta .hitosagashi-features__label {
        text-align: left;
    }
    /* 992px以上だけの改行（CTA「24時間・年中無休で／ご相談を…」） */
    br.hitosagashi-br-lg {
        display: none;
    }
}

@media (max-width: 767px) {
    .hitosagashi .hitosagashi-worry,
    .hitosagashi .hitosagashi-reason {
        padding: 48px 0;
    }
    .hitosagashi .hitosagashi-flow {
        padding: 48px 0 60px;
    }
    br.hitosagashi-br-pc {
        display: none;
    }
    /* 本文は改行がなくなるので、行ごとの帯をやめて普通の段落に */
    .hitosagashi .hitosagashi-hero__lead-line {
        display: inline;
        margin: 0;
        padding: 0;
        background: none;
    }
    .hitosagashi .hitosagashi-btn {
        min-width: 230px;
        padding: 10px 24px;
        font-size: 16px;
    }
    .hitosagashi .hitosagashi-btn--hero {
        width: 360px;
        padding: 12px 22px 12px 32px;
        font-size: 21px;
    }
    .hitosagashi .hitosagashi-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hitosagashi .hitosagashi-hero__content {
        padding-bottom: 0;
    }
    /* 1カラム時：白のかぶせを左から→上から全面にして、テキストを読めるようにする */
    .hitosagashi .hitosagashi-hero::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 0.4) 100%);
    }
    /* ねこまむし（左）と吹き出し（右）を横並び */
    .hitosagashi .hitosagashi-hero__visual {
        display: flex;
        align-items: center;
        gap: 24px;
        padding-top: 16px;
    }
    .hitosagashi .hitosagashi-hero__chara {
        flex-shrink: 0;
        width: 46%;
        max-width: 260px;
        margin: 0;
    }
    .hitosagashi .hitosagashi-hero__balloon {
        position: relative;
        top: auto;
        right: auto;
        order: 2;
        width: auto;
        padding: 12px 20px 12px 24px;
        font-size: 15px;
        line-height: 1.6;
    }
    /* しっぽ：吹き出しの左の角から、ねこまむしの方へ */
    .hitosagashi .hitosagashi-hero__balloon::before {
        top: 50%;
        left: -14px;
        transform: translateY(-50%);
        width: 0;
        border-top: 8px solid transparent;
        border-right: 18px solid #fff;
        border-bottom: 8px solid transparent;
        border-left: 0;
    }
    .hitosagashi .hitosagashi-reason__list {
        grid-template-columns: minmax(0, 1fr);
    }
    .hitosagashi .hitosagashi-cta__title {
        font-size: 30px;
    }
}

@media screen and (max-width: 600px) {
    /* 流れ：縦並び・矢印は下向き */
    .hitosagashi .hitosagashi-flow__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .hitosagashi .hitosagashi-step:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -27px;
        left: 50%;
        border-top: 12px solid var(--spima-teal, #008AA3);
        border-right: 9px solid transparent;
        border-bottom: 0;
        border-left: 9px solid transparent;
        transform: translateX(-50%);
    }
    .hitosagashi .hitosagashi-step:nth-child(2)::after {
        content: "";
    }
    .hitosagashi .hitosagashi-flow__list::after {
        content: none;
    }
    .hitosagashi .hitosagashi-worry,
    .hitosagashi .hitosagashi-reason {
        padding: 40px 0;
    }
    .hitosagashi .hitosagashi-flow {
        padding: 40px 0 48px;
    }
    .hitosagashi {
        --hs-cta-overlay: rgba(0, 30, 70, 0.6);
    }
    .hitosagashi .hitosagashi-section__lead {
        margin-top: -10px;
        font-size: 14px;
        line-height: 22px;
        text-align: left;
    }
    .hitosagashi .hitosagashi-heading {
        margin-bottom: 24px;
    }
    .hitosagashi .hitosagashi-hero__catch {
        font-size: 14px;
    }
    .hitosagashi .hitosagashi-hero__title {
        font-size: 26px;
    }
    .hitosagashi .hitosagashi-hero__lead {
        font-size: 14px;
    }
    .hitosagashi .hitosagashi-features--hero {
        gap: 8px;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__item {
        width: calc((100% - 24px) / 4);
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__icon {
        width: 26%;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__label {
        margin-top: 3px;
        font-size: 10px;
    }
    .hitosagashi .hitosagashi-btn--hero {
        width: 100%;
        max-width: 340px;
        padding: 10px 18px 10px 24px;
        font-size: 18px;
    }
    .hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__main {
        gap: 8px;
    }
    .hitosagashi .hitosagashi-btn--hero .hitosagashi-btn__sub {
        font-size: 10px;
    }
    /* お悩み・流れ：1カラム、イラスト左・テキスト右 */
    .hitosagashi .hitosagashi-worry__list {
        grid-template-columns: minmax(0, 1fr);
    }
    .hitosagashi .hitosagashi-worry .hitosagashi-card,
    .hitosagashi .hitosagashi-flow .hitosagashi-card {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        padding: 16px;
    }
    .hitosagashi .hitosagashi-worry .hitosagashi-card__img,
    .hitosagashi .hitosagashi-flow .hitosagashi-card__img {
        height: auto;
    }
    .hitosagashi .hitosagashi-worry .hitosagashi-card__title,
    .hitosagashi .hitosagashi-flow .hitosagashi-card__title {
        margin-top: 0;
    }
    /* イラスト左・テキスト右の並びでは見出しを本文と同じ左揃えに戻す */
    .hitosagashi .hitosagashi-flow .hitosagashi-card__title {
        text-align: left;
    }
    .hitosagashi .hitosagashi-num {
        top: 10px;
        left: 10px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .hitosagashi .hitosagashi-flow .hitosagashi-num {
        top: -10px;
        right: 13px;
        left: auto;
        width: 50px;
        height: 50px;
    }
    .hitosagashi .hitosagashi-num__step {
        font-size: 9px;
    }
    .hitosagashi .hitosagashi-num__no {
        font-size: 20px;
    }
    .hitosagashi .hitosagashi-card__title {
        font-size: 17px;
    }
    .hitosagashi .hitosagashi-card__text {
        font-size: 14px;
        line-height: 1.7;
    }
    .hitosagashi .hitosagashi-cta {
        padding: 32px 0;
        background-image: url(../hitosagashi/hitosagashi-footer-bg_sp.jpg);
    }
    .hitosagashi .hitosagashi-cta__title {
        font-size: 24px;
    }
    .hitosagashi .hitosagashi-features--cta {
        gap: 16px 12px;
    }
    .hitosagashi .hitosagashi-features--cta .hitosagashi-features__icon {
        width: 44px;
    }
    .hitosagashi .hitosagashi-features--cta .hitosagashi-features__label {
        font-size: 13px;
    }

    /* ------------------------------------------
     * Hero（SP）：写真の上にキャッチ・見出し・ねこまむし＋吹き出し、
     * 写真の下の白地に本文・特徴・ボタン（画面幅いっぱい）
     * section を grid にし、inner / content を display: contents で中身を直接並べる
     * ---------------------------------------- */
    .hitosagashi .hitosagashi-hero {
        display: grid;
        grid-template-columns: 16px minmax(0, 1fr) 16px;
    }
    .hitosagashi .hitosagashi-hero__inner,
    .hitosagashi .hitosagashi-hero__content {
        display: contents;
    }
    /* 写真とかぶせは1〜3段目（キャッチ・見出し・ねこまむし）の後ろだけ */
    .hitosagashi .hitosagashi-hero__bg,
    .hitosagashi .hitosagashi-hero::before {
        position: static;
        grid-column: 1 / -1;
        grid-row: 1 / 4;
    }
    .hitosagashi .hitosagashi-hero__bg {
        display: block;
    }
    .hitosagashi .hitosagashi-hero::before {
        background: rgba(255, 255, 255, 0.35);
    }
    .hitosagashi .hitosagashi-hero__catch {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        margin-top: 20px;
    }
    .hitosagashi .hitosagashi-hero__title {
        grid-column: 2;
        grid-row: 2;
        margin: 16px 0 0;
        line-height: 1.3;
    }
    .hitosagashi .hitosagashi-hero__title-line {
        padding: 4px 8px;
    }
    .hitosagashi .hitosagashi-hero__visual {
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        padding-top: 8px;
    }
    .hitosagashi .hitosagashi-hero__lead {
        grid-column: 2;
        grid-row: 4;
        margin-top: 20px;
    }
    /* 特徴：丸をやめて2列、小さいアイコン＋1行の文字 */
    .hitosagashi .hitosagashi-features--hero {
        display: grid;
        grid-column: 2;
        grid-row: 5;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        margin-top: 20px;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        aspect-ratio: auto;
        border-radius: 0;
        background: none;
        box-shadow: none;
        text-align: left;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__icon {
        width: 26px;
        max-width: none;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__label {
        margin-top: 0;
        color: var(--text-color, #464646);
        font-size: 14px;
        text-shadow: none;
    }
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__label br {
        display: none;
    }
    /* 「経験豊富な／調査員が対応」だけはSPでも改行 */
    .hitosagashi .hitosagashi-features--hero .hitosagashi-features__label br.hitosagashi-br-keep {
        display: inline;
    }
    .hitosagashi .hitosagashi-features--hero small {
        font-size: inherit;
    }
    /* ボタン：画面の端から端・角なし */
    .hitosagashi .hitosagashi-hero__action {
        grid-column: 1 / -1;
        grid-row: 6;
        margin-top: 24px;
    }
    .hitosagashi .hitosagashi-btn--hero {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 14px 24px 14px 32px;
        border-radius: 0;
    }
}
