:root {
  --dq5-header-navy: #1d3f6b;
  --dq5-header-navy-deep: #17375f;
  --dq5-nav-ink: #075b9a;
  --dq5-accent: #a76800;
  --dq5-complete: #237858;
  --dq5-stamp: #b3332f;
}

body.dq5-unified-page > header.hero,
body.dq5-unified-page > nav.global-nav,
body.dq5-unified-page > header.top,
body.dq5-unified-page > .reference-hub {
  display: none !important;
}

.dq5-language-switch {
  position: relative;
  z-index: 72;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px max(18px, calc((100vw - 1480px) / 2 + 24px));
  border: 0;
  border-bottom: 1px solid #b8ac97;
  background: #eee8dc;
  color: #263244;
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.dq5-language-switch button {
  min-height: 34px;
  padding: 5px 14px;
  border: 1px solid #7e8998;
  border-radius: 999px;
  background: #fffdf8;
  color: #24334a;
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}

.dq5-language-switch button[aria-pressed="true"] {
  border-color: #183a67;
  background: #183a67;
  color: #fff;
}

.dq5-language-switch button:focus-visible {
  outline: 3px solid rgba(183, 119, 25, .32);
  outline-offset: 2px;
}

html[lang="en"] .dq5-unified-header__title {
  max-width: 1160px;
  font-size: clamp(1.8rem, 3.7vw, 3.25rem);
}

html[lang="en"] .dq5-unified-nav__inner {
  gap: 6px 20px;
}

html[lang="en"] .data-table,
html[lang="en"] .detail-card,
html[lang="en"] .route-card {
  overflow-wrap: anywhere;
}

.dq5-unified-header,
.dq5-unified-nav,
.dq5-floating-progress {
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.dq5-unified-header {
  position: relative;
  z-index: 70;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 83% -55%, rgba(255, 255, 255, .13), transparent 31rem),
    linear-gradient(118deg, var(--dq5-header-navy-deep), var(--dq5-header-navy));
  color: #fff;
}

.dq5-unified-header::after {
  position: absolute;
  right: -115px;
  bottom: -190px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dq5-unified-header__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 48px clamp(24px, 5.2vw, 80px) 34px;
  padding-right: clamp(105px, 10vw, 150px);
}

.dq5-unified-header__kicker {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(.76rem, 1.1vw, .93rem);
  font-weight: 800;
  letter-spacing: .06em;
}

.dq5-unified-header__title {
  max-width: 1220px;
  margin: 0;
  color: #fff;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .015em;
  text-wrap: balance;
}

.dq5-unified-header__game,
.dq5-unified-header__section {
  display: inline;
}

.dq5-unified-header__section::before {
  content: "　";
}

.dq5-unified-header__lead {
  max-width: 1080px;
  margin: 15px 0 0;
  color: #fff;
  font-size: clamp(.88rem, 1.3vw, 1rem);
  font-weight: 700;
  line-height: 1.75;
}

.dq5-unified-nav {
  position: relative;
  z-index: 69;
  overflow-x: auto;
  border-bottom: 1px solid #aeb8c7;
  background: #fffdf8;
  box-shadow: 0 3px 12px rgba(20, 35, 60, .07);
  scrollbar-width: thin;
}

.dq5-unified-nav__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 24px;
  width: max-content;
  min-width: min(100%, 1480px);
  margin: 0 auto;
  padding: 11px clamp(24px, 5.2vw, 80px) 10px;
}

.dq5-unified-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-bottom: 2px solid transparent;
  color: var(--dq5-nav-ink) !important;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.4;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.dq5-unified-nav a:hover,
.dq5-unified-nav a:focus-visible {
  border-color: #d09a45;
  color: #073d67 !important;
  transform: translateY(-1px);
}

.dq5-unified-nav a[aria-current="page"] {
  border-color: var(--dq5-accent);
  color: #17375f !important;
}

