:root {
    --sw-bg: #f4f5f7;
    --sw-surface: #ffffff;
    --sw-text: #1a2433;
    --sw-text-muted: #5c6674;
    --sw-accent: #2b7a7b;
    --sw-accent-soft: #e7f3f3;
    --sw-navy: #1a2433;
    --sw-border: #e2e5ea;
    --sw-max: 1180px;
    --sw-article: 760px;
    --sw-radius: 12px;
    --sw-shadow: 0 8px 24px rgba(26, 36, 51, 0.06);
    --sw-header-h: 3.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--sw-bg);
    color: var(--sw-text);
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

img {
    vertical-align: middle;
}

a {
    color: var(--sw-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--sw-text);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0.75rem;
    top: 0.75rem;
}

.container {
    width: min(100% - 2rem, var(--sw-max));
    margin-inline: auto;
}

.article-narrow {
    width: min(100% - 2rem, var(--sw-article));
}

/* Header
   -------------------------------------------------------------------------- */

.site-header {
    background: var(--sw-surface);
    border-bottom: 1px solid var(--sw-border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: var(--sw-header-h);
    gap: 1.25rem;
}

.site-logo {
    color: var(--sw-text);
    font-weight: 700;
    letter-spacing: 0.22em;
    font-size: 0.88rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo:hover {
    color: var(--sw-accent);
    text-decoration: none;
}

.primary-nav {
    margin-left: 0.5rem;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.search-toggle,
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: var(--sw-text);
    cursor: pointer;
    border-radius: 6px;
}

.search-toggle:hover,
.nav-toggle:hover {
    background: var(--sw-bg);
}

.search-toggle:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--sw-accent);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -5px;
}

.nav-toggle-bars::after {
    top: 5px;
}

