/* 漢字ひらめき帖。紙面、間違い探し、ヒーローをこのファイルにまとめてある。 */

:root {
  --sumi: #1c1b19;
  --kinari: #f5f0e6;
  --paper: #fffdf8;
  --shu: #c43d30;
  --kaki: #c86a3c;
  --ai: #243b55;
  --green: #315642;
  --muted: #5e584e;
  --line: #ddd4c6;
  --sans: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --display: "Kaisei Decol", "Yu Mincho", serif;
  --brush: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #e7e1d6;
  color: var(--sumi);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  line-break: strict;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

button,
a { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { cursor: default; }

a { text-decoration: none; }

p,
h1,
h2,
h3,
figure { margin: 0; }

[hidden] { display: none !important; }

::selection { background: var(--shu); color: #fff; }

:focus-visible {
  outline: 2px solid var(--shu);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--sumi);
  color: #fff;
  padding: 8px 12px;
}

.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--kinari);
  container-type: inline-size;
  container-name: phone;
  box-shadow: 0 0 48px rgba(20, 16, 12, 0.12);
}

section { scroll-margin-top: 64px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
}

.btn-shu { background: var(--shu); color: #fff; }

.btn-sumi { background: var(--sumi); color: var(--kinari); }

.btn-block { width: 100%; }

.text-link,
.issue-go,
.finale-terms {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.fine {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 8px 0 16px;
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 27, 25, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  min-height: 56px;
}
.logo img {
  height: 28px;
  width: auto;
}

.logo-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--shu);
  color: #fff;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
  writing-mode: vertical-rl;
}

.head-right { display: flex; align-items: center; }

.mini-join {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  background: var(--shu);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sumi);
}

.fude {
  display: block;
  width: 30px;
  height: 22px;
  fill: currentColor;
}

.fude-close { display: none; width: 22px; height: 22px; }
.menu-toggle[aria-expanded="true"] .fude-lines { display: none; }
.menu-toggle[aria-expanded="true"] .fude-close { display: block; }

.menu {
  position: fixed;
  z-index: 40;
  top: 56px;
  bottom: 0;
  left: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: min(430px, 100%);
  margin: 0;
  padding: 28px 0 0;
  background: rgba(28, 27, 25, 0.38);
  transform: translateX(-50%);
}

.menu[hidden] { display: none !important; }

.scroll {
  display: flex;
  align-items: stretch;
}

.rod {
  position: relative;
  flex: none;
  width: 16px;
  margin-block: -11px;
  border-radius: 8px;
  background: linear-gradient(90deg, #142e24 0%, #2a5640 38%, #7eae90 50%, #3d6b52 62%, #142e24 100%);
  box-shadow: 0 8px 14px rgba(28, 27, 25, 0.28);
}

.rod::before,
.rod::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 22px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(#3d6b52, #142e24);
}

.rod::before { top: -2px; }
.rod::after { bottom: -2px; }

.scroll-sheet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 0;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(138, 90, 46, 0.13) 0 16px, transparent 48px),
    radial-gradient(circle at 78% 78%, rgba(112, 70, 36, 0.11) 0 20px, transparent 58px),
    radial-gradient(circle at 62% 34%, rgba(168, 122, 68, 0.08) 0 8px, transparent 26px),
    repeating-linear-gradient(180deg, transparent 0 4px, rgba(112, 78, 42, 0.045) 4px 5px),
    linear-gradient(90deg, rgba(54, 32, 16, 0.18), transparent 18px),
    linear-gradient(270deg, rgba(54, 32, 16, 0.18), transparent 18px),
    linear-gradient(#f3e6cf, #e6d3b4);
  box-shadow:
    inset 0 0 22px rgba(92, 60, 28, 0.16),
    inset 0 1px 0 rgba(255, 248, 236, 0.4);
  transition: width 0.62s cubic-bezier(0.16, 1, 0.28, 1);
}

.menu.is-open .scroll-sheet { width: min(268px, 76vw); padding: 12px 0; }

.scroll-sheet a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: #2a2118;
  font-family: var(--brush);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}

.scroll-sheet a + a { box-shadow: inset 0 1px 0 rgba(90, 58, 30, 0.16); }

.scroll-sheet a.menu-account {
  margin-top: 10px;
  box-shadow: inset 0 1px 0 rgba(90, 58, 30, 0.34);
}

.scroll-sheet a.demo-register { color: var(--shu); }

/* ヒーロー */

/* ---------- 01 最初の漢字 ---------- */

.poster-stage {
  position: relative;
  height: min(560px, 72svh);
  min-height: 460px;
  overflow: hidden;
  background: var(--kinari);
  touch-action: pan-y;
}

.poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.62s ease, transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

.poster.is-active {
  opacity: 1;
  z-index: 2;
  transform: none;
  pointer-events: auto;
}

