:root {
  --paper:#f4f0e7;
  --panel:#fffdf8;
  --ink:#15233d;
  --muted:#536174;
  --line:#cfc3ae;
  --navy:#1d3f6b;
  --blue:#075b9a;
  --green:#237858;
  --red:#b3332f
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:18px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.85 "Yu Gothic UI","Yu Gothic",Meiryo,sans-serif
}
a {
  color:var(--blue);
  text-underline-offset:.2em;
  overflow-wrap:anywhere
}
button,input,select {
  font:inherit
}
button {
  padding:8px 15px;
  min-height:42px;
  border:1px solid #a6977e;
  border-radius:8px;
  background:var(--panel);
  color:var(--ink);
  cursor:pointer;
  font-weight:700
}
button:hover {
  background:#ece6da
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #b0781c;
  outline-offset:3px
}
[hidden] {
  display:none!important
}
h1,h2,h3,h4 {
  line-height:1.5
}
h2 {
  font-size:1.4rem
}
h3 {
  font-size:1.12rem
}
p {
  margin:.8em 0
}
ul,ol {
  padding-left:1.45em
}
li {
  margin:.3em 0
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:.9rem
}
th,td {
  border-bottom:1px solid var(--line);
  padding:10px 12px;
  text-align:left;
  vertical-align:top
}
th {
  background:#e8edf3;
  color:#193a64;
  white-space:nowrap
}
tbody tr:nth-child(even) {
  background:#f7f3eb
}
caption {
  padding:10px;
  text-align:left;
  font-weight:700
}
tr:last-child td {
  border-bottom:0
}
.num {
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  text-align:right
}
.table-wrap {
  overflow:auto;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  margin:15px 0
}
.return-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:9px max(22px,calc((100vw - 1440px)/2 + 24px));
  background:#eee8dc;
  border-bottom:1px solid var(--line);
  font-size:.82rem
}
.language-switch {
  display:flex;
  gap:8px
}
.language-switch button {
  padding:4px 14px;
  min-height:34px;
  font-size:.82rem;
  border-radius:999px
}
.language-switch button[aria-pressed=true] {
  background:#17375f;
  color:white;
  border-color:#17375f
}
.hero {
  background:#1d3f6b;
  color:#fff
}
.hero>div {
  max-width:1440px;
  margin:auto;
  padding:35px 48px 28px
}
.hero h1 {
  font:700 clamp(1.9rem,3.7vw,3.25rem)/1.3 YuMincho,"Yu Mincho",serif;
  margin:0;
  max-width:1120px
}
.hero h1 br {
  display:none
}
.hero p {
  margin:13px 0 0;
  color:#e9eff7;
  font-size:.86rem
}
.global-nav {
  background:var(--panel);
  border-bottom:1px solid #b9c3cf;
  overflow:auto
}
.global-nav>div {
  display:flex;
  gap:24px;
  align-items:center;
  width:max-content;
  min-width:100%;
  padding:11px max(22px,calc((100vw - 1440px)/2 + 48px))
}
.global-nav a {
  white-space:nowrap;
  text-decoration:none;
  font-weight:800;
  font-size:.9rem;
  padding:4px 0;
  border-bottom:3px solid transparent
}
.global-nav a[aria-current=page] {
  border-bottom-color:#a76800;
  color:#784d0a
}
.toolbar {
  max-width:1344px;
  margin:0 auto;
  padding:15px 0;
  display:flex;
  gap:10px;
  align-items:center
}
.edition {
  margin-left:auto;
  font-size:.8rem;
  color:var(--muted)
}
.page-layout {
  max-width:1440px;
  margin:auto;
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:28px;
  padding:10px 48px 52px
}
.side-nav {
  font-size:.85rem;
  padding:10px 0
}
.side-nav h2 {
  font-size:.95rem
}
.side-nav a {
  display:block;
  padding:6px 3px
}
.side-nav a.depth3 {
  font-size:.8rem;
  padding-left:12px
}
.main-content,main {
  min-width:0
}
.page-heading {
  margin:22px 0 18px;
  font-family:YuMincho,"Yu Mincho",serif;
  font-size:1.75rem
}
.guide-section,section.article {
  margin:20px 0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden
}
.guide-section>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  list-style:none;
  cursor:pointer;
  padding:18px 22px;
  color:#1a395d;
  font-size:1.17rem;
  font-weight:800
}
.guide-section>summary::-webkit-details-marker {
  display:none
}
.guide-section>summary::after {
  content:'+';
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #9ba9ba;
  border-radius:50%;
  font:700 20px/1 Arial,sans-serif
}
.guide-section[open]>summary::after {
  content:'−'
}
.guide-section[open]>summary {
  border-bottom:1px solid var(--line)
}
.section-body,section.article {
  padding:20px 22px
}
.route-card {
  position:relative;
  background:#fffdfa;
  border:1px solid #cfc3ae;
  border-radius:10px;
  margin:16px 0;
  padding:20px 22px;
  box-shadow:0 3px 12px #34270c08
}
.route-card__head {
  display:flex;
  gap:13px;
  align-items:flex-start
}
.route-card h3 {
  margin:0 0 8px;
  padding-right:54px
}
.route-check {
  width:23px;
  height:23px;
  flex:0 0 23px;
  accent-color:var(--green);
  margin:3px 0;
  cursor:pointer
}
.route-card.is-complete {
  background:#f4f8f3;
  border-color:#8bab98
}
.route-card.is-complete::after {
  content:'完了';
  position:absolute;
  right:16px;
  top:18px;
  border:3px double var(--red);
  border-radius:4px;
  padding:2px 7px;
  color:var(--red);
  font-size:.88rem;
  font-weight:900;
  line-height:1.3;
  box-shadow:inset 0 0 0 1px #b3332f22;
  background:radial-gradient(circle at 20% 30%,#fffdf8 0 1px,transparent 1.2px) 0 0/8px 8px
}
html[lang=en] .route-card.is-complete::after {
  content:'DONE';
  font-size:.75rem
}
.route-card.is-bumping {
  animation:card-bump .58s cubic-bezier(.22,1.3,.36,1)
}
.route-card.is-bumping.is-complete::after {
  animation:stamp-pop .58s cubic-bezier(.22,1.3,.36,1)
}
@keyframes card-bump {
  0%,100% {
    transform:scale(1)
  }
  36% {
    transform:scale(1.018)
  }
  68% {
    transform:scale(.995)
  }
  
}
@keyframes stamp-pop {
  0% {
    opacity:0;
    transform:scale(1.42)
  }
  58% {
    opacity:1;
    transform:scale(.92)
  }
  100% {
    opacity:1;
    transform:scale(1)
  }
  
}
.tag-row {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}
.tag,.badge {
  font-size:.74rem;
  display:inline-block;
  border:1px solid #c4ccd4;
  background:#ecf0f4;
  color:#315270;
  border-radius:999px;
  padding:2px 9px;
  line-height:1.7
}
.tag.required {
  background:#edf4ed;
  border-color:#b5cab9;
  color:#255c43
}
.tag.danger {
  background:#fff0df;
  border-color:#d6bfa0;
  color:#845717
}
.intro-grid,.three-column,.card-grid,.two-column {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px
}
.intro-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.intro-card,.panel,.card,.quick-card {
  padding:16px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel)
}
.intro-card h2 {
  font-size:1.03rem;
  margin-top:0
}
.intro-card p {
  font-size:.9rem
}
.notice,.formula {
  padding:16px 20px;
  border:1px solid #c3cbd2;
  border-radius:9px;
  background:#edf2f7;
  margin:16px 0
}
.notice.warning {
  background:#fff5e6;
  border-color:#d8c0a1
}
.notice.success {
  background:#edf4ed;
  border-color:#b9cfbd
}
.formula {
  font-family:Consolas,"Yu Gothic",sans-serif;
  overflow-wrap:anywhere;
  background:#f0ede6
}
.small,.source-note {
  font-size:.82rem;
  color:var(--muted)
}
.details-controls {
  margin:24px 0
}
.details-controls h2 {
  text-align:center
}
.details-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px
}
.details-actions button {
  min-width:180px
}
.calculator {
  padding:24px;
  border:2px solid #acbcd0;
  background:var(--panel);
  border-radius:12px;
  box-shadow:0 8px 28px #263d5a0a
}
.calculator-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}
.calculator h2 {
  margin:0;
  color:#193e6a;
  font-size:1.5rem
}
.calc-inputs {
  display:grid;
  grid-template-columns:1.5fr 1fr auto;
  gap:14px;
  align-items:end;
  margin:20px 0
}
.calc-inputs label {
  font-size:.88rem;
  font-weight:700
}
.calc-inputs input,.calc-inputs select {
  display:block;
  width:100%;
  min-width:0;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #98a6b7;
  border-radius:8px;
  background:white
}
.calc-inputs button {
  min-height:48px;
  background:var(--navy);
  color:white;
  border-color:var(--navy)
}
#name-result {
  padding:16px;
  background:#edf5ef;
  border:1px solid #bed2c4;
  border-radius:9px;
  margin:14px 0
}
.stat-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:12px
}
.stat-grid div {
  background:#fffdf8;
  border:1px solid #c4d4c7;
  border-radius:7px;
  padding:10px;
  text-align:center
}
.stat-grid strong {
  display:block;
  font-size:1.5rem
}
.input-error {
  color:#9f2e25;
  font-weight:700
}
.input-error:empty {
  display:none
}
.progress-card {
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:20px;
  margin:22px 0;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel)
}
.progress-card h2 {
  margin:0;
  font-size:1.1rem
}
.progress-card p {
  font-size:.83rem;
  color:var(--muted)
}
.progress-track {
  height:11px;
  border:1px solid #b8c8bd;
  border-radius:999px;
  overflow:hidden;
  background:#e4e9e2
}
.progress-fill {
  height:100%;
  width:0;
  background:var(--green);
  transition:width .25s ease
}
.progress-actions {
  text-align:right
}
.progress-actions strong {
  font-size:1.2rem
}
.progress-actions button {
  font-size:.8rem;
  padding:6px 10px;
  margin-top:10px
}
.floating-progress {
  position:fixed;
  right:18px;
  top:120px;
  z-index:20;
  border:3px solid #b79749;
  background:#fffdf8;
  color:#193c66;
  border-radius:50%;
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:0 5px 20px #16365c20
}
.floating-progress.bump {
  animation:card-bump .65s
}
.back-top {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:30;
  width:46px;
  height:46px;
  border-radius:50%;
  padding:0;
  box-shadow:0 5px 18px #17375f22
}
.skip-link {
  position:absolute;
  left:12px;
  top:-100px;
  z-index:50;
  background:white;
  padding:10px
}
.skip-link:focus {
  top:12px
}
footer {
  background:#eae4d8;
  border-top:1px solid var(--line);
  padding:23px max(22px,calc((100vw - 1344px)/2));
  display:flex;
  gap:18px;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:.8rem
}
#toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  z-index:60;
  background:#17375f;
  color:#fff;
  border-radius:8px;
  padding:10px 18px;
  max-width:calc(100% - 110px);
  opacity:0;
  pointer-events:none
}
#toast.show {
  opacity:1
}
.filter-row {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:18px 0
}
.filter-row input {
  padding:8px 12px;
  border:1px solid #9baabc;
  border-radius:7px;
  max-width:100%
}
.map-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  padding:22px;
  margin:22px 0
}
.map-card h2 {
  margin-top:0
}
.map-view {
  overflow:auto;
  background:#e4e1d9;
  border:1px solid #bec4ca;
  border-radius:8px;
  max-height:80vh;
  text-align:center;
  touch-action:pan-x pan-y
}
.map-view img {
  display:block;
  max-width:100%;
  height:auto;
  margin:auto;
  image-rendering:auto
}
.map-view.is-zoom img {
  max-width:none;
  width:auto
}
.map-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0
}
.map-caption {
  font-size:.82rem;
  color:var(--muted);
  overflow-wrap:anywhere
}
.source-links {
  font-size:.85rem
}
.source-links a {
  margin-right:12px
}
.history-meta {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.legend {
  padding:12px;
  border:1px solid var(--line);
  background:#f5f0e6;
  border-radius:8px
}
.source-table td {
  overflow-wrap:anywhere
}
a.link-card {
  display:block;
  text-decoration:none;
  padding:18px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel)
}
.link-card h2 {
  font-size:1.1rem
}
.link-card p {
  color:var(--muted);
  font-size:.88rem
}
html[lang=en] .hero h1 {
  font-size:clamp(1.7rem,3.6vw,3rem)
}
html[lang=en] main {
  overflow-wrap:anywhere
}
.story-prose {
  max-width:68ch
}
.route-links {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0
}
.route-links a {
  font-size:.84rem;
  border:1px solid #b7c5d6;
  border-radius:6px;
  padding:4px 10px;
  text-decoration:none;
  background:#f1f5fa
}

