﻿html {
  background: #dff8ff url("assets/backgrounds/bg_tile_skyblue.png") repeat;
}

html:has(body.external-site) {
  background: #eef6f2;
}

/* ===== ヒントページ ===== */
.hint-page {
  min-height: 100vh;
  margin: 0;
  color: #24345c;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 204, 229, 0.34), transparent 32%),
    radial-gradient(circle at 85% 22%, rgba(174, 222, 255, 0.38), transparent 34%),
    #f8fbff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.hint-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 84px;
}

.hint-header {
  margin-bottom: 28px;
  padding: 30px clamp(20px, 5vw, 46px);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #a9bce7;
  box-shadow: 5px 5px 0 rgba(111, 139, 201, 0.12);
}

.hint-eyebrow {
  margin: 0 0 8px;
  color: #7080aa;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.hint-header h1 {
  margin: 0 0 18px;
  color: #173b82;
  font-size: clamp(28px, 5vw, 42px);
}

.hint-header p {
  margin: 7px 0;
  line-height: 1.8;
}

.hint-header .hint-warning {
  color: #9a4f68;
  font-size: 14px;
}

.hint-list {
  display: grid;
  gap: 12px;
}

.hint-page-card,
.hint-game-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #afbee1;
}

.hint-page-card > summary,
.hint-game-card > summary {
  position: relative;
  padding: 17px 48px 17px 20px;
  color: #173b82;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.hint-page-card > summary::-webkit-details-marker,
.hint-game-card > summary::-webkit-details-marker,
.hint-step > summary::-webkit-details-marker {
  display: none;
}

.hint-page-card > summary::after,
.hint-game-card > summary::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 20px;
  translate: 0 -50%;
  color: #d04d86;
  font-size: 20px;
}

.hint-page-card[open] > summary::after,
.hint-game-card[open] > summary::after {
  content: "－";
}

.hint-page-card[open] > summary {
  background: #eef4ff;
  border-bottom: 1px solid #cad5ed;
}

.hint-steps {
  display: grid;
  gap: 9px;
  padding: 16px 20px 20px;
}

.hint-step {
  border-left: 3px solid #8ca7df;
  background: #f7f9ff;
}

.hint-step > summary {
  padding: 12px 16px;
  color: #315496;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.hint-step:last-child {
  border-left-color: #c66b86;
  background: #fff6f7;
}

.hint-step:last-child > summary {
  color: #9a405f;
}

.hint-step p {
  margin: 0;
  padding: 2px 16px 16px;
  color: #27334e;
  line-height: 1.9;
  white-space: pre-line;
}

.hint-subproblem,
.hint-game-lead,
.hint-game-list {
  margin-right: 20px;
  margin-left: 20px;
}

.hint-subproblem {
  margin-bottom: 22px;
  padding-top: 16px;
  border-top: 1px dashed #aab6ce;
}

.hint-subproblem h2,
.hint-game-lead {
  font-size: 15px;
}

.hint-game-lead {
  margin-top: 4px;
  margin-bottom: 14px;
}

.hint-game-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.hint-game-card {
  border-color: #c3cadb;
}

.hint-game-card > summary {
  color: #34466d;
}

.hint-return {
  margin-top: 34px;
  text-align: center;
}

.hint-return a,
.hint-page-link a {
  color: #254f9c;
}

.hint-copyright {
  box-sizing: border-box;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hint-shell {
    width: min(100% - 20px, 880px);
    padding-top: 20px;
  }

  .hint-header {
    padding: 24px 16px;
  }

  .hint-page-card > summary,
  .hint-game-card > summary {
    padding-left: 15px;
  }

  .hint-steps {
    padding: 12px;
  }

  .hint-subproblem,
  .hint-game-lead,
  .hint-game-list {
    margin-right: 12px;
    margin-left: 12px;
  }

  .hint-copyright {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* ===== TRUE END / page 57 ===== */
.trueend-body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #171717;
  background: #050505;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.trueend-site-stage {
  position: fixed;
  inset: 0;
  overflow: auto;
  color: #073b79;
  background: #dff8ff url("assets/backgrounds/bg_tile_skyblue.png") repeat;
}

.trueend-recovery,
.trueend-site-refresh {
  position: fixed;
  z-index: 800;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #c9c9c9;
  background: #030303;
  text-align: center;
  font-family: Consolas, monospace;
  letter-spacing: .1em;
  transition: opacity .6s ease, visibility .6s ease;
}

.trueend-recovery p {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 28px);
}

.trueend-recovery span,
.trueend-site-refresh span {
  color: #777;
  font-size: 13px;
}

.trueend-recovery.is-hidden,
.trueend-site-refresh {
  visibility: hidden;
  opacity: 0;
}

.trueend-site-refresh.is-visible {
  visibility: visible;
  opacity: 1;
}

.trueend-site {
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  border: 2px solid #98b8f2;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 28px rgba(26,74,120,.18);
  opacity: 0;
  transition: opacity .7s ease, filter 1s ease;
}

.trueend-site.is-visible {
  opacity: 1;
}

.trueend-site-search {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 12px;
  border-bottom: 1px solid #9cb4de;
  color: #274f89;
  background: #f8fbff;
  font-size: 12px;
}

.trueend-site-search input {
  width: 180px;
  border: 1px solid #aaa0cf;
  background: #f4f4f4;
}

.trueend-site-header {
  position: relative;
  padding: 15px 20px 12px;
  border-bottom: 4px double #91b9e8;
  text-align: center;
}

.trueend-site-header img {
  width: min(500px, 62vw);
  max-height: 104px;
  object-fit: contain;
}

.trueend-site-header p {
  margin: 3px 0 0;
  color: #ee6d9e;
  font-weight: 700;
}

.trueend-site-since {
  position: absolute;
  top: 12px;
  left: 15px;
  font: 11px Consolas, monospace;
}

.trueend-site-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 14px;
}

.trueend-site-menu,
.trueend-site-side section,
.trueend-site-notice {
  border: 1px solid #9bb8e3;
  background: #fff;
}

.trueend-site-menu h2,
.trueend-site-side h2,
.trueend-site-notice h2 {
  margin: 0;
  padding: 7px 9px;
  color: #164f91;
  background: #e4f0ff;
  font-size: 14px;
  text-align: center;
}

.trueend-site-menu ul,
.trueend-site-notice ul,
.trueend-site-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trueend-site-menu li {
  padding: 8px 10px;
  border-top: 1px dotted #afc2df;
  color: #20558d;
  font-size: 13px;
}

.trueend-site-main {
  min-width: 0;
}

.trueend-site-welcome {
  margin: 0 0 10px;
  padding: 9px;
  border: 3px double #f292b4;
  color: #ed4d8b;
  background: #fffdf1;
  text-align: center;
  font-weight: 700;
  transition: color .8s ease, border-color .8s ease, background .8s ease;
}

.trueend-site-media {
  position: relative;
  overflow: hidden;
  border: 1px solid #7fa6d5;
  background: #111;
  aspect-ratio: 16 / 9;
}

.trueend-site-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trueend-site-media span {
  position: absolute;
  right: 9px;
  bottom: 8px;
  padding: 4px 7px;
  color: #ddd;
  background: rgba(0,0,0,.66);
  font: 10px Consolas, monospace;
}

.trueend-site-notice {
  margin-top: 11px;
}

.trueend-site-notice li,
.trueend-site-side li {
  padding: 8px 11px;
  border-top: 1px dotted #b8c4d4;
  color: #244a76;
  font-size: 13px;
}

.trueend-site-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.trueend-site-side strong {
  display: block;
  margin: 16px 12px 8px;
  color: #277946;
  font-size: 23px;
  text-align: center;
}

.trueend-site-side p {
  margin: 0;
  padding: 0 13px 16px;
  color: #52677e;
  font-size: 12px;
  line-height: 1.7;
}

.trueend-site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border-top: 1px solid #aac1dd;
  color: #607993;
  font-size: 11px;
}

.trueend-site.is-declining {
  filter: saturate(.78);
}

.trueend-site.is-fading {
  filter: saturate(.48) brightness(.96);
}

.trueend-site.is-closed {
  filter: grayscale(.72) brightness(.9);
}

.trueend-site.is-declining .trueend-site-welcome,
.trueend-site.is-fading .trueend-site-welcome,
.trueend-site.is-closed .trueend-site-welcome {
  border-color: #8d9ca9;
  color: #354a5d;
  background: #edf0f1;
}

.trueend-site.is-fading .trueend-site-menu li:nth-child(n+5),
.trueend-site.is-closed .trueend-site-menu li {
  color: #aaa;
  text-decoration: line-through;
}

.trueend-site.is-closed .trueend-site-side strong {
  color: #7d2525;
}

.trueend-film {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #252421, #080808 72%),
    #080808;
}

.trueend-film-document {
  position: relative;
  width: min(1380px, 96vw);
  height: min(820px, 88vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #57544e;
  color: #e4e0d7;
  background: #111;
  box-shadow: 0 28px 90px rgba(0,0,0,.72);
}

.trueend-film-header,
.trueend-film-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  color: #aaa69d;
  background: #191918;
  font: 12px/1.4 "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: .18em;
}

.trueend-film-header {
  border-bottom: 1px solid #4b4842;
}

.trueend-film-footer {
  border-top: 1px solid #35332f;
  color: #77736c;
  font-size: 10px;
}

.trueend-film-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
  min-height: 0;
}

.trueend-film-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: clamp(18px, 2.4vw, 34px);
  margin-right: 0;
  overflow: hidden;
  border: 1px solid #3b3935;
  background: #000;
  opacity: 1;
  transition: opacity .9s ease;
}

.trueend-film.is-changing .trueend-film-frame,
.trueend-film.is-changing .trueend-film-caption {
  opacity: 0;
}

.trueend-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.trueend-film-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 55%, rgba(0,0,0,.42)),
    radial-gradient(circle at center, transparent 58%, rgba(0,0,0,.18));
}

.trueend-film-counter {
  position: absolute;
  right: 15px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 8px;
  color: rgba(255,255,255,.76);
  background: rgba(0,0,0,.62);
  font: 11px/1 Consolas, monospace;
  letter-spacing: .12em;
}

.trueend-film-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 62px);
  color: #dedad1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 45%),
    #111;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  opacity: 1;
  transition: opacity .9s ease;
}

.trueend-film-period {
  display: inline-block;
  margin: 0 0 22px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.58);
  font-size: clamp(14px, 1.5vw, 20px);
  letter-spacing: .28em;
}

.trueend-film-note {
  max-width: 560px;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
  font-size: clamp(21px, 2.25vw, 34px);
  line-height: 1.8;
  letter-spacing: .08em;
}

.trueend-film-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trueend-film-curtain {
  position: fixed;
  z-index: 900;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.trueend-film-curtain.is-closing {
  opacity: 1;
}

.trueend-sequence,
.trueend-stage {
  width: 100%;
  min-height: 100vh;
}

.trueend-stage {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.trueend-stage[hidden] {
  display: none;
}

.trueend-stage.is-active {
  opacity: 1;
}

.trueend-error-stage {
  overflow: hidden;
  background: #eaf3ff;
}

.trueend-broken-site {
  position: absolute;
  inset: 0;
  padding: 22px;
  color: #063a78;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.34) 0 2px, transparent 2px 5px),
    linear-gradient(135deg, #fbfdff 0 50%, #dbeaff 50% 100%);
  filter: saturate(.75) contrast(1.08);
}

.trueend-broken-site::before,
.trueend-broken-site::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.trueend-broken-site::before {
  inset: 38% -4% auto -4%;
  height: 31px;
  background: rgba(15, 15, 18, .9);
  transform: skewY(-1.5deg);
  box-shadow: 0 89px 0 rgba(255,255,255,.95), 0 97px 0 rgba(110,0,0,.8);
}

.trueend-broken-site::after {
  top: 0;
  left: 61%;
  width: 3px;
  height: 100%;
  background: rgba(184, 0, 0, .52);
  box-shadow: 12px 0 0 rgba(30,30,30,.3);
}

.trueend-broken-header {
  display: flex;
  align-items: center;
  gap: 25px;
  max-width: 1040px;
  min-height: 130px;
  margin: 0 auto;
  border: 3px double #6d99ce;
  background: rgba(255,255,255,.84);
}

.trueend-broken-header img {
  width: min(48vw, 470px);
  margin-left: 20px;
  filter: hue-rotate(122deg) contrast(1.25);
}

.trueend-broken-header span {
  font-weight: 700;
}

.trueend-broken-nav {
  max-width: 1000px;
  margin: 12px auto;
  padding: 13px 20px;
  word-spacing: 34px;
  border: 1px solid #8aaad1;
  background: #dbe9fb;
}

.trueend-broken-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: 20px auto;
}

.trueend-broken-grid div {
  min-height: 150px;
  border: 1px dotted #5e80aa;
  background:
    linear-gradient(9deg, transparent 48%, rgba(117,0,0,.45) 49% 51%, transparent 52%),
    rgba(255,255,255,.72);
}

.trueend-corrupt-line {
  position: absolute;
  top: 46%;
  left: -2%;
  z-index: 3;
  margin: 0;
  color: #fff;
  font: 700 clamp(20px, 4vw, 58px) Consolas, monospace;
  letter-spacing: .18em;
  transform: rotate(-2deg);
}

.trueend-corrupt-line--right {
  top: 73%;
  right: -4%;
  left: auto;
  color: #7a0000;
  transform: rotate(1deg);
}

.trueend-popup-field {
  position: absolute;
  z-index: 10;
  inset: 0;
  overflow: hidden;
}

.trueend-precrash-field {
  position: fixed;
  z-index: 1900;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(0, 0, 0, var(--precrash-darkness, 0));
  transition: background-color 160ms linear;
}

.trueend-precrash-field .trueend-popup {
  pointer-events: auto;
}

.trueend-precrash-active body {
  overflow: hidden;
}

.trueend-final-error-warning .route-error-overlay {
  animation: final-error-backdrop 2.5s linear both;
}

.route-error-window.is-final-error-shaking {
  animation: final-error-shake 2.5s linear both;
  transform-origin: center;
}

@keyframes final-error-backdrop {
  from { background-color: rgba(0, 0, 0, .34); }
  to { background-color: rgba(0, 0, 0, .62); }
}

@keyframes final-error-shake {
  0%, 18% {
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
  }
  26% { transform: translate(calc(-50% - 1px), -50%); }
  34% { transform: translate(calc(-50% + 1px), calc(-50% - 1px)); }
  42% { transform: translate(calc(-50% - 2px), calc(-50% + 1px)); }
  50% { transform: translate(calc(-50% + 2px), calc(-50% - 2px)); }
  58% { transform: translate(calc(-50% - 3px), calc(-50% + 2px)); }
  66% { transform: translate(calc(-50% + 3px), calc(-50% - 3px)); }
  74% { transform: translate(calc(-50% - 4px), calc(-50% + 3px)); }
  82% { transform: translate(calc(-50% + 5px), calc(-50% - 3px)); }
  90% { transform: translate(calc(-50% - 5px), calc(-50% + 4px)); }
  96% { transform: translate(calc(-50% + 6px), calc(-50% - 4px)); }
  100% {
    transform: translate(calc(-50% - 6px), calc(-50% + 4px));
    box-shadow: 0 22px 70px rgba(98, 0, 0, .44);
  }
}

.trueend-precrash-breaking body > :not(.trueend-precrash-field) {
  animation: trueend-page-break 1.1s steps(2, end) infinite;
  filter: contrast(1.18) saturate(.65);
}

.trueend-precrash-breaking body::after {
  content: "";
  position: fixed;
  z-index: 1850;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 31%, rgba(0,0,0,.82) 31% 35%, transparent 35% 64%, rgba(111,0,0,.6) 64% 65%, transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.12) 3px 4px);
}

@keyframes trueend-page-break {
  0% { transform: translate(0, 0) skewX(0); }
  33% { transform: translate(-5px, 2px) skewX(-.3deg); }
  66% { transform: translate(7px, -2px) skewX(.4deg); }
  100% { transform: translate(0, 0) skewX(0); }
}

.trueend-popup {
  position: absolute;
  width: min(390px, 42vw);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  color: #202020;
  background: rgba(250, 250, 250, .98);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .25),
    0 2px 8px rgba(0, 0, 0, .12);
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
}

.trueend-popup-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 6px 0 16px;
  color: #252525;
  background: #f5f5f5;
  border-bottom: 1px solid #e2e2e2;
  font-size: 13px;
  font-weight: 600;
}

.trueend-popup-title button {
  width: 46px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #454545;
  background: transparent;
  font: 400 20px/1 "Segoe UI", sans-serif;
}

.trueend-popup-title button:hover {
  color: #fff;
  background: #c42b1c;
}

.trueend-popup-body {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 20px 22px 16px;
}

.trueend-popup-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.trueend-popup-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #c42b1c;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  font: 700 23px/1 "Segoe UI", sans-serif;
}

.trueend-popup-body button {
  grid-column: 2;
  justify-self: end;
  min-width: 88px;
  padding: 7px 18px;
  border: 1px solid #b8b8b8;
  border-radius: 5px;
  color: #1f1f1f;
  background: #fbfbfb;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  font-family: inherit;
}

.trueend-popup-body button:hover {
  border-color: #888;
  background: #f1f1f1;
}

.trueend-unavailable {
  display: grid;
  place-items: center;
  color: #222;
  background: #fff;
}

.trueend-unavailable div {
  width: min(760px, calc(100% - 48px));
}

.trueend-unavailable h1 {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 400;
}

.trueend-unavailable p {
  color: #555;
}

.trueend-unavailable .trueend-error-code {
  margin-top: 32px;
  color: #777;
  font: 14px Consolas, monospace;
}

.trueend-timeskip {
  display: grid;
  place-items: center;
  color: #e9e7e1;
  background: #020202;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.trueend-timeskip p {
  margin: 0;
  font-size: clamp(23px, 4vw, 38px);
  letter-spacing: .3em;
}

.closed-park-home .site-header .logo,
.closed-park-home .main-photo,
.closed-park-home .photo-box img {
  filter: none;
}

.closed-park-home .page,
.closed-park-home .page h1,
.closed-park-home .page h2,
.closed-park-home .page h3,
.closed-park-home .page p,
.closed-park-home .page li,
.closed-park-home .page dt,
.closed-park-home .page dd,
.closed-park-home .page strong,
.closed-park-home .page span,
.closed-park-home .site-search,
.closed-park-home .site-search label,
.closed-park-home .site-search button,
.closed-park-home .mobile-menu-toggle,
.closed-park-home .archive-widget {
  color: #606060 !important;
  text-shadow: none;
}

.closed-park-home .page a,
.closed-park-home .page a:visited,
.closed-park-home .archive-widget a,
.closed-park-home .archive-widget a:visited {
  color: #686868 !important;
  text-shadow: none;
}

.trueend-material-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #29231d, #080706 68%),
    #080706;
}

.trueend-material-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(94vw, 1420px);
  height: min(92vh, 1000px);
  margin: 0;
}

.trueend-material-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: brightness(.88) sepia(.08);
  box-shadow: 0 12px 55px rgba(0,0,0,.75);
}

.trueend-timecard {
  margin: 0 0 12px;
  color: #d2ccc3;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: .16em;
}

.trueend-material-card figcaption {
  padding-top: 10px;
  color: #8f8981;
  font-size: 13px;
  letter-spacing: .16em;
  text-align: right;
}

.trueend-closure-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 34px 18px;
  background:
    radial-gradient(circle, rgba(255,255,255,.8), rgba(231,244,255,.94)),
    #e8f5ff;
}

.trueend-closure-notice {
  width: min(780px, calc(100% - 36px));
  padding: clamp(30px, 6vw, 70px);
  border: 4px double #75a7d7;
  color: #163d6a;
  background: rgba(255,255,255,.95);
  box-shadow: 0 15px 45px rgba(18,69,115,.18);
}

.trueend-closure-notice > img {
  display: block;
  width: min(430px, 90%);
  margin: 0 auto 38px;
}

.trueend-closure-notice h1 {
  margin: 0;
  color: #143963;
  font-size: clamp(25px, 4vw, 38px);
  text-align: center;
}

.trueend-closure-rule {
  width: 76%;
  height: 8px;
  margin: 22px auto 34px;
  border-top: 2px dotted #ef88ad;
  border-bottom: 2px dotted #8bc9ef;
}

.trueend-closure-notice p {
  margin: 0 0 1.2em;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 2;
}

.trueend-closure-sign {
  padding-top: 20px;
  text-align: right;
  font-weight: 700;
}

.trueend-record-stage {
  display: grid;
  place-items: center;
  color: #d0d0ca;
  background:
    linear-gradient(rgba(0,0,0,.92), rgba(0,0,0,.96)),
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px),
    #070707;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.trueend-final-actions {
  position: static;
  text-align: center;
}

.trueend-final-actions > p {
  margin: 0 0 38px;
  color: #d5d5cf;
  font: 16px Consolas, monospace;
  letter-spacing: .55em;
}

.trueend-final-actions > div {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.trueend-action-link {
  padding: 9px 18px;
  border: 1px solid #585854;
  color: #b6b6b0;
  background: #101010;
  font-family: "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  text-decoration: none;
}

.trueend-action-link:hover,
.trueend-action-link:focus {
  color: #fff;
  border-color: #aaa;
}

.trueend-skip {
  position: fixed;
  z-index: 1000;
  top: 14px;
  right: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.36);
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.62);
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .trueend-site {
    width: calc(100% - 12px);
    margin: 6px auto;
  }

  .trueend-site-search {
    flex-direction: column;
    gap: 4px;
  }

  .trueend-site-since {
    position: static;
    margin-bottom: 5px;
  }

  .trueend-site-grid {
    grid-template-columns: 1fr;
  }

  .trueend-site-menu {
    display: none;
  }

  .trueend-site-side {
    grid-template-columns: 1fr 1fr;
  }

  .trueend-site-footer {
    flex-direction: column;
    gap: 5px;
  }

  .trueend-film {
    padding: 10px;
  }

  .trueend-film-document {
    width: 100%;
    height: 94vh;
  }

  .trueend-film-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 55%) minmax(0, 45%);
  }

  .trueend-film-frame {
    margin: 12px 12px 0;
  }

  .trueend-film-video {
    object-position: center;
  }

  .trueend-film-caption {
    padding: 22px;
  }

  .trueend-film-note {
    font-size: clamp(18px, 5vw, 26px);
  }

  .trueend-broken-site {
    padding: 8px;
  }

  .trueend-broken-header {
    min-height: 88px;
    gap: 8px;
  }

  .trueend-broken-header img {
    width: 56vw;
    margin-left: 8px;
  }

  .trueend-broken-header span {
    font-size: 11px;
  }

  .trueend-broken-nav {
    margin: 7px auto;
    padding: 8px;
    font-size: 11px;
    word-spacing: 5px;
  }

  .trueend-broken-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-top: 8px;
  }

  .trueend-broken-grid div {
    min-height: 110px;
  }

  .trueend-popup {
    left: 5vw !important;
    width: min(88vw, 350px);
  }

  .trueend-popup:nth-child(even) {
    left: 8vw !important;
  }

  .trueend-material-card {
    width: 96vw;
    height: 90vh;
  }

  .trueend-timecard {
    margin-left: 8px;
  }

  .trueend-material-card figcaption {
    padding-right: 8px;
  }

  .trueend-closure-stage {
    padding: 18px 8px;
  }

  .trueend-closure-notice {
    width: calc(100% - 16px);
    padding: 28px 22px;
  }

  .trueend-closure-notice > img {
    margin-bottom: 24px;
  }

  .trueend-closure-notice p {
    line-height: 1.85;
  }

  .trueend-record-sheet {
    width: calc(100% - 28px);
    padding: 34px 18px;
  }

  .trueend-final-actions > div {
    flex-direction: column;
    width: min(250px, 78vw);
    margin: 0 auto;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trueend-stage,
  .trueend-record-sheet p {
    transition: none;
  }
}

/* ===== TRUE END / 異聞アーカイブ ===== */
.trueend-body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  color: #292824;
  background: #f1efe8;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.trueend-body *,
.trueend-body *::before,
.trueend-body *::after {
  box-sizing: border-box;
}

.trueend-archive {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}

.trueend-archive [hidden] {
  display: none !important;
}

.trueend-browser-progress {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(82, 111, 159, .12);
}

.trueend-browser-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #4b70ad;
  box-shadow: 0 0 8px rgba(75, 112, 173, .58);
}

.trueend-browser-progress.is-active span {
  animation: trueend-browser-load 1.25s cubic-bezier(.18, .7, .22, 1) forwards;
}

.trueend-browser-progress.is-complete span {
  width: 100%;
  animation: none;
  transition: width .18s ease;
}

.trueend-browser-busy {
  cursor: wait;
}

@keyframes trueend-browser-load {
  0% { width: 0; }
  28% { width: 34%; }
  66% { width: 72%; }
  90% { width: 88%; }
  100% { width: 94%; }
}

