body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; margin: 0; padding: 0; color: #f1f5f9; background-color: #000000; background-image: url(../img/aori-car-bak.jpg); background-attachment: fixed; background-repeat: no-repeat; background-position: center center; background-size: cover; }
header { background-color: rgba(13, 14, 18, 0.85); color: #ffffff; padding: 15px 10px; text-align: center; border-bottom: 1px solid #1f222c; backdrop-filter: blur(10px); }
header h1 { margin: 0 0 20px 0; font-size: clamp(14px, 8.00px + 1.56vw, 24px); font-weight: 800; letter-spacing: 0.08em; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
header nav { display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: center; }
header nav ul { display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; gap: 10px; }
header nav ul li { margin: 0; }
header nav a.btn-x { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: #1f222c; color: #e2e8f0; padding: 8px 16px; text-decoration: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; border: 1px solid #333848; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
header nav a.btn-x.current { background: #dc2626; color: #ffffff; border-color: #ef4444; box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); pointer-events: none; }
header nav a.btn-x:hover { background: #dc2626; color: #ffffff; border-color: #ef4444; box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); transform: translateY(-2px); }
header nav a.btn-x:active { transform: translateY(0); box-shadow: 0 0 4px rgba(220, 38, 38, 0.3); }
main { background-color: rgb(13 14 18 / 85%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 20px; max-width: 1100px; margin: 10px auto !important; box-sizing: border-box; border-radius: 8px; border: 1px solid #1f222c; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }
main h2 { margin: 0 0 10px 0; font-size: clamp(12px, 8.00px + 1.56vw, 18px); font-weight: 700; color: #f8fafc; }
.summary-banner { background: rgba(234, 88, 12, 0.1); border: 1px solid rgba(234, 88, 12, 0.3); padding: 15px; border-radius: 6px; font-weight: bold; font-size: clamp(12px, 8.00px + 1.56vw, 16px); margin: 0 auto 25px auto; color: #fb923c; box-sizing: border-box; display: table; text-align: left; word-break: break-all; box-shadow: 0 0 15px rgba(234, 88, 12, 0.05); }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.region-card { background: #0d0e12; border: 1px solid #1f222c; border-radius: 6px; padding: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.region-card h3 { margin: 0 0 12px 0; font-size: 16px; background: #15171e; color: #f1f5f9; padding: 8px 12px; border-radius: 4px; border-left: 4px solid #ea580c; }
.pref-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pref-table tr { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1f222c; padding: 6px 0; }
.pref-table td { padding: 4px; border: none !important; display: flex; align-items: center; }
.pref-table .td-name { width: 90px; flex-shrink: 0; }
.btn-link { color: #38bdf8; text-decoration: none; font-weight: bold; transition: color 0.2s ease; }
.btn-link:hover { color: #7dd3fc; text-decoration: underline; }
.pref-table .td-graph { flex-grow: 1; margin: 0 10px; padding: 0; }
.graph-track { width: 100%; height: 8px; background-color: #15171e; border-radius: 4px; overflow: hidden; border: 1px solid #222533; }
.graph-bar { height: 100%; background: linear-gradient(90deg, #ef4444, #dc2626); border-radius: 4px; transition: width 0.5s ease-out; }
.graph-bar.bar-zero { background: transparent; }
.pref-table .td-count { width: 65px; justify-content: flex-end; flex-shrink: 0; }
.count-badge { display: inline-block; background: #dc2626; color: #fff; font-weight: bold; padding: 2px 8px; border-radius: 10px; font-size: 11px; white-space: nowrap; box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4); }
.count-badge.count-zero { background: #333848; color: #64748b; box-shadow: none; }
.btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-weight: 600; border-radius: 4px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); border: none; white-space: nowrap; }
.scroll-nav-group { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.scroll-nav-group button { width: 45px; height: 45px; background-color: #1f222c; color: #e2e8f0; border: 1px solid #333848; border-radius: 50%; font-size: 16px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; transition: all 0.2s ease; }
.scroll-nav-group button:hover { background-color: #dc2626; border-color: #ef4444; color: #fff; transform: translateY(-2px); }
footer { text-align: center; padding: 20px; font-size: clamp(12px, 8.00px + 1.56vw, 14px); color: #475569; margin-top: 20px; border-top: 1px solid #1f222c; }
/* 1. PC・大型ディスプレイ */
@media screen and (min-width: 1024px) {
    header nav ul { gap: 10px; }
    header nav a.btn-x { padding: 8px 16px; font-size: 14px; }
    main { padding: 20px; max-width: 1100px; margin: 10px auto !important; }
    .region-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
    .region-card { padding: 15px; }
    .pref-table .td-name { width: 90px; }
    .pref-table .td-count { width: 65px; }
    .scroll-nav-group { bottom: 20px; right: 20px; gap: 10px; }
    .scroll-nav-group button { width: 45px; height: 45px; font-size: 16px; }
}

/* 2. タブレット（横・大型） */
@media (min-width: 835px) and (max-width: 1023px) {
    header nav ul { gap: 8px; }
    header nav a.btn-x { padding: 8px 14px; font-size: 13px; }
    main { padding: 20px; max-width: 95%; margin: 10px auto !important; }
    .region-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* 3. タブレット（縦・iPad等） */
@media (min-width: 744px) and (max-width: 834px) {
    header nav ul { gap: 6px; }
    header nav a.btn-x { padding: 7px 12px; font-size: 13px; }
    main { padding: 18px; max-width: 96%; }
    .region-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* 4. スマホ（大型・横持ち） */
@media (min-width: 541px) and (max-width: 743px) {
    header h1 { margin: 0 0 15px 0; }
    header nav ul { gap: 6px; }
    header nav a.btn-x { padding: 6px 10px; font-size: 12px; }
    main { padding: 15px; }
    .region-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 5. スマホ（標準幅・横持ち） */
@media (min-width: 441px) and (max-width: 540px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 4px; font-size: 12px; width: 100%; text-align: center; }
    .region-grid { grid-template-columns: 1fr; }
}

/* 6. スマホ（iPhone Pro Max等） */
@media (min-width: 391px) and (max-width: 440px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 11px; width: 100%; }
}

/* 7. スマホ（iPhone 12/13/14/15等標準幅） */
@media (min-width: 381px) and (max-width: 390px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 11px; width: 100%; }
    .pref-table { font-size: 12px; }
    .pref-table .td-name { width: 70px; }
}

/* 8. スマホ（iPhone SE, 基準幅） */
@media (min-width: 375px) and (max-width: 380px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 11px; width: 100%; }
    .pref-table { font-size: 12px; }
    .pref-table .td-name { width: 65px; }
    .pref-table .td-count { width: 45px; }
}

/* 9. 古いスマホ・格安スマホ（極小画面） */
@media (max-width: 374px) {
    header nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 10px; width: 100%; }
    .pref-table { font-size: 11px; }
    .pref-table .td-name { width: 60px; }
    .pref-table .td-count { width: 40px; }
    .count-badge { padding: 1px 4px; font-size: 10px; }
}