.floor-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0
}
.floor-actions button {
  min-height:36px;
  padding:5px 12px;
  font-size:.83rem
}
.floor-actions button[aria-pressed=true] {
  background:#17375f;
  color:white;
  border-color:#17375f
}
html[lang=en] .hero h1 br {
  display:block
}

.map-point--world-location {
  background:#1e6d57;
  box-shadow:0 0 0 2px #154c3ddd,0 2px 5px #0008
}
.map-coordinate-note {
  margin:.55em 0 0;
  color:#53616f;
  font-size:.78rem;
  line-height:1.55
}
.map-transition-list {
  display:grid;
  gap:8px;
  margin:12px 0 0;
  padding:0;
  list-style:none
}
.map-transition {
  padding:10px 12px;
  border:1px solid #c8d1da;
  border-radius:7px;
  background:#f7f9fb;
  font-size:.82rem;
  line-height:1.65
}
.map-transition button {
  margin:.45em 0 0;
  min-height:32px;
  padding:4px 10px;
  font-size:.78rem
}
@media(max-width:760px) {
  .map-transition {
    padding:9px 10px
  }
  
}

.page-search {
  max-width:1344px;
  margin:0 auto 15px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  font-size:.86rem
}
.page-search input {
  min-width:0;
  width:240px;
  max-width:100%;
  border:1px solid #98a6b7;
  border-radius:7px;
  padding:8px 12px;
  background:white
}
.page-search button {
  font-size:.85rem
}
.page-search label {
  font-weight:700
}
.search-current {
  outline:3px solid #ad7c22;
  outline-offset:4px;
  background:#fff0b9!important;
  border-radius:3px
}
#search-status {
  min-height:1.5em;
  color:#536174
}
@media(max-width:1380px) {
  .page-search {
    margin:0 25px 15px
  }
  
}
@media(max-width:760px) {
  .page-search {
    margin:0 17px 15px
  }
  .page-search label {
    width:100%
  }
  .page-search input {
    flex:1 1 100%;
    width:100%
  }
  
}
@media print {
  .page-search {
    display:none
  }
  
}