.trueend-reconnect {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d6d8dc;
  background:
    radial-gradient(circle at center, #16191e 0, #08090b 68%),
    #08090b;
  opacity: 1;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.trueend-reconnect.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.trueend-reconnect-box {
  width: min(520px, calc(100% - 42px));
  text-align: center;
}

.trueend-reconnect-code {
  margin: 0 0 28px;
  color: #676d77;
  font: 11px/1.4 Consolas, monospace;
  letter-spacing: .18em;
}

.trueend-reconnect h1 {
  margin: 0 0 30px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: .16em;
}

.trueend-reconnect-bar {
  height: 2px;
  overflow: hidden;
  background: #292d34;
}

.trueend-reconnect-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: #c9cdd5;
  animation: trueend-reconnect-progress 1.15s ease-in-out infinite;
}

.trueend-reconnect-box > p:last-child {
  margin: 18px 0 0;
  color: #7b8089;
  font: 12px/1.7 Consolas, monospace;
}

@keyframes trueend-reconnect-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

.trueend-search {
  min-height: 100vh;
  color: #202124;
  background: #fff;
  font-family: Meiryo, "Yu Gothic UI", sans-serif;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 1.25s ease, transform 1.25s ease;
}

.trueend-search.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trueend-search.is-loading {
  opacity: .72;
  transform: translateY(0);
  transition-duration: .55s;
}

.trueend-search-header {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 28px 5vw 24px;
  border-bottom: 1px solid #e5e7eb;
}

.trueend-search-brand {
  flex: 0 0 auto;
  color: inherit;
  font: 700 26px/1 Arial, sans-serif;
  letter-spacing: -.04em;
  text-decoration: none;
}

.trueend-search-brand span:nth-child(1) { color: #526f9f; }
.trueend-search-brand span:nth-child(2) { color: #a64e43; }
.trueend-search-brand span:nth-child(3) { color: #b18b43; }
.trueend-search-brand span:nth-child(4) { color: #526f9f; }
.trueend-search-brand span:nth-child(5) { color: #496f5d; }
.trueend-search-brand span:nth-child(6) { color: #a64e43; }

.trueend-search-form {
  display: flex;
  width: min(680px, 72vw);
  overflow: hidden;
  border: 1px solid #d7d9de;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(32, 33, 36, .13);
}

.trueend-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 19px;
  border: 0;
  outline: 0;
  color: #202124;
  background: transparent;
  font: 16px/1.4 inherit;
}

.trueend-search-form button {
  padding: 0 21px;
  border: 0;
  border-left: 1px solid #eceef1;
  color: #475d82;
  background: #fafbfc;
  cursor: pointer;
}

.trueend-search-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 42px;
  width: min(1120px, calc(100% - 80px));
  margin: 0 0 0 max(40px, 3vw);
  padding: 24px 0 90px;
}

.trueend-search-content {
  min-width: 0;
}

.trueend-search-ads {
  padding-top: 40px;
}

.trueend-search-ads > p {
  margin: 0 0 7px;
  color: #767b84;
  font-size: 10px;
  text-align: right;
}

.trueend-search-ad {
  margin-bottom: 17px;
  overflow: hidden;
  border: 1px solid #d4d7dd;
  border-radius: 3px;
  color: #4a3d42;
  background: #fff9fb;
  box-shadow: 0 2px 8px rgba(50, 45, 47, .08);
}

.trueend-search-ad img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trueend-search-ad--image {
  background: #fff;
}

.trueend-search-ad--image a {
  display: block;
}

.trueend-search-ad--image img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.trueend-search-ad strong,
.trueend-search-ad span,
.trueend-search-ad small {
  display: block;
  padding-right: 14px;
  padding-left: 14px;
}

.trueend-search-ad strong {
  padding-top: 14px;
  color: #6e414e;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 15px;
  line-height: 1.55;
}

.trueend-search-ad span {
  padding-top: 7px;
  color: #786c70;
  font-size: 11px;
  line-height: 1.65;
}

.trueend-search-ad small {
  padding-top: 12px;
  padding-bottom: 14px;
  color: #af687d;
  font-size: 10px;
}

.trueend-search-count {
  margin: 0 0 25px;
  color: #555b62;
  font-size: 12px;
  font-weight: 500;
}

.trueend-search-result {
  position: relative;
  margin: 0 0 35px;
}

.trueend-search-source {
  margin: 0 0 6px;
  color: #34383d;
  font-size: 12px;
  font-weight: 500;
}

.trueend-search-result h1,
.trueend-search-result h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.trueend-search-result h1 a {
  color: #244a98;
  text-decoration: none;
}

.trueend-search-result h1 a:hover,
.trueend-search-result h1 a:focus {
  text-decoration: underline;
}

.trueend-search-result > p:not(.trueend-search-source) {
  margin: 0;
  color: #353a40;
  font-size: 13px;
  line-height: 1.75;
}

.trueend-search-result.is-dead {
  opacity: .86;
  user-select: none;
}

.trueend-search-result.is-dead h2 {
  color: #4d535c;
}

.trueend-search-result.is-dead > span {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 7px;
  border: 1px solid #c8cbd1;
  border-radius: 3px;
  color: #71757c;
  font-size: 10px;
}

.trueend-feature {
  --trueend-ad-opacity: 1;
  --trueend-rail-top: 105px;
  min-height: 100vh;
  color: #292824;
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)),
    repeating-linear-gradient(0deg, #e6e2d8 0 1px, transparent 1px 4px),
    #f5f2e9;
}

.trueend-feature-rail {
  position: fixed;
  z-index: 3;
  top: var(--trueend-rail-top);
  display: none;
  width: clamp(150px, 14vw, 215px);
  opacity: var(--trueend-ad-opacity);
  transition: top .12s linear, opacity .18s linear;
}

.trueend-feature-rail--left {
  left: 18px;
}

.trueend-feature-rail--right {
  right: 18px;
}

.trueend-feature-rail > span {
  display: block;
  margin: 0 0 6px;
  color: #76776f;
  font-size: 9px;
  text-align: right;
}

.trueend-feature-rail a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(70, 67, 58, .25);
  background: #fff;
  box-shadow: 0 5px 18px rgba(42, 39, 31, .13);
  transition: opacity .2s ease, transform .2s ease;
}

.trueend-feature-rail a:hover,
.trueend-feature-rail a:focus {
  opacity: .93;
  transform: translateY(-2px);
}

.trueend-feature-rail img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 145px);
  object-fit: contain;
}

@media (min-width: 1400px) {
  .trueend-feature-rail {
    display: block;
  }
}

.trueend-mag-header {
  height: clamp(190px, 22.4vw, 420px);
  overflow: hidden;
  border-bottom: 1px solid #25231f;
  background: #1e211f;
}

.trueend-mag-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.trueend-mag-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.trueend-feature-hero {
  padding: clamp(54px, 9vw, 110px) max(28px, calc((100vw - 980px) / 2)) 58px;
  border-bottom: 1px solid #bdb7a9;
  background:
    linear-gradient(105deg, rgba(241,238,228,.96), rgba(229,225,214,.84)),
    url("assets/endings/trueend/trueend_visitor_decline_newspaper.jpg") center 28% / cover;
}

.trueend-feature-kicker {
  margin-bottom: 23px;
  color: #7e2d28;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.trueend-feature-hero h1 {
  max-width: 900px;
  margin: 0 0 33px;
  color: #1d1d1b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .035em;
}

.trueend-feature-lead {
  max-width: 780px;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2.05;
}

.trueend-feature-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: 780px;
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid #9f998c;
  color: #67635c;
  font-size: 11px;
}

.trueend-feature-index {
  width: min(860px, calc(100% - 44px));
  margin: 56px auto;
  padding: 25px 29px;
  border-top: 4px solid #343632;
  border-bottom: 1px solid #aaa598;
  background: rgba(255,255,255,.48);
}

.trueend-feature-index p {
  margin: 0 0 17px;
  font-weight: 700;
}

.trueend-feature-index ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 35px;
  margin: 0;
  padding-left: 1.7em;
}

.trueend-feature-index a {
  color: #474943;
  font-size: 13px;
  text-underline-offset: 3px;
}

.trueend-feature-body {
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
}

.trueend-feature-section {
  position: relative;
  padding: 62px 0 18px;
  border-top: 1px solid #b4afa2;
}

.trueend-feature-section:first-child {
  border-top: 0;
}

.trueend-chapter-no {
  margin: 0 0 8px !important;
  color: #8f352f;
  font: 700 12px/1 Consolas, monospace;
  letter-spacing: .16em;
}

.trueend-feature-section h2 {
  margin: 0 0 30px;
  color: #242420;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.5;
}

.trueend-feature-section h2::after {
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 18px;
  background: #8f352f;
  content: "";
}

.trueend-feature-section > p:not(.trueend-chapter-no):not(.trueend-source-note) {
  margin: 0 0 1.55em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(14.5px, 1.45vw, 16.5px);
  line-height: 2.08;
  text-align: justify;
}

.trueend-article-image {
  margin: 38px 0 42px;
}

.trueend-article-image--small {
  width: min(540px, 85%);
  margin-right: auto;
  margin-left: auto;
}

.trueend-article-image img,
.trueend-evidence-grid img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.75) contrast(1.03);
  box-shadow: 0 9px 28px rgba(44, 38, 26, .17);
}

.trueend-article-image figcaption,
.trueend-evidence-grid figcaption {
  padding: 11px 4px 0;
  color: #6d685f;
  font-size: 11px;
  line-height: 1.7;
}

.trueend-feature-quote {
  margin: 36px 0 46px;
  padding: 28px 31px;
  border-left: 4px solid #843b34;
  color: #363630;
  background: rgba(221,216,204,.56);
}

.trueend-feature-quote p {
  margin: 0 0 13px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.9;
}

.trueend-feature-quote cite {
  color: #767168;
  font-size: 11px;
  font-style: normal;
}

.trueend-feature-pull {
  position: relative;
  margin: 48px clamp(8px, 5vw, 56px);
  padding: 32px 14px 30px;
  border-top: 1px solid #8f352f;
  border-bottom: 1px solid #8f352f;
  text-align: center;
}

.trueend-feature-pull::before {
  position: absolute;
  top: -20px;
  left: 50%;
  padding: 0 14px;
  color: #8f352f;
  background: #f0ede4;
  content: "“";
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  transform: translateX(-50%);
}

.trueend-feature-pull span {
  display: block;
  margin-bottom: 13px;
  color: #777166;
  font-size: 10px;
  letter-spacing: .18em;
}

.trueend-feature-pull p {
  margin: 0;
  color: #292823;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.75;
  letter-spacing: .06em;
}

.trueend-feature-pull--dark {
  border-color: #343632;
}

.trueend-feature-pull--dark::before {
  color: #343632;
}

.trueend-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 90%;
  margin: 38px auto 42px;
}

.trueend-evidence-grid figure {
  margin: 0;
}

.trueend-source-note {
  margin: 34px 0 12px;
  color: #69645b;
  font-size: 11px;
  text-align: right;
}

.trueend-feature-closing {
  margin: 72px 0 0;
  padding: 62px clamp(20px, 7vw, 70px);
  color: #deddd6;
  background: #20221f;
}

.trueend-feature-closing p {
  margin: 0 0 1.35em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2;
}

.trueend-feature-closing-label {
  margin-bottom: 30px !important;
  color: #a8a69d;
  font-family: sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .28em;
}

.trueend-feature-closing p:last-child {
  margin-bottom: 0;
}

.trueend-after-article {
  position: relative;
  height: 240vh;
  min-height: 1200px;
}

.trueend-scroll-cue {
  position: sticky;
  top: calc(100vh - 105px);
  display: grid;
  justify-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 auto;
  color: #878982;
  font: 9px/1 Consolas, monospace;
  letter-spacing: .38em;
}

.trueend-scroll-cue i {
  display: block;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: #c5c6c0;
}

.trueend-scroll-cue i::after {
  content: "";
  display: block;
  width: 1px;
  height: 17px;
  background: #52554f;
  animation: trueend-scroll-guide 1.8s ease-in-out infinite;
}

@keyframes trueend-scroll-guide {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(39px);
  }
}

.trueend-complete {
  display: grid;
  box-sizing: border-box;
  place-items: center;
  align-content: center;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 70px 22px;
  color: #efeee8;
  background:
    radial-gradient(circle at 50% 48%, #30332e 0, #1e211f 58%, #171916 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.trueend-complete.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trueend-complete > p {
  display: block;
  margin: 0 0 58px;
  color: #f0eee6;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .16em;
  text-indent: .16em;
}

.trueend-complete > div {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.trueend-body .trueend-complete a,
.trueend-body .trueend-complete a:visited {
  min-width: 160px;
  padding: 11px 20px;
  border: 1px solid #74776f;
  color: #e2e1da;
  background: rgba(255,255,255,.035);
  font-size: 13px;
  text-decoration: none;
}

.trueend-body .trueend-complete a:hover,
.trueend-body .trueend-complete a:focus,
.trueend-body .trueend-complete a:visited:hover,
.trueend-body .trueend-complete a:visited:focus {
  color: #1e211f;
  border-color: #e3e1d9;
  background: #e3e1d9;
}

.trueend-archive-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 18px max(22px, calc((100vw - 1080px) / 2));
  color: #9a9b95;
  background: #1e211f;
  font-size: 10px;
}

@media (max-width: 700px) {
  .trueend-feature,
  .trueend-feature-body,
  .trueend-feature-section,
  .trueend-article-image,
  .trueend-evidence-grid,
  .trueend-complete,
  .trueend-archive-footer {
    max-width: 100%;
  }

  .trueend-feature img {
    max-width: 100%;
    height: auto;
  }

  .trueend-search-header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding: 22px 20px;
  }

  .trueend-search-form {
    width: 100%;
  }

  .trueend-search-content,
  .trueend-feature-index,
  .trueend-feature-body {
    width: min(100% - 30px, 820px);
  }

  .trueend-search-layout {
    display: block;
    width: 100%;
    margin: 0;
    padding-top: 22px;
  }

  .trueend-search-ads {
    display: none;
  }

  .trueend-mag-header {
    height: 160px;
  }

  .trueend-feature-hero {
    padding: 52px 20px 42px;
  }

  .trueend-feature-index {
    margin: 35px auto;
    padding: 22px 20px;
  }

  .trueend-feature-index ol,
  .trueend-evidence-grid {
    grid-template-columns: 1fr;
  }

  .trueend-feature-section {
    padding-top: 46px;
  }

  .trueend-feature-section > p:not(.trueend-chapter-no):not(.trueend-source-note) {
    text-align: left;
  }

  .trueend-feature-closing {
    margin-right: -15px;
    margin-left: -15px;
    padding: 45px 28px;
  }

  .trueend-after-article {
    height: 210vh;
    min-height: 1000px;
  }

  .trueend-complete > p {
    font-size: clamp(44px, 15vw, 62px);
    letter-spacing: .12em;
    text-indent: .12em;
  }

  .trueend-complete > div {
    align-items: center;
    flex-direction: column;
  }

  .trueend-complete a {
    width: min(280px, 86vw);
  }

  .trueend-archive-footer {
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trueend-reconnect-bar span {
    animation: none;
  }

  .trueend-complete {
    transition: none;
  }

  .trueend-scroll-cue i::after {
    animation: none;
  }
}

@font-face {
  font-family: "TachibanaFont";
  src:
    url("assets/fonts/TachibanaFont_2.0.2.woff2") format("woff2"),
    url("assets/fonts/tachibana.woff2") format("woff2"),
    url("assets/fonts/tachibana.ttf") format("truetype");
  font-display: swap;
}

.document-shell.hounouroku-document {
  width: min(1000px, 100%);
  padding: 20px;
  color: #211c17;
  background: #d4cdc0;
  border: 1px solid #4f463d;
  box-shadow: 8px 9px 0 rgba(26, 18, 13, 0.28);
}

.hounouroku-document .internal-file-head {
  margin-bottom: 18px;
  color: #302923;
  border-bottom-color: #62564c;
}

.hounouroku-document .search-result-stamp {
  color: #641d18;
  background: transparent;
  border: 3px double #641d18;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hounouroku-document .hounouroku-heading {
  padding: 20px 22px 17px;
  text-align: center;
  background: #1d1b19;
  border: 1px solid #090909;
}

.hounouroku-document .hounouroku-heading p {
  margin: 0 0 6px;
  color: #a69a87;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}

.hounouroku-document .hounouroku-heading h1 {
  margin: 0;
  color: #ece4d5;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.28em;
}

.hounouroku-document .hounouroku-meta {
  margin: 18px 0;
  color: #29231e;
  background: #e6e0d5;
  border-color: #71675c;
  font-family: "Yu Mincho", "MS PMincho", serif;
}

.hounouroku-document .hounouroku-meta th,
.hounouroku-document .hounouroku-meta td {
  border-color: #9a8f82;
}

.hounouroku-document .hounouroku-meta th {
  color: #ddd5c7;
  background: #36312c;
}

.hounouroku-document .hounouroku-figure {
  width: min(720px, 88%);
  margin: 26px auto 18px;
  padding: 10px 10px 13px;
  background: #171512;
  border: 1px solid #4b4138;
  box-shadow: 0 10px 26px rgba(16, 10, 7, 0.36);
}

.hounouroku-document .hounouroku-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hounouroku-document .hounouroku-figure figcaption {
  margin-top: 10px;
  color: #b8ad9b;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.hounouroku-document .hounouroku-figure figcaption span {
  color: #8f8476;
  font-size: 0.78rem;
}

.hounouroku-document .hounouroku-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
  padding: 13px 15px;
  color: #312a24;
  background: #c3baac;
  border-top: 1px solid #71675c;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.8rem;
}

.hounouroku-document .hounouroku-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .document-shell.hounouroku-document {
    padding: 11px;
  }

  .hounouroku-document .hounouroku-heading {
    padding-inline: 12px;
  }

  .hounouroku-document .hounouroku-figure {
    width: 100%;
  }

  .hounouroku-document .hounouroku-footer {
    display: block;
  }

  .hounouroku-document .hounouroku-footer p + p {
    margin-top: 7px;
  }
}

