/**
 * WORKVOX PORTAL — portal.css (v0.69)
 *
 * 最終デザイン src/portal/index.html（2026-06-11 受領）に忠実に移植。
 *   - デザイントークン（:root 変数）／構造刷新（.entry-row / .news-zone）
 *   - NEWS詳細の上方展開（記事クリックで .news-detail が開く）を WP 化：
 *     CPT記事ごとに .news-detail を出し、JS が該当インデックスを is-active 化。
 *     v0.69：詳細パネルの中身は CPT メタ（press=_press_lead/_press_body/_press_image、
 *     event=_event_summary/開催情報/_event_image）から組み立てる。末尾に記事ページへの全文リンク。
 *
 * WP 統合のための差分（最終デザインからの意図的な逸脱）：
 *   - html, body, .page は body.is-portal でスコープ（他テンプレ無影響）
 *   - 最終デザインの `footer` は固有名 .wv-portal-footer に置換（テーマ <footer> 衝突回避）
 *   - 最終デザインの `.news-zone.is-open .news-detail` は per-item の
 *     `.news-detail.is-active` に置換（記事ごとに別パネルを開くため）
 *
 * 読み込みは functions.php で is_front_page() && !get_query_var('workvox_subsite') のみ。
 */

*, *::before, *::after { box-sizing: border-box; }

/* ── VARIABLES ── */
:root {
    --color-bg:    #f5f5f5;
    --color-fg:    #0a0a0a;
    --news-bar-h:  clamp(120px, 15vh, 148px);
    --margin:      3.75vw;
    --inner-w:     92.5vw;   /* 12 cols */
    --col-10:      76.875vw; /* 10 cols */
    --col-6:       45.625vw; /*  6 cols */
    --col-2:       14.375vw; /*  2 cols */
    --col-gap:     1.25vw;

    --font-ja:     'Zen Kaku Gothic New', sans-serif;
    --font-en:     'Helvetica Neue', Helvetica, Arial, sans-serif;

    --fs-display:  clamp(18px, 2.1875vw, 28px);
    --fs-heading:  clamp(13px, 1.40625vw, 20px);
    --fs-lead:     clamp(12px, 1.25vw, 18px);
    --fs-body:     clamp(11px, 1.09375vw, 14px);
    --fs-caption:  clamp(11px, 0.9375vw, 12px);
    --fs-label:    10px;

    --fw-regular:  400;
    --fw-medium:   500;
    --fw-bold:     700;

    --lh-tight:    1.0;
    --lh-base:     1.4;
    --lh-relaxed:  1.6;

    --ls-base:     0.02em;
    --ls-md:       0.04em;
    --ls-wide:     0.06em;
    --ls-wider:    0.1em;

    --opacity-muted:     0.35;
    --opacity-secondary: 0.5;
}

/* ── BASE（PORTAL のみ overflow を切る・他テンプレ無影響） ── */
html.is-portal,
body.is-portal {
    height: 100%;
    overflow: hidden;
}
body.is-portal {
    background: var(--color-bg);
    color: var(--color-fg);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}
/* PORTAL 内テキスト要素の素リセット（spec の margin:0 相当・スコープ限定） */
body.is-portal p,
body.is-portal h1,
body.is-portal h2,
body.is-portal h3,
body.is-portal ul,
body.is-portal dl,
body.is-portal dt,
body.is-portal dd,
body.is-portal figure,
body.is-portal figcaption { margin: 0; padding: 0; }