@media(max-width:1100px) {
  .page-layout {
    padding:10px 25px 40px;
    grid-template-columns:170px minmax(0,1fr);
    gap:22px
  }
  .toolbar {
    padding:15px 25px
  }
  .floating-progress {
    width:56px;
    height:56px;
    right:8px;
    top:150px;
    font-size:.86rem
  }
  .hero>div {
    padding-right:70px
  }
  .progress-card {
    grid-template-columns:1fr
  }
  .progress-actions {
    text-align:left
  }
  
}

@media(max-width:760px) {
  body {
    font-size:15px
  }
  .hero>div {
    padding:27px 22px 24px
  }
  .hero h1 br {
    display:block
  }
  .hero h1 {
    font-size:1.9rem
  }
  .hero p {
    font-size:.78rem;
    max-width:27em
  }
  .return-bar {
    padding:9px 17px;
    gap:8px
  }
  .return-bar>a {
    font-size:.75rem
  }
  .language-switch button {
    padding:4px 11px
  }
  .page-layout {
    display:block;
    padding:5px 15px 36px
  }
  .side-nav {
    display:none
  }
  .toolbar {
    padding:13px 17px
  }
  .floating-progress {
    position:static;
    margin:0 17px 12px auto;
    width:56px;
    height:56px
  }
  .calculator {
    padding:18px
  }
  .calculator h2 {
    font-size:1.27rem
  }
  .calc-inputs {
    grid-template-columns:1fr 1fr;
    gap:10px
  }
  .calc-inputs button {
    grid-column:1/-1
  }
  .stat-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .section-body {
    padding:14px
  }
  .guide-section>summary {
    padding:15px;
    font-size:1.05rem
  }
  .route-card {
    padding:17px 14px
  }
  .route-card h3 {
    font-size:1rem;
    padding-right:35px
  }
  .route-card.is-complete::after {
    right:10px;
    top:15px;
    font-size:.7rem;
    padding:2px 4px
  }
  .intro-grid,.two-column,.three-column,.card-grid {
    grid-template-columns:1fr
  }
  .progress-card {
    padding:17px
  }
  .notice,.formula {
    padding:14px 16px
  }
  .map-card {
    padding:15px
  }
  .back-top {
    right:12px;
    bottom:12px
  }
  .global-nav>div {
    gap:20px;
    padding:10px 18px
  }
  .details-actions button {
    min-width:0;
    font-size:.85rem
  }
  .table-wrap table {
    min-width:550px
  }
  footer span {
    max-width:28em
  }
  
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
  
}

