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; }
section { margin-bottom: 20px; border-bottom: 1px solid #1f222c; padding-bottom: 20px; }
h3 { font-size: clamp(12px, 8.00px + 1.56vw, 16px); color: #f1f5f9; border-left: 4px solid #dc2626; padding-left: 10px; }
.btn { display: inline-block; background: #dc2626; color: #fff; border: none; padding: 12px 25px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 14px; margin: 15px auto 0 auto; display: block; width: 100%; max-width: 250px; text-align: center; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); transition: all 0.2s ease; }
.btn:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5); }
.btn-secondary { background: #333848; border: 1px solid #475569; }
.btn-secondary:hover { background: #475569; }
.switch-btn { display: inline-block; font-size: 12px; padding: 1px 5px; background-color: #007bff; color: #fff; text-decoration: none; border-radius: 5px; }
.switch-btn:hover { background-color: #053c78; }
.btn-switch { display: inline-block; font-size: 12px; padding: 1px 5px; background-color: #007bff; color: #fff; text-decoration: none; border-radius: 5px; }
.btn-switch:hover { background-color: #053c78; }
.btn-view, .copy-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; }
.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; }
.copy-btn { background-color: #1f222c; color: #cbd5e1; border: 1px solid #333848; padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; }
.copy-btn:hover { background-color: #333848; color: #ffffff; border-color: #475569; }
.container { background-color: #0d0e12; display: flex; flex-direction: column; align-items: center; max-width: 920px; margin: 30px auto; padding: 30px 40px; border-radius: 8px !important; border: 1px solid #1f222c; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.comment { font-size: clamp(14px, 8.00px + 1.56vw, 16px); line-height: 1.75; color: #cbd5e1; text-align: left; margin-bottom: 25px; width: 100%; }
.image-box img { display: block; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); border: 1px solid #1f222c; }
.gray-text { color: #64748b; margin-bottom: 8px; font-size: 12px; }
.top-list { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; background-color: #0b0c10; table-layout: fixed; } /* モバイル崩れ防止に固定レイアウト追加 */
.top-list th, .top-list td { border: 1px solid #1f222c; padding: 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list th { background: #15171e; color: #94a3b8; font-weight: bold; }
.top-list td { color: #cbd5e1; }
.top-list tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
.top-list td[style*="color:#333"], .top-list td[style*="color: #333"] { color: #94a3b8 !important; }
section p[style*="color: #666"] { color: #64748b !important; }
.top-list td span[style*="color:#cc0000"] { color: #f87171 !important; }
.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; }
@media screen and (min-width: 1024px) {
    header nav ul { gap: 10px; }
    header nav a.btn-x { padding: 8px 16px; font-size: 14px; }
    main { padding: 30px; margin: 30px auto !important; }
    .top-list { table-layout: auto; } /* 十分な幅があるため自動計算に */
    .top-list th, .top-list td { white-space: normal; text-overflow: clip; }
}
@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: 90%; }
    .top-list th, .top-list td { padding: 10px 8px; }
}
@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: 95%; padding: 15px; }
    .top-list th, .top-list td { padding: 8px 5px; font-size: 13px; }
}
@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; }
    .top-list { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .top-list th, .top-list td { font-size: 12px; padding: 8px; }
}
@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; }
    .container { padding: 20px; margin: 15px auto; }
    .top-list { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .top-list th, .top-list td { font-size: 12px; padding: 6px; }
}
@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%; }
    .container { padding: 15px; margin: 10px auto; }
    .top-list { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .top-list th, .top-list td { font-size: 11px; padding: 6px 4px; }
}
@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%; }
    .top-list { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .top-list th, .top-list td { font-size: 11px; padding: 6px 3px; }
}
@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%; }
    .top-list { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .top-list th, .top-list td { font-size: 11px; padding: 5px 2px; }
}
@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: 10px; }
    .container { padding: 10px; }
    .top-list { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .top-list th, .top-list td { font-size: 10.5px; padding: 5px 2px; }
}