body {
  margin: 0;
  padding-top: 34px;
  color: #111;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

.page {
  width: 1180px;
  margin: 10px auto 24px;
}

.site-search {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  min-height: 28px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fdff;
  border-bottom: 2px solid #7b85ff;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.progress-reset {
  position: absolute;
  left: 8px;
  top: 3px;
  min-width: 30px;
  padding-right: 5px !important;
  padding-left: 5px !important;
  font-size: 16px;
  line-height: 1;
}

.progress-reset-all {
  right: 8px;
  left: auto;
  font-size: 19px;
}

.site-search form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-search label {
  color: #1536cc;
  font-weight: bold;
}

.site-search input {
  width: 220px;
  height: 22px;
  padding: 1px 6px;
  border: 2px inset #cfcfff;
  background: #fff;
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.site-search button {
  height: 24px;
  padding: 1px 10px;
  color: #1536cc;
  background: #fff9c9;
  border: 2px outset #ffb8dc;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-weight: bold;
  cursor: pointer;
}

.archive-widget {
  position: fixed;
  z-index: 900;
  left: 12px;
  bottom: 10px;
  width: 250px;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 14px;
}

.archive-panel {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 250px;
  max-height: 50vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid #7b85ff;
  box-shadow: 3px 3px 0 rgba(75, 75, 170, 0.18);
}

.archive-panel[hidden] {
  display: none;
}

.archive-title {
  padding: 4px 8px;
  color: #1536cc;
  background: #f7fbff;
  border-bottom: 1px solid #7b85ff;
  font-weight: bold;
  text-align: center;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 8px;
}

.archive-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px dotted #d5d5ff;
  white-space: nowrap;
}

.archive-list li:last-child {
  border-bottom: 0;
}

.archive-number {
  color: #e44a87;
  font-weight: bold;
}

.archive-missing {
  color: #777;
  letter-spacing: 1px;
}

.archive-toggle {
  min-width: 116px;
  height: 28px;
  padding: 2px 12px;
  color: #1536cc;
  background: #fff9c9;
  border: 2px outset #ffb8dc;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-weight: bold;
  cursor: pointer;
}

.archive-toggle:active {
  border-style: inset;
}

.site-header {
  position: relative;
  text-align: center;
  padding-top: 8px;
  min-height: 118px;
}

.logo-text {
  margin: 0 auto;
  font-size: 50px;
  line-height: 1.15;
  font-weight: bold;
  font-family: "MS PGothic", "Hiragino Maru Gothic ProN", sans-serif;
  letter-spacing: 3px;
  -webkit-text-stroke: 2px #ffffff;
  text-shadow:
    3px 3px 0 #1d4fba,
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;
}

.logo-text span:nth-child(1) { color: #ff2a8e; }
.logo-text span:nth-child(2) { color: #ff5a29; }
.logo-text span:nth-child(3) { color: #ffb000; }
.logo-text span:nth-child(4) { color: #42bc2b; }
.logo-text span:nth-child(5) { color: #00a2df; }
.logo-text span:nth-child(6) { color: #2166e8; }
.logo-text span:nth-child(7) { color: #5a40e8; }
.logo-text span:nth-child(8) { color: #b734dd; }
.logo-text span:nth-child(9) { color: #ff3bbd; }

.logo {
  width: 620px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tagline {
  margin: 0;
  color: #2635d7;
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 2px;
}

.since {
  position: absolute;
  right: 18px;
  top: 22px;
  text-align: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.72);
  padding: 4px 8px;
}

.counter {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  margin: 2px 4px;
}

.counter span {
  display: inline-block;
  min-width: 15px;
  padding: 0 2px;
  background: #050505;
  color: #ffffcc;
  border: 1px solid #666;
  box-shadow: inset 0 0 2px #999;
  font-family: "Courier New", monospace;
  font-size: 22px;
  line-height: 27px;
  font-weight: bold;
}

.counter.small span {
  font-size: 17px;
  line-height: 22px;
  min-width: 13px;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr 245px;
  gap: 18px;
  align-items: start;
}

/* TOP以外の公開ページは、重複する右カラムを省いた2カラム構成にする */
body:not(.home-page) .layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

body:not(.home-page) .layout > .right-column {
  display: none;
}

.box {
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid #7b85ff;
  margin-bottom: 14px;
}

.box h2 {
  margin: 0;
  padding: 2px 6px;
  text-align: center;
  color: #1536cc;
  background: #f7fbff;
  border-bottom: 1px solid #7b85ff;
  font-size: 17px;
}

.menu-list,
.link-list,
.tiny-list {
  list-style: none;
  margin: 8px 10px 10px;
  padding: 0;
}

.menu-list li {
  margin: 7px 0;
  font-weight: bold;
}

.menu-list img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  margin-right: 7px;
  vertical-align: -6px;
  border: 0;
}

.mobile-menu-toggle {
  display: none;
}

.link-list li {
  margin: 7px 0;
  padding-left: 20px;
  position: relative;
  background: none;
}

.link-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcc00;
  font-size: 15px;
  text-shadow: 1px 1px 0 #8a6a00;
}

.updates {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2px 6px;
  margin: 8px 10px;
  color: #2834be;
  font-size: 14px;
}

.updates dt {
  font-weight: bold;
}

.updates dd {
  margin: 0;
}

.more-link {
  text-align: right;
  margin: 6px 10px 10px;
}

.pink {
  color: #df2b9c;
  font-weight: bold;
  text-align: center;
  margin: 8px 6px 0;
}

.mini-counter {
  padding-bottom: 10px;
  text-align: center;
}

.mini-counter h2 {
  font-size: 15px;
}

.main-column {
  text-align: center;
}

.welcome-stars {
  margin: 6px 0 18px;
  color: #9a2247;
  font-size: 21px;
  font-weight: bold;
}

.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 16px;
}

.main-photo {
  width: 330px;
  height: 214px;
  object-fit: cover;
  border: 1px solid #b9b9b9;
}

.intro-text {
  width: 360px;
  text-align: left;
  font-size: 17px;
  font-weight: bold;
}

.message {
  color: #df2b9c;
  font-size: 18px;
  font-weight: bold;
  margin: 14px 0 8px;
}

.flower-line {
  width: 560px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 18px;
}

.riddle-banner {
  margin: 12px auto 20px;
  max-width: 680px;
}

.riddle-banner h1 {
  margin: 8px 0;
  color: #e44a6c;
  font-size: 24px;
  letter-spacing: 5px;
}

.riddle-banner p {
  margin: 6px 0;
  font-weight: bold;
}

/* ===== TOPページ：平成の公式サイトらしさを保った情報整理 ===== */
.home-page .main-column {
  min-width: 0;
}

.home-page .welcome-stars {
  margin-bottom: 14px;
}

.home-page .intro {
  display: block;
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto 15px;
  padding: 10px 12px 13px;
  background: rgba(255, 255, 255, 0.76);
  border: 2px dotted #9ddcff;
}

.home-page .main-photo {
  display: block;
  width: 100%;
  height: 300px;
  margin: 0 auto 12px;
  object-fit: cover;
  border: 1px solid #8bb8d6;
  box-shadow: 3px 3px 0 rgba(123, 133, 255, 0.16);
}

.home-page .intro-text {
  box-sizing: border-box;
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
  padding: 2px 12px;
  font-size: 16px;
  line-height: 1.75;
}

.home-page .intro-text p {
  margin: 7px 0;
}

.home-page .message {
  margin-top: 12px;
}

.home-page .flower-line {
  margin-bottom: 14px;
}

.home-page .riddle-banner {
  box-sizing: border-box;
  max-width: 680px;
  margin: 8px auto 20px;
  padding: 12px 18px 14px;
  background: rgba(255, 253, 238, 0.88);
  border: 2px solid #ff9ccc;
  box-shadow: 4px 4px 0 rgba(123, 133, 255, 0.14);
}

.home-page .riddle-banner h1 {
  margin-top: 0;
}

.home-page .access-box {
  display: none;
}

/* ===== ヒントページ：遊園地TOP共通テイスト ===== */
body.hint-page {
  min-height: 100vh;
  padding-top: 0;
  color: #111;
  background: transparent;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.hint-page .hint-shell {
  box-sizing: border-box;
  width: min(920px, calc(100% - 28px));
  margin: 14px auto 24px;
  padding: 12px 18px 34px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #7b85ff;
}

.hint-page .hint-header {
  margin: 0 0 18px;
  padding: 18px 16px 16px;
  background: #f7fbff;
  border: 1px solid #7b85ff;
  box-shadow: none;
}

.hint-page .hint-eyebrow {
  margin: 0 0 4px;
  color: #2635d7;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hint-page .hint-header h1 {
  margin: 2px 0 12px;
  color: #e44a6c;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 30px;
  letter-spacing: 5px;
  text-shadow: 1px 1px 0 #fff;
}

.hint-page .hint-header h1::before,
.hint-page .hint-header h1::after {
  content: "★";
  margin: 0 12px;
  color: #ffcc00;
  font-size: 18px;
  text-shadow: 1px 1px 0 #8a6a00;
  vertical-align: 3px;
}

.hint-page .hint-header p {
  margin: 5px 0;
  line-height: 1.7;
}

.hint-page .hint-header .hint-warning {
  color: #9a2247;
  font-size: 14px;
  font-weight: bold;
}

.hint-page .hint-list {
  gap: 10px;
}

.hint-page .hint-page-card,
.hint-page .hint-game-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #7b85ff;
}

.hint-page .hint-page-card > summary,
.hint-page .hint-game-card > summary {
  padding: 12px 44px 12px 16px;
  color: #1536cc;
  background: #f7fbff;
  font-weight: bold;
}

.hint-page .hint-page-card > summary::after,
.hint-page .hint-game-card > summary::after {
  right: 16px;
  color: #df2b9c;
}

.hint-page .hint-page-card[open] > summary {
  color: #9a2247;
  background: #fff4fb;
  border-bottom: 1px solid #7b85ff;
}

.hint-page .hint-steps {
  gap: 8px;
  padding: 12px 14px 15px;
}

.hint-page .hint-step {
  background: #f7fbff;
  border: 1px dotted #7b85ff;
  border-left: 5px solid #7b85ff;
}

.hint-page .hint-step > summary {
  padding: 9px 12px;
  color: #1536cc;
}

.hint-page .hint-step:last-child {
  background: #fffbe5;
  border-color: #d6a61d;
  border-left-color: #df2b9c;
}

.hint-page .hint-step:last-child > summary {
  color: #9a2247;
}

.hint-page .hint-step p {
  padding: 2px 12px 13px;
  color: #111;
  line-height: 1.8;
}

.hint-page .hint-subproblem {
  border-top-color: #7b85ff;
}

.hint-page .hint-game-card {
  border-color: #e189b8;
}

.hint-page .hint-game-card > summary {
  color: #9a2247;
  background: #fff4fb;
}

.hint-page .hint-return {
  margin-top: 28px;
  font-weight: bold;
}

.hint-page .hint-return a,
.hint-page-link a {
  color: #0000ee;
}

.hint-page .hint-copyright {
  width: min(920px, calc(100% - 28px));
}

@media (max-width: 640px) {
  .hint-page .hint-shell {
    width: calc(100% - 12px);
    margin-top: 6px;
    padding: 6px 6px 24px;
  }

  .hint-page .hint-header {
    padding: 14px 9px 12px;
  }

  .hint-page .hint-header h1 {
    font-size: 25px;
    letter-spacing: 3px;
  }

  .hint-page .hint-header h1::before,
  .hint-page .hint-header h1::after {
    margin: 0 7px;
    font-size: 14px;
  }

  .hint-page .hint-page-card > summary,
  .hint-page .hint-game-card > summary {
    padding: 11px 40px 11px 12px;
  }

  .hint-page .hint-steps {
    padding: 9px;
  }

  .hint-page .hint-copyright {
    width: calc(100% - 12px);
  }
}

.go-link {
  font-size: 22px;
  letter-spacing: 2px;
}

.access-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 8px 16px;
  border: 2px solid #8d8de8;
  background: rgba(255, 255, 255, 0.82);
}

.access-box img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.access-box h2 {
  margin: 0 0 2px;
  color: #1536cc;
  font-size: 18px;
}

.access-box p {
  margin: 2px 0;
}

.footer-links {
  margin-top: 8px;
  font-size: 16px;
}

.photo-box {
  text-align: center;
  padding-bottom: 10px;
}

.photo-box img {
  width: 205px;
  height: 130px;
  object-fit: cover;
  border: 1px solid #999;
  margin-top: 10px;
}

.photo-box p {
  margin: 6px 8px 0;
  font-weight: bold;
}

.director-box {
  padding-bottom: 8px;
}

.director-box p {
  margin: 14px 16px 8px;
  font-size: 16px;
  font-weight: bold;
}

.director-sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 12px;
  font-weight: bold;
}

.director-sign img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.bbs-box {
  text-align: center;
  padding: 12px 8px;
}

.bbs-box img {
  width: 105px;
  height: auto;
}

.bbs-box p {
  margin: 4px 0 0;
}

.copyright {
  position: relative;
  text-align: center;
  margin-top: 16px;
  padding: 0 64px;
  color: #555;
  font-size: 12px;
}

.copyright span {
  display: inline-block;
  margin: 0 8px;
}

.copyright .page-count {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 48px;
  margin: 0;
  color: #1536cc;
  text-align: right;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-weight: bold;
}

.document-layout {
  grid-template-columns: 220px 1fr;
}

.document-page .main-column {
  text-align: left;
}

.document-page .welcome-stars {
  text-align: center;
}

.document-shell {
  width: min(820px, 100%);
  box-sizing: border-box;
  margin: 0 auto 22px;
  padding: 20px 26px 28px;
  background:
    linear-gradient(rgba(248, 249, 252, 0.96), rgba(248, 249, 252, 0.96)),
    repeating-linear-gradient(0deg, transparent 0, transparent 27px, rgba(110, 125, 170, 0.08) 28px);
  border: 1px solid #6f7fb8;
  border-top: 8px solid #6f7fb8;
  box-shadow: 4px 4px 0 rgba(65, 75, 110, 0.16);
  font-family: "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
  color: #171717;
}

/* ===== 園内資料アーカイブ / pages 39-55 ===== */
body.archive-view-mode {
  min-height: 100vh;
  background: #e8e9e7;
}

.archive-viewer-bar {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 9px 16px;
  color: #39434a;
  background: #f2f3f1;
  border: 1px solid #a9afb1;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
}

.archive-viewer-bar span {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.archive-viewer-bar strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-align: center;
}

.archive-viewer-bar small {
  justify-self: end;
  color: #687177;
  font-family: Consolas, "MS Gothic", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.archive-view-mode .site-search {
  color: #344047;
  background: #f3f4f2;
  border-bottom-color: #7f898e;
  box-shadow: none;
}

.archive-view-mode .site-search label,
.archive-view-mode .site-search button {
  color: #344047;
}

.archive-view-mode .site-search input {
  border-color: #a7adaf;
  background: #fff;
}

.archive-view-mode .site-search button {
  background: #e5e6e3;
  border-color: #afb3b4;
}

.archive-depth-1 .site-header {
  min-height: 76px;
  padding-top: 2px;
}

.archive-depth-1 .site-header .logo {
  width: 360px;
  max-height: 72px;
  object-fit: contain;
  filter: grayscale(0.65) saturate(0.45);
  opacity: 0.78;
}

.archive-depth-1 .site-header .since,
.archive-depth-1 .site-header .tagline,
.archive-depth-1 .left-column .mini-counter {
  display: none;
}

.archive-depth-1 .menu-list img {
  filter: grayscale(0.7);
  opacity: 0.58;
}

.archive-depth-1 .box {
  border-color: #929a9e;
}

.archive-depth-1 .box h2 {
  color: #465158;
  background: #eef0ef;
  border-bottom-color: #aeb4b6;
}

.archive-depth-2 .site-header,
.archive-depth-2 .left-column .menu-box,
.archive-depth-2 .left-column .mini-counter,
.archive-depth-2 .welcome-stars {
  display: none;
}

.archive-depth-2 .document-layout {
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 22px;
}

.archive-depth-2 .left-column .box {
  color: #455057;
  background: #e6e8e6;
  border: 1px solid #979fa2;
}

.archive-depth-2 .left-column .box h2 {
  color: #3e494f;
  background: #dadddc;
  border-bottom-color: #979fa2;
  font-size: 13px;
}

.archive-depth-3 {
  background: #d9dbd8;
}

.archive-depth-3 .archive-viewer-bar {
  color: #e5e7e5;
  background: #2d3234;
  border-color: #171b1d;
}

.archive-depth-3 .archive-viewer-bar small {
  color: #aeb5b7;
}

.archive-depth-3 .site-search {
  color: #dfe2e2;
  background: #24292b;
  border-bottom-color: #111516;
}

.archive-depth-3 .site-search label,
.archive-depth-3 .site-search button {
  color: #dfe2e2;
}

.archive-depth-3 .site-search input {
  color: #171a1b;
  border-color: #697174;
  background: #eceeec;
}

.archive-depth-3 .site-search button {
  background: #464d50;
  border-color: #6c7477;
}

.archive-depth-3 .site-header,
.archive-depth-3 .left-column,
.archive-depth-3 .welcome-stars {
  display: none;
}

.archive-depth-3 .page {
  width: min(1100px, calc(100% - 24px));
  margin-top: 14px;
}

.archive-depth-3 .document-layout {
  display: block;
  padding: 0;
}

.archive-depth-3 .document-shell {
  width: min(980px, 100%);
}

@media (max-width: 900px) {
  .archive-viewer-bar {
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 8px 11px;
  }

  .archive-viewer-bar strong {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 13px;
  }

  .archive-viewer-bar span {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .archive-viewer-bar small {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    font-size: 10px;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .archive-depth-1 .site-header {
    min-height: 58px;
  }

  .archive-depth-1 .site-header .logo {
    width: min(72vw, 320px);
    max-height: 58px;
  }

  .archive-depth-2 .left-column {
    display: none;
  }

  .archive-depth-2 .document-layout,
  .archive-depth-3 .document-layout {
    display: block;
    padding: 0 8px;
  }

  .archive-depth-3 .page {
    width: 100%;
  }

  .document-shell {
    padding: 16px 14px 22px;
  }

  .internal-file-head {
    display: block;
  }

  .internal-file-head .document-kicker,
  .internal-file-head .search-result-stamp {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
  }

  .internal-file-head .search-result-stamp {
    margin-top: 7px;
  }
}

.document-kicker {
  margin: 0 0 8px;
  padding: 3px 8px;
  width: fit-content;
  color: #32406f;
  background: #eef1fa;
  border: 1px solid #b8c0e5;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.document-shell h1 {
  margin: 0 0 18px;
  color: #1f2f66;
  font-size: 28px;
  font-weight: 700;
  border-bottom: 2px solid #9ea9d6;
  padding-bottom: 8px;
  text-align: left;
}

.document-meta {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  background: #fff;
  font-family: "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
  font-size: 14px;
}

.document-meta th,
.document-meta td {
  border: 1px solid #9ea9d6;
  padding: 8px 10px;
  vertical-align: top;
}

.document-meta th {
  width: 130px;
  color: #1f2f66;
  background: #edf1fb;
  text-align: left;
}

.document-section {
  margin-top: 22px;
}

.document-section h2 {
  margin: 0 0 10px;
  padding: 0 0 5px;
  color: #1f2f66;
  border-bottom: 1px solid #b8c0e5;
  font-size: 20px;
  font-weight: 700;
}

.document-section p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.9;
}

.manual-document {
  color: #252b39;
}

.manual-intro {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #aeb7c9;
  background: #f7f8fb;
  line-height: 1.9;
}

.manual-intro p {
  margin: 0;
}

.manual-intro p + p {
  margin-top: 10px;
}

.manual-section {
  padding-bottom: 22px;
  border-bottom: 1px dotted #a8afbc;
}

.manual-section:last-of-type {
  border-bottom: 0;
}

.manual-steps,
.manual-check-list {
  margin: 14px 0 16px;
  padding-left: 1.7em;
  line-height: 1.85;
}

.manual-steps li,
.manual-check-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.manual-response-example {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid #7685ac;
  background: #f1f3f8;
}

.manual-response-example p {
  margin: 0;
}

.manual-response-label {
  margin-bottom: 6px !important;
  color: #465780;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.manual-revision {
  margin-top: 26px;
}

.archived-bbs-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  padding: 14px 18px;
  border: 2px ridge #8da9dc;
  background: #eef6ff;
}

.archived-bbs-head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.archived-bbs-head h2 {
  margin: 0 0 5px;
  color: #135191;
  font-size: 23px;
}

.archived-bbs-head p {
  margin: 0;
  color: #405778;
  font-size: 14px;
}

.archived-bbs-board {
  margin-top: 0;
}

.archived-bbs-thread {
  margin-bottom: 24px;
  border: 1px solid #9db5d8;
  background: #fff;
}

.archived-bbs-thread .bbs-post {
  border: 0;
  border-bottom: 1px dotted #9db5d8;
}

.archived-bbs-reply {
  margin: 0;
  padding: 14px 16px 16px 34px;
  border-bottom: 1px solid #c7d4e6;
  background: #f7fbff;
}

.archived-bbs-reply p {
  margin: 10px 0 0;
  line-height: 1.8;
}

.archived-bbs-admin {
  display: grid;
  grid-template-columns: 92px 1fr;
  margin: 0;
  padding: 10px 14px;
  color: #657084;
  background: #f1f2f4;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
}

.archived-bbs-admin dt,
.archived-bbs-admin dd {
  margin: 2px 0;
}

.archived-bbs-admin .archived-bbs-keyword {
  color: #846852;
}

.archived-bbs-footnote {
  margin: 18px 0 0;
  color: #667189;
  font-size: 13px;
  text-align: right;
}

.nigiwai-web-frame {
  margin-top: 24px;
  border: 1px solid #97a7c4;
  color: #27354b;
  background: #fffdf5;
  box-shadow: inset 0 0 0 4px #edf2f7;
}

.nigiwai-web-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 4px double #7085a7;
  background: #e9f4f1;
}

.nigiwai-web-name,
.nigiwai-web-issue {
  margin: 0;
}

.nigiwai-web-name {
  color: #42666a;
  font-size: 13px;
}

.nigiwai-web-issue {
  color: #244d78;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.nigiwai-web-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 26px;
  padding: 24px;
}

.nigiwai-web-article {
  min-width: 0;
}

.nigiwai-web-category {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 9px;
  color: #fff;
  background: #668d85;
  font-size: 12px;
}

.nigiwai-web-article h2 {
  margin: 0;
  padding-bottom: 10px;
  color: #253c62;
  border-bottom: 2px solid #95a8c7;
  font-size: 27px;
  line-height: 1.4;
}

.nigiwai-web-lead {
  margin: 12px 0 20px !important;
  color: #526681;
  font-weight: bold;
}

.nigiwai-web-article > p {
  margin: 14px 0;
  font-size: 16px;
  line-height: 2;
}

.staff-news-photo {
  margin-top: 20px;
  margin-bottom: 20px;
}

.staff-news-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #9ca7b8;
}

.staff-news-photo figcaption {
  margin-top: 7px;
  color: #657086;
  font-size: 12px;
  text-align: center;
}

.nigiwai-web-note {
  margin: 24px 0;
  padding: 17px 19px;
  border: 1px solid #b7aa8e;
  background: #f6f1e5;
}

.nigiwai-web-note h3 {
  margin: 0 0 10px;
  color: #655745;
  font-size: 18px;
}

.nigiwai-web-note p {
  margin: 8px 0;
  line-height: 1.9;
}

.nigiwai-web-quote {
  margin: 24px 8px;
  padding: 18px 20px;
  border-left: 4px solid #78839b;
  color: #3c4453;
  background: #f0f1f2;
}

.nigiwai-web-quote p {
  margin: 0;
  line-height: 1.9;
}

.nigiwai-web-quote cite {
  display: block;
  margin-top: 10px;
  color: #707887;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.nigiwai-web-related {
  align-self: start;
  border: 1px solid #9eafc8;
  background: #f1f6fb;
}

.nigiwai-web-related h2 {
  margin: 0;
  padding: 9px 11px;
  color: #fff;
  background: #6b83a6;
  font-size: 15px;
}

.nigiwai-web-related ul {
  margin: 0;
  padding: 8px 13px 12px 30px;
}

.nigiwai-web-related li {
  margin: 9px 0;
  color: #53647d;
  font-size: 13px;
  line-height: 1.5;
}

.nigiwai-web-related a,
.nigiwai-web-related span {
  color: inherit;
}

.nigiwai-web-related a {
  color: #174eaa;
  text-decoration: underline;
}

.nigiwai-web-related a:hover,
.nigiwai-web-related a:focus-visible {
  color: #7e4d2f;
}

.nigiwai-web-related span {
  color: #8791a0;
}

.nigiwai-web-related small {
  display: block;
  margin-top: 2px;
  color: #a0a7b0;
  font-size: 10px;
}

.nigiwai-web-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid #b4bfd0;
  color: #697488;
  background: #eef1f4;
  font-size: 11px;
}

.origin-document {
  background:
    linear-gradient(rgba(250, 247, 236, 0.96), rgba(250, 247, 236, 0.96)),
    url("assets/backgrounds/washi_texture.png") center / cover;
}

.origin-document > h1 {
  color: #443b31;
  border-bottom-color: #9d8e75;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  letter-spacing: 0.12em;
}

.origin-story {
  width: min(760px, 94%);
  margin: 28px auto 8px;
  color: #302b25;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.origin-story-intro {
  margin: 0 0 28px;
  color: #4c4034;
  font-size: 19px;
  line-height: 2.1;
  text-align: center;
}

.origin-story-section {
  margin: 28px auto;
  padding: 0 5%;
}

.origin-story-section p {
  margin: 12px 0;
  font-size: 17px;
  line-height: 2.15;
}

.origin-story-section p:first-child::first-letter {
  font-size: 1.2em;
}

.origin-story-divider {
  margin: 32px 0;
  color: #9a886c;
  font-size: 12px;
  letter-spacing: 0.6em;
  text-align: center;
}

.origin-saying {
  margin: 28px auto;
  padding: 22px 26px;
  border-top: 1px solid #9f8f77;
  border-bottom: 1px solid #9f8f77;
  color: #493a2e;
  background: rgba(239, 232, 214, 0.54);
  text-align: center;
}

.origin-saying p {
  margin: 0;
  font-size: 21px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.origin-photo {
  position: relative;
  margin-top: 26px;
  margin-bottom: 30px;
  padding: 8px 8px 12px;
  background: #eee8d9;
  border: 1px solid #a99c83;
  box-shadow: 0 4px 12px rgba(54, 44, 30, 0.17);
  transform: rotate(-0.3deg);
}

.origin-photo:nth-of-type(even) {
  transform: rotate(0.35deg);
}

.origin-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.12) contrast(0.96);
}

.origin-photo figcaption {
  margin-top: 8px;
  color: #6c6254;
  font-size: 12px;
  text-align: center;
}

.origin-story-present {
  padding: 22px 7%;
  border: 1px solid rgba(129, 111, 84, 0.5);
  background: rgba(242, 236, 221, 0.62);
}

.origin-story-source {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px dotted #95866f;
  color: #716757;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.origin-story-source p {
  margin: 3px 0;
}

.washi-note {
  margin: 18px auto 8px;
  padding: 28px 34px;
  background:
    linear-gradient(rgba(255, 252, 238, 0.58), rgba(255, 252, 238, 0.58)),
    url("assets/backgrounds/washi_texture.png") center / cover;
  border: 1px solid #c9b98e;
  box-shadow: 2px 2px 0 rgba(108, 84, 42, 0.12);
  color: #2d2418;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.washi-note p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 2;
}

.washi-note p:last-child {
  margin-bottom: 0;
}

.washi-note strong {
  color: #1b1b1b;
  font-weight: 700;
}

.document-transcription {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fbfbfd;
  border: 1px solid #b8c0e5;
}

.document-transcription h3 {
  margin: 0 0 10px;
  color: #1f2f66;
  font-size: 16px;
}

.document-transcription p {
  margin: 7px 0;
  color: #222;
  font-size: 14px;
  line-height: 1.75;
}

.document-plain-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f1f4fb;
  border: 1px solid #b8c0e5;
}

.document-plain-note p {
  margin: 5px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.document-note {
  color: #555;
}

.document-note p {
  font-size: 15px;
}

.forbidden-document {
  width: min(980px, 100%);
}

.old-map-scan {
  margin: 14px auto 0;
}

.old-map-scan img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b9ad95;
  box-shadow: 4px 5px 0 rgba(72, 58, 37, 0.18);
}

.document-image-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.document-image-zoom:focus-visible {
  outline: 3px solid #3559c7;
  outline-offset: 4px;
}

.pamphlet-zoom-figure figcaption {
  margin-top: 9px;
  color: #414b70;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.pamphlet-zoom-figure figcaption span {
  color: #59658d;
  font-size: 12px;
}

.document-zoom-hint {
  display: block;
  margin-top: 6px;
  color: #59658d;
  font-size: 12px;
  text-align: center;
}

.document-image-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  padding: 58px 18px 18px;
  box-sizing: border-box;
  background: rgba(8, 12, 24, 0.92);
}

.document-image-lightbox[hidden] {
  display: none;
}

.document-image-lightbox-close {
  position: fixed;
  z-index: 10001;
  top: 12px;
  right: 18px;
  padding: 7px 13px;
  color: #fff;
  background: #263358;
  border: 1px solid #c7d1ff;
  cursor: pointer;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 14px;
}

.document-image-lightbox-scroll {
  overflow: auto;
  width: 100%;
  height: 100%;
  text-align: center;
}

.document-image-lightbox img {
  display: block;
  width: max(1200px, 92vw);
  max-width: none;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
}

body.document-image-lightbox-open {
  overflow: hidden;
}

.yamagami-legend-document {
  width: min(980px, 100%);
}

.yamagami-legend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(250px, 0.78fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}

.yamagami-legend-paper {
  position: relative;
  padding: 34px 38px 30px;
  color: #2e2920;
  background:
    linear-gradient(rgba(255, 253, 242, 0.72), rgba(246, 239, 215, 0.72)),
    repeating-linear-gradient(0deg, rgba(83, 70, 45, 0.025) 0 1px, transparent 1px 4px);
  border: 1px solid #b8aa86;
  box-shadow: 4px 5px 0 rgba(72, 58, 37, 0.15);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.yamagami-legend-paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(112, 93, 59, 0.28);
  pointer-events: none;
}

.yamagami-legend-paper > header {
  position: relative;
  padding-bottom: 15px;
  border-bottom: 1px solid #8f8060;
  text-align: center;
}

.yamagami-legend-paper > header p {
  margin: 0 0 8px;
  color: #6a5d45;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.yamagami-legend-paper > header h2 {
  margin: 0;
  color: #30291f;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.yamagami-legend-text {
  position: relative;
  margin-top: 23px;
}

.yamagami-legend-text p {
  margin: 0 0 1.35em;
  font-size: 16px;
  line-height: 2.15;
  text-indent: 1em;
}

.yamagami-legend-annotation {
  position: relative;
  margin-top: 27px;
  padding: 15px 17px;
  background: rgba(229, 219, 188, 0.42);
  border-top: 1px solid #9d8d68;
  border-bottom: 1px solid #b6a984;
}

.yamagami-legend-annotation h3 {
  margin: 0 0 7px;
  color: #50452f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.yamagami-legend-annotation p {
  margin: 0;
  color: #554a36;
  font-size: 13px;
  line-height: 1.9;
}

.yamagami-legend-credit {
  position: relative;
  margin-top: 28px;
  padding-top: 13px;
  border-top: 1px solid rgba(126, 108, 72, 0.45);
  text-align: right;
}

.yamagami-legend-credit p {
  margin: 3px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.yamagami-legend-photo {
  position: sticky;
  top: 20px;
  margin: 0;
  padding: 9px 9px 12px;
  background: #f3f0e7;
  border: 1px solid #a9a18f;
  box-shadow: 4px 5px 0 rgba(42, 36, 28, 0.18);
  transform: rotate(0.5deg);
}

.yamagami-legend-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(0.96) sepia(0.08);
}

.yamagami-legend-photo figcaption {
  margin-top: 10px;
  color: #474238;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

@media (max-width: 760px) {
  .yamagami-legend-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .yamagami-legend-photo {
    position: static;
    width: min(100%, 560px);
    margin: 0 auto;
    transform: none;
  }

  .yamagami-legend-paper {
    padding: 28px 24px 25px;
  }

  .yamagami-legend-text p {
    font-size: 15px;
    line-height: 2;
  }
}

.staff-journal-document {
  width: min(1030px, 100%);
  padding: 20px;
  color: #24201c;
  background: #cec8be;
  border: 1px solid #675b50;
  box-shadow: 8px 9px 0 rgba(42, 29, 24, 0.24);
}

.staff-journal-document .internal-file-head {
  margin-bottom: 15px;
  color: #342b25;
  border-bottom-color: #70645b;
}

.staff-journal-document .document-kicker {
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.staff-journal-document .search-result-stamp {
  color: #704039;
  background: transparent;
  border: 3px double #704039;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: rotate(-2deg);
}

.journal-book {
  position: relative;
  padding: 29px 30px 25px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(77, 103, 111, 0.11) 31px 32px),
    #eee9df;
  border: 1px solid #51483f;
  border-left: 15px solid #665448;
  box-shadow: 5px 6px 0 rgba(53, 37, 29, 0.16);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.journal-recovered {
  color: #7c2f2b;
  font-weight: 800;
}

.journal-book::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 1px;
  background: rgba(145, 63, 58, 0.28);
  pointer-events: none;
}

.journal-head {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 0 0 20px 18px;
  border-bottom: 4px double #4c4038;
}

.journal-head p,
.journal-head span,
.journal-head h1,
.journal-head dl,
.journal-head dt,
.journal-head dd {
  margin: 0;
}

.journal-head > div {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.7;
}

.journal-head > div span {
  color: #64584f;
  font-size: 0.67rem;
}

.journal-head h1 {
  padding: 0;
  color: #352b25;
  border: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(1.65rem, 2.7vw, 2rem);
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}

.journal-head dl {
  display: grid;
  grid-template-columns: 66px 1fr;
  background: rgba(255, 253, 247, 0.55);
  border-top: 1px solid #655a51;
  border-left: 1px solid #655a51;
  font-size: 0.67rem;
}

.journal-head dt,
.journal-head dd {
  padding: 6px 7px;
  border-right: 1px solid #655a51;
  border-bottom: 1px solid #655a51;
}

.journal-head dt {
  background: #ded5c9;
  font-weight: 700;
}

.journal-procedure {
  margin: 22px 0 24px 18px;
  padding: 14px 17px 15px;
  background: rgba(225, 218, 206, 0.9);
  border: 1px solid #72665c;
  border-left: 7px solid #5c4940;
}

.journal-procedure h2,
.journal-handover h2 {
  margin: 0 0 10px;
  padding: 0;
  color: #382e29;
  border: 0;
  font-size: 0.91rem;
  letter-spacing: 0.1em;
}

.journal-procedure ol {
  margin: 0;
  padding-left: 1.55em;
  columns: 2;
  column-gap: 34px;
  font-size: 0.76rem;
  line-height: 1.85;
}

.journal-entries {
  margin-left: 18px;
  border-top: 1px solid #675d54;
  border-left: 1px solid #675d54;
}

.journal-entry {
  display: grid;
  grid-template-columns: 155px 1fr;
  background: rgba(255, 253, 247, 0.7);
  border-right: 1px solid #675d54;
  border-bottom: 1px solid #675d54;
}

.journal-entry > header {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 13px;
  background: rgba(219, 211, 199, 0.72);
  border-right: 1px solid #675d54;
}

.journal-entry time {
  color: #332923;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.journal-entry header span {
  color: #63574f;
  font-size: 0.69rem;
}

.journal-entry header b {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 7px;
  color: #75423a;
  border: 2px solid rgba(117, 66, 58, 0.72);
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.journal-entry-body {
  position: relative;
  min-height: 105px;
  padding: 13px 17px 14px;
}

.journal-entry-body p {
  margin: 0 0 7px;
  font-size: 0.82rem;
  line-height: 1.85;
}

.journal-entry-body p:last-child {
  margin-bottom: 0;
}

.journal-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 12px;
  border-top: 1px solid #756a61;
  border-left: 1px solid #756a61;
}

.journal-counts div {
  display: grid;
  grid-template-columns: auto 1fr;
}

.journal-counts dt,
.journal-counts dd {
  margin: 0;
  padding: 6px 8px;
  border-right: 1px solid #756a61;
  border-bottom: 1px solid #756a61;
  font-size: 0.68rem;
}

.journal-counts dt {
  color: #665b53;
  background: #ded6cb;
  font-weight: 700;
}

.journal-counts dd {
  background: rgba(255, 253, 247, 0.66);
  font-weight: 800;
}

.journal-counts-alert dd {
  color: #702c28;
}

.journal-audit-log {
  padding: 9px 11px;
  color: #34302d;
  background: #dedbd4;
  border: 1px solid #898078;
  font-family: "Consolas", "Yu Gothic", "Meiryo", sans-serif;
}

.journal-audit-log p {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  margin: 0 !important;
  padding: 5px 2px;
  border-bottom: 1px dotted rgba(89, 78, 70, 0.42);
  font-size: 0.72rem;
  line-height: 1.6;
}

.journal-audit-log p:last-child {
  border-bottom: 0;
}

.journal-audit-log time {
  color: #72655d;
  font-weight: 700;
}

.journal-entry-question {
  background: rgba(247, 241, 229, 0.88);
}

.journal-system-note {
  display: grid;
  grid-template-columns: 105px 1fr;
  margin: 11px 0 0 !important;
  padding: 8px 10px;
  color: #413934;
  background: rgba(224, 217, 207, 0.82);
  border: 1px solid #897c72;
  font-size: 0.75rem !important;
  line-height: 1.7 !important;
}

.journal-system-answer {
  color: #2e2926;
  background: #d2ccc3;
  border-left: 5px solid #443b36;
}

.journal-system-note strong {
  color: #57433c;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.journal-entry-last {
  background: rgba(226, 214, 203, 0.9);
}

.journal-entry-last header b {
  color: #3f3935;
  border-color: #817970;
}

.journal-staff-note {
  color: #352a26;
  background: rgba(235, 226, 214, 0.9);
  border-left: 5px solid #704039;
}

.journal-entry-deleted {
  position: relative;
  outline: 2px solid rgba(116, 43, 38, 0.54);
  outline-offset: -3px;
}

.journal-entry-deleted::after {
  content: "RECOVERED";
  position: absolute;
  top: 6px;
  right: 9px;
  color: rgba(119, 38, 34, 0.13);
  font-family: "Consolas", monospace;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  pointer-events: none;
}

.journal-recovery-label {
  display: inline-block;
  margin: 0 0 10px !important;
  padding: 4px 8px;
  color: #772d29;
  background: rgba(255, 248, 240, 0.72);
  border: 1px solid rgba(119, 45, 41, 0.66);
  font-size: 0.66rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.journal-audit-alert {
  background: #d8d1c9;
  border-color: #76534d;
}

.journal-audit-alert p:nth-child(2) span,
.journal-audit-alert p:last-child span {
  color: #5d2623;
}

.journal-log-deleted {
  color: #762f2b;
  background: rgba(118, 47, 43, 0.08);
}

.journal-handover {
  margin: 24px 0 0 18px;
  padding: 15px 16px 16px;
  background: rgba(222, 214, 201, 0.9);
  border: 1px solid #6b5e54;
}

.journal-handover > p {
  margin: 0 0 11px;
  font-size: 0.78rem;
  line-height: 1.8;
}

.journal-handover table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 253, 247, 0.62);
  font-size: 0.74rem;
}