@media print {
  body {
    background:white;
    font-size:10pt
  }
  .return-bar,.toolbar,.global-nav,.side-nav,.back-top,.floating-progress,.details-actions,.map-actions,button {
    display:none!important
  }
  .page-layout {
    display:block;
    padding:0
  }
  .hero {
    background:white;
    color:#15233d
  }
  .hero p {
    color:#536174
  }
  .hero>div {
    padding:10px
  }
  .hero h1 {
    font-size:22pt
  }
  .guide-section,.route-card,.map-card {
    break-inside:avoid
  }
  .table-wrap,.map-view {
    overflow:visible;
    max-height:none
  }
  .table-wrap table {
    min-width:0
  }
  footer {
    background:white
  }
  .route-card.is-complete::after {
    color:#444
  }
  .calculator {
    break-inside:avoid
  }
  
}


.story-card {
  margin:0 0 22px;
  border:1px solid #b39551;
  border-radius:12px;
  background:linear-gradient(135deg,#fbf8ef,#f3eddf);
  box-shadow:0 5px 20px #6550250c;
  overflow:hidden
}

.map-stage {
  position:relative;
  display:inline-block;
  max-width:100%;
  vertical-align:top;
  line-height:0
}
.map-stage img {
  width:100%;
  max-width:100%;
  height:auto
}
.map-point-overlay {
  position:absolute;
  inset:0;
  pointer-events:none
}
.map-point {
  position:absolute;
  z-index:2;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  min-width:20px;
  width:20px;
  height:20px;
  min-height:20px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:#17375fe6;
  color:#fff;
  box-shadow:0 0 0 2px #17375fcc,0 2px 5px #0008;
  font:900 9px/1 Arial,sans-serif;
  pointer-events:auto
}
.map-point--treasure-event {
  background:#b85b00;
  box-shadow:0 0 0 2px #7c3d00dd,0 2px 5px #0008
}
.map-point--exit,.map-point--entrance-exit {
  background:#8a2c2c;
  box-shadow:0 0 0 2px #641d1ddd,0 2px 5px #0008
}
.map-point--event {
  background:#6c3a88;
  box-shadow:0 0 0 2px #4e2765dd,0 2px 5px #0008
}
.map-point[aria-pressed=true] {
  z-index:4;
  outline:3px solid #ffdc6a;
  outline-offset:2px;
  transform:translate(-50%,-50%) scale(1.18)
}
.map-point-list {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  max-height:220px;
  overflow:auto;
  padding:10px 2px;
  margin-top:10px
}
.map-point-list:empty {
  display:none
}
.map-point-list-button {
  min-height:32px;
  padding:5px 9px;
  border-radius:6px;
  font-size:.72rem;
  font-weight:700;
  text-align:left
}
.map-point-list-button[aria-pressed=true] {
  background:#17375f;
  color:#fff;
  border-color:#17375f
}
.map-point-detail {
  min-height:64px;
  margin:10px 0;
  padding:12px 14px;
  border:1px solid #b8c4cf;
  border-radius:8px;
  background:#f0f4f8;
  font-size:.86rem
}
.map-point-detail p {
  margin:.25em 0
}
.map-point-detail button {
  margin-top:7px;
  min-height:34px;
  padding:5px 11px;
  font-size:.8rem
}
@media(max-width:760px) {
  .map-point {
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
    font-size:8px
  }
  .map-point-list {
    max-height:190px
  }
  .map-point-list-button {
    flex:1 1 145px
  }
  
}

.story-card>summary,.calc-reference>summary {
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  list-style:none;
  line-height:1.55;
  padding:17px 22px;
  color:#594624;
  font-weight:800
}

.story-card>summary {
  font:700 1.22rem/1.5 YuMincho,"Yu Mincho",serif
}
.story-card>summary::-webkit-details-marker,.calc-reference>summary::-webkit-details-marker {
  display:none
}

.story-card>summary::after,.calc-reference>summary::after {
  content:'+';
  margin-left:auto;
  font:400 1.35rem/1 Arial,sans-serif
}
.story-card[open]>summary::after,.calc-reference[open]>summary::after {
  content:'−'
}

.story-ornament {
  font-size:.8rem;
  color:#a38647;
  opacity:.8
}
.story-card[open]>summary {
  border-bottom:1px solid #cfbd94
}
.story-body {
  max-width:76ch;
  margin:auto;
  padding:6px 28px 22px;
  line-height:2.05;
  color:#403b32
}
.story-body p {
  margin:1.2em 0;
  white-space:pre-line
}
.story-body p:last-child {
  padding-bottom:8px
}

.story-card>summary:focus-visible,.calc-reference>summary:focus-visible {
  outline:3px solid #375e8e;
  outline-offset:-5px;
  border-radius:9px
}

.calculator-version {
  margin-top:18px;
  padding:15px 16px;
  border:1px solid #c6cfdb;
  border-radius:8px;
  background:#f3f5f8
}
.calculator-version label {
  display:block;
  font-size:.9rem;
  font-weight:700;
  margin-bottom:7px
}
.calculator-version select {
  max-width:100%;
  width:100%;
  padding:10px 12px;
  border:1px solid #98a6b7;
  border-radius:7px;
  background:#fff;
  color:#193a64
}
.calculator-version p {
  margin:.65em 0 0;
  line-height:1.75
}

#name-input::placeholder {
  color:#788393;
  opacity:.8
}
#name-result.is-idle {
  background:#f4f5f7;
  border-color:#d4d9df;
  color:#566275
}
#name-result:empty {
  display:none
}
.result-edition {
  font-weight:700;
  margin:0 0 8px
}
.calculation-line {
  font-size:.85rem;
  overflow-wrap:anywhere
}

