/* ==========================================================================
   hero-feature.css — 特集型ヒーロー（写真を大きく使う型）
   --------------------------------------------------------------------------
   ・連載「どこにでもある、を宝にする旅」のハブと各回で使う（2026-10-26 新設）
   ・標準ヒーロー（hero.css の .hero--l1〜l4）は変えない。hero.css の後に読み込む:
       <link rel="stylesheet" href="/assets/css/hero.css?v=20260926">
       <link rel="stylesheet" href="/assets/css/hero-feature.css?v=YYYYMMDD">
   ・外枠は hero.css の写真ヒーロー用クラス（hero-frame-only ＋ hero-frame-only--inset）を併用する
   ・新しい色は作らない。写真＋黒の半透明の重ね（下側を濃く）＋白文字。緑は .hero-chip と外枠だけ
   ・黒の重ねは写真全体ではなく、文字のある左〜下側だけ（::before に、左→右と下→上の2本の線形を重ねる。2026-10-27）。
     写真の主役（右上側）は暗くしない。文字のコントラストは、実際の写真で文字の下の最も明るい箇所を測って確認する
     （報告書 20261027_series-hero-tune-report.txt）。文字には黒の薄い影も付ける
   ・写真は背景画像ではなく <img>（リンク切れチェック lychee が src を調べられるように）
   ・日付は <div class="hero-meta"> に入れる（check-reprint-sources.py が掲載日として除外する）

   組み方
     <section id="hero" class="hero-feature hero-frame-only hero-frame-only--inset">
       <img class="hero-feature__img" src="…1600.jpg" srcset="…-800.jpg 800w, ….jpg 1600w" sizes="100vw"
            alt="…" loading="eager" fetchpriority="high" decoding="async">
       <div class="hero-feature__body">
         <a class="hero-chip" href="/…/">…</a>
         <p class="hero-feature__kicker">第1回</p>
         <h1 class="hero-title">…</h1>
         <p class="hero-lead">…</p>
         <div class="hero-meta">…</div>
       </div>
     </section>
   ========================================================================== */

.hero-feature {
    position: relative;
    display: flex;
    align-items: flex-end;           /* 文字は写真の下側に置く */
    min-height: 75vh;                /* スマホは画面の約4分の3 */
    background: #d1d5db;             /* 写真の読み込み前・写真が無いとき（gray-300） */
    color: #fff;
}
@media (min-width: 768px) {
    .hero-feature { min-height: clamp(32rem, 75vh, 40rem); }   /* PC は最大 40rem */
}

/* 写真：枠いっぱいに敷く（見せる位置は各ページの img の object-position で調整） */
.hero-feature__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 黒の重ね：文字のある左〜下側だけ濃く、写真の主役（右上側）は暗くしない（2026-10-27 調整）
   左→右：左端 55% → 70% の位置で 0／下→上：下端 72% → 高さ 70% の位置で 0。上部には何もかけない（霧の帯が出ない） */
.hero-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(to top,   rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 35%, rgba(0, 0, 0, 0) 70%);
}

/* スマホ・タブレット（1199px 以下）：文字が見出し写真の下6割ほど・横幅いっぱいに広がるため、
   下からの重ねを上へ長く伸ばす。上の約15%（写真の主役の頭の部分）には何もかけない。
   1200px 以上だけ、文字が左に収まるので「左〜下側だけ」の重ねにする（実測で確認。報告書参照） */
@media (max-width: 1199px) {
    .hero-feature::before {
        background:
            linear-gradient(to right, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 80%),
            linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .62) 45%, rgba(0, 0, 0, .5) 62%, rgba(0, 0, 0, 0) 85%);
    }
}

/* 文字の置き場所（重ねの上） */
.hero-feature__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 6rem var(--hero-pad-x) 2rem;
}
@media (min-width: 768px) {
    .hero-feature__body { padding: 8rem var(--hero-pad-x-md) 2.5rem; }
}
/* 文字の黒の薄い影（明るい写真の上でも輪郭が残るように） */
.hero-feature__body p,
.hero-feature__body .hero-meta { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* 「第1回」などの小見出し */
.hero-feature__kicker {
    margin: 0 0 .5rem;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .1em;
}

/* 中の部品（hero.css の部品を白文字の地に合わせる） */
.hero-feature .hero-chip { background: var(--hero-frame); }   /* 緑・白文字 5.02:1 */
.hero-feature .hero-title {
    margin-bottom: 1rem;
    font-size: clamp(2.125rem, 8vw, 4rem);   /* スマホ約34px → PC 64px */
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .02em;
    text-wrap: balance;                       /* 行の長さをそろえる（対応ブラウザのみ） */
    font-feature-settings: "palt";            /* 和文の字間を詰める（プロポーショナル） */
    text-spacing-trim: space-first;           /* 読点などの余白を詰める（非対応のブラウザでは無視され、崩れない） */
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.hero-feature .hero-lead { color: #fff; }
.hero-feature .hero-meta { margin: 1rem 0 0; color: #fff; }
.hero-feature .hero-meta .hero-meta-date { color: #fff; }
.hero-feature .hero-meta a { color: #fff; }

/* ===== 強化（2026-10-26 追記）：見出しの改行・場所のチップ・回の番号・副題・走行ログ ===== */

/* 見出しの意味の切れ目の改行。とても狭い画面でも改行は残す（行の中は text-wrap で整える） */
.hero-feature__br { display: inline; }

/* チップを横に並べる行（連載名のチップ＋場所のチップ） */
.hero-feature__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.hero-feature__chips .hero-chip { margin-bottom: 0; }

/* 場所のチップ（黒の半透明＋白の細枠＋白文字。新しい色は作らない） */
.hero-feature__place {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .75rem;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 9999px;
    background: rgba(0, 0, 0, .35);
    font-size: .8125rem;
    font-weight: 700;
    color: #fff;
}
.hero-feature__place svg { width: 1rem; height: 1rem; }

/* 回の番号（「第 1 回」の数字だけ大きく） */
.hero-feature__kicker { display: flex; align-items: baseline; gap: .25rem; }
.hero-feature__num {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* 副題（ハブ） */
.hero-feature__sub {
    margin: 0 0 .75rem;
    font-size: clamp(1.0625rem, 3.6vw, 1.5rem);
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

/* 走行ログ（ヒーロー直下の1行。白地・緑枠・濃緑文字＝ hero.css の .hero-jump と同じ配色） */
.hero-feature-log {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem .5rem;
    margin: 0;
    padding: .625rem 1rem;
    border: 1px solid var(--hero-frame);
    border-radius: var(--hero-radius);
    background: #fff;
    color: var(--hero-deep);
    font-size: .9375rem;
    font-weight: 600;
}
.hero-feature-log svg { width: 1.125rem; height: 1.125rem; flex: none; }
.hero-feature-log a { color: var(--hero-deep); text-decoration: underline; text-underline-offset: 3px; }
.hero-feature-log__sep { color: var(--hero-frame); }

/* ===== 調整（2026-10-27 追記）：句の単位の折り返し ===== */
/* 句ごとに inline-block で包み、句の切れ目で折り返す（1句が画面より長いときだけ句の中で折り返す＝横はみ出ししない） */
.hero-feature__phrase { display: inline-block; }
.hero-feature .hero-lead { text-wrap: balance; }
