:root{
  --night:#111a2d;
  --night2:#233553;
  --wine:#743a46;
  --gold:#c9a75d;
  --gold2:#eedb9f;
  --paper:#fffdf6;
  --cream:#f2ead8;
  --ink:#20232b;
  --muted:#636a78;
  --line:#d5c7a9;
  --good:#176b56;
  --danger:#9a3140;
  --shadow:0 10px 28px rgba(20,27,42,.12);
  color-scheme:light}

html[data-theme="dark"]{
  --night:#080d17;
  --night2:#17243a;
  --wine:#91495b;
  --gold:#dbbf79;
  --gold2:#f2e1aa;
  --paper:#20242c;
  --cream:#141821;
  --ink:#edf0f5;
  --muted:#b8bfca;
  --line:#4c5260;
  --good:#6bd5b0;
  --danger:#ff9bab;
  --shadow:0 10px 28px rgba(0,0,0,.4);
  color-scheme:dark}

*{
  box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:1rem}
body{
  margin:0;
  background:radial-gradient(circle at 10% 0,rgba(201,167,93,.12),transparent 28rem),var(--cream);
  color:var(--ink);
  font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  line-height:1.75;
  font-size:16px}
a{
  color:#155ea2;
  text-underline-offset:.18em}
html[data-theme="dark"] a{
  color:#91caff}
button,input,select{
  font:inherit}
.skip-link{
  position:fixed;
  left:.5rem;
  top:-6rem;
  z-index:9999;
  background:var(--paper);
  padding:.75rem 1rem}
.skip-link:focus{
  top:.5rem}
.site-header{
  background:linear-gradient(145deg,var(--night),var(--night2) 62%,#344561);
  color:white;
  border-bottom:4px solid var(--gold)}
.header-top,.hero,.global-nav,.utility-inner{
  max-width:1280px;
  margin:auto}
.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  padding:.7rem 1.2rem;
  border-bottom:1px solid rgba(255,255,255,.17)}
.header-top a{
  color:white}
.lang-switch{
  display:flex;
  gap:.35rem;
  flex-wrap:wrap}
.hero{
  padding:1.8rem 1.2rem 1.35rem}
.hero h1{
  font-family:"Yu Mincho",YuMincho,Georgia,serif;
  font-size:clamp(1.85rem,5vw,3.15rem);
  line-height:1.25;
  margin:0;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.28)}
.hero-sub{
  max-width:70rem;
  margin:.65rem 0 0;
  color:#f3efe4}
.scope-chips{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:1rem}
.scope-chip{
  border:1px solid rgba(255,255,255,.48);
  border-radius:999px;
  padding:.22rem .7rem;
  font-size:.86rem;
  background:rgba(0,0,0,.13)}
.global-nav{
  padding:0 1rem 1rem}
.global-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  list-style:none;
  margin:0;
  padding:0}
.global-nav a{
  display:block;
  color:white;
  text-decoration:none;
  padding:.48rem .72rem;
  border-radius:.45rem;
  background:rgba(255,255,255,.08)}
.global-nav a:hover,.global-nav a:focus-visible,.global-nav a[aria-current="page"]{
  background:var(--gold);
  color:#172033}
.utility-bar{
  background:var(--night);
  color:white;
  border-bottom:1px solid rgba(255,255,255,.18)}
.utility-inner{
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.58rem 1rem;
  flex-wrap:wrap}
.tool-button,.lang-button{
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  border-radius:.45rem;
  padding:.45rem .75rem;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.3rem}
.tool-button:hover,.tool-button:focus-visible,.lang-button:hover,.lang-button:focus-visible{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,167,93,.24)}
.lang-button[aria-pressed="true"]{
  background:var(--gold);
  color:#171d29;
  border-color:var(--gold);
  font-weight:850}