.calc-reference {
  border:1px solid #b9c6d6;
  border-radius:9px;
  overflow:hidden;
  margin-top:18px;
  background:#f9fafb
}
.calc-reference>summary {
  color:#1c466f;
  font-size:.95rem;
  padding:14px 16px
}
.calc-reference[open]>summary {
  border-bottom:1px solid #c9d3df
}
.calc-reference-body {
  padding:4px 16px 18px
}
.calc-reference-body h2,.calc-reference-body h3 {
  margin-top:22px;
  font-size:1.05rem;
  color:#244b74
}
.calc-reference-body p {
  font-size:.9rem;
  line-height:1.85
}
.calc-reference-body .formula {
  font-size:.87rem
}
.calc-reference-body th,.calc-reference-body td {
  font-size:.84rem
}

@media(max-width:760px) {
  .story-card>summary {
    padding:16px 18px
  }
  .story-body {
    padding:4px 19px 16px;
    line-height:1.95
  }
  .calculator-version {
    padding:13px
  }
  .calculator-version select {
    font-size:.88rem
  }
  .calc-inputs {
    grid-template-columns:minmax(0,1fr) 82px
  }
  .calc-reference-body {
    padding:2px 12px 15px
  }
  .calc-reference>summary {
    padding:13px 12px
  }
  .calc-reference-body .table-wrap table {
    min-width:480px
  }
  
}