.primary-nav .menu,
.footer-nav .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a,
.footer-nav a {
    color: var(--sw-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.primary-nav a:hover,
.footer-nav a:hover {
    color: var(--sw-accent);
}

.header-search {
    border-top: 1px solid var(--sw-border);
    background: var(--sw-surface);
    padding: 0.75rem 0 0.9rem;
}

.header-search[hidden] {
    display: none !important;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.search-form-label {
    flex: 1;
    min-width: 0;
}

.search-field {
    width: 100%;
    border: 1px solid var(--sw-border);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font: inherit;
    font-size: 1rem;
    background: var(--sw-bg);
    color: var(--sw-text);
}

.search-field:focus {
    outline: 2px solid var(--sw-accent);
    outline-offset: 1px;
    background: #fff;
}

.search-submit {
    border: 0;
    background: var(--sw-navy);
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-submit:hover {
    background: var(--sw-accent);
}

/* Hero / page intro
   -------------------------------------------------------------------------- */

.hero {
    padding: 3.25rem 0 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--sw-bg) 100%);
    border-bottom: 1px solid var(--sw-border);
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--sw-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.hero-title {
    margin: 0;
    max-width: 16em;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.55;
    font-weight: 700;
}

.page-intro {
    padding: 1.75rem 0 0.25rem;
}

.page-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    line-height: 1.45;
}

.page-lead,
.page-description {
    margin: 0.6rem 0 0;
    color: var(--sw-text-muted);
}

.news-section,
.games-section,
.related-articles {
    padding: 2.25rem 0 3.25rem;
}

.games-section {
    border-top: 1px solid var(--sw-border);
}

.section-heading h2 {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.feature-wrap {
    margin-bottom: 1.25rem;
}

/* Cards
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    background: var(--sw-surface);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    overflow: hidden;
    margin: 0;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.news-card-link:hover {
    text-decoration: none;
}

.news-card:hover {
    box-shadow: 0 10px 28px rgba(26, 36, 51, 0.08);
    transform: translateY(-2px);
}

.news-card-link:hover .news-card-title {
    color: var(--sw-accent);
}

.news-card-media {
    aspect-ratio: 16 / 9;
    background: var(--sw-accent-soft);
    overflow: hidden;
}

.news-card-media-empty {
    background:
        linear-gradient(180deg, var(--sw-accent-soft) 0%, #edf0f3 100%);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 0.95rem 1.05rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.news-card-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    color: var(--sw-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.news-card-category {
    color: var(--sw-accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
}

.news-card-excerpt {
    margin: 0;
    color: var(--sw-text-muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-game {
    margin: 0.35rem 0 0;
    color: var(--sw-text);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.news-card-feature .news-card-title {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.news-card-feature .news-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.95rem;
}

.news-card-feature .news-card-body {
    padding: 1.2rem 1.25rem 1.4rem;
}

.empty-state {
    color: var(--sw-text-muted);
}

.search-again {
    margin-top: 1rem;
    max-width: 32rem;
}

/* Game index
   -------------------------------------------------------------------------- */

.game-index {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--sw-border);
}

.game-index li {
    border-bottom: 1px solid var(--sw-border);
}

.game-index a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0.15rem;
    color: var(--sw-text);
    text-decoration: none;
}

.game-index a:hover {
    color: var(--sw-accent);
}

.game-index-name {
    font-weight: 600;
}

.game-index-count {
    color: var(--sw-text-muted);
    font-size: 0.82rem;
}

/* Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
    padding: 0.9rem 0 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--sw-text-muted);
    font-size: 0.78rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.45rem;
    color: #b4bac3;
}

.breadcrumb-list a {
    color: var(--sw-text-muted);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--sw-accent);
}

.breadcrumb-list [aria-current="page"] {
    color: var(--sw-text);
}

/* Single article
   -------------------------------------------------------------------------- */

.single-article {
    padding-bottom: 3rem;
}

.article-header {
    padding: 1.1rem 0 1.15rem;
}

.article-kicker {
    margin: 0 0 0.7rem;
    color: var(--sw-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
}

.article-category {
    color: var(--sw-accent);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.article-category:hover {
    text-decoration: underline;
}

.meta-sep {
    color: #b4bac3;
}

.article-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.05rem);
    line-height: 1.45;
}

.article-lead {
    margin: 0.95rem 0 0;
    color: var(--sw-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-eyecatch {
    margin: 0 0 1.5rem;
}

.eyecatch-image {
    width: 100%;
    border-radius: var(--sw-radius);
    display: block;
    background: var(--sw-surface);
}

.eyecatch-caption {
    margin: 0.4rem 0 0;
    color: var(--sw-text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 400;
}

.summary-box,
.official-box,
.game-entity {
    margin: 0 0 1.75rem;
}

.summary-box-inner,
.official-box-inner {
    background: var(--sw-surface);
    border: 1px solid var(--sw-border);
    border-left: 3px solid var(--sw-accent);
    border-radius: 10px;
    padding: 1.1rem 1.2rem 1.15rem;
}

.summary-box-title,
.official-box-title {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.summary-box-list {
    margin: 0;
    padding-left: 1.15rem;
}

.summary-box-list li + li {
    margin-top: 0.4rem;
}

.official-box-game {
    margin: 0;
    font-weight: 700;
}

.official-box-name {
    margin: 0.2rem 0 0;
    color: var(--sw-text-muted);
    font-size: 0.92rem;
}

.official-box-action {
    margin: 0.85rem 0 0;
}

.official-box-link,
.game-cta-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}

.official-box-link:hover,
.game-cta-link:hover {
    text-decoration: underline;
}

.game-entity-label {
    margin: 0 0 0.4rem;
    color: var(--sw-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.game-cta {
    padding: 0.1rem 0 0;
    background: transparent;
    border: 0;
}

.game-cta-name {
    margin: 0;
    font-weight: 700;
    font-size: 1.02rem;
}

.game-cta-name a {
    color: var(--sw-text);
    text-decoration: none;
}

.game-cta-name a:hover {
    color: var(--sw-accent);
}

.game-cta-action {
    margin: 0.35rem 0 0;
}

.game-cta-link {
    font-weight: 600;
    font-size: 0.95rem;
}

.article-body {
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.9;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    line-height: 1.5;
    font-weight: 700;
    color: var(--sw-text);
}

.entry-content h1 {
    font-size: 1.25rem;
    margin: 2rem 0 0.8rem;
}

.entry-content h2 {
    font-size: 1.18rem;
    margin: 2.1rem 0 0.7rem;
    padding-top: 1.15rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--sw-border);
}

.entry-content h3 {
    font-size: 1.05rem;
    margin: 1.8rem 0 0.55rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.15rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.35rem;
}

.entry-content li + li {
    margin-top: 0.35rem;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.entry-content img,
.entry-content figure {
    border-radius: 8px;
    max-width: 100%;
}

.entry-content article {
    display: block;
}

/* Pagination
   -------------------------------------------------------------------------- */

.pagination {
    margin-top: 2rem;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    color: var(--sw-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
    background: var(--sw-surface);
    color: var(--sw-text);
    text-decoration: none;
}

/* Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--sw-surface);
    border-top: 1px solid var(--sw-border);
    padding: 2.1rem 0 2.3rem;
}

.footer-inner {
    display: grid;
    gap: 0.55rem;
}

.footer-brand {
    margin: 0;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-tagline {
    margin: 0;
    color: var(--sw-text-muted);
    font-size: 0.9rem;
    max-width: 22em;
    line-height: 1.7;
}

.footer-copy {
    margin: 0.4rem 0 0;
    color: var(--sw-text-muted);
    font-size: 0.8rem;
}

/* Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .card-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2.25rem 0 1.85rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--sw-header-h);
        background: var(--sw-surface);
        border-bottom: 1px solid var(--sw-border);
        padding: 0.65rem 1rem 0.9rem;
        margin: 0;
        flex: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        flex-direction: column;
        gap: 0;
    }

    .primary-nav a {
        display: block;
        padding: 0.55rem 0;
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        position: relative;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .article-lead {
        font-size: 1rem;
    }

    .news-card-feature .news-card-title {
        font-size: 1.15rem;
    }
}

@media (min-width: 801px) {
    .news-card-feature {
        display: block;
    }

    .news-card-feature .news-card-link {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .news-card-feature .news-card-media {
        aspect-ratio: auto;
        min-height: 240px;
        height: 100%;
    }
}