.dq5-floating-progress {
  position: fixed;
  z-index: 500;
  top: 16px;
  right: max(14px, calc((100vw - 1480px) / 2 + 18px));
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(29, 63, 107, .94);
  border-radius: 50%;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 8px 24px rgba(9, 24, 44, .25), inset 0 0 0 3px rgba(255, 255, 255, .92);
  color: #194a3c;
  font-size: 1.06rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  transform-origin: center;
}

.dq5-floating-progress::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(29, 63, 107, .23);
  border-radius: inherit;
  content: "";
}

.dq5-floating-progress.is-bumping {
  animation: dq5-progress-bump .64s cubic-bezier(.22, 1.35, .36, 1);
}

@keyframes dq5-progress-bump {
  0% { transform: scale(1); }
  34% { transform: scale(1.22); }
  62% { transform: scale(.91); }
  82% { transform: scale(1.07); }
  100% { transform: scale(1); }
}


#theme-toggle {
  display: none !important;
}


body.dq5-top-page .progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #cbbda7 !important;
  border-radius: 17px;
  background: linear-gradient(135deg, #fffefa, #f7f1e5) !important;
  box-shadow: 0 10px 28px rgba(64, 48, 26, .10) !important;
  color: #16231c !important;
}

body.dq5-top-page .progress-card h2 {
  color: #17375f;
}

body.dq5-top-page .progress-card p {
  color: #4b5563 !important;
}

body.dq5-top-page .progress-card .progress-track {
  border: 1px solid #d8cbb7;
  background: #e9e2d6;
}

body.dq5-top-page .progress-card .progress-fill {
  background: linear-gradient(90deg, #237858, #d29b2e);
}

.progress-card__summary {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 174px;
}

body.dq5-top-page .progress-number {
  color: #875b06 !important;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem) !important;
  font-variant-numeric: tabular-nums;
}

.progress-reset-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #9f8c70;
  border-radius: 10px;
  background: #fffdfa;
  color: #263244;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.progress-reset-button:hover,
.progress-reset-button:focus-visible {
  border-color: #1d3f6b;
  box-shadow: 0 5px 14px rgba(29, 63, 107, .14);
  transform: scale(1.035);
}

#sound-toggle[aria-pressed="true"] {
  border-color: #237858;
  background: #e6f4ed;
  color: #155a42;
  box-shadow: inset 0 0 0 1px rgba(35, 120, 88, .12);
}

body.dq5-unified-page:not(.dq5-top-page):not(.dq5-monster-page) .dq5-floating-progress {
  display: none !important;
}


.toolbar {
  padding-right: 98px !important;
}


.route-card:has(.route-check:checked) {
  opacity: 1 !important;
  padding-bottom: 58px !important;
  border-color: var(--dq5-complete) !important;
  background: var(--panel) !important;
  box-shadow: 0 7px 18px rgba(24, 87, 66, .10);
}

.route-card:has(.route-check:checked) .route-title,
.check-item:has(input:checked) span,
.track:checked + span,
.track:checked ~ span {
  text-decoration: none !important;
}

.route-card:has(.route-check:checked)::after {
  position: absolute;
  right: 15px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 31px;
  border: 2px solid rgba(179, 51, 47, .92);
  border-radius: 4px 6px 5px 3px;
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 253, 248, .92) 0 1px, transparent 1.35px) 0 0 / 9px 8px,
    radial-gradient(circle at 76% 66%, rgba(255, 253, 248, .74) 0 1px, transparent 1.5px) 0 0 / 13px 11px,
    rgba(255, 253, 248, .86);
  color: var(--dq5-stamp);
  content: "完了";
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-shadow: .5px 0 rgba(120, 25, 23, .44), -.4px .4px rgba(179, 51, 47, .36);
  box-shadow: inset 0 0 0 1px rgba(179, 51, 47, .16), 0 1px 0 rgba(82, 19, 18, .12);
  transform: none;
}