.story-accordion {
  margin:22px 0;
  background:linear-gradient(135deg,#fffdf8 0%,#f2eadb 100%);
  border:1px solid #b8aa93;
  border-radius:14px;
  box-shadow:0 8px 24px #3b2d1512;
  overflow:hidden
}
.story-accordion>summary {
  list-style:none;
  cursor:pointer;
  padding:18px 24px;
  text-align:center;
  color:#173b67;
  font:800 1.22rem/1.5 YuMincho,"Yu Mincho",serif;
  letter-spacing:.08em
}
.story-accordion>summary::-webkit-details-marker {
  display:none
}
.story-accordion>summary::after {
  content:'＋';
  display:inline-grid;
  place-items:center;
  margin-left:12px;
  width:26px;
  height:26px;
  border:1px solid #aa9676;
  border-radius:50%;
  font:700 16px/1 sans-serif
}
.story-accordion[open]>summary::after {
  content:'−'
}
.story-accordion[open]>summary {
  border-bottom:1px solid #cfc3ae
}
.story-body {
  max-width:72ch;
  margin:auto;
  padding:22px 28px 26px;
  font-family:YuMincho,"Yu Mincho",serif
}
.story-body p {
  margin:.7em 0
}
.provenance-grid {
  display:grid;
  grid-template-columns:minmax(120px,180px) minmax(0,1fr);
  gap:0;
  margin:0
}
.provenance-grid dt,.provenance-grid dd {
  margin:0;
  padding:9px 11px;
  border-bottom:1px solid var(--line)
}
.provenance-grid dt {
  font-weight:800;
  background:#eef1f4
}
.monster-detail>summary .small {
  margin-left:auto;
  font-weight:600
}
.monster-detail .table-wrap table {
  min-width:980px
}
@media(max-width:760px) {
  .story-accordion>summary {
    padding:16px
  }
  .story-body {
    padding:18px 17px
  }
  .provenance-grid {
    grid-template-columns:1fr
  }
  .provenance-grid dt {
    border-bottom:0
  }
  .monster-detail>summary {
    display:block
  }
  .monster-detail>summary .small {
    display:block;
    margin:.35em 0 0
  }
  
}


body {
  font-size:16px;
  line-height:1.78
}

.hero {
  background:#17375f;
  background-image:none
}

.hero::before,.hero::after {
  content:none!important;
  display:none!important
}

.hero svg,.hero img,.hero canvas {
  display:none
}

.hero h1 {
  font-family:YuMincho,"Yu Mincho",serif;
  font-size:3.45rem;
  line-height:1.5
}

html[lang=en] .hero h1 {
  font-size:3.25rem
}

.hero>div {
  padding:32px 30px 34px
}

.edition-badge {
  display:inline-block;
  font-size:.88rem;
  color:#f3e7bb;
  border:1px solid #c7ba86;
  border-radius:7px;
  padding:5px 11px;
  margin-bottom:12px
}

.page-layout {
  grid-template-columns:250px minmax(0,1fr);
  gap:34px
}

.side-nav {
  max-height:calc(100vh - 40px);
  overflow:auto
}

.route-card.is-complete {
  padding-bottom:58px
}

.route-card.is-complete::after {
  left:auto;
  right:15px;
  top:auto;
  bottom:12px;
  width:62px;
  height:31px;
  box-sizing:border-box;
  display:grid;
  place-items:center;
  font-size:.82rem;
  line-height:1;
  border:2px solid #a76800;
  border-radius:4px;
  padding:0;
  color:#a76800;
  background:#fffef9;
  transform:none;
  letter-spacing:0;
  pointer-events:none
}

.route-card.is-complete h3 {
  padding-right:0
}

html[lang=en] .route-card.is-complete::after {
  content:'DONE'
}

.progress-storage-status {
  position:fixed;
  left:16px;
  right:16px;
  bottom:78px;
  z-index:1001;
  max-width:820px;
  margin:auto;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  background:#fff8e5;
  border:1px solid #b9a46b;
  border-radius:10px;
  padding:12px 16px;
  font-size:.9rem;
  box-shadow:0 3px 14px #18375426
}

.progress-storage-status[hidden] {
  display:none
}

.progress-storage-status button {
  flex:none
}

footer {
  padding:28px;
  text-align:center
}

#guide-top {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1000;
  width:46px;
  height:46px;
  min-height:0;
  padding:0;
  border:1px solid #a99b82;
  border-radius:50%;
  background:#fffef9;
  color:#17375f;
  font:700 25px/1 sans-serif;
  box-shadow:0 2px 8px #17375f20
}

