:root {
  --cream: #fff9f0;
  --cream-deep: #f4eadc;
  --red: #c93636;
  --red-dark: #9f2529;
  --green: #245247;
  --green-dark: #173b33;
  --gold: #d8a83e;
  --ink: #332b27;
  --muted: #6b5f57;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(74, 49, 35, .12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; background: var(--ink); color: white; padding: 10px 16px; z-index: 999; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-pad { padding: 100px 0; }
.eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .18em; color: var(--red); }
.eyebrow.light { color: #f8d986; }
h1, h2, h3 { line-height: 1.35; margin-top: 0; }
h1 { font-size: clamp(2.35rem, 5.6vw, 5rem); letter-spacing: -.035em; margin-bottom: 24px; }
h1 span { color: var(--red); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.025em; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
p { margin-top: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(51, 43, 39, .08); }
.header-inner { width: min(calc(100% - 40px), var(--max)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.2; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: white; box-shadow: 0 6px 20px rgba(74, 49, 35, .1); }
.brand strong, .brand small { display: block; }
.brand small { color: var(--red); font-weight: 800; margin-top: 3px; }
.global-nav { display: flex; gap: 24px; align-items: center; }
.global-nav a { text-decoration: none; font-size: .93rem; font-weight: 700; }
.global-nav a:hover { color: var(--red); }
.menu-button { display: none; border: 0; border-radius: 999px; padding: 9px 15px; background: var(--green); color: white; font-weight: 700; }
.hero { position: relative; overflow: hidden; padding-top: 85px; }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(216, 168, 62, .13); top: -230px; right: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; min-height: 620px; }
.hero-lead { max-width: 680px; font-size: 1.12rem; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 22px; border: 2px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--red); box-shadow: 0 12px 28px rgba(201, 54, 54, .22); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { color: var(--green); border-color: var(--green); background: transparent; }
.button.secondary:hover { background: var(--green); color: white; }
.text-link { margin-left: 4px; text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 800; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.moon { position: absolute; width: 165px; height: 165px; border-radius: 50%; background: #ffe8aa; top: 18px; right: 10px; box-shadow: 0 0 90px rgba(255, 223, 144, .65); }
.town-card { position: relative; width: min(100%, 470px); min-height: 470px; padding: 40px; border-radius: 44% 56% 48% 52% / 45% 42% 58% 55%; background: linear-gradient(160deg, var(--green), #173b33); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: white; }
.town-card p {
  position: relative;
  z-index: 2;
  width: min(78%, 330px);
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(16, 44, 39, .58);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.town-sky .star { position: absolute; color: #f7d478; font-size: 1.7rem; animation: twinkle 2.3s ease-in-out infinite alternate; }
.star.s1 { left: 70px; top: 70px; }.star.s2 { right: 75px; top: 120px; animation-delay: .6s; }.star.s3 { left: 190px; top: 155px; animation-delay: 1.1s; }
.town { position: absolute; left: 35px; right: 35px; bottom: 122px; height: 180px; }
.house { position: absolute; bottom: 0; width: 100px; height: 105px; background: #f3dfc7; border-radius: 10px 10px 4px 4px; }
.house::before { content: ""; position: absolute; left: -10px; top: -45px; border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 55px solid #b93335; }
.house::after { content: ""; position: absolute; width: 18px; height: 25px; border-radius: 4px; background: #ffd978; left: 18px; top: 28px; box-shadow: 45px 0 #ffd978; }
.h1 { left: 10px; transform: scale(.88); }.h2 { left: 145px; height: 135px; }.h3 { right: 0; transform: scale(.78); transform-origin: bottom; }
.tree { position: absolute; bottom: 0; width: 0; height: 0; border-left: 36px solid transparent; border-right: 36px solid transparent; border-bottom: 90px solid #2f7662; }
.tree::after { content: ""; position: absolute; left: -28px; top: 30px; border-left: 28px solid transparent; border-right: 28px solid transparent; border-bottom: 72px solid #2f7662; }
.t1 { left: 110px; }.t2 { right: 100px; transform: scale(.75); transform-origin: bottom; }
.about-section { background: white; }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 78px; align-items: center; }
.about-illustration { text-align: center; }
.image-frame {
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  margin: auto;
  background: var(--cream);
  border-radius: 42px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 28px;
}
.caption { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.about-copy > p { font-size: 1.04rem; color: var(--muted); }
.area-note { margin-top: 30px; padding: 20px 24px; border-left: 5px solid var(--gold); background: var(--cream); border-radius: 0 18px 18px 0; }
.area-note strong, .area-note span, .area-note small { display: block; }
.area-note span { font-size: 1.2rem; font-weight: 800; color: var(--green); margin: 3px 0; }
.section-heading { max-width: 700px; margin-bottom: 44px; }
.section-heading > p:last-child { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity-card { position: relative; min-height: 280px; padding: 34px; border-radius: var(--radius-lg); box-shadow: 0 14px 38px rgba(62, 49, 39, .08); overflow: hidden; }
.activity-card::after { content: ""; position: absolute; right: -45px; bottom: -45px; width: 150px; height: 150px; border-radius: 50%; opacity: .12; background: currentColor; }
.activity-card.red { color: #86252b; background: #fff0ee; }.activity-card.gold { color: #75551d; background: #fff7db; }.activity-card.green { color: #16483b; background: #eaf6f0; }
.card-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.8); font-size: 1.7rem; margin-bottom: 28px; }
.activity-card p { color: color-mix(in srgb, currentColor 72%, #4f453f); }
.mission-section { background: linear-gradient(135deg, #173b33 0%, #245247 50%, #102c27 100%); color: white; overflow: hidden; }
.mission-wrap { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; }
.mission-copy > p:not(.eyebrow) { color: rgba(255,255,255,.82); max-width: 650px; }
.mission-points { list-style: none; display: flex; gap: 10px; padding: 0; margin: 24px 0 0; flex-wrap: wrap; }
.mission-points li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .88rem; font-weight: 700; }
.game-button { margin-top: 26px; border: 0; background: #f4cf6d; color: #332b27; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.stamp-preview { min-height: 310px; border: 1px solid rgba(255,255,255,.24); border-radius: 38px; background: rgba(255,255,255,.08); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; padding: 38px; box-shadow: inset 0 1px rgba(255,255,255,.12); }
.stamp-preview span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--cream); font-size: 2rem; transform: rotate(var(--r, 0deg)); }
.stamp-preview span:nth-child(1){--r:-7deg}.stamp-preview span:nth-child(2){--r:5deg}.stamp-preview span:nth-child(3){--r:-3deg}.stamp-preview span:nth-child(4){--r:6deg}.stamp-preview span:nth-child(5){--r:-6deg}
.stamp-preview strong { flex-basis: 100%; text-align: center; margin-top: 12px; }
.ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.way-card { background: white; border: 1px solid rgba(51,43,39,.07); border-radius: 24px; padding: 28px; min-height: 250px; box-shadow: 0 10px 32px rgba(62,49,39,.06); }
.way-card > span { font-size: 2rem; }
.way-card h3 { margin-top: 18px; }
.way-card p { color: var(--muted); font-size: .94rem; }
.social-section { background: white; }
.social-panel { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; background: var(--cream); padding: 42px 48px; border-radius: var(--radius-lg); }
.social-panel h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 8px; }
.social-panel p { margin-bottom: 0; color: var(--muted); }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a { text-decoration: none; font-weight: 800; padding: 11px 17px; border-radius: 999px; background: white; border: 1px solid rgba(51,43,39,.12); }
.social-links a:hover { border-color: var(--red); color: var(--red); }
.final-cta { color: white; background: var(--green); text-align: center; }
.final-inner { max-width: 940px; }
.button-row.centered { justify-content: center; }
.button.pale { color: var(--green-dark); background: #f4cf6d; }
.button.outline-light { color: white; border-color: rgba(255,255,255,.7); background: transparent; }
.button.outline-light:hover { color: var(--green-dark); background: white; }
.site-footer { padding: 46px 0; background: #17201d; color: rgba(255,255,255,.8); }
.footer-inner { display: grid; grid-template-columns: 1.2fr .8fr auto; gap: 34px; align-items: start; }
.footer-inner strong { color: white; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-inner a { color: inherit; }
.footer-inner small { color: rgba(255,255,255,.5); }
.game-dialog { width: min(calc(100% - 28px), 760px); border: 0; border-radius: 30px; padding: 0; background: transparent; color: var(--ink); }
.game-dialog::backdrop { background: rgba(10, 24, 21, .78); backdrop-filter: blur(7px); }
.game-shell { position: relative; min-height: 590px; padding: 34px; border-radius: 30px; background: var(--cream); box-shadow: 0 28px 100px rgba(0,0,0,.32); overflow: auto; max-height: calc(100vh - 34px); }
.dialog-close { position: absolute; z-index: 2; right: 18px; top: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; font-size: 1.6rem; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.1); }
.game-progress-wrap { padding-right: 50px; margin-bottom: 32px; }
.game-progress-meta { display: flex; justify-content: space-between; gap: 15px; font-weight: 800; font-size: .88rem; }
.progress-bar { height: 9px; background: #eadfd0; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .35s ease; }
.game-content { min-height: 450px; display: flex; flex-direction: column; justify-content: center; }
.game-intro { text-align: center; max-width: 580px; margin: auto; }
.game-intro .mini-santa { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin: 0 auto 22px; background: white; border: 5px solid white; box-shadow: var(--shadow); }
.game-intro h2, .question-screen h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.game-intro p, .question-screen > p { color: var(--muted); }
.question-screen { max-width: 630px; margin: 0 auto; width: 100%; }
.question-number { color: var(--red); font-weight: 900; letter-spacing: .1em; font-size: .82rem; }
.options { display: grid; gap: 12px; margin-top: 28px; }
.option-button { width: 100%; text-align: left; border: 2px solid transparent; border-radius: 18px; background: white; padding: 17px 18px; font-weight: 750; line-height: 1.6; cursor: pointer; box-shadow: 0 7px 22px rgba(62,49,39,.07); transition: border-color .2s, transform .2s; }
.option-button:hover { border-color: var(--red); transform: translateY(-1px); }
.option-button:focus-visible { outline: 3px solid #2a74c9; outline-offset: 3px; }
.feedback { padding: 28px; border-radius: 22px; background: white; box-shadow: 0 10px 32px rgba(62,49,39,.08); }
.feedback-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; color: white; background: var(--green); font-weight: 900; font-size: .85rem; }
.feedback-badge.guide { background: var(--gold); color: var(--ink); }
.feedback h3 { font-size: 1.55rem; margin: 18px 0 8px; }
.feedback p { color: var(--muted); }
.stamp-earned { margin: 22px 0; display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: var(--cream); border-radius: 16px; font-weight: 900; }
.stamp-earned span { font-size: 1.7rem; }
.next-button { width: 100%; margin-top: 4px; border: 0; color: white; background: var(--red); }
.game-complete { text-align: center; max-width: 650px; margin: auto; }
.game-complete img { width: 170px; margin: 0 auto 14px; border-radius: 26px; background: white; padding: 8px; }
.stamp-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.stamp-row span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: white; box-shadow: 0 6px 18px rgba(62,49,39,.1); }
.complete-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.complete-links a { display: grid; place-items: center; min-height: 72px; padding: 10px; border-radius: 16px; text-decoration: none; font-weight: 800; background: white; border: 1px solid rgba(51,43,39,.1); }
.complete-links a:hover { border-color: var(--red); color: var(--red); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes twinkle { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .global-nav { display: none; position: absolute; left: 20px; right: 20px; top: 67px; padding: 20px; border-radius: 20px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .global-nav.open { display: flex; }
  .menu-button { display: block; }
  .hero-grid, .split-grid, .mission-wrap, .social-panel { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-visual { min-height: 430px; }
  .split-grid { gap: 48px; }
  .card-grid { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: repeat(2, 1fr); }
  .social-links { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner small { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section-pad { padding: 72px 0; }
  .header-inner { width: calc(100% - 28px); min-height: 68px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .75rem; }
  .hero { padding-top: 50px; }
  .hero-visual { min-height: 365px; }
  .town-card { min-height: 360px; padding: 28px; }
  .town { transform: scale(.78); transform-origin: bottom left; width: 120%; bottom: 98px; }
  .town-card p { width: min(82%, 300px); font-size: 1rem; padding: 9px 11px; }
  .moon { width: 120px; height: 120px; }
  .button-row { align-items: stretch; }
  .button-row .button { width: 100%; }
  .text-link { margin: 4px auto 0; }
  .ways-grid { grid-template-columns: 1fr; }
  .way-card { min-height: auto; }
  .social-panel { padding: 30px 24px; }
  .social-links a { flex: 1 1 100%; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner small { grid-column: auto; }
  .game-shell { min-height: calc(100vh - 28px); padding: 28px 20px; border-radius: 24px; }
  .game-dialog { width: calc(100% - 16px); }
  .complete-links { grid-template-columns: 1fr; }
  .game-progress-meta { font-size: .78rem; }
}