.check-item {
  position: relative;
}

.check-item:has(input:checked) {
  padding-right: 68px !important;
  border-color: var(--dq5-complete) !important;
  background: var(--panel) !important;
  box-shadow: 0 5px 14px rgba(24, 87, 66, .10);
}

.check-item:has(input:checked)::after {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 25px;
  border: 2px solid rgba(179, 51, 47, .92);
  border-radius: 3px 5px 4px 3px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 253, 248, .9) 0 1px, transparent 1.25px) 0 0 / 8px 7px,
    rgba(255, 253, 248, .9);
  color: var(--dq5-stamp);
  content: "完了";
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: .45px 0 rgba(120, 25, 23, .44);
  box-shadow: inset 0 0 0 1px rgba(179, 51, 47, .14);
  transform: translateY(-50%);
}

html[lang="en"] .route-card:has(.route-check:checked)::after,
html[lang="en"] .check-item:has(input:checked)::after {
  content: "DONE";
  letter-spacing: .08em;
}

.route-card.dq5-check-bump,
.check-item.dq5-check-bump {
  animation: dq5-card-bump .58s cubic-bezier(.22, 1.3, .36, 1);
}

.route-card.dq5-check-bump::after {
  animation: dq5-stamp-pop .58s cubic-bezier(.22, 1.3, .36, 1);
}

.check-item.dq5-check-bump::after {
  animation: dq5-small-stamp-pop .58s cubic-bezier(.22, 1.3, .36, 1);
}

@keyframes dq5-card-bump {
  0% { transform: scale(1); }
  36% { transform: scale(1.018); }
  68% { transform: scale(.995); }
  100% { transform: scale(1); }
}