#search-dialog {
  width:min(900px,calc(100% - 32px));
  max-height:84vh;
  overflow:auto;
  border:1px solid #aa9b82;
  border-radius:12px;
  background:#fffef9;
  padding:24px
}

#search-dialog::backdrop {
  background:#17375f77
}

#site-query {
  width:calc(100% - 100px);
  padding:10px;
  border:1px solid #aa9b82;
  border-radius:8px;
  margin-right:10px
}

#search-results {
  list-style:none;
  margin:14px 0 0;
  padding:0
}

#search-results li {
  border:1px solid #d1c7b6;
  border-radius:8px;
  margin:12px 0;
  padding:12px
}

#search-results a {
  display:block;
  text-decoration:none
}

#search-results small,#search-results strong,#search-results span {
  display:block
}

#search-results small {
  color:#536174;
  font-size:.82rem
}

#search-results span {
  color:#344760;
  margin-top:4px
}

.boss-stats {
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px
}

#item-table {
  min-width:1050px
}

#item-table th:nth-child(2),#item-table td:nth-child(2) {
  min-width:6.5em;
  word-break:normal;
  overflow-wrap:normal
}

#item-table th:nth-child(3),#item-table td:nth-child(3) {
  min-width:11em;
  word-break:normal;
  overflow-wrap:normal
}

