:root {
  color-scheme: light;
  --ink: #243246;
  --muted: #536176;
  --navy: #17375f;
  --blue: #2f6f9f;
  --pale: #edf4f9;
  --paper: #f3f6f9;
  --line: #ccd6e0;
  --gold: #b28a37;
  --green: #3e7858;
  --red: #a24240;
  font-family: "Yu Gothic UI", Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.72; }
a { color: #145b91; text-underline-offset: .18em; }
a:hover { color: #0d3f68; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #e0a83b; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; z-index: 30; top: .5rem; left: .5rem; padding: .6rem 1rem;
  color: #fff; background: var(--navy); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header { color: #fff; background: var(--navy); }
.return-bar, .title-row, .section-nav { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.return-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; }
.guide-return { color: #fff; font-weight: 700; }
.guide-return:hover { color: #e4eff8; }
.header-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.small-button, .quiet-button {
  min-height: 42px; padding: .45rem .8rem; border: 1px solid #fff; border-radius: 8px;
  color: #fff; background: #244c77;
}
.small-button:hover { background: #315e8e; }
.title-row { padding: clamp(2.1rem, 6vw, 4.4rem) 0 2rem; }
.platform-label, .eyebrow {
  margin: 0; color: #d2e0ee; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
}
h1 {
  max-width: 100%; margin: .4rem 0 0; font-family: "Yu Mincho", "YuMincho", serif;
  font-size: clamp(2rem, 4.1vw, 3.1rem); line-height: 1.24; overflow-wrap: anywhere;
}
.section-nav { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 0 1rem; }
.section-nav a {
  padding: .35rem .7rem; border: 1px solid #718ba6; border-radius: 999px;
  color: #fff; text-decoration: none;
}
.section-nav a:hover { background: #315e8e; }
main { width: min(1200px, calc(100% - 2rem)); margin: 1.5rem auto 4rem; }
.opening-note, .progress-panel, .global-search, .content-section, .page-footer {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 5px 18px rgb(24 49 75 / 8%);
}
.opening-note { margin-bottom: 1rem; padding: 1rem 1.2rem; background: #fff8e8; border-color: #e4cf9e; }
.note-heading { display: flex; align-items: center; gap: .65rem; }
.note-heading h2 { margin: 0; font-size: 1.15rem; }
.note-mark {
  display: grid; width: 1.7rem; height: 1.7rem; flex: 0 0 auto; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: #735318; font-weight: 900;
}
.opening-note ul { margin: .55rem 0 0; padding-left: 1.35rem; }
.opening-note li + li { margin-top: .35rem; }
.progress-panel {
  display: grid; grid-template-columns: minmax(170px, .85fr) minmax(180px, 2fr) minmax(190px, 1fr);
  align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem;
}
.progress-copy h2, .global-search h2 { margin: 0; font-size: 1rem; }
.progress-copy p { margin: .2rem 0 0; }
#progressCount { color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.storage-status { min-height: 1.4em; color: var(--muted); font-size: .82rem; }
.progress-track { height: 14px; overflow: hidden; border: 1px solid #c2ced9; border-radius: 999px; background: #e8edf2; }
.progress-track span {
  display: block; width: 0; height: 100%; border-radius: inherit; background: #4b8a70;
  transition: width .28s ease;
}
.progress-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.filter-check, .card-check, .table-check { display: inline-flex; align-items: center; gap: .4rem; color: #174c73; font-weight: 700; }
.filter-check input, .card-check input, .table-check input { width: 1.15rem; height: 1.15rem; accent-color: #36785b; }
.quiet-button { border-color: #9aa9b8; color: var(--navy); background: #fff; }
.quiet-button:hover { background: var(--pale); }
.global-search { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.4fr); gap: .8rem 1.4rem; align-items: center; padding: 1rem 1.2rem; }
.global-search h2 { color: var(--navy); }
.global-search p { margin: .2rem 0 0; color: var(--muted); }
.search-box { display: grid; gap: .3rem; }
input[type=search] {
  width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid #9fadb9;
  border-radius: 8px; color: var(--ink); background: #fff;
}
.result-count { margin: 0; color: var(--muted); font-size: .88rem; }
.search-results {
  grid-column: 1 / -1; width: 100%; padding: .8rem; border: 1px solid var(--line);
  border-radius: 10px; background: #f8fafc;
}
.search-results h3 { margin: .1rem 0 .5rem; color: var(--navy); font-size: 1rem; }
.search-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; margin: 0; padding-left: 1.2rem; }
.search-result-list li { min-width: 0; overflow-wrap: anywhere; }
.content-section { margin-top: 1rem; padding: clamp(1rem, 3vw, 2rem); scroll-margin-top: 1rem; }
.section-heading { max-width: 900px; margin-bottom: 1.2rem; }
.section-heading .eyebrow { color: #6c7b8c; }
.section-heading h2 { margin: .1rem 0 .4rem; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; }
.section-heading p { margin: .35rem 0; color: var(--muted); }
.section-actions { display: flex; justify-content: flex-end; margin: -.3rem 0 .8rem; }
.walkthrough-list { display: grid; gap: .65rem; }
.walkthrough-card, .info-card {
  min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 3px 12px rgb(24 49 75 / 5%);
}
.walkthrough-card { overflow: clip; }
.walkthrough-card summary {
  display: flex; align-items: center; gap: .75rem; min-height: 58px; padding: .8rem 1rem;
  cursor: pointer; list-style: none;
}
.walkthrough-card summary::-webkit-details-marker { display: none; }
.walkthrough-card summary::after { content: "＋"; margin-left: auto; color: #6b7e91; font-weight: 800; }
.walkthrough-card[open] summary::after { content: "−"; }
.guide-id {
  display: inline-flex; min-width: 3rem; justify-content: center; padding: .15rem .42rem;
  border: 1px solid #bdcbd8; border-radius: 999px; color: #345b7d; background: #f2f6fa;
  font-size: .77rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.guide-title { display: grid; gap: .1rem; min-width: 0; }
.guide-title strong { color: var(--navy); overflow-wrap: anywhere; }
.guide-meta { color: var(--muted); font-size: .86rem; }
.guide-body { padding: .25rem 1rem 1rem; border-top: 1px solid var(--line); }
.guide-body h3 { margin: .9rem 0 .3rem; color: var(--navy); font-size: 1rem; }
.guide-body p { margin: .4rem 0; }
.guide-body ul, .guide-body ol { margin: .45rem 0; padding-left: 1.35rem; }
.guide-body li + li { margin-top: .35rem; }
.check-label { margin-top: .8rem; }
.completion-stamp {
  display: none; align-items: center; margin-left: .35rem; padding: .08rem .4rem;
  border: 1px solid var(--red); border-radius: 999px; color: #8e3331; background: #fffafa;
  font-size: .72rem; font-weight: 900; letter-spacing: .05em; white-space: nowrap;
}
.is-complete .completion-stamp { display: inline-flex; }
.is-complete { background: #f5faf6; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.info-card { padding: 1rem; }
.info-card h3 { margin: .1rem 0 .45rem; color: var(--navy); font-size: 1.1rem; line-height: 1.4; }
.info-card p { margin: .4rem 0; }
.info-card ul, .info-card ol { margin: .4rem 0; padding-left: 1.25rem; }
.info-card li + li { margin-top: .35rem; }
.info-card .card-check { margin-top: .75rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0; }
.badge { display: inline-block; padding: .12rem .45rem; border: 1px solid #c5d0da; border-radius: 999px; color: #345b7d; background: #f2f6fa; font-size: .76rem; font-weight: 700; }
.subsection-heading { margin: 1.4rem 0 .65rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.subsection-heading h3 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table-wrap th, .table-wrap td { padding: .6rem .7rem; border-bottom: 1px solid #dce3e9; text-align: left; vertical-align: top; }
.table-wrap thead th { position: sticky; top: 0; color: #fff; background: var(--navy); font-size: .9rem; }
.table-wrap tbody th { color: #233d5d; font-weight: 700; }
.table-wrap tbody tr:nth-child(even) { background: #f7f9fb; }
.table-wrap tbody tr.is-complete { background: #f2f8f4; }
.table-wrap #trophyTable th:first-child, .table-wrap #trophyTable td:first-child { min-width: 74px; }
.table-wrap .trophy-title { min-width: 190px; }
.table-wrap .trophy-condition { min-width: 300px; }
.table-wrap .trophy-tip { min-width: 270px; }
.table-check { align-items: flex-start; font-size: .88rem; }
.table-check input { flex: 0 0 auto; margin-top: .25rem; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .85rem; }
.summary-item { padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.summary-item strong { display: block; color: var(--navy); }
.page-footer { display: flex; justify-content: center; margin-top: 1rem; padding: 1rem; color: var(--muted); background: var(--navy); }
.page-footer .guide-return { text-decoration: underline; text-underline-offset: .18em; }
.back-to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20; display: grid; width: 48px; height: 48px; place-items: center;
  border: 1px solid #8d9dad; border-radius: 50%; color: var(--navy); background: #fffef9;
  box-shadow: 0 3px 14px rgb(24 49 75 / 18%); font-size: 1.35rem; font-weight: 800;
}
.back-to-top:hover { background: var(--pale); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.empty-state { padding: 1rem; text-align: center; color: var(--muted); }
.print-only { display: none; }
@media (max-width: 800px) {
  .progress-panel { grid-template-columns: 1fr 1.25fr; }
  .progress-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .summary-strip { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .return-bar { align-items: flex-start; flex-direction: column; }
  .header-tools { justify-content: flex-start; }
  .title-row { padding: 2rem 0 1.35rem; }
  .title-row h1 { font-size: clamp(1.55rem, 6.2vw, 1.9rem); line-height: 1.18; }
  .section-nav { gap: .35rem; }
  .section-nav a { padding: .28rem .55rem; font-size: .9rem; }
  main { width: min(100% - 1rem, 1200px); margin-top: .6rem; }
  .progress-panel { grid-template-columns: 1fr; gap: .6rem; padding: .9rem; }
  .progress-actions { grid-column: auto; justify-content: flex-start; }
  .global-search { grid-template-columns: 1fr; gap: .6rem; padding: .9rem; }
  .search-results { grid-column: auto; }
  .search-result-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .content-section { padding: .9rem; }
  .walkthrough-card summary { align-items: flex-start; padding: .75rem; }
  .walkthrough-card summary::after { padding-left: .2rem; }
  .guide-id { min-width: 2.6rem; }
  .guide-body { padding-inline: .75rem; }
  .small-button, .quiet-button { min-height: 40px; }
  .back-to-top { position: static; margin: 1rem 1rem 1.5rem auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { color: #111; background: #fff; }
  .site-header, .progress-panel, .global-search, .section-actions, .card-check, .table-check, .back-to-top, .page-footer, .header-tools { display: none !important; }
  main { width: 100%; margin: 0; }
  .opening-note, .content-section { border: 1px solid #777; box-shadow: none; break-inside: auto; }
  details:not([open]) > *:not(summary) { display: block !important; }
  .walkthrough-card, .info-card, tr { break-inside: avoid; }
  .walkthrough-card { overflow: visible; }
  .walkthrough-card summary::after { display: none; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap th, .table-wrap td { font-size: 9pt; }
  .table-wrap thead th { position: static; color: #111; background: #eee; }
  a { color: #111; }
}