.journal-handover th,
.journal-handover td {
  padding: 8px 10px;
  border: 1px solid #75695f;
  text-align: left;
  line-height: 1.7;
}

.journal-handover th {
  width: 125px;
  background: #d8cfc2;
}

.journal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 0 18px;
  padding-top: 12px;
  color: #5b4d44;
  border-top: 4px double #594b42;
  font-size: 0.66rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .staff-journal-document {
    padding: 11px;
  }

  .journal-book {
    padding: 22px 13px 20px;
    border-left-width: 8px;
  }

  .journal-book::before {
    left: 20px;
  }

  .journal-head {
    grid-template-columns: 1fr;
    padding-left: 14px;
  }

  .journal-head h1 {
    order: -1;
  }

  .journal-procedure,
  .journal-entries,
  .journal-handover,
  .journal-footer {
    margin-left: 14px;
  }

  .journal-procedure ol {
    columns: 1;
  }

  .journal-entry {
    grid-template-columns: 1fr;
  }

  .journal-entry > header {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #675d54;
  }

  .journal-entry header b {
    margin-top: 0;
  }

  .journal-footer {
    display: block;
  }

  .journal-footer span {
    display: block;
    margin-top: 4px;
  }

  .journal-system-note {
    grid-template-columns: 1fr;
  }

  .journal-counts {
    grid-template-columns: 1fr 1fr;
  }
}

.director-profile-document {
  width: min(980px, 100%);
}

.director-profile-sheet {
  overflow: hidden;
  margin-top: 20px;
  color: #29364a;
  background: #fbfcff;
  border: 1px solid #9eabc2;
  box-shadow: 4px 5px 0 rgba(49, 61, 85, 0.14);
}

.director-profile-heading {
  padding: 24px 30px 21px;
  background:
    linear-gradient(105deg, rgba(45, 74, 116, 0.96), rgba(76, 102, 139, 0.92)),
    #38577f;
  color: #fff;
}

.director-profile-heading p,
.director-profile-heading h2,
.director-profile-heading span {
  margin: 0;
}

.director-profile-heading p {
  margin-bottom: 7px;
  color: #dce6f6;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.director-profile-heading h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.director-profile-heading span {
  display: block;
  margin-top: 9px;
  color: #edf2fa;
  font-size: 14px;
}

.director-profile-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  padding: 30px;
  border-bottom: 1px solid #cbd3df;
}

.director-profile-photo {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 8px 8px 11px;
  background: #fff;
  border: 1px solid #aeb8c8;
  box-shadow: 3px 4px 0 rgba(50, 62, 82, 0.13);
}

.director-profile-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.director-profile-photo figcaption {
  color: #48566e;
}

.director-profile-summary dl {
  margin: 0 0 20px;
  border-top: 1px solid #9fadc2;
}

.director-profile-summary dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid #d5dbe5;
}

.director-profile-summary dt,
.director-profile-summary dd {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.65;
}

.director-profile-summary dt {
  color: #445570;
  background: #edf1f7;
  font-weight: 600;
}

.director-profile-summary dd {
  background: #fff;
}

.director-profile-summary > p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

.director-profile-interview {
  padding: 27px 34px 5px;
}

.director-profile-interview + .director-profile-interview {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px dashed #aeb8c7;
}

.director-profile-interview h3 {
  margin: 0 0 17px;
  padding: 7px 12px;
  color: #304c73;
  background: #eaf0f8;
  border-left: 4px solid #617ca4;
  font-size: 17px;
  font-weight: 600;
}

.director-profile-interview p {
  margin: 0 0 1.25em;
  font-size: 16px;
  line-height: 2.05;
}

.director-profile-reflection {
  position: relative;
  margin: 21px 14px 24px;
  padding: 17px 21px 15px 25px;
  color: #4d5665;
  background: #f1f2f3;
  border-left: 2px solid #8e96a3;
}

.director-profile-reflection::before {
  content: "園長談";
  position: absolute;
  top: -10px;
  left: 17px;
  padding: 1px 7px;
  color: #68717f;
  background: #fbfcff;
  border: 1px solid #b8bec7;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.director-profile-reflection p {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 15px;
  line-height: 1.95;
}

.director-profile-related {
  padding: 12px 15px;
  background: #f5f2e8;
  border: 1px solid #d2c9aa;
}

.director-profile-related a {
  color: #3d5274;
  text-decoration: underline;
  text-decoration-color: #8997ad;
  text-underline-offset: 3px;
}

.director-profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 22px 34px 30px;
  padding-top: 15px;
  border-top: 1px solid #bcc5d3;
  color: #637087;
}

.director-profile-footer p {
  margin: 0;
  font-size: 13px;
}

.director-profile-footer span {
  padding: 6px 9px;
  color: #66738b;
  border: 2px double #8490a5;
  font-size: 12px;
  letter-spacing: 0.12em;
  transform: rotate(-2deg);
}

@media (max-width: 760px) {
  .director-profile-heading {
    padding: 21px 22px 19px;
  }

  .director-profile-intro {
    display: block;
    padding: 24px 20px;
  }

  .director-profile-photo {
    width: min(84%, 320px);
    margin-bottom: 25px;
  }

  .director-profile-summary dl div {
    grid-template-columns: 80px 1fr;
  }

  .director-profile-interview {
    padding: 24px 21px 4px;
  }

  .director-profile-interview p {
    font-size: 15px;
    line-height: 2;
  }

  .director-profile-footer {
    margin: 20px 21px 25px;
  }
}

.homepage-policy-document {
  width: min(980px, 100%);
}

.homepage-policy-news {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #99aac5;
  box-shadow: 3px 4px 0 rgba(52, 69, 96, 0.13);
}

.homepage-policy-news > header {
  padding: 21px 27px 19px;
  color: #fff;
  background: #476993;
  border-bottom: 5px solid #b8d4ed;
}

.homepage-policy-news > header p,
.homepage-policy-news > header h2 {
  margin: 0;
}

.homepage-policy-news > header p {
  margin-bottom: 7px;
  color: #e1ebf7;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.homepage-policy-news > header h2 {
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.55;
}

.homepage-policy-news-body {
  padding: 24px 28px 10px;
}

.homepage-policy-news-body p {
  margin: 0 0 1.2em;
  font-size: 15px;
  line-height: 2;
}

.homepage-policy-photo {
  width: min(700px, 88%);
  margin: 26px auto 31px;
  padding: 9px 9px 12px;
  background: #f4f5f7;
  border: 1px solid #9da8b8;
  box-shadow: 4px 5px 0 rgba(34, 45, 62, 0.17);
}

.homepage-policy-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.homepage-policy-photo figcaption {
  color: #445064;
}

.homepage-policy-appendix {
  margin-top: 24px;
  color: #23282e;
  background: #f5f5f3;
  border: 1px solid #737b83;
  box-shadow: 4px 5px 0 rgba(36, 41, 47, 0.15);
}

.homepage-policy-appendix > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 25px 17px;
  background: #e1e3e4;
  border-bottom: 2px solid #555d64;
}

.homepage-policy-appendix > header p,
.homepage-policy-appendix > header h2 {
  margin: 0;
}

.homepage-policy-appendix > header p {
  margin-bottom: 4px;
  color: #596169;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.homepage-policy-appendix > header h2 {
  font-size: 21px;
  font-weight: 600;
}

.homepage-policy-appendix > header > span {
  flex: none;
  padding: 6px 9px;
  color: #663d3d;
  background: #f3e8e6;
  border: 1px solid #9c6d6a;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.homepage-policy-block {
  margin: 0 25px;
  padding: 22px 2px 7px;
  border-bottom: 1px dashed #9ca1a5;
}

.homepage-policy-block h3 {
  margin: 0 0 13px;
  color: #37414a;
  font-size: 16px;
  letter-spacing: 0.07em;
}

.homepage-policy-block p {
  margin: 0 0 1.15em;
  font-size: 15px;
  line-height: 1.95;
}

.homepage-policy-procedure ol {
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
  counter-reset: homepage-policy-step;
}

.homepage-policy-procedure li {
  counter-increment: homepage-policy-step;
  position: relative;
  margin: 0;
  padding: 9px 10px 9px 48px;
  border-top: 1px solid #d2d4d4;
  font-size: 14px;
  line-height: 1.8;
}

.homepage-policy-procedure li:last-child {
  border-bottom: 1px solid #d2d4d4;
}

.homepage-policy-procedure li::before {
  content: counter(homepage-policy-step, decimal-leading-zero);
  position: absolute;
  top: 9px;
  left: 11px;
  color: #6c747a;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.homepage-policy-warning {
  margin: 23px 25px 3px;
  padding: 16px 18px;
  color: #3f302f;
  background: #eee7e4;
  border-left: 4px solid #78605e;
}

.homepage-policy-warning p {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 14px;
  line-height: 1.9;
}

.homepage-policy-warning p + p {
  margin-top: 6px;
}

.homepage-policy-approval {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: end;
  padding: 23px 25px 25px;
}

.homepage-policy-approval div {
  width: 66px;
  padding: 7px 5px;
  color: #5c4240;
  border: 2px double #8d6965;
  text-align: center;
  transform: rotate(-1deg);
}

.homepage-policy-approval div span,
.homepage-policy-approval div strong {
  display: block;
  font-size: 11px;
}

.homepage-policy-approval div strong {
  margin-top: 3px;
  font-size: 13px;
}

.homepage-policy-approval > p {
  justify-self: end;
  margin: 0;
  color: #555b60;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.homepage-policy-followup {
  margin-top: 25px;
  padding: 20px 23px;
  background: #f1f4f8;
  border: 1px solid #a8b5c7;
}

.homepage-policy-followup h2 {
  margin: 0 0 10px;
  color: #344c6c;
  font-size: 17px;
}

.homepage-policy-followup p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.8;
}

.homepage-policy-followup a {
  color: #3c5578;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .homepage-policy-news > header,
  .homepage-policy-news-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .homepage-policy-photo {
    width: 100%;
    box-sizing: border-box;
  }

  .homepage-policy-appendix > header {
    display: block;
    padding: 18px 19px 16px;
  }

  .homepage-policy-appendix > header > span {
    display: inline-block;
    margin-top: 12px;
  }

  .homepage-policy-block {
    margin: 0 19px;
  }

  .homepage-policy-warning {
    margin-right: 19px;
    margin-left: 19px;
  }

  .homepage-policy-approval {
    grid-template-columns: auto auto;
    padding: 21px 19px;
  }

  .homepage-policy-approval > p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

.document-scan-compact {
  width: min(760px, 88%);
}

figure.document-scan-medium {
  width: min(760px, 92%);
  margin-right: auto;
  margin-left: auto;
}

figure.document-scan-small {
  width: min(580px, 82%);
  margin-right: auto;
  margin-left: auto;
}

.calligraphy-scan {
  margin: 18px auto 10px;
}

.calligraphy-scan img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b9ad95;
  box-shadow: 4px 5px 0 rgba(72, 58, 37, 0.18);
}

.draft-note {
  padding: 8px 10px;
  background: #fffdf4;
  border: 1px dashed #c8b26b;
  color: #666;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.internal-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.internal-file-head .search-result-stamp {
  margin: 0;
}

.internal-warning {
  margin: 0;
  padding: 4px 10px;
  color: #b00000;
  background: #fff6f6;
  border: 1px solid #d98a8a;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 13px;
  font-weight: bold;
}

.draft-document {
  background:
    linear-gradient(rgba(247, 248, 251, 0.96), rgba(247, 248, 251, 0.96)),
    repeating-linear-gradient(0deg, transparent 0, transparent 25px, rgba(70, 82, 120, 0.07) 26px);
}

.draft-status-board {
  margin: 18px 0;
  padding: 12px 14px;
  background: #f5f6fa;
  border: 1px solid #9ea9d6;
  border-left: 6px solid #6f7fb8;
  font-family: "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
}

.construction-document {
  width: min(980px, 100%);
}

.construction-log-table {
  width: 100%;
  margin: 12px 0 6px;
  border-collapse: collapse;
  background: #fff;
  font-family: "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.construction-log-table th,
.construction-log-table td {
  border: 1px solid #9ea9d6;
  padding: 8px 9px;
  vertical-align: top;
}

.construction-log-table th {
  color: #1f2f66;
  background: #edf1fb;
  text-align: left;
  white-space: nowrap;
}

.construction-log-table td:first-child {
  white-space: nowrap;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  color: #27325f;
}

.construction-log-table td:nth-child(2) {
  white-space: nowrap;
  text-align: center;
}

.construction-memo h2 {
  margin: 0 0 8px;
  color: #1f2f66;
  font-size: 17px;
}

.draft-status-board h2 {
  margin: 0 0 8px;
  color: #1f2f66;
  font-size: 16px;
  border: 0;
}

.draft-status-board ul {
  margin: 0;
  padding-left: 1.4em;
}

.draft-status-board li,
.draft-status-board p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.75;
}

.draft-copy-block {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c3cae7;
}

.draft-copy-block h2 {
  margin-bottom: 14px;
}

.visitor-chart-paper {
  margin-top: 14px;
  padding: 16px;
  color: #1f2f44;
  background: #fbfaf2;
  border: 1px solid #9ea9c7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  font-family: "MS Gothic", "Osaka-Mono", monospace;
}

.chart-paper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #8a94b0;
  color: #243866;
}

.chart-paper-head strong {
  font-size: 18px;
  letter-spacing: 0;
}

.chart-paper-head span {
  font-size: 12px;
  color: #586270;
  white-space: nowrap;
}

.chart-wrap {
  padding: 10px;
  background: #fffdf7;
  border: 1px solid #c8c0a8;
  overflow-x: auto;
}

.visitor-chart {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.visitor-chart text {
  fill: #26354c;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 14px;
}

.visitor-chart .chart-year {
  font-size: 13px;
}

.visitor-chart .chart-value {
  fill: #9c1d1d;
  font-size: 13px;
  font-weight: bold;
}

.chart-axis {
  stroke: #26354c;
  stroke-width: 2;
}

.chart-grid {
  stroke: #cfd4df;
  stroke-dasharray: 4 5;
}

.chart-line {
  fill: none;
  stroke: #b92323;
  stroke-width: 4;
}

.chart-point {
  fill: #fff8ea;
  stroke: #b92323;
  stroke-width: 3;
}

.chart-notes {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
}

.chart-notes p {
  margin: 0;
  line-height: 1.65;
}

.red-pencil {
  color: #ad1f1f;
  font-weight: bold;
  transform: rotate(-0.3deg);
}

.draft-line-label {
  margin: 18px 0 8px !important;
  padding: 4px 8px;
  color: #1f2f66;
  background: #edf1fb;
  border-left: 4px solid #6f7fb8;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 14px !important;
  font-weight: bold;
  line-height: 1.5 !important;
}

.draft-history {
  background: #fffdf7;
  border-color: #c8b26b;
  border-left-color: #c8b26b;
}

.draft-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}

.draft-copy-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #aeb8dc;
}

.draft-copy-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.draft-copy-heading span {
  color: #737b94;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
}

.draft-copy-section {
  position: relative;
  padding: 0 12px 14px 0;
  border-bottom: 1px dotted #b9c0d8;
}

.draft-copy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.draft-margin-note {
  margin: 8px 0 2px 24px !important;
  padding: 6px 9px;
  color: #6e5633;
  background: #fffced;
  border-left: 3px solid #c7a65f;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 13px !important;
  line-height: 1.6 !important;
  transform: rotate(-0.25deg);
}

.draft-deleted {
  color: #8a8a8a;
  text-decoration: line-through 2px #9b5b5b;
}

.draft-inserted {
  position: relative;
  margin-left: 18px !important;
  color: #394d86;
}

.draft-inserted::before {
  content: "↑差替";
  position: absolute;
  right: 100%;
  width: 48px;
  color: #6573a4;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 11px;
}

.draft-editorial-notes {
  position: sticky;
  top: 12px;
}

.draft-editorial-notes .draft-status-board {
  margin-top: 0;
}

.draft-editorial-notes .draft-status-board li,
.draft-editorial-notes .draft-status-board p {
  font-size: 12px;
}

.draft-editorial-notes .draft-history span {
  color: #77613d;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
}

.draft-side-stamp {
  width: max-content;
  margin: 26px auto 8px;
  padding: 6px 10px;
  color: rgba(126, 73, 58, 0.82);
  border: 2px solid rgba(126, 73, 58, 0.68);
  font-weight: bold;
  letter-spacing: 0.12em;
  transform: rotate(-5deg);
}

@media (max-width: 760px) {
  .draft-editorial-grid {
    grid-template-columns: 1fr;
  }

  .draft-editorial-notes {
    position: static;
  }

  .draft-copy-heading {
    display: block;
  }

  .draft-copy-heading span {
    display: block;
    margin-top: 3px;
  }
}

.newspaper-transcript {
  margin-top: 24px;
  padding: 24px 28px 26px;
  color: #333027;
  background: #fbf8ed;
  border: 1px solid #c8bea6;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  line-height: 2;
}

.newspaper-transcript-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 3px double #746d5d;
}

.newspaper-transcript-head p,
.newspaper-transcript-head span {
  margin: 0;
}

.newspaper-transcript-head p {
  font-weight: bold;
  letter-spacing: 0.12em;
}

.newspaper-transcript-head span {
  color: #716b5e;
  font-size: 0.82rem;
}

.newspaper-transcript > h2 {
  margin: 0;
  padding: 0 0 8px;
  color: #24221d;
  border: 0;
  border-bottom: 1px solid #99917f;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.04em;
}

.newspaper-transcript-lead {
  margin: 10px 0 20px;
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.newspaper-director-comment {
  margin: 18px 8px 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid #aaa18e;
  border-bottom: 1px solid #aaa18e;
}

.newspaper-director-comment p {
  margin: 0;
}

.search-word-hint {
  color: #806a57;
}

.archive-pencil-line {
  text-decoration-line: underline;
  text-decoration-color: rgba(105, 101, 88, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.newsletter-planning-note {
  margin: 24px auto 4px;
  padding: 16px 18px 14px;
  color: #303746;
  background:
    linear-gradient(rgba(250, 250, 246, 0.94), rgba(250, 250, 246, 0.94)),
    repeating-linear-gradient(0deg, transparent 0, transparent 25px, rgba(68, 82, 112, 0.08) 26px);
  border: 1px solid #929bac;
  box-shadow: 2px 3px 0 rgba(67, 72, 84, 0.12);
  font-family: "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
}

.newsletter-planning-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 3px double #6f788a;
}

.newsletter-planning-head h2,
.newsletter-planning-head span {
  margin: 0;
}

.newsletter-planning-head h2 {
  padding: 0;
  color: #28344d;
  border: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.newsletter-planning-head span {
  font-size: 12px;
}

.newsletter-planning-head span:last-child {
  text-align: right;
}

.newsletter-planning-note > p {
  margin: 12px 0 8px;
  font-size: 13px;
  line-height: 1.7;
}

.newsletter-planning-note ul {
  margin: 10px 0;
  padding: 10px 12px 10px 34px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #b5bbc6;
}

.newsletter-planning-note li {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

.newsletter-planning-caution {
  padding: 7px 10px;
  color: #6f5639;
  background: #fffbee;
  border-left: 3px solid #bca065;
  transform: rotate(-0.2deg);
}

.newsletter-planning-sign {
  margin: 10px 4px 0;
  text-align: right;
  font-size: 12px;
}

.director-message-document {
  background:
    linear-gradient(rgba(244, 246, 249, 0.97), rgba(244, 246, 249, 0.97)),
    repeating-linear-gradient(0deg, transparent 0, transparent 27px, rgba(55, 70, 96, 0.055) 28px);
}

.director-message-page {
  margin-top: 22px;
  color: #303743;
  background: #fdfdfb;
  border: 1px solid #aeb6c3;
  box-shadow: 3px 4px 0 rgba(56, 67, 83, 0.11);
}

.director-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px 11px;
  color: #f7f8fa;
  background: #59677b;
}

.director-message-head p,
.director-message-head span {
  margin: 0;
}

.director-message-head p {
  font-weight: bold;
  letter-spacing: 0.1em;
}

.director-message-head span {
  font-size: 12px;
}

.director-message-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px clamp(22px, 6vw, 58px) 36px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 16px;
  line-height: 1.95;
}

.director-message-body > p {
  margin: 0 0 1.05em;
}

.director-message-body > h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.15em 0 1.05em;
  color: #4f5968;
  font-size: 0.92rem;
  font-weight: normal;
  letter-spacing: 0.14em;
}

.director-message-body > h2:first-child {
  margin-top: 0;
}

.director-message-body > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c7ccd3;
}

.director-message-keyword {
  font-weight: 600;
}

.director-shrine-note {
  margin: 25px 12px 28px;
  padding: 15px 18px;
  color: #4f4b42;
  background: #f6f3e9;
  border-top: 1px solid #b8ae99;
  border-bottom: 1px solid #b8ae99;
}

.director-shrine-note p {
  margin: 0;
}

.director-message-signature {
  position: relative;
  width: max-content;
  min-width: 210px;
  margin: 32px 24px 0 auto;
  padding-right: 60px;
  text-align: right;
}

.director-message-signature p {
  margin: 2px 0;
}

.director-message-signature span {
  position: absolute;
  right: 0;
  bottom: -2px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: rgba(118, 69, 58, 0.78);
  border: 2px solid rgba(118, 69, 58, 0.7);
  border-radius: 50%;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.1;
  transform: rotate(-7deg);
}

