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; }
.no-data { text-align: center; padding: 30px; color: #f87171; background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.3); border-radius: 4px; font-weight: bold; }
.btn, .btn-view { 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; }
.btn-view { display: inline-block; background: #1f222c; color: #94a3b8; padding: 4px 8px; text-decoration: none; border-radius: 4px; font-size: 12px; border: 1px solid #333848; transition: all 0.2s ease; }
.btn-view:hover { background: #ea580c; color: #fff; border-color: #f97316; }
.thumb-img { width: 30px; height: 20px; object-fit: contain; border: 1px solid #333848; border-radius: 4px; background: #15171e; }
.pagination { margin-top: 20px; text-align: center; font-size: 14px; }
.pagination a { display: inline-block; background: #1f222c; color: #cbd5e1; padding: 6px 12px; text-decoration: none; border-radius: 4px; margin: 0 3px; border: 1px solid #333848; font-weight: 600; transition: all 0.2s ease; }
.pagination a:hover { background: #333848; color: #fff; border-color: #475569; }
.pagination span.current { display: inline-block; background: #dc2626; color: #fff; padding: 6px 12px; border-radius: 4px; margin: 0 3px; font-weight: bold; border: 1px solid #ef4444; box-shadow: 0 0 8px rgba(220, 38, 38, 0.4); }
.list-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; background-color: #0b0c10; }
.list-table th, .list-table td { border: 1px solid #1f222c; padding: 10px; text-align: left; }
.list-table th { background: #15171e; color: #94a3b8; font-weight: bold; }
.list-table td { color: #cbd5e1; }
.list-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
.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); }
@media screen and (min-width: 1024px) {
    header nav ul { gap: 10px; }
    header nav a.btn-x { padding: 8px 16px; font-size: 14px; }
    main { padding: 40px; margin: 40px auto; }
    .result-table, .top-list, .list-table { font-size: 14px; }
    .result-table th, .result-table td, .top-list th, .top-list td, .list-table th, .list-table td { padding: 12px 10px; }
    .region-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
    .thumb-img { width: 35px; height: 23px; }
}
@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: 30px; margin: 30px auto; }
    .result-table, .top-list, .list-table { font-size: 14px; }
    .result-table th, .result-table td, .top-list th, .top-list td, .list-table th, .list-table td { padding: 10px 8px; }
    .region-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
    .thumb-img { width: 32px; height: 21px; }
}
@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: 20px; margin: 20px 15px; }
    .info-banner { padding: 12px; }
    .result-table, .top-list, .list-table { font-size: 13px; display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .result-table th, .result-table td, .top-list th, .top-list td, .list-table th, .list-table td { padding: 8px 6px; }
    .region-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
    .summary-banner { font-size: 15px; padding: 12px; }
    .thumb-img { width: 30px; height: 20px; }
    .btn-view { padding: 3px 6px; font-size: 11px; }
}
@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; margin: 15px 10px; border-radius: 6px; }
    .info-banner { padding: 12px; margin-bottom: 20px; }
    .result-table, .top-list, .list-table { font-size: 12px; display: block; overflow-x: auto; white-space: nowrap; }
    .result-table th, .result-table td, .top-list th, .top-list td, .list-table th, .list-table td { padding: 8px 4px; }
    .region-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
    .summary-banner { font-size: 14px; padding: 10px; }
    .thumb-img { width: 28px; height: 18px; }
    .btn-view { padding: 2px 5px; font-size: 11px; }
    main { overflow-x: auto; }
}
@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; }
    main { padding: 12px; margin: 10px 8px; border-radius: 4px; }
    .form-group { width: 100% !important; min-width: 100% !important; }
    .btn-search { max-width: 100%; }
    .result-table, .top-list, .list-table { font-size: 12px; min-width: 600px; display: block; overflow-x: auto; white-space: nowrap; padding-bottom: 8px; }
    .result-table th, .result-table td, .top-list th, .top-list td, .list-table th, .list-table td { padding: 8px 4px; }
    div:has(>.result-table), section { overflow-x: auto; -webkit-overflow-scrolling: touch; } 
    .region-grid { grid-template-columns: 1fr; gap: 15px; }
    .summary-banner { font-size: 14px; padding: 10px; }
    .pref-table .td-name { width: 75px; }
    .pref-table .td-graph { margin: 0 6px; }
    .pagination a, .pagination span.current { padding: 5px 10px; font-size: 12px; margin: 0 1px; }
}
@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%; }
    main { padding: 12px; margin: 10px 5px !important; }
    .summary-banner { font-size: 14px; padding: 12px 8px; margin-bottom: 15px; }
    .result-table thead, .top-list thead, .list-table thead { display: none; }
    .result-table, .result-table tbody, .result-table tr, 
    .top-list, .top-list tbody, .top-list tr,
    .list-table, .list-table tbody, .list-table tr { display: block; width: 100%; }
    .result-table tr, .top-list tr, .list-table tr { 
    display: block; margin-bottom: 25px; border: 1px solid #1f222c; border-radius: 8px; background: #0d0e12 !important; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
    .result-table td, .top-list td, .list-table td { 
    display: flex; align-items: center; justify-content: flex-start; border: none; padding: 8px 4px; font-size: 13px; background: transparent; border-bottom: 1px dashed #1f222c; width: 100%; box-sizing: border-box; color: #cbd5e1; word-break: break-all; }
    .result-table td:last-child, .top-list td:last-child, .list-table td:last-child { border-bottom: none; }
    .result-table td::before, .top-list td::before, .list-table td::before {
    width: 85px; font-weight: bold; color: #94a3b8; flex-shrink: 0; text-align: left; }
    .result-table td:nth-child(1)::before, .top-list td:nth-child(1)::before, .list-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before, .top-list td:nth-child(2)::before, .list-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before, .top-list td:nth-child(3)::before, .list-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before, .top-list td:nth-child(4)::before, .list-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before, .top-list td:nth-child(5)::before, .list-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before, .top-list td:nth-child(6)::before, .list-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before, .top-list td:nth-child(7)::before, .list-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before, .top-list td:nth-child(8)::before, .list-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before, .top-list td:nth-child(9)::before, .list-table td:nth-child(9)::before { content: "最終更新:"; }
    .thumb-img { width: 50px; height: 35px; margin: 0; }
    .btn-view { padding: 4px 12px; margin: 0; display: inline-block; }
    .region-grid { grid-template-columns: 1fr; gap: 15px; }
    .region-card { padding: 12px; }
    .btn-link { display: block; padding: 4px 0; font-size: 14px; }
    .pref-table td { padding: 8px 6px; }
}
@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%; }
    main { padding: 10px; margin: 8px 4px !important; }
    .summary-banner { font-size: 13px; padding: 12px 6px; margin-bottom: 15px; }
    .result-table thead, .top-list thead, .list-table thead { display: none; }
    .result-table, .result-table tbody, .result-table tr, 
    .top-list, .top-list tbody, .top-list tr,
    .list-table, .list-table tbody, .list-table tr { display: block; width: 100%; }
    .result-table tr, .top-list tr, .list-table tr { display: block; margin-bottom: 25px; border: 1px solid #1f222c; border-radius: 8px; background: #0d0e12 !important; padding: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
    .result-table td, .top-list td, .list-table td { display: flex; align-items: center; justify-content: flex-start; border: none; padding: 7px 4px; font-size: 13px; background: transparent; border-bottom: 1px dashed #1f222c; width: 100%; box-sizing: border-box; color: #cbd5e1; word-break: break-all; }
    .result-table td:last-child, .top-list td:last-child, .list-table td:last-child { border-bottom: none; }
    .result-table td::before, .top-list td::before, .list-table td::before { width: 85px; font-weight: bold; color: #94a3b8; flex-shrink: 0; text-align: left; }
    .result-table td:nth-child(1)::before, .top-list td:nth-child(1)::before, .list-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before, .top-list td:nth-child(2)::before, .list-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before, .top-list td:nth-child(3)::before, .list-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before, .top-list td:nth-child(4)::before, .list-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before, .top-list td:nth-child(5)::before, .list-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before, .top-list td:nth-child(6)::before, .list-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before, .top-list td:nth-child(7)::before, .list-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before, .top-list td:nth-child(8)::before, .list-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before, .top-list td:nth-child(9)::before, .list-table td:nth-child(9)::before { content: "最終更新:"; }
    .thumb-img { width: 50px; height: 35px; }
    .btn-view { padding: 4px 10px; }
    .region-grid { grid-template-columns: 1fr; gap: 15px; }
    .region-card { padding: 10px; }
    .btn-link { display: block; padding: 4px 0; font-size: 14px; }
    .pref-table td { padding: 8px 6px; }
    .count-badge { font-size: 10px; padding: 2px 6px; }
}
@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%; }
    main { padding: 10px; margin: 5px 2px !important; }
    .summary-banner { font-size: 13px; padding: 10px 4px; margin-bottom: 12px; }
    .result-table thead, .top-list thead, .list-table thead { display: none; }
    .result-table, .result-table tbody, .result-table tr, 
    .top-list, .top-list tbody, .top-list tr,
    .list-table, .list-table tbody, .list-table tr { display: block; width: 100%; }
    .result-table tr, .top-list tr, .list-table tr { display: block; margin-bottom: 20px; border: 1px solid #1f222c; border-radius: 6px; background: #0d0e12 !important; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
    .result-table td, .top-list td, .list-table td { display: flex; align-items: center; justify-content: flex-start; border: none; padding: 6px 4px; font-size: 12px; background: transparent; border-bottom: 1px dashed #1f222c; width: 100%; box-sizing: border-box; color: #cbd5e1; word-break: break-all; }
    .result-table td:last-child, .top-list td:last-child, .list-table td:last-child { border-bottom: none; }
    .result-table td::before, .top-list td::before, .list-table td::before { width: 80px; font-weight: bold; color: #94a3b8; flex-shrink: 0; text-align: left; }
    .result-table td:nth-child(1)::before, .top-list td:nth-child(1)::before, .list-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before, .top-list td:nth-child(2)::before, .list-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before, .top-list td:nth-child(3)::before, .list-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before, .top-list td:nth-child(4)::before, .list-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before, .top-list td:nth-child(5)::before, .list-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before, .top-list td:nth-child(6)::before, .list-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before, .top-list td:nth-child(7)::before, .list-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before, .top-list td:nth-child(8)::before, .list-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before, .top-list td:nth-child(9)::before, .list-table td:nth-child(9)::before { content: "最終更新:"; }
    .thumb-img { width: 45px; height: 32px; }
    .btn-view { padding: 3px 8px; font-size: 11px; }
    .region-grid { grid-template-columns: 1fr; gap: 12px; }
    .region-card { padding: 8px; }
    .region-card h3 { font-size: 14px; padding: 5px 10px; margin-bottom: 8px; }
    .btn-link { display: block; padding: 5px 0; font-size: 13px; }
    .pref-table td { padding: 6px 4px; }
    .count-badge { font-size: 10px; padding: 1px 5px; }
}
@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%; }
    main { padding: 8px; margin: 5px 0 !important; border-radius: 0; }
     .info-banner { font-size: 12px; }
    .summary-banner { font-size: 12px; padding: 8px 4px; margin-bottom: 10px; font-weight: normal; }
    .result-table thead, .top-list thead, .list-table thead { display: none; }
    .result-table, .result-table tbody, .result-table tr, 
    .top-list, .top-list tbody, .top-list tr,
    .list-table, .list-table tbody, .list-table tr { display: block; width: 100%; }
    .result-table tr, .top-list tr, .list-table tr { 
    display: block; margin-bottom: 18px; border: 1px solid #1f222c; border-radius: 8px; background: #0d0e12 !important; padding: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
    .result-table td, .top-list td, .list-table td { display: flex; align-items: center; justify-content: flex-start; border: none; padding: 6px 4px; font-size: 12px; background: transparent; border-bottom: 1px dashed #1f222c; width: 100%; box-sizing: border-box; color: #cbd5e1; word-break: break-all; }
    .result-table td:last-child, .top-list td:last-child, .list-table td:last-child { border-bottom: none; }
    .result-table td::before, .top-list td::before, .list-table td::before { width: 85px; font-weight: bold; color: #94a3b8; flex-shrink: 0; text-align: left; }
    .result-table td:nth-child(1)::before, .top-list td:nth-child(1)::before, .list-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before, .top-list td:nth-child(2)::before, .list-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before, .top-list td:nth-child(3)::before, .list-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before, .top-list td:nth-child(4)::before, .list-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before, .top-list td:nth-child(5)::before, .list-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before, .top-list td:nth-child(6)::before, .list-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before, .top-list td:nth-child(7)::before, .list-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before, .top-list td:nth-child(8)::before, .list-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before, .top-list td:nth-child(9)::before, .list-table td:nth-child(9)::before { content: "最終更新:"; }
    .thumb-img { width: 50px; height: 35px; }
    .btn-view { padding: 4px 10px; }
    .region-grid { grid-template-columns: 1fr; gap: 15px; }
    .region-card { padding: 10px; }
    .btn-link { display: block; padding: 4px 0; font-size: 14px; }
    .pref-table td { padding: 8px 6px; }
    .count-badge { font-size: 10px; padding: 2px 6px; }
}
