/* クソゲーコレクション: 一見まじめな資料館風のサイト */
:root {
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #1f2328;
  --sub: #5d6168;
  --faint: #8a8d92;
  --rule: #d9d5cc;
  --navy: #14284b;
  --navy2: #1f3a66;
  --gold: #a8874a;
  --red: #9b2c2c;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

a { color: var(--navy2); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.utility {
  background: var(--navy);
  color: #c9d1de;
  font-size: 12px;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  height: 32px;
  align-items: center;
}
.utility a { color: #c9d1de; text-decoration: none; }
.utility a:hover { color: #fff; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
.brand-sub {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.14em;
}
.gnav { display: flex; gap: 4px; }
.gnav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.gnav a:hover, .gnav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink); }

/* ---------- パンくず ---------- */
.crumbs {
  font-size: 12px;
  color: var(--faint);
  padding: 14px 0;
}
.crumbs a { color: var(--sub); }
.crumbs span + span::before { content: "›"; margin: 0 8px; }

/* ---------- トップ: キービジュアル ---------- */
.kv {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.kv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.kv-text {
  padding: 64px 48px 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kv-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
}
.kv h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.55;
  letter-spacing: 0.08em;
}
.kv p {
  margin: 0 0 30px;
  color: #c9d1de;
  font-size: 14px;
  max-width: 30em;
}
.kv-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.kv-figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(168, 135, 74, 0.7);
  outline: 8px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.kv-figure figcaption {
  margin-top: 14px;
  color: #93a0b6;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  transition: background 0.15s;
}
.btn:hover { background: #7d2020; color: #fff; }
.btn.line { background: transparent; border-color: currentColor; color: inherit; }
.btn.line:hover { background: rgba(255, 255, 255, 0.08); color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- セクション見出し ---------- */
.section { padding: 64px 0 8px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 28px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.sec-head h2 small {
  margin-left: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.sec-head a { font-size: 13px; }

/* ---------- お知らせ ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.news time { color: var(--sub); font-variant-numeric: tabular-nums; }
.cat {
  display: inline-block;
  font-size: 11px;
  text-align: center;
  padding: 1px 0;
  border: 1px solid var(--navy2);
  color: var(--navy2);
}

/* ---------- 収蔵作品 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.work {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.work:hover {
  color: var(--ink);
  border-color: var(--navy2);
  box-shadow: 0 6px 20px rgba(20, 40, 75, 0.1);
}
.work img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.work-no {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.work h3 {
  margin: 2px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
}
.work p { margin: 0 0 16px; font-size: 13.5px; color: var(--sub); flex: 1; }
.work dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dotted var(--rule);
  font-size: 12px;
}
.work dt { color: var(--faint); }
.work dd { margin: 0; }
.work.vacant {
  justify-content: center;
  align-items: center;
  min-height: 340px;
  background: transparent;
  border-style: dashed;
  color: var(--faint);
  text-align: center;
  font-size: 13px;
  padding: 24px;
}
.work.vacant b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 6px;
  font-weight: 600;
}

/* ---------- 館長あいさつ ---------- */
.greeting {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 36px 40px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.greeting h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.greeting p { margin: 0 0 12px; font-family: var(--serif); font-size: 15px; line-height: 2.1; }
.greeting .sign { text-align: right; color: var(--sub); font-size: 13px; }

/* ---------- 作品ページ ---------- */
.work-head { padding: 8px 0 28px; }
.work-head .work-no { font-size: 12px; }
.work-head h1 {
  margin: 4px 0 6px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.work-head .lead { margin: 0; color: var(--sub); }

.stage {
  position: relative;
  background: #0f1522;
  border: 1px solid var(--ink);
  aspect-ratio: 16 / 9;
}
.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.stage-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0 0;
  font-size: 12px;
  color: var(--faint);
}
.stage-bar a { font-size: 13px; }

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 48px 0 24px;
}
.article h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 14px; }
.article ol { margin: 0 0 14px; padding-left: 1.4em; }
.article li { margin-bottom: 4px; }
.kbd {
  display: inline-block;
  font-size: 12px;
  padding: 0 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  background: var(--white);
  line-height: 1.6;
}
.curator {
  margin: 28px 0 0;
  padding: 22px 26px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
}
.curator p { margin: 0 0 8px; }
.curator cite { font-style: normal; font-size: 12px; color: var(--sub); font-family: var(--sans); }

.spec {
  background: var(--white);
  border: 1px solid var(--rule);
  font-size: 13px;
}
.spec h2 {
  margin: 0;
  padding: 12px 18px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: var(--navy);
  color: #fff;
}
.spec dl { margin: 0; padding: 6px 18px 12px; }
.spec dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--rule);
}
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--faint); }
.spec dd { margin: 0; }
.aside > * + * { margin-top: 24px; }

/* 広告枠（広告を入れるまでは非表示） */
.ad-slot { margin: 32px 0; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot::before {
  content: "協賛";
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .3em;
  font-family: var(--serif);
  color: var(--faint);
}
.ad-slot > div { margin: 0 auto; }
/* 広告側が画面より広い要素を出しても、段組みが広がらないようにする。
   overflow: hidden や contain は広告の中身（絶対配置の iframe など）まで切ってしまうので使わない */
.ad-slot { max-width: 100%; }

/* ---------- 文章ページ ---------- */
.page-title {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 36px;
}
.page-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.page-title p { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.24em; color: var(--faint); }
.doc { padding-top: 40px; padding-bottom: 64px; max-width: 800px; }
.doc h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-left: 14px;
  border-left: 3px solid var(--navy);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}
.doc th, .doc td {
  padding: 14px 18px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.doc th { width: 28%; background: #efece5; font-weight: 500; white-space: nowrap; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 72px;
  background: var(--navy);
  color: #c9d1de;
  font-size: 13px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.foot-name { font-family: var(--serif); font-size: 17px; color: #fff; letter-spacing: 0.12em; }
.foot-note { margin: 6px 0 0; font-size: 12px; color: #93a0b6; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; justify-content: end; }
.site-footer a { color: #c9d1de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #93a0b6;
  padding: 14px 20px;
}

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  .kv-inner { grid-template-columns: 1fr; }
  .kv-figure { order: -1; padding: 28px 0 0; }
  .kv-text { padding: 32px 0 40px; }
  .work-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .greeting { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; }
}
@media (max-width: 640px) {
  .utility .hide-sm { display: none; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 4px; }
  .brand-name { font-size: 19px; }
  .gnav { margin: 0 -14px; overflow-x: auto; max-width: calc(100% + 28px); }
  .gnav a { white-space: nowrap; font-size: 13px; }
  .news li { grid-template-columns: auto 1fr; gap: 2px 12px; }
  .news li a, .news li > span:last-child { grid-column: 1 / -1; }
  .stage { aspect-ratio: 3 / 4; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: start; }
}
.faint{color:var(--faint);font-size:13px}
.news .cat { width: 80px; }
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .brand svg { width: 36px; height: 36px; }
}

/* ---------- 公式記録 ---------- */
.records { padding-top: 16px; }
.records .sec-head { align-items: center; }
.tabs { display: flex; border: 1px solid var(--navy); }
.tabs button {
  font: inherit;
  font-size: 13px;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.records-note { margin: -12px 0 12px; font-size: 13px; color: var(--sub); }
.records-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--rule);
  font-size: 14px;
}
.records-table th, .records-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.records-table th { background: #efece5; font-weight: 500; font-size: 12px; color: var(--sub); }
.records-table .rank { width: 64px; text-align: center; font-family: var(--serif); font-weight: 700; }
.records-table tbody tr:nth-child(1) .rank { color: var(--gold); font-size: 17px; }
.records-table .name { word-break: break-all; }
.records-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.records-table .date { color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.records-table .empty { text-align: center; color: var(--faint); padding: 28px 14px; }
.records-how { margin: 10px 0 0; font-size: 12px; color: var(--faint); }
@media (max-width: 640px) {
  .records-table .hide-sm { display: none; }
  .records-table th, .records-table td { padding: 10px 10px; }
}
.greeting strong { font-weight: 700; }

/* ---------- 収蔵作品へ移動するときの演出（js/enter.js） ---------- */
.enter {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}
.enter-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 30%),
    var(--navy);
  transition: transform 0.75s cubic-bezier(0.7, 0, 0.3, 1);
}
.enter-door.left { left: 0; transform: translateX(-100%); border-right: 1px solid var(--gold); }
.enter-door.right { right: 0; transform: translateX(100%); border-left: 1px solid var(--gold); }
.enter-plate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.enter-label { font-size: 11px; letter-spacing: 0.4em; color: var(--gold); }
.enter-no { margin-top: 18px; font-size: 13px; letter-spacing: 0.24em; color: #c9d1de; }
.enter-title {
  margin-top: 6px;
  padding: 0 20px;
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.enter-rule {
  width: 0;
  height: 1px;
  margin: 18px 0 14px;
  background: var(--gold);
  transition: width 0.6s ease 0.2s;
}
.enter-sub { font-size: 12px; letter-spacing: 0.2em; color: #93a0b6; }

/* 扉が閉まる（移動元） */
.enter.closing .enter-door { transform: translateX(0); }
.enter.closing .enter-plate { opacity: 1; transform: none; transition-delay: 0.55s; }
.enter.closing .enter-rule { width: 180px; transition-delay: 0.75s; }

/* 扉が開く（移動先）。closed で閉じた状態から始め、外すと開く */
.enter.opening .enter-door { transition-delay: 0.35s; }
.enter.opening .enter-plate { transition-duration: 0.3s; }
.enter.closed .enter-door { transform: translateX(0); transition: none; }
.enter.closed .enter-plate { opacity: 1; transform: none; transition: none; }
.enter.closed .enter-rule { width: 180px; transition: none; }
.enter.opening:not(.closed) .enter-rule { width: 180px; }

/* ---------- ホームから館内のページへ移動するときの演出（館内案内の看板） ---------- */
.guide {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}
.guide-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.guide-sign {
  width: min(420px, calc(100% - 40px));
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(20, 40, 75, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.guide-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.guide-head span { font-weight: 400; letter-spacing: 0.3em; }
.guide-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 24px 24px;
}
.guide-title {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.guide-en { margin-top: 4px; font-size: 11px; letter-spacing: 0.3em; color: #93a0b6; }
.guide-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* 看板が上がってくる（移動元） */
.guide.closing .guide-panel { transform: translateY(0); }
.guide.closing .guide-sign { opacity: 1; transform: none; transition-delay: 0.4s; }
.guide.closing .guide-arrow { opacity: 1; transform: none; transition-delay: 0.7s; }

/* 看板ごと上へ抜けていく（移動先） */
.guide.closed .guide-panel { transform: translateY(0); transition: none; }
.guide.closed .guide-sign, .guide.closed .guide-arrow { opacity: 1; transform: none; transition: none; }
.guide.opening .guide-panel { transition-delay: 0.25s; }
.guide.opening:not(.closed) .guide-panel { transform: translateY(-100%); }
.guide.opening:not(.closed) .guide-sign, .guide.opening:not(.closed) .guide-arrow { opacity: 1; transform: none; }

/* ---------- 収蔵作品一覧へ移動するときの演出（引き出しから目録カード） ---------- */
.catalog {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
  background: rgba(20, 40, 75, 0);
  transition: background 0.35s ease;
}
.cat-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, 88vw);
  height: 380px;
  overflow: hidden; /* 引き出しの下からカードがはみ出して見えないように */
  transform: translate(-50%, calc(-50% + 100vh));
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) 0.15s;
}
.cat-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 2;
  border-radius: 4px;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #9b7447, #7a5732);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
}
.cat-plate {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  padding: 4px 22px;
  background: linear-gradient(180deg, #e2c98d, #b8955a);
  border: 1px solid #8a6a36;
  color: #3b2a12;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.3em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.cat-handle {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 92px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 46px 46px;
  border: 4px solid #d8bb7c;
  border-top: 0;
}
.cat-card {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 40px;
  height: 210px;
  z-index: 1;
  padding: 18px 22px;
  background:
    linear-gradient(var(--red), var(--red)) 0 46px / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(79, 120, 170, 0.25) 27px 28px) 0 47px / 100% 100% no-repeat,
    #fbf8ef;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(150px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.75s;
}
.cat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.cat-card-head span { font-family: var(--sans); font-size: 9px; font-weight: 400; letter-spacing: 0.2em; color: var(--faint); }
.cat-card-count {
  margin-top: 26px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.2em;
}
.cat-card-count b { font-size: 46px; font-weight: 700; color: var(--navy); margin: 0 6px; letter-spacing: 0; }
.cat-card-foot { position: absolute; left: 22px; bottom: 30px; font-size: 11px; letter-spacing: 0.16em; color: var(--sub); }
.cat-hole {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: rgba(20, 40, 75, 0.85);
}
.cat-fill {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.4s ease 1.6s;
}

/* 引き出しが上がってきて、カードが出てきて、画面いっぱいに広がる（移動元） */
.catalog.closing { background: rgba(20, 40, 75, 0.96); }
.catalog.closing .cat-stage { transform: translate(-50%, -50%); }
.catalog.closing .cat-card { transform: translateY(-110px) scale(1.04); }
.catalog.closing .cat-fill { opacity: 1; }

/* 移動先: 生成り色の画面から、ページがふわっと現れる */
.catalog.closed .cat-fill { opacity: 1; transition: none; }
.catalog.opening .cat-stage { display: none; }
.catalog.opening:not(.closed) .cat-fill { opacity: 0; transition: opacity 0.5s ease 0.1s; }
.records-retry {
  margin-top: 10px;
  font: inherit;
  font-size: 13px;
  padding: 4px 16px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.records-retry:hover { background: var(--navy); color: #fff; }
/* スマホでは目録カードの見出しが折り返して「全○点」と下の文字が重なるので、詰めて配置する */
@media (max-width: 640px) {
  .cat-card { padding: 12px 16px; }
  .cat-card-head { display: block; font-size: 15px; line-height: 1.3; }
  .cat-card-head span { display: block; margin-top: 2px; }
  .cat-card {
    background:
      linear-gradient(var(--red), var(--red)) 0 64px / 100% 1px no-repeat,
      repeating-linear-gradient(180deg, transparent 0 27px, rgba(79, 120, 170, 0.25) 27px 28px) 0 65px / 100% 100% no-repeat,
      #fbf8ef;
  }
  .cat-card-count { margin-top: 22px; font-size: 15px; line-height: 1.2; }
  .cat-card-count b { font-size: 38px; }
  .cat-card-foot { left: 16px; bottom: 26px; font-size: 10px; }
}

/* 外部の広告などがはみ出しても、スマホで横スクロールが出ないようにする */
html, body { overflow-x: clip; }

/* 移動先では演出を <body> より先に <html> 直下へ置くので、body の文字設定をここにも持たせる。
   これがないと移動元と移動先で看板やカードの文字の形・大きさが変わってしまう */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.enter, .guide, .catalog {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
