/* 形象官網 */
body.site { background: var(--bg); overflow-x: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.center { text-align: center; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; gap: 18px; padding: calc(10px + env(safe-area-inset-top, 0px)) 22px 10px; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(255, 248, 239, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(40, 30, 80, .08); }
.logo { font-weight: 900; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { font-family: var(--font-en); background: var(--ink); color: var(--yellow); border-radius: 12px; padding: 2px 9px; font-size: 1.1rem; }
.nav-links { display: flex; gap: 16px; flex: 1; justify-content: center; }
.nav-links a { color: var(--ink2); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { padding: .5em 1.1em; font-size: .9rem; }
@media (max-width: 980px) { .nav-links { display: none; } .nav { justify-content: space-between; } }
@media (max-width: 460px) { .nav-cta .btn-ghost { display: none; } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 20px 80px; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #ffe3f1 0, transparent 60%), radial-gradient(900px 600px at -10% 110%, #dff3ff 0, transparent 60%), var(--bg); }
.hero-bg .fl { position: absolute; left: var(--x); top: var(--y); font-size: clamp(2rem, 5vw, 4.2rem); filter: drop-shadow(0 10px 18px rgba(0,0,0,.12)); will-change: transform; }
.hero-inner { position: relative; max-width: 900px; text-align: center; }
.eyebrow { display: inline-block; font-weight: 900; color: var(--purple); background: #efeaff; padding: .3em 1em; border-radius: 999px; margin: 0 0 18px; }
.hero-title { font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
.hero-title em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--yellow); z-index: -1; border-radius: 6px; transform-origin: left; transform: scaleX(var(--u, 1)); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--ink2); margin: 22px auto 0; max-width: 720px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 44px auto 0; max-width: 760px; }
.hero-stats li { background: #fff; border-radius: 18px; padding: 14px 8px; box-shadow: var(--shadow-sm); }
.hero-stats b { display: block; font-family: var(--font-en); font-size: 2rem; color: var(--purple); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-weight: 700; font-size: .85rem; }
.scroll-hint span { display: inline-block; animation: bob 1.4s infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* sections */
.sec { padding: 110px 0; position: relative; }
.sec-tint { background: linear-gradient(180deg, #fff 0, #f6f2ff 100%); }
.sec-dark { background: #1d1b33; color: #fff; }
.sec-dark .sec-lead { color: #c9c6e8; }
.sec-title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0 0 12px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; }
.sec-lead { font-size: 1.1rem; color: var(--ink2); max-width: 780px; margin: 0 0 40px; }
.center .sec-lead { margin-inline: auto; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.why { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm); border: 2px solid var(--line); }
.why-ic { font-size: 2.4rem; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fff3d6; margin-bottom: 12px; }
.why:nth-child(2n) .why-ic { background: #e5f5ff; } .why:nth-child(3n) .why-ic { background: #ffe9f3; }
.why h3 { margin: 0 0 6px; font-size: 1.2rem; }
.why p { margin: 0; color: var(--ink2); }

/* flow pinned */
.flow { background: #fff; overflow: hidden; }
.flow-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; }
.flow-head .sec-lead { margin-bottom: 18px; }
.flow-bar { height: 10px; background: #eee8f7; border-radius: 999px; overflow: hidden; max-width: 560px; margin-bottom: 28px; }
.flow-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue), var(--purple), var(--red)); }
.flow-track { display: flex; gap: 24px; padding: 0 max(20px, calc((100vw - 1180px) / 2 + 20px)); width: max-content; }
.flow-card { position: relative; width: min(78vw, 400px); min-height: 330px; border-radius: 28px; padding: 28px; color: #fff; overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0; }
.flow-card.c1 { background: linear-gradient(140deg, #2bd4a4, #18a989); } .flow-card.c2 { background: linear-gradient(140deg, #4aa8ff, #2c78d8); }
.flow-card.c3 { background: linear-gradient(140deg, #7c5cff, #5a3ad8); } .flow-card.c4 { background: linear-gradient(140deg, #ff7a45, #ff3d6e); }
.flow-min { font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; background: rgba(255,255,255,.22); display: inline-block; padding: 2px 12px; border-radius: 999px; }
.flow-card h3 { font-size: 1.8rem; margin: 14px 0 8px; }
.flow-card p { font-size: 1.05rem; opacity: .95; margin: 0; max-width: 300px; }
.flow-ic { position: absolute; right: 18px; bottom: 6px; font-size: 6rem; opacity: .9; }
@media (max-width: 760px) {
  .flow-track { flex-direction: column; width: auto; padding: 0 20px; }
  .flow-card { width: 100%; min-height: 0; }
  .flow-ic { font-size: 3.6rem; }
}

/* ages */
.age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; }
.age { border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; border: 2px solid var(--line); display: flex; flex-direction: column; }
.age-head { padding: 22px 24px 16px; color: #fff; }
.age.low .age-head { background: var(--green); } .age.mid .age-head { background: var(--blue); } .age.high .age-head { background: var(--red); }
.age-head h3 { margin: 0; font-size: 1.6rem; }
.age-head .sub { font-weight: 700; opacity: .9; }
.age-mode { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.25); padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.age-body { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.age-body h4 { margin: 0; font-size: .95rem; color: var(--muted); }
.age-body ul { margin: 0; padding-left: 1.2em; }
.age-focus { font-size: .92rem; color: var(--ink2); background: #faf8f4; border-left: 4px solid var(--line); padding: 8px 12px; border-radius: 6px; }
.age-focus cite { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.code-chip { font-family: var(--font-en); font-size: .82rem; font-weight: 700; padding: 2px 9px; border-radius: 8px; background: #f1edf9; color: var(--ink2); cursor: help; border: 0; }
.code-chip:hover { background: var(--purple); color: #fff; }
.age-note { font-size: .82rem; color: var(--muted); }

/* games */
.game-list { display: flex; flex-direction: column; gap: 34px; }
.game { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.game-visual { position: relative; padding: 30px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; }
.game-visual .big { font-size: 7rem; line-height: 1; text-align: center; margin: 20px 0; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.game-visual h3 { font-size: 1.9rem; margin: 0; }
.game-visual .en { opacity: .9; font-size: 1.1rem; }
.game-visual .fmt { font-size: .85rem; background: rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; width: fit-content; font-weight: 700; }
.game-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.game-body .tag { font-size: 1.15rem; font-weight: 800; margin: 0; }
.phase-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.phase { background: #faf8f4; border-radius: 14px; padding: 10px 12px; font-size: .88rem; }
.phase b { display: block; font-size: .95rem; }
.phase .m { font-family: var(--font-en); color: var(--muted); font-weight: 800; }
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier { border-radius: 16px; padding: 12px 14px; border: 2px solid var(--line); font-size: .9rem; }
.tier .t { font-weight: 900; display: flex; justify-content: space-between; align-items: baseline; }
.tier .x { font-family: var(--font-en); color: var(--purple); font-size: 1.2rem; }
.tier.low { border-color: #bdf0df; } .tier.mid { border-color: #c7e3ff; } .tier.high { border-color: #ffd0c4; }
.tier ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink2); }
.game-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.game-assess { font-size: .88rem; color: var(--ink2); }
details.more { background: #faf8f4; border-radius: 14px; padding: 10px 14px; }
details.more summary { cursor: pointer; font-weight: 800; }
details.more ol, details.more ul { margin: 8px 0 0; padding-left: 1.3em; font-size: .92rem; }
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .game-visual { min-height: 0; }
  .game-visual .big { font-size: 4.5rem; margin: 10px 0; }
  .phase-row { grid-template-columns: repeat(2, 1fr); }
  .tier-row { grid-template-columns: 1fr; }
}

/* assess */
.assess { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.assess-steps { padding-left: 1.3em; }
.assess-steps li { margin-bottom: 8px; }
.ind-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.ind { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); font-size: .9rem; }
.ind b { display: block; }
.assess-chart canvas { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 900px) { .assess { grid-template-columns: 1fr; } }

/* rewards */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rw { background: #2b2848; border-radius: 22px; padding: 20px; border: 2px solid #3a3660; }
.rw .ic { font-size: 2.6rem; }
.rw h3 { margin: 6px 0 4px; }
.rw p { margin: 0; color: #c9c6e8; font-size: .95rem; }
.levels { display: flex; gap: 0; margin-top: 40px; overflow-x: auto; padding-bottom: 6px; }
.lv { flex: 1; min-width: 130px; text-align: center; position: relative; padding-top: 34px; }
.lv::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 4px; background: #3a3660; }
.lv::after { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; display: grid; place-items: center; }
.lv b { display: block; } .lv small { color: #c9c6e8; }

/* curriculum */
.cur-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cur-filter button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .35em 1em; font-weight: 800; cursor: pointer; color: var(--ink2); }
.cur-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); }
.cur-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.cur-table th, .cur-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cur-table th { background: #faf8f4; font-size: .85rem; color: var(--muted); position: sticky; top: 0; }
.cur-table td:first-child { font-family: var(--font-en); font-weight: 800; white-space: nowrap; }
.cur-table .src { white-space: nowrap; }
.cur-table .src a { color: var(--purple); }
.cur-table .gm { white-space: nowrap; }
.src-title { margin: 30px 0 8px; }
.src-list { padding-left: 1.3em; font-size: .92rem; }
.src-list li { margin-bottom: 8px; }
.src-list a { color: var(--purple); word-break: break-all; }

.cta-sec { background: radial-gradient(800px 400px at 50% 0, #fff0c7, transparent 70%); }
.code { font-family: var(--font-en); background: var(--ink); color: var(--yellow); padding: 0 .5em; border-radius: 8px; }
.foot { padding: 40px 0 60px; border-top: 1px solid var(--line); font-size: .9rem; }

.reveal { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }
