/* =========================================================
   トップページ専用スタイル（ヒーロー・コンセプト等）
   common.css の後に読み込んでください
   ========================================================= */

    /* ---- ヒーロー（初回提供デザインを踏襲） ---- */
    .hero {
        margin-top: 72px;
        height: 75vh; min-height: 650px;
        position: relative; background: #fff; overflow: hidden;
    }
    .hero-img {
        position: absolute; inset: 0; z-index: 1; overflow: hidden;
    }
    .hero-img picture { display: block; width: 100%; height: 100%; }
    /* ▼仮画像。実際の物件写真（できるだけ高解像度のもの）に差し替えてください */
    .hero-img img {
        width: 100%; height: 100%; object-fit: cover; object-position: center right;
        display: block;
    }
    .hero-overlay {
        position: absolute; top: 0; left: 0; width: 75%; height: 100%; z-index: 2;
        background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255,255,255,.85) 65%, rgba(255,255,255,0) 100%);
    }
    .hero-curve-bottom {
        position: absolute; bottom: -2px; left: 0; width: 100%; height: 220px; z-index: 3; pointer-events: none;
    }
    .hero-curve-bottom svg { width: 100%; height: 100%; display: block; }
    .hero-content {
        position: relative; z-index: 4; width: 100%; max-width: 1100px; margin: 0 auto;
        padding: 0 24px; height: 100%; display: flex; align-items: center;
    }
    .hero-text-box { max-width: 560px; padding-top: 40px; }
    .hero-catch {
        font-size: 24px; font-weight: bold; color: var(--corporate-color); margin-bottom: 15px;
        font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
        font-style: italic; line-height: 1.6;
    }
    .hero-catch .marker {
        background: linear-gradient(transparent 60%, #FFD700 60%);
        padding: 0 5px; display: inline-block;
    }
    .hero-title { font-size: 37px; font-weight: 900; line-height: 1.4; margin-bottom: 20px; word-break: keep-all; overflow-wrap: break-word; }
    /* 見出しは2つの塊（「大阪市住吉区の賃貸マンション」「「パオ」シリーズ」）に分けてある。
       inline-block にすると塊の中では改行されず、入らないときだけ塊の切れ目で折り返す。
       これをしないと、狭い画面で「…賃貸マンショ／ン」のように語の途中で切れる（2026-10-10） */
    .hero-title span { display: inline-block; }
    .hero-desc { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 28px; }
    .hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
    .hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
    .btn-icon-left { margin-right: 6px; }
    .btn-icon-right { margin-left: 10px; }

    /* ---- コンセプト（画像併置） ---- */
    .about-grid {
        display: grid;
        grid-template-columns: .9fr 1.1fr;
        grid-template-areas: "head img" "text img";
        column-gap: 56px;
    }
    .about-head { grid-area: head; }
    .about-text { grid-area: text; }
    .about-img  { grid-area: img; }
    .about-gallery { display: none; }
    .about-img { flex: 1.1; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
    .about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .reason-num { font-size: 12px; font-weight: 900; color: var(--accent-color); letter-spacing: .1em; display: block; margin-bottom: 8px; }

    /* 金額のボックス（.price-row / .price-box）は、concept.html でも使うため
       assets/common.css へ移しました */

    .flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .flow-step { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); }
    .flow-step .no { display: inline-block; width: 38px; height: 38px; line-height: 38px; border-radius: 50%;
                     background: var(--corporate-color); color: #fff; font-weight: 900; margin-bottom: 12px; }
    .flow-step h3 { font-size: 15.5px; margin-bottom: 8px; }
    .flow-step p { font-size: 13px; color: var(--text-light); }

    /* 緑の帯（.uni-band）は concept.html でも使うため assets/common.css へ移しました */

    @media (max-width: 900px) {
        .about-grid {
            grid-template-columns: 1fr;
            grid-template-areas: "head" "img" "text" "gallery";
            row-gap: 24px; column-gap: 0;
        }
        /* スマホでは他セクションの見出しに合わせて中央寄せにする */
        .about-head { text-align: center; }
        .about-head .eyebrow { text-align: center; }
        .about-head .about-title { margin-bottom: 0; }
        .flow-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
        .hero { height: auto; min-height: 0; padding: 48px 0 130px; }
        /* 白のかぶせを弱め、背景写真が見えるようにする */
        .hero-overlay {
            width: 100%;
            background: linear-gradient(180deg,
                rgba(255,255,255,.90) 0%,
                rgba(255,255,255,.82) 42%,
                rgba(255,255,255,.55) 66%,
                rgba(255,255,255,.12) 87%,
                rgba(255,255,255,0) 100%);
        }
        .hero-img img { object-position: center 35%; }
        /* 白のかぶせを薄くしたぶん、文字色を濃くして可読性を確保 */
        .hero-desc { color: var(--text-main); }
        .hero-note { color: var(--text-main); }
        .hero-content { padding-top: 0; }
        /* テキスト枠を画面幅いっぱいに広げ、左右の余白を均等にする */
        .hero-text-box { padding-top: 0; width: 100%; }
        /* 見出しが画面幅を超えるとテキスト枠がはみ出し、左右の余白が不揃いになるため、
           画面幅に応じて文字サイズを可変にする */
        /* 2026-10-10 下限と係数を下げた（20px→18px、7vw→5.7vw）。
           7vw のままだと 375px 幅で 26.25px になり、「大阪市住吉区の賃貸マンション」が
           枠（327px）に収まらず、語の途中で「…賃貸マンシ／ョン」と切れていた。
           枠は「画面幅 − 48px」。14文字がそこに収まる上限は 5.7vw ほど。
           5.9vw だと 340px 以下の端末でわずかにはみ出したので 5.7vw にした */
        .hero-title { font-size: clamp(18px, 5.7vw, 28px); }
        .hero-catch { font-size: 20px; }
        .hero-curve-bottom { height: 80px; }
    }
    @media (max-width: 520px) {
        .flow-grid { grid-template-columns: 1fr; }
    }

.about-title { font-size: 27px; line-height: 1.5; margin-bottom: 22px; }

/* ---- 新着お知らせ（TOPのみ・余白を詰めてスクロール量を削減） ---- */
.section--news { padding: 40px 0 36px; }
.section--news .section-title { margin-bottom: 18px; }
.section--news .news-list li { padding: 12px 4px; }
.section--news .mt-24 { margin-top: 16px; }

@media (max-width: 600px) {
    .section--news { padding: 32px 0 28px; }
    .section--news .news-list li { padding: 11px 4px; }
}

/* ---- ヒーローのタグと注釈（注釈はタグ幅の右端に揃える） ---- */
.hero-points-wrap { display: inline-block; margin-bottom: 28px; }
.hero-points-wrap .hero-points { margin-bottom: 6px; }
.hero-note {
    text-align: right; font-size: 11px; line-height: 1.5;
    color: var(--text-light); margin: 0 0 0 auto; width: fit-content;
}
/* 画面が狭いときは「全館」「インター」を省いてタグを1行に収める */
.tag-wide { display: inline; }
@media (max-width: 480px) {
    .tag-wide { display: none; }
}

/* ---- スマホ：ヒーローのボタンを横並びにする ---- */
/* 360px以上〜600px以下のみ横並び。359px以下は縦積みのまま */
@media (min-width: 360px) and (max-width: 600px) {
    .hero-buttons { flex-wrap: nowrap; align-items: stretch; }
    .hero-buttons .btn {
        width: auto; flex: 1 1 auto;
        padding-left: 14px; padding-right: 14px;
        display: inline-flex; align-items: center; justify-content: center;
        white-space: nowrap;
    }
}

/* 特に狭い端末（360〜389px）では、ボタンの余白と間隔をさらに詰めて枠内に収める */
@media (min-width: 360px) and (max-width: 389px) {
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { padding-left: 10px; padding-right: 10px; }
}

/* ---- CONCEPT：スマホでの写真表示 ---- */
/* 見出しの下に大きい写真1枚、ボタンの下に4枚（2×2）。PCでは4枚は非表示 */
@media (max-width: 900px) {
    .about-img { height: 220px; }
    .about-gallery {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        margin-top: 24px;   /* row-gap 24px と合わせてボタンとの間隔を 48px にする */
    }
    .about-gallery img {
        width: 100%; height: 130px; object-fit: cover; display: block;
        border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.06);
    }
}

/* ---- 新着お知らせ：スマホでは3件までに絞る ---- */
@media (max-width: 600px) {
    .section--news .news-list li:nth-child(n+4) { display: none; }
}

/* 「選ばれる6つの理由」のカード内の写真（.reason-photo）と行揃え（.reason-grid）は、
   concept.html でも使うため assets/common.css へ移しました */

/* ---- ターゲット別の入口（ヒーロー直下） ---- */
.section--audience { padding: 44px 0 40px; }
.audience-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.audience-card {
    display: block; height: 100%;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    color: var(--text-main); transition: .25s;
}
.audience-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.07); transform: translateY(-3px); }
.audience-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.audience-body { display: block; padding: 18px 20px 20px; }
.audience-title {
    display: block; font-size: 18px; font-weight: bold;
    color: var(--corporate-color); margin-bottom: 8px; line-height: 1.5;
}
.audience-desc { display: block; font-size: 13.5px; color: var(--text-light); line-height: 1.75; }
/* 入口カードの箇条書き（2026-09-09 パオ様のご指示で「ひとり暮らしの方へ」に追加） */
.audience-list { display: block; margin: 0 0 8px; }
.audience-list span { display: block; padding-left: 1em; text-indent: -1em; }
.audience-list span::before { content: "・"; }
.audience-link {
    display: block; margin-top: 12px; font-size: 13px; font-weight: bold;
    color: var(--corporate-color);
}
.audience-link::after { content: "  →"; }

