/* /assets/css/news-detail.css
   NEWS DETAIL Page Styles
   前提: base.css / layout.css 読み込み済み
*/

:root {
    --nd-max: 1120px;
    --nd-article: 860px;
    --nd-radius: 22px;
    --nd-radius2: 28px;
    --nd-border: rgba(0, 0, 0, .10);
    --nd-soft: rgba(0, 0, 0, .06);
}

/* =========================
   Layout helpers
========================= */
.ndWrap {
    max-width: var(--nd-max);
    margin: 0 auto;
    padding: 0 20px;
}

.ndTopSpace {
    padding-top: 26px;
    padding-bottom: 18px;
}

/* =========================
   HERO (軽量・読みやすく)
========================= */
.hero[aria-label="News Detail Hero"],
.hero.ndHero {
    margin-top: 18px;
}

.hero.ndHero .heroSlider {
    border-radius: var(--nd-radius2);
    overflow: hidden;
}

/* 黒ベタがデカすぎ問題を解消 */
.hero.ndHero .heroSlider {
    min-height: 320px;
}

@media (max-width: 840px) {
    .hero.ndHero .heroSlider {
        min-height: 260px;
    }
}

/* 画像の黒さが強い時でもテキストが読める */
.hero.ndHero .heroOverlay {
    background:
        radial-gradient(1200px 600px at 20% 70%, rgba(0, 0, 0, .50), rgba(0, 0, 0, .70)),
        linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .75));
}

/* Hero内テキスト */
.hero.ndHero .heroContent {
    max-width: var(--nd-max);
    margin: 0 auto;
    padding: 30px 24px;
}

.hero.ndHero .heroKicker {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .14em;
    font-weight: 900;
    text-transform: uppercase;
    opacity: .95;
}

.hero.ndHero .heroTitle {
    margin-top: 10px;
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -0.02em;
}

.hero.ndHero .heroDesc {
    margin-top: 10px;
    max-width: 56ch;
    font-size: 14.5px;
    line-height: 1.9;
    opacity: .90;
}

/* =========================
   Breadcrumb
========================= */
.ndBreadcrumb {
    max-width: var(--nd-max);
    margin: 0 auto;
    padding: 14px 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: .75;
}

.ndBreadcrumb a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.ndBreadcrumb a:hover {
    border-bottom-color: currentColor;
}

/* =========================
   Header meta area
========================= */
.ndHeader {
    max-width: var(--nd-max);
    margin: 0 auto;
    padding: 18px 20px 0;
}

.ndMetaRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ndCategoryPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--nd-border);
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    font-weight: 900;
    font-size: 12px;
}

.ndDate {
    font-size: 12px;
    opacity: .75;
    font-weight: 800;
}

/* タイトル */
.ndTitle {
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.08;
    font-weight: 1000;
    letter-spacing: -0.02em;
    margin: 10px 0 12px;
}

/* タグ */
.ndTags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.ndTag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--nd-border);
    background: rgba(255, 255, 255, .60);
    font-size: 12px;
    font-weight: 900;
    opacity: .92;
}

/* =========================
   Article card (読みやすさの核)
========================= */
.ndArticle {
    max-width: var(--nd-article);
    margin: 18px auto 0;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.ndArticleInner {
    padding: 26px 26px 18px;
}

@media (max-width: 640px) {
    .ndArticleInner {
        padding: 20px 18px 14px;
    }
}

/* 本文のタイポ */
.ndContent {
    font-size: 15px;
    line-height: 2.0;
    letter-spacing: .01em;
}

.ndContent p {
    margin: 0 0 1.05em;
}

.ndContent h2 {
    margin: 1.4em 0 .65em;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 1000;
}

.ndContent h3 {
    margin: 1.2em 0 .55em;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 1000;
    opacity: .95;
}

.ndContent ul {
    margin: .4em 0 1.2em 1.2em;
    padding: 0;
}

.ndContent li {
    margin: .35em 0;
}

/* 画像がある場合 */
.ndContent img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--nd-soft);
    margin: 14px 0 18px;
    display: block;
}

/* =========================
   Actions (ボタン整列)
========================= */
.ndActions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--nd-soft);
}

.ndBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid var(--nd-border);
    background: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-weight: 1000;
    font-size: 13px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ndBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .92);
}

.ndBtn.primary {
    background: rgba(255, 255, 255, .92);
}

/* =========================
   Prev / Next
========================= */
.ndPager {
    max-width: var(--nd-max);
    margin: 18px auto 0;
    padding: 0 20px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 780px) {
    .ndPager {
        grid-template-columns: 1fr;
    }
}

.ndNavCard {
    border: 1px solid var(--nd-border);
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(10px);
    border-radius: var(--nd-radius2);
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ndNavCard:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .90);
}

.ndNavKicker {
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 1000;
    opacity: .65;
}

.ndNavTitle {
    font-size: 14px;
    font-weight: 1000;
    line-height: 1.35;
}

/* =========================
   Minor fixes for existing markup
   (今のクラスが違っても影響少なめ)
========================= */

/* 画像の壊れアイコンが目立つ場合の保険 */
img {
    font-size: 12px;
}

/* ページ下の余白 */
body .ndBottomSpace {
    padding-bottom: 40px;
}