: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:pixelated
}
.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
}

.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
  }
  
}

.toolbar {
  flex-wrap:wrap
}
.chapter {
  margin:28px 0
}
.chapter-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap
}
.chapter-head h2 {
  margin:0
}
.chapter-meter {
  font-size:.85rem;
  color:#536174
}
.quest-step {
  position:relative;
  margin:15px 0;
  border:1px solid #cfc3ae;
  border-radius:11px;
  background:#fffdf8;
  overflow:hidden
}
.quest-step>summary {
  list-style:none;
  display:grid;
  grid-template-columns:auto 24px minmax(0,1fr);
  gap:11px;
  padding:18px 22px;
  align-items:start;
  cursor:pointer;
  font-weight:700
}
.quest-step>summary::-webkit-details-marker {
  display:none
}
.step-number {
  font-size:.85rem;
  color:#627286;
  min-width:24px
}
.step-check {
  width:22px;
  height:22px;
  accent-color:#237858;
  margin:3px 0
}
.step-title {
  padding-right:44px
}
.step-meta {
  grid-column:3;
  font-size:.8rem;
  font-weight:400;
  color:#536174
}
.step-body {
  padding:5px 22px 20px
}
.quest-step[open]>summary {
  border-bottom:1px solid #cfc3ae
}
.quest-step.is-complete {
  background:#f4f8f3;
  border-color:#8bab98
}
.quest-step.is-complete::after {
  content:'完了';
  position:absolute;
  right:13px;
  top:17px;
  border:3px double #b3332f;
  border-radius:4px;
  padding:2px 6px;
  color:#b3332f;
  background:#fffdf8;
  font-size:.8rem;
  font-weight:bold;
  line-height:1.3;
  pointer-events:none
}
html[lang=en] .quest-step.is-complete::after {
  content:'DONE';
  font-size:.7rem
}
.quest-step.is-bumping {
  animation:card-bump .58s cubic-bezier(.22,1.3,.36,1)
}
.quest-step.is-bumping.is-complete::after {
  animation:stamp-pop .58s cubic-bezier(.22,1.3,.36,1)
}
.step-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px
}
.tool-button {
  display:inline-block;
  border:1px solid #aebccd;
  border-radius:7px;
  padding:6px 12px;
  text-decoration:none;
  background:#f1f5fa;
  font-size:.86rem
}
.warning,.success,.page-lead {
  padding:16px 20px;
  border:1px solid #cfc3ae;
  border-radius:9px;
  margin:16px 0;
  background:#fffdf8
}
.warning {
  background:#fff4e4;
  border-color:#d8c0a1
}
.success {
  background:#edf5ef;
  border-color:#bed2c4
}
.muted {
  color:#536174
}
.stat {
  font-size:1.4rem;
  font-weight:800;
  color:#1d3f6b
}
.formula {
  overflow-x:auto
}
.table-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  margin:18px 0
}
.table-filter {
  width:300px;
  max-width:100%;
  min-width:0;
  padding:9px 12px;
  border:1px solid #9baabc;
  border-radius:8px
}
.table-controls button {
  font-size:.8rem;
  padding:7px 12px
}
.table-controls button.active {
  background:#1d3f6b;
  color:#fff
}
.resist-grid {
  font-size:.85rem
}
.tag.optional {
  background:#edf2f8
}
.table-wrap td:first-child {
  min-width:115px
}
.table-wrap th {
  cursor:pointer
}
dialog {
  width:min(800px,calc(100% - 30px));
  max-height:85vh;
  padding:24px;
  border:1px solid #a6b3c4;
  border-radius:13px;
  background:#fffdf8;
  color:#15233d;
  overflow:auto
}
dialog::backdrop {
  background:#0e1e38aa
}
.search-dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.search-dialog-head h2 {
  margin:0
}
dialog label {
  display:block;
  margin-top:20px;
  font-size:.9rem
}
#site-query {
  display:block;
  width:100%;
  margin:8px 0;
  padding:12px;
  border:1px solid #93a5bc;
  border-radius:8px
}
#search-results {
  padding-left:1.5em
}
#search-results li {
  margin:15px 0
}
#search-results a {
  display:block;
  text-decoration:none;
  border:1px solid #d0d8e2;
  padding:13px;
  border-radius:8px
}
#search-results strong,#search-results span {
  display:block
}
#search-results span {
  font-size:.82rem;
  color:#536174
}
.boss-card {
  border:1px solid #cfc3ae;
  border-radius:11px;
  padding:18px;
  background:#fffdf8
}
.map-floor-note {
  font-size:.83rem;
  color:#536174
}
html[lang=en] .step-title {
  line-height:1.55
}
@media(max-width:760px) {
  .quest-step>summary {
    padding:16px 13px;
    grid-template-columns:22px 22px minmax(0,1fr);
    gap:8px
  }
  .step-body {
    padding:4px 14px 16px
  }
  .step-title {
    font-size:.98rem;
    padding-right:28px
  }
  .step-meta {
    grid-column:1/-1
  }
  .quest-step.is-complete::after {
    top:15px;
    right:9px;
    font-size:.68rem;
    padding:2px 3px
  }
  .chapter-head h2 {
    font-size:1.23rem
  }
  .toolbar .edition {
    margin-left:0
  }
  .toolbar button {
    font-size:.78rem;
    padding:7px 10px
  }
  .table-filter {
    width:100%
  }
  .map-card {
    padding:14px
  }
  
}
@media print {
  dialog {
    display:none
  }
  .step-actions,.table-controls {
    display:none
  }
  .quest-step {
    break-inside:avoid
  }
  
}
@media(prefers-reduced-motion:reduce) {
  .quest-step,.quest-step::after {
    animation:none!important
  }
  
}


