:root {
  --cream: #fffaf0;
  --paper: #fffdf7;
  --ink: #173f45;
  --muted: #61777a;
  --pink: #f4779f;
  --pink-dark: #d94f7c;
  --pink-soft: #ffdbe3;
  --ocean: #1b8fa8;
  --ocean-dark: #12647b;
  --sky: #bfe9ee;
  --green: #5e9863;
  --green-soft: #dce9b9;
  --yellow: #f3c65e;
  --sand: #f2dfac;
  --line: rgba(23, 63, 69, 0.14);
  --shadow: 0 24px 70px rgba(27, 82, 88, 0.13);
  --radius-lg: 36px;
  --radius-md: 24px;
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffb52d;
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100vw - 36px));
  min-height: 72px;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.83);
  box-shadow: 0 8px 30px rgba(21, 75, 83, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease, top 0.25s ease;
}

.site-header.is-scrolled {
  top: 9px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 12px 38px rgba(21, 75, 83, 0.13);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: max-content;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 38px;
  place-items: center;
  border-radius: 55% 45% 48% 52%;
  background: var(--pink);
  box-shadow: inset 6px 6px 0 rgba(255, 255, 255, 0.21);
  transform: rotate(-4deg);
}

.brand__mark::before,
.brand__mark::after,
.brand__mark span::before,
.brand__mark span::after {
  position: absolute;
  content: "";
}

.brand__mark::before,
.brand__mark::after {
  top: 16px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #55333e;
}

.brand__mark::before {
  left: 13px;
}

.brand__mark::after {
  right: 12px;
}

.brand__mark span::before {
  top: 23px;
  left: 17px;
  width: 11px;
  height: 5px;
  border-bottom: 2px solid #9f3f63;
  border-radius: 50%;
}