@media (max-width: 600px) {
  .newsletter-planning-head {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .newsletter-planning-head span:last-child {
    text-align: left;
  }

  .director-message-head {
    display: block;
  }

  .director-message-head span {
    display: block;
    margin-top: 3px;
  }

  .director-message-body {
    padding: 22px 17px 28px;
    font-size: 15px;
    line-height: 1.9;
  }

  .director-message-body > h2 {
    gap: 10px;
    margin-top: 1.9em;
    font-size: 0.88rem;
  }

  .director-message-signature {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .newspaper-transcript {
    padding: 18px 16px 20px;
  }

  .newspaper-transcript-head {
    display: block;
  }

  .newspaper-transcript-head span {
    display: block;
    margin-top: 3px;
  }

  .newspaper-director-comment {
    margin-right: 0;
    margin-left: 0;
  }
}

.newspaper-document {
  width: min(980px, 100%);
}

.results-report-document {
  width: min(980px, 100%);
  color: #171717;
  background: #ededeb;
  border-color: #626262;
  box-shadow: 7px 8px 0 rgba(17, 20, 24, 0.2);
}

/* 後半資料：取材対応マニュアル */
.manual-document {
  color: #15191d;
  background: #f0f1f1;
  border-color: #596169;
  box-shadow: 6px 7px 0 rgba(25, 31, 36, 0.18);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.manual-document > h1 {
  margin: 20px 0 18px;
  padding: 12px 15px 11px;
  color: #f4f5f5;
  background: #27323a;
  border: 0;
  border-left: 9px solid #11171b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
}

.manual-document .document-meta {
  color: #191d20;
  background: #fafaf8;
  border-color: #747b80;
}

.manual-document .document-meta th,
.manual-document .document-meta td {
  border-color: #8a9094;
}

.manual-document .document-meta th {
  color: #111518;
  background: #d9dde0;
  font-weight: 800;
}

.manual-document .archive-status {
  color: #6d1717;
  background: transparent;
  border: 1px solid #812626;
  font-weight: 800;
}

.manual-document .manual-intro {
  color: #111518;
  background: #e3e6e8;
  border: 1px solid #656c71;
  border-left: 7px solid #28323a;
}

.manual-document .manual-section {
  border-bottom: 1px solid #858b8f;
}

.manual-document .manual-section > h2 {
  padding: 7px 10px 6px;
  color: #f4f5f5;
  background: #39444c;
  border: 0;
  border-left: 6px solid #171e23;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 1.03rem;
  letter-spacing: 0.09em;
}

.manual-document .manual-response-example {
  color: #14181b;
  background: #e4e6e7;
  border: 1px solid #777d81;
  border-left: 6px solid #333c43;
}

.manual-document .manual-response-label {
  color: #222a30;
}

.manual-document .manual-mark {
  color: #65483e;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #9a7468;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.manual-document .document-note {
  color: #282d30;
  background: #dedfdd;
  border-color: #7c7c78;
}

/* 後半資料：通常記事から機密添付へ切り替わるページ */
.homepage-policy-document {
  background: #f2f2ef;
  border-color: #62686c;
  box-shadow: 6px 7px 0 rgba(22, 28, 32, 0.17);
}

.homepage-policy-document > h1 {
  color: #20272c;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  letter-spacing: 0.11em;
}

.homepage-policy-document .document-meta {
  background: #f8f8f5;
  border-color: #747a7e;
}

.homepage-policy-document .document-meta th,
.homepage-policy-document .document-meta td {
  border-color: #969b9e;
}

.homepage-policy-document .document-meta th {
  color: #1b2125;
  background: #dfe2e3;
}

.homepage-policy-news {
  border-color: #777e83;
  box-shadow: 3px 4px 0 rgba(32, 38, 43, 0.15);
}

.homepage-policy-news > header {
  color: #f4f4f1;
  background: #465159;
  border-bottom: 5px solid #b8bdc0;
}

.homepage-policy-news > header p {
  color: #e3e5e6;
}

.homepage-policy-appendix {
  color: #111;
  background: #f8f8f5;
  border: 1px solid #363b3e;
  border-top: 8px solid #202528;
  box-shadow: 6px 7px 0 rgba(15, 18, 20, 0.21);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.homepage-policy-appendix > header {
  color: #f5f5f2;
  background: #2d3337;
  border-bottom: 2px solid #111416;
}

.homepage-policy-appendix > header p {
  color: #c9cdcf;
  font-weight: 700;
}

.homepage-policy-appendix > header h2 {
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
}

.homepage-policy-appendix > header > span {
  color: #f0dede;
  background: transparent;
  border: 2px solid #a85656;
  font-weight: 800;
}

.homepage-policy-block {
  border-bottom-color: #747a7d;
}

.homepage-policy-block h3 {
  padding: 6px 9px;
  color: #f5f5f2;
  background: #3c4347;
  border-left: 6px solid #171b1e;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  letter-spacing: 0.09em;
}

.homepage-policy-procedure li {
  border-top-color: #a4a8aa;
}

.homepage-policy-procedure li:last-child {
  border-bottom-color: #a4a8aa;
}

.homepage-policy-warning {
  color: #1c1515;
  background: #dfd9d6;
  border: 1px solid #746662;
  border-left: 7px solid #4b3431;
}

.homepage-policy-approval {
  background: #e4e5e3;
  border-top: 1px solid #686e71;
}

.homepage-policy-followup {
  color: #161a1d;
  background: #e1e4e5;
  border-color: #656d72;
}

.homepage-policy-followup h2,
.homepage-policy-followup a {
  color: #242d33;
}

.results-report-document > h1 {
  margin: 20px 0 18px;
  padding: 12px 14px 11px;
  color: #f4f4f1;
  background: #202326;
  border: 0;
  border-left: 10px solid #080808;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.duty-roster-document {
  width: min(1080px, 100%);
  padding: 20px;
  color: #090909;
  background: #d9d9d5;
  border: 1px solid #404040;
  box-shadow: 8px 9px 0 rgba(8, 10, 11, 0.26);
}

.minigame-spec-document {
  width: min(1060px, 100%);
  padding: 20px;
  color: #211d1a;
  background: #d8d2c8;
  border: 1px solid #5b5149;
  box-shadow: 8px 9px 0 rgba(42, 29, 24, 0.24);
}

.minigame-spec-document .internal-file-head {
  margin-bottom: 15px;
  color: #2c2521;
  border-bottom-color: #675b53;
}

.minigame-spec-document .document-kicker {
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.minigame-spec-document .search-result-stamp {
  padding: 4px 11px;
  color: #671313;
  background: transparent;
  border: 3px double #671313;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: rotate(-1.5deg);
}

.spec-paper {
  padding: 30px 30px 26px;
  color: #211d1a;
  background:
    linear-gradient(rgba(82, 53, 40, 0.025) 1px, transparent 1px),
    #f2eee5;
  background-size: 100% 27px;
  border: 1px solid #4e443d;
  border-top: 11px solid #40342e;
  box-shadow: 5px 6px 0 rgba(48, 33, 27, 0.16);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.spec-heading {
  display: grid;
  grid-template-columns: 1fr 1.45fr 0.85fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 21px;
  border-bottom: 4px double #181818;
}

.spec-heading p,
.spec-heading h1,
.spec-heading dl,
.spec-heading dt,
.spec-heading dd {
  margin: 0;
}

.spec-heading > div:first-child {
  padding-top: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.75;
}

.spec-title {
  text-align: center;
}

.spec-title span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.spec-title h1 {
  padding: 0;
  color: #2b211d;
  border: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: 0.19em;
}

.spec-title p {
  margin-top: 7px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.spec-heading dl {
  display: grid;
  grid-template-columns: 68px 1fr;
  border-top: 1px solid #222;
  border-left: 1px solid #222;
  font-size: 0.64rem;
}

.spec-heading dt,
.spec-heading dd {
  padding: 5px 6px;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
}

.spec-heading dt {
  background: #d8d8d4;
  font-weight: 700;
}

.spec-section {
  margin-top: 23px;
}

.spec-section > h2 {
  margin: 0 0 13px;
  padding: 8px 11px;
  color: #f4eee5;
  background: #49403a;
  border: 0;
  border-left: 9px solid #742f2b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
}

.spec-section > p {
  margin: 9px 4px;
  font-size: 0.9rem;
  line-height: 1.95;
}

.spec-section .spec-warning {
  margin-top: 15px;
  padding: 10px 12px;
  color: #30201d;
  background: #e5ddd1;
  border: 1px solid #75675d;
  border-left: 7px solid #6f302b;
  font-weight: 800;
}

.spec-redacted-line {
  color: #514943;
  font-size: 0.74rem !important;
  letter-spacing: 0.03em;
}

.document-redaction {
  display: inline-block;
  position: relative;
  height: 1.08em;
  background:
    linear-gradient(177deg, #211d1a 0 45%, #181513 46% 72%, #2d2723 73% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(65, 48, 39, 0.22);
  vertical-align: -0.13em;
  transform: rotate(-0.35deg);
}

.document-redaction::after {
  content: "";
  position: absolute;
  inset: 18% -2px 10% 1px;
  background: rgba(0, 0, 0, 0.28);
  transform: rotate(0.6deg);
}

.document-redaction-short {
  width: 3.3em;
}

.document-redaction-medium {
  width: 7.2em;
}

.document-redaction-long {
  width: 13.5em;
}

.document-redaction-name {
  width: 5.3em;
}

.spec-operation-list {
  display: grid;
  gap: 12px;
}

.spec-operation {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid #756a62;
  box-shadow: inset 4px 0 0 rgba(111, 48, 43, 0.72);
}

.spec-operation header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 15px 9px;
  color: #f5efe7;
  background: #554a43;
}

.spec-operation header span {
  color: #d7c8ba;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.spec-operation h3 {
  margin: 0;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.spec-operation > p {
  margin: 0;
  padding: 15px 17px;
  color: #362523;
  font-size: 0.92rem;
  line-height: 1.9;
}

.spec-operation dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid #a59a91;
}

.spec-operation dl div {
  display: grid;
  grid-template-columns: 7em 1fr;
  min-width: 0;
}

.spec-operation dl div + div {
  border-left: 1px solid #a59a91;
}

.spec-operation dt,
.spec-operation dd {
  margin: 0;
  padding: 9px 11px;
  font-size: 0.8rem;
  line-height: 1.65;
}

.spec-operation dt {
  color: #403834;
  background: rgba(95, 78, 68, 0.09);
  font-weight: 700;
}

.spec-operation dd {
  border-left: 1px solid #c1b8b0;
}

.spec-small-note {
  color: #514943;
  font-size: 0.74rem !important;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 4px 15px;
  border: 1px solid #1f1f1f;
}

.spec-grid section {
  padding: 13px 15px 14px;
  background: rgba(255, 253, 247, 0.7);
}

.spec-grid section + section {
  border-left: 1px solid #1f1f1f;
}

.spec-grid h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #777;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.spec-grid p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.75;
}

.spec-grid .spec-redacted-detail {
  margin-top: 11px;
  padding-top: 8px;
  color: #51443e;
  border-top: 1px dotted #8b7a70;
  font-size: 0.7rem;
}

.spec-grid .spec-grid-alert {
  background: #e2d7cb;
  box-shadow: inset 5px 0 0 rgba(116, 47, 43, 0.64);
}

.spec-record-list {
  margin: 0 4px;
  border-top: 1px solid #303030;
  border-left: 1px solid #303030;
}

.spec-record-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.spec-record-list dt,
.spec-record-list dd {
  margin: 0;
  padding: 8px 10px;
  border-right: 1px solid #303030;
  border-bottom: 1px solid #303030;
  font-size: 0.8rem;
}

.spec-record-list dt {
  background: #dfd7cc;
  font-weight: 700;
}

.spec-auth-rule {
  margin: 22px 4px 0;
  padding: 11px 14px 12px;
  color: #302a28;
  background: #ddd6cb;
  border: 1px solid #81746c;
  border-left: 5px solid #635052;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.spec-auth-rule strong {
  display: inline-block;
  margin-bottom: 5px;
  color: #594447;
  border-bottom: 1px solid #8d7779;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.spec-auth-rule p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.85;
}

.spec-auth-rule p b {
  color: #3e3033;
  font-weight: 700;
}

.spec-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 29px;
  padding-top: 13px;
  border-top: 4px double #191919;
  color: #4b3f38;
  font-size: 0.7rem;
  font-weight: 700;
}

.spec-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .minigame-spec-document {
    padding: 11px;
  }

  .spec-paper {
    padding: 22px 14px 21px;
  }

  .spec-heading {
    grid-template-columns: 1fr;
  }

  .spec-title {
    order: -1;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid section + section {
    border-top: 1px solid #1f1f1f;
    border-left: 0;
  }

  .spec-operation dl {
    grid-template-columns: 1fr;
  }

  .spec-operation dl div {
    grid-template-columns: 6.4em 1fr;
  }

  .spec-operation dl div + div {
    border-top: 1px solid #a59a91;
    border-left: 0;
  }

  .spec-record-list div {
    grid-template-columns: 1fr;
  }

  .spec-record-list dd {
    background: rgba(255, 255, 252, 0.7);
  }

  .spec-footer {
    display: block;
  }

  .spec-footer p + p {
    margin-top: 7px;
  }
}

.shrine-archive-document {
  width: min(1000px, 100%);
  background: #ecece8;
  border-color: #5e6467;
  box-shadow: 6px 7px 0 rgba(25, 29, 31, 0.18);
}

.shrine-archive-document > h1 {
  color: #20272a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  letter-spacing: 0.1em;
}

.shrine-archive-notice {
  margin: 20px 0 14px;
  padding: 9px 12px;
  color: #252b2e;
  background: #e1e3e2;
  border: 1px solid #818789;
  border-left: 6px solid #4a5255;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.shrine-saved-screen {
  color: #332f27;
  background: #f6f2e6;
  border: 1px solid #8b8168;
  box-shadow: 5px 6px 0 rgba(63, 55, 38, 0.16);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.shrine-saved-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 30px 22px;
  color: #f8f4e9;
  background: #34453b;
  border-bottom: 6px solid #9a6f45;
}

.shrine-saved-masthead p,
.shrine-saved-masthead h2,
.shrine-saved-masthead span,
.shrine-saved-masthead small {
  margin: 0;
}

.shrine-saved-masthead p {
  margin-bottom: 5px;
  color: #d9dfd8;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.shrine-saved-masthead h2 {
  padding: 0;
  color: #fffdf5;
  border: 0;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  letter-spacing: 0.18em;
}

.shrine-saved-masthead span {
  display: block;
  margin-top: 6px;
  color: #e4e5dc;
  font-size: 0.77rem;
}

.shrine-saved-masthead small {
  color: #cdd3cc;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 0.67rem;
  white-space: nowrap;
}

.shrine-saved-nav {
  display: flex;
  flex-wrap: wrap;
  background: #e4dcc8;
  border-bottom: 1px solid #9c9072;
}

.shrine-saved-nav span,
.shrine-saved-nav strong {
  padding: 8px 13px;
  border-right: 1px solid #aaa083;
  font-size: 0.72rem;
  font-weight: 400;
}

.shrine-saved-nav strong {
  color: #f6f2e6;
  background: #6b4931;
  font-weight: 700;
}

.shrine-saved-body {
  padding: 24px 28px 30px;
}

.shrine-events-hero {
  margin: 0 0 25px;
  padding: 8px 8px 11px;
  background: #e7e0cf;
  border: 1px solid #988c70;
}

.shrine-events-hero img {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  filter: saturate(0.76) contrast(0.97);
}

.shrine-events-hero figcaption {
  margin-top: 8px;
  color: #5b5548;
  font-size: 0.75rem;
  text-align: center;
}

.shrine-events-intro {
  margin-bottom: 20px;
}

.shrine-history-key {
  color: #795047;
}

.shrine-events-intro h3,
.shrine-events-note h3 {
  margin: 0 0 10px;
  padding: 6px 10px;
  color: #f8f4e9;
  background: #4d5b4f;
  border-left: 6px solid #29352c;
  font-size: 1rem;
  letter-spacing: 0.13em;
}

.shrine-events-intro p,
.shrine-events-note p {
  margin: 7px 2px;
  font-size: 0.86rem;
  line-height: 1.9;
}

.shrine-events-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #8f856d;
  border-left: 1px solid #8f856d;
}

.shrine-events-calendar section {
  min-height: 126px;
  padding: 0 12px 12px;
  background: rgba(255, 253, 245, 0.66);
  border-right: 1px solid #8f856d;
  border-bottom: 1px solid #8f856d;
}

.shrine-events-calendar h4 {
  margin: 0 -12px 9px;
  padding: 6px 10px;
  color: #f7f3e8;
  background: #6d735f;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.shrine-events-calendar dl,
.shrine-events-calendar dt,
.shrine-events-calendar dd {
  margin: 0;
}

.shrine-events-calendar dl {
  display: grid;
  gap: 7px;
}

.shrine-events-calendar dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px;
  align-items: baseline;
  font-size: 0.76rem;
  line-height: 1.55;
}

.shrine-events-calendar dt {
  color: #665f50;
  font-size: 0.69rem;
}

.shrine-events-calendar dd {
  color: #29261f;
}

.shrine-events-note {
  margin-top: 23px;
  padding: 14px 16px 15px;
  background: #e4ddcc;
  border: 1px solid #91866d;
}

.shrine-events-note h3 {
  margin: -14px -16px 11px;
  background: #5a5243;
  border-left: 0;
  font-size: 0.88rem;
}

.shrine-saved-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 17px;
  color: #dddcd3;
  background: #3d433e;
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .shrine-saved-masthead {
    display: block;
    padding: 21px 18px 18px;
  }

  .shrine-saved-masthead small {
    display: block;
    margin-top: 12px;
  }

  .shrine-saved-body {
    padding: 18px 14px 22px;
  }

  .shrine-events-calendar {
    grid-template-columns: 1fr;
  }

  .shrine-saved-footer {
    display: block;
  }

  .shrine-saved-footer span {
    display: block;
    margin: 3px 0;
  }
}

.duty-roster-document .internal-file-head {
  margin-bottom: 15px;
  color: #111;
  border-bottom-color: #3f3f3f;
}

.duty-roster-document .document-kicker {
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.duty-roster-document .search-result-stamp {
  padding: 4px 12px;
  color: #711313;
  background: transparent;
  border: 3px double #751c1c;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  transform: rotate(-2deg);
}

.roster-paper {
  padding: 27px 28px 30px;
  background: #f7f7f3;
  border: 1px solid #262626;
  border-top: 10px solid #17191a;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.18);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.roster-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.95fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 4px double #1b1b1b;
}

.roster-organizations p,
.roster-organizations span,
.roster-title p,
.roster-title h1,
.roster-control,
.roster-control dt,
.roster-control dd {
  margin: 0;
}

.roster-organizations p {
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.7;
}

.roster-organizations span {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  color: #f7f7f3;
  background: #25292b;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.roster-title {
  text-align: center;
}

.roster-title p {
  margin-bottom: 4px;
  color: #464646;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.roster-title h1 {
  color: #080808;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.25em;
}

.roster-control {
  border: 1px solid #515151;
  font-size: 0.66rem;
}

.roster-control div {
  display: grid;
  grid-template-columns: 64px 1fr;
}

.roster-control div + div {
  border-top: 1px solid #8a8a8a;
}

.roster-control dt,
.roster-control dd {
  padding: 5px 7px;
}

.roster-control dt {
  background: #d7d7d3;
  border-right: 1px solid #8a8a8a;
  font-weight: 800;
}

.roster-scope {
  margin: 12px 0 20px;
  color: #3f3f3f;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.roster-period {
  margin-top: 22px;
}

.roster-period h2 {
  margin: 0;
  padding: 6px 10px;
  color: #f5f5f2;
  background: #25292b;
  border: 0;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.roster-table-wrap {
  overflow-x: auto;
  border: 1px solid #303030;
  border-top: 0;
}

.roster-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: #111;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}

.roster-table th,
.roster-table td {
  padding: 6px 7px;
  border-right: 1px solid #858585;
  border-bottom: 1px solid #8e8e8e;
  white-space: nowrap;
}

.roster-table th:last-child,
.roster-table td:last-child {
  border-right: 0;
}

.roster-table tr:last-child td {
  border-bottom: 0;
}

.roster-table th {
  color: #f5f5f2;
  background: #3c4144;
  font-weight: 800;
  text-align: left;
}

.roster-table tbody tr:nth-child(even) {
  background: #e8e8e4;
}

.roster-table td:nth-last-child(-n+3) {
  text-align: center;
}

.roster-omitted {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 9px 13px;
  color: #343434;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  font-size: 0.7rem;
  text-align: center;
}

.roster-omitted strong {
  color: #111;
  font-size: 1rem;
}

.roster-omitted small {
  text-align: left;
}

.roster-current {
  margin-top: 0;
}

.roster-management {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  margin-top: 26px;
  padding: 17px 18px;
  color: #111;
  background: #deded9;
  border: 1px solid #4d4d4d;
}

.roster-management h2 {
  margin: 0 0 9px;
  color: #111;
  border: 0;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.roster-management ul {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.72rem;
  line-height: 1.9;
}

.roster-schedule-note {
  padding-left: 18px;
  border-left: 1px solid #777;
}

.roster-schedule-note p {
  margin: 3px 0;
  font-size: 0.74rem;
  line-height: 1.8;
}

.roster-schedule-note a {
  color: #1e303c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.roster-approval {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  border: 1px solid #3f3f3f;
}

.roster-approval div {
  min-height: 66px;
  padding: 6px;
  text-align: center;
}

.roster-approval div + div {
  border-left: 1px solid #686868;
}

.roster-approval span,
.roster-approval strong {
  display: block;
}

.roster-approval span {
  margin-bottom: 13px;
  color: #444;
  font-size: 0.64rem;
}

.roster-approval strong {
  color: #642020;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

@media (max-width: 760px) {
  .duty-roster-document {
    padding: 12px;
  }

  .roster-paper {
    padding: 20px 13px 22px;
  }

  .roster-head {
    grid-template-columns: 1fr;
  }

  .roster-title {
    text-align: left;
  }

  .roster-management {
    grid-template-columns: 1fr;
  }

  .roster-schedule-note {
    padding-top: 13px;
    padding-left: 0;
    border-top: 1px solid #777;
    border-left: 0;
  }

  .roster-approval {
    grid-template-columns: repeat(2, 1fr);
  }

  .roster-approval div:nth-child(3) {
    border-top: 1px solid #686868;
    border-left: 0;
  }

  .roster-approval div:nth-child(4) {
    border-top: 1px solid #686868;
  }
}

.results-report-document .internal-file-head {
  color: #202020;
  border-bottom-color: #4b4b4b;
}

.results-report-document .document-kicker {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.results-report-document .search-result-stamp {
  padding: 4px 8px;
  color: #6e1717;
  background: transparent;
  border: 2px solid #812020;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-1deg);
}

.results-report-document .document-meta {
  color: #161616;
  background: #f8f8f5;
  border-color: #686868;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

.results-report-document .document-meta th,
.results-report-document .document-meta td {
  border-color: #7a7a7a;
}

.results-report-document .document-meta th {
  color: #111;
  background: #d5d5d1;
  font-weight: 800;
}

.results-report-document .archive-status {
  color: #691717;
  background: transparent;
  border: 1px solid #7c2020;
  font-weight: 800;
}

.report-paper {
  margin-top: 22px;
  padding: 28px 32px 30px;
  color: #111;
  background: #fafaf7;
  border: 1px solid #454545;
  border-top: 8px solid #202326;
  box-shadow: 4px 5px 0 rgba(17, 17, 17, 0.16);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.91rem;
}

.report-title-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 3px double #59616a;
}

.report-title-block p,
.report-title-block h2,
.report-title-block dl,
.report-title-block dt,
.report-title-block dd {
  margin: 0;
}

.report-title-block p {
  margin-bottom: 5px;
  color: #3f3f3f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.report-title-block h2 {
  padding: 0;
  color: #090909;
  border: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.report-title-block dl {
  min-width: 156px;
  border: 1px solid #81888e;
}

.report-title-block dl div {
  display: grid;
  grid-template-columns: 54px 1fr;
}

.report-title-block dl div + div {
  border-top: 1px solid #aeb4b8;
}

.report-title-block dt,
.report-title-block dd {
  padding: 5px 7px;
  font-size: 0.76rem;
}

.report-title-block dt {
  background: #e6e9eb;
  border-right: 1px solid #aeb4b8;
}

.report-section {
  margin-top: 25px;
}

.report-section h3 {
  margin: 0 0 12px;
  padding: 7px 10px 6px;
  color: #f5f5f2;
  background: #303336;
  border: 0;
  border-left: 7px solid #0b0b0b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.report-section p {
  margin: 8px 4px;
  line-height: 1.9;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(310px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.report-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.report-data-table th,
.report-data-table td {
  padding: 8px 10px;
  border: 1px solid #9da4a9;
}

.report-data-table th {
  color: #f5f5f2;
  background: #34383b;
  text-align: left;
}

.report-data-table th:last-child,
.report-data-table td:last-child {
  width: 78px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-chart {
  padding: 12px 14px 10px;
  background: #f2f2ef;
  border: 1px solid #595959;
}

.report-chart > p {
  margin: 0 0 11px;
  padding-bottom: 7px;
  border-bottom: 1px solid #b8bdc1;
  font-weight: bold;
  line-height: 1.5;
}

.report-bars {
  display: grid;
  gap: 9px;
}

.report-bars div {
  display: grid;
  grid-template-columns: 68px minmax(110px, 1fr) 35px;
  gap: 8px;
  align-items: center;
  font-size: 0.76rem;
}

.report-bars i {
  display: block;
  width: var(--bar);
  height: 14px;
  background: #35393c;
  border-right: 3px solid #080808;
}

.report-bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-chart small {
  display: block;
  margin-top: 12px;
  color: #62686d;
  font-size: 0.68rem;
}

.report-correlation-note {
  margin: 13px 0 0 !important;
  padding: 10px 12px;
  color: #111;
  background: #e2e2de;
  border: 1px solid #6b6b6b;
  border-left: 6px solid #252525;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.75 !important;
}

.report-observations {
  margin: 10px 0 0 26px;
  padding: 0;
}

.report-observations li {
  margin: 7px 0;
  line-height: 1.75;
}

.report-key-term {
  font-weight: 800;
}

.report-approval {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border: 1px solid #858c91;
}

.report-approval div {
  min-height: 72px;
  padding: 7px 9px;
  text-align: center;
}

.report-approval div + div {
  border-left: 1px solid #858c91;
}

.report-approval span,
.report-approval strong {
  display: block;
}

.report-approval span {
  margin-bottom: 14px;
  color: #575e63;
  font-size: 0.72rem;
}

.report-approval strong {
  color: #514b46;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
}

@media (max-width: 720px) {
  .report-paper {
    padding: 20px 16px 22px;
  }

  .report-title-block {
    display: block;
  }

  .report-title-block dl {
    width: 100%;
    margin-top: 14px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-approval {
    grid-template-columns: 1fr;
  }

  .report-approval div {
    min-height: 56px;
  }

  .report-approval div + div {
    border-top: 1px solid #858c91;
    border-left: 0;
  }
}

.newspaper-scan {
  margin: 14px 0 0;
}

.newspaper-scan img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c7bda5;
  box-shadow: 4px 5px 0 rgba(76, 61, 36, 0.13);
}

.community-document {
  width: min(920px, 100%);
}

.document-title-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-right: 10px;
  vertical-align: -9px;
}

.community-scan {
  margin: 14px auto 0;
  max-width: 760px;
}

.community-scan img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c7bda5;
  box-shadow: 4px 5px 0 rgba(76, 61, 36, 0.13);
}

.holiday-document {
  width: min(920px, 100%);
}

.closed-notice-figure {
  margin: 14px auto 20px;
}

.closed-notice-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ff9ac8;
  box-shadow: 4px 4px 0 rgba(255, 154, 200, 0.16);
}

.holiday-copy {
  padding: 16px 20px;
  background: #fffdf4;
  border: 1px dashed #ff9ac8;
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.holiday-copy p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
}

.holiday-copy p:last-child {
  margin-bottom: 0;
}

.temizu-guide {
  margin: 14px auto 0;
  max-width: 720px;
}

.temizu-guide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c7bda5;
  box-shadow: 4px 5px 0 rgba(76, 61, 36, 0.13);
}

.shrine-document {
  width: min(980px, 100%);
}

.shrine-archive-note {
  margin: 16px 0 18px;
  padding: 12px 14px;
  background: #fffdf4;
  border: 1px dashed #c87474;
  color: #6f1f1f;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.shrine-screenshot {
  margin: 16px auto 0;
}

.shrine-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c8bda7;
  box-shadow: 4px 5px 0 rgba(76, 61, 36, 0.13);
}

.shrine-page-transcript {
  columns: 2;
  column-gap: 30px;
  margin: 24px 4px 0;
  color: #333;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 1.85;
}

.shrine-page-transcript section {
  break-inside: avoid;
  margin: 0 0 20px;
}

.shrine-page-transcript h3 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px dotted #b9ad96;
  color: #333;
  font-size: 15px;
  font-weight: normal;
}

.shrine-page-transcript p {
  margin: 0 0 3px;
}

.history-note {
  margin-top: 16px;
  padding: 18px 22px;
  background:
    linear-gradient(rgba(255, 252, 238, 0.72), rgba(255, 252, 238, 0.72)),
    url("assets/backgrounds/washi_texture.png") center / cover;
  border: 1px solid #c9b98e;
  box-shadow: 2px 2px 0 rgba(108, 84, 42, 0.12);
}

.history-note p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 700px) {
  .shrine-page-transcript {
    columns: 1;
  }
}

.history-note p:last-child {
  margin-bottom: 0;
}

.research-document {
  width: min(920px, 100%);
  background:
    linear-gradient(rgba(247, 248, 251, 0.97), rgba(247, 248, 251, 0.97)),
    repeating-linear-gradient(0deg, transparent 0, transparent 25px, rgba(70, 82, 120, 0.07) 26px);
}

.archived-public-fragment {
  position: relative;
  margin-top: 22px;
  padding: 22px 20px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("assets/backgrounds/bg_tile_skyblue.png") repeat;
  border: 1px solid #9aa8e8;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.58);
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.archived-public-label {
  position: absolute;
  top: -12px;
  left: 14px;
  margin: 0;
  padding: 2px 8px;
  color: #32406f;
  background: #f5f6fa;
  border: 1px solid #9ea9d6;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
}

.research-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0 18px;
  padding: 16px 18px;
  background: #fff8fd;
  border: 2px dotted #ff9ac8;
  box-shadow: 3px 3px 0 rgba(255, 154, 200, 0.16);
}

.research-hero img {
  display: block;
  width: 132px;
  height: auto;
}

.research-hero p {
  margin: 8px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.research-hero .research-title {
  margin: 0 0 8px;
  color: #e84e93;
  font-size: 28px;
  font-weight: bold;
  text-align: left;
}

.research-flower {
  display: block;
  width: min(560px, 92%);
  height: 34px;
  object-fit: cover;
  object-position: center;
  margin: 14px auto;
}

.scroll-figure {
  margin: 16px auto;
}

.scroll-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b8986d;
  box-shadow: 5px 6px 0 rgba(76, 48, 26, 0.16);
}

.reading-note {
  margin-top: 16px;
  padding: 18px 22px;
  background: #fffdf4;
  border: 1px dashed #c8b26b;
}

.reading-note h3 {
  margin: 0 0 10px;
  color: #1536cc;
  font-size: 19px;
}

.reading-note p {
  margin: 8px 0;
  color: #222;
  font-size: 16px;
  line-height: 1.9;
}

.research-callout {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  background: #f7fff5;
  border: 2px solid #8bd77b;
  box-shadow: 3px 3px 0 rgba(139, 215, 123, 0.18);
}

.research-callout p {
  margin: 8px 0;
  color: #222;
  font-size: 16px;
  line-height: 1.85;
}

.research-callout img {
  display: block;
  width: 92px;
  height: auto;
  justify-self: end;
}

.research-callout strong {
  color: #e84e93;
}

.notice-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
  padding: 18px 20px;
  background: #fffdf4;
  border: 2px solid #ff9ac8;
  box-shadow: 3px 3px 0 rgba(255, 154, 200, 0.18);
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.notice-icon {
  display: block;
  width: 100%;
  height: auto;
}

.notice-card p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.notice-small {
  margin-top: 18px;
  padding: 10px 12px;
  color: #333;
  background: #f6fbff;
  border: 1px dotted #7b85ff;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 15px !important;
}

.hidden-event-page .treasure-hero h1 {
  font-size: 30px;
}

.archived-event-document {
  width: min(930px, 100%);
}

.archived-public-page {
  position: relative;
  margin-top: 18px;
  padding: 16px 12px 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("assets/backgrounds/bg_tile_sky.png") repeat;
  border: 1px solid #b8c0e5;
  box-shadow: inset 0 0 0 1px rgba(255, 156, 204, 0.34);
}

.archived-public-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  color: #32406f;
  background: #eef1fa;
  border: 1px solid #b8c0e5;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
}

.archived-public-page .welcome-stars {
  margin-top: 0;
}

.treasure-guide {
  box-sizing: border-box;
  max-width: 850px;
  margin: 0 auto 16px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ff9ccc;
  box-shadow: 3px 3px 0 rgba(255, 156, 204, 0.14);
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.treasure-guide h2 {
  margin: 0 0 12px;
  color: #0048d8;
  text-align: center;
  font-size: 24px;
}

.treasure-guide-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #9fb0ff;
}

.treasure-guide-table th,
.treasure-guide-table td {
  padding: 10px 12px;
  border: 1px solid #9fb0ff;
  line-height: 1.7;
}

.treasure-guide-table th {
  width: 140px;
  color: #0048d8;
  background: #eef7ff;
  text-align: center;
  white-space: nowrap;
}

.treasure-guide-table td {
  color: #000;
  background: rgba(255, 255, 255, 0.85);
}

.event-cancel-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  box-sizing: border-box;
  max-width: 830px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  background: rgba(255, 253, 244, 0.92);
  border: 2px solid #ff9ccc;
  box-shadow: 3px 3px 0 rgba(255, 156, 204, 0.16);
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.event-cancel-icon {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #9fb0ff;
}

.crowd-notice-head,
.crowd-notice-card,
.crowd-time-box,
.crowd-message-box,
.crowd-flyer-box,
.crowd-transcript-box {
  box-sizing: border-box;
  max-width: 850px;
  margin: 0 auto 16px;
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.yamaakari-document {
  width: min(980px, 100%);
}

.homepage-archive-frame {
  margin-top: 18px;
  padding: 10px;
  background: #edf2ff;
  border: 1px solid #9aa8e8;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68);
}

.homepage-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 6px 8px;
  color: #31417a;
  background: #dfe7ff;
  border: 1px solid #aeb8e4;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 12px;
}

.saved-homepage {
  margin-top: 8px;
  padding: 0;
  background: #fffdf4;
  border: 1px solid #d0b16a;
  box-shadow: 3px 3px 0 rgba(80, 60, 20, 0.12);
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.saved-homepage-header {
  padding: 18px 16px 14px;
  text-align: center;
  background: linear-gradient(#fff7cf, #ffe79c);
  border-bottom: 4px double #d19a37;
}

.saved-homepage-eyebrow {
  margin: 0 0 5px;
  color: #8c5f14;
  font-size: 13px;
}

.saved-homepage-header h2 {
  margin: 0;
  color: #d66b00;
  font-size: 34px;
  letter-spacing: 0;
}

.saved-homepage-header p {
  margin: 8px 0 0;
  color: #7a4a00;
  font-weight: bold;
}

.saved-homepage-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px;
  background: #fff3c7;
  border-bottom: 1px solid #d0b16a;
}

.saved-homepage-nav a {
  color: #0044cc;
  font-size: 14px;
  text-decoration: underline;
}

.saved-homepage-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  padding: 16px;
}

.saved-homepage-section {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dotted #d9a6bd;
}

.saved-homepage-section h3,
.saved-homepage-side h3 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  color: #0059b2;
  border-bottom: 1px dotted #bfc7e8;
  font-size: 20px;
}

.saved-homepage-section p,
.saved-homepage-side p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.85;
}

.saved-homepage-side {
  align-self: start;
  padding: 12px;
  background: #fff8dc;
  border: 2px ridge #e3b95f;
}

.saved-homepage-note {
  color: #8a3d3d;
  font-size: 13px !important;
}

.saved-homepage-photos {
  margin: 0 16px 16px;
}

.source-saved-note {
  margin: 8px 16px 16px;
  padding: 7px 8px;
  color: #666;
  border-top: 1px dashed #b7b7b7;
  font: 12px/1.5 "MS Gothic", "Osaka-Mono", monospace;
}

.yamagami-saved-page {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0 18px 18px;
  color: #243528;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    linear-gradient(rgba(255, 254, 241, 0.94), rgba(247, 250, 229, 0.96));
  border: 1px solid #b7c59b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.yamagami-saved-page::before,
.yamagami-saved-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 100px;
  opacity: 0.13;
  background: #527356;
  clip-path: polygon(0 100%, 30% 38%, 48% 70%, 68% 18%, 100% 100%);
}

.yamagami-saved-page::before {
  top: 90px;
  left: -45px;
}

.yamagami-saved-page::after {
  right: -55px;
  bottom: 42px;
  transform: scaleX(-1);
}

.yamagami-saved-page > * {
  position: relative;
  z-index: 1;
}

.yamagami-saved-header {
  margin: 0 -18px 12px;
  padding: 22px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #dcebd2, #f5f4d7);
  border-bottom: 3px double #82966e;
}

.yamagami-saved-eyebrow {
  margin: 0 0 5px !important;
  color: #5f744f;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 13px !important;
  letter-spacing: 0.18em;
}

.yamagami-saved-header h2 {
  margin: 0;
  color: #304f38;
  font-size: clamp(27px, 5vw, 38px);
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 0 #fff;
}

.yamagami-saved-header > p:last-child {
  margin: 7px 0 0;
  color: #6e6948;
  font-size: 14px;
}

.yamagami-mountain-divider {
  margin: 10px 0 16px;
  color: #78936d;
  text-align: center;
  letter-spacing: 0.8em;
}

.yamagami-mountain-divider::before,
.yamagami-mountain-divider::after {
  content: "";
  display: inline-block;
  width: min(24%, 150px);
  margin: 0 12px 4px;
  border-top: 1px solid #9caf8a;
}

.yamagami-saved-section {
  margin: 14px auto;
  padding: 14px 18px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 5px solid #6e8b64;
  box-shadow: 2px 2px 0 rgba(73, 91, 59, 0.13);
}

.yamagami-saved-section h3 {
  margin: 0 0 9px;
  padding-bottom: 5px;
  color: #365b40;
  border-bottom: 1px dotted #8ca17d;
  font-size: 20px;
}

.yamagami-saved-section p,
.yamagami-old-note p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.9;
}

.yamagami-festival-note {
  border-left-color: #c28a42;
  background: rgba(255, 249, 226, 0.84);
}

.yamagami-festival-note h3 {
  color: #8b5b25;
  border-bottom-color: #c9a570;
}

.yamagami-old-note {
  margin: 18px auto 12px;
  padding: 12px 15px;
  max-width: 680px;
  color: #4c4a3e;
  background: rgba(239, 235, 211, 0.88);
  border: 1px dashed #99906d;
}

.yamagami-old-note strong {
  color: #5c583e;
}

.yamagami-saved-page .source-saved-note {
  margin: 18px 0 0;
  background: rgba(255, 255, 255, 0.48);
}

@media (max-width: 600px) {
  .yamagami-saved-page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .yamagami-saved-header {
    margin-right: -10px;
    margin-left: -10px;
  }

  .yamagami-saved-section {
    padding: 12px;
  }

  .yamagami-mountain-divider::before,
  .yamagami-mountain-divider::after {
    width: 14%;
    margin-right: 6px;
    margin-left: 6px;
  }
}

.festival-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 4px;
}

