* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #111827;
    line-height: 1.55;
    padding-bottom: 76px
}

a {
    color: #b91c1c;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.wrap {
    width: min(1120px, calc(100% - 24px));
    margin-inline: auto
}

.site-header {
    background: #0f172a;
    color: #fff;
    border-bottom: 4px solid #f59e0b
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0
}

.brand {
    color: #fff;
    display: grid;
    font-weight: 800;
    font-size: 1.12rem;
    text-decoration: none
}

.brand small {
    font-size: .72rem;
    color: #cbd5e1;
    font-weight: 600
}

.top-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.top-nav a {
    color: #fff;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 10px;
    font-weight: 700;
    font-size: .9rem
}

.notice-board {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    padding: 10px 0
}

.notice-board strong {
    display: block;
    margin-bottom: 6px;
    color: #9a3412
}

.notice-list {
    display: grid;
    gap: 8px
}

.notice-item {
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 10px
}

.notice-item span {
    font-weight: 800;
    color: #111827
}

.notice-item p {
    margin: 4px 0 0;
    font-size: .94rem
}

.home-notice-board {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa
}

.home-notice-board h1 {
    margin: 0 0 10px;
    color: #9a3412
}

.home-notice-board .notice-item {
    border-color: #fed7aa
}

.main {
    padding: 16px 0 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%)
}

.hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #eff6ff 100%);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06)
}

.hero h1 {
    font-size: clamp(1.45rem, 4vw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 10px;
    color: #0f172a;
    letter-spacing: 0
}

.hero p {
    margin: 0;
    color: #374151
}

.section {
    margin: 14px auto
}

.section:nth-of-type(3n+1) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px
}

.section:nth-of-type(3n+2) {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px
}

.section:nth-of-type(3n) {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px
}

.section h2 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: #0f172a
}

.grid {
    display: grid;
    gap: 12px
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr))
}

.card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05)
}

.card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #111827
}

.muted {
    color: #64748b
}

.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.pill, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    padding: 8px 11px;
    background: #111827;
    color: #fff;
    font-weight: 800;
    border: 0
}

.pill.alt, .btn.alt {
    background: #007514;
    color: #ffffff
}

.pill.light {
    background: #e0f2fe;
    color: #075985
}

.result-board {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden
}

.result-board th, .result-board td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap
}

.result-board th {
    background: #0f172a;
    color: #fff;
    font-size: .88rem
}

.result-board tr.nearest-result td {
    background: #fff7ed
}

.result-board tr.nearest-result td:first-child {
    box-shadow: inset 4px 0 0 #dc2626
}

.result-board tr.nearest-result .time-cell {
    color: #dc2626;
    font-weight: 900
}

.result-board tr.nearest-result .result-value {
    background: #dc2626;
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px
}

.game-link {
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase
}

.old-result {
    font-weight: 900;
    color: #64748b
}

.result-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #b91c1c
}

.chart-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px
}

.chart-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px
}

.chart-table th, .chart-table td {
    border: 1px solid #e5e7eb;
    text-align: center
}

.chart-table th {
    background: #111827;
    color: #fff;
    position: sticky;
    top: 0
}

.chart-table td:first-child, .chart-table th:first-child {
    font-weight: 900;
    background: #f1f5f9;
    color: #111827
}

.map-list {
    display: grid;
    gap: 8px
}

.map-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, .08)
}

.content {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .04)
}

.content p {
    margin: 0 0 12px
}

.ad-slot {
    display: block;
    width: 100%;
    max-width: 100%;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin-block: 14px;
    overflow: hidden;
    text-align: center;
    padding: 8px
}

.ad-slot .adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important
}

.ad-slot iframe {
    max-width: 100% !important
}

.top-ad {
    margin-top: 12px
}

.ad-label {
    font-size: .72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em
}

.site-footer {
    background: #111827;
    color: #e5e7eb;
    padding: 22px 0
}

.footer-grid {
    display: grid;
    gap: 14px
}

.site-footer p {
    margin: 6px 0 0;
    color: #cbd5e1
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.site-footer a {
    color: #fff
}

.fixed-result {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #0f172a;
    color: #fff;
    border-top: 3px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px max(12px, calc((100vw - 1120px)/2));
    box-shadow: 0 -4px 20px rgba(15, 23, 42, .2)
}

.fixed-result strong {
    display: block;
    font-size: .9rem
}

.fixed-result-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    max-width: min(420px, calc(100vw - 92px));
    padding-top: 3px;
    scrollbar-width: none
}

.fixed-result-list::-webkit-scrollbar {
    display: none
}

.fixed-result span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: #cbd5e1;
    white-space: nowrap
}

.fixed-result .fixed-result-item {
    display: none;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    padding: 4px 7px
}

.fixed-result-item b,
.fixed-result-item em {
    font-style: normal;
    color: #fff
}

.fixed-result .fixed-result-item.nearest-result {
    display: inline-flex;
    background: #dc2626;
    border-color: #800000;
    color: #d1d1d1
}

.fixed-result .fixed-result-item.nearest-result em {
    font-weight: 900;
    color: #fff
}


.fixed-result a {
    background: #f59e0b;
    color: #111827;
    border-radius: 6px;
    padding: 9px 14px;
    font-weight: 900;
    text-decoration: none
}

.year-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0
}

.year-switch a {
    background: #e5e7eb;
    color: #111827;
    border-radius: 6px;
    padding: 8px 10px;
    font-weight: 800
}

.year-switch a.active {
    background: #b91c1c;
    color: #fff
}

.status-box {
    border-left: 4px solid #16a34a;
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px
}

.warning-box {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px
}

@media (max-width:720px) {
    .header-grid {
        align-items: flex-start;
        flex-direction: column
    }

    .top-nav {
        justify-content: flex-start
    }

    .result-board th, .result-board td {
        padding: 8px 5px;
    }

    .result-value {
        font-size: 1.05rem
    }

    .map-link {
        align-items: flex-start;
        flex-direction: column
    }

    .fixed-result {
        padding: 9px 12px
    }

    .hero {
        padding: 14px
    }

    .card {
        padding: 12px
    }
}