@keyframes dq5-stamp-pop {
  0% { opacity: 0; transform: scale(1.42); }
  58% { opacity: 1; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes dq5-small-stamp-pop {
  0% { opacity: 0; transform: translateY(-50%) scale(1.42); }
  58% { opacity: 1; transform: translateY(-50%) scale(.92); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}


body.dq5-detail-page .brand-kicker,
body.dq5-detail-page .brand-title,
body.dq5-detail-page .brand-copy,
body.dq5-detail-page .side-links {
  display: none !important;
}

body.dq5-detail-page .sidebar {
  padding-top: 22px;
}


body.dq5-detail-page,
body.dq5-detail-page .app,
body.dq5-detail-page main {
  background: #f4f0e7 !important;
  color: #15233d !important;
}

body.dq5-detail-page .sidebar,
body.dq5-detail-page .legend,
body.dq5-detail-page .map-panel,
body.dq5-detail-page .map-toolbar,
body.dq5-detail-page .detail-card {
  border-color: #b9ad99 !important;
  background: #fffdf8 !important;
  color: #15233d !important;
  box-shadow: 0 8px 24px rgba(43, 35, 24, .09) !important;
}

body.dq5-detail-page .map-shell {
  background: #f8f3e9 !important;
}

body.dq5-detail-page .floor-nav,
body.dq5-detail-page .map-toolbar p,
body.dq5-detail-page .map-scale-note,
body.dq5-detail-page .legend-item,
body.dq5-detail-page .point-panel p,
body.dq5-detail-page .event-copy {
  color: #334155 !important;
}

body.dq5-detail-page .floor-nav:hover,
body.dq5-detail-page .floor-nav[aria-current="page"],
body.dq5-detail-page .item-list li,
body.dq5-detail-page .event-list li,
body.dq5-detail-page .route-steps {
  background: #f1eadf !important;
  color: #15233d !important;
}

body.dq5-detail-page .map-view-controls button {
  border-color: #8b7e6c !important;
  background: #fffdfa !important;
  color: #183a67 !important;
}


.dq5-monster-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #b8ac97;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffefa, #f6efe2);
  box-shadow: 0 8px 22px rgba(43, 35, 24, .08);
}

.dq5-monster-progress h2,
.dq5-monster-progress p { margin: 0; }
.dq5-monster-progress p { color: #46536a; }
.dq5-monster-progress__number { color: #875b06; font-size: 1.2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.dq5-monster-progress__bar { height: 12px; margin-top: 10px; overflow: hidden; border: 1px solid #c9bda9; border-radius: 999px; background: #e8dfd1; }
.dq5-monster-progress__fill { width: 0; height: 100%; background: linear-gradient(90deg, #237858, #d29b2e); transition: width .24s ease; }
.dq5-monster-progress__actions { display: grid; justify-items: end; gap: 8px; }
.dq5-monster-reset { min-height: 38px; border: 1px solid #9f8c70; border-radius: 8px; background: #fffdfa; color: #263244; font-weight: 800; cursor: pointer; }
.dq5-get-control { display: inline-flex; align-items: center; gap: 7px; margin-right: 9px; color: #155a42; font-weight: 900; white-space: nowrap; }
.dq5-get-control input { width: 19px; height: 19px; accent-color: #237858; }
.dq5-get-control.is-checked { color: #875b06; }
.dq5-monster-page .card:has(.dq5-get-control input:checked) { border-color: #237858; box-shadow: 0 6px 16px rgba(35, 120, 88, .12); }
.dq5-monster-page .data-table tr:has(.dq5-get-control input:checked) { background: #e6f4ed; }


.map-selection-ring {
  fill: rgba(255, 246, 132, .2);
  stroke: #c53a34;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: dq5-map-ring 1.05s ease-out 1;
}

.map-location-status {
  flex-basis: 100%;
  margin: 0 !important;
  padding: 7px 10px;
  border: 1px solid #c53a34;
  border-radius: 5px;
  background: #fff5cf;
  color: #4a2a12 !important;
  font-weight: 900;
}

body .world-marker.is-pulsing {
  z-index: 12;
  animation: dq5-world-location-pulse 1.05s ease-out 1 !important;
}

.world-location-status {
  margin-top: 12px !important;
}

.item-list li[data-map-list-target],
.event-list li[data-map-list-target] { cursor: pointer; }
.item-list li[data-map-list-target]:focus-visible,
.event-list li[data-map-list-target]:focus-visible { outline: 3px solid #1d5f91; outline-offset: 2px; }

@keyframes dq5-map-ring {
  0% { opacity: 0; transform: scale(.55); stroke-width: 7; }
  45% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); stroke-width: 4; }
}

@keyframes dq5-world-location-pulse {
  0% { transform: translate(-50%, -50%) scale(.72); box-shadow: 0 0 0 2px rgba(7, 20, 35, .78), 0 0 0 0 rgba(197, 58, 52, .75); }
  48% { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 3px #fff, 0 0 0 14px rgba(197, 58, 52, .28); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 3px #fff, 0 0 0 7px #c53a34; }
}


body.dq5-top-page .dq5-language-switch {
  padding-right: max(104px, calc((100vw - 1480px) / 2 + 104px));
}

.walkthrough-details-controls {
  margin-bottom: 20px;
}

.details-toggle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.details-toggle-actions .tool-button {
  min-width: 180px;
}

.dq5-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 520;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #7e8998;
  border-radius: 50%;
  background: #fffdf8;
  color: #17375f;
  box-shadow: 0 8px 22px rgba(9, 24, 44, .22);
  font: 900 1.15rem/1 "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  cursor: pointer;
}

.dq5-back-top:hover,
.dq5-back-top:focus-visible {
  border-color: #17375f;
  outline: 3px solid rgba(183, 119, 25, .32);
  outline-offset: 2px;
}


.price-cell {
  min-width: 92px;
  white-space: nowrap;
}

.price-source,
.unused-item-note {
  display: block;
  margin-top: 3px;
  color: #46536a;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.unused-item-note {
  max-width: 18rem;
}

@media (prefers-reduced-motion: reduce) {
  .dq5-floating-progress.is-bumping,
  .route-card.dq5-check-bump,
  .check-item.dq5-check-bump,
  .route-card.dq5-check-bump::after,
  .check-item.dq5-check-bump::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .map-selection-ring {
    animation: none !important;
  }

  body .world-marker.is-pulsing {
    animation: none !important;
  }

  .dq5-monster-progress__fill {
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .dq5-unified-header__inner {
    padding: 30px 20px 25px;
  }

  .dq5-unified-header__kicker {
    padding-right: 66px;
  }

  .dq5-unified-header__title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    text-wrap: wrap;
  }

  .dq5-unified-header__game,
  .dq5-unified-header__section {
    display: block;
  }

  .dq5-unified-header__game {
    font-size: .82em;
    white-space: nowrap;
  }

  .dq5-unified-header__section {
    margin-top: 5px;
  }

  .dq5-unified-header__section::before {
    content: none;
  }

  .dq5-unified-header__lead {
    margin-top: 11px;
    font-size: .82rem;
  }

  .dq5-unified-nav__inner {
    gap: 5px 18px;
    padding: 9px 20px 8px;
  }

  .dq5-unified-nav a {
    font-size: .84rem;
  }

  .dq5-floating-progress {
    top: 10px;
    right: 10px;
    width: 58px;
    height: 58px;
    border-width: 2px;
    font-size: .9rem;
  }

  .toolbar {
    padding-right: 76px !important;
  }

  body.dq5-top-page .progress-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .progress-card__summary {
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
    min-width: 0;
  }

  .dq5-monster-progress {
    grid-template-columns: 1fr;
  }

  .dq5-monster-progress__actions {
    justify-items: start;
  }
}

@media print {
  .dq5-floating-progress,
  .dq5-language-switch,
  .dq5-back-top {
    display: none !important;
  }

  .dq5-unified-header {
    background: none !important;
    color: #000 !important;
  }

  .dq5-unified-header__kicker,
  .dq5-unified-header__title,
  .dq5-unified-header__lead {
    color: #000 !important;
  }
}


.dq5-detail-page .player-grid-overlay {
  display: none !important;
}

.dq5-detail-page .dq5-map-texture,
.dq5-detail-page .dq5-map-texture image {
  pointer-events: none;
  image-rendering: auto;
}
.storage-warning{position:fixed;z-index:10000;right:1rem;bottom:1rem;max-width:min(32rem,calc(100vw - 2rem));margin:0;padding:.8rem 1rem;border:2px solid #8a4b08;border-radius:.55rem;background:#fff7df;color:#392300;font-weight:700;line-height:1.5;box-shadow:0 .35rem 1.2rem rgba(0,0,0,.25)}


.dq5-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));
  border-bottom: 1px solid #cfc3ae;
  background: #eee8dc;
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: .82rem;
}

.dq5-return-bar > a,
.dq5-guide-footer > a {
  color: #075b9a;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

.dq5-return-bar .dq5-language-switch {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.dq5-return-label-en {
  display: none;
}

body[data-dq5-language="en"] .dq5-return-label-ja {
  display: none;
}

body[data-dq5-language="en"] .dq5-return-label-en {
  display: inline;
}

.dq5-guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 23px max(22px, calc((100vw - 1344px) / 2));
  border-top: 1px solid #cfc3ae;
  background: #eae4d8;
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: .8rem;
}

@media (max-width: 760px) {
  .dq5-return-bar {
    gap: 8px;
    padding: 9px 17px;
  }

  .dq5-return-bar > a {
    font-size: .75rem;
  }

  .dq5-return-bar .dq5-language-switch button {
    padding: 4px 11px;
  }
}

@media print {
  .dq5-return-bar {
    display: none !important;
  }

  .dq5-guide-footer {
    background: #fff;
  }
}