/* スマホは横3列のままコンパクトに表示（説明文は省略） */
@media (max-width: 600px) {
    .section--audience { padding: 28px 0 24px; }
    .audience-grid { gap: 8px; }
    .audience-card { border-radius: 10px; }
    .audience-card img { height: 74px; }
    .audience-body { padding: 8px 6px 10px; text-align: center; }
    .audience-title { font-size: 12.5px; margin-bottom: 0; letter-spacing: -.02em; }
    .audience-title-sub { display: none; }
    .audience-desc, .audience-link { display: none; }
}

/* ==========================================================
   ご入居までの流れ（4ステップ）── index.html だけの見た目
   ・小さい STEP ラベル＋大きい番号（01〜04）で、番号を見出しにする
   ・円の中の線画アイコンで「何をする場面か」を読む前に伝える
   ・カードの間の ▶ で、4枚が並列ではなく順番であることを示す
   このファイルの前半（.flow-step .no の丸バッジ）を打ち消すため、
   width / height / background などを明示的に戻している。
   共通の assets/common.css は触らない（senior ほか6ページのLPに影響するため）
   ========================================================== */
.flow-grid { gap: 30px; margin-top: 40px; }
.flow-step { position: relative; padding: 26px 22px; }

/* STEP 01 ── 丸バッジをやめ、ラベル＋大きい番号にする */
.flow-step .no {
    display: flex; align-items: baseline; justify-content: center; gap: 9px;
    width: auto; height: auto; line-height: 1; border-radius: 0;
    background: none; color: var(--corporate-color);
    font-size: 31px; font-weight: 300; margin: 0 0 15px;
    font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.flow-step .no b {
    font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #8bb3b4;
}

/* 線画アイコンを入れる円 */
.flow-step .ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin: 0 0 16px;
    border: 1.5px solid #cfe3e3; border-radius: 50%;
}
.flow-step .ico svg {
    width: 28px; height: 28px;
    fill: none; stroke: var(--corporate-color);
    stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.flow-step h3 { font-size: 15.5px; margin-bottom: 9px; line-height: 1.55; }
.flow-step p  { font-size: 13px; line-height: 1.85; text-align: left; }

/* カードとカードをつなぐ ▶ */
.flow-step::after {
    content: ""; position: absolute; top: 50%; right: -20px;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 9px solid #b9d5d5;
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.flow-step:last-child::after { display: none; }

@media (max-width: 900px) {
    .flow-grid { gap: 20px; }
    .flow-step::after { display: none; }   /* 折り返すと矢印の向きが合わない */
}
@media (max-width: 520px) {
    .flow-step { padding: 22px 18px 20px; }
    .flow-step .no { font-size: 27px; }
    .flow-step .ico { width: 56px; height: 56px; }
}

/* ---- 新着お知らせ：読み込むまでのあいだ、高さを取っておく（2026-10-12） ----
   一覧は空で始まり、news-top.js が news.html から入れる。
   空のままだと、入った瞬間に下の内容がガクッと下がるので、そのぶんを先に空けておく。
   :empty のときだけ効くので、一覧が入ったあとの見た目は変わらない。
   高さは実測（パソコン 54px × 5件 ＝ 270px／スマホは3件で 156〜202px） */
#news-list-top:empty { min-height: 270px; }
@media (max-width: 600px) {
    #news-list-top:empty { min-height: 160px; }
}
/* 読めなかった／お知らせが0件のときは、空けた高さを外す（news-top.js が付ける） */
#news-list-top.is-none { min-height: 0; border-top: 0; }