body.is-portal .page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ── LOGO ── */
.logo-wrap {
    position: absolute;
    top: 6%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 65vw;
    overflow: hidden; /* clip chars during enter animation */
    z-index: 10;
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.logo {
    display: block;
    width: 100%;
    height: auto;
    color: var(--color-fg);
}

/* ── HERO TEXT ── (logo height = 65vw × 172.939/1184 = 9.49vw) */
.hero {
    position: absolute;
    top: calc(6vh + 9.49vw + 40px);
    left: 50%;
    width: var(--col-10);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.hero-main {
    font-family: var(--font-ja);
    font-weight: var(--fw-medium);
    font-size: var(--fs-lead);
    line-height: var(--lh-relaxed);
}
.hero-sub {
    font-family: var(--font-en);
    font-weight: var(--fw-regular);
    font-size: var(--fs-caption);
    line-height: var(--lh-base);
    letter-spacing: var(--ls-base);
    opacity: var(--opacity-secondary);
}

/* ── ENTRY ROW (absolute, above news bar) ── */
.entry-row {
    position: absolute;
    bottom: calc(var(--news-bar-h) + 40px);
    left: var(--margin);
    width: var(--inner-w);
    display: flex;
    gap: var(--col-gap);
    z-index: 10;
}
.entry-panel { flex: 1; }
.entry-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--color-fg);
    padding: clamp(16px, 2.1875vw, 42px) clamp(14px, 1.875vw, 36px); /* Figma: 28px 24px */
    text-decoration: none;
    color: var(--color-bg);
    transition: opacity 0.7s ease;
}
.entry-card-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 1.875vw, 24px);
}
.entry-card-title {
    font-family: var(--font-ja);
    font-weight: var(--fw-bold);
    font-size: var(--fs-heading);
    line-height: var(--lh-tight);
    white-space: nowrap;
}
.entry-card-desc {
    font-family: var(--font-ja);
    font-weight: var(--fw-medium);
    font-size: var(--fs-caption);
    line-height: var(--lh-base);
    opacity: var(--opacity-secondary);
    white-space: nowrap;
    text-align: right;
}
.entry-card-arrow {
    flex-shrink: 0;
    width: clamp(9px, 0.9375vw, 18px); /* Figma: 12px @ 1280px */
    height: clamp(9px, 0.9375vw, 18px);
    animation: arrow-nudge 0.8s ease infinite;
}

/* ── ENTRY VIDEO BACKGROUNDS ── */
.entry-panel-video { display: none; }
.entry-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}
video.entry-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page.hover-left  .entry-video-left,
.page.hover-right .entry-video-right { opacity: 1; }

/* ── ENTRY HOVER: logo exits on card hover ── */
.page.hover-left  .logo-wrap,
.page.hover-right .logo-wrap {
    transform: translateY(-8vh);
    opacity: 0;
}

/* ── NEWS ZONE (bottom-anchored, expands upward) ── */
.news-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
    /* closing: delay bg until height collapses, shadow fades immediately */
    transition: background 0.3s ease 0.6s, box-shadow 0.6s ease;
}
.news-zone.is-open {
    background: var(--color-bg);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* ── NEWS BAR ── */
.news-bar {
    position: relative;
    display: flex;
    flex-direction: column;
}
.news-bar-body {
    min-height: var(--news-bar-h);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--margin);
    right: var(--margin);
    height: 0.5px;
    background: rgba(10, 10, 10, 0.2);
}

/* ── NEWS DETAIL (height 0 → expands upward when active) ── */
.news-detail {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-detail.is-active {
    height: calc(80vh - clamp(16px, 3.33vh, 28px) - 2em - clamp(8px, 0.9375vw, 12px) * 2);
}
.news-detail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}
.news-detail.is-active::after { opacity: 1; }
.news-detail::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--color-fg);
    border-bottom: 1px solid var(--color-fg);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease 0.3s;
}
.news-detail.is-active::before {
    opacity: 1;
    animation: scroll-hint 1.2s ease infinite;
}
@keyframes scroll-hint {
    0%, 100% { transform: translateX(-50%) translateY(0)   rotate(45deg); }
    50%      { transform: translateX(-50%) translateY(4px) rotate(45deg); }
}

/* ── NEWS LIST ── */
.news-list {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--inner-w);
    margin: 0 auto;
    padding-top: clamp(16px, 3.33vh, 28px);
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.news-list-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}
.news-list-label {
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.46875vw, 6px);
    flex-shrink: 0;
    width: var(--col-2);
    height: 1.4em;
}
.news-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-fg);
    flex-shrink: 0;
}
.news-label-text {
    font-family: var(--font-ja);
    font-weight: var(--fw-bold);
    font-size: var(--fs-body);
    line-height: var(--lh-base);
    white-space: nowrap;
}

/* ── NEWS ITEMS ── */
.news-items {
    display: flex;
    align-items: flex-start;
    width: var(--col-10);
    gap: clamp(20px, 3.125vw, 48px); /* Figma: 40px @ 1280px */
    transition: opacity 0.3s ease;
}
.news-zone.is-open .news-items {
    opacity: 0;
    pointer-events: none;
}
.news-items:has(.news-item:hover) .news-item:not(:hover) {
    opacity: 0.2;
}
.news-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-fg);
    min-width: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.news-item-main {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.25vw, 16px);
}
.news-item-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-ja);
    font-weight: var(--fw-medium);
    font-size: var(--fs-body);
    line-height: var(--lh-base);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.title-inner {
    background-image: linear-gradient(var(--color-fg), var(--color-fg));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: left bottom;
    transition: background-size 0.4s ease;
}
.news-item:hover .title-inner { background-size: 100% 1px; }
.news-item-arrow-wrap {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-item-arrow {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}
.news-item-cat {
    margin-top: 4px;
    font-family: var(--font-en);
    font-weight: var(--fw-regular);
    font-size: var(--fs-caption);
    line-height: var(--lh-relaxed);
    letter-spacing: var(--ls-base);
    opacity: var(--opacity-secondary);
}

/* close button (visible only when a detail is open) */
.news-detail-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-fg);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.news-zone.is-open .news-detail-close {
    opacity: 1;
    pointer-events: auto;
}

