.sakamichi-news-page {
    --snd-surface: #ffffff;
    --snd-border: rgba(15, 23, 42, 0.12);
    --snd-muted: #5b6474;
    --snd-heading: #111827;
    --snd-nogizaka: #f3ecff;
    --snd-sakurazaka: #ffeef4;
    --snd-hinatazaka: #eaf8ff;
    --snd-success: #166534;
    --snd-warning: #9a6200;
}

.snd-shell {
    max-width: 1180px;
}

.snd-overview,
.snd-toolbar,
.snd-history,
.snd-state {
    border: 1px solid var(--snd-border);
    border-radius: 8px;
    background: var(--snd-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.snd-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.snd-overview__main {
    min-width: 0;
}

.snd-overview__eyebrow,
.snd-section-heading__meta,
.snd-stat__label,
.snd-topic__meta,
.snd-source-policy,
.snd-topic__rank small {
    color: var(--snd-muted);
}

.snd-overview__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.snd-overview__date {
    margin: 0;
    color: var(--snd-heading);
    font-size: clamp(1.75rem, 2vw + 1rem, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.snd-overview__headline {
    max-width: 820px;
    margin: 0.75rem 0 0;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.snd-overview__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.snd-stat {
    min-width: 0;
    border: 1px solid var(--snd-border);
    border-radius: 8px;
    padding: 0.85rem;
    background: #f8fafc;
}

.snd-stat__label,
.snd-stat__value {
    display: block;
}

.snd-stat--wide {
    grid-column: 1 / -1;
}

.snd-stat__label {
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.snd-stat__value {
    color: var(--snd-heading);
    font-size: 1.35rem;
    line-height: 1.25;
}

.snd-stat__value--date {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.snd-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
}

.snd-date-nav,
.snd-date-form,
.snd-group-jumps,
.snd-topic__links,
.snd-history__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.snd-date-form {
    align-items: center;
}

.snd-date-form__label {
    margin: 0;
    color: var(--snd-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.snd-date-form .form-control {
    min-width: 11rem;
}

.snd-date-nav__link,
.snd-group-jumps__item,
.snd-history__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--snd-border);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.snd-date-nav__link {
    min-width: 5.25rem;
    padding: 0.5rem 0.8rem;
}

.snd-date-nav__link:hover,
.snd-group-jumps__item:hover,
.snd-history__link:hover {
    border-color: rgba(13, 110, 253, 0.45);
    background: #eef6ff;
    color: #0f172a;
}

.snd-date-nav__link:focus-visible,
.snd-group-jumps__item:focus-visible,
.snd-history__link:focus-visible,
.snd-topic__links a:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.snd-date-nav__link--current {
    border-color: rgba(13, 110, 253, 0.5);
    background: #e7f1ff;
}

.snd-date-nav__link--disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.snd-group-jumps {
    margin-bottom: 0.65rem;
}

.snd-group-jumps__item {
    flex: 1 1 180px;
    padding: 0.7rem 1rem;
}

.snd-group-jumps__item strong,
.snd-history__link strong,
.snd-topic__rank strong {
    font-variant-numeric: tabular-nums;
}

.snd-group-jumps__item.is-empty {
    color: #64748b;
    background: #f8fafc;
}

.snd-group-jumps__item--nogizaka,
.snd-group--nogizaka .snd-section-heading {
    background: var(--snd-nogizaka);
}

.snd-group-jumps__item--sakurazaka,
.snd-group--sakurazaka .snd-section-heading {
    background: var(--snd-sakurazaka);
}

.snd-group-jumps__item--hinatazaka,
.snd-group--hinatazaka .snd-section-heading {
    background: var(--snd-hinatazaka);
}

.snd-source-policy {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.snd-group {
    margin-bottom: 1.25rem;
}

.snd-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--snd-border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.snd-section-heading__title {
    margin: 0;
    color: var(--snd-heading);
    font-size: clamp(1.25rem, 0.7vw + 1.05rem, 1.55rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.snd-section-heading__meta {
    margin: 0;
    font-weight: 700;
}

.snd-topic-list {
    display: grid;
    gap: 0.75rem;
}

.snd-topic {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
    border: 1px solid var(--snd-border);
    border-radius: 8px;
    background: var(--snd-surface);
    padding: 1rem;
}

.snd-topic__rank {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: start;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
    color: var(--snd-muted);
    text-align: center;
}

.snd-topic__rank span,
.snd-topic__rank small {
    font-size: 0.78rem;
    font-weight: 700;
}

.snd-topic__rank strong {
    color: var(--snd-heading);
    font-size: 1.55rem;
    line-height: 1.1;
}

.snd-topic__body {
    min-width: 0;
}

.snd-topic__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.snd-topic__meta span,
.snd-topic__meta time {
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 999px;
    padding: 0.12rem 0.48rem;
    background: #f8fafc;
}

.snd-topic__title {
    margin: 0 0 0.55rem;
    color: var(--snd-heading);
    font-size: clamp(1.05rem, 0.35vw + 0.95rem, 1.22rem);
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.snd-topic__summary,
.snd-topic__why,
.snd-topic__media {
    margin: 0.45rem 0 0;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.snd-topic__media {
    float: right;
    width: min(36%, 220px);
    margin: 0 0 0.75rem 1rem;
}

.snd-topic__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--snd-border);
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
}

.snd-topic__media figcaption {
    margin-top: 0.35rem;
    color: var(--snd-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: right;
}

.snd-topic__media a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.snd-topic__why {
    border-left: 4px solid rgba(13, 110, 253, 0.35);
    padding-left: 0.75rem;
}

.snd-topic__why span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--snd-heading);
    font-size: 0.78rem;
    font-weight: 800;
}

.snd-topic__links {
    margin-top: 0.75rem;
}

.snd-topic__links a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    background: #f8fbff;
    font-weight: 700;
    text-decoration: none;
}

.snd-history {
    margin: 1.5rem 0 1rem;
    padding: 1rem;
}

.snd-history .snd-section-heading {
    margin-bottom: 1rem;
    background: #f8fafc;
}

.snd-history__link {
    padding: 0.55rem 0.8rem;
}

.snd-history__link em {
    border-radius: 999px;
    padding: 0.08rem 0.45rem;
    background: #dcfce7;
    color: var(--snd-success);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
}

.snd-history__link.is-current {
    border-color: rgba(22, 101, 52, 0.45);
    background: #ecfdf5;
    color: var(--snd-success);
}

.snd-state {
    margin: 1rem 0;
    padding: 1.25rem;
}

.snd-state--error {
    border-color: rgba(180, 35, 24, 0.35);
}

.snd-state__title {
    margin: 0 0 0.5rem;
    color: #991b1b;
    font-size: 1.2rem;
}

.snd-state__body {
    margin: 0 0 0.9rem;
    color: #334155;
    line-height: 1.7;
}

.snd-state--empty .snd-state__body {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .snd-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .snd-shell {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .snd-overview,
    .snd-toolbar,
    .snd-history,
    .snd-state {
        padding: 0.85rem;
    }

    .snd-overview__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .snd-toolbar {
        align-items: stretch;
    }

    .snd-date-nav,
    .snd-date-form {
        width: 100%;
    }

    .snd-date-form__label {
        width: 100%;
    }

    .snd-date-nav__link,
    .snd-date-form .form-control,
    .snd-date-form .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .snd-date-nav__link--current {
        order: -1;
        flex-basis: 100%;
    }

    .snd-topic {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .snd-topic__rank {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.65rem;
        text-align: left;
    }

    .snd-topic__media {
        float: none;
        width: 100%;
        margin: 0 0 0.75rem;
    }

    .snd-topic__media figcaption {
        text-align: left;
    }
}
