:root { color-scheme:light; --navy:#17375f; --paper:#fffef9; --ink:#172337; --blue:#075b9a; --green:#237858; --red:#b3332f; --line:#b8ad98; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; color:var(--ink); background:#f2efe7; font:16px/1.78 "Yu Gothic UI","Yu Gothic",Meiryo,sans-serif; }
.en { display:none; }
html[lang="en"] .ja { display:none; }
html[lang="en"] .en { display:revert; }
a { color:var(--blue); text-underline-offset:3px; }
button,input { font:inherit; }
button { min-height:42px; padding:7px 15px; color:var(--navy); background:var(--paper); border:1px solid #8e8b7d; border-radius:8px; cursor:pointer; line-height:1.5; }
button:hover { background:#e9eef3; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid #b7802f; outline-offset:3px; }
.skip { position:fixed; top:-80px; z-index:100; background:white; padding:12px; }
.skip:focus { top:0; }
.topline { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px max(24px,calc((100vw - 1360px)/2)); padding-right:116px; background:#ece6da; }
.guides-link { font-size:.88rem; font-weight:700; }
.language { display:flex; gap:8px; }
.language button { border-radius:999px; padding:5px 14px; min-height:36px; font-size:.8rem; }
.language button[aria-pressed="true"] { background:var(--navy); color:#fff; border-color:var(--navy); }
.hero { background:linear-gradient(118deg,#17375f,#1d3f6b); color:white; }
.hero>div { max-width:1440px; margin:auto; padding:30px 72px 35px; }
.edition { margin:0 0 7px; font-size:.83rem; font-weight:700; letter-spacing:.035em; }
h1 { margin:0; font:700 clamp(2rem,4.1vw,3.45rem)/1.25 YuMincho,"Yu Mincho",serif; letter-spacing:.015em; overflow-wrap:anywhere; }
html[lang="en"] h1 { font-size:clamp(1.8rem,3.7vw,3.25rem); }
.category-nav { display:flex; gap:28px; padding:10px max(24px,calc((100vw - 1296px)/2)); background:var(--paper); border-bottom:1px solid #aeb8c7; overflow:auto; white-space:nowrap; box-shadow:0 3px 12px #14233c12; }
.category-nav a { flex-shrink:0; min-height:32px; font-weight:800; text-decoration:none; border-bottom:2px solid transparent; }
.category-nav a[aria-current="page"] { color:var(--navy); border-color:#a76800; }
.floating-progress { position:fixed; top:12px; right:18px; width:72px; height:72px; display:grid; place-items:center; z-index:20; border:2px solid var(--navy); border-radius:50%; background:#fffef9f5; color:#194a3c; font-weight:850; box-shadow:0 6px 20px #09182c24; pointer-events:none; }
.toolbar { display:flex; justify-content:flex-end; gap:10px; max-width:1360px; margin:12px auto; padding:0 24px; }
.search-panel,.progress-panel,.notices { max-width:1296px; margin:18px auto; }
.search-panel { padding:18px 22px; border:1px solid #aeb8c7; border-radius:12px; background:#f9f6ef; }
.search-panel label { display:block; color:var(--navy); font-size:.9rem; font-weight:800; margin-bottom:7px; }
.search-controls { display:flex; gap:10px; }
.search-controls button { flex-shrink:0; white-space:nowrap; }
.floating-progress[hidden] { display:none; }
input[type="search"] { width:100%; min-width:0; min-height:44px; padding:8px 12px; border:1px solid #8d9db0; border-radius:6px; background:white; }
#search-status:empty { display:none; }
#search-status { margin:12px 0 0; font-size:.9rem; }
#search-results { display:grid; gap:8px; max-height:460px; overflow-y:auto; }
.search-result { display:block; border:1px solid #ccd4dc; border-radius:7px; padding:10px 12px; margin-top:6px; background:var(--paper); text-decoration:none; }
.search-result small { display:block; color:#5b6572; }
.search-result p { margin:3px 0; color:var(--ink); font-size:.88rem; }
.progress-panel { padding:22px 26px; background:linear-gradient(110deg,#fffef9,#f8f2e5); border:1px solid var(--line); border-radius:16px; }
.progress-panel>div:first-child { display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--navy); }
#progress-number { color:#9a6500; font-weight:850; font-size:1.15rem; white-space:nowrap; }
progress { display:block; width:100%; height:12px; margin:12px 0; accent-color:var(--green); }
.progress-panel>p { margin:0 0 12px; font-size:.85rem; color:#465161; }
#save-warning { margin-top:14px; padding:12px; border:1px solid #a76b36; border-radius:8px; background:#fff2d6; }
#save-warning p { margin:0 0 8px; }
.notices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.notice { padding:17px 20px; border:1px solid #9d7f64; background:#f6e8df; border-radius:12px; }
.notice:nth-child(2) { background:#e4eee8; border-color:#688d7d; }
.notice strong { color:var(--navy); }
.notice p { margin:7px 0 0; font-size:.9rem; }
.layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:34px; max-width:1360px; margin:32px auto 52px; padding:0 24px; align-items:start; }
.toc { position:sticky; top:22px; background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:20px 16px; max-height:calc(100vh - 50px); overflow-y:auto; box-shadow:0 8px 24px #1320330b; }
.toc h2 { margin:0 0 12px; color:#a76800; font-size:.9rem; letter-spacing:.1em; }
.toc a { display:block; padding:7px 5px; font-size:.85rem; line-height:1.6; text-decoration:none; color:#394659; border-radius:4px; }
.toc a:hover { background:#eee8dc; }
main { min-width:0; }
h2,h3 { color:var(--navy); line-height:1.5; }
.category-title { margin:0 0 18px; font-size:1.4rem; }
.chart-actions { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 23px; }
.chapter { margin:0 0 30px; }
summary { cursor:pointer; color:var(--navy); font-weight:800; }
.chapter>summary { font-size:1.2rem; padding:14px 5px; border-bottom:1px solid var(--line); }
.chapter-intro { padding:0 6px; color:#4e5c6a; font-size:.9rem; }
.route-card { position:relative; margin:14px 0; padding:22px 24px; border:1px solid var(--line); border-radius:15px; background:var(--paper); box-shadow:0 6px 16px #1320330c; }
.step-heading { display:flex; gap:15px; align-items:flex-start; line-height:1.65; cursor:pointer; }
input[type="checkbox"] { flex-shrink:0; width:24px; height:24px; margin:2px 0; accent-color:#087653; cursor:pointer; }
.route-card ol { padding-left:28px; margin:15px 0 0 38px; }
.route-card li { margin:8px 0; }
.note { margin:15px 0 0 38px; padding:11px 13px; background:#f2ead9; border:1px solid #c9bca2; border-radius:7px; font-size:.9rem; }
.references { display:flex; flex-wrap:wrap; gap:9px; margin:12px 0 0 38px; }
.reference { display:inline-block; font-size:.86rem; font-weight:700; }
.route-card .stamp { display:none; }
.route-card.checked { border-color:var(--green); padding-bottom:66px; box-shadow:0 6px 18px #1857421a; }
.route-card.checked .stamp { position:absolute; right:16px; bottom:14px; width:64px; height:32px; display:grid; place-items:center; border:2px solid var(--red); border-radius:4px; color:var(--red); background:radial-gradient(circle at 30% 40%,#fffef9 0 1px,transparent 1.5px) 0 0/10px 9px,#fffef9; font-weight:900; font-size:.9rem; letter-spacing:.08em; line-height:1; transform:none; }
.route-card.bump { animation:card-bump .58s ease; }
.route-card.bump .stamp { animation:stamp-pop .58s ease; }
.floating-progress.bump { animation:progress-bump .64s ease; }
@keyframes card-bump { 35% { transform:scale(1.012); } 70% { transform:scale(.997); } }
@keyframes stamp-pop { 0% { opacity:0; transform:scale(1.4); } 58% { opacity:1; transform:scale(.94); } 100% { transform:none; } }
@keyframes progress-bump { 34% { transform:scale(1.16); } 66% { transform:scale(.94); } }
.basic-card,.data-section,.enemy-card { padding:22px 24px; background:var(--paper); border:1px solid var(--line); border-radius:15px; margin:0 0 20px; }
.basic-card h2,.data-section h2 { margin:0 0 12px; font-size:1.18rem; }
.basic-card p { margin:12px 0 0; }
.table-wrap { overflow-x:auto; border:1px solid #b6c4d2; border-radius:8px; margin-top:16px; }
table { width:100%; min-width:680px; border-collapse:collapse; font-size:.88rem; line-height:1.7; }
th { background:#223f63; color:white; text-align:left; padding:11px 12px; vertical-align:top; }
td { padding:11px 12px; border-top:1px solid #c5d0dc; vertical-align:top; }
th:first-child,td:first-child { min-width:150px; width:20%; font-weight:750; }
tbody tr:nth-child(even) { background:#eff3f6; }
.price-table th:nth-last-child(-n+2),.price-table td:nth-last-child(-n+2) { min-width:100px; }
@media screen {
  table.equipment-table { min-width:1000px; }
  table.equipment-table th:first-child,table.equipment-table td:first-child { min-width:48px; width:48px; }
  table.equipment-table th:not(:first-child),table.equipment-table td:not(:first-child) { min-width:130px; }
}
tbody tr:target { background:#fff0c8; }
.enemy-card summary { font-size:1.1rem; }
.enemy-card>p { margin:13px 0; }
.eyebrow { color:#986914; font-size:.87rem; font-weight:700; }
.category-intro { margin-top:0; }
footer { padding:26px 70px 38px; text-align:center; border-top:1px solid var(--line); }
.back-top { position:fixed; width:46px; height:46px; right:18px; bottom:max(18px,env(safe-area-inset-bottom)); border-radius:50%; padding:0; background:#fffdf8; color:var(--navy); z-index:30; box-shadow:0 8px 22px #09182c38; font-weight:900; }
:target { scroll-margin-top:28px; }
@media(max-width:1390px) { .search-panel,.progress-panel,.notices { margin-left:48px; margin-right:48px; } }
@media(max-width:760px) {
  body { font-size:16px; line-height:1.78; }
  .topline { padding:8px 88px 8px 16px; min-height:91px; flex-direction:column; align-items:flex-start; gap:6px; }
  .language { gap:7px; }
  .language button { min-height:32px; font-size:.74rem; padding:4px 12px; }
  .floating-progress { top:11px; right:11px; width:58px; height:58px; font-size:.9rem; }
  .hero>div { padding:25px 20px 28px; }
  h1,html[lang="en"] h1 { font-size:clamp(1.6rem,7vw,2.15rem); line-height:1.3; }
  .edition { font-size:.73rem; }
  .category-nav { padding:10px 20px; gap:22px; font-size:.84rem; }
  .toolbar { padding:0 16px; flex-wrap:wrap; }
  .search-panel,.progress-panel,.notices { margin:16px 74px 16px 15px; }
  .search-panel { padding:16px; }
  .search-controls { gap:7px; }
  .search-controls button { padding:7px 11px; }
  .progress-panel { padding:18px; }
  .progress-panel>div:first-child { align-items:flex-start; flex-wrap:wrap; gap:6px 12px; }
  #progress-number { font-size:1rem; }
  .progress-panel button { font-size:.9rem; }
  .notices { grid-template-columns:1fr; }
  .notice { padding:16px; }
  .layout { grid-template-columns:1fr; padding:0 74px 0 15px; gap:26px; margin-top:26px; }
  .toc { position:static; max-height:none; padding:17px; }
  .toc a { padding:7px 0; font-size:.87rem; }
  .route-card { padding:18px 17px; }
  .step-heading { gap:12px; }
  .route-card ol { margin-left:0; padding-left:24px; }
  .note,.references { margin-left:0; }
  .basic-card,.data-section,.enemy-card { padding:18px 17px; }
  .back-top { right:18px; }
  footer { padding:25px 75px 38px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } html { scroll-behavior:auto!important; } }
@media print { .topline,.category-nav,.toolbar,.search-panel,.toc,.chart-actions,.back-top,.floating-progress,.progress-panel button { display:none!important; } .layout { display:block; margin:0; padding:0; } .hero { background:white; color:black; } .hero>div { padding:12px; } h1,html[lang="en"] h1 { font-size:24pt; } .search-panel,.progress-panel,.notices { margin:12px 0; } .route-card,.basic-card,.enemy-card { break-inside:avoid; box-shadow:none; } }

@media screen {
  .table-wrap .numbered-table th:first-child,.table-wrap .numbered-table td:first-child { min-width:48px; width:48px; }
}
