:root {
  --ink: #203453;
  --ink-soft: #40536d;
  --sky: #c2e4f6;
  --sky-deep: #9dccdf;
  --green: #b9da98;
  --green-deep: #5c8060;
  --paper: #fffdf5;
  --paper-dim: #f6f3e8;
  --yellow: #ffce55;
  --line: #dde4df;
  --danger: #d96758;
  --shadow: 0 18px 45px rgba(32, 52, 83, .12);
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #c34532; outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--ink); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 20; background: var(--sky); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 86px; border-bottom: 1px solid rgba(32, 52, 83, .13); }
.logo { display: inline-block; color: var(--ink); font-size: 27px; font-weight: 950; letter-spacing: -1.7px; line-height: 1; }
.logo-o--yellow { color: #e9a928; }
.logo-o--green, .logo-dot { color: #4b9c62; }
.logo-dot { font-size: 1.25em; }
.desktop-nav { display: flex; align-items: center; gap: 31px; font-size: 14px; font-weight: 800; }
.desktop-nav > a:not(.nav-cta) { position: relative; padding: 8px 0; }
.desktop-nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; content: ""; transform: scaleX(0); transform-origin: right; background: var(--ink); transition: transform .22s ease; }
.desktop-nav > a:not(.nav-cta):hover::after, .desktop-nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 12px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: 0 3px 0 #122238; transition: transform .18s ease, box-shadow .18s ease; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #122238; }
.menu-button { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid rgba(32, 52, 83, .25); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.4); cursor: pointer; }
.menu-button span { display: block; width: 18px; height: 2px; margin: 3px auto; background: currentColor; }

.hero { position: relative; overflow: hidden; background: var(--sky); }
.hero__halo { position: absolute; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; pointer-events: none; }
.hero__halo--one { top: -270px; right: -210px; width: 660px; height: 660px; }
.hero__halo--two { bottom: 40px; left: -210px; width: 370px; height: 370px; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(320px, .94fr) minmax(400px, 1.06fr); align-items: center; min-height: 590px; padding-top: 38px; padding-bottom: 70px; gap: 24px; }
.eyebrow, .section-kicker { margin: 0; color: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #53976a; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 560px; margin: 27px 0 18px; font-size: clamp(42px, 4vw, 56px); font-weight: 950; letter-spacing: -.09em; line-height: 1.2; }
h1 em { position: relative; z-index: 0; font-style: normal; white-space: nowrap; }
h1 em::before { position: absolute; z-index: -1; right: -8px; bottom: .08em; left: -6px; height: .35em; border-radius: 50%; content: ""; transform: rotate(-1.8deg); background: var(--yellow); }
.hero__intro { max-width: 410px; margin-bottom: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.hero__actions { display: flex; gap: 15px; margin: 26px 0 17px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 24px; padding: 14px 23px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button--ink { color: #fff; background: var(--ink); box-shadow: 0 5px 0 #122238; }
.button--ink:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #122238; }
.button--outline { color: var(--ink); background: transparent; border-color: rgba(32, 52, 83, .45); }
.button--outline:hover { color: #fff; background: var(--ink); }
.button--wide { width: 100%; }
.hero__meta { margin: 0; color: #526880; font-size: 11px; }
.hero-art { position: relative; width: min(100%, 600px); justify-self: end; filter: drop-shadow(0 18px 15px rgba(70,113,144,.13)); }
.hero-art svg { display: block; width: 100%; height: auto; }
.note { position: absolute; z-index: 2; margin: 0; padding: 11px 16px; border-radius: 10px; color: var(--ink); background: var(--paper); box-shadow: 0 4px 0 rgba(32,52,83,.10); font-size: 12px; font-weight: 800; }
.note--top { top: 8%; right: 1%; transform: rotate(7deg); }
.note--bottom { bottom: 10%; left: 6%; transform: rotate(-6deg); }
.grass-edge { position: relative; bottom: -1px; width: 110%; height: 28px; margin-left: -5%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--green); }

.benefit-strip { background: var(--green); }
.benefit-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 64px; min-height: 57px; }
.benefit-strip p { margin: 0; font-size: 13px; font-weight: 800; }
.benefit-strip b { margin-right: 8px; }

.section { padding-top: 84px; padding-bottom: 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
h2 { margin: 10px 0 10px; font-size: clamp(29px, 3vw, 39px); font-weight: 900; letter-spacing: -.06em; line-height: 1.28; }
.section-kicker { color: #68745c; }
.section-lead { margin: 0; color: #627087; font-size: 14px; line-height: 1.7; }
.section-index { margin: 0 0 4px; color: #627087; font-size: 12px; white-space: nowrap; }

.download-card { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border: 1px solid #e3e4db; border-radius: 24px; background: #fff; box-shadow: 0 8px 30px rgba(32,52,83,.035); }
.phone-stage { position: relative; display: grid; min-height: 368px; place-items: center; overflow: hidden; background: #edf2df; }
.phone-stage::before, .phone-stage::after { position: absolute; content: ""; border-radius: 50%; background: rgba(185,218,152,.38); }
.phone-stage::before { top: -45px; right: -40px; width: 150px; height: 150px; }
.phone-stage::after { bottom: -55px; left: -35px; width: 170px; height: 170px; }
.phone { position: relative; z-index: 1; width: 216px; padding: 10px; border-radius: 18px; background: var(--ink); box-shadow: 0 21px 33px rgba(32,52,83,.22); }
.phone__speaker { width: 48px; height: 4px; margin: 0 auto 8px; border-radius: 99px; background: rgba(255,255,255,.64); }
.phone__screen { min-height: 276px; padding: 36px 11px 16px; border-radius: 10px; text-align: center; background: var(--sky); }
.phone__screen > p { margin-bottom: 9px; font-size: 8px; letter-spacing: 1.1px; }
.phone__screen h3 { margin: 0 0 25px; font-size: 16px; letter-spacing: -.05em; }
.mini-games { display: flex; gap: 7px; }
.mini-games div { flex: 1; padding: 13px 3px 9px; border-radius: 8px; background: var(--paper); font-size: 22px; }
.mini-games strong, .mini-games small { display: block; }
.mini-games small { margin-top: 9px; font-size: 7px; font-weight: 900; letter-spacing: .1px; }
.round-sticker { position: absolute; z-index: 2; bottom: 30px; left: 29px; display: grid; width: 78px; height: 78px; margin: 0; place-items: center; border-radius: 50%; text-align: center; background: var(--yellow); box-shadow: 0 5px 10px rgba(32,52,83,.08); font-size: 12px; font-weight: 900; line-height: 1.3; transform: rotate(-13deg); }
.download-content { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 38px 42px; }
.platform-label { margin: 0 0 26px; padding-bottom: 12px; border-bottom: 1px solid #e2e6eb; font-size: 12px; font-weight: 850; }
.download-content h3 { margin: 0 0 9px; font-size: 25px; letter-spacing: -.05em; }
.download-content > p:not(.platform-label):not(.download-notice) { margin-bottom: 13px; color: #627087; font-size: 14px; }
.download-status { display: inline-flex; align-items: center; gap: 7px; margin: 2px 0 21px; color: #687589; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5ab42; box-shadow: 0 0 0 3px rgba(229,171,66,.16); }
.download-notice { margin: 15px 0 0; color: #697688; font-size: 11px; line-height: 1.65; }

.games-section { padding-top: 10px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; overflow: hidden; border: 1px solid #e3e3da; border-radius: 17px; background: #fff; transition: transform .24s ease, box-shadow .24s ease; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-card__art { display: grid; height: 186px; place-items: center; overflow: hidden; }
.game-card__art--mich { background: #f5d996; }
.game-card__art--tsunagi { background: #cfe5d1; }
.game-card__art--seiza { background: #899bbc; }
.game-card__copy { padding: 19px 20px 17px; }
.game-type { margin-bottom: 8px; color: #708464; font-size: 9px; font-weight: 900; letter-spacing: 1.6px; }
.game-card h3 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.04em; }
.game-card h3 span { color: #687589; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.game-card__copy > p:last-child { margin: 0; color: #627087; font-size: 13px; line-height: 1.7; }
.game-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 14px; padding: 13px 6px; border-top: 1px solid #eee; color: #53647a; font-size: 10px; }
.text-button { padding: 0; border: 0; color: var(--ink); background: none; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.tile-board { display: grid; width: 136px; grid-template-columns: repeat(3, 1fr); gap: 6px; transform: rotate(-12deg); }
.tile-board span { display: grid; aspect-ratio: 1; place-items: center; border-radius: 6px; background: var(--paper); box-shadow: 0 4px 0 rgba(32,52,83,.14); font-size: 19px; font-weight: 900; }
.tile-board .tile-board__red { background: #de7564; color: white; }
.color-orbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: rotate(10deg); }
.color-orbs i { width: 29px; height: 29px; border-radius: 50%; background: #e58980; box-shadow: inset -3px -4px 0 rgba(0,0,0,.06); }
.color-orbs i:nth-child(3n) { background: #f6cc5a; }
.color-orbs i:nth-child(2n) { background: #6da98d; }
.stars { position: relative; width: 160px; height: 120px; color: white; }
.stars svg { position: absolute; width: 100%; height: 100%; }
.stars span { position: absolute; display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; font-size: 19px; }

.steps-section { background: #eef3e7; }
.steps { display: grid; margin: 37px 0 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 42px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-right: 10px; }
.steps li:not(:last-child)::after { position: absolute; top: 17px; right: -21px; width: 1px; height: 105px; content: ""; background: rgba(32,52,83,.15); }
.steps span { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; }
.steps h3 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -.04em; }
.steps p { margin: 0; color: #607168; font-size: 13px; line-height: 1.8; }

.faq { max-width: 800px; margin: 0 auto; }
.faq h2 { margin-bottom: 17px; }
details { border-bottom: 1px solid #dedfd7; }
summary { position: relative; padding: 20px 31px 20px 0; list-style: none; font-size: 14px; font-weight: 800; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; top: 16px; right: 3px; content: "+"; color: #6d7c85; font-size: 23px; font-weight: 400; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 690px; margin: -1px 0 19px; color: #627087; font-size: 13px; line-height: 1.75; }

.site-footer { color: var(--paper); background: var(--ink); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 145px; }
.site-footer .logo { color: var(--paper); }
.site-footer p { margin: 13px 0 0; color: #b7c6da; font-size: 11px; line-height: 1.6; }
.footer__right { text-align: right; }
.footer__right a { border-bottom: 1px solid rgba(255,255,255,.58); padding-bottom: 3px; font-size: 12px; font-weight: 800; }

.mobile-menu, .modal { border: 0; color: var(--ink); background: transparent; }
.mobile-menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; }
.mobile-menu::backdrop { background: rgba(15,31,55,.28); backdrop-filter: blur(2px); }
.mobile-menu__panel { width: min(370px, 88vw); min-height: 100%; margin-left: auto; padding: 25px; background: var(--paper); box-shadow: -12px 0 35px rgba(32,52,83,.16); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.icon-button, .modal__close { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid rgba(32,52,83,.25); border-radius: 50%; color: var(--ink); background: transparent; font-size: 24px; cursor: pointer; }
.mobile-menu__links { display: grid; margin-top: 65px; border-top: 1px solid var(--line); }
.mobile-menu__links a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 850; }
.mobile-menu__panel > p { margin-top: 48px; color: #68835a; font-size: 12px; font-weight: 800; line-height: 2; white-space: pre-line; }
.modal { width: min(470px, calc(100% - 36px)); margin: auto; padding: 0; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(21,43,76,.55); backdrop-filter: blur(3px); }
.modal__content { position: relative; padding: 34px; }
.modal__close { position: absolute; top: 18px; right: 18px; }
.modal h2 { max-width: 330px; margin-top: 9px; }
.modal p:not(.section-kicker) { color: #627087; font-size: 14px; line-height: 1.8; }
.modal code { padding: 1px 4px; border-radius: 4px; color: var(--ink); background: #e8edf0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.modal .button { margin-top: 13px; }
.modal__download-link { display: flex; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .wrap { width: min(100% - 40px, 680px); }
  .nav { min-height: 76px; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; padding-top: 51px; padding-bottom: 33px; gap: 14px; }
  .hero__copy { max-width: 580px; }
  .hero-art { width: min(100%, 560px); justify-self: center; }
  .download-card { grid-template-columns: 1fr; }
  .phone-stage { min-height: 335px; }
  .game-grid { grid-template-columns: 1fr; gap: 15px; }
  .game-card { grid-template-columns: 158px 1fr; grid-template-rows: auto auto; }
  .game-card__art { height: 100%; min-height: 174px; grid-row: 1 / 3; }
  .game-card__copy { padding: 19px 19px 10px; }
  .game-card__footer { margin: 0 14px 0 4px; }
  .steps { gap: 26px; }
  .steps li:not(:last-child)::after { right: -13px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 40px, 480px); }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .hero__inner { padding-top: 42px; }
  h1 { margin-top: 22px; font-size: 40px; letter-spacing: -.075em; }
  .hero__intro { font-size: 14px; }
  .hero__intro br { display: none; }
  .note { padding: 8px 11px; border-radius: 8px; font-size: 10px; }
  .note--top { top: 4%; right: 0; }
  .note--bottom { bottom: 8%; }
  .benefit-strip__inner { justify-content: flex-start; padding: 13px 0; gap: 8px 24px; }
  .benefit-strip p { font-size: 11px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-index { margin-top: 15px; }
  .download-content { padding: 30px 24px; }
  .phone-stage { min-height: 300px; }
  .phone { width: 190px; }
  .phone__screen { min-height: 248px; padding-top: 29px; }
  .round-sticker { bottom: 22px; left: 19px; width: 65px; height: 65px; font-size: 10px; }
  .games-section { padding-top: 0; }
  .game-card { grid-template-columns: 128px 1fr; }
  .game-card__art { min-height: 166px; }
  .game-card__copy { padding: 16px 14px 8px; }
  .game-card h3 { font-size: 17px; }
  .game-card__copy > p:last-child { font-size: 12px; }
  .game-card__footer { align-self: start; flex-wrap: wrap; margin: 0 12px 0 0; padding: 8px 0 13px; font-size: 9px; }
  .tile-board { width: 101px; gap: 4px; }
  .tile-board span { border-radius: 4px; font-size: 14px; }
  .color-orbs { gap: 7px; }
  .color-orbs i { width: 21px; height: 21px; }
  .stars { transform: scale(.75); }
  .steps { grid-template-columns: 1fr; gap: 27px; margin-top: 29px; }
  .steps li { padding-right: 0; }
  .steps li:not(:last-child)::after { top: auto; right: 0; bottom: -15px; left: 0; width: 100%; height: 1px; }
  .footer__inner { display: block; padding: 36px 0; }
  .footer__right { margin-top: 28px; text-align: left; }
  .modal__content { padding: 28px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
