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 16px 0; font-size: clamp(12px, 8.00px + 1.56vw, 16px); font-weight: 700; color: #f8fafc; border-left: 4px solid #dc2626; padding-left: 12px; }
main h3 { font-size: clamp(12px, 8.00px + 1.56vw, 16px); color: #f1f5f9; border-left: 4px solid #ea580c; padding-left: 12px; margin-top: 24px; margin-bottom: 12px; }
.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 { background: #dc2626; color: #fff; padding: 8px 16px; font-size: 13px; margin: 5px; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); }
.btn:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5); }
.btn-view { background: #1f222c; color: #94a3b8; padding: 4px 8px; text-decoration: none; border-radius: 4px; font-size: 12px; border: 1px solid #333848; }
.btn-view:hover { background: #ea580c; color: #fff; border-color: #f97316; }
.info-banner { background: rgba(30, 41, 59, 0.6); border: 1px solid #38bdf8; padding: 15px; border-radius: 6px; font-weight: 700; font-size: 14px; margin-bottom: 25px; color: #38bdf8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.1); }
.thumb-img { width: 50px; height: 40px; object-fit: contain; border: 1px solid #333848; border-radius: 4px; background: #15171e; }
.no-data { text-align: center; padding: 30px; color: #64748b; font-weight: bold; background: #0d0e12; border: 1px dashed #333848; border-radius: 4px; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; background-color: #0b0c10; table-layout: fixed; } /* モバイル時のはみ出し・潰れを防止する横幅固定 */
.result-table th, .result-table td { border: 1px solid #1f222c; padding: 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-table th { background: #15171e; color: #94a3b8; font-weight: bold; }
.result-table td { color: #cbd5e1; }
.result-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); }
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; }
.search-box { box-sizing: border-box !important; background-color: rgba(21, 23, 30, 0.85) !important; border: 1px solid #1f222c !important; border-radius: 6px !important; padding: 15px 20px !important; margin: 0 auto 25px auto !important; width: 100% !important; max-width: 100% !important; }
.search-box form { margin: 0 !important; padding: 0 !important; width: 100% !important; }
.search-box .form-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-end !important; gap: 12px !important; width: 100% !important; box-sizing: border-box !important; margin-bottom: 0 !important; }
.search-box .form-group { display: flex !important; flex-direction: column !important; gap: 6px !important; box-sizing: border-box !important; }
.search-box .form-group.font-word { flex: 3 1 30% !important; }
.search-box .form-group.font-pref { flex: 2 1 18% !important; }
.search-box .form-group.font-violation { flex: 2 1 18% !important; }
.search-box .form-group label { font-size: 12.5px !important; font-weight: 600 !important; color: #94a3b8 !important; text-align: left !important; margin: 0 !important; padding: 0 !important; white-space: nowrap !important; }
.search-box input[type="text"], .search-box select { box-sizing: border-box !important; width: 100% !important; height: 42px !important; padding: 8px 12px !important; font-size: 13.5px !important; color: #f1f5f9 !important; background-color: #0d0e12 !important; border: 1px solid #333848 !important; border-radius: 4px !important; outline: none !important; transition: border-color 0.2s, box-shadow 0.2s !important; }
.search-box input[type="text"]:focus, .search-box select:focus { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important; }
.search-box .btn-search { box-sizing: border-box !important; flex: 3 1 24% !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; height: 42px !important; background: #dc2626 !important; color: #ffffff !important; border: 1px solid #ef4444 !important; border-radius: 4px !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer !important; letter-spacing: 0.02em !important; white-space: nowrap !important; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important; margin: 0 !important; }
.search-box .btn-search:hover { background: #b91c1c !important; border-color: #dc2626 !important; transform: translateY(-1px) !important; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4) !important; }
@media screen and (min-width: 1024px) {
    header nav ul { gap: 10px; }
    header nav a.btn-x { padding: 8px 16px; font-size: 14px; }
    main { margin: 30px auto !important; padding: 30px; }
}
@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 { max-width: 95%; margin: 20px auto !important; }
}
@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 { max-width: 96%; padding: 15px; margin: 15px auto !important; }
    .search-box .form-row { gap: 8px !important; }
    .result-table { font-size: 13px; }
    .result-table th, .result-table td { padding: 8px 6px; }
}
@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 { max-width: 98%; padding: 15px; margin: 10px auto !important; }
    .search-box .form-row { flex-wrap: wrap !important; gap: 10px !important; }
    .search-box .form-group.font-word { flex: 1 1 100% !important; }
    .search-box .form-group.font-pref,
    .search-box .form-group.font-violation,
    .search-box .btn-search { flex: 1 1 30% !important; }
    .result-table { font-size: 12px; table-layout: auto; }
    .result-table th, .result-table td { padding: 6px 4px; white-space: normal; word-break: break-all; }
}
@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 !important; }
    .search-box .form-row { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .search-box .form-group { width: 100% !important; }
    .search-box .btn-search { width: 100% !important; margin-top: 5px !important; }
    .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: 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; white-space: normal; }
    .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 { content: ""; width: 90px; 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: "最終更新:"; }
}
@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; }
    .search-box .form-row { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .search-box .form-group { width: 100% !important; }
    .search-box .btn-search { width: 100% !important; margin-top: 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; white-space: normal; }
    .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: 10px 4px !important; }
    .search-box .form-row { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .search-box .form-group { width: 100% !important; }
    .search-box .btn-search { width: 100% !important; }
    .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: 10px; }
    .result-table td, .top-list td, .list-table td { display: flex; align-items: center; justify-content: flex-start; border: none; padding: 6px 2px; font-size: 12.5px; border-bottom: 1px dashed #1f222c; width: 100%; box-sizing: border-box; white-space: normal; 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; }
    .result-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before { content: "最終更新:"; }
}
@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: 10px 2px !important; }
    .search-box { padding: 12px 15px !important; }
    .search-box .form-row { flex-direction: column !important; gap: 10px !important; }
    .result-table thead { display: none; }
    .result-table tr { display: block; margin-bottom: 15px; padding: 8px; background: #0d0e12 !important; border: 1px solid #1f222c; border-radius: 6px; }
    .result-table td { display: flex; padding: 6px 2px; font-size: 12px; border-bottom: 1px dashed #1f222c; white-space: normal; color: #cbd5e1; word-break: break-all; }
    .result-table td:last-child { border-bottom: none; }
    .result-table td::before { width: 75px; font-weight: bold; color: #94a3b8; }
    .result-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before { content: "最終更新:"; }
}
@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 2px !important; }
    .search-box { padding: 10px !important; }
    .search-box .form-row { flex-direction: column !important; gap: 8px !important; }
    .search-box input[type="text"], .search-box select, .search-box .btn-search { height: 38px !important; font-size: 12.5px !important; }
    .result-table thead { display: none; }
    .result-table tr { display: block; margin-bottom: 15px; padding: 6px; background: #0d0e12 !important; border: 1px solid #1f222c; border-radius: 4px; }
    .result-table td { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 2px; font-size: 12px; border-bottom: 1px dashed #1f222c; white-space: normal; color: #cbd5e1; word-break: break-all; }
    .result-table td:last-child { border-bottom: none; }
    .result-table td::before { width: 100%; margin-bottom: 2px; font-weight: bold; color: #94a3b8; font-size: 11px; }
    .result-table td:nth-child(1)::before { content: "登録No:"; }
    .result-table td:nth-child(2)::before { content: "車両番号:"; }
    .result-table td:nth-child(3)::before { content: "都道府県:"; }
    .result-table td:nth-child(4)::before { content: "車色:"; }
    .result-table td:nth-child(5)::before { content: "違反運転:"; }
    .result-table td:nth-child(6)::before { content: "年齢/性別:"; }
    .result-table td:nth-child(7)::before { content: "写真:"; }
    .result-table td:nth-child(8)::before { content: "参照:"; }
    .result-table td:nth-child(9)::before { content: "最終更新:"; }
}