.brand__type {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-nav a:not(.nav-badge)::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav .nav-badge {
  padding: 11px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 0;
  border-radius: 15px;
  background: var(--ink);
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: white;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0 4%, transparent 4.2%),
    linear-gradient(180deg, #e7f5ef 0%, #fffaf0 82%);
}

.hero::after {
  position: absolute;
  right: -7vw;
  bottom: -200px;
  width: 550px;
  height: 420px;
  border-radius: 50%;
  background: var(--pink-soft);
  content: "";
  opacity: 0.32;
  filter: blur(2px);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  min-height: 820px;
  padding-top: 90px;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.eyebrow span {
  font-size: 8px;
}

.eyebrow--green {
  color: var(--green);
}

.eyebrow--yellow {
  color: #b98412;
}

.eyebrow--light {
  color: #d9f5ed;
}

.hero h1,
.section-heading h2,
.closing h2,
.story-dialog h2,
.book-dialog h2 {
  margin-bottom: 26px;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(52px, 5.5vw, 80px);
}

.hero h1 em {
  position: relative;
  color: var(--pink-dark);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  opacity: 0.4;
  transform: rotate(-2deg);
}

.hero__lead {
  margin-bottom: 34px;
  color: #4d6b6f;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.hero__actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 26px;
  border: 0;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(23, 63, 69, 0.2);
  color: white;
}

.button--primary span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
}

.button--pink {
  background: var(--pink-dark);
  box-shadow: 0 12px 24px rgba(190, 69, 109, 0.22);
  color: white;
}

.button--dark {
  background: var(--ink);
  color: white;
}

.text-link {
  padding: 5px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.hero__note {
  display: flex;
  gap: 13px;
  align-items: center;
  width: fit-content;
  max-width: 430px;
  margin-top: 48px;
  padding: 14px 18px;
  border: 1px solid rgba(23, 63, 69, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.hero__note > span {
  color: #e5aa24;
  font-size: 25px;
}

.hero__note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hero__note strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.hero__visual {
  position: relative;
  width: min(100%, 680px);
  margin-left: auto;
}

.hero__visual::before {
  position: absolute;
  top: 6%;
  right: -4%;
  z-index: 1;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 1px solid rgba(23, 63, 69, 0.14);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.86);
  color: var(--ocean-dark);
  content: "ぷにっ！";
  font-size: 14px;
  font-weight: 800;
  transform: rotate(7deg);
}

.hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.65);
  border-radius: 54px 54px 160px 54px;
  box-shadow: var(--shadow);
}

.hero__visual > svg {
  display: none;
}

.hero__caption {
  position: absolute;
  right: 35px;
  bottom: 25px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero__caption span {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-sun {
  animation: sun-pulse 5s ease-in-out infinite;
  transform-origin: center;
}

.hero-momo {
  animation: momo-breathe 3.4s ease-in-out infinite;
  transform-origin: 85% 90%;
}

.hero__cloud {
  position: absolute;
  z-index: 1;
  width: 180px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  filter: blur(1px);
}

.hero__cloud--one {
  top: 140px;
  left: -45px;
  animation: cloud-drift 12s ease-in-out infinite alternate;
}

.hero__cloud--two {
  top: 610px;
  left: 42%;
  width: 110px;
  height: 30px;
  opacity: 0.55;
  animation: cloud-drift 15s ease-in-out infinite alternate-reverse;
}

.hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 35px;
  overflow: hidden;
  background: rgba(23, 63, 69, 0.16);
}

.hero__scroll i::after {
  position: absolute;
  top: -12px;
  left: 0;
  width: 1px;
  height: 13px;
  background: var(--ink);
  content: "";
  animation: scroll-line 1.8s ease-in-out infinite;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.marquee > div {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 17px 0;
  color: #789195;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  animation: marquee 28s linear infinite;
}

.marquee i {
  color: var(--pink);
  font-style: normal;
}

.section {
  padding-block: 120px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(39px, 5vw, 62px);
}

.section-heading--center {
  max-width: 760px;
  margin: 0 auto 65px;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center > p:last-child {
  margin-top: 20px;
  color: var(--muted);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
}

.section-top > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.welcome {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px 100px;
  align-items: start;
  padding-top: 150px;
}

.welcome__copy {
  padding-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2.2;
}

.welcome__copy p + p {
  margin-top: 25px;
}

.welcome__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.welcome__stats div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: center;
  padding: 34px 20px;
}

.welcome__stats div + div {
  border-left: 1px solid var(--line);
}

.welcome__stats strong {
  color: var(--pink-dark);
  font-family: Georgia, serif;
  font-size: 54px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.welcome__stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stories {
  background: #f2f6eb;
}

.comic-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 22px;
}

.comic-card {
  overflow: hidden;
  border: 1px solid rgba(23, 63, 69, 0.08);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(56, 95, 76, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comic-card:hover {
  box-shadow: 0 24px 65px rgba(56, 95, 76, 0.15);
  transform: translateY(-7px);
}

.comic-art {
  position: relative;
  height: 320px;
  overflow: hidden;
  isolation: isolate;
}

.comic-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-art::before,
.comic-art::after {
  display: none;
}

.comic-card--feature .comic-art {
  height: 390px;
}

.comic-art--leaf {
  background: linear-gradient(#bce6e2 0 46%, #e3edb0 46% 100%);
}

.comic-art--leaf::before,
.comic-art--leaf::after {
  position: absolute;
  bottom: -31px;
  width: 230px;
  height: 150px;
  border-radius: 50%;
  background: #8eb86b;
  content: "";
}

.comic-art--leaf::before {
  left: -45px;
}

.comic-art--leaf::after {
  right: -70px;
  background: #77a962;
}

.mini-sun {
  position: absolute;
  top: 40px;
  right: 42px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffd366;
  box-shadow: 0 0 0 13px rgba(255, 232, 139, 0.55);
}

.mini-mio {
  position: absolute;
  bottom: 45px;
  left: 24%;
  z-index: 2;
  width: 63px;
  height: 126px;
  border-radius: 35px 35px 13px 13px;
  background: #efc28f;
  box-shadow: inset 0 -60px 0 #e87965;
}

.mini-mio::before {
  position: absolute;
  top: -12px;
  left: -3px;
  width: 69px;
  height: 49px;
  border-radius: 50% 50% 40% 35%;
  background: #57372f;
  content: "";
}

.mini-mio::after {
  position: absolute;
  right: 7px;
  bottom: -18px;
  width: 12px;
  height: 25px;
  border-right: 12px solid #6a5349;
  border-left: 12px solid #6a5349;
  content: "";
}

.mini-mio i {
  position: absolute;
  top: 45px;
  right: -7px;
  width: 13px;
  height: 52px;
  border-radius: 10px;
  background: #efc28f;
  transform: rotate(-23deg);
  transform-origin: top;
}

.mini-momo {
  position: absolute;
  right: 13%;
  bottom: 39px;
  z-index: 1;
  width: 150px;
  height: 133px;
  border-radius: 48% 52% 45% 55%;
  background: var(--pink);
  box-shadow: inset 17px 15px 0 rgba(255, 255, 255, 0.25), 0 16px 0 rgba(108, 70, 78, 0.12);
  transform: rotate(-4deg);
}

.mini-momo::before,
.mini-momo::after {
  position: absolute;
  top: 54px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #53333e;
  content: "";
}

.mini-momo::before {
  left: 48px;
}

.mini-momo::after {
  right: 45px;
}

.mini-leaf {
  position: absolute;
  top: 58%;
  left: 49%;
  z-index: 3;
  color: #53894c;
  font-size: 62px;
  font-weight: 900;
  transform: rotate(-28deg);
}

.art-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--pink-dark);
  color: white;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.comic-art--moon {
  background: linear-gradient(#304b74 0 52%, #2e7284 52% 100%);
}

.comic-art--moon::after {
  position: absolute;
  bottom: 48%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  content: "";
}

.comic-art--moon .moon {
  position: absolute;
  right: 23%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff3b0;
  box-shadow: 0 0 30px rgba(255, 243, 176, 0.46);
}

.comic-art--moon .moon--sky {
  top: 35px;
}

.comic-art--moon .moon--water {
  bottom: 37px;
  opacity: 0.6;
  transform: scaleY(0.65);
}

.comic-art--moon .mini-mio {
  bottom: 62px;
  left: 17%;
  transform: scale(0.65);
  transform-origin: bottom;
}

.comic-art--moon .mini-momo {
  right: 31%;
  bottom: 62px;
  transform: scale(0.57);
  transform-origin: bottom;
}

.comic-art--morning {
  background: linear-gradient(130deg, #466a74 0 34%, #f7d77e 35% 43%, #f5e8c3 44%);
}

.comic-art--morning::before {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42%;
  height: 53%;
  border: 10px solid #9a7654;
  background: linear-gradient(#f4c76e, #ffeac6);
  content: "";
}

.window-light {
  position: absolute;
  right: 2%;
  bottom: -35%;
  width: 85%;
  height: 90%;
  background: rgba(255, 224, 128, 0.4);
  clip-path: polygon(53% 0, 100% 0, 100% 100%, 0 100%);
}

.comic-art--morning .mini-mio {
  bottom: 27px;
  left: 14%;
  transform: scale(0.63) rotate(82deg);
  transform-origin: bottom;
}

.comic-art--morning .mini-momo {
  right: 15%;
  bottom: 19px;
  transform: scale(0.65, 0.58);
  transform-origin: bottom;
}

.comic-card__body {
  padding: 25px 25px 28px;
}

.comic-card--feature .comic-card__body {
  padding: 30px 34px 34px;
}

.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.card-meta span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: #78908c;
}

.comic-card h3 {
  margin-bottom: 11px;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 27px;
  line-height: 1.4;
}

.comic-card__body > p:not(.card-meta) {
  min-height: 58px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.round-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.round-link span {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.round-link:hover span {
  background: var(--pink);
  color: white;
}

.books {
  background: var(--cream);
}

.book-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 65px;
  padding: 20px 46px 0;
}

.book-card {
  min-width: 0;
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 7px 24px 24px 7px;
  box-shadow: 13px 19px 0 rgba(23, 63, 69, 0.08), 0 24px 55px rgba(23, 63, 69, 0.17);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: rgba(50, 50, 50, 0.12);
  box-shadow: 3px 0 8px rgba(255, 255, 255, 0.35);
  content: "";
  z-index: 2;
}

.book-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover::after {
  display: none;
}

.book-cover:hover {
  box-shadow: 8px 13px 0 rgba(23, 63, 69, 0.06), 0 18px 43px rgba(23, 63, 69, 0.15);
  transform: translate(5px, 6px) rotate(-1deg);
}

.book-series {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.book-cover strong {
  position: relative;
  z-index: 2;
  color: #314e4e;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.35;
  text-align: center;
}

.book-cover small {
  position: absolute;
  bottom: 17px;
  z-index: 3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.book-cover--sunrise {
  background: linear-gradient(#344e72 0, #9c7b8b 45%, #f5b76a 72%, #ffe1a0 100%);
}

.book-cover--sunrise .book-series,
.book-cover--sunrise strong {
  color: white;
  text-shadow: 0 2px 14px rgba(36, 47, 80, 0.45);
}

.cover-scene {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: linear-gradient(168deg, transparent 0 12%, #507466 13% 45%, #28596a 46%);
}

.cover-scene::before {
  position: absolute;
  top: -32px;
  left: 19%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffd573;
  box-shadow: 0 0 40px #ffd88e;
  content: "";
}

.cover-scene i,
.cover-scene b {
  position: absolute;
  bottom: 30px;
  z-index: 2;
  display: block;
}

.cover-scene i {
  left: 34%;
  width: 28px;
  height: 65px;
  border-radius: 50% 50% 15% 15%;
  background: #493832;
  box-shadow: inset 0 -32px #d07964;
}

.cover-scene b {
  right: 24%;
  width: 69px;
  height: 57px;
  border-radius: 50%;
  background: var(--pink);
}

.book-cover--rain {
  background: linear-gradient(150deg, #93cbc7, #4d8690 62%, #326572);
  color: white;
}

.book-cover--rain strong {
  color: #fffcea;
  text-shadow: 0 2px 10px rgba(19, 74, 83, 0.32);
}

.rain-notes {
  position: absolute;
  top: 51%;
  left: 13%;
  z-index: 2;
  color: #ffe986;
  font-size: 33px;
  letter-spacing: 0.15em;
  transform: rotate(-8deg);
}

.rain-notes i {
  color: #d5f1ea;
  font-style: normal;
}

.book-cover--rain::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 2px, transparent 3px);
  background-position: 2px 10px;
  background-size: 34px 48px;
  content: "";
  opacity: 0.55;
}

.cover-momo {
  position: absolute;
  right: 14%;
  bottom: 11%;
  z-index: 2;
  width: 45%;
  height: 31%;
  border-radius: 47% 53% 51% 49%;
  background: var(--pink);
  box-shadow: inset 13px 13px 0 rgba(255, 255, 255, 0.2);
}

.book-cover--gift {
  background: linear-gradient(145deg, #f4dcc1, #e3b98d);
}

.book-cover--gift::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 13px, rgba(113, 75, 51, 0.04) 14px);
  content: "";
}

.gift-basket {
  position: absolute;
  bottom: 13%;
  left: 50%;
  z-index: 2;
  width: 58%;
  height: 34%;
  border: 6px solid #9b6844;
  border-top: 0;
  border-radius: 14px 14px 35% 35%;
  background: repeating-linear-gradient(90deg, #c9915c 0 8px, #dfaa72 8px 15px);
  transform: translateX(-50%);
}

.gift-basket::before {
  position: absolute;
  top: -63px;
  left: 12%;
  width: 76%;
  height: 80px;
  border: 7px solid #9b6844;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  content: "";
}

.gift-basket i {
  position: absolute;
  top: -45px;
  left: 50%;
  width: 87%;
  height: 77px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 12px 11px 0 rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.book-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 4px 0;
}

.book-card > div p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.book-card > div button {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.friends {
  background: #f7ece2;
}

.friend-list {
  display: grid;
  gap: 32px;
}

.friend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(101, 76, 59, 0.08);
}

.friend--momo .friend__portrait {
  order: 2;
}

.friend__portrait {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.friend__portrait > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-mio > img {
  object-position: center 34%;
}

.portrait-momo > img {
  object-position: center 47%;
}

.friend__portrait > span,
.portrait-mio::before,
.portrait-mio::after,
.portrait-momo::before,
.portrait-momo::after {
  display: none;
}

.friend__copy {
  align-self: center;
  max-width: 510px;
  padding: 55px 65px;
}

.friend__number {
  margin-bottom: 13px;
  color: var(--pink-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.friend h3 {
  margin-bottom: 4px;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 55px;
  line-height: 1.2;
}

.friend__kana {
  margin-bottom: 25px;
  color: var(--pink-dark);
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  font-weight: 700;
}

.friend__copy > p:not(.friend__number, .friend__kana) {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.friend ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.friend li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.portrait-mio {
  background: radial-gradient(circle at 50% 35%, #fff7d2 0 19%, transparent 19.5%), linear-gradient(145deg, #b7d7c4, #77ac94);
}

.portrait-mio::before,
.portrait-mio::after,
.portrait-momo::before,
.portrait-momo::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.portrait-mio::before {
  right: -70px;
  bottom: -90px;
  width: 290px;
  height: 290px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.portrait-mio::after {
  top: 42px;
  left: 42px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.portrait-mio__hair {
  position: absolute;
  top: 78px;
  left: 50%;
  z-index: 2;
  width: 168px;
  height: 170px;
  border-radius: 50% 50% 38% 42%;
  background: #55372f;
  transform: translateX(-50%);
}

.portrait-mio__face {
  position: absolute;
  top: 104px;
  left: 50%;
  z-index: 3;
  width: 126px;
  height: 134px;
  border-radius: 47% 47% 45% 45%;
  background: #f0c28e;
  transform: translateX(-50%);
}

.portrait-mio__face::before,
.portrait-mio__face::after {
  position: absolute;
  top: 59px;
  width: 8px;
  height: 10px;
  border-radius: 50%;
  background: #50352e;
  content: "";
}

.portrait-mio__face::before {
  left: 35px;
}

.portrait-mio__face::after {
  right: 34px;
}

.portrait-mio__body {
  position: absolute;
  bottom: -75px;
  left: 50%;
  z-index: 1;
  width: 248px;
  height: 315px;
  border-radius: 48% 48% 10% 10%;
  background: #e57a66;
  transform: translateX(-50%);
}

.portrait-mio__body::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 86px;
  height: 110px;
  background: #f8edcf;
  content: "";
  clip-path: polygon(0 0, 50% 35%, 100% 0, 84% 100%, 17% 100%);
  transform: translateX(-50%);
}

.portrait-mio__pin {
  position: absolute;
  top: 82px;
  left: calc(50% + 54px);
  z-index: 4;
  width: 48px;
  height: 41px;
  border-radius: 50%;
  background: var(--pink);
  transform: rotate(12deg);
}

.portrait-mio__pin::before,
.portrait-mio__pin::after {
  position: absolute;
  top: 17px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #57343e;
  content: "";
}

.portrait-mio__pin::before {
  left: 14px;
}

.portrait-mio__pin::after {
  right: 13px;
}

.portrait-mio__arm {
  position: absolute;
  z-index: 3;
  width: 35px;
  height: 180px;
  border-radius: 22px;
  background: #f0c28e;
  transform-origin: top;
}

.portrait-mio__arm--left {
  bottom: 38px;
  left: calc(50% - 104px);
  transform: rotate(18deg);
}

.portrait-mio__arm--right {
  right: calc(50% - 115px);
  bottom: 65px;
  transform: rotate(-36deg);
}

.portrait-momo {
  background: radial-gradient(circle at 65% 25%, #ffe7aa 0 9%, transparent 9.5%), linear-gradient(145deg, #f4c6d0, #ef92aa);
}

.portrait-momo::before {
  top: 35px;
  left: 36px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.33);
}

.portrait-momo::after {
  right: -70px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.portrait-momo__body {
  position: absolute;
  bottom: -35px;
  left: 50%;
  width: 72%;
  height: 78%;
  border-radius: 51% 49% 44% 56%;
  background: linear-gradient(145deg, #ffafc0, #ed6993);
  box-shadow: inset 30px 28px 0 rgba(255, 255, 255, 0.22), 0 30px 0 rgba(125, 56, 77, 0.1);
  transform: translateX(-50%) rotate(-2deg);
}

.portrait-momo__shine {
  position: absolute;
  top: 106px;
  left: 27%;
  width: 85px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(-24deg);
}

.portrait-momo__face::before,
.portrait-momo__face::after {
  position: absolute;
  top: 225px;
  z-index: 3;
  width: 15px;
  height: 19px;
  border-radius: 50%;
  background: #59333f;
  content: "";
}

.portrait-momo__face::before {
  left: 40%;
}

.portrait-momo__face::after {
  right: 37%;
}

.portrait-momo__face {
  position: absolute;
  inset: 0;
}

.portrait-momo__face {
  border: 0;
}

.portrait-momo__cheek {
  position: absolute;
  top: 260px;
  z-index: 2;
  width: 48px;
  height: 20px;
  border-radius: 50%;
  background: #ffc9d3;
  opacity: 0.62;
}

.portrait-momo__cheek--left {
  left: 28%;
}

.portrait-momo__cheek--right {
  right: 25%;
}

.island {
  background: var(--ocean-dark);
  color: white;
}

.section-top--light > p {
  color: rgba(255, 255, 255, 0.66);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 24px;
  align-items: stretch;
}

.island-map {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #187b98;
  box-shadow: 0 30px 70px rgba(4, 38, 49, 0.27);
  aspect-ratio: 3 / 2;
}

.island-map__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.island-map > svg {
  display: none;
}

.map-pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-pin span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--pink-dark);
  box-shadow: 0 7px 18px rgba(5, 44, 51, 0.3);
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-pin i {
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(13, 70, 85, 0.79);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.map-pin:hover span,
.map-pin--active span {
  background: var(--yellow);
  color: var(--ink);
  transform: scale(1.2);
}

.map-pin--active span {
  animation: pin-pulse 2s ease-in-out infinite;
}

.place-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 35px;
  border-radius: 34px;
  background: #fffaf0;
  color: var(--ink);
}

.place-card__count {
  margin-bottom: auto;
  color: var(--pink-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.place-card__icon {
  display: grid;
  width: 65px;
  height: 65px;
  margin: 30px 0 23px;
  place-items: center;
  border-radius: 22px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 29px;
}

.place-card h3 {
  margin-bottom: 2px;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 33px;
}

.place-card__tag {
  margin-bottom: 20px;
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
}

.place-card > p:not(.place-card__count, .place-card__tag) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.place-card__weather {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.place-card__weather span {
  color: #e0a72a;
  font-size: 21px;
}

.games {
  background: #edf6f0;
}

.game-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 26px;
  align-items: stretch;
}

.fortune-card,
.tap-game {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 65px rgba(41, 91, 69, 0.12);
}

.fortune-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 550px;
  padding: 38px;
  background: linear-gradient(145deg, #ffe0e5, #f6a7b9);
  text-align: center;
}

.fortune-card::before,
.fortune-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  content: "";
}

.fortune-card::before {
  top: -65px;
  left: -75px;
  width: 210px;
  height: 210px;
}

.fortune-card::after {
  right: -40px;
  bottom: 80px;
  width: 150px;
  height: 150px;
}

.fortune-card__top {
  position: relative;
  z-index: 2;
}

.fortune-card__top span {
  display: block;
  color: #a74365;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.fortune-card__top strong {
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 34px;
}

.fortune-momo {
  position: relative;
  z-index: 2;
  width: 195px;
  height: 155px;
  margin: 25px 0 10px;
  cursor: pointer;
}

.fortune-momo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  border-radius: 48% 52% 45% 55%;
  box-shadow: inset 20px 19px 0 rgba(255, 255, 255, 0.25), 0 17px 0 rgba(140, 52, 77, 0.09);
  transition: transform 0.15s ease;
}

.fortune-momo span::before,
.fortune-momo span::after {
  position: absolute;
  top: 64px;
  width: 10px;
  height: 13px;
  border-radius: 50%;
  background: #56333f;
  content: "";
}

.fortune-momo span::before {
  left: 61px;
}

.fortune-momo span::after {
  right: 57px;
}

.fortune-card.is-reading .fortune-momo img {
  animation: fortune-squish 0.75s ease;
}

.fortune-result {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 87px;
  margin-bottom: 20px;
  place-items: center;
}

.fortune-result p {
  margin: 0;
  color: #743c51;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.fortune-result strong {
  display: block;
  color: #71344c;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
}

.fortune-card .button {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.tap-game {
  display: flex;
  flex-direction: column;
  min-height: 550px;
  padding: 36px 42px;
  background: #fffdf7;
}

.tap-game__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: end;
}

.tap-game__header p,
.game-score span,
.game-time span {
  display: block;
  margin: 0;
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.tap-game h3 {
  margin: 0;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 40px;
}

.game-score strong,
.game-time strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.2;
}

.tap-game__guide {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.tap-field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.tap-field button {
  position: relative;
  min-height: 93px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #dceac0;
  cursor: default;
}

.tap-field button::after {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 60%;
  height: 18px;
  border-radius: 50%;
  background: #9abb7b;
  content: "";
  transform: translateX(-50%);
}

.tap-field button.is-momo {
  cursor: pointer;
}

.tap-field button.is-momo::before {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 55px;
  border-radius: 48% 52% 45% 55%;
  background:
    radial-gradient(circle at 37% 46%, #53333e 0 3px, transparent 4px),
    radial-gradient(circle at 65% 46%, #53333e 0 3px, transparent 4px),
    linear-gradient(145deg, #ff9eb4, #ea5e89);
  box-shadow: inset 8px 8px 0 rgba(255, 255, 255, 0.2);
  content: "";
  animation: momo-pop 0.28s ease-out;
  transform: translateX(-50%);
}

.tap-game > .button {
  width: fit-content;
  min-width: 190px;
  margin: auto auto 0;
}

.ideas {
  background: #fffaf0;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.idea-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--paper);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.idea-card:hover {
  border-color: var(--pink);
  transform: translateY(-6px);
}

.idea-card > span {
  color: #9ca9a5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.idea-card i {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 30px 0 25px;
  place-items: center;
  border-radius: 22px;
  background: #f2ebcf;
  color: #b58117;
  font-size: 27px;
  font-style: normal;
}

.idea-card:nth-child(2) i {
  background: var(--pink-soft);
  color: var(--pink-dark);
}

.idea-card:nth-child(3) i {
  background: var(--green-soft);
  color: var(--green);
}

.idea-card:nth-child(4) i {
  background: var(--sky);
  color: var(--ocean-dark);
}

.idea-card h3 {
  margin-bottom: 10px;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
}

.idea-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.idea-card small {
  margin-top: auto;
  color: #96a4a0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.closing {
  position: relative;
  display: grid;
  min-height: 680px;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(#f7c998, #e8938f 54%, #756d8a 100%);
  text-align: center;
}

.closing::before {
  position: absolute;
  right: -10%;
  bottom: -29%;
  left: -10%;
  height: 52%;
  border-radius: 50% 50% 0 0;
  background: #277c86;
  content: "";
}

.closing::after {
  position: absolute;
  right: -10%;
  bottom: -37%;
  left: -10%;
  height: 51%;
  border-radius: 50% 50% 0 0;
  background: #155f72;
  content: "";
}

.closing__sun {
  position: absolute;
  bottom: 25%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffd47a;
  box-shadow: 0 0 70px rgba(255, 222, 147, 0.65);
  transform: translateX(-50%);
}

.closing__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 160px;
}

.closing__momo {
  position: relative;
  display: block;
  width: 115px;
  height: 90px;
  margin-bottom: 25px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 12px 11px 0 rgba(255, 255, 255, 0.25), 0 15px 0 rgba(70, 50, 70, 0.08);
}

.closing__momo::before,
.closing__momo::after {
  position: absolute;
  top: 37px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #55333f;
  content: "";
}

.closing__momo::before {
  left: 37px;
}

.closing__momo::after {
  right: 34px;
}

.closing__content .eyebrow {
  color: #75435b;
}

.closing h2 {
  margin-bottom: 30px;
  color: #3d3e55;
  font-size: clamp(43px, 5vw, 63px);
}

.site-footer {
  background: #123f48;
  color: white;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px 42px;
  align-items: center;
  padding-block: 45px;
}

.brand--footer .brand__mark {
  transform: scale(0.85) rotate(-4deg);
}

.footer__inner > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.footer__inner nav {
  display: flex;
  gap: 21px;
}

.footer__inner nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 700;
}

.footer__inner small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
  font-size: 8px;
  letter-spacing: 0.13em;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(10, 44, 52, 0.75);
  backdrop-filter: blur(8px);
}

.story-dialog {
  width: min(1040px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 32px;
  background: #fffaf0;
  box-shadow: 0 30px 90px rgba(0, 35, 42, 0.3);
}

.dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: grid;
  width: 45px;
  height: 45px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-heading {
  display: flex;
  gap: 25px;
  align-items: baseline;
  padding: 25px 82px 22px 35px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading p {
  margin: 0;
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 28px;
}

.dialog-heading span {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.story-panels {
  display: grid;
  height: calc(100% - 81px);
  padding: 22px;
  place-items: center;
  overflow: auto;
  background: #f3ebdc;
}

.story-page {
  width: min(100%, 650px);
  max-height: 100%;
  margin: 0;
  aspect-ratio: 1;
}

.story-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 6px solid white;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(23, 63, 69, 0.18);
}

.story-panel {
  position: relative;
  flex: 0 0 calc(25% - 12px);
  min-width: 215px;
  overflow: hidden;
  border: 6px solid white;
  border-radius: 15px;
  background: #d9ede2;
  box-shadow: 0 8px 26px rgba(23, 63, 69, 0.1);
  scroll-snap-align: start;
}

.story-panel__number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.story-panel__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.story-panel__scene::before {
  position: absolute;
  right: -40px;
  bottom: -55px;
  left: -40px;
  height: 45%;
  border-radius: 50% 50% 0 0;
  background: #a9cb82;
  content: "";
}

.story-panel .panel-mio {
  position: absolute;
  bottom: 19%;
  left: 18%;
  width: 42px;
  height: 84px;
  border-radius: 50% 50% 20% 20%;
  background: #edc08e;
  box-shadow: inset 0 -40px #e57a66;
}

.story-panel .panel-mio::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 42px;
  height: 28px;
  border-radius: 50%;
  background: #55372f;
  content: "";
}

.story-panel .panel-momo {
  position: absolute;
  right: 11%;
  bottom: 18%;
  width: 95px;
  height: 80px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 10px 9px rgba(255, 255, 255, 0.2);
}

.story-panel .panel-prop {
  position: absolute;
  z-index: 2;
}

.story-panel__bubble {
  position: absolute;
  top: 15%;
  left: 11%;
  z-index: 5;
  max-width: 78%;
  padding: 13px 15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.story-panel__caption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  z-index: 6;
  margin: 0;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 253, 247, 0.89);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.story-theme--moon .story-panel__scene {
  background: linear-gradient(#314d75 0 52%, #36778a 52%);
}

.story-theme--moon .story-panel__scene::before {
  background: rgba(42, 92, 95, 0.45);
}

.story-theme--moon .panel-prop {
  top: 15%;
  right: 22%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff1a9;
  box-shadow: 0 0 24px rgba(255, 241, 169, 0.5), 0 225px 0 rgba(255, 241, 169, 0.5);
}

.story-theme--morning .story-panel__scene {
  background: linear-gradient(130deg, #456670 0 35%, #f8d87d 36% 42%, #f7ebca 43%);
}

.story-theme--morning .story-panel__scene::before {
  background: rgba(183, 138, 82, 0.28);
}

.story-theme--morning .panel-prop {
  top: 13%;
  right: 12%;
  width: 44%;
  height: 31%;
  border: 8px solid #987454;
  background: #ffd27b;
}

.dialog-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-top: 1px solid var(--line);
}

.dialog-actions button {
  padding: 8px 13px;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dialog-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}

.dialog-actions span {
  min-width: 50px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.book-dialog {
  display: none;
  grid-template-columns: 0.8fr 1.2fr;
  width: min(970px, calc(100vw - 40px));
  height: min(680px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 32px;
  background: #fffaf0;
  box-shadow: 0 30px 90px rgba(0, 35, 42, 0.3);
}

.book-dialog[open] {
  display: grid;
}

.book-dialog__cover {
  min-height: 100%;
  background: linear-gradient(#344e72, #f5b76a);
  background-color: #e8deca;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.book-dialog__cover::after {
  display: none;
  height: 100%;
  padding: 50px;
  place-items: center;
  color: white;
  content: "ミオとモモ\A えほん";
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 32px;
  line-height: 1.7;
  text-align: center;
  white-space: pre;
}

.book-dialog__cover[data-theme="rain"] {
  background: linear-gradient(145deg, #93cbc7, #326572);
}

.book-dialog__cover[data-theme="gift"] {
  background: linear-gradient(145deg, #f4dcc1, #ca8d5b);
}

.book-dialog__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px 45px 0;
}

.book-dialog h2 {
  margin-bottom: 8px;
  padding-right: 40px;
  font-size: 38px;
}

.book-dialog__lead {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 12px;
}

.book-dialog__sample {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  padding: 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #edf2e3;
  text-align: center;
}

.sample-page {
  display: none;
  width: 100%;
  max-width: 520px;
}

.sample-page.is-active {
  display: block;
  animation: page-in 0.3s ease;
}

.sample-page img {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: 0 9px 25px rgba(23, 63, 69, 0.16);
}

.sample-page__label {
  display: block;
  margin-bottom: 5px;
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.sample-page__text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

.book-dialog__content .dialog-actions {
  margin-inline: -45px;
  border-top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes momo-breathe {
  0%, 100% { transform: translate(82px, 36px) scale(1); }
  50% { transform: translate(82px, 32px) scale(1.025, 0.98); }
}

@keyframes cloud-drift {
  from { transform: translateX(-15px); }
  to { transform: translateX(55px); }
}

@keyframes scroll-line {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 198, 94, 0.45), 0 7px 18px rgba(5, 44, 51, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(243, 198, 94, 0), 0 7px 18px rgba(5, 44, 51, 0.3); }
}

@keyframes fortune-squish {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.12, 0.82); }
  50% { transform: scale(0.88, 1.13); }
  75% { transform: scale(1.06, 0.95); }
}

@keyframes momo-pop {
  from { transform: translate(-50%, 60px) scale(0.7); }
  to { transform: translateX(-50%) scale(1); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1050px) {
  .hero__content {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 25px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .comic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .comic-card--feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
  }

  .comic-card--feature .comic-art {
    height: 390px;
  }

  .comic-card--feature .comic-card__body {
    align-self: center;
  }

  .book-shelf {
    gap: 36px;
    padding-inline: 10px;
  }

  .map-layout {
    grid-template-columns: 1fr 295px;
  }

  .idea-grid {
    grid-template-columns: 1fr 1fr;
  }

  .idea-card {
    min-height: 290px;
  }
}

@media (max-width: 850px) {
  :root {
    --shell: min(100% - 34px, 680px);
  }

  .site-header {
    width: calc(100vw - 24px);
    min-height: 64px;
    padding: 8px 9px 8px 16px;
  }

  .brand__mark {
    width: 39px;
    height: 35px;
  }

  .brand__type {
    font-size: 16px;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(23, 63, 69, 0.1);
    border-radius: 20px;
    background: #fffdf7;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav .nav-badge {
    padding: 13px 15px;
    border-radius: 12px;
  }

  .site-nav .nav-badge {
    margin-top: 5px;
    text-align: center;
  }

  .hero {
    min-height: 1150px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 50px;
    align-content: start;
    padding-top: 150px;
  }

  .hero__copy {
    max-width: 590px;
  }

  .hero__visual {
    width: 92%;
    margin: 0 auto;
  }

  .hero__visual::before {
    width: 78px;
    height: 78px;
    font-size: 11px;
  }

  .hero__scroll {
    display: none;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .welcome__copy {
    padding-top: 0;
  }

  .section-top {
    display: block;
  }

  .section-top > p {
    margin-top: 25px;
  }

  .comic-card--feature {
    display: block;
  }

  .book-shelf {
    grid-template-columns: 1fr;
    gap: 65px;
    width: min(400px, 100%);
    margin: 0 auto;
  }

  .friend {
    grid-template-columns: 1fr;
  }

  .friend--momo .friend__portrait {
    order: 0;
  }

  .friend__portrait {
    min-height: 410px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .place-card {
    min-height: 350px;
  }

  .place-card__count {
    margin-bottom: 0;
  }

  .place-card__icon {
    margin-top: 20px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .fortune-card {
    min-height: 530px;
  }

  .book-dialog[open] {
    grid-template-columns: 0.55fr 1.45fr;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
  }

  .footer__inner > p {
    display: none;
  }
}

@media (max-width: 590px) {
  :root {
    --shell: calc(100% - 28px);
    --radius-lg: 27px;
  }

  .site-header {
    top: 10px;
  }

  .hero {
    min-height: 970px;
  }

  .hero__content {
    gap: 45px;
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero__lead {
    font-size: 13px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__note {
    margin-top: 32px;
  }

  .hero__visual {
    width: 108%;
    margin-left: -4%;
  }

  .hero__image {
    border-width: 6px;
    border-radius: 35px 35px 90px 35px;
  }

  .hero__caption {
    right: 24px;
    bottom: 17px;
    font-size: 8px;
  }

  .section {
    padding-block: 84px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading--center {
    margin-bottom: 45px;
  }

  .welcome {
    padding-top: 95px;
  }

  .welcome__copy {
    font-size: 14px;
  }

  .welcome__stats {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  .welcome__stats div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .comic-grid {
    grid-template-columns: 1fr;
  }

  .comic-card--feature {
    grid-column: auto;
  }

  .comic-art,
  .comic-card--feature .comic-art {
    height: 315px;
  }

  .comic-card--feature .comic-card__body {
    padding: 25px 25px 28px;
  }

  .book-shelf {
    width: min(330px, 100%);
  }

  .book-card > div {
    align-items: flex-start;
  }

  .friend__portrait {
    min-height: 360px;
  }

  .friend__copy {
    padding: 36px 28px 42px;
  }

  .friend h3 {
    font-size: 46px;
  }

  .portrait-mio__hair {
    top: 50px;
  }

  .portrait-mio__face {
    top: 75px;
  }

  .portrait-mio__pin {
    top: 52px;
  }

  .portrait-momo__face::before,
  .portrait-momo__face::after {
    top: 190px;
  }

  .portrait-momo__cheek {
    top: 225px;
  }

  .island-map {
    aspect-ratio: 3 / 2;
  }

  .map-pin i {
    display: none;
  }

  .map-pin span {
    width: 33px;
    height: 33px;
  }

  .place-card {
    min-height: 380px;
    padding: 28px;
  }

  .tap-game {
    padding: 27px 20px;
  }

  .tap-game__header {
    gap: 12px;
  }

  .tap-game h3 {
    font-size: 32px;
  }

  .game-score strong,
  .game-time strong {
    font-size: 27px;
  }

  .tap-field button {
    min-height: 78px;
  }

  .idea-grid {
    grid-template-columns: 1fr;
  }

  .idea-card {
    min-height: 270px;
  }

  .closing {
    min-height: 620px;
  }

  .closing__content {
    padding-bottom: 150px;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner nav {
    flex-wrap: wrap;
  }

  .story-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 22px;
  }

  .dialog-heading {
    display: block;
    padding: 22px 67px 17px 22px;
  }

  .dialog-heading h2 {
    font-size: 22px;
  }

  .dialog-heading span {
    display: none;
  }

  .story-panels {
    height: calc(100% - 83px);
    padding: 10px;
  }

  .story-page {
    width: 100%;
    max-height: 100%;
  }

  .book-dialog[open] {
    display: block;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    overflow-y: auto;
    border-radius: 22px;
  }

  .book-dialog__cover {
    min-height: 160px;
  }

  .book-dialog__cover::after {
    padding: 30px;
    font-size: 24px;
  }

  .book-dialog__content {
    min-height: calc(100% - 160px);
    padding: 30px 22px 0;
  }

  .book-dialog h2 {
    font-size: 30px;
  }

  .book-dialog__sample {
    min-height: 265px;
    padding: 25px 18px;
  }

  .sample-page__text {
    font-size: 10px;
  }

  .book-dialog__content .dialog-actions {
    margin-inline: -22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