.utility-bar .tool-button{
  background:#faf3df;
  color:#1b2434;
  border-color:#d8c58f}
.utility-spacer{
  flex:1}
.mini-progress{
  display:flex;
  align-items:center;
  gap:.5rem;
  white-space:nowrap}
.progress-track{
  width:8rem;
  height:.58rem;
  border-radius:1rem;
  background:rgba(255,255,255,.25);
  overflow:hidden}
.progress-fill{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#e6c15e,#fff0ae);
  width:0;
  transition:width .25s}
.volume-wrap{
  display:flex;
  align-items:center;
  gap:.3rem;
  white-space:nowrap}
.volume-wrap input{
  width:5.5rem}
main{
  max-width:1180px;
  margin:auto;
  padding:1.6rem 1rem 5rem}
.page-lead,.card,.quest-step,.data-block,.map-card,.story-panel,.boss-card,.feature-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:.75rem;
  box-shadow:var(--shadow)}
.page-lead{
  padding:1.25rem 1.4rem;
  margin-bottom:1.1rem;
  background:linear-gradient(140deg,var(--paper),color-mix(in srgb,var(--paper) 84%,var(--gold2)))}
.page-lead h2{
  margin-top:0}
.notice,.warning{
  padding:.9rem 1rem;
  margin:1rem 0;
  border:1px solid var(--line);
  border-radius:.55rem}
