:root {
  --ink: #25354b;
  --muted: #607084;
  --pink: #d92e73;
  --mint: #2b7862;
  --line: #dfe5e7;
  --paper: #fffefa;
  --shadow: 0 14px 36px #25354b0a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: var(--pink); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #117862; outline-offset: 5px; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }
.skip { position: fixed; top: -90px; left: 16px; background: white; z-index: 99; padding: 10px; }
.skip:focus { top: 10px; }
.wrap { max-width: 1200px; width: calc(100% - 64px); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 20; background: #fffefaf5; border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.header-inner { display: flex; align-items: center; min-height: 88px; gap: 30px; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-weight: 800; line-height: 1.4; font-size: 18px; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .15em; font-weight: 600; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 27px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink); font-weight: 700; padding: 10px 0; }
.nav a[aria-current=page] { color: var(--pink); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; width: 50px; min-height: 48px; padding: 7px; line-height: 1; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: currentColor; }
.menu-toggle small { font-size: 9px; display: block; margin-top: 5px; }
.hero { padding: 65px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 45px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--mint); display: block; margin-bottom: 18px; }
.pill { display: inline-block; background: #e8f5ec; border-radius: 30px; padding: 4px 14px; letter-spacing: .12em; font-size: 11px; color: #386453; font-weight: 800; }
h1, h2, h3 { line-height: 1.5; letter-spacing: .025em; }
h1 { font-size: clamp(30px, 3.6vw, 47px); margin: 0 0 20px; font-weight: 850; }
.hero h1 { font-size: clamp(32px, 3.35vw, 46px); letter-spacing: -.02em; line-height: 1.4; margin: 22px 0; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p { color: var(--muted); font-size: 16px; max-width: 470px; }
.hero-art { position: relative; }
.hero-art > img { width: 100%; aspect-ratio: 1.23; object-fit: cover; border-radius: 54% 46% 40% 50% / 40% 45% 55% 60%; box-shadow: var(--shadow); }
.hero-art .game-art { position: absolute; bottom: -14px; left: -20px; width: 43%; border: 7px solid white; border-radius: 18px; transform: rotate(-5deg); box-shadow: 0 15px 35px #24364b20; }
.floating-star { position: absolute; top: -15px; right: 8px; color: #d99820; font-size: 53px; line-height: 1; animation: float 5s ease-in-out infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px; background: white; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; min-height: 50px; }
.button.primary { background: var(--pink); color: white; border-color: var(--pink); box-shadow: 0 7px 17px #d92e731a; }
.button:hover { transform: translateY(-2px); }
.hero-stats { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; font-size: 12px; color: var(--muted); }
.hero-stats strong { font-size: 22px; color: var(--ink); margin-right: 5px; }
.section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-head h2 { margin: 0; font-size: 30px; }
.section-head .eyebrow { margin: 0 0 7px; }
.section-head > a { font-size: 14px; flex-shrink: 0; }
.intro { color: var(--muted); max-width: 850px; }
.world-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.world-card { background: var(--tint); border: 1px solid #25354b0c; border-radius: 22px; padding: 22px 18px; color: var(--ink); text-decoration: none; position: relative; overflow: hidden; min-height: 193px; transition: transform .25s, box-shadow .25s; }
.world-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.world-card .world-num { font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.world-card .world-icon { position: absolute; right: 16px; top: 10px; opacity: .35; font-size: 40px; }
.world-card h3 { font-size: 17px; margin: 38px 0 7px; }
.world-card small { color: var(--muted); font-size: 12px; }
.world-card .arrow { position: absolute; bottom: 20px; right: 17px; }
.feature-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature, .article-card { display: block; border: 1px solid var(--line); border-radius: 20px; padding: 27px; text-decoration: none; color: var(--ink); background: white; box-shadow: var(--shadow); }
.feature h3, .article-card h3 { margin: 16px 0 10px; font-size: 21px; }
.feature p, .article-card p { margin: 0; font-size: 15px; color: var(--muted); }
.feature .symbol { color: var(--pink); font-size: 30px; line-height: 1; }
.article-card small { color: var(--mint); font-size: 12px; }
.search-panel { margin-top: 45px; border-radius: 20px; padding: 24px 30px; background: #f2f4f6; }
.search-top { display: flex; align-items: center; gap: 30px; }
.search-top label { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.search-top input { background: white; width: 100%; border: 1px solid #ced6de; border-radius: 10px; padding: 13px 16px; font-size: 16px; color: var(--ink); }
.search-hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; list-style: none; padding: 0; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 12px; border-radius: 8px; background: white; font-size: 15px; text-decoration: none; }
.ad { padding: 20px 10px; margin: 42px auto; border-top: 1px solid #e9ecee; border-bottom: 1px solid #e9ecee; text-align: center; max-width: 1100px; overflow: hidden; }
.ad-label { display: block; font-size: 10px; letter-spacing: .12em; color: #74808b; margin-bottom: 12px; }
.ad ins { display: block; width: 100%; min-height: 90px; }
.ad ins[data-ad-status=unfilled] { display: none !important; }
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 25px 0 0; margin: 0; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; padding-right: 8px; color: #85909d; }
.page-heading { padding: 35px 0 28px; max-width: 980px; }
.page-heading p { color: var(--muted); margin-bottom: 0; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-meta { font-size: 12px; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 50px; align-items: start; }
.prose { min-width: 0; }
.prose h2 { margin: 46px 0 22px; font-size: 27px; padding-left: 17px; border-left: 5px solid #e86c9c; }
.prose h3 { margin: 30px 0 12px; font-size: 21px; }
.prose p { margin: 15px 0; }
.prose li { margin-bottom: 12px; }
.prose ul { padding-left: 1.4em; }
.prose .notice { background: #f1f7f2; border-radius: 14px; padding: 18px 24px; font-size: 16px; }
.summary { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 25px; }
.summary span { padding: 8px 17px; background: #f5edf2; border-radius: 12px; font-size: 14px; }
.summary strong { font-size: 20px; }
.toc { background: #f5f6f7; border-radius: 15px; padding: 20px 24px; margin: 22px 0 30px; }
.toc strong { font-size: 14px; }
.toc ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 6px 22px; margin: 10px 0 0; }
.toc li { margin: 0; }
.toc a { font-size: 14px; }
.video-figure { margin: 24px 0 32px; padding: 12px; background: #edf1f5; border-radius: 18px; }
video { width: 100%; display: block; max-height: 620px; aspect-ratio: 4/3; background: #172334; border-radius: 10px; }
figcaption { font-size: 13px; color: var(--muted); margin: 10px 7px 3px; }
.medal-list { list-style: none; padding: 0; counter-reset: medals; }
.medal-list li { counter-increment: medals; display: flex; gap: 18px; border: 1px solid var(--line); background: white; border-radius: 15px; padding: 20px; align-items: start; }
.medal-list li::before { content: counter(medals, decimal-leading-zero); background: #fff4cf; color: #76530b; border: 1px solid #e8cb69; border-radius: 50%; min-width: 37px; height: 37px; font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1; margin-top: 3px; }
.medal-list .medal-number { font-size: 13px; font-weight: 800; color: #806315; display: block; margin-bottom: 4px; }
.challenge { background: #f9f1f6; border: 1px solid #f0dbe8; border-radius: 18px; padding: 25px; margin: 30px 0; }
.challenge h3 { margin-top: 0; }
.aside { position: sticky; top: 118px; font-size: 14px; }
.aside-box { background: #f3f6f3; border-radius: 18px; padding: 23px; margin-bottom: 22px; }
.aside-box strong { display: block; margin-bottom: 13px; }
.aside-box a { display: block; border-bottom: 1px solid #dfe5df; text-decoration: none; padding: 10px 0; color: var(--ink); font-size: 13px; }
.aside-box a:last-child { border: 0; }
.stage-group { margin: 30px 0 42px; padding: 28px; background: var(--tint); border-radius: 22px; }
.stage-group h2, .stage-group h3 { border: 0; padding: 0; margin: 0 0 15px; font-size: 24px; }
.stage-group > p { color: var(--muted); font-size: 15px; }
.stage-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stage-links a { text-align: center; background: white; padding: 11px 5px; border: 1px solid #25354b12; border-radius: 10px; font-size: 14px; text-decoration: none; color: var(--ink); }
.stage-links a:hover { border-color: var(--pink); }
.stage-links a.boss { grid-column: span 2; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 38px 0; }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: 14px; text-decoration: none; background: white; }
.pager small { display: block; color: var(--muted); font-size: 11px; }
.definition-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.definition { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.definition dt { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.definition dd { margin: 0; font-size: 16px; }
.table-scroll { overflow-x: auto; margin: 25px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: white; }
th, td { padding: 14px; border: 1px solid var(--line); text-align: left; }
th { background: #f0f5ef; }
.bookend { background: #f4eee9; padding: 42px; border-radius: 24px; margin-top: 20px; }
.bookend h2 { margin-top: 0; }
footer { background: #25354b; color: #e6edf1; padding: 45px 0 28px; margin-top: 65px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
footer a { color: #e6edf1; }
.footer-links { display: flex; gap: 15px 24px; flex-wrap: wrap; align-content: start; }
footer .legal { border-top: 1px solid #ffffff26; margin-top: 28px; padding-top: 22px; font-size: 11px; color: #c6d2dc; }
[hidden] { display: none !important; }
.reveal { animation: enter .65s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(10px) rotate(9deg); } }
@media (max-width: 1050px) {
 .nav { gap: 17px; }
 .nav a { font-size: 12px; }
 .content-grid { grid-template-columns: minmax(0,1fr) 220px; gap: 28px; }
 .world-grid { gap: 10px; }
 .world-card { padding: 18px 12px; }
 .world-card h3 { font-size: 15px; }
 .stage-links { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 800px) {
 .wrap { width: calc(100% - 36px); }
 .header-inner { min-height: 74px; gap: 10px; }
 .brand { font-size: 16px; gap: 8px; }
 .brand img { width: 35px; height: 35px; }
 .brand small { font-size: 9px; }
 .menu-toggle { display: block; flex-shrink: 0; }
 .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fffefa; border-bottom: 1px solid var(--line); padding: 15px 24px 22px; box-shadow: var(--shadow); }
 .nav.open { display: block; }
 .nav a { display: block; padding: 13px; font-size: 16px; border-bottom: 1px solid var(--line); }
 .hero { padding: 32px 0 15px; }
 .hero-grid { gap: 30px; grid-template-columns: 1fr; }
 .hero h1 { font-size: clamp(31px,7vw,45px); margin: 18px 0; }
 .hero p { font-size: 16px; }
 .hero-art { max-width: 540px; width: 100%; margin: 8px auto 22px; }
 .hero-art > img { aspect-ratio: 1.9; border-radius: 25px 65px 30px 65px; }
 .hero-art .game-art { width: 32%; left: 13px; bottom: -15px; border-width: 4px; border-radius: 10px; }
 .floating-star { font-size: 38px; right: -4px; top: -17px; }
 .hero-stats { margin-top: 22px; gap: 20px; }
 .hero-stats strong { font-size: 20px; }
 .search-panel { padding: 20px; margin-top: 20px; }
 .search-top { display: block; }
 .search-top label { display: block; margin-bottom: 8px; }
 .search-results { grid-template-columns: 1fr; }
 .section { padding: 30px 0; }
 .section-head h2 { font-size: 25px; }
 .world-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
 .world-card { min-height: 157px; padding: 18px; }
 .world-card h3 { font-size: 17px; margin: 30px 0 5px; }
 .world-card:last-child { grid-column: span 2; min-height: 125px; }
 .world-card:last-child h3 { margin-top: 14px; }
 .feature-grid, .article-grid { grid-template-columns: 1fr; gap: 14px; }
 .feature, .article-card { padding: 23px; }
 .feature h3, .article-card h3 { font-size: 21px; margin-top: 9px; }
 .content-grid { grid-template-columns: 1fr; }
 .aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
 .aside-box { padding: 18px; margin: 0; }
 .page-heading { padding-top: 26px; }
 h1 { font-size: 29px; }
 .prose h2 { font-size: 24px; margin-top: 35px; }
 .prose h3 { font-size: 21px; }
 .medal-list li { padding: 17px; gap: 13px; }
 .medal-list li::before { min-width: 31px; height: 31px; font-size: 11px; }
 .video-figure { padding: 8px; margin-inline: 0; }
 .stage-group { padding: 20px; margin: 22px 0; }
 .stage-group h2, .stage-group h3 { font-size: 23px; }
 .stage-links { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
 .stage-links a { font-size: 14px; min-height: 48px; display: grid; place-items: center; }
 .ad { margin: 30px auto; }
 .definition-list { grid-template-columns: 1fr; }
 .bookend { padding: 25px; }
 .footer-inner { grid-template-columns: 1fr; gap: 24px; }
 footer { margin-top: 40px; }
}
@media (max-width: 360px) {
 .wrap { width: calc(100% - 28px); }
 .brand { font-size: 14px; }
 .brand img { width: 29px; height: 29px; }
 .hero h1 { font-size: 30px; }
 .hero-stats { gap: 13px; }
 .world-card { padding: 15px 12px; }
 .world-card h3 { font-size: 15px; }
 .stage-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .aside { grid-template-columns: 1fr; }
 .section-head { align-items: start; }
 .section-head > a { font-size: 12px; }
 .pager { gap: 8px; }
 .pager a { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}

.art-caption { position: absolute; top: 18%; left: 8%; max-width: 80%; font-size: clamp(13px, 1.3vw, 18px); font-weight: 800; color: #25354b; text-shadow: 0 1px 8px #fff; }
@media (max-width:800px) { .hero h1 { font-size:clamp(29px,6.9vw,43px); } .art-caption { top:14%; left:7%; font-size:14px; } }

.article-visual { display:block; position:relative; margin:-27px -27px 23px; overflow:hidden; border-radius:20px 20px 0 0; }
.article-visual img { width:100%; aspect-ratio:1.85; object-fit:cover; }
.article-visual > span { position:absolute; bottom:12px; left:14px; background:#fffefae8; border-radius:8px; padding:3px 10px; font-size:13px; color:#25354b; font-weight:700; }
@media (max-width:800px) { .article-visual { margin:-23px -23px 20px; } }