.festival-photo-grid figure {
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #b8c0e5;
  box-shadow: 3px 3px 0 rgba(65, 75, 110, 0.12);
}

.festival-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #d2d6eb;
}

.festival-photo-grid figcaption {
  margin-top: 6px;
  color: #555;
  font-size: 13px;
  text-align: center;
}

.festival-article h2 {
  margin: 0 0 14px;
  color: #1f2f66;
  font-size: 22px;
  border-bottom: 1px dotted #9ea9d6;
  padding-bottom: 7px;
}

.festival-article p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 780px) {
  .origin-story {
    width: 100%;
  }

  .origin-story-section {
    padding-right: 0;
    padding-left: 0;
  }

  .origin-story-section p {
    font-size: 16px;
  }

  .nigiwai-web-layout {
    grid-template-columns: 1fr;
  }

  .nigiwai-web-related {
    width: 100%;
  }

  figure.document-scan-medium,
  figure.document-scan-small {
    width: 100%;
  }

  .saved-homepage-body {
    grid-template-columns: 1fr;
  }

  .saved-homepage-header h2 {
    font-size: 28px;
  }
}

.crowd-document {
  width: min(920px, 100%);
  background:
    linear-gradient(rgba(247, 248, 251, 0.97), rgba(247, 248, 251, 0.97)),
    repeating-linear-gradient(0deg, transparent 0, transparent 25px, rgba(70, 82, 120, 0.07) 26px);
}

.crowd-archive-fragment {
  padding-top: 26px;
}

.crowd-notice-head {
  padding: 18px 20px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #7b85ff;
  box-shadow: 3px 3px 0 rgba(123, 133, 255, 0.14);
  text-align: center;
}

.crowd-notice-head .search-result-stamp {
  width: fit-content;
  margin: 0 0 12px auto;
}

.archive-meta-table {
  width: min(100%, 650px);
  margin: 0 auto 14px;
  border-collapse: collapse;
  background: #fffdf4;
  font-size: 14px;
  text-align: left;
}

.archive-meta-table th,
.archive-meta-table td {
  padding: 7px 10px;
  border: 1px solid #9fb0ff;
  line-height: 1.5;
}

.archive-meta-table th {
  width: 115px;
  color: #0048d8;
  background: #eef7ff;
  white-space: nowrap;
}

.archive-status {
  color: #d70000;
  font-weight: bold;
}

.notice-ribbon {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 5px 18px;
  color: #0048d8;
  background: #fffdea;
  border: 1px dashed #ff9ccc;
  font-weight: bold;
}

.crowd-notice-head h1 {
  margin: 0 0 12px;
  color: #e94b91;
  font-size: 34px;
  line-height: 1.25;
}

.crowd-notice-head p {
  margin: 0 auto;
  max-width: 690px;
  color: #111;
  font-size: 16px;
  line-height: 1.9;
  text-align: left;
}

.crowd-notice-card {
  padding: 16px 20px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #ff9ccc;
  box-shadow: 3px 3px 0 rgba(255, 156, 204, 0.14);
}

.crowd-notice-card h2,
.crowd-time-box h2 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  color: #0048d8;
  border-bottom: 1px dotted #ff9ccc;
  text-align: center;
  font-size: 24px;
}

.crowd-notice-card p,
.crowd-notice-card li,
.crowd-time-box td,
.crowd-message-box p {
  color: #111;
  font-size: 16px;
  line-height: 1.8;
}

.crowd-notice-card ul {
  margin: 0;
  padding-left: 1.4em;
}

.crowd-notice-card li {
  margin: 6px 0;
}

.crowd-time-box {
  padding: 16px 18px 18px;
  background: rgba(255, 253, 244, 0.94);
  border: 2px solid #7b85ff;
  box-shadow: 3px 3px 0 rgba(123, 133, 255, 0.13);
}

.crowd-time-box table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.crowd-time-box th,
.crowd-time-box td {
  padding: 10px 12px;
  border: 1px solid #9fb0ff;
  vertical-align: top;
}

.crowd-time-box th {
  width: 170px;
  color: #0048d8;
  background: #eef7ff;
  white-space: nowrap;
}

.crowd-message-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #f8fff6;
  border: 2px dotted #60c65e;
}

.crowd-message-box img {
  display: block;
  width: 92px;
  height: auto;
  justify-self: center;
}

.crowd-message-box p {
  margin: 0 0 8px;
}

.crowd-signature {
  margin-top: 12px !important;
  color: #0048d8 !important;
  text-align: right;
  font-weight: bold;
}

.crowd-flyer-box {
  max-width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #9fb0ff;
  box-shadow: 2px 2px 0 rgba(123, 133, 255, 0.12);
}

.crowd-flyer-box img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.crowd-transcript-box {
  max-width: 100%;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #9fb0ff;
  box-shadow: 2px 2px 0 rgba(123, 133, 255, 0.12);
}

.crowd-transcript-box h2 {
  margin: 0 0 8px;
  color: #1f2f66;
  text-align: left;
  font-size: 20px;
  border-bottom: 1px solid #b8c0e5;
  padding-bottom: 6px;
}

.crowd-transcript-note {
  margin: 0 0 14px;
  color: #555;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}

.crowd-transcript-body {
  padding: 16px 18px;
  background: #fffdf4;
  border: 1px dashed #c8b26b;
  text-align: left;
}

.crowd-transcript-body h3 {
  margin: 0 0 8px;
  color: #e94b91;
  text-align: left;
  font-size: 24px;
}

.crowd-subtitle {
  margin: 0 0 14px;
  color: #00815e;
  text-align: left;
  font-weight: bold;
}

.crowd-transcript-body ol {
  max-width: none;
  margin: 0;
  padding-left: 2.1em;
}

.crowd-transcript-body li {
  margin: 7px 0;
  color: #111;
  font-size: 16px;
  line-height: 1.75;
}

.event-cancel-box h2 {
  margin: 0 0 10px;
  padding-bottom: 5px;
  color: #e44a87;
  border-bottom: 1px dotted #ff9ccc;
  font-size: 22px;
}

.event-cancel-box p {
  margin: 8px 0;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.75;
}

.search-shell {
  font-family: "MS PGothic", "Osaka", sans-serif;
}

.search-results {
  margin-top: 18px;
}

.search-result-item {
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid #9aa4ff;
  background: #ffffff;
}

.search-result-hidden {
  border-color: #ff9ac8;
  background: #fffdf4;
}

.search-result-item h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.search-result-item p {
  margin: 6px 0;
}

.search-result-meta {
  color: #666;
  font-size: 13px;
}

.search-result-stamp {
  margin: 8px 0 0;
  color: #c40000;
  font-family: "MS Gothic", "Osaka-Mono", monospace;
  font-size: 14px;
  font-weight: bold;
}

.search-empty {
  padding: 18px;
  border: 1px dashed #b8bce8;
  background: #fff;
  color: #444;
}

.beginner-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 6px auto 14px;
  max-width: 720px;
}

.guide-rabbit {
  width: 230px;
  height: auto;
  border: 1px solid #dedede;
  background: #fff;
}

.beginner-text {
  width: 390px;
  text-align: left;
  font-weight: bold;
}

.beginner-text h1 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 24px;
}

.beginner-text p {
  margin: 6px 0;
}

.guide-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 4px auto 14px;
  text-align: left;
}

.guide-panels article {
  min-height: 144px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #9ddcff;
}

.guide-panels h2 {
  margin: 0 0 5px;
  color: #1536cc;
  font-size: 17px;
  text-align: center;
  border-bottom: 1px dotted #ff9ccc;
}

.guide-panels p {
  margin: 0;
  font-weight: bold;
}

.name-game {
  max-width: 720px;
  margin: 12px auto 18px;
  padding: 12px 16px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #ff9ccc;
}

.name-game h2 {
  margin: 0 0 6px;
  color: #e44a87;
  font-size: 24px;
  letter-spacing: 3px;
}

.name-help {
  margin: 4px 0 10px;
  font-weight: bold;
}

.name-preview {
  display: inline-block;
  min-width: 320px;
  margin: 4px auto 12px;
  padding: 5px 12px;
  color: #1d38cf;
  background: #f7fbff;
  border: 1px dashed #7b85ff;
  font-weight: bold;
}

.name-preview strong {
  color: #e44a87;
  font-size: 20px;
  letter-spacing: 2px;
}

.name-preview strong.is-garbled {
  color: #a40000;
  font-family: "MS Gothic", "Courier New", monospace;
  font-size: 15px;
  letter-spacing: .04em;
}

.kana-board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  max-width: 560px;
  margin: 0 auto 12px;
}