.notice{
  background:color-mix(in srgb,var(--paper) 82%,#78c8aa)}
.warning{
  background:color-mix(in srgb,var(--paper) 82%,#e9a76b)}
h2{
  font-family:"Yu Mincho",YuMincho,Georgia,serif;
  color:var(--night2);
  line-height:1.38}
html[data-theme="dark"] h2{
  color:#d5e5ff}
h3{
  line-height:1.4}
.anchor{
  margin-top:2rem}
.card-grid,.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1rem;
  margin:1rem 0}
.card,.feature-card{
  padding:1rem;
  min-width:0}
.card h3,.feature-card h3{
  margin-top:0}
.stat{
  font-size:1.55rem;
  font-weight:900;
  color:var(--wine)}
html[data-theme="dark"] .stat{
  color:#efacbd}
.stat-strip{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  margin:1rem 0}
.stat-strip span{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:.55rem;
  padding:.55rem .8rem}
.toc{
  padding:1rem 1.35rem}
.toc ol{
  columns:2;
  gap:2rem}
.toc li{
  break-inside:avoid;
  margin:.3rem 0}
.chapter{
  margin-top:3rem}
.chapter-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border-bottom:3px double var(--gold)}
.chapter-head h2{
  margin-bottom:.5rem}
.chapter-meter{
  white-space:nowrap;
  font-weight:850;
  color:var(--good)}
.accordion-controls{
  display:flex;
  justify-content:center;
  gap:.7rem;
  margin:1.5rem auto .6rem;
  flex-wrap:wrap}
.story-panel{
  margin:1rem 0 1.35rem;
  overflow:hidden;
  background:linear-gradient(135deg,color-mix(in srgb,var(--paper) 80%,var(--gold2)),var(--paper))}
.story-panel summary{
  cursor:pointer;
  padding:1.1rem 1.25rem;
  font-family:"Yu Mincho",YuMincho,serif;
  font-size:1.15rem;
  font-weight:850;
  list-style:none}
.story-panel summary::-webkit-details-marker,.quest-step summary::-webkit-details-marker,.data-block summary::-webkit-details-marker{
  display:none}
.story-panel summary::after,.quest-step summary::after,.data-block summary::after{
  content:"＋";
  margin-left:auto}
.story-panel[open] summary::after,.quest-step[open] summary::after,.data-block[open] summary::after{
  content:"−"}
.story-panel summary,.quest-step summary,.data-block summary{
  display:flex;
  align-items:center;
  gap:.75rem}
.story-copy{
  padding:0 1.4rem 1.3rem}
.story-copy p{
  margin:.65rem 0}
.quest-step,.data-block{
  margin:.75rem 0;
  overflow:hidden}
.quest-step summary,.data-block summary{
  cursor:pointer;
  padding:.85rem 1rem;
  background:color-mix(in srgb,var(--paper) 87%,var(--night2));
  list-style:none}
.step-number{
  display:grid;
  place-items:center;
  min-width:2.25rem;
  height:2.25rem;
  border-radius:50%;
  background:var(--night);
  color:white;
  font-weight:850}
.step-check{
  width:1.28rem;
  height:1.28rem;
  accent-color:var(--good);
  flex:0 0 auto}
.step-title{
  font-weight:850}
.step-meta{
  font-size:.86rem;
  color:var(--muted)}
.step-body{
  padding:1rem 1.2rem}
.fact-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.75rem}
.fact-grid p{
  margin:.3rem 0;
  padding:.65rem;
  border:1px solid var(--line);
  border-radius:.5rem}
.step-actions,.utility-inline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.8rem}
.boss-box,.boss-card{
  border:1px solid #c68c68;
  background:color-mix(in srgb,var(--paper) 88%,#eaa373);
  padding:.8rem 1rem;
  border-radius:.55rem;
  margin:.7rem 0}
.boss-box span{
  display:block;
  margin:.25rem 0}
.completion-badge{
  display:none;
  color:var(--good);
  font-weight:900}
.quest-step.is-complete .completion-badge{
  display:inline}
.quest-step.just-completed{
  animation:completeGlow .55s ease}
@keyframes completeGlow{
  50%{
    transform:scale(1.008);
    box-shadow:0 0 0 5px rgba(36,153,112,.24)}
  }
.table-controls{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin:.8rem 0;
  flex-wrap:wrap}
.table-controls input,.map-controls input,.map-controls select{
  min-width:min(25rem,75vw);
  padding:.55rem .65rem;
  border:1px solid var(--line);
  border-radius:.45rem;
  background:var(--paper);
  color:var(--ink)}
.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:.55rem;
  margin:.75rem 0;
  background:var(--paper)}
table{
  border-collapse:collapse;
  width:100%;
  font-size:.92rem}
caption{
  text-align:left;
  font-weight:850;
  padding:.7rem}
th,td{
  padding:.55rem .65rem;
  border-bottom:1px solid var(--line);
  vertical-align:top}
thead th{
  background:var(--night);
  color:white;
  text-align:left;
  white-space:nowrap}
th[data-sort]{
  cursor:pointer}
th[data-direction="asc"]::after{
  content:" ▲"}
th[data-direction="desc"]::after{
  content:" ▼"}
tbody tr:nth-child(even){
  background:color-mix(in srgb,var(--paper) 94%,var(--night2))}
tbody tr:hover{
  background:color-mix(in srgb,var(--paper) 84%,var(--gold2))}
td[hidden],tr[hidden]{
  display:none}
.checklist{
  padding-left:1.25rem}
.small,small{
  font-size:.82rem;
  color:var(--muted)}
.muted{
  color:var(--muted)}
.official-en{
  font-size:.82em;
  color:var(--muted);
  white-space:nowrap}
.map-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.6rem;
  padding:1rem;
  margin:1rem 0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:.65rem}
.map-controls input{
  flex:1}
.map-index{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(225px,1fr));
  gap:.8rem;
  margin:1rem 0}
.map-index button{
  width:100%;
  text-align:left;
  border:1px solid var(--line);
  border-radius:.55rem;
  background:var(--paper);
  color:var(--ink);
  padding:.75rem;
  cursor:pointer}
.map-index button:hover,.map-index button[aria-current="true"]{
  border-color:var(--gold);
  background:color-mix(in srgb,var(--paper) 82%,var(--gold2))}
.map-viewer{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,330px);
  gap:1rem;
  align-items:start}
.map-stage{
  min-width:0}
.map-floor-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin:.7rem 0}
.map-floor-tabs button{
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  border-radius:999px;
  padding:.38rem .72rem;
  cursor:pointer}
.map-floor-tabs button[aria-pressed="true"]{
  background:var(--night);
  color:white}
