:root {
  --paper: #fcfbf7;
  --ink: #3b2c1b;
  --muted: #705631;
  --red: #b23a20;
  --bright: #dd4a2c;
  --gold: #f2c14e;
  --gold-text: #8f6410;
  --line: #e4d3a8;
  --cream: #faf3e1;
  --focus: #2e6fb8;
  --display: 'Dela Gothic One', 'Hiragino Kaku Gothic ProN', sans-serif;
  --body: 'Zen Kaku Gothic New', 'Hiragino Sans', Meiryo, sans-serif;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --section-space: clamp(3rem, 5vw, 4.5rem);
  --press-time: 140ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }
.icon { display: inline-block; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; vertical-align: middle; }
.section-kicker { display: flex; align-items: center; gap: .6rem; }
.section-kicker .icon { color: var(--gold-text); width: 1.1rem; height: 1.1rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.5; }
h1, h2, .brand { font-family: var(--display); font-weight: 900; font-synthesis: none; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.5rem); letter-spacing: -.035em; }
em { font-style: normal; color: var(--red); }
.keep { display: inline-block; max-width: 100%; }
.wrap { width: min(72.5rem, calc(100% - 4rem)); margin-inline: auto; }
.header {
  width: min(82.5rem, calc(100% - 4rem));
  min-height: 5.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--red);
  font-size: 1.4rem;
  white-space: nowrap;
}
.app-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: .6rem;
}
.header nav { display: flex; align-items: center; gap: var(--space-4); font-weight: 700; font-size: .875rem; }
.header nav a { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; text-decoration: none; }
.nav-cta { padding-inline: var(--space-2); border-radius: .5rem; background: var(--cream); white-space: nowrap; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: var(--space-4);
  padding-block: 2.5rem var(--section-space);
}
.hero-copy, .hero-visual, .experience-copy, .shot-composition { min-width: 0; }
.eyebrow { font-size: .875rem; letter-spacing: .09em; font-weight: 900; color: var(--red); margin-bottom: var(--space-2); }
.hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.85rem); line-height: 1.65; letter-spacing: -.06em; }
.hero h1 > span, .hero h1 > em { display: block; }
.lead { max-width: 28em; margin-top: var(--space-3); font-size: 1.125rem; text-wrap: pretty; }
.hero-copy { container: hero-copy / inline-size; }
.hero-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; max-width: 28rem; margin-top: var(--space-3); }
.hero-visual { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 1.75rem 0 2rem; }
.hero-circle { position: absolute; z-index: -1; width: 100%; max-width: 29rem; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from -10deg, #c3912914 0deg 9deg, transparent 9deg 30deg), #f8eac1; top: 50%; transform: translateY(-50%); }
.hero-confetti { position: absolute; z-index: -1; inset: 0 -1.25rem; width: calc(100% + 2.5rem); height: 100%; color: #d5a12c; opacity: .85; pointer-events: none; }
.confetti-red { color: var(--red); opacity: .8; }
.confetti-narrow { display: none; }
.phone { position: relative; width: 17rem; max-width: 100%; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 1.8rem; box-shadow: 0 24px 42px -20px #8a6a3255; }
.screen { aspect-ratio: 1008 / 1911; overflow: hidden; border-radius: 1.2rem; background: var(--cream); }
.screen img { width: 100%; max-width: none; transform: translateY(-5.035%); }
.hero-phone { transform: rotate(5deg); }
/* 同じ画面を336pxスクロールした原本をつなぎ、バーなしで4種のくじまで表示。 */
.hero-phone .screen { aspect-ratio: 1206 / 2259; }
.hero-capture-top, .hero-capture-bottom { overflow: hidden; }
.hero-capture-top { aspect-ratio: 1206 / 1758; }
.hero-capture-bottom { aspect-ratio: 1206 / 501; }
.hero-capture-top img { transform: translateY(-7.093822%); } /* 原本のY=186〜1944 */
.hero-capture-bottom img { transform: translateY(-61.327231%); } /* 原本のY=1608〜2109 */
.vertical-note { position: absolute; right: 0; top: 1rem; writing-mode: vertical-rl; font-size: 1rem; letter-spacing: .22em; font-weight: 700; }
.mascot { position: absolute; width: 8.5rem; height: 8.5rem; object-fit: contain; bottom: .2rem; left: 0; transform: rotate(-6deg); filter: drop-shadow(0 8px 8px #8a6a3220); }
.spark { position: absolute; color: var(--red); width: 2.6rem; height: 2.6rem; top: 1.5rem; left: 1rem; }
.section { padding-block: var(--section-space); }
.games-section { padding-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); margin-bottom: 1.75rem; }
.section-heading > p { color: var(--muted); }
.game-grid { container: kuji-list / inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
/* アプリと同じ序列: 朱のジャンボ、金のスクラッチ、白い福引、数字くじの横長券。 */
.game {
  --game-accent: var(--red);
  --game-rule: #dfcea6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  grid-template-areas: 'heading art' 'copy copy' 'prize prize';
  align-content: stretch;
  gap: 1rem;
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: inset 0 1px 0 #ffffffb3, 0 4px 0 #e4d3a83d, 0 14px 26px -20px #8a6a3266;
}
.game-heading { grid-area: heading; min-width: 0; align-self: center; }
.game-kicker { margin-bottom: .5rem; color: var(--game-accent); font-size: .875rem; font-weight: 700; letter-spacing: .07em; }
.game h3 { font-family: var(--display); font-weight: 900; font-synthesis: none; font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.5; letter-spacing: -.035em; }
.game-description { grid-area: copy; text-wrap: pretty; max-width: 31em; }
.game-illustration { grid-area: art; position: relative; isolation: isolate; align-self: center; min-width: 0; }
.game-art { display: block; position: relative; width: 100%; height: auto; }
.game-detail { grid-area: prize; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; padding-top: 1rem; border-top: 1px dashed var(--game-rule); font-size: .875rem; }
.game-detail strong { display: inline-block; color: var(--game-accent); font-family: var(--display); font-weight: 900; font-synthesis: none; font-size: 1.75rem; line-height: 1.5; }
.game-detail small { font-size: .8125rem; }
.game.jumbo {
  --game-accent: #ffe6a5;
  --game-rule: #ffffff4d;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: 'heading art' 'copy art' 'prize art' 'footer footer';
  gap: .75rem 2rem;
  padding: 2rem 2.25rem 0;
  background: linear-gradient(120deg, #c74227, #ab301b);
  border-color: #b23a20;
  color: #fffdf5;
  box-shadow: inset 0 1px 0 #f59c7880, 0 4px 0 #8a2a18, 0 16px 28px -20px #b23a2080;
}
.jumbo h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); text-shadow: 0 2px 0 #8a2a1880; }
.jumbo .game-kicker { color: #fffdf5; }
.jumbo .game-illustration { width: min(100%, 21rem); justify-self: center; }
.jumbo .game-illustration::before { content: ''; position: absolute; z-index: -1; inset: -15% -5%; border-radius: 50%; background: repeating-conic-gradient(from 10deg, #f2c14e26 0deg 11deg, transparent 11deg 26deg); mask-image: radial-gradient(ellipse, #000 40%, transparent 71%); }
.jumbo .game-detail { border: 0; padding: 0; gap: .25rem .75rem; }
.jumbo .game-detail strong { font-size: 3rem; }
.game-footer { grid-area: footer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; margin-top: .25rem; border-top: 1px dashed var(--game-rule); font-size: .875rem; font-weight: 700; }
.game-footer > span { display: inline-flex; align-items: center; gap: .5rem; }
.game.scratch { --game-accent: #4a3410; --game-rule: #b58b3b; color: #4a3410; background: linear-gradient(140deg, #f9dfa0, #edbc50); border-color: #dbb057; box-shadow: inset 0 1px 0 #fff4cf, 0 4px 0 #d6ae5f66, 0 14px 26px -20px #a8761e99; }
.garapon .game-illustration { transform: scale(1.06); }
.game.numbers { --game-accent: #5a54b0; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: 'heading art' 'copy art' 'prize art'; gap: .75rem 2rem; background: linear-gradient(110deg, #fff 60%, #f7f5ff); border-left: 4px solid #7770c9; }
.numbers .game-illustration { width: min(100%, 21rem); justify-self: center; }
.numbers .game-detail { padding: 0; border: 0; gap: .5rem; }
.numbers .game-detail span { padding: .25rem .8rem; border: 1px solid #d4cee9; border-radius: 99px; color: #5a54b0; background: #f5f2ff; font-size: .8125rem; font-weight: 700; }
.section-note { font-size: .8125rem; color: var(--muted); margin-top: var(--space-3); max-width: 58em; }
.experience { background: var(--cream); padding-block: var(--section-space); }
.experience-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: var(--space-5); }
.shot-composition { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); }
.stats-phone { width: min(100%, 17rem); transform: rotate(-3deg); }
.side-caption { text-align: center; font-weight: 700; letter-spacing: .15em; font-size: .875rem; }
.experience-copy > p:not(.eyebrow) { margin-top: var(--space-3); max-width: 29em; }
.benefits { list-style: none; padding: .25rem 1.25rem; margin: var(--space-3) 0 0; border: 1px solid var(--line); border-radius: .875rem; background: #fffdf8; }
.benefits li { display: flex; align-items: start; gap: var(--space-2); padding-block: .875rem; }
.benefits li + li { border-top: 1px solid var(--line); }
.benefit-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; color: #5a54b0; background: #f4f1ff; border: 1px solid #d9d2ef; border-radius: .7rem; }
.benefits h3 { font-size: 1.125rem; font-weight: 900; }
.benefits p { font-size: .875rem; color: var(--muted); margin-top: .35rem; }
.collection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-5); }
.collection > div > p:last-child { margin-top: var(--space-3); max-width: 27em; }
.badges { display: flex; gap: var(--space-2); justify-content: center; }
.badges figure { flex: 1; min-width: 0; text-align: center; max-width: 10rem; }
.badge-art { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); }
.badge-art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.badges figcaption { font-size: .875rem; font-weight: 700; margin-top: var(--space-2); }
.download { background: var(--red); color: #fff9e9; text-align: center; padding-block: var(--section-space); }
.download .app-icon { width: 5rem; height: 5rem; border-radius: 1rem; margin-bottom: var(--space-3); }
.download .eyebrow { color: #ffe3a2; }
.download h2 + p { margin-top: var(--space-3); }
.stores { display: flex; justify-content: center; gap: var(--space-2); flex-wrap: wrap; margin-block: var(--space-4) var(--space-2); }
.store { display: grid; grid-template-columns: 1.75rem minmax(0, max-content); justify-content: center; text-align: left; flex: 0 1 16rem; min-width: 0; max-width: 100%; padding: .875rem 1rem; align-items: center; gap: 0 .75rem; border-radius: .6rem; background: #982f1b; text-decoration: none; transition: transform var(--press-time) ease, background-color var(--press-time) ease; }
.store-icon { width: 1.75rem; height: 1.75rem; grid-column: 1; grid-row: 1 / 3; color: #fff; }
a.store .store-icon { color: #28251f; }
.hero-stores a.store .store-icon { color: #fff; }
.store small { font-size: .75rem; grid-column: 2; }
.store .store-free { font-size: .75rem; margin-top: .2rem; }
.store strong { font-size: 1.2rem; grid-column: 2; line-height: 1.5; }
a.store { background: #fff9e9; color: var(--red); }
.hero-stores .store { padding: .875rem .375rem; border: 1px solid #403c34; background: #28251f; color: #fffdf5; box-shadow: 0 3px 0 #171511; }
.hero-stores .store small { color: #eee0c4; }
.hero-stores .store strong { font-size: clamp(1rem, 1.55vw, 1.25rem); white-space: nowrap; }
@container hero-copy (max-width: 19.5rem) {
  .hero-stores { grid-template-columns: minmax(0, 1fr); }
  .hero-stores .store strong { white-space: normal; overflow-wrap: normal; }
}

.footer { padding-block: 2rem; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.footer .brand { font-size: 1.25rem; }
.footer .app-icon { width: 2.2rem; height: 2.2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.footer small { font-size: .8125rem; color: var(--muted); }
.media-slot { position: relative; }
.image-fallback:not([hidden]) { position: absolute; inset: 0; display: grid; align-content: center; text-align: center; padding: 1rem; background: var(--cream); color: var(--muted); font-size: .8125rem; }
.image-unavailable > img { opacity: 0; }
.badge-art .image-fallback { padding: .25rem; line-height: 1.35; }
.header nav a, .brand, .footer nav a { transition: color var(--press-time) ease, background-color var(--press-time) ease; }
@media (hover: hover) {
  .header nav a:hover, .footer nav a:hover { color: var(--red); text-decoration: underline; }
  .nav-cta:hover { background: #f3e7c8; }
  a.store:hover { background: #ffe3a2; transform: translateY(-2px); }
  .hero-stores a.store:hover { background: #40382c; }
}
a.store:active { transform: translateY(2px); background: #f2c14e; }
.hero-stores a.store:active { background: #40382c; box-shadow: 0 1px 0 #171511; }
.header nav a:active, .brand:active, .footer nav a:active { color: #842a17; background: var(--cream); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 10; background: #fff; padding: .75rem; }
.skip-link:focus { top: 1rem; }
@media (max-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-3); }
  .hero h1 { font-size: 2rem; }
  .hero-phone { width: 14rem; }
  .mascot { width: 7rem; height: 7rem; }
  .experience-grid, .collection { gap: var(--space-4); }
  .game { grid-template-columns: minmax(0, 1fr) 6rem; padding: 1.25rem; }
  .game.jumbo { padding: 1.75rem 1.75rem 0; }
  .game h3 { font-size: 1.4rem; }
  .jumbo h3 { font-size: 2rem; }
}
@media (max-width: 45rem) {
  .wrap, .header { width: calc(100% - 2.5rem); }
  .header { min-height: 4.5rem; gap: .75rem; }
  .brand { font-size: 1.2rem; gap: .5rem; }
  .seal { width: 2rem; height: 2.2rem; font-size: 1.4rem; }
  .header nav { gap: 0; }
  .header nav > a:not(.nav-cta) { display: none; }
  .nav-cta { padding-inline: .8rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 1.5rem 2rem; gap: 1.75rem; }
  .eyebrow { font-size: .8125rem; }
  .hero h1 { font-size: clamp(1.65rem, 6.8vw, 2.4rem); }
  .lead { font-size: 1rem; margin-top: var(--space-2); max-width: 28em; }
  .hero-stores { margin-top: 1.25rem; gap: .75rem; }
  .hero-visual { width: min(100%, 23rem); margin-inline: auto; padding-block: 1rem 1.25rem; }
  .hero-phone { width: min(85%, 11.5rem); min-width: 0; }
  .hero-circle { width: 94%; }
  .hero-confetti { inset-inline: -.75rem; width: calc(100% + 1.5rem); }
  .confetti-wide { display: none; }
  .confetti-narrow { display: inline; }
  .vertical-note { right: .25rem; font-size: .875rem; }
  .spark { width: 2rem; height: 2rem; left: .5rem; }
  .mascot { width: 6rem; height: 6rem; left: .25rem; }
  .section-heading { display: block; margin-bottom: var(--space-3); }
  .section-heading > p { margin-top: var(--space-2); }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .game { grid-template-columns: minmax(0, 1fr) min(34%, 7.5rem); padding: 1.25rem; gap: .875rem .75rem; }
  .game h3 { font-size: clamp(1.25rem, 5.7vw, 1.6rem); }
  .game-kicker { font-size: .8125rem; letter-spacing: .02em; }
  .game-detail strong { font-size: 1.55rem; }
  .game.jumbo { grid-template-columns: minmax(0, 1fr) min(34%, 7.5rem); grid-template-areas: 'heading art' 'prize prize' 'copy copy' 'footer footer'; gap: .75rem; padding: 1.25rem 1.25rem 0; }
  .jumbo h3 { font-size: clamp(1.3rem, 6vw, 1.75rem); }
  .jumbo .game-detail strong { font-size: 2.2rem; }
  .game-footer { font-size: .8125rem; padding-block: .875rem; }
  .game.numbers { grid-template-columns: minmax(0, 1fr) min(45%, 10rem); grid-template-areas: 'heading art' 'copy copy' 'prize prize'; gap: 1rem .75rem; }
  .numbers h3 { font-size: 1.5rem; }
  .benefits { padding-inline: 1rem; }
  .benefits li { gap: .75rem; }
  .section-note { margin-top: var(--space-3); }
  .experience-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .experience-copy { grid-row: 1; }
  .shot-composition { gap: var(--space-2); }
  .stats-phone { width: min(100%, 15.5rem); }
  .collection { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .badges { gap: .75rem; }
  .badges figcaption { font-size: .8125rem; }
  .download h2 + p { font-size: .9375rem; }
  .footer nav { width: 100%; }
  .footer small { order: 3; }
}
/* 文字拡大で相対的に狭くなったときは、絵と見出しを縦に並べる。 */
@container kuji-list (max-width: 15rem) {
  .game, .game.jumbo, .game.numbers { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'heading' 'art' 'copy' 'prize'; padding: .75rem; gap: .75rem; }
  .game.jumbo { grid-template-areas: 'heading' 'art' 'prize' 'copy' 'footer'; padding-bottom: 0; }
  .game .game-illustration { width: min(100%, 8rem); justify-self: start; }
  .game.numbers .game-illustration { width: 100%; }
  .game .game-detail strong { font-size: 1.5rem; }
}
/* 動きを抑える設定でも、色と影で押した反応は残す。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.store, .header nav a, .brand, .footer nav a { transition: none; }
  a.store:hover, a.store:active { transform: none; }
}