/* ── NEWS DETAIL PANEL ── */
.news-detail-inner {
    position: relative;
    width: var(--col-6);
    margin: 0 auto;
    padding: clamp(60px, 6.25vw, 120px) 0; /* Figma: 80px @ 1280px */
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}
.news-detail-inner::-webkit-scrollbar { display: none; }
.news-detail-content {
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}
.news-detail.is-active .news-detail-content { opacity: 1; }
.news-detail-title {
    font-family: var(--font-ja);
    font-weight: var(--fw-bold);
    font-size: var(--fs-display);
    line-height: var(--lh-base);
    margin-bottom: clamp(9px, 0.9375vw, 18px); /* Figma: 12px @ 1280px */
}
.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-en);
    font-size: var(--fs-caption);
    opacity: var(--opacity-muted);
    margin-bottom: clamp(24px, 3.125vw, 40px);
}
.news-detail-date::after {
    content: '•';
    display: inline-block;
    margin: 0 10px;
}
.news-detail-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(10, 10, 10, 0.06);
    margin-bottom: clamp(24px, 3.125vw, 40px);
    overflow: hidden;
}
.news-detail-thumb img,
.news-detail-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-detail-body {
    font-family: var(--font-ja);
    font-weight: var(--fw-regular);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
}
.news-detail-body p + p { margin-top: 1.6em; }
.news-detail-body hr {
    border: none;
    border-top: 0.5px solid rgba(10, 10, 10, 0.15);
    margin: clamp(24px, 3.125vw, 40px) 0;
}
.news-detail-body h2 {
    font-family: var(--font-ja);
    font-weight: var(--fw-bold);
    font-size: var(--fs-heading);
    line-height: var(--lh-base);
    opacity: 1;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}
.news-detail-body h3 {
    font-family: var(--font-ja);
    font-weight: var(--fw-medium);
    font-size: var(--fs-lead);
    line-height: var(--lh-base);
    opacity: 1;
    margin-top: 2em;
    margin-bottom: 0.6em;
}
.news-detail-body img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: clamp(24px, 3.125vw, 40px) 0;
}
.news-detail-body figure { margin: clamp(24px, 3.125vw, 40px) 0; }
.news-detail-body figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0;
}
.news-detail-body figcaption {
    font-family: var(--font-en);
    font-weight: var(--fw-regular);
    font-size: var(--fs-label);
    line-height: var(--lh-relaxed);
    letter-spacing: var(--ls-md);
    opacity: var(--opacity-muted);
    margin-top: 8px;
}

/* v0.69：展示会の「開催情報」定義リスト（メタ表示） */
.news-detail-info {
    margin-top: clamp(24px, 3.125vw, 40px);
    border-top: 0.5px solid rgba(10, 10, 10, 0.15);
}
.news-detail-info-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(10, 10, 10, 0.1);
    font-family: var(--font-ja);
    font-size: var(--fs-body);
    line-height: var(--lh-base);
}
.news-detail-info-row dt {
    flex-shrink: 0;
    width: 6em;
    opacity: var(--opacity-secondary);
}
.news-detail-info-row dd { flex: 1; }

/* v0.71：記事ページへの全文リンク（枠付きボタン・別ページ移動の注記を内包） */
.news-detail-more {
    margin-top: clamp(32px, 3.75vw, 48px);
}
.news-detail-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--color-fg);
    padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.75vw, 24px);
    text-decoration: none;
    color: var(--color-fg);
    transition: background 0.3s ease, color 0.3s ease;
}
.news-detail-more-btn:hover {
    background: var(--color-fg);
    color: var(--color-bg);
}
.news-detail-more-btn__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.news-detail-more-btn__label {
    font-family: var(--font-ja);
    font-weight: var(--fw-bold);
    font-size: var(--fs-body);
    line-height: var(--lh-base);
}
.news-detail-more-btn__note {
    font-family: var(--font-ja);
    font-weight: var(--fw-regular);
    font-size: var(--fs-caption);
    line-height: var(--lh-base);
    opacity: var(--opacity-secondary);
}
.news-detail-more-btn__arrow {
    flex-shrink: 0;
    font-size: var(--fs-lead);
    line-height: 1;
}