.map-frame{
  position:relative;
  width:max-content;
  max-width:100%;
  margin:auto;
  background:#07131f;
  border:1px solid var(--line);
  border-radius:.55rem;
  overflow:auto}
.map-frame img{
  display:block;
  max-width:none;
  height:auto;
  image-rendering:auto}
.map-overlay{
  position:absolute;
  inset:0;
  pointer-events:none}
.map-pointer{
  position:absolute;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  border:2px solid white;
  box-shadow:0 0 0 2px rgba(0,0,0,.65),0 2px 7px rgba(0,0,0,.45);
  font-size:.72rem;
  font-weight:900;
  line-height:1}
.map-pointer.item{
  width:1.5rem;
  height:1.5rem;
  border-radius:50%;
  background:#c42f45;
  color:white}
.map-pointer.connection{
  width:1.45rem;
  height:1.45rem;
  border-radius:.3rem;
  background:#2467c7;
  color:white}
.map-pointer[hidden],.map-overlay[hidden]{
  display:none}
.map-side{
  display:grid;
  gap:.8rem}
.map-card{
  padding:1rem}
.map-card h3{
  margin-top:0}
.map-legend{
  list-style:none;
  padding:0;
  margin:.2rem 0}
.map-legend li{
  padding:.35rem 0;
  border-bottom:1px dotted var(--line)}
.marker-key{
  display:inline-grid;
  place-items:center;
  width:1.55rem;
  height:1.55rem;
  margin-right:.35rem;
  background:var(--wine);
  color:white;
  border-radius:50%;
  font-weight:900}
.rights-note{
  font-size:.86rem;
  color:var(--muted)}
.site-footer{
  background:var(--night);
  color:#e9edf4;
  padding:2rem 1rem}
.footer-inner{
  max-width:1180px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap}
.site-footer a{
  color:#fff}
.back-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:80;
  width:3.25rem;
  height:3.25rem;
  border-radius:50%;
  border:2px solid var(--gold);
  background:var(--night);
  color:white;
  cursor:pointer;
  box-shadow:var(--shadow)}
.search-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(3,8,18,.76);
  display:grid;
  place-items:start center;
  padding:8vh 1rem}
.search-modal[hidden]{
  display:none}
.search-panel{
  width:min(760px,100%);
  max-height:82vh;
  overflow:auto;
  background:var(--paper);
  border-radius:.75rem;
  padding:1rem;
  box-shadow:0 20px 60px rgba(0,0,0,.4)}
.search-head{
  display:flex;
  gap:.6rem}
.search-head input{
  flex:1;
  padding:.75rem;
  border:1px solid var(--line);
  border-radius:.45rem;
  background:var(--paper);
  color:var(--ink)}
#search-results{
  list-style:none;
  padding:0}
#search-results a{
  display:block;
  padding:.65rem;
  border-bottom:1px solid var(--line);
  text-decoration:none}
#search-results strong,#search-results span{
  display:block}
#search-results span{
  font-size:.85rem;
  color:var(--muted)}
#toast{
  position:fixed;
  left:50%;
  bottom:1.5rem;
  z-index:2000;
  transform:translateX(-50%);
  background:#111a2d;
  color:#fff;
  padding:.75rem 1.2rem;
  border-radius:.55rem;
  box-shadow:var(--shadow)}
[hidden]{
  display:none!important}
html[lang="ja"] [data-en]:not([data-ja]),html[lang="en"] [data-ja]:not([data-en]){
  display:none!important}

