:root {
  --ink: #222226;
  --muted: #5e626c;
  --line: #f0dfd5;
  --paper: #fffdf9;
  --pink: #ef5a86;
  --pink-soft: #ffe8ef;
  --blue: #52a9e8;
  --yellow: #f6bd45;
  --green: #72bd5f;
  --shadow: 0 18px 48px rgba(72, 54, 40, 0.12);
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 7% 7%, rgba(239, 90, 134, 0.09), transparent 18rem),
    radial-gradient(circle at 88% 6%, rgba(82, 169, 232, 0.08), transparent 18rem),
    linear-gradient(180deg, #fffdf9 0%, #fffaf6 100%);
}

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

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

.hero,
main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 2px solid #f3e2d6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(82, 58, 38, 0.1);
  font-size: 34px;
}

.brand-icon.large {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  font-size: 42px;
}

.brand-kana {
  color: var(--pink);
}

.brand-blue {
  color: var(--blue);
}

.nav-cta {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(239, 90, 134, 0.24);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 460px;
  padding: 28px 0 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.1vw, 4.85rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--pink);
  text-decoration: underline wavy rgba(239, 90, 134, 0.36);
  text-underline-offset: 0.1em;
}

.lead {
  max-width: 36rem;
  margin: 24px 0 0;
  color: #383a41;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 650;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  min-width: 198px;
  padding: 9px 18px;
  border-radius: 12px;
  background: #050505;
  color: #fff;
  font-weight: 800;
  line-height: 1.08;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.store-badge small {
  display: block;
  font-size: 1.15rem;
}

.apple {
  font-size: 2rem;
  line-height: 1;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(239, 90, 134, 0.26);
}

.primary-button::after {
  content: "›";
  margin-left: 12px;
  font-size: 1.5rem;
}

.phone-stage {
  position: relative;
  min-height: 340px;
}

.phone {
  position: relative;
  aspect-ratio: 1.9 / 1;
  min-height: 280px;
  border: 14px solid #111;
  border-radius: 42px;
  background: #7fc766;
  overflow: hidden;
  box-shadow: 0 30px 54px rgba(22, 20, 20, 0.28);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #83d4f5 0 42%, #77bd5d 42% 70%, #4a953b 70%),
    radial-gradient(circle at 22% 45%, #66ad4e 0 10%, transparent 11%);
}

.game-screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 56px 1fr 68px;
  padding: 20px 30px;
  isolation: isolate;
}

.game-bar {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #ffd84f;
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 900;
}

.camera-card {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 36px;
  width: clamp(92px, 18vw, 156px);
  aspect-ratio: 0.92 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.camera-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 36%, #ffd7b4 0 26%, transparent 27%),
    radial-gradient(circle at 50% 70%, #fff2e7 0 36%, transparent 37%),
    linear-gradient(180deg, #f7fbff 0%, #ffe8de 100%);
}

.camera-card span {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: clamp(3.3rem, 8vw, 6.5rem);
}

.bird,
.house {
  position: absolute;
  z-index: 1;
  font-size: clamp(3rem, 8vw, 6.3rem);
}

.bird {
  top: 31%;
  left: 46%;
}

.house {
  top: 28%;
  right: 7%;
}

.animal-row {
  align-self: end;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
}

.animal-row span {
  display: grid;
  place-items: center;
  width: clamp(44px, 7vw, 72px);
  aspect-ratio: 1;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff8e8;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.bubble {
  position: absolute;
  top: -18px;
  right: -22px;
  display: grid;
  place-items: center;
  width: clamp(118px, 14vw, 166px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  text-align: center;
  font-size: clamp(0.94rem, 1.5vw, 1.24rem);
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 18px 32px rgba(239, 90, 134, 0.24);
}

.feature-strip,
.section,
.download {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 34px rgba(72, 54, 40, 0.06);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
  padding: 22px 26px;
}

.feature-strip article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.feature-strip h2,
.feature-strip p {
  margin: 0;
}

.feature-strip h2 {
  font-size: 1rem;
}

.feature-strip p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.65;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.7rem;
}

.pink { background: var(--pink); }
.blue { background: var(--blue); }
.yellow { background: var(--yellow); }
.green { background: var(--green); }

.section {
  margin-bottom: 42px;
  padding: clamp(26px, 4vw, 42px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.1vw, 2.22rem);
  line-height: 1.35;
}

.section-heading span {
  color: var(--pink);
  font-size: 1.7rem;
  font-weight: 900;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 148px minmax(160px, 0.62fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #f2e3d8;
  border-radius: 18px;
  background: #fff;
}

.news-item time {
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.news-item h3,
.news-item p {
  margin: 0;
}

.news-item h3 {
  font-size: 1.02rem;
  line-height: 1.45;
}

.news-item p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.75;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  min-width: 0;
  text-align: center;
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.36 / 1;
  border: 4px solid #29333e;
  border-radius: 13px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  box-shadow: 0 12px 20px rgba(32, 48, 62, 0.15);
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #8fd9ff 0 56%, #77c365 56%);
  z-index: 0;
}

.thumb span,
.thumb b {
  position: relative;
  z-index: 1;
}

.thumb b {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 0.5em;
}

.balloon-game::before { background: linear-gradient(180deg, #96dcfb 0 62%, #f5b1d2 62%); }
.match-game::before { background: linear-gradient(135deg, #c9eab7 0 50%, #f7d9b3 50%); }
.bubble-game::before { background: linear-gradient(180deg, #67c6f0 0 100%); }
.puzzle-game::before { background: linear-gradient(180deg, #87cf86 0 100%); }
.drive-game::before { background: linear-gradient(90deg, #70bc64 0 28%, #5f6670 28% 72%, #87c76b 72%); }

.game-card strong {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  margin-top: -14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.94rem;
  position: relative;
  z-index: 1;
}

.game-card:nth-child(2) strong,
.game-card:nth-child(4) strong,
.game-card:nth-child(6) strong {
  background: var(--blue);
}

.game-card:nth-child(3) strong {
  background: var(--yellow);
}

.game-card:nth-child(5) strong {
  background: #4fc08d;
}

.game-card p {
  min-height: 2.8em;
  margin: 12px 0 4px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.game-card small {
  color: var(--pink);
  font-weight: 850;
}

.step-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  text-align: center;
}

.step-number {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.step-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: #343741;
  font-weight: 780;
  line-height: 1.5;
}

.mini-phone {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 270px);
  aspect-ratio: 1.9 / 1;
  border: 8px solid #111;
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
}

.mini-phone.start {
  gap: 10px;
  align-content: center;
}

.mini-phone button {
  width: min(80%, 170px);
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--pink);
  font-weight: 850;
}

.mini-phone button + button {
  background: var(--blue);
}

.mini-phone.play,
.mini-phone.movie {
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, #8bdcff 0 58%, #7cc86a 58%);
  font-size: 3rem;
}

.mini-phone.movie {
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, #8bdcff 0 58%, #2b2d34 58%);
  color: #fff;
}

.memory-security {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: stretch;
}

.memories {
  min-width: 0;
}

.memory-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.memory-row article {
  min-width: 0;
  text-align: center;
}

.memory-row span {
  display: grid;
  place-items: center;
  width: min(108px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f1ded2;
  font-size: clamp(2rem, 4vw, 3.6rem);
  box-shadow: 0 12px 24px rgba(72, 54, 40, 0.1);
}

.memory-row p {
  margin: 0;
  font-weight: 850;
  line-height: 1.5;
}

.security {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.security h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 1.35rem;
}

.security ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
}

.security li span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink-soft);
}

.security strong {
  color: var(--ink);
}

.download {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  margin-bottom: 46px;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 64px);
}

.download > div {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.download h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 2.3rem);
  line-height: 1.35;
}

.download h2 span {
  color: var(--pink);
  font-size: 1.22em;
}

.large-badge {
  min-width: 286px;
  min-height: 76px;
  border-radius: 16px;
  font-size: 1.18rem;
}

.large-badge small {
  font-size: 1.65rem;
}

.free-badge {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .hero,
  main {
    width: min(100% - 32px, 760px);
  }

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

  .phone-stage {
    order: -1;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-item {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .news-item p {
    grid-column: 2;
  }

  .game-grid,
  .memory-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-layout,
  .memory-security,
  .download {
    grid-template-columns: 1fr;
  }

  .download {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero,
  main {
    width: min(100% - 22px, 460px);
  }

  .topbar {
    align-items: flex-start;
    padding-top: 18px;
  }

  .brand {
    gap: 10px;
    line-height: 1.25;
  }

  .brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 27px;
  }

  .nav-cta {
    padding: 10px 13px;
    font-size: 0.86rem;
  }

  .hero-grid {
    gap: 22px;
    padding-top: 18px;
  }

  .phone-stage {
    min-height: auto;
    padding-top: 34px;
  }

  .phone {
    min-height: 190px;
    border-width: 9px;
    border-radius: 30px;
  }

  .game-screen {
    grid-template-rows: 36px 1fr 46px;
    padding: 12px 16px;
  }

  .camera-card {
    top: 22px;
    left: 18px;
    border-radius: 12px;
  }

  .bubble {
    top: 0;
    right: -4px;
  }

  .hero h1 {
    font-size: clamp(2.28rem, 11.4vw, 3.55rem);
  }

  .lead {
    line-height: 1.8;
  }

  .hero-actions {
    align-items: stretch;
  }

  .store-badge,
  .primary-button {
    width: 100%;
  }

  .feature-strip,
  .game-grid,
  .memory-row {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    padding: 18px;
  }

  .section {
    padding: 22px 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .news-item p {
    grid-column: auto;
  }

  .section-heading {
    gap: 10px;
  }

  .thumb {
    max-width: 260px;
    margin: 0 auto;
  }

  .game-card p {
    min-height: 0;
  }

  .memory-row {
    gap: 22px;
  }

  .memory-row span {
    width: 120px;
  }

  .download > div {
    flex-direction: column;
  }

  .large-badge {
    min-width: 0;
    width: 100%;
  }
}