.growth-table>summary {
  grid-template-columns:25px minmax(0,1fr)
}
.growth-table .step-title {
  padding-right:0
}
.growth-table .step-meta {
  display:none
}
@media(max-width:760px) {
  html[lang=ja] .hero h1 {
    font-size:clamp(1.35rem,6.6vw,1.65rem)
  }
  
}



.floating-progress {
  position:static;
  margin:0 max(22px,calc((100vw - 1440px)/2 + 24px)) 12px auto
}
.planner-entry a {
  display:inline-block;
  border:1px solid #a9bccb;
  border-radius:9px;
  padding:12px 18px;
  background:#f3f7f9
}


.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
}

.story-card>summary {
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  list-style:none;
  padding:17px 22px;
  color:#594624;
  font:700 1.22rem/1.5 YuMincho,"Yu Mincho",serif
}

.story-card>summary::-webkit-details-marker {
  display:none
}
.story-card>summary::after {
  content:'+';
  margin-left:auto;
  font:400 1.35rem/1 Arial,sans-serif
}
.story-card[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
}
.story-body p:last-child {
  padding-bottom:8px
}

.story-card>summary:focus-visible {
  outline:3px solid #375e8e;
  outline-offset:-5px;
  border-radius:9px
}

.details-controls--walkthrough {
  margin:30px 0 12px
}
.details-controls--walkthrough h2 {
  margin:0 0 12px;
  text-align:center
}
.details-controls--walkthrough .details-actions {
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  gap:10px;
  max-width:560px;
  margin:0 auto
}
.details-controls--walkthrough .details-actions button {
  flex:1 1 0;
  min-width:0;
  max-width:230px;
  padding-inline:10px;
  white-space:normal
}

@media(max-width:760px) {
  .story-card>summary {
    padding:16px 18px
  }
  .story-body {
    padding:4px 19px 16px;
    line-height:1.95
  }
  .details-controls--walkthrough {
    margin:26px 0 10px
  }
  .details-controls--walkthrough .details-actions {
    gap:8px
  }
  .details-controls--walkthrough .details-actions button {
    font-size:.8rem;
    padding:7px 8px;
    line-height:1.4
  }
  
}

@media(max-width:360px) {
  .details-controls--walkthrough .details-actions {
    gap:6px
  }
  .details-controls--walkthrough .details-actions button {
    font-size:.74rem;
    padding-inline:5px
  }
  
}

.hero {
  background:#183754;
  background-image:none
}

.hero::before,.hero::after {
  content:none!important;
  display:none!important
}

.hero svg,.hero img,.hero canvas {
  display:none
}

.edition-badge {
  display:inline-block;
  font-size:.88rem;
  color:#f3e7bb;
  border:1px solid #c7ba86;
  border-radius:7px;
  padding:5px 11px;
  margin-bottom:12px
}

.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
}

.boss-stats {
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px
}

@media(max-width:600px) {
  .progress-storage-status {
    flex-wrap:wrap;
    font-size:.82rem
  }
  
}