.kana-button {
  position: relative;
  min-width: 0;
  height: 38px;
  padding: 0;
  color: #2b28c6;
  background:
    radial-gradient(circle at 5px 5px, #ff9ccc 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 5px) 5px, #ffd55a 0 2px, transparent 3px),
    radial-gradient(circle at 5px calc(100% - 5px), #79d85b 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #72c7ff 0 2px, transparent 3px),
    #fff7fd;
  border: 2px dotted #ff85bd;
  box-shadow: 1px 1px 0 #b9b9ff;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.kana-button:hover,
.kana-button:focus {
  background:
    radial-gradient(circle at 5px 5px, #ff78b9 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 5px) 5px, #ffcf33 0 2px, transparent 3px),
    radial-gradient(circle at 5px calc(100% - 5px), #69cf4d 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #5dbdff 0 2px, transparent 3px),
    #fff3a8;
  outline: 1px solid #ff4fab;
}

.kana-modifier-button {
  color: #e44a87;
  background:
    radial-gradient(circle at 5px 5px, #ffd55a 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 5px) 5px, #72c7ff 0 2px, transparent 3px),
    radial-gradient(circle at 5px calc(100% - 5px), #ff9ccc 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #79d85b 0 2px, transparent 3px),
    #fff9c9;
  border-style: solid;
}

.name-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 12px;
}

.retro-button {
  padding: 5px 14px;
  color: #1536cc;
  background: #fff;
  border: 2px outset #ffb8dc;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.retro-button.primary {
  color: #fff;
  background: #e44a87;
  border-color: #ffcfeb;
}

.retro-button:active {
  border-style: inset;
}

body.is-badend-pending::after {
  content: "";
  position: fixed;
  z-index: 3000;
  inset: 0;
  pointer-events: none;
  background: #fff;
  animation: badEndPageFade 3s ease forwards;
}

@keyframes badEndPageFade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.badend-body {
  min-height: 100vh;
  padding-top: 0;
  background: #dff8ff url("assets/backgrounds/bg_tile_skyblue.png") repeat;
  overflow-x: hidden;
}

.badend-sequence {
  position: relative;
  min-height: 100vh;
  background: #dff8ff url("assets/backgrounds/bg_tile_skyblue.png") repeat;
  transition: opacity 1.2s ease;
}

.badend-sequence.is-fading {
  opacity: 0;
}

.badend-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.badend-panel[hidden] {
  display: none;
}

.badend-complete {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #dff8ff url("assets/backgrounds/bg_tile_skyblue.png") repeat;
}

.badend-complete-card {
  position: relative;
  width: min(100vw, 1500px);
  margin: auto;
  overflow: visible;
  background: transparent;
}

.badend-complete-card img {
  display: block;
  width: 100%;
  max-height: 100vh;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

.badend-sparkles {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.badend-sparkles span {
  position: absolute;
  color: #fffbd1;
  font-size: var(--sparkle-size);
  line-height: 1;
  opacity: 0.08;
  transform: translate(-50%, -50%) scale(0.45) rotate(-8deg);
  text-shadow:
    0 0 4px #fff,
    0 0 10px rgba(255, 238, 104, 0.95),
    0 0 18px rgba(255, 170, 221, 0.58);
  animation: badendSparkleTwinkle 1.85s ease-in-out var(--sparkle-delay) infinite;
}

@keyframes badendSparkleTwinkle {
  0%, 68%, 100% {
    opacity: 0.06;
    transform: translate(-50%, -50%) scale(0.42) rotate(-8deg);
  }

  77% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18) rotate(6deg);
  }

  86% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.72) rotate(1deg);
  }
}

.badend-walk video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badend-cute-message {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(58%, 650px);
  padding: 18px 28px 20px;
  color: #31557c;
  text-align: center;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Meiryo", "MS PGothic", sans-serif;
  font-size: clamp(17px, 2vw, 27px);
  font-weight: bold;
  line-height: 1.5;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #79bde3;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.7),
    5px 6px 0 rgba(68, 147, 191, 0.16);
}

.badend-cute-message p {
  margin: 0.18em 0;
}

.badend-cute-message .badend-player-name {
  margin-bottom: 0.55em;
  color: #e94593;
  font-size: 0.9em;
}

.badend-processing,
.badend-recorded {
  animation: badendRecordAppear 0.9s ease both;
}

.badend-processing[hidden],
.badend-recorded[hidden] {
  display: none;
}

.badend-loading-dots {
  display: inline-block;
  width: 2.4em;
  overflow: hidden;
  vertical-align: bottom;
  animation: badendLoadingDots 1.2s steps(4, end) infinite;
}

.badend-recorded p {
  font-size: 0.86em;
}

.badend-recorded p:first-child {
  margin-bottom: 0.55em;
  color: #e94593;
}

.badend-recorded .badend-next-date {
  margin-top: 0.75em;
  color: #7d6d70;
  font-size: 0.68em;
  letter-spacing: 0.12em;
  text-shadow: none;
}

@keyframes badendRecordAppear {
  from {
    opacity: 0;
    filter: blur(2px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes badendLoadingDots {
  from {
    width: 0;
  }

  to {
    width: 2.4em;
  }
}

.badend-walk {
  display: grid;
  place-items: center;
}

.badend-walk::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: 0;
}

.badend-walk.is-ending::before {
  animation: badendWalkBlackout 2.2s ease forwards;
}

.badend-walk::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.18);
}

@keyframes badendWalkBlackout {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.badend-walk-message {
  position: relative;
  z-index: 1;
  max-width: min(72vw, 470px);
  color: #b8b8b8;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(13px, 1.55vw, 19px);
  font-weight: bold;
  text-align: center;
  line-height: 1.8;
  text-shadow:
    0 2px 0 #000,
    0 0 10px #000,
    0 0 22px #000;
  opacity: 0;
  animation: badendThoughtFade 8.5s ease 3.5s forwards;
}

.badend-noise-line {
  position: relative;
  display: block;
  animation: badendTextJitter 2.8s steps(1, end) 4.2s 3;
}

.badend-noise-line::before,
.badend-noise-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.badend-noise-line::before {
  color: rgba(183, 225, 255, 0.62);
  text-shadow: -2px 0 rgba(255, 255, 255, 0.32);
  animation: badendNoiseSliceBefore 2.8s steps(1, end) 4.2s 3;
}

.badend-noise-line::after {
  color: rgba(224, 205, 211, 0.48);
  text-shadow: 2px 0 rgba(255, 255, 255, 0.2);
  animation: badendNoiseSliceAfter 2.8s steps(1, end) 4.2s 3;
}

@keyframes badendTextJitter {
  0%, 67%, 79%, 100% {
    transform: translate(0, 0);
    filter: none;
  }

  69% {
    transform: translate(-2px, 1px);
    filter: blur(0.4px);
  }

  72% {
    transform: translate(3px, -1px);
  }

  75% {
    transform: translate(-1px, 0);
    filter: blur(0.2px);
  }
}

@keyframes badendNoiseSliceBefore {
  0%, 67%, 79%, 100% {
    opacity: 0;
    transform: translateX(0);
  }

  69% {
    opacity: 0.72;
    transform: translateX(-6px);
    clip-path: inset(8% 0 62% 0);
  }

  72% {
    opacity: 0.58;
    transform: translateX(5px);
    clip-path: inset(48% 0 22% 0);
  }

  75% {
    opacity: 0.45;
    transform: translateX(-3px);
    clip-path: inset(73% 0 5% 0);
  }
}

@keyframes badendNoiseSliceAfter {
  0%, 68%, 80%, 100% {
    opacity: 0;
    transform: translateX(0);
  }

  70% {
    opacity: 0.52;
    transform: translateX(6px);
    clip-path: inset(65% 0 8% 0);
  }

  73% {
    opacity: 0.68;
    transform: translateX(-4px);
    clip-path: inset(27% 0 47% 0);
  }

  77% {
    opacity: 0.4;
    transform: translateX(3px);
    clip-path: inset(4% 0 72% 0);
  }
}

@keyframes badendThoughtFade {
  0% {
    opacity: 0;
    filter: blur(2px);
  }

  65% {
    opacity: 0.58;
    filter: blur(0.3px);
  }

  100% {
    opacity: 0.72;
    filter: blur(0);
  }
}

.badend-final {
  display: grid;
  place-items: center;
  color: #d8d8d8;
  background: #000;
}

.badend-final::before,
.badend-final::after {
  display: none;
}

.badend-final::before {
  left: clamp(26px, 8vw, 150px);
  top: 34%;
  background-image: url("assets/access/animal_rabbit.png");
  transform: rotate(-5deg);
}

.badend-final::after {
  right: clamp(26px, 8vw, 150px);
  top: 37%;
  background-image: url("assets/access/animal_seal.png");
  transform: rotate(5deg);
}

.badend-final-content::before,
.badend-final-content::after {
  display: none;
}

.badend-final-content::after {
  margin: 22px auto 0;
}

.badend-final-content {
  position: relative;
  z-index: 1;
  width: min(86vw, 820px);
  padding: 24px 24px 32px;
  text-align: center;
  background: transparent;
  border: 0;
}

.badend-final-logo {
  display: block;
  width: min(68vw, 520px);
  margin: 0 auto 18px;
}

.badend-label {
  display: block;
  margin: 0 0 14px;
  color: #777;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.34em;
  text-shadow: none;
}

.badend-final-content .badend-ending-title {
  margin: 0 0 64px;
  color: #d8d8d8;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: normal;
  letter-spacing: 0.34em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.badend-final-content p {
  margin: 0 0 26px;
  color: #e94593;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: bold;
  line-height: 1.45;
  text-shadow:
    2px 2px 0 #fff,
    0 0 8px rgba(255, 255, 255, 0.9);
}

.badend-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.badend-actions .retro-button {
  min-width: 150px;
  padding: 8px 18px;
  color: #bdbdbd;
  background: #090909;
  border-color: #5f5f5f;
  font-size: 16px;
}

.badend-actions .retro-button:visited {
  color: #bdbdbd;
}

.badend-footer {
  margin: 0;
  padding: 10px 64px 14px;
  color: #777;
  background: #000;
  font-size: 12px;
}

.paper-wrap {
  margin-top: 12px;
}

.paper-caption,
.done-message {
  margin: 5px 0;
  color: #e44a87;
  font-weight: bold;
}

.washi-paper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(88%, 430px);
  min-height: 120px;
  margin: 0 auto;
  padding: 18px;
  color: #ff1010;
  background:
    linear-gradient(rgba(255, 248, 225, 0.18), rgba(255, 248, 225, 0.18)),
    url("assets/backgrounds/washi_texture.png") center / cover;
  border: 4px double #cfa86c;
  box-shadow: 3px 3px 0 rgba(120, 84, 30, 0.18);
  font-family: "TachibanaFont", "Yomogi", "Klee One", "Hannotate SC", "Comic Sans MS", cursive;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 6px;
  text-shadow:
    1px 0 0 rgba(255, 16, 16, 0.55),
    0 1px 0 rgba(255, 80, 80, 0.35),
    -1px 0 0 rgba(255, 70, 70, 0.22);
}

.washi-paper::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(170, 120, 60, 0.35);
  pointer-events: none;
}

.map-page {
  width: 1220px;
}

.map-page ruby {
  ruby-position: over;
}

.map-page rt {
  color: #5061c9;
  font-size: 9px;
  font-weight: normal;
  line-height: 1;
}

.map-layout {
  grid-template-columns: 220px 1fr;
}

.map-intro {
  max-width: 900px;
  margin: 0 auto 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px dotted #9ddcff;
}

.map-intro h1 {
  margin: 0 0 4px;
  color: #e44a87;
  font-size: 26px;
  letter-spacing: 2px;
}

.map-intro p {
  margin: 0;
  font-weight: bold;
}

.map-intro .map-intro-link {
  margin-top: 6px;
  color: #e44a87;
}

.map-intro .map-intro-link a {
  padding: 1px 6px;
  background: #fff3fb;
  border: 1px solid #ff9ccc;
  font-weight: bold;
}

.park-map-game {
  max-width: 940px;
  margin: 0 auto 18px;
}

.map-scroll {
  overflow-x: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #7b85ff;
}

.park-map {
  position: relative;
  width: 920px;
  margin: 0 auto;
}

.park-map-bg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #a7d99b;
}

.map-static-label {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  padding: 4px 12px;
  color: #1536cc;
  background: #fff;
  border: 2px solid #ff9ccc;
  border-radius: 0;
  font-weight: bold;
  line-height: 1.4;
  box-shadow: 2px 2px 0 rgba(255, 156, 204, 0.24);
  pointer-events: none;
  white-space: nowrap;
}

.map-static-label::after {
  content: none;
}

.pool-label {
  --x: 42%;
  --y: 70%;
}

.route-complete-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  display: none;
  padding: 7px 18px;
  color: #ff2f8f;
  background: rgba(255, 255, 255, 0.92);
  border: 3px double #ff78be;
  box-shadow: 3px 3px 0 #ffe36e;
  font-size: 46px;
  font-weight: bold;
  line-height: 1.2;
  transform: translate(-50%, -50%);
}

.route-complete-stamp.is-visible {
  display: block;
  animation: stampPop 420ms ease both;
}

.route-sparkles {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  pointer-events: none;
}

.route-sparkles.is-visible {
  display: block;
}

.route-sparkles span {
  position: absolute;
  color: #ff4fa3;
  font-size: 24px;
  text-shadow:
    1px 1px 0 #fff,
    0 0 6px #fff36b;
  animation: sparklePop 900ms ease-in-out infinite alternate;
}

.route-sparkles span:nth-child(1) {
  left: 18%;
  top: 24%;
}

.route-sparkles span:nth-child(2) {
  left: 37%;
  top: 72%;
  animation-delay: 120ms;
}

.route-sparkles span:nth-child(3) {
  left: 56%;
  top: 28%;
  animation-delay: 240ms;
}

.route-sparkles span:nth-child(4) {
  left: 78%;
  top: 60%;
  animation-delay: 360ms;
}

.route-sparkles span:nth-child(5) {
  left: 88%;
  top: 80%;
  animation-delay: 480ms;
}

.route-error-overlay {
  position: fixed;
  inset: 0;
  z-index: 1590;
  background: rgba(10, 10, 10, .34);
  backdrop-filter: blur(1.5px);
}

.route-error-overlay[hidden] {
  display: none;
}

.route-error-window {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1600;
  width: min(90vw, 390px);
  overflow: hidden;
  padding: 0 0 18px;
  color: #202020;
  background: rgba(250, 250, 250, .98);
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: 10px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .34),
    0 3px 10px rgba(0, 0, 0, .14);
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  text-align: center;
  transform: translate(-50%, -50%);
}

.route-error-window[hidden] {
  display: none;
}

.route-error-title {
  min-height: 42px;
  padding: 0 16px;
  color: #252525;
  background: #f5f5f5;
  border-bottom: 1px solid #e2e2e2;
  font-size: 13px;
  font-weight: 600;
  line-height: 42px;
  text-align: left;
}

.route-error-body {
  position: relative;
  min-height: 78px;
  padding: 27px 22px 18px 76px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.route-error-body::before {
  content: "!";
  position: absolute;
  top: 22px;
  left: 25px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #c42b1c;
  font: 700 23px/1 "Segoe UI", sans-serif;
}

.route-error-close {
  min-width: 88px;
  padding: 7px 18px;
  color: #1f1f1f;
  background: #fbfbfb;
  border: 1px solid #b8b8b8;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  font-weight: 400;
  cursor: pointer;
}

.route-error-close:hover,
.route-error-close:focus {
  border-color: #888;
  background: #f1f1f1;
}

.route-error-close:disabled {
  color: #8a8a8a;
  border-color: #d2d2d2;
  background: #ededed;
  cursor: default;
}

.map-facility.is-complete-star::before {
  position: absolute;
  z-index: 6;
  color: #ff4fa3;
  font-size: 24px;
  line-height: 1;
  text-shadow:
    1px 1px 0 #fff,
    -1px -1px 0 #fff,
    0 0 6px #fff36b;
  pointer-events: none;
}

.map-facility.is-complete-star::before {
  content: "★";
  left: -10px;
  top: -9px;
  animation: facilityStarBlink 680ms ease-in-out infinite alternate;
}

.map-facility.is-complete-star img {
  animation: facilityCompleteGlow 760ms ease-in-out infinite alternate;
}

@keyframes stampPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes sparklePop {
  from {
    opacity: 0.45;
    transform: scale(0.85) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
}

@keyframes facilityStarBlink {
  from {
    opacity: 0.35;
    transform: scale(0.82) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1.22) rotate(9deg);
  }
}

@keyframes facilityCompleteGlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.map-facility {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--w) * 0.85);
  padding: 0;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  line-height: 0;
  z-index: 3;
}

.map-facility img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 3px 1px rgba(50, 90, 50, 0.22));
}

.map-facility::after {
  content: "★ " attr(data-label) " ★";
  position: absolute;
  left: 50%;
  top: -8px;
  padding: 3px 8px;
  color: #1536cc;
  background: #fff;
  border: 2px solid #ff9ccc;
  box-shadow: 2px 2px 0 #cfe8ff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
}

.map-facility:hover img,
.map-facility:focus img {
  filter:
    drop-shadow(0 0 0 #fff15a)
    drop-shadow(0 0 5px #fff15a)
    drop-shadow(2px 3px 1px rgba(50, 90, 50, 0.22));
}

.map-facility:hover,
.map-facility:focus,
.map-facility.show-label {
  z-index: 5;
}

.map-facility:hover::after,
.map-facility:focus::after,
.map-facility.show-label::after {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.map-facility.is-selected img {
  filter:
    drop-shadow(0 0 0 #ffec2f)
    drop-shadow(0 0 7px #ffec2f)
    drop-shadow(0 0 12px #ff9f1a)
    drop-shadow(2px 3px 1px rgba(50, 90, 50, 0.22));
}

.map-facility:disabled {
  cursor: default;
}

.map-facility:disabled:not(.is-selected) {
  opacity: 0.78;
}

.route-game-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

.route-hints,
.route-status {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid #ff9ccc;
}

.route-status {
  position: relative;
}

.route-hints h2,
.route-status h2 {
  margin: 0;
  padding: 3px 8px;
  color: #1536cc;
  background: #f7fbff;
  border-bottom: 1px solid #ff9ccc;
  text-align: center;
  font-size: 18px;
}

.route-hints ol,
.selected-route {
  margin: 8px 14px 10px 32px;
  padding: 0;
}

.route-hints li {
  margin: 3px 0;
}

.route-hints strong {
  color: #e44a87;
}

.route-hints span {
  display: block;
  margin-left: 4px;
  font-weight: bold;
}

.selected-route {
  min-height: 210px;
  color: #1536cc;
  font-weight: bold;
}

.selected-route li {
  margin: 2px 0;
}

.route-message {
  min-height: 48px;
  margin: 8px 12px;
  padding: 7px 9px;
  color: #e44a87;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
  font-weight: bold;
  text-align: center;
  line-height: 1.8;
}

.route-message.is-error {
  color: #d40000;
  background: #fff0f0;
  border-color: #d40000;
}

.route-message.is-done {
  color: #1f7c2d;
  background: #f1fff2;
  border-color: #78c66c;
}

.route-message.is-garbled {
  color: #b40000;
  background: #fff9c9;
  border-color: #ff9ccc;
  font-family: "MS Gothic", "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 1px;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 10px 12px;
}

.attractions-page {
  width: 1180px;
}

.attractions-page ruby {
  ruby-position: over;
}

.attractions-page rt {
  color: #5061c9;
  font-size: 9px;
  font-weight: normal;
}

.attractions-layout {
  grid-template-columns: 250px 1fr;
}

.attractions-intro {
  max-width: 850px;
  margin: 0 auto 14px;
  padding: 12px 18px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #7892ff;
  text-align: center;
}

.attractions-intro h1 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 28px;
  letter-spacing: 0;
}

.attractions-intro p {
  margin: 0;
  color: #000;
  line-height: 1.8;
}

.facility-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 850px;
  margin: 0 auto 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed #ff9ccc;
}

.facility-tabs button {
  min-width: 132px;
  padding: 5px 10px;
  color: #1536cc;
  background: #fff8ff;
  border: 2px outset #ffd1e4;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.facility-tabs button[aria-selected="true"] {
  color: #fff;
  background: #e44a87;
  border-style: inset;
}

.facility-panel {
  max-width: 880px;
  margin: 0 auto 20px;
}

.facility-panel h2 {
  margin: 0;
  padding: 7px 10px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #7892ff;
  border-bottom: 0;
  font-size: 22px;
  text-align: center;
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid #7892ff;
}

.facility-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #ff9ccc;
}

.facility-photo-wrap {
  position: relative;
  align-self: start;
  background: #fff;
  border: 1px solid #9fb0ff;
}

.facility-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facility-icon {
  flex: 0 0 auto;
  width: 58px;
  max-height: 58px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.facility-text h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  padding-bottom: 3px;
  color: #e44a87;
  border-bottom: 1px dotted #ff9ccc;
  font-size: 22px;
  line-height: 1.45;
}

.facility-point {
  margin: 0 0 9px;
  padding: 7px 9px;
  color: #1536cc;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
  font-weight: bold;
  line-height: 1.65;
}

.reverse-clue-letter {
  color: #d0003f;
  font-weight: 900;
}

.facility-text p {
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 1.75;
}

.pool-page {
  width: 1180px;
}

.pool-layout {
  grid-template-columns: 250px 1fr;
}

.pool-page ruby {
  ruby-position: over;
}

.pool-page rt {
  color: #5061c9;
  font-size: 9px;
  font-weight: normal;
}

.pool-hero {
  max-width: 850px;
  margin: 0 auto 14px;
  padding: 12px 18px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid #7b85ff;
  text-align: center;
}

.pool-hero h1 {
  margin: 0 0 10px;
  color: #e44a87;
  font-size: 32px;
  letter-spacing: 2px;
}

.pool-hero img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border: 1px solid #9fb0ff;
  background: #fff;
}

.pool-hero p {
  margin: 10px 6px 0;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.8;
  text-align: left;
}

.pool-hero .pool-season-notice {
  margin: 12px auto 0;
  padding: 8px 12px;
  color: #1536cc;
  background: #fff9c9;
  border: 2px dotted #ff9ccc;
  box-shadow: 2px 2px 0 #cfe8ff;
  text-align: center;
}

.pool-season-notice[hidden] {
  display: none;
}

.pool-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 850px;
  margin: 0 auto 32px;
  text-align: left;
}

.pool-info article {
  min-height: 132px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #9ddcff;
}

.pool-info h2 {
  margin: 0 0 6px;
  color: #1536cc;
  font-size: 17px;
  text-align: center;
  border-bottom: 1px dotted #ff9ccc;
}

.pool-info p {
  margin: 0;
  font-weight: bold;
}

.pool-mini-game {
  max-width: 850px;
  margin: 0 auto 22px;
}

.pool-star-frame {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("assets/pool/starry_frame.png") center / cover;
  border: 2px solid #7b85ff;
  box-shadow: 3px 3px 0 rgba(75, 75, 170, 0.16);
}

.pool-wish-box {
  position: relative;
  z-index: 2;
  width: min(72%, 520px);
  margin: 54px auto 0;
  padding: 12px 18px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px dotted #ff9ccc;
  text-align: center;
}

.pool-wish-box h2 {
  margin: 0 0 6px;
  color: #e44a87;
  font-size: 24px;
  letter-spacing: 3px;
}

.pool-wish-box p {
  margin: 7px 0;
  font-weight: bold;
}

.pool-wish-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 8px;
}

.pool-wish-actions[hidden] {
  display: none;
}

.pool-wish-message {
  color: #1536cc;
}

.pool-wish-message.is-done {
  color: #1f7c2d;
}

.pool-shooting-star {
  position: absolute;
  z-index: 1;
  width: 210px;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
}

.pool-shooting-star.star-one {
  left: -260px;
  top: var(--star-y, 26px);
  width: var(--star-size, 210px);
  animation: none;
}

.pool-shooting-star.is-flying {
  animation: poolStarFly var(--star-duration, 8.8s) linear 1;
}

.pool-shooting-star.star-two {
  display: none;
}

.pool-blackout {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  overflow: hidden;
}

.pool-blackout[hidden] {
  display: none;
}

.pool-blackout::before,
.pool-blackout::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 50vh;
  background: #000;
  z-index: 0;
}

.pool-blackout::before {
  top: 0;
  animation: poolEyeCloseTop 620ms ease-in forwards;
}

.pool-blackout::after {
  bottom: 0;
  animation: poolEyeCloseBottom 620ms ease-in forwards;
}

.pool-blackout.is-opening::before {
  animation: poolEyeOpenTop 560ms ease-out forwards;
}

.pool-blackout.is-opening::after {
  animation: poolEyeOpenBottom 560ms ease-out forwards;
}

.pool-count {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 54px;
  font-weight: bold;
  text-shadow: 0 0 12px #9ddcff;
  opacity: 0;
}

.pool-blackout.is-counting .pool-count {
  animation: poolCountAppear 260ms ease both;
}

.events-page {
  width: 1180px;
}

.events-layout {
  grid-template-columns: 250px 1fr;
}

.events-page ruby {
  ruby-position: over;
}

.events-page rt {
  color: #5061c9;
  font-size: 9px;
  font-weight: normal;
}

.events-hero {
  max-width: 850px;
  margin: 0 auto 16px;
  padding: 12px 18px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid #7b85ff;
  text-align: center;
}

.events-hero h1 {
  margin: 0 0 10px;
  color: #e44a87;
  font-size: 32px;
  letter-spacing: 2px;
}

.events-hero img {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  border: 1px solid #9fb0ff;
  background: #fff;
}

.events-hero p {
  margin: 10px 6px 0;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.8;
  text-align: left;
}

.events-list {
  display: grid;
  gap: 14px;
  max-width: 850px;
  margin: 0 auto 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid #ff9ccc;
  box-shadow: 3px 3px 0 rgba(255, 156, 204, 0.16);
}

.event-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid #9fb0ff;
}

.event-card-text h2 {
  margin: 0 0 7px;
  padding-bottom: 4px;
  color: #1536cc;
  border-bottom: 1px dotted #ff9ccc;
  font-size: 22px;
  line-height: 1.45;
}

.event-card-text p {
  margin: 0;
  color: #000;
  font-weight: bold;
  line-height: 1.75;
}

.event-card-text .event-time {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  color: #e44a87;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
}

.events-note {
  max-width: 830px;
  margin: 0 auto 22px;
  padding: 8px 10px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dotted #7892ff;
  font-weight: bold;
  text-align: center;
}

.restaurants-page {
  width: 1180px;
}

.restaurants-layout {
  grid-template-columns: 250px 1fr;
}

.restaurants-page ruby {
  ruby-position: over;
}

.restaurants-page rt {
  color: #5061c9;
  font-size: 9px;
  font-weight: normal;
}

.restaurants-intro {
  max-width: 850px;
  margin: 0 auto 14px;
  padding: 12px 18px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #7b85ff;
  text-align: center;
}

.restaurants-intro h1 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 30px;
}

.restaurants-intro p {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.8;
}

.restaurant-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 850px;
  margin: 0 auto 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed #ff9ccc;
}

.restaurant-tabs button {
  min-width: 150px;
  padding: 5px 10px;
  color: #1536cc;
  background: #fff8ff;
  border: 2px outset #ffd1e4;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.restaurant-tabs button[aria-selected="true"] {
  color: #fff;
  background: #e44a87;
  border-style: inset;
}

.restaurant-panel {
  max-width: 880px;
  margin: 0 auto 18px;
}

.restaurant-panel h2 {
  margin: 0;
  padding: 7px 10px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #7892ff;
  border-bottom: 0;
  font-size: 23px;
  text-align: center;
}

.restaurant-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #7892ff;
}

.restaurant-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid #9fb0ff;
}

.restaurant-text p {
  margin: 0 0 9px;
  color: #000;
  font-weight: bold;
  line-height: 1.75;
}

.menu-highlight {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
}

.menu-highlight img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid #9fb0ff;
}

.menu-highlight h3 {
  margin: 0 0 5px;
  color: #e44a87;
  font-size: 19px;
}

.menu-highlight p {
  margin: 0;
  color: #000;
}

.shop-page {
  width: 1180px;
}

.shop-layout {
  grid-template-columns: 250px 1fr;
}

.shop-page ruby {
  ruby-position: over;
}

.shop-page rt {
  color: #5061c9;
  font-size: 9px;
  font-weight: normal;
}

.shop-intro {
  max-width: 850px;
  margin: 0 auto 14px;
  padding: 12px 18px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #7b85ff;
  text-align: center;
}

.shop-intro h1 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 30px;
}

.shop-intro p {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.8;
}

.shop-store-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 16px;
}

.shop-store-guide article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed #ff9ccc;
}

.shop-store-guide img {
  width: 92px;
  height: 78px;
  object-fit: contain;
}

.shop-store-guide h2 {
  margin: 0 0 5px;
  color: #1536cc;
  font-size: 19px;
}

.shop-store-guide p {
  margin: 0;
  color: #000;
  font-weight: bold;
  line-height: 1.55;
}

.shop-ranking {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto 24px;
}

.shop-item {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #7892ff;
  box-shadow: 2px 2px 0 rgba(120, 146, 255, 0.18);
}

.shop-rank {
  position: absolute;
  top: -9px;
  left: -9px;
  z-index: 2;
  width: 48px;
  height: 48px;
  color: #fff;
  background: #e44a87;
  border: 3px double #fff27a;
  border-radius: 50%;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
  font-size: 26px;
  font-weight: bold;
  line-height: 48px;
  text-align: center;
}

.shop-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid #9fb0ff;
  filter: saturate(0.86) contrast(0.9) brightness(1.04);
}

.shop-item-text h2 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 24px;
}

.shop-item-text p {
  margin: 0 0 10px;
  color: #000;
  font-weight: bold;
  line-height: 1.75;
}

.shop-place {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
}

.shop-place span {
  color: #1536cc;
}

.shop-place img {
  width: 44px;
  height: 38px;
  object-fit: contain;
}

.access-page {
  width: 1180px;
}

.access-layout {
  grid-template-columns: 220px 1fr;
}

.access-page ruby {
  ruby-position: over;
}

.access-page rt {
  color: #5061c9;
  font-size: 9px;
}

.access-intro,
.access-map-panel,
.access-info-grid,
.access-note,
.circle-game {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.access-intro {
  margin-bottom: 12px;
  text-align: center;
}

.access-intro h1 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 30px;
}

.access-intro p {
  margin: 0;
  color: #000;
  font-weight: normal;
  line-height: 1.8;
}

.access-map-panel {
  margin-bottom: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #7892ff;
}

.access-map-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c8d4ff;
  filter: saturate(0.94) contrast(0.94) brightness(1.02);
}

.access-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.access-info-grid article {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed #ff9ccc;
  text-align: left;
}

.access-info-grid h2 {
  margin: 0 0 6px;
  color: #1536cc;
  font-size: 18px;
}

.access-info-grid p {
  margin: 0;
  color: #000;
  font-weight: normal;
  line-height: 1.65;
}

.access-note {
  margin-bottom: 18px;
  padding: 8px 10px;
  color: #8a2451;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
  font-weight: bold;
  text-align: center;
}

.faq-layout {
  align-items: flex-start;
  grid-template-columns: 220px 1fr;
}

.faq-hero,
.faq-list {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-hero {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px ridge #9fb0ff;
}

.faq-hero img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.faq-hero h1 {
  margin: 0 0 8px;
  color: #e44a87;
  font-size: 30px;
}

.faq-hero p {
  margin: 0;
  line-height: 1.75;
}

.faq-list {
  margin-bottom: 24px;
}

.faq-list article {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed #ff9ccc;
}

.faq-list h2 {
  margin: 0 0 6px;
  color: #1536cc;
  font-size: 18px;
}

.faq-list p {
  margin: 0;
  line-height: 1.75;
}

.faq-soft-odd {
  background: rgba(255, 252, 224, 0.92);
}

.updates-layout {
  align-items: flex-start;
  grid-template-columns: 220px 1fr;
}

.updates-intro,
.updates-list {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.updates-intro {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px ridge #9fb0ff;
  text-align: center;
}

.updates-intro h1 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: #1536cc;
  font-size: 28px;
}

.updates-intro h1 img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.updates-intro p {
  margin: 0;
  line-height: 1.7;
}

.updates-list {
  margin-bottom: 24px;
  border: 1px solid #7892ff;
  background: rgba(255, 255, 255, 0.82);
}

.updates-list article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px dotted #9fb0ff;
}

