/* article-discovery.css */
.footer-nav {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 0 18px;
  padding-bottom: 6px;
}
.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.discovery-entrance {
  margin-block: clamp(22px, 4vw, 34px);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #805e74;
  border-radius: 12px;
  background: #2a1b31;
}
.discovery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.discovery-heading h2 { margin: 0; }
.purpose-guides {
  margin-block: clamp(24px, 5vw, 44px);
}
.purpose-guides h2 {
  margin: 0 0 6px;
}
.purpose-guides > p {
  margin: 0;
  color: var(--muted);
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
  padding: 0;
  list-style: none;
}
.purpose-grid a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid #805e74;
  border-radius: 8px;
  background: #2a1b31;
  color: var(--paper);
  text-decoration: none;
}
.purpose-grid a:hover,
.purpose-grid a:focus-visible {
  background: #51354b;
  border-color: #ffc59d;
}
.purpose-grid a > span {
  color: var(--muted);
  font-size: .9rem;
}
.purpose-grid a > .purpose-link {
  margin-top: auto;
  padding-top: 4px;
  color: #ffc59d;
  font-weight: 700;
}
@media (max-width: 680px) {
  .purpose-grid { grid-template-columns: minmax(0, 1fr); }
}
.discovery-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.discovery-topics a,
.discovery-search-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #967889;
  border-radius: 6px;
  color: var(--paper);
  text-decoration: none;
}
.discovery-search-link,
.article-search-fields button {
  border-color: #ffc59d;
  background: #ffc59d;
  color: #2a1b31;
  font-weight: 700;
}
.discovery-topics a:hover { background: #51354b; }
.discovery-search-link:hover,
.article-search-fields button:hover { background: #ffe0c6; }
.discovery-shortcuts { margin-top: 14px; }
.discovery-shortcuts summary {
  min-height: 44px;
  padding-block: 8px;
  color: #ffccac;
  cursor: pointer;
}
.discovery-shortcuts .article-index { margin-top: 8px; }
.discovery-shortcuts .article-index strong,
.topic-related .article-index strong { font-size: 1rem; }
.discovery-page { max-width: 900px; padding-block: clamp(24px, 5vw, 56px); }
.discovery-group { margin-top: 36px; scroll-margin-top: 16px; }
.discovery-group h2 { margin-bottom: 12px; }
.beginner-page { max-width: 760px; }
.beginner-page .beginner-intro { margin-block: 0 16px; }
.beginner-page section h2 { scroll-margin-top: 70px; }
.beginner-tasks {
  display: grid;
  gap: 7px;
  padding: 0;
  margin-block: 10px 24px;
  list-style: none;
}
.beginner-tasks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #805e74;
  border-radius: 8px;
  background: #2a1b31;
  color: var(--paper);
  text-decoration: none;
}
.beginner-tasks a::after { content: "→"; color: #ffc59d; }
.beginner-tasks a:hover { background: #51354b; }
.article-search-form {
  margin-top: 22px;
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid #805e74;
  border-radius: 12px;
  background: #2a1b31;
}
.article-search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) auto;
  gap: 12px;
  align-items: end;
}
.article-search-fields label { display: grid; gap: 5px; font-weight: 650; }
.article-search-fields input,
.article-search-fields select,
.article-search-fields button {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 7px 11px;
  border: 1px solid #967889;
  border-radius: 6px;
  font: inherit;
}
.article-search-fields input,
.article-search-fields select {
  background: #19111f;
  color: var(--paper);
  color-scheme: dark;
}
.article-search-fields input::placeholder { color: #c8b5c4; }
.article-search-fields button { border-color: #ffc59d; cursor: pointer; font-weight: 700; }
.discovery-page :is(a,input,select,button):focus-visible,
.discovery-entrance :is(a,summary):focus-visible,
.topic-related a:focus-visible {
  outline: 2px solid #ffd284;
  outline-offset: 3px;
}
#article-search-status { margin-top: 22px; color: var(--muted); }
#article-search-results span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media (max-width: 650px) {
  .article-search-fields { grid-template-columns: minmax(0, 1fr) auto; }
  .article-search-fields label:first-child { grid-column: 1 / -1; }
}

.home-search { margin-bottom: 1.5rem; }
/* Feedback actions on the homepage and in its mobile menu. */
.home-directory .home-feedback,
.mobile-menu nav a.menu-feedback {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 58px;
  padding: .72em 1em;
  border: 1px solid #ffadde;
  border-radius: 12px;
  background: linear-gradient(105deg, #ff9dcc 0%, #f789bd 48%, #dc8bdc 100%);
  color: #30142c;
  box-shadow: 0 3px 0 #883966;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.home-directory .home-feedback {
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.35;
}
.home-feedback strong { color: inherit; }
.mobile-menu nav a.menu-feedback { margin-block: .4rem .6rem; }
.mobile-menu nav a.menu-feedback::after,
.home-feedback-arrow { content: "→"; color: inherit; margin: 0; }
.home-directory .home-feedback:hover,
.mobile-menu nav a.menu-feedback:hover { background: linear-gradient(105deg, #ffb3d9, #ed9cdd); }
.home-directory .home-feedback:active,
.mobile-menu nav a.menu-feedback:active { transform: translateY(2px); box-shadow: 0 1px 0 #883966; }
.home-directory .home-feedback:focus-visible,
.mobile-menu nav a.menu-feedback:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.home-search label { display: block; margin-bottom: .5rem; font-size: 1.2rem; font-weight: 700; }
.home-search div { display: flex; gap: .5rem; }
.home-search input, .home-search button {
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid #967889;
  border-radius: 6px;
  font: inherit;
}
.home-search input { flex: 1; min-width: 0; color: var(--paper); background: #19111f; }
.home-search input::placeholder { color: #c8b5c4; }
.home-search button { color: #2a1b31; background: #ffc59d; font-weight: 700; cursor: pointer; }

.article-index a.thumb-link {
  grid-template-columns: clamp(96px, 18vw, 176px) minmax(0, 1fr) auto;
  align-items: center;
}
.article-index .thumb-link::after { grid-column: 3; grid-row: 1; }
.thumb-link > div { display: grid; gap: 4px; min-width: 0; }
.article-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
}
@media (max-width: 600px) {
  .article-index a.thumb-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-inline: 0;
  }
  .thumb-link > div { display: contents; }
  .thumb-link > div > time,
  .thumb-link > div > span:has(time) { order: -1; }
  .article-index .thumb-link::after { content: none; }
}

.topic-browser { margin-top: 16px; }
.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  border-bottom: 1px solid #795d72;
}
.topic-tabs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 5px clamp(6px, 2vw, 16px);
  border-bottom: 3px solid transparent;
  color: #e4d6df;
  font-weight: 650;
  text-decoration: none;
}
.topic-tabs a[aria-selected="true"] { border-color: #ffb68c; color: #ffd1ad; }
.topic-tabs a:hover { background: #3b293d; }
.topic-headlines { margin: 0; padding: 0; list-style: none; }
.topic-headlines li { border-bottom: 1px solid #553e53; }
.topic-headlines a, .topic-more, .topic-directory {
  display: block;
  padding-block: 12px;
  color: #fff2ed;
  text-underline-offset: 3px;
}
.topic-headlines a { text-decoration: none; }
.topic-headlines a:hover { text-decoration: underline; }
.topic-more, .topic-directory { width: fit-content; color: #ffcfad; }
.topic-directory { font-weight: 700; }

.article-toc,
.category-toc {
  padding: clamp(14px, 3vw, 20px);
  border: 1px solid #684b5d;
  border-radius: 12px;
  background: #2a1b31;
  overflow-wrap: anywhere;
}
.article-toc { margin-block-start: 20px; }
.article-toc ol { margin: .5em 0 0; }
/* 固定ヘッダー用の scroll-padding-top に、見出し上の余白を足す。 */
.article-body h2[id^="sec-"] { scroll-margin-top: 12px; }

.category-toc { margin-block: clamp(20px, 4vw, 32px); }
.category-toc h2 { margin: 0 0 12px; }
.category-toc-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .category-toc-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.category-toc-groups > details { border-top: 1px solid #684b5d; }
.category-toc-groups > details[open] { grid-column: 1 / -1; }
.category-toc-groups > details:not([open]) > summary { height: 100%; }
.category-toc summary {
  display: grid;
  grid-template-columns: .6em minmax(0, 1fr);
  align-items: start;
  column-gap: .4em;
  min-height: 44px;
  padding-block: 8px;
  padding-inline-end: 8px;
  color: #ffccac;
  cursor: pointer;
  list-style: none;
}
.category-toc summary::-webkit-details-marker { display: none; }
.category-toc summary::before {
  content: "";
  inline-size: .6em;
  block-size: .65em;
  margin-block-start: .55em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.category-toc-groups > details[open] > summary::before { transform: rotate(90deg); }
.category-toc-tail {
  /* 最後の語と件数をまとめ、列より長い場合だけ中で折り返す。 */
  display: inline-block;
  inline-size: max-content;
  max-inline-size: 100%;
  vertical-align: top;
}
.category-toc ul { margin: 0 0 10px; padding-inline-start: 1.5em; }
.category-toc a { display: block; min-height: 44px; padding-block: 8px; }
.category-toc summary:focus-visible { outline: 3px solid #ffd284; outline-offset: 2px; }

.mission-directory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  margin-block-end: 8px;
}
.mission-directory-header h2 { margin: 0; }
.mission-directory-header a { color: #ffcfad; }
.mission-directory > p { margin: 0 0 12px; }
.mission-directory h3 { margin: 8px 0 0; font-size: 1rem; }
.mission-topic-toc > summary { min-height: 44px; padding-block: 8px; cursor: pointer; }
.mission-topic-toc .category-toc { margin-block-start: 0; }
#mission-latest { scroll-margin-top: 12px; }

.editorial .edition-pager { flex-wrap: wrap; gap: 8px; }
.edition-pager :is(a, [aria-current="page"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 46px;
  padding: 4px 8px;
  border: 1px solid #684b5d;
  border-radius: 6px;
}
.edition-pager [aria-current="page"] {
  background: #482d41;
  color: var(--paper);
  font-weight: 700;
}

.latest-freshness { margin-block: 0 12px; font-size: .875rem; }
.latest-freshness > span {
  /* かたまりごとに次の行へ送り、かたまり自体が幅を超える場合だけ中で折り返す。 */
  display: inline-block;
  inline-size: max-content;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  vertical-align: top;
}
/* style.0e1b767f4b.css */
:root{color-scheme:dark;--paper:#fff4e7;--ink:#180e20;--muted:#d9cddb}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--paper);font:16px/1.75 "Hiragino Sans","Yu Gothic",sans-serif}
main,footer{width:min(100% - 40px,1000px);margin:auto}
a{color:#ffb684;text-underline-offset:4px}a:hover{color:#fff}a:focus-visible{outline:3px solid #ffd284;outline-offset:2px}
section{padding:36px 0;border-bottom:1px solid #50374d;scroll-margin-top:16px}h2{line-height:1.35;margin:8px 0;font-size:clamp(22px,3vw,32px)}section p{color:var(--muted);max-width:66ch;margin:12px 0}strong{color:var(--paper)}footer{padding:24px 0 36px;color:var(--muted);font-size:.78rem}
@media(max-width:620px){section{padding:28px 0}}
.location-notes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin-top:16px}
.location-notes figure{margin:0}.location-notes img{display:block;width:100%;height:auto}.location-notes figcaption{color:var(--muted);font-size:.76rem;margin:6px 0}.location-notes p:first-child{margin-top:0}
@media(max-width:700px){.location-notes{grid-template-columns:1fr;gap:12px}}

.facts{border-collapse:collapse;width:100%;text-align:left}
.facts caption{text-align:left;color:var(--muted);font-size:.85rem;padding:4px 0 10px}
.facts th,.facts td{padding:12px 14px;border-bottom:1px solid #50374d;vertical-align:top}
.facts th{background:#291a32;color:#ffcfaa;width:10em}
.sources{font-size:.85rem}
@media(max-width:700px){.facts th,.facts td{padding:10px 8px}.facts th{width:6em}}

h2{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;color:var(--paper)}
/* 解析の同意。表示中は analytics.js が帯の高さを --consent-space に入れ、その分だけページ下端に余白を足す。
   最下部までスクロールすれば、フッターのリンクや「Cookie設定」が帯の下に隠れない。 */
body{padding-bottom:var(--consent-space,0px)}
#analytics-choice{position:fixed;z-index:10;inset:auto 12px 12px auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:min(390px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:14px 18px;background:#261b2c;color:var(--paper);border:1px solid #83677b;box-shadow:0 4px 20px #150b1b66;font-size:.85rem;line-height:1.55}
#analytics-choice[hidden]{display:none}
#analytics-choice p{flex:1 1 100%;margin:0}
/* 「許可する」「許可しない」は同じ大きさ・同じ見た目にする（どちらかへ誘導しない） */
#analytics-choice button{flex:1 1 7em;min-height:44px;font:inherit;color:var(--paper);background:transparent;border:1px solid #ab8f9c;border-radius:6px;padding:4px 12px;cursor:pointer}
#analytics-choice button[aria-pressed="true"]{border-color:#ffc59d;box-shadow:inset 0 0 0 1px #ffc59d;color:#ffd0aa}
#analytics-choice button:focus-visible{outline:3px solid #ffd284;outline-offset:2px}
#analytics-choice button:active{background:#3a2a40}
/* スマホ：画面下端いっぱいの帯にして行数を減らす */
@media(max-width:620px){#analytics-choice{inset:auto 0 0;width:auto;max-height:100%;padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-width:1px 0 0;box-shadow:0 -4px 20px #150b1b66}}
/* 高さの低い画面（横向きのスマホ、200%拡大のPC）：文とボタンを横一列に並べて薄くする */
@media(min-width:560px) and (max-height:520px){#analytics-choice{inset:auto 0 0;flex-wrap:nowrap;width:auto;max-height:100%;padding:8px max(16px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-width:1px 0 0;box-shadow:0 -4px 20px #150b1b66}#analytics-choice p{flex:1 1 auto}#analytics-choice button{flex:0 0 auto;min-width:6.5em}}
/* 極端に小さい画面（スマホの200%拡大など）では帯が画面の半分近くを占めるので、固定をやめてページ末尾に置く。
   「Cookie設定」を押すとここへ移動する。選ぶまで解析は始まらない。 */
@media(max-width:299px),(max-width:559px) and (max-height:299px){#analytics-choice{position:static;width:auto;max-height:none;margin:0 20px 24px;padding:14px 16px;border-width:1px;box-shadow:none}}
footer{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px}
/* フッターのリンクは語の途中で折り返さず、入らなければリンクごと次の行へ送る */
footer a{display:inline-block;padding-block:6px}
#analytics-settings{min-height:44px;font:inherit;color:inherit;background:transparent;border:0;padding:4px 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#analytics-settings:focus-visible{outline:2px solid var(--paper);outline-offset:2px}

.home-directory { padding-block: clamp(20px, 4vw, 42px); }
.directory a {
  display: grid;
  grid-template-columns: minmax(8em, .65fr) 1.4fr auto;
  align-items: baseline;
  gap: 6px 24px;
  padding: 16px 4px;
  border-bottom: 1px solid #50374d;
  text-decoration: none;
  color: var(--paper);
}
.directory a::after { content: "→"; color: #ffc59d; }
.directory span { font-size: clamp(19px, 2.3vw, 28px); font-weight: 650; }
.directory small { color: var(--muted); font-size: .92rem; }
.directory a:hover span, .masthead a:hover { color: #ffc59d; }
.masthead, .category-nav { width: min(100% - 40px, 1000px); margin-inline: auto; }
.masthead { padding-block: 24px 12px; }
.masthead a { color: var(--paper); text-decoration: none; font-weight: 700; }
.category-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 32px); border-bottom: 1px solid #50374d; }
.category-nav a { padding: 10px 0; font-size: .9rem; color: var(--muted); text-decoration: none; }
.category-nav [aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px #ffb684; }
.category-page h1 { margin: 0; padding-top: clamp(28px, 5vw, 64px); font-size: clamp(34px, 5vw, 58px); line-height: 1.2; }
.category-page section { padding-top: 20px; }
.category-page ol { max-width: 66ch; padding-left: 1.7em; }
.category-page li + li { margin-top: .6em; }
.guide-language { font-size: .88rem; color: var(--muted); }
.home-directory > .guide-language { margin: 0 0 12px; text-align: right; }
@media (max-width: 620px) {
  .directory a { grid-template-columns: 1fr auto; }
  .directory small { grid-column: 1; font-size: .85rem; }
  .directory a::after { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
.language-switch { white-space: nowrap; font-size: .88rem; font-weight: 500; }
.masthead { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; }
.masthead .language-switch { text-decoration:underline; }

.editorial-skip {
  position: absolute;
  z-index: 30;
  inset: 8px auto auto 12px;
  clip-path: inset(50%);
  pointer-events: none;
  padding: 8px 14px;
  color: var(--paper);
  background: var(--ink, #241828);
}
.editorial-skip:focus-visible {
  clip-path: none;
  pointer-events: auto;
}

@media (max-width: 299px) {
  .hero .panel .title {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* mobile-nav.a8085c3bcb.css */
.mobile-menu { display: none; }

@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  .mobile-menu {
    --menu-edge: max(12px, env(safe-area-inset-right));
    --menu-top: max(8px, env(safe-area-inset-top));
    display: block;
    position: fixed;
    top: var(--menu-top);
    right: var(--menu-edge);
    z-index: 12;
    color: var(--paper);
  }

  .mobile-menu summary {
    display: flex;
    width: max-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid #977985;
    border-radius: 24px;
    background: #211525;
    color: var(--paper);
    font-size: .85rem;
    font-weight: 650;
    line-height: 1.25;
    box-shadow: 0 3px 14px #10081560;
    list-style: none;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary { -webkit-tap-highlight-color: transparent; }
  /* メニューの外側をおおう幕。summary の一部なので、外をタップするとボタンを押したのと同じ扱いで閉じる。
     iOS Safari はリンクやボタン以外へのタップで click を届けないため、JavaScript の外側判定には頼らない。
     幕が背景のリンクも受け止めるので、閉じると同時にページが移動することもない。 */
  .mobile-menu[open] > summary::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0d071880;
    cursor: default;
  }
  .mobile-menu summary:focus-visible,
  .mobile-menu button:focus-visible { outline: 3px solid #ffd284; outline-offset: 2px; }

  .menu-icon { display: grid; flex: none; width: 18px; gap: 4px; }
  .menu-icon i { height: 2px; background: #ffc59d; border-radius: 2px; }
  .mobile-menu[open] .menu-icon i:first-child { transform: translateY(6px) rotate(45deg); }
  .mobile-menu[open] .menu-icon i:nth-child(2) { opacity: 0; }
  .mobile-menu[open] .menu-icon i:last-child { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(310px, calc(100vw - var(--menu-edge) - 12px));
    max-height: calc(100vh - var(--menu-top) - 70px);
    max-height: calc(100dvh - var(--menu-top) - 70px - env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #805e74;
    border-radius: 16px;
    background: #281a2d;
    box-shadow: 0 12px 34px #0d0718aa;
  }
  .mobile-menu nav a, .mobile-menu .menu-dismiss {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    color: var(--paper);
  }
  .mobile-menu nav a::after { content: "›"; margin-left: auto; color: #dfa88d; }
  .mobile-menu nav a[aria-current="page"] { background: #482d41; color: #ffd0aa; }
  .mobile-menu nav a[aria-current="page"]::after {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffb684;
  }
  .mobile-menu nav a[hreflang] { margin-top: 4px; border-top: 1px solid #63485e; border-radius: 0; }
  .mobile-menu .menu-dismiss {
    width: 100%; justify-content: center; border: 0; background: #38253c; color: #f4d5c4;
    font: inherit; font-size: .875rem; cursor: pointer;
  }
  .mobile-menu .menu-dismiss[hidden] { display: none; }
  .mobile-menu nav a:focus-visible { outline-offset: -3px; }
  .mobile-menu nav a:active, .mobile-menu .menu-dismiss:active { background: #55354b; }

  /* サイト名の帯を画面上部に留め、固定のメニューボタンをその中に収める。
     本文は帯の下を流れるので、ボタンが見出しや行末に重ならない。
     header.masthead と書くのは、後から読み込まれる記事用CSSの右余白指定より優先させるため。 */
  html { scroll-padding-top: 76px; }
  header.masthead {
    position: sticky;
    top: 0;
    z-index: 11;
    width: 100%;
    min-height: 64px;
    align-items: center;
    padding: 8px calc(133px + env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
    border-bottom: 1px solid #50374d;
    background: var(--ink);
  }
  /* サイト名は語の途中で折り返さない。区切りは空白（Chrome は「・」の後でも区切る。Safari は区切らない）。
     320px幅でも「裏技・攻略まとめサイト」が1行に収まるよう、狭い画面では文字を少し小さくする。
     それでも入りきらない幅では文字単位で折り返す。 */
  .masthead > a:first-child {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: clamp(.8rem, 4.4vw, .95rem);
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  /* トップページには帯がないので、ボタンはページと一緒に流す（カテゴリの矢印に重ねない）。
     開いている間だけ画面に固定し、メニューが画面外へ流れないようにする。 */
  .mobile-menu:has(+ .hero) { position: absolute; }
  .mobile-menu[open]:has(+ .hero) { position: fixed; }
  .masthead .language-switch, .category-nav, .home-directory > .guide-language { display: none; }

  .home-directory { padding-block: 16px 26px; }
  .directory { display: grid; gap: 8px; }
  .directory a {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 14px;
    min-height: 64px;
    padding: 12px 14px;
    color: var(--paper);
    border: 1px solid #64495e;
    border-radius: 12px;
    background: linear-gradient(110deg, #312034, #231829);
  }
  .directory span { font-size: 1.13rem; line-height: 1.4; }
  .directory small { grid-column: 1; font-size: .85rem; line-height: 1.5; }
  .directory a::after {
    content: "→";
    display: grid;
    grid-column: 2;
    grid-row: 1 / 3;
    place-items: center;
    align-self: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffcea9;
    background: #503448;
    font: 500 1rem/1 system-ui, sans-serif;
  }
  .directory a:active { background: #482d41; border-color: #e6a889; }
}

/* 高さの低い画面（横向きのスマホ、200%拡大のPC）と極端に狭い画面では、帯を留めると読む場所が足りなくなる。
   帯もボタンもページと一緒に流し、開いている間だけボタンを固定する。 */
@media (max-width: 760px) and (max-height: 520px), (max-height: 520px) and (pointer: coarse), (max-width: 299px) {
  html { scroll-padding-top: 0; }
  header.masthead { position: static; }
  .mobile-menu { position: absolute; }
  .mobile-menu[open] { position: fixed; }
}

/* 極端に狭い画面（スマホの200%拡大など）では「メニュー」の文字をたたみ、サイト名の幅を確保する。読み上げ用の名前は残る。 */
@media (max-width: 299px) {
  .mobile-menu summary { width: 48px; justify-content: flex-start; gap: 14px; padding: 0 14px; overflow: hidden; font-size: 0; white-space: nowrap; }
  header.masthead { padding-right: calc(68px + env(safe-area-inset-right)); }
  .masthead > a:first-child { font-size: .8rem; }
}
/* collections.css */
/* まとめページ（武器・アイテム・収集物・小ネタ）用。 */

.collection-page .collection-table { margin-top: 28px; }
.collection-note {
  margin: 12px 0;
  padding: 12px 16px;
  border: 2px solid #ffc59d;
  border-radius: 8px;
  background: #3a2638;
  color: var(--paper);
  line-height: 1.6;
}
.collection-note strong { color: #ffc59d; }
.collection-table table { width: 100%; border-collapse: collapse; }
.collection-table th,
.collection-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #684b5d;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.collection-table thead th { color: #ffc59d; white-space: nowrap; }
.collection-table tbody th { font-weight: 650; }
.collection-all { margin-top: 28px; }

/* スマホ幅では表を1行ずつのカードに積み直し、横にはみ出さないようにする。 */
@media (max-width: 640px) {
  .collection-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .collection-table table, .collection-table tbody, .collection-table tr { display: block; }
  .collection-table tr {
    margin-bottom: 12px;
    border: 1px solid #684b5d;
    border-radius: 10px;
    background: #2a1b31;
  }
  .collection-table tbody th { display: block; padding: 10px 14px 4px; border-bottom: 0; font-size: 1.05rem; }
  .collection-table tbody td { display: block; padding: 4px 14px; border-bottom: 0; }
  .collection-table tbody td:last-child { padding-bottom: 10px; }
  .collection-table td::before {
    content: attr(data-label);
    display: block;
    color: #d0adbb;
    font-size: .78rem;
  }
}
/* editorial.3ebae167b9.css */
.editorial { padding-bottom: 32px; }
.editorial-opening { margin-top: clamp(16px, 3vw, 32px); }
.editorial-banner { margin: 0; }
.editorial-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.editorial-banner figcaption {
  padding: 3px 4px 0;
  color: #c7b2c2;
  text-align: right;
  font: 11px/1.65 system-ui, sans-serif;
}
.editorial-banner figcaption a { color: inherit; }
@media (min-width: 761px) {
  .editorial-opening {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "intro picture";
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
  }
  .editorial-intro { grid-area: intro; }
  .editorial-banner { grid-area: picture; }
}
.crumbs { margin: 17px 0 10px; color: var(--muted); font-size: .85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: #b697a7; }
.crumbs a { display: inline-block; padding: 4px 0; }
.editorial h1 { margin: 0; max-width: 28em; font-size: clamp(1.7rem, 3.7vw, 3.1rem); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.editorial .lead { margin: .8em 0; color: var(--paper); max-width: 68ch; }
.editorial .byline, .article-index time { color: #d0adbb; font-size: .82rem; }
.editorial .byline { display: flex; flex-wrap: wrap; gap: .3em 1.25em; margin: 12px 0 0; }
.article-index { display: grid; margin: 20px 0 0; padding: 0; list-style: none; }
.article-index li { border-top: 1px solid #684b5d; }
.article-index li:last-child { border-bottom: 1px solid #684b5d; }
.article-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  padding: 18px 12px 18px 2px;
  text-decoration: none;
  color: var(--paper);
}
.article-index a::after { content: "→"; grid-row: 1 / 4; grid-column: 2; align-self: center; color: #ffbb93; font-size: 1.4rem; }
.article-index strong { font-size: clamp(1.1rem, 2.4vw, 1.55rem); line-height: 1.45; }
.article-index span { color: var(--muted); font-size: .94rem; }
.article-index a:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: 4px; }
.article-body, .article-references { max-width: 74ch; }
.article-body section, .article-references { padding: 24px 0; }
.article-body h2, .article-references h2 { font-size: clamp(1.2rem, 2.7vw, 1.65rem); }
.article-body p { max-width: none; }
.article-body ol { padding-left: 1.7em; color: var(--muted); }
.article-body li + li { margin-top: .5em; }
.article-references ul { padding-left: 1.3em; }
.article-references li { padding: 3px 0; overflow-wrap: anywhere; }
.edition-pager { display: flex; gap: 20px; margin: 16px 0 0; }
.edition-pager a, .article-return { display: inline-flex; align-items: center; min-height: 46px; }
.category-nav [aria-current="location"] { color: var(--paper); box-shadow: inset 0 -2px #ffb684; }
.mobile-menu nav a[aria-current="location"] { background: #482d41; color: #ffd0aa; }
@media (max-width: 620px) {
  .editorial-opening { margin-top: 0; }
  .editorial-banner { margin-inline: -20px; }
  .editorial-banner figcaption { padding-inline: 20px; }
  .article-index a { padding-block: 16px; }
}

@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  .masthead { padding-right: calc(140px + env(safe-area-inset-right)); }
  .crumbs .story-crumb { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.editorial-skip { position: absolute; left: 12px; top: -8em; z-index: 30; padding: 8px 14px; color: var(--paper); background: var(--ink); }
.editorial-skip:focus { top: 8px; }
.editorial-banner figcaption { font-size: .78rem; }
.editorial-banner figcaption a, .crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.editorial-banner.editorial-portrait { margin-inline: 0; }
.editorial-portrait img { width: min(100%, 300px); margin-inline: auto; }
.editorial-portrait figcaption { padding-inline: 0; text-align: center; }
@media (min-resolution: 1.5dppx) { .editorial-portrait img { max-width: 150px; } }
@media (min-resolution: 2.5dppx) { .editorial-portrait img { max-width: 100px; } }
.crumbs .story-crumb { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 761px) {
  .editorial h1 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); text-wrap: balance; }
  .headline-phrase { display: inline-block; max-width: 100%; white-space: pre-wrap; }
}
:lang(ja) .facts th { width: clamp(9em, 30%, 13em); }
@media (max-width: 520px) { :lang(ja) .facts th { width: 36%; } }
.related-guide { padding-block: 16px; }
.related-guide h2 { font-size: 1.1rem; }
.information { max-width: 72ch; padding-block: clamp(28px, 5vw, 64px); }
.information h2 { font-size: 1.4rem; }
.information-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-block: 18px; }
.information-links a { display: inline-flex; min-height: 44px; align-items: center; }
.error-picture { margin: 1rem 0; max-width: 480px; }
.error-picture img { display: block; width: 100%; height: auto; }
.error-picture figcaption { color: var(--muted); font-size: .8rem; }
@media (pointer: coarse) {
  .editorial-banner figcaption a, .crumbs a { min-height: 44px; }
}

.masthead.error-masthead { padding-inline-end: 0; }

@media (max-width: 239px) {
  .facts { table-layout: fixed; overflow-wrap: anywhere; }
  .facts th, .facts td { padding-inline: 4px; }
  .facts th, :lang(ja) .facts th { width: 42%; }
}

/* Street-sign typography for titles and section headings in both editions. */
.hero .title-name,
.hero .title-sub,
main.editorial h1,
main h2,
main h3,
main .home-search label {
  font-family: Impact, "Arial Black", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
}
.hero .title-name,
.hero .title-sub {
  text-shadow: 2px 3px #552539;
}

.site-logo { display: block; width: min(145px, 100%); height: auto; }
.masthead { align-items: center; }
.masthead > a:first-child { max-width: 100%; }
.hero .home-logo {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  width: min(145px, 44vw);
  min-height: 44px;
  pointer-events: auto;
  filter: drop-shadow(0 1px 4px #170d1a);
}
.home-logo:focus-visible { outline: 3px solid #ffd284; outline-offset: 3px; }
/* 英語ページはカテゴリ名が長く、項目が増えると幅1280pxで2行に折り返すため、項目の間隔だけ詰める（日本語は変えない） */
html[lang="en"] .category-nav { column-gap: clamp(12px, 1.8vw, 18px); }
/* guide-tools.css */
/* 進行順、早見表、チェック項目の共通部品。 */
.mission-sequence { padding-inline-start: 2.5em; }
.mission-sequence > li { padding: 12px 4px; border-bottom: 1px solid #684b5d; scroll-margin-top: 90px; }
.mission-sequence > li::marker { color: #ffc59d; font-weight: 700; }
.mission-sequence ul { list-style: none; padding-inline-start: 0; }
.mission-coming { display: block; color: #c7b1c1; font-size: .9rem; margin-top: 6px; }
.mission-sources { font-size: .78rem; line-height: 1.7; color: #d0bdcc; overflow-wrap: anywhere; }
.category-toc .mission-sources a { display: inline; min-height: 0; padding: 0; }
.article-labels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0; }
.article-labels li { font-size: .82rem; padding: 5px 10px; border: 1px solid #684b5d; border-radius: 6px; overflow-wrap: anywhere; }
.article-labels .missable-label, .missable-marker { color: #ffd284; background: #3a2638; border-color: #b18a52; }
.missable-marker { display: inline-block; margin-inline-start: 8px; padding: 2px 6px; border: 1px solid #b18a52; border-radius: 4px; font-size: .75rem; }
.essential-guides ul, .popular-guides ol { padding-inline-start: 1.5em; }
.essential-guides li, .popular-guides li { margin-block: 8px; overflow-wrap: anywhere; }
.essential-guides a, .popular-guides a { display: block; padding-block: 8px; }
.essential-guides, .popular-guides { margin-block: 28px; }
.popular-updated { color: #d0bdcc; }
.mission-pager { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; padding: 14px; border: 1px solid #684b5d; border-radius: 10px; }
.mission-pager a { flex: 1 1 210px; display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.mission-pager .mission-position { justify-content: center; }
.quick-reference { margin-block: 24px; }
.quick-table { width: 100%; border-collapse: collapse; }
.quick-table th, .quick-table td { padding: 12px; border-bottom: 1px solid #684b5d; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.quick-table th { color: #ffc59d; }
.quick-table button, .checklist-controls button { font: inherit; color: inherit; background: #3a2638; border: 1px solid #99758a; border-radius: 6px; padding: 10px; min-height: 44px; cursor: pointer; }
.quick-table th[aria-sort="none"] button::after { content: ' ↕'; }
.quick-table th[aria-sort="ascending"] button::after { content: ' ↑'; }
.quick-table th[aria-sort="descending"] button::after { content: ' ↓'; }
.table-tools label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-tools input { box-sizing: border-box; max-width: 100%; min-width: 0; min-height: 44px; padding: 10px; font: inherit; color: #fff4ec; background: #2a1b31; border: 1px solid #99758a; border-radius: 6px; }
.table-tools p, .quick-note, .checklist-note { color: #d0bdcc; }
.checklist { list-style: none; padding: 0; }
.checklist li { margin-block: 8px; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 12px; min-height: 44px; box-sizing: border-box; border: 1px solid #684b5d; border-radius: 8px; cursor: pointer; }
.checklist input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: #ffc59d; }
.checklist-controls { margin-block: 20px; }
.guide-tools [hidden], .quick-table [hidden], .checklist-controls[hidden] { display: none !important; }
.quick-table button:focus-visible, .table-tools input:focus-visible, .checklist input:focus-visible, .checklist-controls button:focus-visible { outline: 3px solid #ffd284; outline-offset: 3px; }
/* まとめページの早見表の折りたたみ */
.quick-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border: 1px solid #684b5d; border-radius: 10px; background: #2a1b31; color: #ffc59d; font-weight: 700; }
.quick-details[open] > summary { margin-bottom: 12px; }
.quick-details > summary:focus-visible { outline: 3px solid #ffd284; outline-offset: 3px; }
@media (max-width: 640px) {
  .mission-pager { flex-direction: column; }
  .mission-pager a { flex: auto; }
  .quick-table, .quick-table thead, .quick-table tbody, .quick-table tr { display: block; }
  /* 並べ替えの見出しはスマホでも操作できる位置に残す。 */
  .quick-table thead tr { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px; }
  .quick-table thead th { display: block; border: 0; padding: 0; font-size: .9rem; }
  .quick-table thead th[data-no-sort] { display: none; }
  .quick-table tbody tr { border: 1px solid #684b5d; border-radius: 10px; margin-bottom: 8px; background: #2a1b31; padding: 8px 0; }
  .quick-table td { display: block; padding: 1px 14px; border: 0; font-size: .9rem; line-height: 1.45; }
  /* 1列目は項目名なしの太字見出し、2列目以降は「項目名：値」を1行に流す */
  .quick-table td:first-child { font-size: 1rem; font-weight: 700; padding-bottom: 3px; }
  .quick-table td::before { content: attr(data-label) "："; color: #d0adbb; font-size: .78rem; }
  .quick-table td:first-child::before, .quick-table td.quick-guide::before { content: none; }
  .quick-table a { display: inline-block; padding-block: 8px; min-height: 28px; }
  .quick-table td.quick-guide { padding-top: 2px; }
}

/* ミッション一覧の章の見出し：章名と件数を横に並べる */
.mission-directory summary:has(.chapter-counts) { grid-template-columns: .6em auto minmax(0, 1fr); align-items: baseline; }
.mission-directory summary:has(.chapter-counts)::before { align-self: start; }
.chapter-counts { margin-inline-start: .6em; color: #d0bdcc; font-size: .82rem; }
@media (max-width: 640px) {
  .category-toc-groups:has(.chapter-counts) { grid-template-columns: minmax(0, 1fr); }
}