#shop-table {
  min-width:880px
}

#shop-table th:nth-child(2),#shop-table td:nth-child(2) {
  min-width:8em;
  word-break:normal;
  overflow-wrap:normal
}

#shop-table th:nth-child(3),#shop-table td:nth-child(3) {
  min-width:18em;
  word-break:normal;
  overflow-wrap:normal
}

#shop-table th:nth-child(4),#shop-table td:nth-child(4) {
  min-width:11em;
  word-break:normal;
  overflow-wrap:normal
}

.before-you-begin {
  border:1px solid #c9bfae;
  border-radius:12px;
  background:#faf3e2;
  padding:18px 22px;
  margin:22px 0
}

.before-you-begin h2 {
  font-size:1.05rem;
  margin:0 0 8px
}

.before-you-begin ul {
  margin:0;
  padding-left:1.3em
}

@media(max-width:760px) {
  body {
    font-size:16px
  }
  .hero>div {
    padding:26px 20px
  }
  .hero h1 {
    font-size:1.70625rem
  }
  html[lang=en] .hero h1 {
    font-size:1.8rem
  }
  .page-layout {
    display:block;
    padding:5px 15px 36px
  }
  .progress-storage-status {
    flex-wrap:wrap;
    font-size:.82rem
  }
  .route-card.is-complete::after {
    right:72px;
    bottom:12px;
    top:auto;
    font-size:.82rem;
    width:62px;
    height:31px
  }
  #search-dialog {
    padding:17px
  }
  #site-query {
    width:100%;
    margin:0 0 10px
  }
  
}

@media print {
  #guide-top,#search-dialog,.progress-storage-status {
    display:none!important
  }
  .hero {
    background:white;
    color:#17375f
  }
  .hero h1,html[lang=en] .hero h1 {
    font-size:22pt
  }
  .route-card.is-complete::after {
    position:absolute;
    color:#444;
    border-color:#777
  }
  .page-layout {
    display:block
  }
  
}