@media(max-width:780px){
  body{
    font-size:15px}
  .header-top{
    align-items:flex-start;
    flex-direction:column}
  .hero{
    padding-top:1.25rem}
  .global-nav ul{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:.3rem}
  .global-nav li{
    flex:0 0 auto}
  .global-nav a{
    white-space:nowrap}
  .global-nav a{
    text-align:center}
  .utility-inner{
    align-items:center}
  .utility-spacer{
    display:none}
  .mini-progress{
    width:100%;
    justify-content:center}
  .toc ol{
    columns:1}
  .fact-grid{
    grid-template-columns:1fr}
  .chapter-head{
    align-items:flex-start}
  .table-wrap{
    margin-left:-.45rem;
    margin-right:-.45rem;
    border-radius:0}
  th,td{
    padding:.46rem;
    min-width:5rem}
  .map-viewer{
    grid-template-columns:1fr}
  .map-frame{
    margin:0;
    max-width:100%;
    width:100%}
  .map-frame img{
    max-width:none}
  .map-controls input,.map-controls select{
    width:100%;
    min-width:0}
  .back-top{
    right:.55rem;
    bottom:.55rem}
  .volume-wrap span{
    display:none}
  }

@media(max-width:410px){
  .tool-button,.lang-button{
    padding:.42rem .58rem}
  .hero h1{
    font-size:1.72rem}
  .progress-track{
    width:6rem}
  .map-index{
    grid-template-columns:1fr}
  }

@media print{
  body{
    background:white;
    color:black;
    font-size:10pt}
  .site-header,.utility-bar,.back-top,.site-footer,.step-actions,.table-controls,.map-controls,.accordion-controls,.tool-button,#toast,.search-modal{
    display:none!important}
  main{
    max-width:none;
    padding:0}
  .page-lead,.card,.quest-step,.data-block,.map-card,.story-panel{
    box-shadow:none;
    background:white;
    break-inside:avoid}
  .quest-step:not([open]) .step-body,.data-block:not([open]) .step-body,.story-panel:not([open]) .story-copy{
    display:block}
  .map-viewer{
    display:block}
  .map-side{
    margin-top:1rem}
  .map-frame{
    overflow:visible;
    max-width:100%}
  .map-frame img{
    max-width:100%;
    height:auto}
  thead th{
    background:#ddd;
    color:#000}
  h2{
    color:#102a4c;
    break-after:avoid}
  .chapter{
    break-before:page}
  a{
    color:black;
    text-decoration:none}
  }

.map-frame{
  width:100%}
.map-canvas{
  position:relative;
  transform-origin:top left}
.map-canvas>img{
  width:100%;
  height:100%}


.edition-label{
  font-size:.88rem;
  letter-spacing:.08em;
  margin:0 0 .5rem;
  color:#f4ead5}

.persistence-status{
  padding:1rem;
  border:1px solid #ad8d51;
  border-radius:.65rem;
  background:#fff4d5;
  color:#473e2d;
  margin-bottom:1rem}
.persistence-status button{
  margin-left:.8rem}
.persistence-status[hidden]{
  display:none}

.quest-step.is-complete{
  border-color:#237858}
.quest-step.is-complete .step-body{
  position:relative;
  padding-bottom:3.8rem;
  opacity:1;
  text-decoration:none}
.quest-step.is-complete .step-body::after{
  content:"完了";
  position:absolute;
  right:15px;
  bottom:12px;
  border:2px solid #b3332f;
  border-radius:4px;
  color:#b3332f;
  background:#fffdf8;
  min-width:62px;
  height:31px;
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.1em;
  line-height:1;
  transform:none}
html[lang=en] .quest-step.is-complete .step-body::after{
  content:"DONE"}
.quest-step.is-complete .completion-badge{
  display:none}

@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto!important}
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important}
  }


.quest-step:not([open]).is-complete .completion-badge{
  display:inline-grid;
  border:2px solid #b3332f;
  color:#b3332f;
  background:#fffdf8;
  border-radius:3px;
  padding:.12rem .4rem;
  white-space:nowrap;
  transform:none}


@media(max-width:780px){
  main{
    padding-right:4.5rem}
  .table-wrap .wide-data{
    min-width:64rem}
  .site-footer{
    padding-bottom:5rem}
  }


#gear-table{
  min-width:70rem}
#gear-table td[data-origin-cell]{
  min-width:12rem}
#item-table td[data-origin-cell]{
  min-width:14rem}

/* Preserve contrast for the installed uploader navigation wrapper. */
.site-header .gtl-guide-return71 {
  color: #fff !important;
}