.poster-kanji {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.poster-answer {
  position: absolute;
  z-index: 2;
  opacity: 0;
}

.poster-yomi {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.poster-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.poster-aini {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: start;
  padding: 12% 12% 14%;
  background: var(--kinari);
  color: var(--sumi);
}

.poster-aini .poster-kanji { display: contents; }

.poster-aini .poster-kanji span {
  position: static;
  font-size: 34cqi;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.poster-aini .poster-kanji span:first-child { grid-row: 1; }

.poster-aini .poster-kanji span:last-child { grid-row: 3; }

.poster-aini .poster-answer {
  grid-row: 2;
  position: static;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  background: transparent;
  transition: max-height 0.7s cubic-bezier(0.22, 0.8, 0.2, 1), margin 0.7s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.4s ease 0.12s;
}

.poster-aini .poster-yomi { color: var(--shu); }

.poster-stage.is-revealed .poster-aini .poster-answer {
  max-height: 5.2em;
  margin: 16px 0 12px;
  opacity: 1;
}

.poster-shita,
.poster-you,
.poster-shiba {
  display: grid;
  align-content: center;
  justify-content: start;
  padding: 12% 12% 14%;
}

.poster-shita { background: var(--kaki); color: var(--paper); }

.poster-you { background: var(--sumi); color: var(--kinari); }

.poster-shiba { background: var(--ai); color: var(--kinari); }

.poster-shita .poster-kanji,
.poster-you .poster-kanji,
.poster-shiba .poster-kanji {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
  width: max-content;
  margin: 0;
}

.poster-shiba .poster-kanji {
  flex-direction: column;
  align-items: flex-end;
}

.poster-shita .poster-kanji span,
.poster-you .poster-kanji span,
.poster-shiba .poster-kanji span {
  position: static;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.poster-shita .poster-kanji span:first-child,
.poster-you .poster-kanji span:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  font-size: 36cqi;
  line-height: 0.9;
}

.poster-shita .poster-kanji span:last-child,
.poster-you .poster-kanji span:last-child {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0 0 0.18em 0.06em;
  font-size: 14cqi;
  line-height: 1;
}

.poster-shita .poster-kanji span:first-child { color: var(--paper); }
.poster-shita .poster-kanji span:last-child { color: var(--sumi); }

.poster-shita .poster-answer,
.poster-you .poster-answer,
.poster-shiba .poster-answer {
  position: static;
  grid-column: 1;
  grid-row: 2;
  max-width: 16em;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  transform: none;
  transition: max-height 0.75s cubic-bezier(0.22, 0.8, 0.2, 1), margin 0.75s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.4s ease 0.14s;
}

.poster-shita .poster-answer { color: var(--paper); }
.poster-shita .poster-yomi { color: var(--kinari); }

.poster-stage.is-revealed .poster-shita .poster-kanji span:last-child,
.poster-stage.is-revealed .poster-you .poster-kanji span:last-child {
  transform: translateX(8px);
}

.poster-stage.is-revealed .poster-shita .poster-answer,
.poster-stage.is-revealed .poster-you .poster-answer,
.poster-stage.is-revealed .poster-shiba .poster-answer {
  max-height: 5.6em;
  margin-top: 20px;
  opacity: 1;
  transform: none;
}

.poster-shiba .poster-kanji span:first-child {
  font-size: 36cqi;
  line-height: 0.92;
}

.poster-shiba .poster-kanji span:last-child {
  margin: 0.06em 0.1em 0 0;
  font-size: 13cqi;
  line-height: 1;
}

.poster-shiba .poster-answer { color: var(--kinari); }
.poster-shiba .poster-yomi { color: var(--paper); }

.poster-stage.is-revealed .poster-shiba .poster-kanji span:first-child { transform: translateY(-4px); }
.poster-stage.is-revealed .poster-shiba .poster-kanji span:last-child { transform: translateY(6px); }

.poster-you .poster-kanji span:first-child { color: var(--kinari); }
.poster-you .poster-kanji span:last-child { color: var(--shu); }
.poster-you .poster-answer { color: var(--kinari); }
.poster-you .poster-yomi { color: var(--kaki); }

.hook-ui { padding: 18px 22px 8px; }

.hook-ui p {
  min-height: 3.2em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.hook-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.text-next {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.text-next:after { content: " \2192"; }

.dots { display: flex; border-top: 1px solid var(--sumi); }

.dots button {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--sumi);
  background: transparent;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.dots button:last-child { border-right: 0; }

.dots button[aria-selected="true"] {
  background: var(--sumi);
  color: var(--kinari);
}

/* ---------- 02 木耳 ---------- */

.specimen { position: relative; background: var(--ai); overflow: hidden; }

.specimen img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  clip-path: inset(9% 0 16% 0);
  transform: scale(1.05) translateY(3%);
  transition: clip-path 1.05s cubic-bezier(0.22, 0.8, 0.2, 1), transform 1.15s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.specimen.is-in img {
  clip-path: inset(0);
  transform: none;
}

.specimen-type {
  position: absolute;
  top: 72px;
  right: 18px;
  color: var(--paper);
  text-align: right;
  text-shadow: 0 8px 24px rgba(8, 16, 32, 0.35);
}

.specimen-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
}

.specimen-type { font-size: 24cqi; }

.specimen-word {
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
  writing-mode: vertical-rl;
  margin-left: auto;
}

.specimen-yomi {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.28em;
  writing-mode: horizontal-tb;
  clip-path: inset(0 100% 0 0);
}

.specimen.is-in .specimen-yomi {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s ease 0.25s;
}

.essay {
  padding: 36px 22px 42px;
  background: var(--ai);
  color: var(--kinari);
}

.essay h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 8.4cqi, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.essay-lead {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.essay p { margin-top: 14px; }

.essay-next {
  padding-top: 14px;
  border-top: 1px solid rgba(245, 240, 230, 0.28);
}

.essay .fine { color: rgba(245, 240, 230, 0.62); }

/* ---------- 03 お品書き ---------- */

.daily {
  position: relative;
  padding: 28px 18px 36px 42px;
  background: var(--paper);
}

.slip-vert {
  position: absolute;
  top: 28px;
  left: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--kaki);
  writing-mode: vertical-rl;
}

.slip {
  position: relative;
  overflow: hidden;
  background: #f3ecdf;
}

.slip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.slip-word {
  position: absolute;
  top: 8%;
  left: 16px;
  margin: 0;
  color: var(--sumi);
  font-family: var(--serif);
  font-size: 22cqi;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.slip-word span { display: block; }

.slip.is-in .slip-word span:last-child {
  animation: slip-kanji 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.slip-yomi {
  position: absolute;
  left: 16px;
  top: 58%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0;
  border: 3px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  background: rgba(255, 253, 248, 0.88);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: scale(0) rotate(-16deg);
}

.daily.is-revealed .slip-yomi {
  transform: scale(1) rotate(-8deg);
  transition: transform 0.45s cubic-bezier(0.2, 1.3, 0.3, 1);
}

.daily.is-revealed .slip-word { transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1); }

.slip-foot { padding: 22px 4px 0 0; }

.slip-foot p {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.slip-foot .btn { margin-top: 16px; }

@keyframes slip-kanji {
  from { transform: translateX(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- 04 特集 ---------- */

.ed-open {
  padding: 48px 22px 28px;
  background: var(--kinari);
}

.ed-open h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 10cqi, 46px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.ed-open p {
  margin-top: 16px;
  max-width: 16em;
  font-size: 15px;
}

.issue { display: block; min-width: 0; overflow: hidden; color: inherit; }

.issue-food { background: var(--kaki); color: var(--paper); }

.issue-food img {
  width: 100%;
  height: min(68vh, 520px);
  min-height: 280px;
  object-fit: cover;
  clip-path: inset(0 0 22% 0);
  transition: clip-path 0.95s cubic-bezier(0.22, 0.8, 0.2, 1) 0.16s;
}

.issue-food.is-in img { clip-path: inset(0); }

.issue-sheet {
  display: block;
  margin-top: -36px;
  padding: 22px 22px 28px;
  background: var(--kaki);
}

.issue-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.issue-sheet strong,
.season-word {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.issue-sheet strong { font-size: 28cqi; clip-path: inset(0 34% 0 0); }

.issue-food.is-in .issue-sheet strong {
  clip-path: inset(0);
  transition: clip-path 0.75s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.issue-sheet em,
.season-yomi,
.issue-side em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--serif);
  letter-spacing: 0.18em;
}

.issue-line,
.season-copy { display: block; margin-top: 12px; font-size: 14px; line-height: 1.7; }

.issue-nature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: 460px;
  background: var(--green);
  color: var(--kinari);
}

.issue-nature img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: left center;
}

.issue-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px 22px;
}

.issue-side strong {
  font-family: var(--serif);
  font-size: 15cqi;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.95;
  opacity: 0;
  transform: translateX(14px);
}

.issue-nature.is-in .issue-side strong {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 0.16s, transform 0.75s cubic-bezier(0.22, 0.8, 0.2, 1) 0.16s;
}

.issue-nature img {
  clip-path: inset(10% 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) 0.12s;
}

.issue-nature.is-in img { clip-path: inset(0); }

.issue-season {
  padding: 28px 0 32px;
  background: var(--paper);
  color: var(--sumi);
}

.season-kicker {
  display: block;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ai);
}

.issue-season img {
  width: 100%;
  height: 210px;
  margin-top: 14px;
  object-fit: cover;
  object-position: center 40%;
}

.season-word {
  margin: 16px 22px 0;
  font-size: 20cqi;
  clip-path: inset(0 38% 0 0);
}

.season-yomi,
.season-copy,
.season-more,
.issue-season .issue-go { margin-left: 22px; margin-right: 22px; }

.season-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.season-more b {
  margin-right: 6px;
  font-family: var(--serif);
  font-size: 16px;
}

.season-more i { font-style: normal; color: var(--muted); }

.issue-season img {
  clip-path: inset(0 0 0 12%);
  transition: clip-path 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) 0.2s;
}

.issue-season.is-in img { clip-path: inset(0); }

.issue-season.is-in .season-word {
  clip-path: inset(0);
  transition: clip-path 0.75s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.issue-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 28px 22px 26px;
  overflow: hidden;
  background: var(--sumi);
  color: var(--kinari);
}

.day-kicker {
  position: static;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--kaki);
}

.day-a,
.day-b,
.day-c,
.day-d {
  position: static;
  max-width: 100%;
  margin-left: 0;
  font-family: var(--serif);
  font-size: 15cqi;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.day-kicker { order: 0; }
.day-a { order: 1; }
.day-b { order: 2; color: var(--kaki); }
.day-d { order: 3; }
.day-c { order: 4; color: var(--paper); }
.day-note { order: 5; }
.issue-day .issue-go { order: 6; }

.day-d b {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.05em;
  writing-mode: horizontal-tb;
}

.day-note {
  position: static;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.78);
}

.issue-day .issue-go {
  position: static;
  align-self: flex-end;
  margin-top: 16px;
  color: var(--kinari);
}

.day-a,
.day-b,
.day-c,
.day-d { opacity: 0; }

.day-a { transform: translateY(16px); }
.day-b { transform: translateY(10px); }
.day-c { transform: translateY(18px); }
.day-d { transform: translateY(-12px); }

.issue-day.is-in .day-a,
.issue-day.is-in .day-b,
.issue-day.is-in .day-c,
.issue-day.is-in .day-d {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.issue-day.is-in .day-b { transition-delay: 0.12s; }
.issue-day.is-in .day-d { transition-delay: 0.18s; }
.issue-day.is-in .day-c { transition-delay: 0.28s; }

.ed-foot {
  padding: 28px 22px 8px;
  background: var(--sumi);
  color: var(--kinari);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: none; }
}

@keyframes side-in {
  from { transform: translateX(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes clip-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes type-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 05 つながり ---------- */

.chain {
  padding: 48px 22px 56px;
  background: var(--sumi);
  color: var(--kinari);
  overflow: hidden;
}

.chain h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 8.6cqi, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.cascade { margin-top: 28px; }

.cas { margin: 0; }

.cas b {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.cas i {
  display: block;
  margin-top: 4px;
  font-style: normal;
  letter-spacing: 0.16em;
  color: rgba(245, 240, 230, 0.7);
}

.cas small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.78);
}

.cas-1 b { font-size: 22cqi; }

.cas-2 { margin-left: 8%; }
.cas-2 b { font-size: 16cqi; color: #f0c7a2; }

.cas-3 { margin-left: 16%; }
.cas-3 b { font-size: 14cqi; color: #f3d2c6; }

.link-stroke {
  display: block;
  width: 88px;
  height: 64px;
  margin: 4px 0 4px 18px;
}

.link-stroke-2 { margin-left: 18%; }

.link-stroke path {
  fill: none;
  stroke: var(--shu);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
}

.chain.is-in .link-stroke path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 0.8, 0.2, 1) 0.28s;
}

.chain.is-in .link-stroke-2 path { transition-delay: 0.72s; }

.cas {
  opacity: 0;
  transform: translateY(18px);
}

.cas-2 { transform: translate(18px, 14px); }
.cas-3 { transform: translateY(16px); }

.chain.is-in .cas {
  opacity: 1;
  transform: none;
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.55s ease;
}

.chain.is-in .cas-2 { transition-delay: 0.42s; }
.chain.is-in .cas-3 { transition-delay: 0.86s; }

.cas i,
.cas small { opacity: 0; }

.chain.is-in .cas i,
.chain.is-in .cas small {
  opacity: 1;
  transition: opacity 0.45s ease 0.28s;
}

.chain.is-in .cas-2 i,
.chain.is-in .cas-2 small { transition-delay: 0.7s; }

.chain.is-in .cas-3 i,
.chain.is-in .cas-3 small { transition-delay: 1.05s; }

.chain-end {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- 06 クイズ ---------- */

.game { background: #141311; color: var(--kinari); }

.game-head { padding: 42px 22px 10px; }

.game-head h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 11cqi, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.game-head p {
  margin-top: 14px;
  color: rgba(245, 240, 230, 0.72);
  font-size: 14px;
}

.gallery { padding: 18px 16px 8px; }

.mat { background: #0c0b0a; padding: 12px; }

.artframe {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #1a2430 center / cover no-repeat;
  font-size: 26cqi;
}

.artframe[data-len="1"] { font-size: 34cqi; }
.artframe[data-len="2"] { font-size: 26cqi; }
.artframe[data-len="3"] { font-size: 17cqi; }
.artframe[data-len="4"] { font-size: 13cqi; }

.artframe.is-enter { animation: frame-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

.art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-typ {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  writing-mode: vertical-rl;
}

.art-read {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--shu);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.artframe.is-answer {
  background: var(--kinari);
}

.artframe.is-answer .art-typ {
  color: var(--sumi);
  text-shadow: none;
  font-size: 0.62em;
}

.artframe.is-answer .art-caption {
  color: var(--sumi);
}

.art-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.mark-seal {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(190px, 62%);
  height: min(190px, 62%);
  display: grid;
  place-items: center;
  border: 7px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  background: rgba(255, 253, 248, 0.08);
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.4) rotate(-16deg);
  opacity: 0;
}

.mark-seal.is-on { animation: stamp 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.mark-x {
  position: absolute;
  z-index: 5;
  inset: 10%;
  width: 80%;
  height: 80%;
  pointer-events: none;
}

.mark-x path {
  fill: none;
  stroke: var(--shu);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
}

.mark-x.is-on path { animation: slash 0.28s ease forwards; }

.mark-x.is-on path:nth-child(2) { animation-delay: 0.08s; }

.museum-label {
  margin: 10px 4px 0;
  color: rgba(245, 240, 230, 0.55);
  font-size: 12px;
}

.game-body {
  margin-top: 22px;
  padding: 26px 22px 40px;
  background: var(--paper);
  color: var(--sumi);
}

.q-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
}

.options { margin-top: 8px; }

.option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--sumi);
  background: transparent;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
}

.option.correct { background: var(--sumi); color: var(--paper); padding-left: 12px; }

.option.wrong { color: var(--shu); }

.game-result { margin-top: 18px; }

.game-result .status,
.game-result .meaning,
.game-result .genre-link {
  opacity: 0;
  transform: translateY(8px);
}

.game-result.is-show .status,
.game-result.is-show .meaning,
.game-result.is-show .genre-link {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.game-result.is-show .status { transition-delay: 0.04s; }
.game-result.is-show .meaning { transition-delay: 0.2s; }
.game-result.is-show .genre-link { transition-delay: 0.38s; }

.status {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
}

.meaning { margin-top: 8px; font-size: 14px; line-height: 1.75; }

.genre-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  color: var(--shu);
  font-weight: 700;
  border-bottom: 1px solid var(--shu);
}

.retry {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--sumi);
  background: transparent;
  font-weight: 700;
}

.game-disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@keyframes frame-in {
  from { transform: translateY(18px) scale(0.97); }
  to { transform: none; }
}

@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.32) rotate(-18deg); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(0.97) rotate(-7deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
}

@keyframes slash { to { stroke-dashoffset: 0; } }

/* ---------- 09 目次 ---------- */

.catalog { background: var(--kinari); }

.catalog-feature { position: relative; }

.catalog-feature img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.catalog-feature-card {
  padding: 22px 22px 8px;
  background: var(--kinari);
}

.catalog-feature-card h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 8cqi, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.catalog-body { padding: 8px 22px 36px; }

.switch {
  display: flex;
  margin-top: 18px;
  border-bottom: 1px solid var(--sumi);
}

.switch button {
  flex: 1;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.switch button[aria-selected="true"] {
  background: var(--sumi);
  color: var(--kinari);
}

.genre-list { margin-top: 8px; }

.genre-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.genre-row:nth-child(1) { box-shadow: inset 4px 0 0 var(--sumi); }
.genre-row:nth-child(2) { box-shadow: inset 4px 0 0 var(--kaki); }
.genre-row:nth-child(3) { box-shadow: inset 4px 0 0 var(--green); }
.genre-row:nth-child(4) { box-shadow: inset 4px 0 0 var(--shu); }
.genre-row:nth-child(5) { box-shadow: inset 4px 0 0 var(--sumi); }

.genre-no {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.genre-row b { display: block; font-size: 16px; line-height: 1.4; }

.genre-row small { display: block; color: var(--muted); font-size: 12px; }

.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 148px 120px;
  gap: 8px;
  margin-top: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  color: var(--paper);
}

.tile-lg { grid-row: 1 / span 2; }

.tile b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.tile i { font-style: normal; letter-spacing: 0.12em; font-size: 13px; }

.tile small { margin-bottom: auto; font-size: 11px; letter-spacing: 0.14em; }

.tile-sumi { background: var(--ai); }
.tile-kaki { background: var(--kaki); }
.tile-paper { background: var(--sumi); }
.tile-green { background: var(--green); }

/* ---------- 07 会員の価値 ---------- */

.mem-open { padding: 48px 22px 22px; }

.mem-open h2,
.trust-inner h2,
.finale-copy h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.mem-open h2 { font-size: clamp(30px, 8.8cqi, 40px); }

.mem-open p { margin-top: 14px; }

.mem-hero { position: relative; color: var(--paper); }

.mem-hero img {
  width: 100%;
  height: min(78vh, 620px);
  min-height: 420px;
  object-fit: cover;
}

.mem-hero figcaption {
  position: absolute;
  left: 0;
  right: 22%;
  bottom: 16px;
  padding: 16px 16px 14px;
  background: rgba(16, 24, 38, 0.92);
}

.mem-kicker { font-size: 12px; letter-spacing: 0.16em; }

.mem-word {
  font-family: var(--serif);
  font-size: 22cqi;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.mem-yomi {
  margin-top: 4px;
  font-family: var(--serif);
  letter-spacing: 0.2em;
}

.mem-note { margin-top: 8px; font-size: 14px; }

.mem-paths { padding: 18px 0 8px; background: var(--kinari); }

.path {
  display: block;
  padding: 16px 18px 18px;
  color: var(--paper);
}

.path small { display: block; font-size: 12px; letter-spacing: 0.12em; }

.path b {
  display: block;
  font-family: var(--serif);
  font-size: 18cqi;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.path i {
  display: block;
  margin-top: 4px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.path-food { width: 100%; background: var(--kaki); }
.path-season { width: 86%; margin-left: auto; background: var(--ai); }
.path-day { width: 74%; background: var(--green); }

.mem-sanma {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--sumi);
  color: var(--kinari);
}

.mem-sanma img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.mem-sanma figcaption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 20px;
}

.mem-sanma .mem-word { font-size: 16cqi; }

.mem-cta { padding: 28px 22px 40px; }

.mem-cta p { margin-bottom: 16px; font-family: var(--serif); font-weight: 700; line-height: 1.7; }

/* ---------- 08 利用条件 ---------- */

.trust { background: var(--paper); }

.trust-inner { padding: 42px 22px 48px; }

.trust-inner h2 { font-size: clamp(30px, 8.4cqi, 38px); }

.trust-lead { margin-top: 12px; }

.trust-inner dl { margin: 22px 0 0; }

.trust-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.trust-row:last-child { border-bottom: 1px solid var(--line); }

.trust-row dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }

.trust-row dd { margin: 4px 0 0; font-size: 15px; line-height: 1.7; }

.pending-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border: 1px solid var(--shu);
  color: var(--shu);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}

.trust-inner details { border-bottom: 1px solid var(--line); }

.trust-inner summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-weight: 700;
  cursor: pointer;
}

.trust-inner details p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.trust-inner .btn { margin-top: 22px; }

/* ---------- 10 最終 ---------- */

.finale {
  background: #071018;
  color: #f6f1e6;
  padding: 0;
}

.finale-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 2120;
  margin: 0;
  overflow: hidden;
}

.finale-say {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 36px 18px 22px;
  background: linear-gradient(180deg, rgba(5, 12, 20, 0) 0, rgba(5, 12, 20, 0.55) 42px, rgba(5, 10, 16, 0.2) 100%);
  text-align: center;
}

.finale-say h2 {
  margin: 0;
  padding-left: 0.28em;
  color: #f6f1e6;
  font-family: var(--display);
  font-size: clamp(34px, 10.4cqi, 46px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.finale-say h2 b {
  color: #ff8a78;
  font-weight: 700;
}

.finale-say .town-cta {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin: 18px auto 0;
  pointer-events: auto;
}

.finale-frame {
  position: relative;
  overflow: hidden;
}

.finale-breath {
  position: absolute;
  z-index: 1;
  inset: -8%;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 28% at 50% 16%, rgba(255, 220, 170, 0.28), transparent 70%);
  mix-blend-mode: soft-light;
  animation: air-pass 16s ease-in-out infinite alternate;
}

.finale-air {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.finale-air .flake {
  opacity: 0.88;
  animation: hira var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
}

.finale-air .flake-leaf {
  animation: leaf-drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
}

.finale-drop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.5px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(rgba(186, 214, 220, 0), rgba(70, 120, 138, 0.72));
  animation: finale-rain 1.7s linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes finale-rain {
  0% { transform: translateY(-10px); opacity: 0; }
  18% { opacity: 0.85; }
  100% { transform: translateY(36px); opacity: 0; }
}

.finale-art .finale-sky {
  z-index: 0;
  overflow: hidden;
  background-color: #061422;
  background-image: linear-gradient(
    180deg,
    #1a8ea4 0%,
    #0c5870 14%,
    #08283c 30%,
    #156878 46%,
    #071824 62%,
    #0e4e68 78%,
    #050e16 100%
  );
  background-size: 100% 280%;
  background-repeat: no-repeat;
  animation: sea-wash 9s ease-in-out infinite alternate;
}

.finale-art .finale-sky::before,
.finale-art .finale-sky::after {
  content: "";
  position: absolute;
  inset: -18% -12%;
  pointer-events: none;
}

.finale-art .finale-sky::before {
  background: linear-gradient(
    115deg,
    rgba(8, 28, 42, 0) 0%,
    rgba(120, 210, 200, 0.42) 28%,
    rgba(10, 40, 58, 0) 48%,
    rgba(24, 110, 140, 0.55) 70%,
    rgba(5, 14, 22, 0) 100%
  );
  background-size: 220% 220%;
  animation: sea-wash-slant 13s ease-in-out infinite alternate;
}

.finale-art .finale-sky::after {
  background:
    radial-gradient(ellipse 22% 55% at 24% 20%, rgba(210, 248, 236, 0.55), transparent 68%),
    radial-gradient(ellipse 16% 48% at 70% 40%, rgba(170, 220, 235, 0.42), transparent 70%),
    radial-gradient(ellipse 28% 36% at 48% 72%, rgba(90, 160, 190, 0.35), transparent 72%);
  animation: depth-glow 11s ease-in-out infinite alternate;
}

.finale-art .finale-sky i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 7px);
  height: var(--s, 7px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 244, 0.95), transparent 68%);
  box-shadow: 0 0 10px rgba(190, 240, 230, 0.8);
  animation: depth-mote var(--d, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes sea-wash {
  from { background-position: 50% 0%; }
  to { background-position: 50% 100%; }
}

@keyframes sea-wash-slant {
  from { background-position: 0% 100%; }
  to { background-position: 100% 0%; }
}

@keyframes depth-shaft {
  from { transform: translate3d(-42%, 0, 0); }
  to { transform: translate3d(42%, 0, 0); }
}

@keyframes depth-glow {
  from { transform: translate3d(-8%, 10%, 0); opacity: 0.45; }
  to { transform: translate3d(8%, -14%, 0); opacity: 1; }
}

@keyframes depth-mote {
  0% { transform: translate3d(0, 40px, 0) scale(0.6); opacity: 0; }
  15% { opacity: 0.95; }
  100% { transform: translate3d(18px, -160px, 0) scale(1); opacity: 0; }
}

.finale-current {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 4%;
  bottom: 52%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  background: repeating-linear-gradient(
    105deg,
    transparent 0 36px,
    rgba(255, 255, 255, 0.72) 48px,
    transparent 78px 150px
  );
  background-size: 240px 100%;
  animation: sea-drift 8s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

.finale-current::after {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background:
    radial-gradient(ellipse 16% 50% at 20% 40%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 12% 42% at 55% 60%, rgba(210, 236, 255, 0.9), transparent 72%),
    radial-gradient(ellipse 14% 46% at 82% 36%, rgba(255, 255, 255, 0.7), transparent 70%);
  animation: sea-glow 14s ease-in-out infinite alternate;
}

@keyframes sea-drift {
  from { background-position: 0 0; }
  to { background-position: 240px 0; }
}

@keyframes sea-glow {
  from { transform: translateX(-6%); }
  to { transform: translateX(8%); }
}

.finale-rain,
.finale-bubbles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.finale-rain span {
  position: absolute;
  left: var(--x);
  top: -18%;
  width: 1.5px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(232, 244, 248, 0.95));
  animation: sea-rain var(--d, 1.8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes sea-rain {
  0% { transform: translateY(0); opacity: 0; }
  14% { opacity: 0.95; }
  100% { transform: translateY(340px); opacity: 0; }
}

.finale-bubbles i {
  position: absolute;
  left: var(--x);
  bottom: 58%;
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  box-sizing: border-box;
  border: 1px solid rgba(236, 248, 252, 0.9);
  background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.85), transparent 62%);
  animation: bubble-rise var(--d, 7s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes bubble-rise {
  0% { transform: translateY(0); opacity: 0; }
  16% { opacity: 0.9; }
  100% { transform: translateY(-260px); opacity: 0; }
}

.finale .sky-morn {
  background: linear-gradient(180deg, #8ec8e6 0%, #e9f6fb 42%, #fff6df 100%);
  animation: finale-hour-morn 28s linear infinite;
}

.finale .sky-noon {
  background: linear-gradient(180deg, #fffdf8 0%, #fff3d4 46%, #ffe3a8 100%);
  animation: finale-hour-noon 28s linear infinite;
}

.finale .sky-eve {
  background: linear-gradient(180deg, #f6b56a 0%, #f8d7a4 38%, #fff4e2 100%);
  animation: finale-hour-eve 28s linear infinite;
}

.finale .sky-night {
  background: linear-gradient(180deg, #3d6498 0%, #9ebcda 34%, #f3f7fb 68%, #2c4f7c 100%);
  animation: finale-hour-night 28s linear infinite;
}

@keyframes finale-hour-morn {
  0%, 34% { opacity: 1; }
  44%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes finale-hour-noon {
  0%, 30% { opacity: 0; }
  42%, 64% { opacity: 1; }
  74%, 100% { opacity: 0; }
}

@keyframes finale-hour-eve {
  0%, 60% { opacity: 0; }
  70%, 78% { opacity: 1; }
  86%, 100% { opacity: 0; }
}

@keyframes finale-hour-night {
  0%, 80% { opacity: 0; }
  88%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

.finale-school {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 3%;
  height: 54%;
  overflow: hidden;
  pointer-events: none;
}

.fish-run {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.fish {
  position: relative;
  display: block;
  width: 16%;
  height: auto;
  overflow: visible;
}

.fish .fish-shade path { fill: #0c1e33; stroke: none; }
.fish-body { fill: #1d4a74; }
.fish-tail,
.fish-fin,
.fish-pec { fill: #163654; }
.fish-body,
.fish-tail,
.fish-fin,
.fish-pec {
  stroke: #f4ead7;
  stroke-width: 2.4;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.fish-tail { transform-box: fill-box; transform-origin: right center; animation: fish-wag 0.38s ease-in-out infinite alternate; }
.fish circle { fill: #d7e4ee; }

.fish-gold .fish-body { fill: #c6a56e; }
.fish-gold .fish-tail,
.fish-gold .fish-fin,
.fish-gold .fish-pec { fill: #8d7044; }
.fish-gold .fish-body,
.fish-gold .fish-tail,
.fish-gold .fish-fin,
.fish-gold .fish-pec { stroke: #4e3a22; }
.fish-gold .fish-shade path { fill: #4e3b22; }
.fish-gold circle { fill: #2c2418; }

.fish-teal .fish-body { fill: #1f6d66; }
.fish-teal .fish-tail,
.fish-teal .fish-fin,
.fish-teal .fish-pec { fill: #14564f; }
.fish-teal .fish-shade path { fill: #0c2e2c; }
.fish-teal circle { fill: #e7f3ef; }

.fish-deep .fish-body { fill: #16324f; }
.fish-deep .fish-tail,
.fish-deep .fish-fin { fill: #0e2438; }
.fish-deep .fish-shade path { fill: #070f18; }
.fish-deep circle { fill: #d5e2ee; }

.fish-a { top: 6%; --swim: 6.4s; animation: fish-forth var(--swim) linear infinite; }
.fish-b { top: 20%; --swim: 7.6s; animation: fish-back var(--swim) linear -1.4s infinite; }
.fish-c { top: 34%; --swim: 5.8s; animation: fish-forth var(--swim) linear -2.6s infinite; }
.fish-d { top: 48%; --swim: 8.2s; animation: fish-back var(--swim) linear -3.5s infinite; }
.fish-e { top: 62%; --swim: 6.8s; animation: fish-forth var(--swim) linear -0.8s infinite; }
.fish-f { top: 14%; --swim: 9s; animation: fish-back var(--swim) linear -5s infinite; }
.fish-g { top: 74%; --swim: 7.2s; animation: fish-forth var(--swim) linear -4.2s infinite; }
.fish-a .fish { width: 17%; }
.fish-b .fish { width: 19%; transform: scaleX(-1); }
.fish-c .fish { width: 15%; }
.fish-d .fish { width: 16%; transform: scaleX(-1); }
.fish-e .fish { width: 13%; }
.fish-f .fish { width: 15%; transform: scaleX(-1); }
.fish-g .fish { width: 14%; }

@keyframes fish-wag {
  from { transform: rotate(-18deg); }
  to { transform: rotate(16deg); }
}

@keyframes fish-forth {
  0% { transform: translate3d(-24%, 8px, 0); }
  50% { transform: translate3d(42%, -10px, 0); }
  100% { transform: translate3d(108%, 6px, 0); }
}

@keyframes fish-back {
  0% { transform: translate3d(108%, -6px, 0); }
  50% { transform: translate3d(40%, 10px, 0); }
  100% { transform: translate3d(-26%, -4px, 0); }
}

.finale-mist {
  position: absolute;
  left: 26%;
  top: 32%;
  width: 48%;
  height: 26%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 253, 248, 0.42), transparent 68%);
  animation: mist-drift 22s ease-in-out infinite alternate;
}

.finale-sun {
  left: 42%;
  top: 40%;
  width: 9%;
  background: #ffe08a;
  box-shadow: 0 0 22px rgba(255, 214, 110, 0.9);
  animation: finale-sun 28s linear infinite;
}

.finale-moon {
  left: 52%;
  top: 38%;
  width: 7%;
  background: #f7f4ee;
  box-shadow: 0 0 14px rgba(247, 244, 238, 0.9);
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle at 70% 36%, transparent 48%, #000 54%);
  mask-image: radial-gradient(circle at 70% 36%, transparent 48%, #000 54%);
  animation: finale-moon 28s linear infinite;
}

.finale .star { animation: finale-star 28s linear infinite; }

@keyframes finale-star {
  0%, 80% { opacity: 0; }
  88%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes finale-sun {
  0% { left: 36%; top: 44%; width: 8%; opacity: 1; background: #f2c14a; box-shadow: 0 0 18px rgba(242, 193, 74, 0.85); }
  28% { left: 44%; top: 36%; width: 9%; opacity: 1; background: #ffe08a; box-shadow: 0 0 22px rgba(255, 214, 110, 0.9); }
  52% { left: 54%; top: 40%; width: 8%; opacity: 1; background: #f0a04a; box-shadow: 0 0 22px rgba(240, 160, 74, 0.85); }
  68% { left: 60%; top: 42%; width: 7%; opacity: 1; background: #e8783a; box-shadow: 0 0 20px rgba(226, 88, 48, 0.7); }
  78% { left: 62%; top: 40%; width: 7%; opacity: 0; }
  90% { left: 34%; top: 42%; width: 7%; opacity: 0; }
  100% { left: 36%; top: 44%; width: 8%; opacity: 1; background: #f2c14a; box-shadow: 0 0 18px rgba(242, 193, 74, 0.85); }
}

@keyframes finale-moon {
  0%, 74% { opacity: 0; }
  84%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

.finale-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.finale-copy {
  position: absolute;
  z-index: 3;
  left: 26%;
  right: 26%;
  top: 26%;
  bottom: 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.finale-copy h2 {
  margin: 0;
  color: #1c1b19;
  font-size: clamp(16px, 5.2cqi, 21px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
}

.finale-to {
  margin-top: 14px;
  color: #1c1b19;
  font-family: var(--serif);
  font-size: clamp(14px, 3.8cqi, 16px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
}

.finale-paper {
  align-self: center;
  max-width: 100%;
  padding: 8px 8px 6px;
  background: rgba(247, 241, 228, 0.94);
}

.finale .town-cta {
  z-index: 4;
  pointer-events: auto;
}

.finale.is-in .town-cta {
  animation: cta-invite 2.4s cubic-bezier(0.22, 0.8, 0.28, 1) 0.45s infinite;
}

.finale.is-in .town-cta::before {
  animation: cta-tide 7.5s linear infinite;
}

.finale.is-in .town-cta::after {
  animation: none;
  opacity: 0;
}

@keyframes cta-tide {
  from { background-position: 0 center; }
  to { background-position: 72px center; }
}

.finale .town-cta:active {
  animation: none;
  transform: translateY(8px);
  background-color: #8e261c;
  box-shadow:
    inset 0 0 0 2px rgba(246, 226, 200, 0.28),
    0 0 0 #3d120f;
}

.finale-say .finale-terms {
  margin-left: -12px;
  margin-right: -12px;
}

.finale .town-cta:active::after { animation: none; opacity: 0; }

.finale-terms {
  display: block;
  margin: 0;
  padding: 12px 8px 0;
  white-space: nowrap;
  border: 0;
  color: rgba(246, 241, 230, 0.72);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}


/* ---------- footer / dock ---------- */

.footer {
  padding: 22px 22px 108px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(196, 61, 48, 0.06), transparent 70%),
    #f3ecdf;
  color: var(--sumi);
}

.footer-inner {
  position: relative;
  padding: 26px 16px 18px;
  text-align: center;
  background: #f7f1e4;
  border: 1px solid var(--sumi);
  box-shadow: 4px 4px 0 rgba(28, 27, 25, 0.12);
}

.footer-inner::before,
.footer-inner::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--sumi);
}

.footer-inner::before { top: 6px; }
.footer-inner::after { bottom: 6px; }

.footer-brand {
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--sumi);
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin: 0 auto;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--sumi);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.85;
}

.footer_wrap { margin-top: 0; }

.footer_list {
  margin: 0;
  padding: 6px 0 2px;
  list-style: none;
}

.footer_list li + li {
  border-top: 1px solid rgba(28, 27, 25, 0.16);
}

.footer_list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 8px;
  color: var(--sumi);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

#footer {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--sumi);
  color: #6b6258;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

.join-dock {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(430px, 100%);
  transform: translateX(-50%);
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background:
    linear-gradient(#f7f1e4, #f7f1e4) padding-box;
  border-top: 3px solid #1c1b19;
  box-shadow: inset 0 3px 0 #e7dcc8;
}

.join-dock.visible { display: flex; }

.join-dock span {
  flex: 1;
  min-width: 0;
  color: #1c1b19;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.join-dock a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px 1px;
  overflow: hidden;
  border: 3px solid #1c1b19;
  border-radius: 0;
  background: #c94332;
  color: #fffdf8;
  box-shadow:
    inset 0 0 0 1.5px rgba(246, 226, 200, 0.7),
    3px 3px 0 #3d120f;
  font-family: var(--brush);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.join-dock a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'><g fill='none' stroke='%23f6e2c8' stroke-width='0.9' stroke-linecap='round' opacity='0.55'><path d='M2.2 22.2A21.8 20.6 0 0 1 45.8 22.2'/><path d='M9.8 22.2A14.2 13.4 0 0 1 38.2 22.2'/><path d='M16.4 22.2A7.6 7.2 0 0 1 31.6 22.2'/></g></svg>");
  background-repeat: repeat;
  background-size: 34px 18px;
  background-position: center;
}

.join-dock a:active {
  transform: translate(3px, 3px);
  background: #8e261c;
  box-shadow:
    inset 0 0 0 1.5px rgba(246, 226, 200, 0.35),
    0 0 0 #3d120f;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 80;
  width: min(380px, calc(100% - 28px));
  padding: 14px 16px;
  border-left: 3px solid var(--shu);
  background: var(--sumi);
  color: #f4efe6;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 会員 ---------- */

.member-shell {
  display: none;
  min-height: 420px;
  padding: 56px 22px 40px;
  background: var(--green);
  color: var(--kinari);
}

.member-kicker { font-size: 12px; letter-spacing: 0.16em; }

.member-shell h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 9cqi, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.member-shell p { margin-top: 12px; font-size: 14px; line-height: 1.8; }

.member-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.member-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--kinari);
  color: var(--green);
  font-weight: 700;
}

.member-only,
.menu .member-only { display: none; }

.phone.member .guest-only,
body.member .menu .guest-only,
.phone.member ~ .menu .guest-only { display: none; }

.phone.member .mini-join.member-only,
body.member .mini-join.member-only { display: inline-flex; }

.phone.member ~ .menu .member-only,
.phone.member .menu .member-only,
body.member .menu .member-only { display: flex; }

.phone.member .member-only.member-shell {
  display: flex;
  flex-direction: column;
}

.phone.member .join-dock { display: none !important; }

@media (hover: hover) {
  .btn-shu:hover { background: #a83228; }
  .btn-sumi:hover { background: #000; }
  .genre-row:hover b,
  .path:hover b { color: #ffe9c8; }
  .path-food:hover b { color: #fff; }
}

/* ---------- 文字の動き ---------- */

.hook { position: relative; z-index: 2; background: var(--kinari); }

.dots { position: relative; z-index: 2; background: var(--kinari); }

.sample { position: relative; z-index: 1; }

.poster.is-exit {
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, -24px, 0);
}

.poster-aini.is-arrive .poster-kanji span:first-child {
  animation: aini-sei 0.85s cubic-bezier(0.22, 0.8, 0.2, 1) backwards;
}

.poster-aini.is-arrive .poster-kanji span:last-child {
  animation: aini-niku 0.95s cubic-bezier(0.22, 0.8, 0.2, 1) 0.12s backwards;
}

.poster-shita.is-arrive .poster-kanji span:first-child {
  animation: shita-kyo 0.8s cubic-bezier(0.22, 0.8, 0.2, 1) backwards;
}

.poster-shita.is-arrive .poster-kanji span:last-child {
  animation: shita-ka 0.7s cubic-bezier(0.22, 0.8, 0.2, 1) 0.16s backwards;
}

.poster-shiba.is-arrive .poster-kanji span:first-child {
  animation: shiba-zan 0.8s cubic-bezier(0.22, 0.8, 0.2, 1) backwards;
}

.poster-shiba.is-arrive .poster-kanji span:last-child {
  animation: shiba-ku 0.75s cubic-bezier(0.22, 0.8, 0.2, 1) 0.14s backwards;
}

.poster-you.is-arrive .poster-kanji span:first-child {
  animation: you-you 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) backwards;
}

.poster-you.is-arrive .poster-kanji span:last-child {
  animation: you-ku 0.65s cubic-bezier(0.22, 0.8, 0.2, 1) 0.2s backwards;
}

.poster-stage.is-revealed .poster-yomi {
  animation: yomi-in 0.7s cubic-bezier(0.22, 0.8, 0.2, 1) 0.12s backwards;
}

.poster-stage.is-revealed .poster-note {
  animation: note-in 0.5s ease 0.26s backwards;
}

.poster-shiba .poster-kanji span { transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.2, 1); }

.poster-stage.is-revealed .poster-shiba .poster-kanji span:first-child { transform: translateY(-4px); }

.poster-stage.is-revealed .poster-shiba .poster-kanji span:last-child { transform: translateY(6px); }

.specimen-kicker,
.specimen-word {
  opacity: 0;
  transform: translateY(-28px);
}

.specimen.is-in .specimen-kicker,
.specimen.is-in .specimen-word {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease 0.18s, transform 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) 0.12s;
}

.specimen.is-in .specimen-yomi { transition-delay: 0.42s; }

.essay > * {
  opacity: 0;
  transform: translateY(12px);
}

.essay.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.essay.is-in > :nth-child(2) { transition-delay: 0.08s; }
.essay.is-in > :nth-child(3) { transition-delay: 0.14s; }
.essay.is-in > :nth-child(4) { transition-delay: 0.2s; }
.essay.is-in > :nth-child(5) { transition-delay: 0.26s; }

.slip-word span:first-child { opacity: 0; transform: translateY(-16px); }

.slip.is-in .slip-word span:first-child {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.8s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.daily.is-revealed .slip-word span:first-child {
  transform: translateY(-8px);
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.daily.is-revealed .slip-word span:last-child {
  transform: translateY(14px);
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.daily.is-revealed .slip-yomi {
  top: auto;
  bottom: 8%;
  left: 16px;
  width: 72px;
  height: 72px;
  font-size: 20px;
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1) 0.12s;
}

.issue-food { position: relative; z-index: 4; }

.issue-nature,
.issue-season,
.issue-day { position: relative; }

.mem-word,
.mem-yomi,
.mem-note {
  opacity: 0;
  transform: translateY(10px);
}

.mem-hero.is-in .mem-word,
.mem-hero.is-in .mem-yomi,
.mem-hero.is-in .mem-note {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.75s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.mem-hero.is-in .mem-yomi { transition-delay: 0.16s; }
.mem-hero.is-in .mem-note { transition-delay: 0.26s; }

.finale-kicker,
.finale-to,
.finale-copy h2,
.finale-say h2,
.finale-lead,
.finale-cta,
.finale-terms {
  opacity: 0;
  transform: translateY(12px);
}

.finale.is-in .finale-kicker,
.finale.is-in .finale-to,
.finale.is-in h2,
.finale.is-in .finale-lead,
.finale.is-in .btn,
.finale.is-in .finale-cta,
.finale.is-in .finale-terms {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.finale.is-in .finale-to { transition-delay: 0.08s; }
.finale.is-in h2 { transition-delay: 0.16s; }
.finale.is-in .finale-lead { transition-delay: 0.26s; }
.finale.is-in .btn,
.finale.is-in .finale-cta { transition-delay: 0.36s; }
.finale.is-in .finale-terms { transition-delay: 0.46s; }

.switch button,
.option,
.genre-row,
.retry,
.dots button {
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.18s ease;
}

.btn:active,
.text-next:active,
.option:active:not(:disabled) { transform: translateY(1px); }

.genre-row:active { background: rgba(28, 27, 25, 0.05); }

[data-view-panel].is-swap { animation: panel-in 0.4s cubic-bezier(0.22, 0.8, 0.2, 1); }

@keyframes aini-sei {
  from { transform: translate(-14%, -12%); }
  to { transform: none; }
}

@keyframes aini-niku {
  from { transform: translate(12%, 16%); }
  to { transform: none; }
}

@keyframes shita-kyo {
  from { transform: translateX(-8%); }
  to { transform: none; }
}

@keyframes shita-ka {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes shiba-zan {
  from { transform: translateY(-22px); }
  to { transform: none; }
}

@keyframes shiba-ku {
  from { transform: translateY(20px); }
  to { transform: none; }
}

@keyframes you-you {
  from { transform: translateX(-10%); }
  to { transform: none; }
}

@keyframes you-ku {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes yomi-in {
  from { opacity: 0; letter-spacing: 0.32em; }
  to { opacity: 1; letter-spacing: 0.14em; }
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 760px) {
  body {
    padding: 28px 0 48px;
    background: #2a2724;
  }

  .phone { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
}

@container phone (max-width: 360px) {
  .issue-nature { grid-template-columns: 1fr; }
  .issue-nature img { min-height: 240px; height: 240px; }
  .issue-side strong { font-size: 64px; }
  .mem-sanma { grid-template-columns: 1fr; }
  .mem-sanma img { height: 200px; min-height: 0; }
  .poster-yomi { font-size: 24px; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mark-seal.is-on {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
  }

  .mark-x.is-on path { stroke-dashoffset: 0; }

  .specimen-yomi,
  .specimen-word,
  .specimen-kicker { opacity: 1; transform: none; clip-path: none; }

  .essay > *,
  .cas,
  .cas i,
  .cas small,
  .day-a,
  .day-b,
  .day-c,
  .day-d,
  .issue-side strong,
  .mem-word,
  .mem-yomi,
  .mem-note,
  .finale-kicker,
  .finale-to,
  .finale-copy h2,
  .finale-say h2,
  .finale-lead,
  .finale-cta,
  .finale-terms,
  .game-result.is-show .status,
  .game-result.is-show .meaning,
  .game-result.is-show .genre-link {
    opacity: 1;
    transform: none;
  }

  .issue-food img,
  .issue-food.is-in .issue-sheet strong,
  .issue-nature img,
  .issue-season img,
  .season-word,
  .specimen img { clip-path: none; }

  .finale-school .fish-run {
    animation-duration: var(--swim) !important;
    animation-iteration-count: infinite !important;
  }

  .finale-school .fish-tail {
    animation-duration: 0.38s !important;
    animation-iteration-count: infinite !important;
  }

  .finale-art .finale-sky {
    animation-duration: 9s !important;
    animation-iteration-count: infinite !important;
  }

  .finale-art .finale-sky::before {
    animation-duration: 13s !important;
    animation-iteration-count: infinite !important;
  }

  .finale-art .finale-sky::after {
    animation-duration: 11s !important;
    animation-iteration-count: infinite !important;
  }

  .finale-art .finale-sky i {
    animation-duration: var(--d, 9s) !important;
    animation-iteration-count: infinite !important;
  }

  .town-cta::before {
    animation-duration: 7.5s !important;
    animation-iteration-count: infinite !important;
  }

  .kspot-link {
    animation-duration: 2.6s !important;
    animation-iteration-count: infinite !important;
  }

  .kspot-link::after {
    animation-duration: 2.6s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ---------- 漢字ひらめき帖 ---------- */

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.journey,
.glimpse,
.genres { padding: 48px 22px 40px; }

.about h2,
.linger h2,
.promise h2,
.journey h2,
.glimpse h2,
.genres h2,
.flight h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 8cqi, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.linger {
  padding: 32px 18px 28px;
  background: #fffdf8;
  color: var(--sumi);
}

.linger .eyebrow {
  color: var(--shu);
  font-family: var(--brush);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.linger h2 em {
  color: var(--shu);
  font-style: normal;
}

.linger-lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

.about {
  padding: 28px 18px 26px;
  background: var(--kinari);
  color: var(--sumi);
}

.about .eyebrow {
  color: var(--shu);
  font-family: var(--brush);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.about h2 em {
  color: var(--shu);
  font-style: normal;
}

.about-lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
}

.about-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.about-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas: "no title" "no text";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--sumi);
  border-radius: 18px;
  background: var(--paper);
}

.about-steps b {
  grid-area: no;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--shu);
  color: #fffdf8;
  font-family: var(--brush);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-steps strong {
  grid-area: title;
  font-family: var(--brush);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.about-steps span {
  grid-area: text;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.about-end {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--brush);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.promise {
  padding: 22px 16px 18px;
  background-color: #f6e2c8;
  background-image: radial-gradient(circle, rgba(196, 61, 48, 0.22) 1.2px, transparent 1.4px);
  background-size: 13px 13px;
  color: var(--sumi);
}
.promise .eyebrow,
.glimpse .eyebrow,
.genres .eyebrow,
.lv-en { color: var(--shu); }

.qapp-top,
.qapp-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.qapp-top {
  padding: 2px 8px 12px;
  font-family: var(--brush);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.qapp-top b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--shu);
  color: #fffdf8;
  font-family: var(--brush);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  transform: translateY(1px);
}

.qapp-top span { color: #8a5a48; font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; }

.qapp-frame {
  position: relative;
  width: min(236px, 72%);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--sumi);
  border-radius: 28px 28px 22px 28px;
  background: #f3ead8;
}

.qapp-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.qapp-kanji {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 12px;
  width: max-content;
  margin: 0;
  padding: 4px 16px 6px;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 3px 4px 0 var(--shu);
  color: #1c1b19;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  transform: rotate(-3deg);
}

.qapp-kanji[data-len="2"] { font-size: 52px; }
.qapp-kanji[data-len="3"] { font-size: 36px; }

.qapp-seal {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 12px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--shu);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-8deg);
  filter: drop-shadow(2px 3px 0 rgba(28, 27, 25, 0.2));
}

.qapp-seal::before,
.qapp-seal::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 16px;
  background: rgba(255, 253, 248, 0.95);
  border: 5px solid var(--shu);
  border-radius: 20px;
}

.qapp-seal::before { transform: rotate(22deg); }
.qapp-seal::after { transform: rotate(-22deg); }

.qapp-seal.is-on { animation: qapp-stamp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qapp-seal.is-miss { color: #1c1b19; }
.qapp-seal.is-miss::before,
.qapp-seal.is-miss::after { border-color: #1c1b19; }

@keyframes qapp-stamp {
  from { transform: scale(1.35) rotate(14deg); opacity: 0; }
  to { transform: scale(1) rotate(-8deg); opacity: 1; }
}

@media (max-width: 359px) {
  .qapp-kanji[data-len="2"] { font-size: 42px; }
  .qapp-kanji[data-len="3"] { font-size: 30px; }
  .qapp-seal { width: 84px; height: 84px; font-size: 32px; right: 8px; bottom: 8px; }
  .qapp-seal::before,
  .qapp-seal::after { inset: 13px; border-width: 4px; border-radius: 16px; }
}

.sample-lead { margin-top: 8px; }

.sample-after {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--brush);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.7;
}

@media (max-width: 359px) {
  .sample-after { font-size: 15px; }
  .openpost-lead { font-size: 14px; }
}

.promise .qapp { margin-top: 12px; }

.promise .qapp-frame {
  width: 100%;
  aspect-ratio: 5 / 4;
}

.qapp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.qapp-count {
  margin: 0;
  flex: 0 0 auto;
  color: #8a5a48;
  font-family: var(--brush);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.qapp-kicker {
  margin: 0;
  text-align: left;
  font-family: var(--brush);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.qapp-kicker b {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px 3px;
  border-radius: 999px;
  background: var(--shu);
  color: #fffdf8;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.qapp-quiz {
  margin-top: 12px;
  padding: 12px 10px 12px;
  border: 3px solid var(--sumi);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 4px 5px 0 #e7c4a4;
}

.qapp-ask {
  margin: 0;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #eadfce;
  text-align: center;
  font-family: var(--brush);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: nowrap;
}

@container (min-width: 380px) {
  .qapp-ask { font-size: 17px; letter-spacing: 0.02em; }
}

.qapp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.qapp-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 2px solid var(--sumi);
  border-radius: 999px;
  background: #fff6e8;
  box-shadow: 0 4px 0 #efc7a2;
  color: var(--sumi);
  font-family: var(--brush);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 359px) {
  .qapp-option {
    padding: 8px 6px;
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

.qapp-option:disabled { opacity: 1; }
.qapp-option.is-correct {
  background: #e25b3a;
  color: #fffdf8;
  border-color: var(--sumi);
  box-shadow: 0 4px 0 #8e261c;
}
.qapp-option.is-wrong {
  background: #f3ece4;
  color: #a3988c;
  border-color: #d5cdc2;
  box-shadow: none;
}

.qapp-note {
  margin: 10px 4px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.qapp-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 3px solid var(--sumi);
  border-radius: 0;
  background: #c94332;
  box-shadow: 0 4px 0 #3d120f;
  color: #fffdf8;
  font-family: var(--brush);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.qapp-next:active {
  transform: translateY(4px);
  background: #8e261c;
  box-shadow: 0 0 0 #3d120f;
}

.qapp-end {
  padding: 6px 2px 2px;
  text-align: center;
}

.qapp-end .eyebrow {
  color: var(--shu);
}

.qapp-end h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 8cqi, 36px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.qapp-end h3 em {
  color: var(--shu);
  font-style: normal;
}

.qapp-end > p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
}

.qapp-end .town-cta {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin: 18px 0 0;
  animation: none;
}

.qapp-again {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 2px solid var(--sumi);
  border-radius: 0;
  background: transparent;
  color: var(--sumi);
  font-family: var(--brush);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.qapp-again:active {
  transform: translateY(2px);
  background: #f3ead8;
}

.promise.is-end .sample-after { display: none; }

.qapp-picks {
  padding: 12px 14px 18px;
  border-radius: 0 0 24px 24px;
}

.qapp-picks p {
  margin: 0;
  color: #8a5a48;
  font-family: var(--brush);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.qapp-picks div { display: flex; gap: 8px; margin-top: 10px; }

.qapp-picks a {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 42px;
  border: 2px solid var(--shu);
  border-radius: 999px;
  background: #fff6e8;
  color: var(--shu);
  font-family: var(--brush);
  font-size: 15px;
  font-weight: 600;
}

.journey {
  padding: 28px 14px 22px;
  background-color: #efe4cf;
  background-image: radial-gradient(circle, rgba(49, 86, 66, 0.2) 1.2px, transparent 1.4px);
  background-size: 13px 13px;
  color: var(--sumi);
}
.journey .eyebrow { color: var(--green); font-family: var(--brush); font-size: 14px; letter-spacing: 0.08em; }
.journey h2 em { color: var(--shu); font-style: normal; }
.flight .eyebrow,
.flight h2 em { color: #f0c9a0; font-style: normal; }
.journey-lead,
.flight-lead,
.glimpse-lead,
.genres-lead { margin-top: 14px; }

.journey-rail {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.journey-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  padding: 8px;
  border: 2px solid var(--sumi);
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 5px 6px 0 #e25a3c;
}

.journey-rail li:nth-child(even) .journey-card { box-shadow: 5px 6px 0 var(--green); }

.journey-card img {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  align-self: center;
  border: 2px solid var(--sumi);
  border-radius: 12px;
}

.journey-name {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 2px 8px;
  min-width: 0;
  min-height: 56px;
  padding: 2px 4px;
}

.journey-card b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  background: var(--shu);
  color: #fffdf8;
  font-family: var(--brush);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.journey-card strong {
  display: inline;
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.journey-card em {
  flex-basis: 100%;
  display: block;
  margin: 0;
  color: var(--sumi);
  font-family: var(--brush);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.journey-card p { display: contents; }

.journey-card p a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border: 1.5px solid var(--sumi);
  border-radius: 12px;
  background: #fff6e8;
  box-shadow: 0 2px 0 #efc7a2;
  color: var(--sumi);
  font-family: var(--brush);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
}

.journey-card p a:nth-child(1) { grid-column: 2; grid-row: 2; }
.journey-card p a:nth-child(2) { grid-column: 1; grid-row: 3; }
.journey-card p a:nth-child(3) { grid-column: 2; grid-row: 3; }
.journey-card p a:nth-child(4) { grid-column: 1; grid-row: 4; }
.journey-card p a:nth-child(5) { grid-column: 2; grid-row: 4; }

.journey-card p a::after { content: none; }

.levels { background: var(--kinari); }

.lv { padding: 28px 22px 32px; border-top: 1px solid var(--line); scroll-margin-top: 68px; }

.lv-no {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--shu);
  line-height: 1;
}

.lv-en { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }

.lv h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.lv > p { margin-top: 8px; color: var(--muted); }

.lv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.lv-tags a {
  padding: 8px 12px;
  border: 1px solid var(--sumi);
  font-size: 13px;
  font-weight: 700;
}

.flight { padding: 48px 22px 32px; background: #141311; color: var(--kinari); }

.flight-route {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.flight-route i { font-style: normal; color: var(--shu); }

.flight-play { margin-top: 18px; padding: 18px; background: var(--ai); }
.flight-play .btn { margin-top: 12px; }

.flight-how { margin-top: 28px; }

.flight-how h3 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
}

.flight-how ol { list-style: none; margin: 0; padding: 0; }

.flight-how li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid rgba(245, 240, 230, 0.22);
}

.flight-how b { font-family: var(--serif); letter-spacing: 0.04em; }

.flight-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.glimpse {
  background-color: #e7eef2;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 11px,
    rgba(36, 59, 85, 0.07) 11px 12px
  );
}

.glimpse .eyebrow {
  font-family: var(--brush);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.glimpse h2 em { color: var(--shu); font-style: normal; }

.glimpse-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.glimpse-list details {
  border: 2px solid var(--sumi);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 5px 6px 0 #e25a3c;
}

.glimpse-list li:nth-child(2) details { box-shadow: 5px 6px 0 var(--green); }
.glimpse-list li:nth-child(3) details { box-shadow: 5px 6px 0 #c86a3c; }

.glimpse-list summary {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 12px 12px 12px;
  list-style: none;
  cursor: pointer;
}

.glimpse-list summary::-webkit-details-marker { display: none; }
.glimpse-list summary::marker { content: ""; }

.glimpse-pic {
  grid-column: 1;
  width: 52px;
  height: 52px;
  border: 2px solid var(--sumi);
  border-radius: 50%;
  object-fit: cover;
}

.glimpse-kanji {
  grid-column: 2;
  font-family: var(--display);
  font-size: clamp(22px, 6.4cqi, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.glimpse-guess {
  grid-column: 3;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.glimpse-open {
  grid-column: 4;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1.5px solid var(--sumi);
  border-radius: 999px;
  background: #fff6e8;
  box-shadow: 0 2px 0 #efc7a2;
  font-family: var(--brush);
  font-size: 14px;
  line-height: 1;
}

.glimpse-close {
  display: none;
  grid-column: 4;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1.5px solid var(--sumi);
  border-radius: 999px;
  background: var(--sumi);
  color: var(--kinari);
  font-family: var(--brush);
  font-size: 14px;
  line-height: 1;
}

.glimpse-list details[open] .glimpse-open { display: none; }
.glimpse-list details[open] .glimpse-close { display: inline; }

.glimpse-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  margin: 0 14px 14px 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(28, 27, 25, 0.28);
}

.glimpse-answer b {
  font-family: var(--brush);
  font-size: 28px;
  font-weight: 600;
  color: var(--shu);
  line-height: 1;
}

.glimpse-answer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.glimpse-end { margin-top: 20px; }

.glimpse-end strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.genres { background: var(--kinari); }
.genre-group { margin-top: 26px; }

.genre-group h3 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--sumi);
  font-family: var(--serif);
  font-size: 20px;
}

.genre-group h3 span { color: var(--shu); }
.genres .genre-row { min-height: 56px; }

.footer-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--kinari);
}

.spotgame {
  padding: 0;
  background: #1b1612;
}

.tally,
.openpost {
  padding: 48px 22px 40px;
}

.tally {
  padding: 0 0 36px;
  background: #e5efe6;
}

.tally-pic {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
  border-bottom: 2px solid var(--sumi);
}

.tally-body {
  padding: 22px 22px 0;
}

.tally h2,
.openpost h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 8cqi, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.tally h2 em,
.openpost h2 em {
  color: var(--shu);
  font-style: normal;
}

.tally .eyebrow,
.openpost .eyebrow {
  color: var(--shu);
  font-family: var(--brush);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.tally {
  background: #e5efe6;
}

.tally-lead,
.openpost-lead {
  margin-top: 14px;
}

.tally-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.tally-counts li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 2px 10px;
  border: 2px solid var(--sumi);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 3px 4px 0 #e25a3c;
}

.tally-counts li:nth-child(2) { box-shadow: 3px 4px 0 var(--green); }
.tally-counts li:nth-child(3) { box-shadow: 3px 4px 0 #c86a3c; }
.tally-counts li:nth-child(4) { box-shadow: 3px 4px 0 var(--sumi); }

.tally-counts b {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.tally-counts span {
  font-family: var(--brush);
  font-size: 13px;
}

.tally .btn,
.openpost .btn {
  margin-top: 18px;
}

.tally-note,
.openpost-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.openpost {
  background: #f3e6d0;
}

.openpost-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px 12px;
  align-items: end;
}

.openpost-pic {
  width: 108px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid var(--sumi);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 4px 5px 0 #243b55;
  transform: rotate(3deg);
}

.openpost-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.openpost-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--sumi);
  border-radius: 18px;
  background: #fff6e8;
}

.openpost-list b {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.openpost-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.openpost-seal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  font-family: var(--brush);
  font-size: 13px;
  font-style: normal;
}

.finale-to { margin-top: 14px; font-weight: 700; letter-spacing: 0; }
.finale-copy > p { margin-top: 10px; }
.finale-terms { display: block; margin-top: 0; border: 0; font-size: 11px; font-weight: 500; line-height: 1.6; }

.finale.is-in .finale-cta:active {
  transform: translateY(8px);
  background-color: #8e261c;
}

/* 漢字間違い探し。見た目は .kspot の枠の中だけ。 */
.kspot,
.kspot *,
.kspot *::before,
.kspot *::after {
  box-sizing: border-box;
}

.kspot {
  --kspot-sumi: #1c1b19;
  --kspot-kinari: #f5f0e6;
  --kspot-paper: #fffdf8;
  --kspot-shu: #c43d30;
  --kspot-green: #315642;
  --kspot-kaki: #c86a3c;
  --kspot-gold: #c9a15b;
  --kspot-muted: #5e584e;
  container-type: inline-size;
  container-name: kspot;
  position: relative;
  width: 100%;
  padding: 22px 18px 28px;
  border: 0;
  border-radius: 0;
  background-color: #1b1612;
  background-image:
    repeating-linear-gradient(60deg, rgba(201, 161, 91, 0.07) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-60deg, rgba(201, 161, 91, 0.05) 0 1px, transparent 1px 18px);
  box-shadow: inset 8px 0 0 #c43d30, inset -8px 0 0 #c43d30;
  color: #f5f0e6;
  font-family: inherit;
  line-height: 1.4;
}

.kspot::before {
  content: "";
  display: block;
  height: 12px;
  margin: -22px -18px 16px;
  background: repeating-linear-gradient(
    90deg,
    #c43d30 0 16px,
    #f3ead8 16px 20px,
    #1c1b19 20px 36px,
    #f3ead8 36px 40px
  );
}

.kspot [hidden] {
  display: none !important;
}

.kspot-top {
  padding: 2px 4px 12px;
}

.kspot-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: #f0c9a0;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.kspot-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #e25a3c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgba(226, 90, 60, 0.8);
  color: #e25a3c;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  transform: rotate(-14deg);
}

.kspot-top h2 {
  margin: 4px 0 0;
  color: #fffdf8;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(32px, 9cqi, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.kspot-top h2 em {
  color: #e25a3c;
  font-style: normal;
}

.kspot-rule {
  margin: 10px 0 0;
  color: rgba(245, 240, 230, 0.78);
  font-size: 14px;
}

.kspot-select-label,
.kspot-note,
.kspot-result-kicker,
.kspot-result-level,
.kspot-reco-title,
.kspot-now,
.kspot-score,
.kspot-time {
  margin: 0;
}

.kspot-select,
.kspot-play,
.kspot-result {
  margin-top: 18px;
  padding: 14px 12px 12px;
  border: 2px solid var(--kspot-gold);
  border-radius: 2px;
  background: #241c16;
  box-shadow: 0 0 0 5px #1b1612, 0 0 0 7px #8d332b;
}

.kspot-select-label {
  margin: 0 2px 10px;
  color: #f5f0e6;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 15px;
  text-align: center;
}

.kspot-pic {
  position: relative;
  margin: 0 0 12px;
  overflow: hidden;
  background: #14110e;
}

.kspot-pic img {
  display: block;
  width: 100%;
  height: auto;
}

.kspot-pic-board {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #1c1b19;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.kspot-pic-board b {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: calc(var(--s, 5.4) * 1cqi);
  transform: translate(-50%, -50%) rotate(var(--r));
}

.kspot-pic-board .is-odd {
  color: #fff6ec;
}

.kspot-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.kspot-levels button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-height: 176px;
  margin: 0;
  padding: 12px 4px 10px;
  border: 2px solid var(--kspot-sumi);
  border-radius: 2px;
  background:
    radial-gradient(circle, rgba(28, 27, 25, 0.07) 0.7px, transparent 0.85px) 0 0 / 6px 6px,
    #fffdf8;
  color: var(--kspot-sumi);
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--kspot-shu);
}

.kspot-levels button:last-child {
  border-bottom: 2px solid var(--kspot-sumi);
}

.kspot-levels button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--kspot-shu);
}

.kspot-rank {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border: 2px solid var(--kspot-shu);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4px var(--kspot-shu);
  color: var(--kspot-shu);
  font-family: "Kaisei Decol", "Yu Mincho", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.kspot-levels button:nth-child(2) .kspot-rank,
.kspot-levels button:nth-child(3) .kspot-rank {
  background: transparent;
  color: var(--kspot-shu);
}

.kspot-levels b {
  display: block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.kspot-levels small {
  display: block;
  margin-top: 0;
  color: var(--kspot-muted);
  font-size: 11px;
  line-height: 1.3;
}

.kspot-levels em {
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #9a2f26;
  border-radius: 2px;
  background: var(--kspot-shu);
  color: #fffdf8;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.kspot-hud {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(201, 161, 91, 0.45);
  border-radius: 0;
  background: transparent;
  color: #fffdf8;
}

.kspot-now {
  padding: 1px 7px;
  border: 1px solid var(--kspot-gold);
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.kspot-score,
.kspot-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.kspot-score {
  text-align: center;
}

.kspot-score b,
.kspot-time b {
  font-family: "Kaisei Decol", "Yu Mincho", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.kspot-time.is-low b,
.kspot-time.is-penalty b,
.kspot-note.is-penalty {
  color: var(--kspot-shu);
}

.kspot-note {
  min-height: 1.4em;
  margin-bottom: 8px;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 14px;
}

.kspot-note.is-penalty {
  font-weight: 700;
}

.kspot-board {
  display: grid;
  grid-template-columns: repeat(var(--kspot-cols, 4), minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  padding: 7px;
  border: 3px solid #6e4b2c;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.28), transparent 42%),
    #d7b07a;
}

.kspot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--kspot-sumi);
  border-radius: 1px;
  background: var(--kspot-paper);
  color: var(--kspot-sumi);
  font-family: "Kaisei Decol", "Yu Mincho", serif;
  font-size: clamp(16px, calc(48cqi / var(--kspot-cols, 4)), 34px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.kspot-cell:focus-visible,
.kspot-levels button:focus-visible,
.kspot-retry:focus-visible,
.kspot-back:focus-visible,
.kspot-quit:focus-visible,
.kspot-link:focus-visible {
  outline: 2px solid var(--kspot-shu);
  outline-offset: 2px;
}

.kspot-cell.is-wrong {
  background: #f8e4e1;
  border-color: var(--kspot-shu);
  color: var(--kspot-shu);
}

.kspot-cell.is-hit {
  background: var(--kspot-sumi);
  border-color: var(--kspot-sumi);
  color: var(--kspot-kinari);
}

.kspot-quit,
.kspot-back {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: rgba(245, 240, 230, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.kspot-result {
  padding-top: 4px;
  text-align: center;
}

.kspot-result-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.kspot-result-level {
  margin-top: 4px;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 16px;
}

.kspot-result-score {
  margin: 4px 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.kspot-result-score b {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-right: 6px;
  border: 2px solid var(--kspot-gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(201, 161, 91, 0.7);
  font-family: "Kaisei Decol", "Yu Mincho", serif;
  font-size: clamp(40px, 12cqi, 56px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  vertical-align: middle;
}

.kspot-reco {
  margin: 0 0 12px;
  padding: 12px;
  border: 2px solid var(--kspot-sumi);
  border-radius: 2px;
  background:
    radial-gradient(circle, rgba(28, 27, 25, 0.06) 0.7px, transparent 0.85px) 0 0 / 6px 6px,
    var(--kspot-kinari);
  color: var(--kspot-sumi);
  text-align: left;
}

.kspot-reco-title {
  margin-bottom: 10px;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-align: center;
}

.kspot-links {
  display: grid;
  gap: 8px;
}

.kspot-link,
.kspot-link-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 2px;
  background: var(--kspot-paper);
  color: var(--kspot-sumi);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.kspot-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "badge name arrow";
  align-items: center;
  column-gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border: 2px solid var(--kspot-sumi);
  box-shadow: 0 3px 0 #c9a15b;
  animation: kspot-invite 2.6s ease-in-out infinite;
}

.kspot-link:active {
  animation: none;
  transform: translateY(3px);
  box-shadow: 0 0 0 #c9a15b;
}

.kspot-link::after {
  grid-area: arrow;
}

.kspot-reco-level {
  grid-area: badge;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: var(--kspot-shu);
  color: #fffdf8;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.kspot-link-name {
  grid-area: name;
  min-width: 0;
  white-space: nowrap;
}

@container kspot (max-width: 330px) {
  .kspot-link {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "badge badge"
      "name arrow";
    row-gap: 6px;
  }
  .kspot-reco-title { font-size: 18px; }
  .kspot-link-name { font-size: 15px; }
}

.kspot-link::after {
  content: "\2192";
  color: var(--kspot-shu);
  font-size: 20px;
  animation: kspot-arrow 2.6s ease-in-out infinite;
}

@keyframes kspot-invite {
  0%, 68%, 100% { transform: translateY(0); box-shadow: 0 3px 0 #c9a15b; }
  80% { transform: translateY(-6px); box-shadow: 0 9px 0 #c9a15b; }
}

@keyframes kspot-arrow {
  0%, 68%, 100% { transform: translateX(0); }
  80% { transform: translateX(6px); }
}

.kspot-link-label {
  border: 1px dashed rgba(28, 27, 25, 0.28);
  font-weight: 500;
}

.kspot-actions {
  display: grid;
  gap: 4px;
}

.kspot-retry {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid #9a2f26;
  border-radius: 2px;
  background: var(--kspot-shu);
  letter-spacing: 0.16em;
  color: #fffdf8;
  font: inherit;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 18px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .kspot-cell:active {
    transform: none;
  }
}

/* ヒーロー。切り絵の原画と、漢字の線描き。LP本体には当てない。 */
@property --s {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.film.town-hero {
  position: relative;
  background: #f5f0e6;
  color: #1c1b19;
}
.town-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #100e0c;
  overflow: hidden;
}

.member-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #100e0c;
  overflow: hidden;
}

.member-hero-bg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url("/images/hero-member-hole.png?v=1");
  mask-image: url("/images/hero-member-hole.png?v=1");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}

.member-air,
.member-stage .kiri-parts {
  z-index: 2;
}

.member-air {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes member-bird {
  0% { left: 78%; top: 8%; opacity: 0; transform: scaleX(1) rotate(-6deg); }
  12% { left: 64%; top: 11%; opacity: 1; transform: scaleX(1) rotate(-3deg); }
  40% { left: 40%; top: 7%; opacity: 1; transform: scaleX(1) rotate(3deg); }
  62% { left: 12%; top: 12%; opacity: 1; transform: scaleX(1) rotate(-2deg); }
  74% { left: -4%; top: 9%; opacity: 0; transform: scaleX(1); }
  75% { left: -2%; top: 14%; opacity: 0; transform: scaleX(-1) rotate(4deg); }
  88% { left: 36%; top: 10%; opacity: 1; transform: scaleX(-1); }
  100% { left: 78%; top: 8%; opacity: 0; transform: scaleX(-1); }
}
@keyframes member-bird-b {
  0% { left: 4%; top: 18%; opacity: 0; transform: scaleX(-1) rotate(5deg); }
  16% { left: 18%; top: 15%; opacity: 1; transform: scaleX(-1) rotate(2deg); }
  46% { left: 42%; top: 19%; opacity: 1; transform: scaleX(-1) rotate(-3deg); }
  70% { left: 68%; top: 14%; opacity: 1; transform: scaleX(-1) rotate(3deg); }
  82% { left: 86%; top: 17%; opacity: 0; transform: scaleX(-1); }
  83% { left: 84%; top: 20%; opacity: 0; transform: scaleX(1) rotate(-4deg); }
  100% { left: 4%; top: 18%; opacity: 0; transform: scaleX(1); }
}
@keyframes member-bird-c {
  0% { left: 62%; top: 22%; opacity: 0; transform: scaleX(1) rotate(-4deg); }
  18% { left: 48%; top: 20%; opacity: 1; transform: scaleX(1) rotate(-1deg); }
  48% { left: 24%; top: 23%; opacity: 1; transform: scaleX(1) rotate(3deg); }
  70% { left: 6%; top: 19%; opacity: 0; transform: scaleX(1); }
  71% { left: 8%; top: 21%; opacity: 0; transform: scaleX(-1) rotate(3deg); }
  90% { left: 40%; top: 18%; opacity: 1; transform: scaleX(-1); }
  100% { left: 62%; top: 22%; opacity: 0; transform: scaleX(-1); }
}

.member-stage .flake {
  opacity: 0.9;
  animation: hira var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
}

.member-stage .flake-leaf {
  animation: leaf-drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
}

.member-hero-logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 37%;
  width: min(50%, 204px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.member-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.phone.member .town-stage,
body.member .town-stage { display: none; }

.phone.member .member-stage.member-only,
body.member .member-stage.member-only { display: block; }
.world-sky,
.kiri-frames {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-sky { z-index: 0; background: #f6e7c8; }
.sky {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.sky-morn {
  background: linear-gradient(180deg, #7eafd0 0%, #c5dff2 16%, #d7e9f6 34%, #e4f0f8 50%, #d5e4ea 100%);
  animation: hour-morn 32s linear infinite;
}
.sky-noon {
  background: linear-gradient(180deg, #fffdf8 0%, #fff3df 28%, #ffe6be 52%, #f6d29a 100%);
  animation: hour-noon 32s linear infinite;
}
.sky-eve {
  background: linear-gradient(180deg, #c4472e 0%, #e25830 14%, #f0a04a 28%, #f8d39a 42%, #e07038 70%, #b84228 100%);
  animation: hour-eve 32s linear infinite;
}
.sky-night {
  background:
    radial-gradient(ellipse 46% 30% at 50% 33%, rgba(244, 247, 251, 0) 52%, rgba(27, 51, 86, 0.62) 100%),
    linear-gradient(180deg, #243e68 0%, #6e96c0 14%, #e7f0f8 24%, #f4f7fb 32%, #f7f9fc 42%, #c5d7ea 52%, #6d92bc 64%, #3e5e8c 76%, #243e68 88%, #1b3356 100%);
  animation: hour-night 32s linear infinite;
}
.art-mood {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: url("/images/hero-mood-mask.png?v=1");
  mask-image: url("/images/hero-mood-mask.png?v=1");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.art-morn,
.art-noon,
.art-eve,
.art-night {
  animation: none;
  opacity: 0;
}
.kiri-frames { z-index: 1; }
.kira {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 0;
  width: 9px;
  height: 9px;
  pointer-events: none;
  animation: kira-twinkle var(--t, 2.4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.kira::before,
.kira::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff6d0, #fff6d0) center / 1.2px 100% no-repeat,
    linear-gradient(#fff6d0, #fff6d0) center / 100% 1.2px no-repeat;
  filter: drop-shadow(0 0 3px rgba(255, 214, 120, 0.95));
}
.kira::before { transform: rotate(45deg); }
.kira-sm { width: 6px; height: 6px; }
.kira-lg { width: 14px; height: 14px; }
.kira-lg::before,
.kira-lg::after {
  background:
    linear-gradient(#fff6d0, #fff6d0) center / 1.6px 100% no-repeat,
    linear-gradient(#fff6d0, #fff6d0) center / 100% 1.6px no-repeat;
}
@keyframes kira-twinkle {
  0%, 100% { transform: translate(-50%, -50%) scale(0.15); opacity: 0; }
  28% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  46% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.25; }
  62% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
  80% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
}
.kiri-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: none;
}
.lum,
.star {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
}
.orb {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.sun {
  left: 44%;
  top: 28%;
  width: 9%;
  background: #ffe08a;
  box-shadow: 0 0 22px rgba(255, 214, 110, 0.9);
  animation: sun-run 32s linear infinite;
}
.moon {
  left: 42%;
  top: 32%;
  width: 7.5%;
  background: #f7f4ee;
  box-shadow: 0 0 14px rgba(247, 244, 238, 0.9);
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle at 70% 36%, transparent 48%, #000 54%);
  mask-image: radial-gradient(circle at 70% 36%, transparent 48%, #000 54%);
  animation: moon-run 32s linear infinite;
}
.star {
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  animation: star-night 32s linear infinite;
}
.star::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(#fffdf8, #fffdf8) center / 1.5px 72% no-repeat,
    linear-gradient(#fffdf8, #fffdf8) center / 72% 1.5px no-repeat;
  filter: drop-shadow(0 0 2px rgba(255, 253, 248, 0.95));
  animation: star-twinkle var(--t, 2.4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.star-sm { width: 11px; height: 11px; }
.star-lg { width: 24px; height: 24px; }
.star-lg::after {
  background:
    linear-gradient(#fffdf8, #fffdf8) center / 2px 100% no-repeat,
    linear-gradient(#fffdf8, #fffdf8) center / 100% 2px no-repeat,
    radial-gradient(circle, #fffdf8 0 1.5px, transparent 2.5px) center / 100% 100% no-repeat;
}
.sky-bird {
  position: absolute;
  width: 13%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  animation: bird-fly 18s ease-in-out infinite;
}
.sky-bird-b {
  width: 9%;
  animation-name: bird-fly-b;
  animation-duration: 23s;
  animation-delay: -9s;
}
.sky-bird-c {
  width: 7%;
  animation-name: bird-fly-c;
  animation-duration: 15s;
  animation-delay: -4s;
}
.member-stage .sky-bird { animation-name: member-bird; width: 14%; }
.member-stage .sky-bird-b {
  width: 9%;
  animation-name: member-bird-b;
  animation-duration: 23s;
  animation-delay: -9s;
}
.member-stage .sky-bird-c {
  width: 7%;
  animation-name: member-bird-c;
  animation-duration: 15s;
  animation-delay: -4s;
}
.cho {
  position: absolute;
  width: 13%;
  z-index: 2;
  pointer-events: none;
  color: #1c1b19;
  animation: cho-fly 16s ease-in-out infinite;
}
.cho svg { display: block; width: 100%; height: auto; overflow: visible; }
.cho .wing { fill: currentColor; stroke: #c6a36a; stroke-width: 1.6; stroke-linejoin: round; }
.cho .feel { fill: currentColor; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.cho .wl,
.cho .wr {
  transform-box: fill-box;
  animation: cho-flap 0.66s ease-in-out infinite;
}
.cho .wl { transform-origin: 100% 42%; }
.cho .wr { transform-origin: 0% 42%; animation-delay: -0.02s; }
.cho-shu { color: #c43d30; width: 10%; animation-name: cho-fly-b; animation-duration: 13s; animation-delay: -5s; }
.cho-shu .wing { stroke: #3d120f; }
.cho-shu .wl,
.cho-shu .wr { animation-duration: 0.5s; }
.cho-kin { color: #f3d48a; width: 11%; animation-name: cho-fly-c; animation-duration: 11s; animation-delay: -2s; }
.cho-kin .wing { stroke: #1c1b19; }
.cho-kin .wl,
.cho-kin .wr { animation-duration: 0.84s; }
.tonbo { width: 18%; animation-name: tonbo-fly; animation-duration: 18s; animation-delay: -8s; }
.tonbo .wing { fill: rgba(246, 231, 192, 0.88); stroke: #1c1b19; stroke-width: 1.15; }
.tonbo .body { fill: #1c1b19; stroke: #c6a36a; stroke-width: 1; }
.tonbo .wu,
.tonbo .wd {
  transform-box: fill-box;
  animation: tonbo-flap 0.22s ease-in-out infinite;
}
.tonbo .wu { transform-origin: 50% 100%; }
.tonbo .wd { transform-origin: 50% 0%; animation-delay: -0.04s; }
.member-stage .cho { animation-name: member-cho; }
.member-stage .cho { width: 14%; }
.member-stage .cho-shu { width: 11%; animation-name: member-cho-b; animation-duration: 13s; animation-delay: -5s; }
.member-stage .cho-kin { width: 8%; animation-name: member-cho-c; animation-duration: 11s; animation-delay: -2s; }
.member-stage .tonbo { width: 16%; animation-name: member-tonbo; animation-duration: 18s; animation-delay: -8s; }
@keyframes cho-flap {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.14); }
}
@keyframes tonbo-flap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.2); }
}
@keyframes cho-fly {
  0%, 100% { left: 30%; top: 18%; opacity: 1; transform: rotate(-12deg); }
  50% { left: 38%; top: 23%; transform: rotate(10deg); }
}
@keyframes cho-fly-b {
  0%, 100% { left: 66%; top: 32%; opacity: 1; transform: rotate(8deg); }
  50% { left: 70%; top: 37%; transform: rotate(-6deg); }
}
@keyframes cho-fly-c {
  0%, 100% { left: 44%; top: 16%; opacity: 1; transform: rotate(8deg); }
  50% { left: 52%; top: 20%; transform: rotate(-12deg); }
}
@keyframes tonbo-fly {
  0%, 100% { left: 34%; top: 40%; opacity: 1; transform: rotate(-3deg); }
  50% { left: 48%; top: 43%; transform: rotate(3deg); }
}
@keyframes member-cho {
  0%, 100% { left: 22%; top: 12%; opacity: 1; transform: rotate(-12deg); }
  50% { left: 34%; top: 18%; transform: rotate(10deg); }
}
@keyframes member-cho-b {
  0%, 100% { left: 58%; top: 10%; opacity: 1; transform: rotate(12deg); }
  50% { left: 68%; top: 18%; transform: rotate(-8deg); }
}
@keyframes member-cho-c {
  0%, 100% { left: 42%; top: 6%; opacity: 1; transform: rotate(8deg); }
  50% { left: 52%; top: 12%; transform: rotate(-14deg); }
}
@keyframes member-tonbo {
  0%, 100% { left: 30%; top: 20%; opacity: 1; transform: rotate(-3deg); }
  50% { left: 52%; top: 16%; transform: rotate(3deg); }
}
.frame-a,
.frame-c,
.frame-morn,
.frame-noon,
.art-mood { display: none; }
.frame-b { opacity: 1; animation: none; }
@keyframes mist-drift {
  from { transform: translate3d(2%, -2%, 0); }
  to { transform: translate3d(-9%, 6%, 0); }
}
@keyframes sun-run {
  0% { left: 22%; top: 33%; width: 8%; opacity: 1; background: #f2c14a; box-shadow: 0 0 18px rgba(242, 193, 74, 0.85); }
  24% { left: 48%; top: 31%; width: 9%; opacity: 1; background: #ffe08a; box-shadow: 0 0 22px rgba(255, 214, 110, 0.9); }
  46% { left: 66%; top: 33%; width: 10%; opacity: 1; background: #e8783a; box-shadow: 0 0 24px rgba(226, 88, 48, 0.85); }
  60% { left: 76%; top: 26%; width: 8%; opacity: 0; background: #e8783a; box-shadow: none; }
  94% { left: 14%; top: 26%; width: 8%; opacity: 0; background: #f2c14a; box-shadow: none; }
  100% { left: 22%; top: 33%; width: 8%; opacity: 1; background: #f2c14a; box-shadow: 0 0 18px rgba(242, 193, 74, 0.85); }
}
@keyframes moon-run {
  0%, 66% { opacity: 0; }
  78%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes star-night {
  0%, 62% { opacity: 0; }
  76%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes star-twinkle {
  0%, 100% { transform: scale(0.4); opacity: 0.2; }
  42% { transform: scale(1.35); opacity: 1; }
  58% { transform: scale(0.65); opacity: 0.45; }
  74% { transform: scale(1.2); opacity: 1; }
}
@keyframes bird-fly {
  0% { left: 74%; top: 58%; opacity: 0; transform: scaleX(1) rotate(-6deg); }
  12% { left: 62%; top: 56%; opacity: 1; transform: scaleX(1) rotate(-4deg); }
  38% { left: 42%; top: 54%; opacity: 1; transform: scaleX(1) rotate(4deg); }
  58% { left: 12%; top: 58%; opacity: 1; transform: scaleX(1) rotate(-3deg); }
  70% { left: 2%; top: 56%; opacity: 0; transform: scaleX(1); }
  71% { left: 4%; top: 58%; opacity: 0; transform: scaleX(-1) rotate(4deg); }
  84% { left: 38%; top: 54%; opacity: 1; transform: scaleX(-1); }
  96% { left: 68%; top: 57%; opacity: 1; transform: scaleX(-1) rotate(3deg); }
  100% { left: 74%; top: 58%; opacity: 0; transform: scaleX(-1); }
}
@keyframes bird-fly-b {
  0% { left: 8%; top: 52%; opacity: 0; transform: scaleX(-1) rotate(5deg); }
  14% { left: 18%; top: 51%; opacity: 1; transform: scaleX(-1) rotate(2deg); }
  40% { left: 36%; top: 50%; opacity: 1; transform: scaleX(-1) rotate(-3deg); }
  62% { left: 64%; top: 53%; opacity: 1; transform: scaleX(-1) rotate(4deg); }
  74% { left: 78%; top: 51%; opacity: 0; transform: scaleX(-1); }
  75% { left: 76%; top: 52%; opacity: 0; transform: scaleX(1) rotate(-4deg); }
  88% { left: 46%; top: 50%; opacity: 1; transform: scaleX(1); }
  100% { left: 8%; top: 52%; opacity: 0; transform: scaleX(1); }
}
@keyframes bird-fly-c {
  0% { left: 58%; top: 62%; opacity: 0; transform: scaleX(1) rotate(-4deg); }
  16% { left: 48%; top: 60%; opacity: 1; transform: scaleX(1) rotate(-2deg); }
  46% { left: 28%; top: 59%; opacity: 1; transform: scaleX(1) rotate(3deg); }
  68% { left: 8%; top: 62%; opacity: 0; transform: scaleX(1); }
  69% { left: 10%; top: 60%; opacity: 0; transform: scaleX(-1) rotate(3deg); }
  88% { left: 40%; top: 58%; opacity: 1; transform: scaleX(-1); }
  100% { left: 58%; top: 62%; opacity: 0; transform: scaleX(-1); }
}
.fill-base { animation: hour-base 32s linear infinite; }
@keyframes hour-base {
  0%, 48.5% { opacity: 0; }
  50%, 98.5% { opacity: 1; }
  100% { opacity: 0; }
}
.film.town-hero .world-air { display: none; }

.kiri-sheet {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sheet-mono { opacity: 0; }
.sheet-color { opacity: 0; filter: none; }
.bloom {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.stroke { opacity: 0; }
.weather { opacity: 0; }

.stroke,
.knife {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.bird,
.leaf {
  position: absolute;
  z-index: 2;
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 6px rgba(28, 24, 16, 0.22));
}

.kiri-parts,
.kiri-marks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.part,
.mark,
.glyph,
.petal,
.mover {
  position: absolute;
  left: calc(var(--x) * 100% / 720);
  top: calc(var(--y) * 100% / 1280);
  width: calc(var(--w) * 100% / 720);
  height: auto;
}

.part { opacity: 0; }
.mark { opacity: 0; transition: opacity 0.45s ease; }
.mark.is-lit { opacity: 0.92; }

.glyph,
.mover {
  opacity: 0;
  filter: none;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}

.cluster {
  position: absolute;
  left: calc(var(--x) * 100% / 720);
  top: calc(var(--y) * 100% / 1280);
  width: calc(var(--w) * 100% / 720);
  height: calc(var(--h) * 100% / 1280);
}

.cluster .flyer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cluster .glyph,
.cluster .mark {
  left: calc(var(--lx) * 100% / var(--w));
  top: calc(var(--ly) * 100% / var(--h));
  width: calc(var(--gw) * 100% / var(--w));
}

.cluster .glyph { opacity: 1; }

.bird { top: 2.5%; right: 1%; width: 23%; }
.leaf-a { top: 20%; left: 6%; width: 12%; }
.leaf-b { top: 27%; right: 4%; width: 11%; }
.leaf-c { bottom: 16%; left: 14%; width: 13%; }

.town-ui {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  top: 0;
  bottom: 0;
  text-align: center;
  pointer-events: none;
}

.open-call {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  color: #f5f0e6;
  font-family: var(--serif);
  font-size: clamp(88px, 32cqi, 140px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 28px rgba(245, 240, 230, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.open-q {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  pointer-events: none;
}
.open-yomi,
.open-kanji {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: block;
  margin: 0;
  color: #f5f0e6;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.open-yomi {
  font-size: clamp(64px, 22cqi, 96px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}
.open-kanji {
  font-size: clamp(96px, 34cqi, 148px);
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-shadow: 0 0 28px rgba(245, 240, 230, 0.2);
}

.town-paper {
  position: absolute;
  left: 4%;
  right: 4%;
  top: calc(18.2% + 30px);
  opacity: 1;
}

.town-logo {
  margin: 0;
  opacity: 1;
  line-height: 0;
}
.town-logo img {
  width: auto;
  height: 34cqi;
  max-height: 148px;
  margin: 0 auto;
  filter:
    drop-shadow(0 1px 0 rgba(28, 27, 25, 0.14))
    drop-shadow(0 6px 8px rgba(28, 27, 25, 0.12));
}

.town-logo .ch {
  display: inline-block;
  vertical-align: bottom;
  line-height: 1.15;
}
.town-logo .ch b {
  display: block;
  font-weight: inherit;
  transform: none;
}
.logo-rule {
  display: block;
  width: 28px;
  height: 1px;
  margin: 8px auto 0;
  background: #c43d30;
  transform: scaleX(1);
  transform-origin: center;
}
.town-ask .ln {
  display: block;
}
.town-ask .ln b {
  display: inline-block;
  position: relative;
  left: 0.42em;
  font-weight: inherit;
  transform: none;
}
.town-ask .ch {
  display: inline-block;
  animation: ask-stamp 0.46s cubic-bezier(0.16, 0.84, 0.24, 1) calc(var(--n) * 0.055s) both;
}
.town-ask .ln:nth-child(2) .ch {
  animation-delay: calc(0.52s + var(--n) * 0.05s);
}
.town-logo i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  background: #c94332;
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  vertical-align: 6px;
  opacity: 0;
  transform-origin: center;
}

.town-ask {
  display: block;
  margin: 10px 0 0;
  max-width: none;
  padding: 0;
  background: none;
  color: #1c1b19;
  font-family: var(--serif);
  font-size: clamp(25px, 6.8cqi, 28px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: center;
  opacity: 1;
  transform: none;
  -webkit-text-stroke: 5px #fffdf8;
  paint-order: stroke fill;
  text-shadow:
    0 0 6px #fffdf8,
    0 0 12px #fffdf8,
    0 0 12px #fffdf8,
    0 0 24px rgba(255, 246, 220, 0.95);
}

.town-cta {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84%;
  height: auto;
  min-height: 96px;
  margin: 0 0 0 -42%;
  padding: 16px 14px;
  box-sizing: border-box;
  border: 4px solid #1c1b19;
  border-radius: 0;
  background-color: #c94332;
  background-image: none;
  color: #fffdf8;
  box-shadow:
    inset 0 0 0 2px rgba(246, 226, 200, 0.42),
    0 8px 0 #3d120f;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: none;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}
.town-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'><g fill='none' stroke='%23f6e2c8' stroke-width='0.85' stroke-linecap='round' opacity='0.34'><path d='M2.2 22.2A21.8 20.6 0 0 1 45.8 22.2'/><path d='M9.8 22.2A14.2 13.4 0 0 1 38.2 22.2'/><path d='M16.4 22.2A7.6 7.2 0 0 1 31.6 22.2'/></g></svg>");
  background-repeat: repeat;
  background-size: calc(100% / 7) calc(100% / 4);
  background-position: center center;
}
.film.town-hero.is-settled .town-cta::before {
  animation: cta-tide 7.5s linear infinite;
}

.film.town-hero.is-settled .town-cta::after {
  content: "";
  opacity: 0;
  animation: none;
}
.cta-label {
  position: relative;
  z-index: 1;
  padding: 6px 12px 7px;
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .film.town-hero.is-settled .town-cta:hover {
    animation: none;
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 2px rgba(246, 226, 200, 0.42),
      0 11px 0 #3d120f;
  }
  .film.town-hero.is-settled .town-cta:hover::after { animation: none; opacity: 0; }
}
.film.town-hero.is-settled .town-cta:active {
  animation: none;
  transform: translateY(8px);
  background-color: #8e261c;
  box-shadow:
    inset 0 0 0 2px rgba(246, 226, 200, 0.28),
    0 0 0 #3d120f;
}
.film.town-hero.is-settled .town-cta:active .cta-label { background: transparent; }
.film.town-hero.is-settled .town-cta:active::after { animation: none; opacity: 0; }
.town-cta:focus-visible {
  outline: 2px solid #1c1b19;
  outline-offset: 4px;
}

.kiri-count {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 3.2%;
  margin: 0;
  color: #f5f0e6;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 2px rgba(16, 14, 12, 0.65);
  pointer-events: none;
}

.find {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  pointer-events: none;
}

.find:focus-visible { outline: 2px solid #c94332; outline-offset: 2px; }
.find-ki { left: 6%; top: 8%; width: 28%; height: 16%; }
.find-hayashi { left: 0; top: 36%; width: 26%; height: 16%; }
.find-ame { left: 30%; top: 1%; width: 40%; height: 15%; }
.find-hana { left: 74%; top: 36%; width: 24%; height: 14%; }
.find-tori { left: 72%; top: 12%; width: 26%; height: 16%; }
.find-sakana { left: 58%; top: 70%; width: 34%; height: 14%; }
.find-yama { left: 74%; top: 50%; width: 24%; height: 14%; }
.find-kawa { left: 26%; top: 80%; width: 36%; height: 14%; }

.kiri-toast {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(28, 27, 25, 0.9);
  color: #fffdf8;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}

.town-skip {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(28, 27, 25, 0.28);
  border-radius: 999px;
  background: rgba(246, 241, 230, 0.92);
  color: #1c1b19;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.film.town-hero.is-playing .stroke {
  animation: none;
  opacity: 0;
}

.film.town-hero.is-playing .kiri-sheet {
  transform: none;
  filter: none;
  animation: none;
}
.film.town-hero.is-playing .sheet-mono { opacity: 0; animation: none; }
.film.town-hero.is-playing .sheet-color {
  opacity: 1;
  filter: none;
  animation: none;
}
.film.town-hero.is-playing .paper-spots,
.film.town-hero.is-playing .type-stage { display: none; }
.film.town-hero.is-playing .spot { animation: none; }
.film.town-hero.is-playing .ember,
.film.town-hero.is-playing .lamp-warmth { animation: none; }
.film.town-hero.is-playing .house {
  animation: house-lift 0.4s cubic-bezier(0.45, 0.02, 0.2, 1) 2.58s forwards;
}
.film.town-hero.is-playing .doncho {
  animation: doncho-tug 0.3s ease 2.9s;
}
.film.town-hero.is-playing .doncho-cloth {
  animation: cloth-rise 0.78s cubic-bezier(0.45, 0.02, 0.2, 1) 3.05s forwards;
}
.film.town-hero.is-playing .doncho-bunch {
  animation: bunch-grow 0.78s cubic-bezier(0.45, 0.02, 0.2, 1) 3.05s forwards;
}
.film.town-hero.is-playing .town-paper { opacity: 1; animation: none; }
.film.town-hero.is-playing .open-call { animation: open-call 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards; }
.film.town-hero.is-playing .open-yomi { animation: yomi-show 0.95s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; }
.film.town-hero.is-playing .open-kanji { animation: kanji-stamp 1.12s cubic-bezier(0.2, 0.7, 0.2, 1) 1.62s forwards; }
.film.town-hero.is-playing .town-logo { animation: logo-arrive 0.48s cubic-bezier(0.16, 1, 0.3, 1) 3.6s forwards; }
.film.town-hero.is-playing .logo-rule { animation: rule-draw 0.26s cubic-bezier(0.16, 1, 0.3, 1) 3.88s forwards; }
.film.town-hero.is-playing .town-ask { animation: town-rise 0.32s cubic-bezier(0.16, 1, 0.3, 1) 3.94s forwards; }
.film.town-hero.is-playing .town-cta { animation: cta-set 0.32s cubic-bezier(0.16, 1, 0.3, 1) 4.08s forwards; }
.film.town-hero.is-playing .bird,
.film.town-hero.is-playing .leaf,
.film.town-hero.is-playing .part,
.film.town-hero.is-playing .mover,
.film.town-hero.is-playing .kiri-parts > .glyph,
.film.town-hero.is-playing .kiri-parts > .mover { animation: kiri-show 0.4s ease 1.2s forwards; }

.film.town-hero.is-settled .kiri-sheet {
  transform: none;
  filter: none;
  animation: none;
}
.film.town-hero.is-settled .sheet-mono,
.film.town-hero.is-settled .sheet-color,
.film.town-hero.is-live .sheet-mono,
.film.town-hero.is-live .sheet-color {
  opacity: 0;
  filter: none;
  mask: none;
  animation: none;
}
.film.town-hero.is-live .kiri-sheet {
  transform: none;
  animation: none;
}
.film.town-hero.is-settled .stroke { opacity: 0; animation: none; }
.film.town-hero.is-settled .open-veil,
.film.town-hero.is-settled .paper-spots,
.film.town-hero.is-settled .lamp-warmth,
.film.town-hero.is-settled .type-stage,
.film.town-hero.is-settled .doncho,
.film.town-hero.is-settled .house,
.film.town-hero.is-settled .open-call,
.film.town-hero.is-settled .open-q { visibility: hidden; animation: none; }
.film.town-hero.is-settled .town-paper { opacity: 1; transform: none; animation: none; }
.film.town-hero.is-settled .town-logo { opacity: 1; color: #1c1b19; animation: none; }
.film.town-hero.is-settled .town-logo i { opacity: 1; transform: none; animation: none; }
.film.town-hero.is-settled .town-logo .ch b,
.film.town-hero.is-settled .logo-rule { transform: none; animation: none; }

.film.town-hero.is-settled .town-ask,
.film.town-hero.is-settled .town-cta,
.film.town-hero.is-settled .kiri-count,
.film.town-hero.is-settled .bird,
.film.town-hero.is-settled .leaf,
.film.town-hero.is-settled .part {
  opacity: 1;
  transform: none;
  animation: none;
}

.film.town-hero.is-settled .town-cta,
.film.town-hero.is-settled .find { pointer-events: auto; }

.film.town-hero.is-settled .town-cta {
  animation: cta-invite 2.4s cubic-bezier(0.22, 0.8, 0.28, 1) infinite;
}

.film.town-hero.is-live .weather { opacity: 0; }

.film.town-hero.is-settled .mover,
.film.town-hero.is-settled .kiri-parts > .glyph { opacity: 1; }

.film.town-hero.is-live .mover,
.film.town-hero.is-live .kiri-parts > .glyph {
  animation: nume var(--dur, 7.5s) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: var(--delay, 0s);
}
.world-air,
.world-water {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.world-air {
  inset: -8%;
  background: radial-gradient(ellipse 42% 24% at 48% 20%, rgba(255, 220, 170, 0.28), transparent 70%);
  opacity: 0;
  mix-blend-mode: soft-light;
}
.world-water {
  left: 28%;
  width: 46%;
  bottom: 1%;
  height: 14%;
  opacity: 0;
  background: linear-gradient(100deg, transparent 36%, rgba(232, 244, 248, 0.55) 50%, transparent 64%);
  background-size: 220% 100%;
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 76%, #000 12%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 76%, #000 12%, transparent 74%);
}
.film.town-hero.is-live .world-air {
  animation: air-pass 16s ease-in-out infinite alternate;
}
.film.town-hero.is-live .world-water {
  opacity: 0;
  animation: none;
}
.flake {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 42%;
}
.film.town-hero.is-live .flake {
  animation: hira var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
}
.film.town-hero.is-live .flake-leaf {
  animation: leaf-drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
}
.film.town-hero.is-live .flake-bird {
  animation: bird-drift var(--dur, 11s) ease-in-out var(--delay, 0s) infinite;
}
.film.town-hero.is-live .drop { animation: rain-fall 1.5s linear infinite; }
.film.town-hero.is-live .drop:nth-child(2) { animation-delay: -0.4s; }
.film.town-hero.is-live .drop:nth-child(3) { animation-delay: -0.9s; }
.film.town-hero.is-live .drop:nth-child(4) { animation-delay: -1.2s; }
.film.town-hero.is-live .stream { animation: stream-flow 2.6s linear infinite; }
.film.town-hero.is-live .stream:nth-child(6) { animation-duration: 3.1s; }
.film.town-hero.is-live .stream:nth-child(7) { animation-duration: 2.2s; }
.film.town-hero.is-live .bird { animation: bird-bank 3.4s ease-in-out infinite alternate; }
.film.town-hero.is-live .leaf-a { animation: leaf-sway 4.2s ease-in-out infinite alternate; }
.film.town-hero.is-live .leaf-b { animation: leaf-sway 5s ease-in-out infinite alternate; animation-delay: -1.4s; }
.film.town-hero.is-live .leaf-c { animation: leaf-sway 3.6s ease-in-out infinite alternate; animation-delay: -0.6s; }

.drop {
  stroke: #d7eef0;
  stroke-width: 2.4;
  stroke-dasharray: 0.22 0.78;
}

.stream {
  display: none;
  stroke: rgba(255, 253, 248, 0.72);
  stroke-width: 2.2;
  stroke-dasharray: 0.16 0.28;
}

@keyframes cut-open { to { transform: scale(1); } }
@keyframes spot-on {
  to { -webkit-mask-size: var(--w) var(--h); mask-size: var(--w) var(--h); }
}
@keyframes sheet-wake { to { opacity: 1; } }
@keyframes logo-arrive {
  0% { opacity: 0; transform: translateY(-42%); }
  58% { opacity: 1; transform: translateY(8%); }
  100% { opacity: 1; transform: none; }
}
@keyframes open-call {
  0% { opacity: 0; letter-spacing: 0.42em; text-indent: 0.42em; transform: translateY(-50%) scale(0.94); }
  22% { opacity: 1; letter-spacing: 0.12em; text-indent: 0.12em; transform: translateY(-50%) scale(1); }
  62% { opacity: 1; letter-spacing: 0.12em; text-indent: 0.12em; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; letter-spacing: 0.12em; text-indent: 0.12em; transform: translateY(-50%) scale(1.02); }
}
@keyframes yomi-show {
  0% { opacity: 0; letter-spacing: 0.32em; text-indent: 0.32em; transform: translateY(-50%); }
  24% { opacity: 1; letter-spacing: 0.14em; text-indent: 0.14em; transform: translateY(-50%); }
  68% { opacity: 1; letter-spacing: 0.14em; text-indent: 0.14em; transform: translateY(-50%); }
  100% { opacity: 0; letter-spacing: 0.14em; text-indent: 0.14em; transform: translateY(-50%); }
}
@keyframes kanji-stamp {
  0% { opacity: 0; color: #c43d30; transform: translateY(calc(-50% - 46px)) scale(1.28); }
  14% { opacity: 1; color: #c43d30; transform: translateY(-50%) scale(0.94); }
  24% { opacity: 1; color: #c43d30; transform: translateY(-50%) scale(1); }
  58% { opacity: 1; color: #c43d30; transform: translateY(-50%) scale(1); }
  70% { opacity: 1; color: #f5f0e6; transform: translateY(-50%) scale(1); }
  84% { opacity: 1; color: #f5f0e6; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; color: #f5f0e6; transform: translateY(-50%) scale(1); }
}
@keyframes house-lift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-108%); }
}
@keyframes doncho-tug {
  0%, 100% { transform: translateY(0); }
  42% { transform: translateY(1.8%); }
}
@keyframes cloth-rise {
  0% { transform: translateY(0); }
  12% { transform: translateY(1.4%); }
  100% { transform: translateY(-112%); }
}
@keyframes bunch-grow {
  0%, 10% { height: 0; opacity: 1; }
  72% { height: 14%; opacity: 1; }
  100% { height: 7%; opacity: 0; }
}
@keyframes ember-on {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes dusk-lift {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes hero-in {
  0% { transform: scale(1.08); filter: brightness(1.25); }
  100% { transform: none; filter: none; }
}
@keyframes sea-away {
  to { opacity: 0; transform: scale(1.12); }
}
@keyframes kanji-pop {
  0% { opacity: 0; transform: scale(0.15) rotate(var(--tilt)); }
  62% { opacity: 1; transform: scale(1.16) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes focus-pull {
  0% { filter: brightness(1.75) saturate(1.3); transform: scale(1.26) rotate(-2.6deg); }
  42% { filter: brightness(1.08) saturate(1.05); transform: scale(0.955) rotate(0.7deg); }
  70% { filter: none; transform: scale(1.018) rotate(-0.15deg); }
  100% { filter: none; transform: scale(1) rotate(0deg); }
}
@keyframes develop-out { to { opacity: 0; } }
@keyframes ch-rise {
  0% { transform: translateY(-150%) rotate(calc((var(--i) - 3) * 5deg)) scale(1.45); }
  58% { transform: translateY(14%) rotate(calc((var(--i) - 3) * -1.5deg)) scale(0.92); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes line-rise {
  0% { transform: translateY(120%); }
  62% { transform: translateY(-10%); }
  100% { transform: translateY(0); }
}
@keyframes rule-draw {
  0% { transform: scaleX(0); }
  65% { transform: scaleX(1.35); }
  100% { transform: scaleX(1); }
}
@keyframes seal-stamp {
  0% { opacity: 0; transform: scale(1.85) rotate(-14deg); }
  55% { opacity: 1; transform: scale(0.88) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes cta-set {
  0% { opacity: 0; transform: translateY(24px) scale(0.84); }
  62% { opacity: 1; transform: translateY(-4px) scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes cta-invite {
  0%, 14% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 0 0 2px rgba(246, 226, 200, 0.42),
      0 8px 0 #3d120f;
  }
  30% {
    transform: translateY(-18px) scale(1.035);
    box-shadow:
      inset 0 0 0 2px rgba(246, 226, 200, 0.95),
      0 26px 0 #3d120f;
  }
  44% {
    transform: translateY(3px) scale(0.985, 0.93);
    box-shadow:
      inset 0 0 0 2px rgba(246, 226, 200, 0.42),
      0 3px 0 #3d120f;
  }
  58% {
    transform: translateY(-9px) scale(1.015);
    box-shadow:
      inset 0 0 0 2px rgba(246, 226, 200, 0.72),
      0 17px 0 #3d120f;
  }
  72%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 0 0 2px rgba(246, 226, 200, 0.42),
      0 8px 0 #3d120f;
  }
}
@keyframes cta-gloss {
  0%, 10% { transform: translateX(-180%) skewX(-18deg); opacity: 0; }
  22% { opacity: 1; }
  46% { transform: translateX(430%) skewX(-18deg); opacity: 1; }
  54%, 100% { transform: translateX(430%) skewX(-18deg); opacity: 0; }
}
@keyframes logo-in { to { opacity: 1; } }
@keyframes sheet-arrive {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@keyframes color-arrive {
  0% { opacity: 0; filter: saturate(0) brightness(1.65) contrast(0.92); }
  38% { opacity: 0.62; filter: saturate(0.55) brightness(1.18) contrast(0.98); }
  100% { opacity: 1; filter: saturate(1) brightness(1) contrast(1); }
}
@keyframes ember {
  0% { opacity: 0; }
  28% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes filament {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.05) scaleX(0.5); filter: blur(0); }
  16% { opacity: 0.95; transform: translateX(-50%) scaleY(0.46) scaleX(1); }
  30% { opacity: 1; transform: translateX(-50%) scaleY(1) scaleX(1.4); }
  52% { opacity: 0.72; transform: translateX(-50%) scaleY(1) scaleX(10); filter: blur(2px); }
  78% { opacity: 0.2; transform: translateX(-50%) scaleY(1) scaleX(36); filter: blur(10px); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1) scaleX(70); filter: blur(18px); }
}
@keyframes pane-l { to { transform: translateX(-108%); } }
@keyframes pane-r { to { transform: translateX(108%); } }
@keyframes light-wash {
  0% { opacity: 0; top: -8%; }
  18% { opacity: 0.9; }
  100% { opacity: 0; top: 96%; }
}
@keyframes kiri-draw { to { stroke-dashoffset: 0; } }
@keyframes kiri-show { to { opacity: 1; } }
@keyframes kiri-hide { to { opacity: 0; } }
@keyframes logo-ink { to { color: #1c1b19; } }
@keyframes town-rise { to { opacity: 1; transform: none; } }
@keyframes ask-stamp {
  0% { opacity: 0; transform: translateY(-0.72em) scale(1.7) rotate(-8deg); filter: blur(5px); }
  58% { opacity: 1; transform: translateY(0.08em) scale(0.92) rotate(1.5deg); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rain-fall { to { stroke-dashoffset: -1; } }
@keyframes stream-flow { to { stroke-dashoffset: -1; } }

@keyframes bird-bank {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(7px) rotate(6deg); }
}

@keyframes leaf-sway {
  from { transform: rotate(-8deg); }
  to { transform: rotate(10deg) translateY(4px); }
}

@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  62% { transform: translateY(12px); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

@keyframes maple-sway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(6deg); }
}

@keyframes petal-drift {
  from { transform: translate(0, 0) rotate(-8deg); }
  to { transform: translate(-8px, 5px) rotate(9deg); }
}

@keyframes nume {
  0% { transform: translate3d(0, 0, 0) rotate(var(--a, -2deg)) scale(1); }
  38% { transform: translate3d(var(--dx, 4px), var(--dy, -5px), 0) rotate(var(--b, 3deg)) scale(1.035); }
  71% { transform: translate3d(calc(var(--dx, 4px) * -0.6), calc(var(--dy, -5px) * -0.45), 0) rotate(var(--c, -1.5deg)) scale(0.985); }
  100% { transform: translate3d(0, 0, 0) rotate(var(--a, -2deg)) scale(1); }
}

@keyframes hour-morn {
  0%, 18% { opacity: 1; }
  28%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hour-noon {
  0%, 18% { opacity: 0; }
  28%, 42% { opacity: 1; }
  54%, 100% { opacity: 0; }
}
@keyframes hour-eve {
  0%, 42% { opacity: 0; }
  54%, 68% { opacity: 1; }
  80%, 100% { opacity: 0; }
}
@keyframes hour-night {
  0%, 68% { opacity: 0; }
  80%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes pose-a {
  0%, 10% { opacity: 1; }
  22%, 88% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes pose-b {
  0%, 10% { opacity: 0; }
  22%, 38% { opacity: 1; }
  50%, 66% { opacity: 0; }
  78%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes pose-c {
  0%, 38% { opacity: 0; }
  50%, 66% { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes air-pass {
  0% { opacity: 0.35; transform: translate3d(-2%, 0, 0); }
  100% { opacity: 0.7; transform: translate3d(3%, 1%, 0); }
}
@keyframes water-sheen {
  0% { background-position: 40% 0; }
  100% { background-position: -40% 0; }
}
@keyframes hira-in { to { opacity: 0.88; } }

@keyframes hira-glint {
  0%, 100% { filter: brightness(0.98); }
  50% { filter: brightness(1.06); }
}

@keyframes hira {
  0%, 100% { opacity: 0.8; transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { opacity: 0.9; transform: translate3d(var(--dx), var(--dy), 0) rotate(7deg); }
}
@keyframes leaf-drift {
  0%, 100% { opacity: 0.9; transform: translate3d(0, 0, 0) rotate(-11deg); }
  50% { opacity: 1; transform: translate3d(var(--dx), var(--dy), 0) rotate(13deg); }
}
@keyframes bird-drift {
  0%, 100% { opacity: 0.94; transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { opacity: 1; transform: translate3d(var(--dx), var(--dy), 0) rotate(6deg); }
}

.open-veil { display: none; }
.paper-spots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.spot {
  --s: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: ellipse(calc(var(--rx) * var(--s)) calc(var(--ry) * var(--s)) at var(--cx) var(--cy));
}
.ember {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%) scale(0.08);
}
.lamp-warmth { display: none; }
.ember {
  opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 214, 160, 0.22) 0%, transparent 70%);
}
.spot-ki, .ember-ki { --x: 21%; --y: 16%; --cx: 21%; --cy: 16%; --rx: 18%; --ry: 10%; --w: 36%; --h: 20%; --d: 2.95s; }
.spot-ame, .ember-ame { --x: 49%; --y: 11%; --cx: 49%; --cy: 11%; --rx: 18%; --ry: 9%; --w: 36%; --h: 18%; --d: 3.17s; }
.spot-hana, .ember-hana { --x: 81%; --y: 50%; --cx: 81%; --cy: 50%; --rx: 12%; --ry: 10%; --w: 24%; --h: 20%; --d: 3.39s; }
.spot-tori, .ember-tori { --x: 83%; --y: 33%; --cx: 83%; --cy: 33%; --rx: 11%; --ry: 9%; --w: 22%; --h: 18%; --d: 3.59s; }
.spot-hayashi, .ember-hayashi { --x: 14%; --y: 51%; --cx: 14%; --cy: 51%; --rx: 13%; --ry: 10%; --w: 26%; --h: 20%; --d: 3.79s; }
.spot-yama, .ember-yama { --x: 82%; --y: 63%; --cx: 82%; --cy: 63%; --rx: 11%; --ry: 10%; --w: 22%; --h: 20%; --d: 3.97s; }
.spot-sakana, .ember-sakana { --x: 70%; --y: 78%; --cx: 70%; --cy: 78%; --rx: 13%; --ry: 8%; --w: 26%; --h: 16%; --d: 4.13s; }
.spot-kawa, .ember-kawa { --x: 42%; --y: 86%; --cx: 42%; --cy: 86%; --rx: 16%; --ry: 9%; --w: 32%; --h: 18%; --d: 4.29s; }
.doncho {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.house,
.open-call,
.open-q,
.doncho {
  visibility: hidden;
}
.doncho-cloth {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 0;
  height: 108%;
  background: url("/images/doncho-cloth.png?v=1") center / 100% 100% no-repeat;
  box-shadow: 0 22px 28px rgba(0, 0, 0, 0.38);
}
.doncho-bunch {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 0;
  height: 0;
  z-index: 1;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 244, 224, 0.2) 0 1px,
      rgba(0, 0, 0, 0.42) 1px 3px,
      transparent 3px 7px
    ),
    url("/images/doncho-cloth.png?v=1");
  background-repeat: repeat, no-repeat;
  background-size: 100% 7px, 100% 240%;
  background-position: center top, center top;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.46);
}
.type-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.tw {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 12cqi, 56px);
  line-height: 1;
  color: #fffdf8;
  white-space: nowrap;
  opacity: 0;
}
.tw-yomi {
  width: 0;
  overflow: hidden;
  letter-spacing: 0.04em;
  border-right: 2px solid #c43d30;
  box-sizing: content-box;
}
.tw-kanji { letter-spacing: 0.18em; }
@keyframes spot-grow {
  from { --s: 0; }
  to { --s: 1; }
}
@keyframes tw-w3 {
  from { width: 0; opacity: 1; }
  to { width: 3.12em; opacity: 1; }
}
@keyframes tw-fade { to { opacity: 0; } }
@keyframes tw-blink {
  0%, 40% { border-right-color: #c43d30; }
  41%, 70% { border-right-color: transparent; }
  71%, 100% { border-right-color: #c43d30; }
}
@keyframes kanji-swap {
  0% { opacity: 0; }
  18% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes kaigetsu {
  0% { opacity: 0; }
  12% { opacity: 1; }
  46% { opacity: 1; }
  70% { opacity: 0.32; }
  100% { opacity: 0; }
}
.open-pane,
.open-light,
.open-wash,
.open-veil::before { display: none; }
.open-veil::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 42%;
  width: 78%;
  height: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(196, 61, 48, 0.22), transparent 68%);
  opacity: 0;
}
.open-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54%;
  background: #100e0c;
}
.open-pane-l {
  left: 0;
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
}
.open-pane-r {
  right: 0;
  mask-image: linear-gradient(270deg, #000 0%, #000 86%, transparent 100%);
}
.open-light {
  position: absolute;
  left: 50%;
  top: 3%;
  width: 2px;
  height: 94%;
  transform: translateX(-50%) scaleY(0.05);
  transform-origin: center top;
  opacity: 0;
  background: linear-gradient(180deg, transparent, #fff6df 14%, #fff 48%, #fff1d2 82%, transparent);
  box-shadow:
    0 0 14px 2px rgba(255, 236, 190, 0.95),
    0 0 42px 10px rgba(232, 186, 92, 0.4);
}
.open-wash {
  position: absolute;
  left: 0;
  right: 0;
  top: -28%;
  height: 34%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 224, 0.72), transparent);
  mix-blend-mode: screen;
}
.cut-line,
.shears { display: none; }
.cut-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.snip-line {
  fill: none;
  stroke: #f5f0e6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.shears {
  position: absolute;
  z-index: 4;
  width: 78px;
  height: 42px;
  left: 6%;
  top: 4%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.shears .blade { transform-origin: 36px 24px; }

@keyframes shear-run {
  0% { opacity: 1; left: 2%; top: 3%; transform: rotate(12deg); }
  24% { opacity: 1; left: 76%; top: 3%; transform: rotate(12deg); }
  30% { left: 82%; top: 8%; transform: rotate(100deg); }
  52% { left: 82%; top: 84%; transform: rotate(100deg); }
  58% { left: 74%; top: 90%; transform: rotate(190deg); }
  78% { left: 2%; top: 90%; transform: rotate(190deg); }
  84% { left: 0%; top: 80%; transform: rotate(280deg); }
  94% { opacity: 1; left: 4%; top: 4%; transform: rotate(280deg); }
  100% { opacity: 0; left: 10%; top: 0%; transform: rotate(320deg); }
}
@keyframes snip-bite {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(10deg); }
}

@media (max-width: 359px) {
  .town-paper { top: calc(17% + 30px); }
  .town-logo img { height: 32cqi; max-height: 124px; }
  .town-ask { font-size: 22px; letter-spacing: 0; }
  .kiri-count { right: 2%; bottom: 4.2%; }
  .town-cta { width: 90%; margin-left: -45%; min-height: 84px; font-size: 18px; letter-spacing: 0.02em; padding: 12px 8px; }
  .shears { width: 64px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .film.town-hero,
  .film.town-hero.is-playing,
  .film.town-hero.is-live,
  .film.town-hero.is-live .bird,
  .film.town-hero.is-live .leaf,
  .film.town-hero.is-live .drop,
  .film.town-hero.is-live .stream { animation: none !important; }

  .film.town-hero .sheet-mono,
  .film.town-hero .sheet-color {
    opacity: 0 !important;
    mask: none !important;
    animation: none !important;
  }
  .film.town-hero .kiri-frame,
  .film.town-hero .sky,
  .film.town-hero .art-mood,
  .film.town-hero .lum,
  .film.town-hero .star,
  .film.town-hero .star::after { animation: none !important; opacity: 0 !important; }
  .film.town-hero .kira {
    animation: none !important;
    opacity: 0.8 !important;
    transform: translate(-50%, -50%) !important;
  }
  .film.town-hero .frame-b,
  .film.town-hero .fill-base,
  .film.town-hero .sky-noon,
  .film.town-hero .sun { opacity: 1 !important; animation: none !important; }
  .film.town-hero .moon { opacity: 0 !important; animation: none !important; }
  .film.town-hero .sky-bird {
    animation: none !important;
    opacity: 1 !important;
    left: 30%;
    top: 56%;
    transform: none !important;
  }
  .film.town-hero .sky-bird-b { left: 58%; top: 52%; }
  .film.town-hero .sky-bird-c { left: 44%; top: 60%; }
  .film.town-hero .cho {
    animation: none !important;
    opacity: 1 !important;
    left: 22%;
    top: 28%;
    transform: none !important;
  }
  .film.town-hero .cho .wl,
  .film.town-hero .cho .wr,
  .film.town-hero .cho .wu,
  .film.town-hero .cho .wd { animation: none !important; transform: none !important; }
  .film.town-hero .cho-b { left: 68%; top: 34%; }
  .film.town-hero .cho-c { left: 46%; top: 22%; }
  .film.town-hero .tonbo { left: 58%; top: 40%; }

  .film.town-hero .town-logo i,
  .film.town-hero .town-ask,
  .film.town-hero .town-ask .ch,
  .film.town-hero .town-cta,
  .film.town-hero .kiri-count,
  .film.town-hero .bird,
  .film.town-hero .leaf,
  .film.town-hero .part,
  .film.town-hero .mover,
  .film.town-hero .glyph {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .film.town-hero .flake {
    opacity: 0 !important;
    animation: none !important;
  }
  .film.town-hero .kiri-sheet,
  .film.town-hero .world-air,
  .film.town-hero .world-water {
    animation: none !important;
    transform: none !important;
  }
  .film.town-hero .world-air,
  .film.town-hero .world-water { opacity: 0 !important; }

  .film.town-hero .stroke,
  .film.town-hero .shears,
  .film.town-hero .snip-line { opacity: 0 !important; animation: none !important; }
  .film.town-hero .open-veil,
  .film.town-hero .paper-spots,
  .film.town-hero .lamp-warmth,
  .film.town-hero .type-stage,
  .film.town-hero .doncho,
  .film.town-hero .house,
  .film.town-hero .open-call,
  .film.town-hero .open-q { display: none !important; }
  .film.town-hero .weather { opacity: 0 !important; }
  .film.town-hero .town-paper { opacity: 1 !important; transform: none !important; animation: none !important; }
  .film.town-hero .town-logo { opacity: 1 !important; color: #1c1b19 !important; animation: none !important; }
  .film.town-hero .town-logo .ch b,
  .film.town-hero .ln b,
  .film.town-hero .logo-rule { transform: none !important; animation: none !important; }
  .film.town-hero .town-cta,
  .film.town-hero .find { pointer-events: auto !important; }
  .film.town-hero .town-cta::after { animation: none !important; opacity: 0 !important; }
  .film.town-hero .member-stage .sky-bird { top: 10%; left: 34%; }
  .film.town-hero .member-stage .sky-bird-b { top: 16%; left: 58%; }
  .film.town-hero .member-stage .sky-bird-c { top: 20%; left: 22%; }
  .film.town-hero .member-stage .cho { top: 8%; left: 18%; }
  .film.town-hero .member-stage .cho-b { top: 16%; left: 72%; }
  .film.town-hero .member-stage .cho-c { top: 5%; left: 48%; }
  .film.town-hero .member-stage .tonbo { top: 20%; left: 40%; }
}

/* お試し無料ページ。長いボタン文言が枠からはみ出さないようにする */
.trial .town-cta {
  font-size: 16px;
  letter-spacing: 0;
}

.trial .join-dock a {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 0 10px;
}

@media (max-width: 359px) {
  .trial .town-cta {
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .trial .join-dock {
    gap: 8px;
  }

  .trial .join-dock a {
    font-size: 12px;
    letter-spacing: 0;
    padding: 0 8px;
  }
}

/* 初月無料ページ。ボタンの下に翌月以降の月額を置く */
.firstmonth .town-cta {
  font-size: 16px;
  letter-spacing: 0;
}

.firstmonth .town-ui .cta-stack {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 90%;
  margin: 0 0 0 -45%;
  pointer-events: none;
}

.firstmonth .town-ui .cta-stack .town-cta {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin: 0;
  pointer-events: auto;
}

.firstmonth .town-ui .cta-after {
  margin-top: 14px;
}

.firstmonth .cta-after {
  margin: 10px 0 0;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 2px rgba(28, 27, 25, 0.75);
}

.firstmonth .qapp-end .cta-after {
  color: #5e584e;
  text-shadow: none;
}

.firstmonth .finale-say .cta-after {
  margin-top: 14px;
  text-shadow: none;
}

.firstmonth .dock-act {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.firstmonth .join-dock a {
  font-size: 13px;
  letter-spacing: 0;
  padding: 0 10px;
}

.firstmonth .join-dock .cta-after {
  margin: 0;
  color: #5e584e;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-shadow: none;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .firstmonth .town-cta {
    font-size: 14px;
    letter-spacing: 0;
  }

  .firstmonth .cta-after {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}
