.jp-home {
    --jp-ink: #17263f;
    --jp-muted: #596b86;
    --jp-surface: #ffffff;
    --jp-surface-alt: #f4f7fb;
    --jp-border: #d6deea;
    --jp-accent: #0b6b63;
    --jp-accent-strong: #0f4f8a;
    --jp-live: #155e4b;
    --jp-watch: #956000;
    --jp-queued: #67758a;
    color: var(--jp-ink);
    font-family: "IBM Plex Sans", "Noto Sans JP", sans-serif;
    position: relative;
}

.jp-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 10%, rgba(17, 74, 133, 0.12), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(11, 107, 99, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.jp-home h1,
.jp-home h2,
.jp-home h3 {
    font-family: "IBM Plex Serif", "Noto Serif JP", serif;
}

.jp-home section[id] {
    scroll-margin-top: 6rem;
}

.jp-home p,
.jp-home li {
    line-height: 1.72;
}

.jp-home a,
.jp-home .btn,
.jp-home summary {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.jp-home a:focus-visible,
.jp-home .btn:focus-visible,
.jp-home summary:focus-visible {
    outline: 3px solid rgba(15, 79, 138, 0.3);
    outline-offset: 3px;
}

.jp-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    padding: 2.4rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #15365f 0%, #1f4c77 45%, #0b6b63 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 48px rgba(13, 36, 61, 0.18);
    color: #f6fbff;
}

.jp-home-hero .lead {
    color: rgba(246, 251, 255, 0.94);
}

.jp-home-translation-note {
    border-radius: 0.95rem;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(246, 251, 255, 0.94);
    font-size: 0.92rem;
}

.jp-home-kicker {
    color: #cfe6ff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.jp-home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.jp-home-meta-pill,
.jp-home-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.jp-home-meta-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #eef8ff;
}

.jp-home-section-pill {
    background: #edf4fb;
    border: 1px solid #d4e0ee;
    color: #1d4c77;
}

.jp-home-section-pill-hero {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #eef8ff;
}

.jp-home-hero .btn-light {
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 20px rgba(8, 28, 51, 0.2);
}

.jp-home-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #f6fbff;
}