/* ── NEWS RELATED PRODUCTS ── */
.news-related { margin-top: clamp(90px, 9.375vw, 180px); } /* Figma: 120px @ 1280px */
.news-related-title {
    font-family: var(--font-ja);
    font-weight: var(--fw-medium);
    font-size: var(--fs-lead);
    letter-spacing: var(--ls-base);
    margin-bottom: clamp(16px, 1.875vw, 24px);
}
.news-related-cards {
    display: flex;
    gap: clamp(12px, 1.25vw, 16px);
}
.related-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--color-fg);
}
.related-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(10, 10, 10, 0.06);
}
.related-card-cat {
    font-family: var(--font-en);
    font-weight: var(--fw-regular);
    font-size: var(--fs-label);
    letter-spacing: var(--ls-wide);
    opacity: var(--opacity-muted);
}
.related-card-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.related-card-name-text {
    font-family: var(--font-ja);
    font-weight: var(--fw-medium);
    font-size: var(--fs-body);
    line-height: var(--lh-base);
}
.related-card-arrow {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
.related-card:hover .related-card-arrow { opacity: 1; }

/* ── FOOTER（spec の footer 要素を .wv-portal-footer に置換してスコープ） ── */
body.is-portal .wv-portal-footer {
    padding: clamp(8px, 0.9375vw, 12px) var(--margin) clamp(8px, 0.9375vw, 12px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.875vw, 24px);
    z-index: 10;
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.footer-links { list-style: none; }
.footer-sep,
.footer-copyright,
.footer-links a {
    font-family: var(--font-en);
    font-weight: var(--fw-regular);
    font-size: var(--fs-caption);
    letter-spacing: var(--ls-base);
    color: var(--color-fg);
    opacity: var(--opacity-secondary);
    text-decoration: none;
}

/* ── ANIMATIONS ── */
.anim { opacity: 0; }
.anim-left,
.anim-right,
.anim-up { transform: translateY(24px); }

.wv-char {
    opacity: 0;
    transform: translateY(24px);
}
.page.ready .wv-char   { animation: wv-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.page.ready .wv-w      { animation-delay:    0ms; }
.page.ready .wv-o1     { animation-delay:   60ms; }
.page.ready .wv-r      { animation-delay:  120ms; }
.page.ready .wv-k      { animation-delay:  180ms; }
.page.ready .wv-v      { animation-delay:  240ms; }
.page.ready .wv-o2     { animation-delay:  300ms; }
.page.ready .wv-x      { animation-delay:  360ms; }

.page.ready .hero         { animation: wv-hero-up 0.7s cubic-bezier(0.16, 1, 0.3, 1)  500ms forwards; }
.page.ready .anim-s-left  { animation: wv-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1)  800ms forwards; }
.page.ready .anim-s-right { animation: wv-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1)  860ms forwards; }
.page.ready .anim-news    { animation: wv-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1000ms forwards; }
.page.ready .anim-footer  { animation: wv-fade-in 0.4s ease-out                       1200ms forwards; }

@keyframes wv-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wv-hero-up {
    from { opacity: 0; transform: translateX(-50%) translateY(24px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes wv-fade-in {
    to { opacity: 1; }
}
@keyframes arrow-nudge {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(3px, -3px); }
}

/* ── MOBILE (≤ 767px) ── */
@media (max-width: 767px) {
    :root {
        --fs-heading: 16px;
        --fs-lead:    14px;
        --fs-body:    13px;
        --fs-caption: 10px;
    }

    html.is-portal,
    body.is-portal { height: 100%; overflow: hidden; }

    body.is-portal .page {
        height: 100%;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        display: block;
    }

    /* Full-screen snap sections */
    .section-hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100svh;
        padding: 120px 40px 88px;
        scroll-snap-align: start;
        overflow: hidden;
    }
    .entry-panel {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100svh;
        padding: 0 24px 24px;
        scroll-snap-align: start;
        overflow: hidden;
    }
    .entry-panel-video {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .entry-card { position: relative; z-index: 1; }

    /* Logo */
    .logo-wrap {
        position: static;
        width: 68vw;
        margin: 0 auto;
        transition: none;
    }
    .page.hover-left  .logo-wrap,
    .page.hover-right .logo-wrap { transform: none; opacity: 1; }

    /* Hero */
    .hero {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        transform: translateY(24px);
    }
    .page.ready .hero { animation-name: wv-fade-up; }

    /* Entry */
    .entry-row  { position: static; display: block; width: 100%; }
    .entry-card { padding: 24px; gap: 16px; align-items: flex-start; }
    .entry-card-info {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
    }
    .entry-card-title { white-space: normal; }
    .entry-card-desc  { font-size: 12px; line-height: 1.5; white-space: normal; text-align: left; }
    .entry-card-arrow { width: 14px; height: 14px; }
    .entry-video      { display: none; }

    /* News zone */
    .news-zone {
        position: relative;
        height: 100svh;
        scroll-snap-align: start;
        overflow: visible;
        clip-path: inset(0 -24px);
        display: flex;
        flex-direction: column;
        padding: 36px 24px 16px 24px;
    }
    .news-bar::before { display: none; }

    .news-list {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        margin: 0;
        position: relative;
        z-index: 20;
    }
    .news-list-header { flex: 1; flex-direction: column; }
    .news-list-label  { width: auto; }
    .news-label-text  { font-size: 18px; }
    .news-bullet      { display: none; }

    .news-items {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: auto;
    }
    .news-item { padding: 4vw 0; border-bottom: 0.5px solid rgba(10, 10, 10, 0.2); }
    .news-item:first-child { border-top: 0.5px solid rgba(10, 10, 10, 0.2); }
    .news-items:has(.news-item:hover) .news-item:not(:hover) { opacity: 1; }

    /* NEWS detail: slide up from bottom within news-zone (SP) */
    .news-detail {
        position: absolute;
        top: calc(62px + clamp(16px, 3.33vh, 28px));
        left: -24px;
        right: -24px;
        bottom: -16px;
        height: auto;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        background: var(--color-bg);
        z-index: 10;
        opacity: 1;
        pointer-events: none;
        transform: translateY(100%);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    }
    .news-detail.is-active {
        height: auto;
        transform: translateY(0);
        pointer-events: auto;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
    }
    .news-zone.is-open .news-items { opacity: 0; pointer-events: none; }
    .news-zone.is-open .news-list  { pointer-events: none; }
    .news-zone.is-open .news-detail-close { pointer-events: auto; }

    .news-detail-inner { width: 100%; padding: 40px 24px 40px; }

    .news-detail-close {
        top: clamp(16px, 3.33vh, 28px);
        right: 0;
        transform: none;
    }

    .news-bar { flex: 1; display: flex; flex-direction: column; }
    .news-bar-body { flex: 1; }

    body.is-portal .wv-portal-footer {
        transition: none;
        margin-top: auto;
        padding: 0;
        height: 44px;
        justify-content: space-between;
        z-index: 1;
    }
    .footer-sep { display: none; }

    /* SP: related cards horizontal scroll */
    .news-related-cards {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .news-related-cards::-webkit-scrollbar { display: none; }
    .related-card {
        flex: none;
        width: calc(75vw - 39px); /* 3 of 4 cols */
    }
}

/* ── DEV: GRID OVERLAY (G key / mobile triple-tap) ── */
#grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: none;
    padding: 0 var(--margin);
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--col-gap);
}
#grid-overlay.is-visible { display: grid; }
#grid-overlay .gc {
    height: 100%;
    background: rgba(255, 80, 80, 0.08);
    border-left:  1px solid rgba(255, 80, 80, 0.25);
    border-right: 1px solid rgba(255, 80, 80, 0.25);
}
#grid-label,
#grid-label-mobile {
    position: fixed;
    bottom: 40px;
    right: var(--margin);
    z-index: 10000;
    font-family: 'Helvetica Neue', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255, 80, 80, 0.6);
    pointer-events: none;
    display: none;
}
#grid-label.is-visible        { display: block; }
#grid-label-mobile.is-visible { display: block; }

@media (max-width: 767px) {
    #grid-overlay {
        padding: 0 24px;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 12px;
    }
    #grid-overlay .gc:nth-child(n+5) { display: none; }
    #grid-label.is-visible            { display: none; }
}

/* ── DEV: SCROLL NAV (mobile only) ── */
#scroll-nav { display: none; }

@media (max-width: 767px) {
    #scroll-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        position: fixed;
        right: 9px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }
    .scroll-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(10, 10, 10, 0.2);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    .scroll-dot.is-active { background: rgba(10, 10, 10, 0.8); }
}