.updates-list article:last-child {
  border-bottom: 0;
}

.updates-list time {
  color: #1536cc;
  font-family: "MS Gothic", monospace;
  font-weight: bold;
}

.updates-list h2 {
  margin: 0 0 4px;
  color: #e44a87;
  font-size: 17px;
}

.updates-list p {
  margin: 0;
  line-height: 1.6;
}

.bbs-layout {
  align-items: flex-start;
  grid-template-columns: 220px 1fr;
}

.bbs-intro,
.bbs-board,
.bbs-pager,
.bbs-write {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.bbs-intro {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px ridge #9fb0ff;
  text-align: left;
}

.bbs-intro img {
  display: block;
  width: 118px;
  height: auto;
  margin: 0 auto;
}

.bbs-intro h1 {
  margin: 0 0 6px;
  color: #e44a87;
  font-size: 30px;
  text-align: center;
}

.bbs-intro p {
  margin: 0;
  line-height: 1.75;
}

.bbs-board {
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #7b85ff;
}

.bbs-post {
  margin-bottom: 10px;
  padding: 0 0 10px;
  background: #fff;
  border: 1px solid #ff9ccc;
  text-align: left;
}

.bbs-post:last-child {
  margin-bottom: 0;
}

.bbs-post-head {
  display: grid;
  grid-template-columns: 82px 1fr 86px;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  color: #1536cc;
  background: #eef8ff;
  border-bottom: 1px dashed #ff9ccc;
  font-weight: bold;
}

.bbs-post-head strong {
  color: #e44a87;
  font-size: 17px;
}

.bbs-post-head time {
  color: #1536cc;
  font-family: "MS Gothic", monospace;
  text-align: right;
}

.bbs-meta {
  display: flex;
  gap: 8px;
  margin: 8px 10px 4px;
  color: #1536cc;
}

.bbs-meta dt {
  font-weight: bold;
}

.bbs-meta dd {
  margin: 0;
}

.bbs-post p {
  margin: 4px 10px 0;
  line-height: 1.75;
}

.bbs-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  color: #1536cc;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed #9fb0ff;
  font-weight: bold;
}

.bbs-pager a,
.bbs-pager strong,
.bbs-pager span {
  min-width: 30px;
  padding: 2px 8px;
  text-align: center;
}

.bbs-pager strong {
  color: #fff;
  background: #e44a87;
  border: 1px solid #ff9ccc;
}

.bbs-pager span {
  color: #777;
}

.bbs-write {
  margin-bottom: 24px;
  padding: 10px 14px 14px;
  text-align: left;
}

.bbs-write h2 {
  margin: 0 0 8px;
  color: #1536cc;
  font-size: 18px;
  text-align: center;
}

.bbs-write form {
  display: grid;
  gap: 8px;
}

.bbs-write label {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
  color: #1536cc;
  font-weight: bold;
}

.bbs-write input,
.bbs-write textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  border: 2px inset #cfcfff;
  background: #fff;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 15px;
}

.bbs-write textarea {
  resize: vertical;
}

.bbs-write button {
  justify-self: center;
  padding: 4px 18px;
  color: #1536cc;
  background: #fff9c9;
  border: 2px outset #ffb8dc;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-weight: bold;
}

.bbs-form-message {
  min-height: 1.6em;
  margin: 0;
  color: #e44a87;
  font-weight: bold;
  text-align: center;
}

.links-layout {
  align-items: flex-start;
  grid-template-columns: 220px 1fr;
}

.links-intro,
.links-board {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.links-intro {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px ridge #9fb0ff;
  text-align: center;
}

.links-intro h1 {
  margin: 0 0 6px;
  color: #e44a87;
  font-size: 30px;
  text-align: center;
}

.links-intro p {
  margin: 0;
  line-height: 1.75;
}

.links-board {
  margin-bottom: 24px;
  padding: 10px 14px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #7b85ff;
}

.links-board h2 {
  margin: 0 0 8px;
  padding: 3px 8px;
  color: #1536cc;
  background: #f7fbff;
  border: 1px solid #9fb0ff;
  font-size: 20px;
  text-align: center;
}

.retro-link-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px ridge #9fb0ff;
  text-align: left;
}

.retro-link-table th,
.retro-link-table td {
  padding: 8px 10px;
  border: 1px dotted #b7c0ff;
  vertical-align: middle;
}

.retro-link-table th {
  width: 34px;
  color: #ffcc00;
  text-align: center;
  text-shadow: 1px 1px 0 #8a6a00;
}

.retro-link-table strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.retro-link-table p {
  margin: 0;
  line-height: 1.7;
}

.link-photo-cell {
  width: 190px;
}

.link-photo-cell img {
  display: block;
  width: 172px;
  height: 126px;
  object-fit: cover;
  border: 1px solid #999;
  filter: saturate(0.92) contrast(0.94) brightness(1.02);
}

.local-shop-note {
  margin-top: 14px;
  padding: 10px;
  background: #fffdf0;
  border: 1px dashed #ff9ccc;
  text-align: center;
}

.local-shop-note p {
  margin: 0 0 8px;
  color: #8a2451;
  font-weight: bold;
  line-height: 1.7;
}

.local-shop-note dl {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 5px 12px;
  margin: 6px auto 0;
  padding: 8px 10px;
  max-width: 780px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dotted #d7b6ff;
  text-align: left;
}

.local-shop-note dt {
  color: #1536cc;
  font-weight: bold;
}

.local-shop-note dt::before {
  color: #ffcc00;
  content: "★ ";
  text-shadow: 1px 1px 0 #8a6a00;
}

.local-shop-note dd {
  margin: 0;
  color: #333;
  line-height: 1.65;
}

.external-site {
  padding-top: 0;
  color: #222;
  background: #eef6f2;
  font-family: "Meiryo", "MS PGothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.external-page {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
}

.town-page {
  background: #fff;
  border: 1px solid #b8c8c1;
  box-shadow: 0 2px 8px rgba(50, 90, 70, 0.12);
}

.town-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(#f7fff9, #d9efe3);
  border-top: 6px solid #2e8a65;
  border-bottom: 1px solid #9db9ab;
}

.town-logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.town-logo-block img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 1px solid #c8d8cf;
  background: #fff;
}

.town-kicker,
.town-date {
  margin: 0;
  color: #45685a;
  font-size: 13px;
}

.town-logo-block h1 {
  margin: 2px 0 3px;
  color: #165f45;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.2;
}

.town-logo-block p:last-child {
  margin: 0;
  color: #333;
  font-size: 15px;
}

.town-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 3px solid #2e8a65;
  background: #2f7d9a;
}

.town-nav a {
  padding: 9px 6px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.town-nav a:hover {
  background: #236a83;
  text-decoration: underline;
}

.town-main {
  padding: 20px 24px 26px;
}

.town-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #b9cbd8;
}

.town-hero h2,
.town-section h2 {
  margin: 0 0 10px;
  padding: 6px 10px;
  color: #fff;
  background: #2e8a65;
  border-left: 8px solid #f6ca3a;
  font-size: 20px;
  letter-spacing: 0;
}

.town-hero p,
.town-section p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.town-hero img,
.town-tourism img,
.town-culture-note img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b8c8c1;
  background: #fff;
}

.town-section {
  margin-bottom: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid #cbd9d2;
}

.town-news-table,
.town-dept-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.town-news-table th,
.town-news-table td,
.town-dept-table th,
.town-dept-table td {
  padding: 8px 10px;
  border: 1px solid #c8d8d0;
  vertical-align: top;
}

.town-news-table th,
.town-dept-table th {
  width: 170px;
  color: #15513d;
  background: #eef8f1;
  text-align: left;
  white-space: nowrap;
}

.town-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.town-link-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.town-link-list li {
  margin-bottom: 6px;
  padding: 6px 8px;
  background: #f5fbff;
  border: 1px solid #c8d8e8;
}

.town-about {
  background: #fbfff7;
}

.town-culture-note {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: #f7faf8;
  border: 1px dotted #9db9ab;
}

.town-contact {
  background: #f7fbff;
}

.town-small-note {
  color: #777;
  font-size: 12px;
}

.external-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 12px 0 16px;
  color: #666;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  font-size: 12px;
}

html:has(body.miyama-site) {
  background: #fff7ee;
}

.miyama-site {
  background: #fff7ee;
}

.miyama-page {
  color: #3a2416;
  background: #fffdfa;
  border: 1px solid #d7b88d;
  box-shadow: 0 2px 8px rgba(110, 70, 30, 0.14);
}

.miyama-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 232, 205, 0.42) 0 8px, rgba(255, 255, 255, 0.42) 8px 16px),
    #fff1df;
  border-top: 8px solid #9b5837;
  border-bottom: 1px solid #d7b88d;
}

.miyama-kicker,
.miyama-date {
  margin: 0;
  color: #7a5a42;
  font-size: 13px;
}

.miyama-masthead h1 {
  margin: 3px 0 4px;
  color: #7b2f21;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 38px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.miyama-masthead p:last-child {
  margin: 0;
}

.miyama-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #8b4a2f;
  border-bottom: 3px solid #d6a13a;
}

.miyama-nav a {
  padding: 9px 6px;
  color: #fffdf7;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.miyama-nav a:hover {
  background: #a45d3b;
  text-decoration: underline;
}

.miyama-main {
  padding: 20px 24px 26px;
}

.miyama-hero {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff9f1;
  border: 1px solid #d9bd94;
}

.miyama-hero img,
.miyama-photo-text img,
.miyama-product img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #c9aa7e;
  filter: saturate(0.9) contrast(0.94) brightness(1.03);
}

.miyama-hero h2,
.miyama-section h2 {
  margin: 0 0 10px;
  padding: 6px 10px;
  color: #fffdf7;
  background: #9b5837;
  border-left: 8px solid #e0ba55;
  font-size: 20px;
}

.miyama-hero p,
.miyama-section p {
  margin: 0 0 10px;
  line-height: 1.85;
}

.miyama-section {
  margin-bottom: 18px;
  padding: 14px;
  background: #fffdfa;
  border: 1px solid #d9bd94;
}

.miyama-photo-text {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.miyama-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.miyama-product {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  background: #fff8ed;
  border: 1px dotted #c79b6a;
}

.miyama-product h3 {
  margin: 0 0 6px;
  color: #7b2f21;
  font-size: 18px;
}

.miyama-note {
  background: #fff8e5;
}

.miyama-shop-info table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.miyama-shop-info th,
.miyama-shop-info td {
  padding: 8px 10px;
  border: 1px solid #d9bd94;
  text-align: left;
}

.miyama-shop-info th {
  width: 140px;
  color: #7b2f21;
  background: #fff1df;
}

html:has(body.shrine-site) {
  background: #f4f1e8;
}

.shrine-site {
  background: #f4f1e8;
}

.shrine-page {
  color: #26221b;
  background: #fffdfa;
  border: 1px solid #c7bda8;
  box-shadow: 0 2px 8px rgba(70, 62, 48, 0.14);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.shrine-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92)),
    #ece5d7;
  border-top: 8px solid #7f1f1d;
  border-bottom: 1px solid #c7bda8;
}

.shrine-kicker,
.shrine-date {
  margin: 0;
  color: #675f50;
  font-size: 13px;
}

.shrine-masthead h1 {
  margin: 3px 0 4px;
  color: #601816;
  font-size: 38px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.shrine-masthead p:last-child {
  margin: 0;
}

.shrine-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #6f2522;
  border-bottom: 3px solid #b99b4f;
}

.shrine-nav a {
  padding: 9px 6px;
  color: #fffdf7;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.shrine-nav a:hover {
  background: #84312c;
  text-decoration: underline;
}

.shrine-main {
  padding: 20px 24px 26px;
}

.shrine-hero {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px;
  background: #faf7ef;
  border: 1px solid #c7bda8;
}

.shrine-hero img,
.shrine-photo-text img,
.shrine-cards img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #b8ad98;
  filter: saturate(0.92) contrast(0.94) brightness(1.02);
}

.shrine-hero h2,
.shrine-section h2 {
  margin: 0 0 10px;
  padding: 6px 10px;
  color: #fffdf7;
  background: #7f1f1d;
  border-left: 8px solid #b99b4f;
  font-size: 20px;
}

.shrine-hero p,
.shrine-section p {
  margin: 0 0 10px;
  line-height: 1.85;
}

.shrine-section {
  margin-bottom: 18px;
  padding: 14px;
  background: #fffdfa;
  border: 1px solid #c7bda8;
}

.shrine-photo-text {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.shrine-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shrine-cards article {
  padding: 10px;
  background: #faf7ef;
  border: 1px dotted #b8ad98;
}

.shrine-cards h3 {
  margin: 8px 0 6px;
  color: #601816;
  font-size: 18px;
}

.shrine-note {
  background: #fffaf0;
}

.shrine-access table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.shrine-access th,
.shrine-access td {
  padding: 8px 10px;
  border: 1px solid #c7bda8;
  text-align: left;
}

.shrine-access th {
  width: 140px;
  color: #601816;
  background: #f0eadc;
}

@media (max-width: 820px) {
  .town-masthead,
  .town-logo-block,
  .miyama-masthead,
  .shrine-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .town-nav,
  .miyama-nav,
  .shrine-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .town-hero,
  .town-two-column,
  .town-culture-note,
  .miyama-hero,
  .miyama-photo-text,
  .miyama-products,
  .miyama-product,
  .shrine-hero,
  .shrine-photo-text,
  .shrine-cards {
    grid-template-columns: 1fr;
  }
}

.circle-game {
  position: relative;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #ff9ccc;
  text-align: center;
}

.circle-game h2 {
  margin: 0 0 8px;
  color: #1536cc;
  font-size: 22px;
}

.circle-game-lead {
  margin: 0 0 10px;
  color: #e44a87;
  font-size: 18px;
  font-weight: bold;
}

.circle-start {
  margin: 8px auto 10px;
  padding: 12px;
  background: #fff9c9;
  border: 1px dashed #ff9ccc;
}

.circle-start p {
  margin: 0 0 10px;
  color: #000;
  font-weight: bold;
}

.circle-start-actions,
.circle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.circle-start-actions button,
.circle-actions button {
  min-width: 96px;
  padding: 4px 16px;
  color: #1536cc;
  background: #fff;
  border: 2px outset #ffb8d9;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.circle-start-actions button:active,
.circle-actions button:active {
  border-style: inset;
}

.circle-play-area[hidden] {
  display: none;
}

.animal-board {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.88), transparent 28%),
    repeating-linear-gradient(45deg, rgba(180, 220, 255, 0.13) 0 8px, rgba(255, 255, 255, 0.25) 8px 16px),
    #f5fbff;
  border: 2px ridge #9fb0ff;
}

.circle-hidden-text {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: rgba(200, 120, 150, 0.045);
  font-family: "MS Mincho", serif;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 12px;
  line-height: 2.8;
  transform: rotate(-12deg);
  user-select: none;
  pointer-events: none;
}

.animal-line-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.animal-line {
  stroke: #ff62ad;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 2.2 2;
  filter: drop-shadow(0 0 1px #fff);
}

.animal-token {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: clamp(54px, 8.6%, 70px);
  height: clamp(54px, 8.6%, 70px);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.animal-token img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(1px 2px 0 rgba(80, 90, 120, 0.18));
}

.animal-token.animal-seal img {
  transform: scale(0.94);
}

.animal-token.is-selected::after {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 3px solid #ffe65c;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #fff,
    0 0 10px rgba(255, 120, 190, 0.68);
  content: "";
}

.animal-token.is-selected::before {
  position: absolute;
  right: -8px;
  top: -12px;
  z-index: 5;
  color: #ff4fa3;
  content: "★";
  font-size: 20px;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff;
}

.start-arrow {
  position: absolute;
  left: 50%;
  top: -26px;
  z-index: 6;
  padding: 1px 6px;
  color: #fff;
  background: #e44a87;
  border: 2px solid #fff27a;
  border-radius: 10px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: bold;
  transform: translateX(-50%);
  pointer-events: none;
}

.start-arrow::after {
  position: absolute;
  left: 50%;
  bottom: -12px;
  color: #e44a87;
  content: "▼";
  transform: translateX(-50%);
}

.circle-message {
  min-height: 32px;
  margin: 8px auto 10px;
  padding: 8px;
  color: #1536cc;
  background: #f5fbff;
  border: 1px dashed #9fb0ff;
  font-size: 17px;
  font-weight: bold;
}

.circle-message:empty {
  display: none;
}

.circle-message.is-done {
  color: #1f7c2d;
  background: #edfff0;
  border-color: #73d66f;
}

.circle-message.is-error,
.circle-message.is-garbled {
  color: #c40000;
  background: #fff9c9;
  border-color: #ff9ccc;
}

.candle-game {
  position: relative;
  max-width: 850px;
  margin: 26px auto 24px;
  padding: 12px 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #ff9ccc;
  text-align: center;
}

.candle-game h2 {
  margin: 0 0 6px;
  color: #e44a87;
  font-size: 24px;
  letter-spacing: 3px;
}

.candle-help {
  margin: 4px 0 12px;
  font-weight: bold;
}

.candle-stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto 10px;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(circle at 8px 8px, #ff9ccc 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 8px) 8px, #ffd55a 0 2px, transparent 3px),
    radial-gradient(circle at 8px calc(100% - 8px), #79d85b 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #72c7ff 0 2px, transparent 3px),
    #fff8ff;
  border: 2px dotted #ff85bd;
}

.candle-table {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: contain;
  pointer-events: none;
}

.candle-row {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 20%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.candle-button {
  width: 86px;
  height: 140px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: default;
  pointer-events: auto;
}

.candle-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.candle-button.is-lit {
  filter: drop-shadow(0 0 8px rgba(255, 180, 60, 0.78));
}

.candle-sparkle-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.candle-sparkle {
  position: absolute;
  width: var(--spark-size, 7px);
  height: var(--spark-size, 7px);
  margin: calc(var(--spark-size, 7px) / -2) 0 0 calc(var(--spark-size, 7px) / -2);
  background: #ffd84f;
  border: 1px solid #ff8c1a;
  box-shadow:
    0 0 5px rgba(255, 219, 74, 0.95),
    0 0 10px rgba(255, 123, 30, 0.7);
  transform: rotate(45deg) scale(0.25);
  animation: candle-spark-pop 0.86s ease-out var(--spark-delay, 0s) forwards;
}

.candle-sparkle:nth-child(3n) {
  background: #fff4a8;
  border-color: #ffc64a;
}

.candle-sparkle:nth-child(4n) {
  width: calc(var(--spark-size, 7px) * 0.7);
  height: calc(var(--spark-size, 7px) * 0.7);
  background: #ff9b4a;
}

@keyframes candle-spark-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg) scale(0.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--spark-x, 0), var(--spark-y, -36px)) rotate(135deg) scale(1);
  }
}

.match-button {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 5;
  width: 104px;
  height: 104px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: grab;
  touch-action: none;
}

.match-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.match-button.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 0 8px rgba(255, 170, 50, 0.9));
}

.candle-message {
  min-height: 32px;
  margin: 8px auto 10px;
  padding: 6px 10px;
  color: #1536cc;
  background: #f7fbff;
  border: 1px dashed #7b85ff;
  font-weight: bold;
}

.candle-message.is-done {
  color: #1f7c2d;
  background: #edfff0;
  border-color: #77dc83;
}

.candle-message.is-error {
  color: #c40000;
  background: #fff0f0;
  border-color: #ff9c9c;
}

.candle-message.is-garbled {
  color: #c40000;
  background: #fff9c9;
  border-color: #ff9ccc;
  font-family: "MS Gothic", "Courier New", monospace;
}

.candle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@keyframes poolStarFly {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(0.92) rotate(var(--star-rotate, 0deg));
  }
  8% {
    opacity: var(--star-opacity, 0.86);
  }
  90% {
    opacity: var(--star-opacity, 0.86);
  }
  100% {
    opacity: 0;
    transform: translateX(1180px) translateY(var(--star-drift, -72px)) scale(0.92) rotate(var(--star-rotate, 0deg));
  }
}

@keyframes poolEyeCloseTop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes poolEyeCloseBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes poolEyeOpenTop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes poolEyeOpenBottom {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes poolCountAppear {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page {
    width: 100%;
    margin: 0;
  }

  .site-header,
  .layout,
  .left-column,
  .main-column,
  .right-column {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .layout {
    display: block;
    padding: 0 10px;
  }

  .since {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }

  .logo,
  .logo-text {
    width: min(calc(100% - 28px), 560px);
    max-width: 100%;
  }

  .logo-text {
    font-size: 38px;
  }

  .tagline {
    padding: 0 14px;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
  }

  .intro {
    display: block;
  }

  .main-photo,
  .intro-text {
    width: min(92vw, 360px);
    margin: 0 auto;
  }

  .flower-line,
  .access-box {
    width: 100%;
    max-width: 570px;
    box-sizing: border-box;
  }

  .access-box {
    gap: 8px;
    padding: 8px 10px;
  }

  .access-box > div {
    min-width: 0;
  }

  .access-box img {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  .access-box h2 {
    font-size: 16px;
  }

  .access-box p {
    overflow-wrap: anywhere;
  }

  .updates {
    grid-template-columns: 58px minmax(0, 1fr);
    margin-inline: 8px;
  }

  .updates dd,
  .more-link {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .more-link {
    text-align: center;
  }

  .welcome-stars {
    padding: 0 8px;
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .site-search {
    font-size: 12px;
  }

  .site-search input {
    width: min(48vw, 180px);
  }

  .progress-reset {
    position: absolute;
    left: 5px;
    margin: 0;
  }

  .progress-reset-all {
    right: 5px;
    left: auto;
  }

  .site-search form {
    max-width: calc(100% - 82px);
  }

  .site-search label {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    width: calc(100% - 16px);
    margin: 7px 8px 8px;
    padding: 7px 10px;
    color: #1536cc;
    background: #fff9c9;
    border: 2px outset #ffb8dc;
    font-family: "MS PGothic", "Osaka", sans-serif;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
  }

  .mobile-menu-toggle:active {
    border-style: inset;
  }

  .menu-box.is-mobile-menu-collapsed .menu-list {
    display: none;
  }

  .archive-widget {
    left: 8px;
    width: min(76vw, 250px);
  }

  .archive-panel {
    width: min(76vw, 250px);
  }

  .beginner-hero {
    display: block;
  }

  .guide-rabbit,
  .beginner-text {
    width: min(90vw, 360px);
    margin: 0 auto 10px;
  }

  .kana-board {
    grid-template-columns: repeat(5, 1fr);
    max-width: min(92vw, 360px);
  }

  .guide-panels {
    display: block;
    max-width: min(92vw, 430px);
  }

  .guide-panels article {
    margin-bottom: 10px;
    min-height: 0;
  }

  .name-preview {
    min-width: 0;
    width: min(82vw, 320px);
  }

  .map-page {
    width: 100%;
  }

  .map-layout {
    display: block;
  }

  .park-map-game,
  .map-intro {
    max-width: 100%;
  }

  .map-intro {
    box-sizing: border-box;
    padding: 8px 10px;
  }

  .map-intro h1 {
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
  }

  .park-map-game::before {
    content: "左右にスクロールして園内を見てね";
    display: block;
    margin: 0 0 4px;
    color: #2635d7;
    font-size: 12px;
    text-align: right;
  }

  .map-scroll {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .park-map {
    width: 900px;
  }

  .map-facility::after {
    font-size: 12px;
    padding: 2px 6px;
  }

  .route-game-panel {
    display: block;
  }

  .route-hints,
  .route-status {
    margin-bottom: 10px;
  }

  .access-page {
    width: 100%;
  }

  .access-layout {
    display: block;
  }

  .access-intro,
  .access-map-panel,
  .access-info-grid,
  .access-note,
  .circle-game {
    max-width: 100%;
  }

  .access-info-grid {
    grid-template-columns: 1fr;
  }

  .animal-board {
    width: min(100%, 92vw);
  }

  .animal-token {
    width: clamp(44px, 10.5vw, 58px);
    height: clamp(44px, 10.5vw, 58px);
  }

  .start-arrow {
    top: -23px;
    font-size: 10px;
  }

  .attractions-page {
    width: 100%;
  }

  .attractions-layout {
    display: block;
  }

  .attractions-intro,
  .facility-tabs,
  .facility-panel {
    max-width: 100%;
  }

  .facility-grid {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .facility-card {
    grid-template-columns: 1fr;
  }

  .facility-icon {
    width: 50px;
    max-height: 50px;
  }

  .pool-page {
    width: 100%;
  }

  .pool-layout {
    display: block;
  }

  .pool-hero,
  .pool-info,
  .pool-mini-game {
    max-width: 100%;
  }

  .pool-info {
    grid-template-columns: 1fr;
  }

  .pool-wish-box {
    width: min(82vw, 430px);
  }

  .pool-shooting-star {
    width: 170px;
  }

  .events-page {
    width: 100%;
  }

  .events-layout {
    display: block;
  }

  .events-hero,
  .events-list,
  .events-note {
    max-width: 100%;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .restaurants-page {
    width: 100%;
  }

  .restaurants-layout {
    display: block;
  }

  .restaurants-intro,
  .restaurant-tabs,
  .restaurant-panel,
  .candle-game {
    max-width: 100%;
  }

  .restaurant-card,
  .menu-highlight {
    grid-template-columns: 1fr;
  }

  .shop-page {
    width: 100%;
  }

  .shop-layout {
    display: block;
  }

  .shop-intro,
  .shop-store-guide,
  .shop-ranking {
    max-width: 100%;
  }

  .shop-store-guide,
  .shop-item {
    grid-template-columns: 1fr;
  }

  .shop-store-guide article {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .candle-row {
    left: 10%;
    right: 10%;
    top: 19%;
  }

  .candle-button {
    width: 58px;
    height: 104px;
  }

  .match-button {
    width: 76px;
    height: 76px;
    left: 12px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 0;
  }

  .tagline {
    font-size: 15px;
    letter-spacing: 0;
  }

  .welcome-stars {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .home-page .intro {
    padding: 8px;
  }

  .home-page .main-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-page .intro-text {
    padding: 2px 7px;
    font-size: 15px;
  }

  .home-page .riddle-banner {
    width: 100%;
    padding: 11px 12px 13px;
  }

  .document-shell .internal-file-head {
    display: block;
  }

  .document-shell .internal-file-head .document-kicker,
  .document-shell .internal-file-head .search-result-stamp {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
  }

  .document-shell .internal-file-head .search-result-stamp {
    margin-top: 7px;
  }
}
