/* Tarokuma: ink, paper, sunshine. Illustration is the visual system. */
:root {
  --ink: #212b3c;
  --paper: #fffefa;
  --yellow: #f9d84d;
  --muted: #606572;
  --line: #212b3c24;
  --focus: #bb581c;
  --night: #212b3c;
  --display: "Mochiy Pop One", sans-serif;
  --body: "Zen Maru Gothic", sans-serif;
}
:root[data-theme="dark"] {
  --ink: #f7f0df;
  --paper: #222c3c;
  --muted: #c0c6ce;
  --line: #fffefa38;
  --yellow: #e8c54a;
  --focus: #f9d84d;
  --night: #131e2f;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.9 var(--body);
  letter-spacing: 0.035em;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.04em;
}
h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}
h3 {
  font-size: 22px;
}
button {
  background: none;
}
p + p {
  margin-top: 22px;
}
.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.small-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.small-note,
.quiet-note {
  font-size: 13px;
  color: var(--muted);
}
.quiet-note {
  text-align: center;
  margin-top: 38px;
}
.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 4%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 20px var(--display);
  white-space: nowrap;
}
.brand svg {
  flex: none;
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 900;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.desktop-nav a[aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 40%;
  height: 4px;
  width: 20%;
  background: var(--ink);
  border-radius: 5px;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.theme-symbol {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 5px -4px 0 -1px var(--paper);
  transform: rotate(-30deg);
}
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 900;
}
.menu-lines {
  width: 22px;
  height: 10px;
  border-block: 2px solid;
}
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero-title {
  position: relative;
  padding-top: 48px;
  display: inline-block;
}
.hero-title p {
  font-size: 15px;
  letter-spacing: 0.3em;
  margin-bottom: 5px;
}
.hero h1 {
  font-size: clamp(68px, 9vw, 126px);
  letter-spacing: 0.03em;
  line-height: 1.55;
}
.official-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.hero-scene {
  max-width: 1250px;
  margin: -10px auto 0;
  position: relative;
  min-height: 360px;
}
.bear-button {
  display: block;
  width: min(78%, 980px);
  margin: auto;
  padding: 0;
  transition: transform 0.25s;
}
.bear-button:hover {
  transform: translateY(-5px);
}
.bear-button img {
  width: 100%;
}
.side-note {
  position: absolute;
  text-align: left;
  left: 5%;
  top: 36%;
  font: 18px/2 var(--display);
  z-index: 2;
}
.hero-bubble {
  position: absolute;
  right: 7%;
  top: 8%;
  font: 18px/1.8 var(--display);
  background: var(--paper);
  padding: 16px 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(9deg);
}
.hero-bubble:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 30px;
  width: 15px;
  height: 15px;
  background: var(--paper);
  border-right: 2px solid var(--ink);
  transform: skewY(-35deg);
}
.hero-scroll {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  margin: 4px 0 34px;
  min-height: 44px;
}
.hero-scroll span {
  font-size: 24px;
}
.wander {
  background: var(--yellow);
  color: #212b3c;
  padding: 66px 0 74px;
  border-block: 2px solid #212b3c;
}
.section-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-caption p {
  font-size: 13px;
}
.wander-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.wander-links > a {
  position: relative;
  padding: 0 18px 5px;
  text-align: center;
  border-right: 1px solid #212b3c40;
}
.wander-links > a:first-child {
  border-left: 1px solid #212b3c40;
}
.wander-number {
  position: absolute;
  left: 16px;
  top: 0;
  font-size: 11px;
  font-weight: 900;
  writing-mode: vertical-rl;
}
.wander-links img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 18px;
  transition: transform 0.25s;
}
.wander-links a:hover img {
  transform: translateY(-8px) rotate(-3deg);
}
.wander-links h3 {
  font-size: 18px;
  white-space: nowrap;
}
.wander-sub {
  font-size: 12px;
  display: block;
  margin-top: 8px;
}
.wander-arrow {
  display: block;
  font-size: 24px;
  margin-top: 10px;
}
.story-home {
  padding-top: 100px;
  padding-bottom: 100px;
}
.night-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--night);
  color: #fff9e6;
}
.night-poster {
  position: relative;
  overflow: hidden;
}
.night-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.night-feature .night-poster {
  height: 580px;
}
.poster-title {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  text-align: center;
  font: clamp(26px, 3vw, 40px) / 1.8 var(--display);
  color: #fff4ce;
  letter-spacing: 0.14em;
}
.night-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 55px;
}
.night-copy h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  margin: 26px 0;
}
.night-copy p {
  font-size: 15px;
  line-height: 2.2;
}
.light-link {
  display: inline-block;
  border-bottom: 1px solid #fff9e6;
  margin-top: 40px;
  padding: 6px 0;
  font-size: 14px;
}
.story-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}
.story-pair > a > img,
.mini-comic {
  height: 260px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 24px;
}
.mini-comic {
  display: flex;
  gap: 6px;
  padding: 12px 0;
}
.mini-comic img {
  width: calc((100% - 12px) / 3);
  border: 2px solid var(--ink);
  object-fit: contain;
  background: var(--paper);
}
.mini-comic img:nth-child(2) {
  transform: translateY(9px);
}
.story-pair h3 {
  font-size: 21px;
  margin: 10px 0;
}
.text-link {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 900;
}
.text-link span {
  transition: transform 0.2s;
}
.text-link:hover span {
  transform: translateX(5px);
}
.home-play {
  background: var(--yellow);
  color: #212b3c;
  border-block: 2px solid #212b3c;
  overflow: hidden;
}
.home-play .wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 60px 0 100px;
}
.home-play h2 {
  margin-top: 15px;
  font-size: 28px;
}
.play-links {
  min-width: 42%;
  position: relative;
  z-index: 1;
}
.play-link {
  display: flex;
  justify-content: space-between;
  border-block-end: 2px solid #212b3c;
  font: 22px var(--display);
  padding: 24px 0;
}
.play-peek {
  position: absolute;
  bottom: -75px;
  left: 35%;
  width: 240px;
  transform: rotate(-8deg);
}
.site-footer {
  width: min(1120px, calc(100% - 96px));
  margin: auto;
  padding: 55px 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font: 24px var(--display);
}
.footer-brand span {
  display: block;
  font: 12px var(--body);
  margin-top: 16px;
  letter-spacing: 0.12em;
}
.footer-top > img {
  width: 190px;
}
.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 26px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 900;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
}
.footer-bottom small {
  font-size: 10px;
  letter-spacing: 0.08em;
}
.footer-controls {
  display: flex;
  gap: 12px;
}
.footer-controls button {
  font-size: 11px;
  min-height: 44px;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-top: 10px;
}
.breadcrumbs a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.page-heading {
  text-align: center;
  padding: 32px 0 64px;
}
.page-heading h1 {
  font-size: clamp(30px, 4vw, 46px);
}
.page-heading p {
  margin-top: 20px;
  font-size: 14px;
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-bottom: 65px;
}
.original-art {
  text-align: center;
  position: relative;
}
.original-art button {
  display: block;
  width: 100%;
  padding: 25px;
  background: var(--yellow);
  border-radius: 48% 45% 0 0;
}
.original-art img {
  width: 100%;
  max-width: 360px;
  margin: auto;
}
.original-art > span {
  font-size: 12px;
  display: block;
  padding-top: 18px;
}
.about-copy h2 {
  font-size: 28px;
  margin-bottom: 28px;
}
.about-copy p {
  line-height: 2.3;
  font-size: 15px;
}
.about-copy .small-note {
  font-size: 11px;
  color: var(--muted);
}
.pose-gallery {
  padding: 65px 0;
  border-top: 1px solid var(--line);
}
.pose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 30px;
}
.pose-grid button {
  padding: 12px 10px 22px;
}
.pose-grid img {
  height: 270px;
  object-fit: contain;
  transition: transform 0.25s;
}
.pose-grid button:hover img {
  transform: rotate(-4deg);
}
.pose-grid span {
  font-size: 14px;
  display: block;
  margin-top: 16px;
}
.page-end {
  text-align: center;
  padding: 30px 0 100px;
}
.stories-index {
  padding-bottom: 80px;
}
.story-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.story-row:first-child {
  padding-top: 0;
}
.movie-row .row-art {
  height: 610px;
  max-width: 450px;
}
.row-copy h2 {
  margin: 16px 0 24px;
  font-size: 30px;
}
.row-copy p {
  font-size: 14px;
}
.row-copy .text-link {
  margin-top: 28px;
}
.manga-row .row-art {
  order: 2;
}
.comic {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
}
.comic-panel {
  border: 2px solid var(--ink);
  position: relative;
  padding: 24px 0 0;
  background: var(--paper);
}
.comic-panel > span {
  position: absolute;
  top: 12px;
  right: 10px;
  font: 12px var(--display);
  writing-mode: vertical-rl;
}
.comic-panel img {
  width: 100%;
  padding-top: 30px;
}
.planning-note {
  font-size: 12px !important;
  color: var(--muted);
  line-height: 2;
  margin-top: 30px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.story-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 40px 0 70px;
  align-items: center;
}
.detail-movie .detail-art {
  max-width: 470px;
}
.detail-copy h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 20px 0 28px;
}
.detail-copy > p {
  font-size: 14px;
  line-height: 2.2;
}
.detail-copy .detail-lead {
  font-weight: 900;
  font-size: 16px;
  margin: 25px 0;
}
.detail-copy .text-link {
  margin-top: 28px;
}
.detail-anime,
.detail-manga {
  grid-template-columns: 1fr;
  gap: 50px;
}
.detail-anime .detail-art img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
}
.detail-anime .detail-copy,
.detail-manga .detail-copy {
  max-width: 680px;
  margin: auto;
}
.detail-manga .comic {
  width: min(780px, 100%);
  margin: auto;
}
.detail-manga .comic-panel > span {
  font-size: 22px;
  top: 22px;
  right: 22px;
}
.detail-manga .comic-panel img {
  padding-top: 65px;
}
.other-stories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding: 30px 0 90px;
  border-top: 1px solid var(--line);
}
.other-stories h2 {
  font-size: 18px;
  width: 100%;
}
.other-stories a {
  font-size: 13px;
}
.game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 0 65px;
  max-width: 1000px;
}
.game-illustration {
  position: relative;
}
.game-illustration > img {
  width: 100%;
}
.game-illustration > p {
  position: absolute;
  top: 3%;
  right: 0;
  font: 20px var(--display);
  transform: rotate(8deg);
}
.fortune-booth,
.lottery-booth {
  text-align: center;
}
.fortune-booth h2,
.lottery-booth h2 {
  font-size: 25px;
  margin: 14px 0 20px;
}
.lottery-booth > p {
  font-size: 14px;
}
.primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  min-height: 58px;
  padding: 13px 28px;
  font-weight: 900;
  font-size: 15px;
  transition:
    transform 0.2s,
    background 0.2s;
  max-width: 100%;
}
.primary:hover:not(:disabled) {
  background: var(--yellow);
  color: #212b3c;
  transform: translateY(-2px);
}
.primary:disabled {
  opacity: 0.65;
}
.primary span {
  font-size: 20px;
}
.play-note {
  font-size: 11px !important;
  line-height: 1.9 !important;
  margin-top: 20px;
  color: var(--muted);
}
#fortune-stage {
  position: relative;
  min-height: 245px;
  display: grid;
  place-items: center;
  margin: 20px 0 30px;
}
.unopened-slip {
  border: 2px solid var(--ink);
  padding: 18px 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  min-height: 220px;
  transform: rotate(-4deg);
}
.unopened-slip > span {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.unopened-slip > strong {
  writing-mode: vertical-rl;
  font: 26px var(--display);
  letter-spacing: 0.2em;
}
.fortune-slip {
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -8px;
  background: var(--paper);
  padding: 24px 28px;
  max-width: 100%;
  width: 100%;
  min-height: 245px;
}
.fortune-slip:not([hidden]) ~ * {
  display: none;
}
#fortune-stage:has(.fortune-slip:not([hidden])) .unopened-slip {
  display: none;
}
.fortune-slip strong {
  display: block;
  font: 30px var(--display);
  margin: 14px 0;
}
.fortune-date,
.fortune-color {
  font-size: 11px;
}
.fortune-message {
  font-size: 14px;
}
.fortune-color {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.color-chip {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #212b3c55;
  flex: none;
}
.kuji-art {
  height: 470px;
  display: grid;
  place-items: center;
}
.sample-card {
  position: absolute;
  width: 260px;
  height: 355px;
  background: #fffefa;
  border: 2px solid #212b3c;
  color: #212b3c;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 6px 6px 0 #212b3c15;
}
.sample-card img {
  height: 240px;
  width: 100%;
  object-fit: contain;
}
.sample-card > span {
  font: 14px var(--display);
}
.sample-card > small {
  font-size: 11px;
}
.sample-front {
  transform: rotate(9deg);
  left: 27%;
  top: 65px;
}
.sample-back {
  transform: rotate(-13deg);
  left: 0;
  top: 35px;
  background: var(--yellow);
}
.sample-back img {
  height: 300px;
}
.lottery-booth .primary {
  margin-top: 30px;
  min-width: 260px;
}
.collection {
  padding: 50px 0 75px;
  border-top: 1px solid var(--line);
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.collection-heading h2 {
  font-size: 24px;
}
.collection-heading > span {
  font-size: 13px;
  font-weight: 900;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.collection-card {
  border: 1px dashed var(--ink);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px;
  color: var(--muted);
}
.collection-card > span {
  font: 40px var(--display);
  opacity: 0.35;
}
.collection-card small {
  font-size: 11px;
  margin-top: 12px;
}
.collection-card.found {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.collection-card.found img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.collection-card.found small {
  margin-top: 0;
}
.modal-open {
  overflow: hidden;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 55px 40px 35px;
  max-height: 90dvh;
  width: min(600px, calc(100% - 32px));
  overflow: auto;
}
dialog::backdrop {
  background: #111d2eb8;
}
.close-button {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 44px;
  height: 44px;
  font: 32px/1 var(--body);
  z-index: 3;
}
.dialog-gallery {
  text-align: center;
}
.dialog-gallery h2 {
  font-size: 24px;
}
.dialog-gallery img {
  width: 100%;
  max-height: 58dvh;
  object-fit: contain;
  margin: 12px auto;
}
.dialog-gallery p {
  font-size: 12px;
}
.dialog-kuji {
  text-align: center;
}
.dialog-kuji .eyebrow {
  font-size: 12px;
}
.dialog-kuji h2 {
  font-size: 24px;
  margin-top: 10px;
}
.dialog-kuji > img {
  height: min(36dvh, 290px);
  object-fit: contain;
  width: 100%;
  margin: 10px auto;
}
.dialog-kuji .card-message {
  font-size: 13px;
  max-width: 360px;
  margin: 10px auto 24px;
}
.card-count {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
#menu-dialog {
  width: min(840px, calc(100% - 32px));
  padding: 55px 35px 30px;
}
#menu-title {
  font-size: 28px;
  text-align: center;
}
#main-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 30px 0;
}
#main-nav > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
#main-nav img {
  height: 140px;
  object-fit: contain;
}
#main-nav a[aria-current="page"] > span {
  border-bottom: 2px solid currentColor;
}
#menu-dialog > p {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
#tap-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}
.tap-burst {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}
.tap-burst img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tap-face {
  animation: tap-pop 1.1s ease-out forwards;
}
.tap-ring {
  animation: tap-ring 1s ease-out forwards;
}
.tap-ring.second {
  animation-delay: 0.08s;
}
.image-fallback {
  display: block;
  font-size: 12px;
  padding: 20px;
}
.is-greeting {
  animation: greet 0.65s ease-in-out;
}
.is-busy {
  animation: thinking 0.35s ease-in-out infinite alternate;
}
.result-new {
  animation: result 0.35s ease-out;
}
@keyframes tap-pop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(var(--rotation));
  }
  18% {
    opacity: 1;
    transform: scale(1) rotate(var(--rotation));
  }
  60% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(0.85) rotate(var(--rotation));
  }
}
@keyframes tap-ring {
  0% {
    opacity: 0.6;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes greet {
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}
@keyframes thinking {
  to {
    transform: rotate(3deg);
  }
}
@keyframes result {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
:root[data-motion="off"] * {
  animation: none !important;
  transition: none !important;
}
:root[data-motion="off"] {
  scroll-behavior: auto;
}
@media (min-width: 1500px) {
  .hero-scene {
    max-width: 1350px;
  }
  .bear-button {
    width: 1000px;
  }
  .hero-title {
    padding-top: 60px;
  }
  .hero-scroll {
    margin-top: 10px;
    margin-bottom: 40px;
  }
}
@media (max-width: 1050px) {
  .desktop-nav {
    gap: 18px;
  }
  .site-header {
    gap: 15px;
  }
  .brand {
    font-size: 17px;
  }
  .wrap,
  .site-footer {
    width: calc(100% - 64px);
  }
  .side-note {
    left: 4%;
    font-size: 15px;
  }
  .hero-bubble {
    right: 4%;
    font-size: 16px;
  }
  .hero-scene {
    min-height: 0;
  }
  .night-copy {
    padding: 35px;
  }
  .night-feature .night-poster {
    height: 500px;
  }
  .story-pair {
    gap: 30px;
  }
  .wander-links h3 {
    font-size: 16px;
  }
  .wander-links img {
    height: 150px;
  }
  .story-row {
    gap: 40px;
  }
  .game-layout {
    gap: 35px;
  }
  .sample-card {
    width: 220px;
    height: 310px;
  }
  .sample-card img {
    height: 210px;
  }
  .sample-back img {
    height: 260px;
  }
  .kuji-art {
    height: 400px;
  }
  .story-detail {
    gap: 40px;
  }
  .about-intro {
    gap: 40px;
  }
  .pose-grid img {
    height: 230px;
  }
}
@media (max-width: 760px) {
  .wrap,
  .site-footer {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 76px;
    padding: 12px 20px;
    justify-content: space-between;
  }
  .brand {
    font-size: 17px;
    gap: 5px;
  }
  .brand svg {
    width: 32px;
    height: 32px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 4px;
  }
  .theme-toggle {
    width: 40px;
  }
  .menu-toggle {
    gap: 7px;
    font-size: 10px;
  }
  .menu-lines {
    width: 18px;
  }
  .hero-title {
    padding-top: 42px;
  }
  .hero-title p {
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .hero h1 {
    font-size: clamp(53px, 12.6vw, 90px);
    line-height: 1.7;
  }
  .official-label {
    font-size: 10px;
  }
  .hero-scene {
    margin-top: 78px;
  }
  .bear-button {
    width: 94%;
    max-width: 600px;
  }
  .side-note {
    font-size: 13px;
    top: -34px;
    left: 7%;
    line-height: 1.8;
  }
  .hero-bubble {
    font-size: 13px;
    top: -56px;
    right: 9%;
    padding: 13px 20px;
  }
  .hero-scroll {
    font-size: 11px;
    margin: 16px 0 25px;
    gap: 16px;
  }
  .wander {
    padding: 40px 0 42px;
  }
  .section-caption {
    display: block;
    margin-bottom: 26px;
  }
  .section-caption h2 {
    font-size: 24px;
  }
  .section-caption p {
    font-size: 12px;
    margin-top: 12px;
  }
  .wander-links {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }
  .wander-links > a {
    padding: 0 12px 8px;
  }
  .wander-links > a:nth-child(3) {
    border-left: 1px solid #212b3c40;
  }
  .wander-links img {
    height: 145px;
    margin-bottom: 12px;
  }
  .wander-links h3 {
    font-size: 16px;
  }
  .wander-sub {
    font-size: 10px;
  }
  .wander-arrow {
    font-size: 21px;
    margin-top: 6px;
  }
  .wander-number {
    left: 9px;
    font-size: 9px;
  }
  .story-home {
    padding-block: 60px;
  }
  .night-feature {
    grid-template-columns: 1fr;
  }
  .night-feature .night-poster {
    height: 510px;
  }
  .poster-title {
    font-size: 30px;
    top: 13%;
    line-height: 1.9;
  }
  .night-copy {
    padding: 30px 30px 40px;
  }
  .night-copy h3 {
    font-size: 25px;
    margin: 18px 0;
  }
  .night-copy p {
    font-size: 13px;
  }
  .light-link {
    margin-top: 23px;
  }
  .story-pair {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  .story-pair > a > img,
  .mini-comic {
    height: auto;
    min-height: 190px;
    max-height: 280px;
    margin-bottom: 18px;
  }
  .mini-comic {
    height: 220px;
  }
  .story-pair h3 {
    font-size: 20px;
  }
  .quiet-note {
    font-size: 11px;
    line-height: 2;
  }
  .home-play .wrap {
    display: block;
    padding: 38px 0 55px;
  }
  .home-play h2 {
    font-size: 23px;
  }
  .play-links {
    margin-top: 22px;
    max-width: 85%;
  }
  .play-link {
    font-size: 19px;
    padding: 19px 0;
  }
  .play-peek {
    width: 145px;
    left: auto;
    right: -30px;
    bottom: -22px;
    opacity: 0.35;
  }
  .site-footer {
    padding-top: 25px;
  }
  .footer-brand {
    font-size: 22px;
  }
  .footer-top > img {
    width: 130px;
  }
  .footer-nav {
    gap: 2px 20px;
    padding-bottom: 15px;
  }
  .footer-nav a {
    font-size: 11px;
  }
  .footer-bottom {
    display: block;
    padding-top: 15px;
  }
  .footer-controls {
    margin-top: 8px;
    gap: 15px;
  }
  .breadcrumbs {
    font-size: 10px;
    gap: 8px;
    line-height: 1.7;
    padding-top: 5px;
    min-height: 54px;
  }
  .page-heading {
    padding: 25px 0 40px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 12px;
    margin-top: 14px;
  }
  .about-intro {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 40px;
  }
  .original-art {
    max-width: 320px;
    margin: auto;
  }
  .original-art button {
    padding: 20px;
  }
  .about-copy {
    padding: 0 12px;
  }
  .about-copy h2 {
    font-size: 24px;
    margin-bottom: 22px;
  }
  .about-copy p {
    font-size: 14px;
  }
  .pose-gallery {
    padding: 40px 0;
  }
  .pose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
  }
  .pose-grid button {
    padding: 5px 0 15px;
  }
  .pose-grid img {
    height: 170px;
    width: 100%;
  }
  .pose-grid span {
    font-size: 11px;
    margin-top: 10px;
  }
  .page-end {
    padding: 20px 0 55px;
  }
  .story-row {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0;
  }
  .movie-row .row-art {
    height: 520px;
    max-width: none;
  }
  .row-copy h2 {
    font-size: 26px;
    margin: 10px 0 16px;
  }
  .row-copy .text-link {
    margin-top: 16px;
  }
  .manga-row .row-art {
    order: 0;
  }
  .comic-panel > span {
    font-size: 11px;
    right: 5px;
  }
  .comic-panel img {
    padding-top: 20px;
  }
  .row-copy p {
    font-size: 13px;
  }
  .stories-index {
    padding-bottom: 30px;
  }
  .story-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 10px 0 50px;
  }
  .detail-art {
    width: 100%;
  }
  .detail-movie .detail-art {
    max-width: 420px;
  }
  .detail-copy h1 {
    font-size: 28px;
    margin: 14px 0 20px;
  }
  .detail-copy > p {
    font-size: 13px;
  }
  .detail-copy .detail-lead {
    font-size: 14px;
  }
  .planning-note {
    font-size: 11px !important;
  }
  .detail-manga .comic-panel > span {
    font-size: 14px;
    top: 12px;
    right: 9px;
  }
  .detail-manga .comic-panel img {
    padding-top: 45px;
  }
  .other-stories {
    display: block;
    padding-bottom: 50px;
  }
  .other-stories h2 {
    margin-bottom: 15px;
  }
  .other-stories > a {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
  }
  .game-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 35px;
    max-width: 500px;
  }
  .game-illustration {
    width: 230px;
    margin: auto;
  }
  .game-illustration > p {
    font-size: 15px;
    right: -25px;
    top: 10px;
  }
  .fortune-booth {
    max-width: 390px;
    margin: auto;
    width: 100%;
  }
  .fortune-booth h2 {
    font-size: 24px;
    margin-top: 8px;
  }
  .game-layout .small-label {
    font-size: 11px;
  }
  #fortune-stage {
    min-height: 220px;
    margin: 18px 0 25px;
  }
  .unopened-slip {
    min-height: 205px;
  }
  .fortune-slip {
    min-height: 220px;
    padding: 22px;
  }
  .fortune-slip strong {
    font-size: 28px;
  }
  .fortune-message {
    font-size: 13px;
  }
  .kuji-art {
    height: 340px;
    width: 300px;
    max-width: 100%;
  }
  .sample-card {
    width: 185px;
    height: 260px;
    padding: 15px 8px;
  }
  .sample-card > span {
    font-size: 12px;
  }
  .sample-card img {
    height: 180px;
  }
  .sample-card > small {
    font-size: 10px;
  }
  .sample-front {
    top: 45px;
    left: 30%;
  }
  .sample-back {
    left: 2%;
    top: 20px;
  }
  .sample-back img {
    height: 220px;
  }
  .lottery-booth h2 {
    font-size: 24px;
  }
  .lottery-booth > p {
    font-size: 13px;
  }
  .collection {
    padding: 35px 0;
  }
  .collection-heading {
    gap: 10px;
  }
  .collection-heading h2 {
    font-size: 19px;
  }
  .collection-heading > span {
    font-size: 11px;
  }
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .collection-card {
    aspect-ratio: 3/4;
    padding: 7px;
  }
  .collection-card small {
    font-size: 10px;
  }
  .collection-card > span {
    font-size: 30px;
  }
  dialog {
    padding: 55px 20px 25px;
    max-height: 90dvh;
  }
  .dialog-kuji h2,
  .dialog-gallery h2 {
    font-size: 21px;
  }
  .dialog-kuji .card-message {
    font-size: 12px;
  }
  .primary {
    font-size: 13px;
    padding: 12px 18px;
    gap: 15px;
  }
  .dialog-kuji > img {
    height: min(33dvh, 250px);
  }
  #menu-dialog {
    padding: 55px 22px 25px;
  }
  #menu-title {
    font-size: 24px;
  }
  #main-nav {
    grid-template-columns: 1fr 1fr;
    gap: 18px 10px;
    margin: 20px 0;
  }
  #main-nav > a {
    gap: 4px;
    font-size: 12px;
  }
  #main-nav img {
    height: 105px;
  }
  #main-nav > a:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
  }
  #main-nav > a:last-child img {
    width: 95px;
    height: 95px;
  }
  #menu-dialog > p {
    font-size: 11px;
  }
  .tap-burst {
    width: 34px;
    height: 34px;
  }
}
.theme-toggle {
  min-width: 44px;
  min-height: 44px;
}
.footer-nav a {
  min-width: 44px;
}
.not-found {
  max-width: 650px;
  margin: 40px auto;
  padding: 25px;
  text-align: center;
}
.not-found > img {
  width: 270px;
  margin: 20px auto;
}
.not-found h1 {
  font-size: clamp(24px, 4vw, 32px);
}
.not-found > p {
  font-size: 14px;
  margin: 24px 0;
}
.not-found .primary {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .page-fortune .page-heading,
  .page-kuji .page-heading {
    padding-bottom: 25px;
  }
  .page-fortune .game-illustration {
    width: 175px;
  }
  .page-fortune .game-illustration > p {
    font-size: 13px;
    right: -45px;
  }
  .page-kuji .kuji-art {
    height: 305px;
  }
  .home-play .play-peek {
    opacity: 1;
    right: -55px;
    bottom: -15px;
    width: 135px;
  }
  .home-play .play-links {
    max-width: 75%;
  }
}
@media (max-width: 360px) {
  .footer-brand {
    font-size: 18px;
    white-space: nowrap;
  }
  .footer-top > img {
    width: 100px;
  }
  .sample-card {
    width: 170px;
    height: 240px;
  }
  .sample-card img {
    height: 160px;
  }
  .sample-back {
    left: 4%;
  }
  .sample-back img {
    height: 200px;
  }
  .site-header {
    padding-inline: 14px;
  }
  .brand {
    font-size: 15px;
  }
  .header-actions {
    gap: 0;
  }
  .menu-toggle {
    gap: 5px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .wander-links h3 {
    font-size: 14px;
  }
  .wander-links img {
    height: 125px;
  }
  .wander-sub {
    font-size: 9px;
  }
  .pose-grid img {
    height: 145px;
  }
  .pose-grid span {
    font-size: 10px;
  }
  .night-feature .night-poster {
    height: 440px;
  }
  .poster-title {
    font-size: 27px;
  }
  .night-copy {
    padding: 25px;
  }
  .collection-heading h2 {
    font-size: 16px;
  }
  .game-illustration > p {
    right: 0;
  }
  .home-play .play-link {
    font-size: 16px;
  }
}
