@charset "UTF-8";

/* =========================================
   NHK Kaitai 2026 - Major Overhaul Design System
   Theme: Trusted Journalism & Action (Neo-Brutalism + Anshin)
   ========================================= */

:root {
    /* Color Palette (Deep Navy / Action Red / Trust Blue) */
    --bg-base: #0f172a;
    /* Deep Navy - Trustworthy Foundation */
    --bg-surface: #1e293b;
    /* Slate - Card Surface */
    --bg-elevated: #334155;
    /* Lighter Slate - Hover */

    --text-primary: #f8fafc;
    /* Off-white - High Readability */
    --text-secondary: #cbd5e1;
    /* Soft Gray - Meta info */
    --text-muted: #94a3b8;
    /* Muted - Footer/Small text */

    --accent-action: #ef4444;
    /* Red - Alerts/Stop/Danger */
    --accent-trust: #3b82f6;
    /* Blue - Info/Guide */
    --accent-success: #10b981;
    /* Green - Safe/Go */

    --border-strong: #475569;
    /* Strong border for Neo-Brutalism feel */
    --border-subtle: #1e293b;

    /* Typography */
    --font-serif: 'Noto Serif JP', serif;
    /* Headlines: Authority */
    --font-sans: 'Noto Sans JP', sans-serif;
    /* Body: Readability */

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-strong: 4px 4px 0px 0px rgba(0, 0, 0, 0.5);
    /* Neo-Brutalism Hard Shadow */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.8;
    /* Relaxed for reading */
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    /* Reduced vertical padding */
}

@media (min-width: 768px) {

    /* Bento Grid Utilities */
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: minmax(100px, auto);
        /* Base height unit */
        padding: 2rem 0;
        /* Restore padding on desktop */
    }

    .bento-item {
        grid-column: span 12;
    }

    /* Span Utilities */
    .bento-span-4 {
        grid-column: span 4;
    }

    .bento-span-6 {
        grid-column: span 6;
    }

    .bento-span-8 {
        grid-column: span 8;
    }

    .bento-span-12 {
        grid-column: span 12;
    }

    .bento-row-2 {
        grid-row: span 2;
    }
}

.bento-item {
    background-color: var(--bg-surface);
    border-radius: 8px;
    padding: 1.25rem;
    /* Slightly reduced base padding for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Neo-Brutalism Card Override */
.bento-card {
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-strong);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--bg-surface);
    /* Ensure background is set */
    border-radius: var(--radius-md);
    /* Keep radius */
    padding: 1.25rem;
    /* Match base padding */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {

    .bento-item,
    .bento-card {
        padding: 1.5rem;
        /* Restore larger padding on desktop */
    }
}

.bento-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
    border-color: var(--text-secondary);
    /* Keep border color change on hover */
}

/* Hero Item Specifics */
.bento-hero {
    grid-column: span 12;
    /* Always full width */
    min-height: 50vh;
    /* Use viewport height for better mobile feel */
    max-height: 600px;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Remove padding to let video fill */
}

@media (min-width: 768px) {
    .bento-hero {
        min-height: 400px;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    /* Deep Navy Overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 2rem;
    }
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    /* Smaller min size for mobile */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Card Variants */
.card-action {
    border-color: var(--accent-action);
    background: linear-gradient(145deg, var(--bg-surface), #2a1515);
}

.card-trust {
    border-color: var(--accent-trust);
    background: linear-gradient(145deg, var(--bg-surface), #151e2a);
}

.card-title {
    font-size: 1.3rem;
    /* Slightly smaller for mobile */
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.5rem;
    }
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .card-desc {
        font-size: 1rem;
    }
}

.card-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    /* Increase touch target vertical padding */
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-strong);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-brand {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* Hero Section (Condensed) */
.hero {
    /* padding: 4rem 0 2rem; removed fixed padding - handled by container flex now */
    text-align: center;
    /* border-bottom: 1px solid var(--border-strong); removed - using bento card style */
    /* margin-bottom: 2rem; removed */
    background: transparent;
    /* Handled by bento-hero background */
    width: 100%;
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.1rem;
    }
}

.action-btn-giant {
    display: block;
    width: 100%;
    cursor: pointer;
    transition: transform 0.1s;
}

.action-btn-giant:active {
    transform: scale(0.98);
}

/* Article Styles (Readability Focus) */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1.5rem;
}

article h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-trust);
}

article p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.9;
}

article .box {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-sm);
}

article .lead {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-strong);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

/* Utility */
.text-action {
    color: var(--accent-action);
}

.text-trust {
    color: var(--accent-trust);
}

.text-success {
    color: var(--accent-success);
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

/* News Ticker / List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.news-title {
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

.news-title:hover {
    color: var(--accent-trust);
    text-decoration: underline;
}

.news-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Accessibility Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}