:root {
  --ink: #153457;
  --blue: #1954ad;
  --deep: #143e79;
  --gold: #e8b640;
  --paper: #fbfaf5;
  --line: #dfe6e9;
  --muted: #566b7c;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.9 "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b87805; outline-offset: 4px; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-weight: 800; line-height: 1.5; letter-spacing: -.025em; }
h2 { font-size: clamp(25px,2.5vw,34px); }
h3 { font-size: 21px; }
p + p { margin-top: 1em; }
.container, .header-inner, .hero-inner, .footer-inner { width: min(1180px,calc(100% - 64px)); margin: auto; }
.skip { position: fixed; top: -100px; background: white; padding: 15px; z-index: 200; }
.skip:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; line-height: 1.5; flex-shrink: 0; }
.brand b { font-size: 19px; letter-spacing: -.03em; }
.brand small { display: block; font-size: 10px; letter-spacing: .11em; font-weight: 800; color: var(--muted); }
.brand-icon { display: grid; place-items: center; background: var(--blue); color: #ffda69; width: 43px; height: 47px; font-size: 28px; border-radius: 12px; box-shadow: 3px 3px 0 #e0e9f7; }
.primary-nav { display: flex; gap: 23px; }
.primary-nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; padding: 12px 0; }
.primary-nav a:hover { color: var(--blue); }
.menu-button { display: none; }
.hero { background: #eaf4ff; border-bottom: 1px solid #dce8f4; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 36px; padding: 68px 0 62px; }
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: .12em; font-weight: 800; line-height: 1.7; margin-bottom: 13px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0; }
.hero-tags span { background: #fff; border: 1px solid #dce7ee; padding: 2px 10px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(40px,4.6vw,64px); line-height: 1.42; letter-spacing: -.06em; margin-bottom: 21px; }
.gold-text { color: #a86903; }
.hero-copy > p:not(.eyebrow) { font-size: 17px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; padding: 13px 22px; font-weight: 700; border-radius: 9px; text-decoration: none; font-size: 15px; line-height: 1.7; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.primary { color: white; background: var(--blue); box-shadow: 0 3px 0 #0d3875; }
.primary:hover { background: #144991; }
.secondary { background: white; color: var(--blue); border: 1px solid #c4d7ec; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 12px; color: #526b82; }
.hero-note span { color: #9a6700; letter-spacing: 4px; }
.hero-visual { position: relative; }
.hero-visual > img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 100px 25px 100px 25px; box-shadow: 12px 14px 0 #d0e4fa; }
.hero-stamp { position: absolute; left: -24px; bottom: 20px; padding: 18px 25px; background: #fff9d9; border: 2px solid #eec553; border-radius: 12px; transform: rotate(-5deg); box-shadow: 4px 5px 0 #19427515; line-height: 1.6; }
.hero-stamp span { font-size: 11px; color: #866310; display: block; letter-spacing: .15em; font-weight: 800; }
.hero-stamp b { font-size: 22px; }
.illustration-note { position: absolute; right: 20px; bottom: 10px; background: #fffE; border-radius: 6px; padding: 2px 8px; font-size: 10px; color: #455f75; }
.quick-path { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.quick-path > span { margin-right: auto; font-size: 12px; color: var(--muted); }
.quick-path a { color: var(--ink); text-decoration: none; font-weight: 700; }
.section { margin: 64px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 29px; }
.section-title p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.world-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.world-card { background: white; color: var(--ink); text-decoration: none; border: 1px solid #e0e5e4; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 0 #18345c05; transition: transform .25s,box-shadow .25s; }
.world-card:hover { transform: translateY(-5px); box-shadow: 0 9px 20px #19385b0d; }
.world-art { height: 162px; background: #d9ecd4; position: relative; overflow: hidden; color: #446b39; border-bottom: 1px solid #00000009; }
.world-art::before { content: ""; position: absolute; height: 130px; width: 250px; background: currentColor; opacity: .14; right: -50px; bottom: -80px; border-radius: 100px 100px 0 0; transform: rotate(-10deg); }
.world-art::after { content: ""; position: absolute; width: 70px; height: 21px; border-radius: 30px; background: #fff9; left: 48%; top: 28px; }
.world-number { position: absolute; left: 23px; top: 10px; font-size: 75px; font-weight: 900; line-height: 1.6; opacity: .9; letter-spacing: -.08em; }
.world-landmark { position: absolute; right: 32px; bottom: 7px; font-size: 78px; line-height: 1.7; }
.world-small { position: absolute; left: 26px; bottom: 18px; font-size: 10px; letter-spacing: .2em; font-weight: 900; }
.desert { color: #9c681d; background: #f4e4ba; }
.snow { color: #287b94; background: #daeff5; }
.ocean { color: #2566a4; background: #d5e9fa; }
.forest { color: #2d765c; background: #d2e9dd; }
.mountains { color: #84664a; background: #e9e0d4; }
.sky { color: #5977a9; background: #e0eafa; }
.volcano { color: #a94a32; background: #fae0d4; }
.special { color: #7c56a6; background: #e8dff4; }
.world-copy { padding: 23px 25px 21px; }
.world-copy h3 { display: flex; align-items: center; gap: 10px; font-size: 23px; }
.world-copy h3 span { font-size: 10px; letter-spacing: .08em; padding-right: 10px; border-right: 1px solid #ced7dc; color: var(--muted); }
.world-copy p { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 11px 0 17px; min-height: 54px; }
.world-copy > b { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px dashed #d9e0e4; font-size: 12px; color: var(--blue); }
.ad-block { min-height: 115px; text-align: center; margin: 35px auto; border: 1px solid #e5e8e7; background: #f4f5f1; border-radius: 8px; width: 100%; overflow: hidden; padding: 8px; }
.ad-block > span { display: block; font-size: 10px; letter-spacing: .08em; color: #65707b; margin-bottom: 4px; }
.adsbygoogle { min-height: 80px; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: #edf1e7; border-radius: 22px; padding: 35px; }
.feature-photo { position: relative; overflow: hidden; border-radius: 12px; }
.feature-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.feature-photo span { position: absolute; bottom: 0; left: 0; padding: 5px 12px; background: #1954ad; font-size: 10px; letter-spacing: .12em; color: #fff; }
.feature-split h2 { font-size: 31px; }
.feature-split p:not(.eyebrow) { margin: 18px 0; font-size: 15px; }
.text-link { display: inline-block; font-size: 14px; font-weight: 700; }
.column-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.column-card { position: relative; border-top: 3px solid #d4b768; border-bottom: 1px solid #e0e3db; color: var(--ink); padding: 29px 20px; text-decoration: none; }
.article-number { display: block; color: #c0ad76; font-size: 33px; font-weight: 800; margin-bottom: 9px; }
.column-card h3 { font-size: 20px; line-height: 1.8; }
.column-card p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 13px 0; }
.column-card .text-link { color: var(--blue); }
.start-panel { display: flex; align-items: center; gap: 25px; background: #fff5d6; padding: 32px; border-radius: 18px; margin: 45px 0 75px; }
.start-panel > span { font-size: 49px; color: #a77e10; }
.start-panel h2 { font-size: 24px; }
.start-panel p { font-size: 14px; margin-top: 5px; }
.start-panel .button { margin-left: auto; white-space: nowrap; }
.site-footer { background: #14365d; color: #e8edf4; padding: 50px 0 23px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner p { font-size: 14px; margin: 9px 0; }
.footer-inner small { font-size: 11px; color: #b9c7d9; }
.footer-inner nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; align-items: start; }
.footer-inner a { color: #e8edf4; font-size: 13px; text-decoration: none; }
.copyright { margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #ffffff20; max-width: 1180px; width: calc(100% - 64px); text-align: center; font-size: 10px; color: #c2cddb; }
.breadcrumbs { width: min(1180px,calc(100% - 64px)); margin: 24px auto 0; color: #6b7986; font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: #526c85; text-decoration: none; }
.page-heading { padding: 45px 0 34px; }
.page-heading h1 { font-size: clamp(32px,4vw,48px); line-height: 1.55; }
.h1-sub { font-size: .66em; }
.lead { max-width: 780px; margin-top: 22px; font-size: 17px; color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 27px 0 38px; }
.course-card { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid #dbe3e8; background: white; border-radius: 11px; text-decoration: none; color: var(--ink); line-height: 1.7; }
.course-card:hover { border-color: var(--blue); }
.course-code { color: var(--blue); font-weight: 800; font-size: 22px; min-width: 50px; }
.course-card-text { flex: 1; }
.course-card b { font-size: 14px; }
.course-card small { color: var(--muted); display: block; font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 235px; gap: 55px; margin-bottom: 70px; }
.guide-article { min-width: 0; }
.guide-article section { margin: 45px 0; }
.guide-article h2 { font-size: 27px; margin-bottom: 23px; }
.guide-article h3 { font-size: 20px; margin-bottom: 7px; }
.guide-sidebar { align-self: start; position: sticky; top: 118px; background: white; border-radius: 14px; border: 1px solid var(--line); padding: 23px; }
.guide-sidebar h2 { font-size: 19px; margin-bottom: 15px; }
.guide-sidebar a { display: block; padding: 7px 10px; text-decoration: none; font-size: 14px; color: var(--muted); border-radius: 6px; }
.guide-sidebar .active { color: var(--blue); background: #eaf2ff; font-weight: 800; }
.guide-sidebar .all-worlds { margin-top: 14px; color: var(--blue); font-weight: 700; border-top: 1px solid var(--line); border-radius: 0; padding-top: 13px; }
.in-page { display: flex; flex-wrap: wrap; gap: 10px 20px; background: #edf2f7; padding: 18px 22px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.coin-list { border-top: 1px solid var(--line); }
.coin-item { display: flex; gap: 23px; padding: 28px 5px; border-bottom: 1px solid var(--line); }
.coin-medal { display: grid; flex-shrink: 0; place-items: center; width: 52px; height: 60px; color: #805711; font-size: 24px; font-weight: 800; border: 3px solid #dfb751; box-shadow: inset 0 0 0 3px #fff0ae,2px 2px 0 #bf9744; background: #f9d76c; border-radius: 50%; }
.coin-item p { font-size: 17px; }
.seek-button { margin-top: 15px; padding: 7px 13px; border: 1px solid #c4d7e8; border-radius: 7px; background: #edf5ff; font-size: 14px; color: var(--blue); font-weight: 700; }
video { width: 100%; display: block; max-height: 650px; background: #111; aspect-ratio: 4/3; border-radius: 13px 13px 0 0; }
.video-block { margin: 25px 0; background: white; border: 1px solid #dce2e4; border-radius: 13px; overflow: hidden; }
.video-block figcaption { padding: 12px 17px; font-size: 14px; }
.play-dot { color: var(--blue); margin-right: 9px; }
.duration { float: right; color: var(--muted); font-size: 12px; }
.subtle { color: var(--muted); font-size: 14px; }
.route-steps { padding: 0; list-style: none; counter-reset: step; border-left: 2px solid #d8e1e6; margin: 30px 0 30px 16px; }
.route-steps li { position: relative; counter-increment: step; padding: 0 0 25px 34px; font-size: 17px; }
.route-steps li::before { content: counter(step); position: absolute; left: -17px; top: 1px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #c8d7df; border-radius: 50%; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; }
.updated { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 17px; }
.related .course-grid { gap: 10px; }
.related .course-card { padding: 12px; gap: 10px; }
.related .course-code { font-size: 17px; min-width: 35px; }
.related .course-card b { font-size: 12px; }
.prose { max-width: 850px; margin: 0 auto 75px; }
.prose-section { margin: 42px 0; }
.prose-section h2, .prose > h2 { margin: 35px 0 20px; padding-bottom: 13px; border-bottom: 2px solid #dde4dc; font-size: 27px; }
.prose-section h3 { margin: 25px 0 14px; }
.prose-section p, .prose-section li { font-size: 18px; line-height: 2.05; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 12px; }
.notice { padding: 23px; border-left: 4px solid #d5b34d; border-radius: 5px; background: #fff5d9; font-size: 16px; margin: 25px 0; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 30px 0; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); text-decoration: none; }
.info-card h2 { font-size: 23px; }
.info-card p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin-top: 15px; }
.video-library { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 30px 0 55px; }
.video-library h2 { font-size: 20px; }
.video-library .video-block { margin: 15px 0 10px; }
.search-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.search-field { display: block; width: min(100%,650px); padding: 13px 18px; background: white; border: 1px solid #bfccd6; border-radius: 10px; font-size: 17px; }
.search-status { font-size: 13px; margin-top: 10px; color: var(--muted); }
.title-card { width: 290px; border-radius: 10px; margin: 25px 0; }
[hidden] { display: none !important; }
.reveal { animation: float-in .75s ease both; }
@keyframes float-in { from { opacity: .85; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.js-reveal { transition: opacity .65s ease,transform .65s ease; }
.js-reveal.waiting { opacity: .85; transform: translateY(20px); }
@media (max-width:1050px) {
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 12px; }
  .brand b { font-size: 17px; }
  .hero-inner { gap: 25px; }
  .hero-actions .button { font-size: 13px; padding: 12px 16px; }
  .article-layout { gap: 30px; grid-template-columns: minmax(0,1fr) 195px; }
}
@media (max-width:800px) {
  .container,.header-inner,.hero-inner,.footer-inner { width: calc(100% - 36px); }
  .header-inner { height: 73px; }
  .brand b { font-size: 16px; }
  .brand-icon { width: 36px; height: 40px; font-size: 23px; border-radius: 10px; }
  .brand small { font-size: 8px; }
  .menu-button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid #cfdae4; border-radius: 9px; padding: 10px; background: #fff; width: 45px; height: 43px; }
  .menu-button span { display: block; width: 21px; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-button[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; top: 73px; left: 0; right: 0; background: white; box-shadow: 0 15px 25px #15345716; padding: 15px 20px 25px; border-bottom: 1px solid #dfe5e9; }
  .primary-nav.open { display: grid; gap: 0; }
  .primary-nav a { padding: 13px 10px; font-size: 16px; border-bottom: 1px solid #edf0f3; }
  .hero-inner { grid-template-columns: 1fr; padding: 37px 0 42px; gap: 33px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-tags { margin: 15px 0; }
  .hero-visual { margin: 0 9px; }
  .hero-visual > img { max-height: 370px; aspect-ratio: 1.6; border-radius: 60px 18px 60px 18px; box-shadow: 7px 8px 0 #d0e4fa; }
  .hero-stamp { left: -8px; bottom: 15px; padding: 11px 18px; }
  .hero-stamp b { font-size: 18px; }
  .hero-note { margin-top: 20px; }
  .hero-actions .button { font-size: 14px; padding: 13px 19px; }
  .quick-path { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-path > span { grid-column: 1/-1; }
  .quick-path a { padding: 8px 0; border-bottom: 1px solid #dfe5e8; font-size: 13px; }
  .section { margin: 45px 0; }
  .section-title { display: block; margin-bottom: 22px; }
  .section-title > p, .section-title > a { margin-top: 10px; }
  .world-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .world-art { height: 133px; }
  .world-number { font-size: 63px; left: 18px; }
  .world-landmark { right: 18px; font-size: 60px; }
  .world-small { left: 20px; bottom: 13px; font-size: 9px; }
  .world-copy { padding: 18px; }
  .world-copy h3 { display: block; font-size: 22px; }
  .world-copy h3 span { display: block; border: 0; margin-bottom: 6px; font-size: 9px; }
  .world-copy p { font-size: 13px; min-height: 72px; margin-bottom: 12px; }
  .feature-split { grid-template-columns: 1fr; padding: 22px; gap: 25px; }
  .feature-split h2 { font-size: 27px; }
  .column-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .column-card { padding: 22px 5px; }
  .column-card h3 { font-size: 18px; }
  .start-panel { flex-wrap: wrap; padding: 24px; gap: 15px; }
  .start-panel > span { font-size: 34px; }
  .start-panel h2 { font-size: 22px; }
  .start-panel .button { margin-left: 0; }
  .footer-inner { flex-direction: column; }
  .copyright { width: calc(100% - 36px); }
  .breadcrumbs { width: calc(100% - 36px); font-size: 11px; margin-top: 20px; }
  .page-heading { padding-top: 31px; }
  .lead { font-size: 16px; }
  .article-layout { grid-template-columns: 1fr; gap: 15px; }
  .guide-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
  .guide-sidebar h2,.guide-sidebar .eyebrow { width: 100%; }
  .guide-sidebar a { padding: 8px 13px; background: #f3f6f9; }
  .guide-sidebar .all-worlds { width: 100%; background: none; }
  .course-card { padding: 15px; gap: 12px; }
  .course-code { font-size: 20px; }
  .coin-item { gap: 18px; }
  .coin-item p { font-size: 17px; }
  .guide-article h2 { font-size: 25px; }
  .video-library { gap: 18px; }
  .video-library h2 { font-size: 17px; }
  .video-block figcaption { font-size: 12px; padding: 10px; }
  .prose-section p,.prose-section li { font-size: 18px; }
  .two-cards { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .brand { gap: 8px; }
  .brand b { font-size: 15px; }
  .world-copy { padding: 15px; }
  .world-copy p { font-size: 12px; min-height: 85px; }
  .world-copy > b { font-size: 11px; }
  .world-art { height: 125px; }
  .world-landmark { right: 11px; font-size: 52px; }
  .world-number { font-size: 57px; left: 15px; }
  .course-grid { grid-template-columns: 1fr; }
  .column-grid { grid-template-columns: 1fr; }
  .column-card { display: grid; grid-template-columns: 45px 1fr; gap: 0 12px; }
  .article-number { grid-row: span 4; }
  .column-card h3,.column-card p,.column-card > span:not(.article-number) { grid-column: 2; }
  .video-library { grid-template-columns: 1fr; }
  .hero h1 { font-size: 45px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1; padding: 12px 13px; font-size: 13px; white-space: nowrap; }
  .coin-medal { width: 43px; height: 51px; font-size: 21px; }
  .coin-item { gap: 15px; }
  .in-page { padding: 15px; gap: 9px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .js-reveal.waiting { opacity: 1; transform: none; }
}

.game-logo { width: min(100%,420px); border-radius: 12px; margin: 8px 0 35px; }
/* Keep the primary action legible in narrow views. */
.button.primary, .button.primary:visited { background-color: #1954ad; color: #fff; }
.button.primary:hover { background-color: #144991; }
@media (max-width:480px) {
  .hero h1 { font-size: clamp(31px,9.3vw,40px); }
  .world-copy p { font-size: 14px; min-height: 106px; }
}