.jp-home-hero .btn-outline-light:hover,
.jp-home-hero .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.jp-home-status-panel {
    border-radius: 1.2rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.jp-home-status-label {
    color: #d4ebff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jp-home-status-note {
    color: rgba(240, 248, 255, 0.86);
    font-size: 0.9rem;
}

.jp-home-status-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.jp-home-status-metric {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    border-radius: 0.95rem;
    padding: 0.8rem 0.85rem;
    background: rgba(8, 28, 51, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.jp-home-status-metric strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.jp-home-status-metric span {
    color: #d8ecff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jp-home-hero-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.jp-home-hero-link {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    border-radius: 0.95rem;
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(8, 28, 51, 0.08);
    min-height: 5.8rem;
}

.jp-home-hero-link span {
    font-weight: 700;
}

.jp-home-hero-link small {
    color: rgba(230, 242, 255, 0.88);
    font-size: 0.78rem;
    line-height: 1.45;
}

.jp-home-hero-link:hover,
.jp-home-hero-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 28px rgba(8, 28, 51, 0.16);
    color: #ffffff;
}

.jp-home-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.jp-home-status-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.48rem 0.82rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.jp-home-status-action:hover,
.jp-home-status-action:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.jp-home-anchor-nav {
    position: sticky;
    top: 1rem;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(214, 222, 234, 0.95);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(15, 37, 61, 0.08);
    backdrop-filter: blur(10px);
}

.jp-home-anchor-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.78rem;
    background: #f4f8fc;
    border: 1px solid #d8e3ef;
    color: #224d77;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.jp-home-anchor-link:hover,
.jp-home-anchor-link:focus-visible {
    transform: translateY(-1px);
    background: #eaf3fb;
    border-color: #b8ccdf;
    color: #163f67;
}

.jp-home-anchor-link.is-active {
    background: #173b68;
    border-color: #173b68;
    color: #ffffff;
}

.jp-home-anchor-link[aria-current="location"] {
    background: #173b68;
    border-color: #173b68;
    color: #ffffff;
}

.jp-home-section {
    border-radius: 1.2rem;
    padding: 1.15rem;
    border: 1px solid var(--jp-border);
    background: linear-gradient(180deg, var(--jp-surface) 0%, var(--jp-surface-alt) 100%);
    box-shadow: 0 12px 26px rgba(15, 37, 61, 0.06);
}

.jp-home-signal-card,
.jp-home-prefecture-card,
.jp-home-update-card,
.jp-home-region-card,
.jp-home-next-card,
.jp-home-standard-card,
.jp-home-watch-card,
.jp-home-faq-item,
.jp-home-citation-item {
    border-radius: 1rem;
    border: 1px solid #d8e1ed;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(15, 37, 61, 0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.jp-home-prefecture-card,
.jp-home-next-card,
.jp-home-update-card {
    display: flex;
    flex-direction: column;
}

.jp-home-compare-desktop {
    display: block;
}

.jp-home-compare-cards {
    display: none;
    gap: 0.85rem;
}

.jp-home-compare-card {
    border-radius: 1rem;
    border: 1px solid #d8e1ed;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(15, 37, 61, 0.05);
}

.jp-home-compare-card-title {
    color: #173b68;
    font-size: 1rem;
    font-weight: 700;
}

.jp-home-compare-card-row {
    display: grid;
    grid-template-columns: minmax(5.8rem, 6.6rem) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-top: 1px solid #e1e9f1;
}

.jp-home-compare-card-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.jp-home-compare-card-label {
    color: var(--jp-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.jp-home-compare-card-value {
    color: var(--jp-ink);
    font-size: 0.88rem;
}

.jp-home-signal-card:hover,
.jp-home-prefecture-card:hover,
.jp-home-update-card:hover,
.jp-home-region-card:hover,
.jp-home-next-card:hover,
.jp-home-standard-card:hover,
.jp-home-watch-card:hover,
.jp-home-faq-item:hover,
.jp-home-citation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 37, 61, 0.08);
    border-color: #c7d5e4;
}

.jp-home-signal-eyebrow,
.jp-home-next-eyebrow {
    color: var(--jp-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.jp-home-signal-date,
.jp-home-muted-note,
.jp-home-prefecture-focus {
    color: var(--jp-muted);
    font-size: 0.86rem;
}

.jp-home-update-focus,
.jp-home-prefecture-compare-note {
    color: var(--jp-muted);
    font-size: 0.84rem;
}

.jp-home-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    background: #eef5fb;
    border: 1px solid #d3e0ee;
    color: #214f7c;
    font-size: 0.8rem;
    font-weight: 600;
}

.jp-home-chip-button {
    cursor: pointer;
}

.jp-home-chip-button:hover,
.jp-home-chip-button:focus-visible {
    transform: translateY(-1px);
    background: #dfeefb;
    border-color: #b8ccdf;
    color: #173b68;
}

.jp-home-compare-tray {
    border-radius: 1rem;
    border: 1px solid #cfe0ee;
    background: linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
    padding: 1rem;
}

.jp-home-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.jp-home-compare-table th,
.jp-home-compare-table td {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid #dbe6f0;
    vertical-align: top;
}

.jp-home-compare-table thead th {
    color: #163f68;
    font-size: 0.84rem;
    font-weight: 700;
}

.jp-home-compare-table tbody th {
    width: 8.5rem;
    color: var(--jp-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.jp-home-compare-table tbody tr:last-child th,
.jp-home-compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.jp-home-compare-toggle.is-selected {
    background: #173b68;
    border-color: #173b68;
    color: #ffffff;
}

.jp-home .form-label {
    color: var(--jp-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.jp-home .form-control,
.jp-home .form-select {
    border-color: #cbd8e5;
    background: rgba(255, 255, 255, 0.92);
}

.jp-home-filter-status {
    color: var(--jp-muted);
    font-size: 0.9rem;
}

.jp-home-empty-state {
    color: #8f1628;
    font-weight: 700;
}

.jp-home-prefecture-label {
    font-size: 1.12rem;
    font-weight: 700;
}

.jp-home-prefecture-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.jp-home-prefecture-metrics div {
    border-radius: 0.9rem;
    padding: 0.72rem 0.8rem;
    background: #f5f9fd;
    border: 1px solid #dce7f2;
}

.jp-home-prefecture-metrics dt {
    margin-bottom: 0.18rem;
    color: var(--jp-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.jp-home-prefecture-metrics dd {
    margin: 0;
    color: var(--jp-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.jp-home-prefecture-metrics-wide {
    grid-column: 1 / -1;
}

.jp-home-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.34rem 0.66rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.jp-home-status-badge-live {
    background: rgba(21, 94, 75, 0.12);
    color: var(--jp-live);
}

.jp-home-status-badge-watch {
    background: rgba(149, 96, 0, 0.12);
    color: var(--jp-watch);
}

.jp-home-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.jp-home-directory-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-height: 4.3rem;
    border-radius: 0.9rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid #d9e2ee;
    background: #fbfdff;
    text-decoration: none;
    color: inherit;
}

.jp-home-directory-item:hover,
.jp-home-directory-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 37, 61, 0.08);
    border-color: #bfd0e1;
    color: inherit;
}

.jp-home-directory-item span {
    font-weight: 700;
}

.jp-home-directory-item small {
    color: var(--jp-muted);
    font-size: 0.76rem;
}

.jp-home-directory-item-live {
    border-color: rgba(21, 94, 75, 0.28);
    background: rgba(21, 94, 75, 0.08);
}

.jp-home-directory-item-live small {
    color: var(--jp-live);
}

.jp-home-prefecture-column[hidden],
.jp-home-directory-item[hidden],
.jp-home-directory-region[hidden] {
    display: none !important;
}

.jp-home-directory-item-watch {
    border-color: rgba(149, 96, 0, 0.2);
    background: rgba(149, 96, 0, 0.06);
}

.jp-home-directory-item-watch small {
    color: var(--jp-watch);
}

.jp-home-directory-item-queued small {
    color: var(--jp-queued);
}

.jp-home-watch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: min(100%, 28rem);
}

.jp-home-watch-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    border-radius: 0.9rem;
    padding: 0.78rem 0.85rem;
    background: #fffaf0;
    border: 1px solid rgba(149, 96, 0, 0.16);
}

.jp-home-watch-item span {
    color: #6c4700;
    font-weight: 700;
}

.jp-home-watch-item small {
    color: var(--jp-muted);
    font-size: 0.78rem;
}

.jp-home-faq-list {
    display: grid;
    gap: 0.8rem;
}

.jp-home-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.jp-home-faq-item summary::-webkit-details-marker {
    display: none;
}

.jp-home-faq-item[open] summary {
    margin-bottom: 0.75rem;
}

.jp-home-standard-label {
    color: var(--jp-muted);
    font-size: 0.82rem;
}

.jp-home-method {
    border-top: 1px solid var(--jp-border);
    padding-top: 1rem;
}

.jp-home-method-list {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.2rem;
}

.jp-home-citation-list {
    display: grid;
    gap: 1rem;
    padding-left: 0;
    list-style: none;
}

.jp-home-citation-number {
    font-weight: 700;
}

.jp-home-citation-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    background: #edf4fb;
    color: #1f4c77;
    font-size: 0.76rem;
    font-weight: 700;
}

.jp-home-citation-language,
.jp-home-citation-date {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.jp-home-citation-language-ja {
    background: #ecf6f1;
    color: #14604d;
}

.jp-home-citation-language-non-ja {
    background: #fff5e8;
    color: #8a5200;
}

.jp-home-citation-date {
    background: #f4f8fc;
    color: var(--jp-muted);
}

.jp-home-citation-backlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.jp-home-footnote a {
    color: var(--jp-accent-strong);
    text-decoration: none;
    font-weight: 700;
}

.jp-home .text-muted {
    color: var(--jp-muted) !important;
}

@media (max-width: 991px) {
    .jp-home-hero {
        padding: 1.8rem;
    }

    .jp-home-section {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .jp-home-anchor-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.9rem;
    }

    .jp-home-status-metrics,
    .jp-home-hero-links,
    .jp-home-watch-grid,
    .jp-home-prefecture-metrics {
        grid-template-columns: 1fr;
    }

    .jp-home-status-actions {
        flex-direction: column;
    }

    .jp-home-directory-grid {
        grid-template-columns: 1fr;
    }

    .jp-home-compare-desktop {
        display: none;
    }

    .jp-home-compare-cards {
        display: grid;
    }
}
