/* 特集記事(features/*.html)共通スタイル。app.css の変数・部品を前提とする。 */

/* 裁ち落とし(100vw)ヒーローがスクロールバー幅ぶん横スクロールを生むのを防ぐ
   iOS Safariはbodyだけのoverflow-x:hiddenではdocumentの横スクロールを止められないためhtmlにも指定する */
html, body { overflow-x: hidden; }

.feature-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.6rem 1.2rem 4rem;
    font-family: 'Noto Serif JP', serif;
    line-height: 1.95;
}

/* 裁ち落としヒーロー: 画面幅いっぱいの画像の上にタイトルを重ねる
   <header class="fx-hero-bleed">
     <img class="fx-hero-img" src="…" alt="">
     <div class="fx-hero-overlay">
       <span class="fx-kicker">特集</span><h1>…</h1><p class="fx-lead">…</p>
     </div>
   </header> */
.fx-hero-bleed {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: clamp(320px, 52vw, 460px);
    margin-bottom: 2.4rem;
    overflow: hidden;
}
.fx-hero-bleed .fx-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}
/* フィルムストリップ型バリアント: 縦長写真を年代順の縦帯パネルとして並べる
   <header class="fx-hero-bleed fx-hero-bleed--strip">
     <div class="fx-strip-panel"><img src="…" alt="…"><span class="fx-strip-year">1928</span></div>
     ×枚数ぶん + fx-hero-credit + fx-hero-overlay */
.fx-hero-bleed--strip {
    display: flex;
    background: #14100a;
}
.fx-hero-bleed--strip .fx-strip-panel {
    flex: 1 1 0;
    position: relative;
    overflow: hidden;
}
.fx-hero-bleed--strip .fx-strip-panel + .fx-strip-panel {
    border-left: 2px solid rgba(20, 16, 10, 0.9);
}
.fx-hero-bleed--strip .fx-strip-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.02);
}
.fx-hero-bleed--strip .fx-strip-year {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: rgba(253, 250, 244, 0.7);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    z-index: 1;
}
/* モバイルでは4枚は窮屈なので2枚(2・4枚目)に減らす */
@media (max-width: 600px) {
    .fx-hero-bleed--strip .fx-strip-panel:nth-child(odd) { display: none; }
}
.fx-hero-bleed .fx-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 1.6rem 1.2rem 2rem;
    background: linear-gradient(180deg,
        rgba(20, 16, 10, 0.35) 0%,
        rgba(20, 16, 10, 0) 18%,
        rgba(20, 16, 10, 0) 35%,
        rgba(20, 16, 10, 0.55) 72%,
        rgba(20, 16, 10, 0.78) 100%);
}
/* 「特集」キッカーは写真上部の中央に置く */
.fx-hero-bleed .fx-kicker {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    color: #f3ead9;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.fx-hero-bleed h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fdfaf4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    margin: 0 0 0.7rem;
}
.fx-hero-bleed .fx-lead {
    color: rgba(253, 250, 244, 0.88);
    font-size: 0.98rem;
    max-width: 36em;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.fx-hero-credit {
    position: absolute;
    right: 0.8rem;
    top: 0.6rem;
    font-size: 0.68rem;
    color: rgba(253, 250, 244, 0.65);
}

/* パンくず行: 「ホーム › 特集 › 記事名」の反対側(右端)にお気に入りボタンを置く */
.fx-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}
.fx-breadcrumb-row .breadcrumb { margin-bottom: 0; flex: 1; min-width: 0; }
.fx-breadcrumb-row .fav-btn { width: 30px; height: 30px; font-size: 1rem; flex-shrink: 0; }

/* ヒーロー: タイトル・リード・任意の肖像 */
.fx-hero {
    text-align: center;
    padding: 2.2rem 0 1.6rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.4rem;
}
.fx-hero .fx-kicker {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}
.fx-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 1.1rem;
}
.fx-hero .fx-portrait {
    width: 150px;
    height: 190px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    border: 3px solid var(--card-bg);
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
}
.fx-lead {
    color: var(--text-sub);
    font-size: 1.02rem;
    max-width: 34em;
    margin: 0 auto;
}

/* 本文セクション */
.fx-section { margin-bottom: 2.8rem; }
.fx-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-left: 4px solid var(--accent-color);
    padding-left: 0.7rem;
    margin: 0 0 1.1rem;
}
.fx-section p { margin: 0 0 1.1em; }

/* 年表: <dl class="fx-timeline"><dt>1867</dt><dd>誕生</dd>…</dl> */
.fx-timeline {
    margin: 0;
    border-left: 2px solid var(--border-color);
    padding-left: 1.4rem;
}
.fx-timeline dt {
    position: relative;
    font-weight: 600;
    color: var(--accent-dark);
    font-size: 0.95rem;
    margin-top: 1rem;
}
.fx-timeline dt::before {
    content: '';
    position: absolute;
    left: calc(-1.4rem - 6px);
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--bg-color);
}
.fx-timeline dt:first-child { margin-top: 0; }
.fx-timeline dd { margin: 0.15rem 0 0; color: var(--text-color); }

/* 引用: <blockquote class="fx-quote"><p>…</p><cite>『草枕』</cite></blockquote> */
.fx-quote {
    margin: 2rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--bg-deep);
    border-radius: var(--radius);
    font-size: 1.05rem;
}
.fx-quote p { margin: 0; }
.fx-quote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 0.6rem;
}

/* 画像: <figure class="fx-figure"><img …><figcaption>…</figcaption></figure> */
.fx-figure { margin: 1.6rem 0; text-align: center; }
.fx-figure img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.fx-figure figcaption {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-top: 0.5rem;
}

/* 作家ページへのリンクカード (.fx-author-link を feature.js が描画) */
.fx-author-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.3rem;
    margin: 0 0 2.4rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.fx-author-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.fx-author-card .fac-img {
    width: 68px;
    height: 86px;
    object-fit: cover;
    object-position: top center;
    border-radius: 2px;
    flex-shrink: 0;
}
.fx-author-card .fac-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.fx-author-card .fac-meta {
    font-family: sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-left: 0.4rem;
}
.fx-author-card .fac-bio {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*
    font-family: sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
    -webkit-line-clamp: 2; 
    color: var(--text-sub);
    margin: 0 0 0.4rem;
    */
}

/* fx-books / fx-book / fx-authors (feature.js が描画) の入れ物調整 */
.fx-books .card-grid.shelf { margin-top: 0.4rem; }
.fx-books .note,
.fx-authors .note {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin: 0 0 0.8rem;
}
.fx-authors .portrait-strip { margin-top: 0.4rem; }
.fx-book-single { margin: 1.2rem 0; }
