/* Product-led editorial theme. Keep artwork and official store assets unaltered. */
:root {
  --sans: "Inter", "IBM Plex Sans JP", sans-serif;
  --mono: "Inter", "IBM Plex Sans JP", sans-serif;
  --paper: #fdfcfc;
  --surface: #ffffff;
  --surface-2: #f5f3f1;
  --ink: #161616;
  --ink-dim: #514e4b;
  --muted: #6f6b66;
  --line: #e7e4e0;
  --line-soft: #efedeb;
  --key: #161616;
  --key-deep: #414141;
  --key-soft: rgba(0, 0, 0, .05);
  --maxw: 1200px;
}
body { background: var(--paper); }
.topbar { position: relative; padding: 18px max(24px, calc((100vw - 1152px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.mark { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: -.025em; text-transform: none; gap: 8px; }
.mark img { width: 34px; height: 34px; flex-basis: 34px; }
.nav { margin-left: 56px; }
.nav a, .nav .nav-disabled, .langswitch button, .foot-link, .label, .idx, .badge, .backlink, .case-nav a { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.nav a, .nav .nav-disabled, .langswitch button { font-size: 12px; }
.langswitch { border-color: var(--line); }
.langswitch button { padding: 6px 12px; }
.home-release { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 64px 0 80px; border: 0; }
.release-label { font-weight: 400; font-size: 13px; margin-bottom: 24px; color: var(--muted); }
.home-release h1 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 400; font-variation-settings: "wdth" 100; letter-spacing: -.045em; line-height: 1.42; margin-bottom: 28px; }
.release-intro { font-size: 18px; line-height: 1.9; color: var(--ink-dim); }
.release-description { font-size: 14px; line-height: 1.9; max-width: 29em; margin-bottom: 28px; }
.release-actions { gap: 16px; }
.official-play { width: 186px; }
.release-details, .backlink, .case-nav a, .mail, .policy-content a { color: var(--ink); }
.release-details:hover, .backlink:hover, .case-nav a:hover, .mail:hover, .policy-content a:hover, .foot-link:not(.is-disabled):hover { color: var(--ink-dim); }
.release-details { font-size: 13px; text-decoration-color: #aaa5a0; text-underline-offset: 5px; }
.release-platform { margin-top: 16px; font-size: 11px; color: var(--muted); }
.release-art { width: 100%; padding: 38px; border-radius: 24px; background: var(--surface-2); }
.release-art a { width: min(100%, 284px); margin: auto; }
.release-art img { border-radius: 14px; box-shadow: 0 18px 38px rgba(28,24,20,.12); }
.home-release + section { margin-top: 32px; padding-top: 56px; border-top: 1px solid var(--line); }
section + section { margin-top: 88px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2, .contact h2 { font-size: clamp(24px, 2.7vw, 34px); font-weight: 400; font-variation-settings: "wdth" 100; letter-spacing: -.035em; line-height: 1.5; }
.sec-head .rule, .sec-head .idx, .hero-frame, .hero-ruler, .hero-eyebrow, .contact .corner { display: none; }
.lede { font-size: 17px; line-height: 2; max-width: 48em; margin-bottom: 28px; }
.contact { border: 0; border-radius: 24px; background: var(--surface-2); padding: 40px; }
.contact h2 { margin-bottom: 32px; }
.field .label { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.field .name { font-size: 22px; font-weight: 400; }
.field .rep, .field .addr { font-size: 14px; }
.mail { font-family: var(--sans); font-size: 15px; border-color: #aaa5a0; }
.hero, .hero.hero-sub { background: none; padding: 64px 24px 0; }
.hero.hero-sub h1 { max-width: 1000px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.5; font-weight: 400; font-variation-settings: "wdth" 100; letter-spacing: -.045em; }
.hero-tagline { border: 0; padding-top: 0; margin-top: 16px; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; }
main { padding-top: 40px; }
.game-feature { padding: 40px; border: 0; border-radius: 24px; background: var(--surface-2); gap: 64px; }
.game-feature .shot { border: 0; border-radius: 14px; max-width: 300px; }
.game-feature .shot::before, .game-feature .shot::after { display: none; }
.game-feature .sub, .game-feature .ch-code { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.game-feature .desc { font-size: 19px; line-height: 1.9; }
.game-feature .badge { padding: 5px 10px; font-size: 11px; border-color: #d5d0ca; }
.game-detail-page .game-feature .store { flex-basis: 186px; max-width: 186px; }
.game-detail-page .game-feature .store-badge { width: 186px; }
.game-feature .store-qr { width: 68px; }
.game-feature .store-qr-sub { margin-top: 8px; }
.spec-list { gap: 16px; }
.spec-list li { font-size: 15px; }
.overview h3 { font-size: 18px; font-weight: 500; margin-top: 30px; }
.overview p { font-size: 15px; color: var(--ink-dim); }
.grid-works.is-vertical { grid-template-columns: repeat(auto-fill, minmax(230px, 280px)); }
.work { border-radius: 20px; border-color: var(--line); }
.work .body { padding: 20px; }
.badge.is-key { color: var(--ink-dim); border-color: var(--line); }
.badge.is-key::before { background: var(--muted); }
.case-nav { margin-top: 64px; }
.case-nav a { font-size: 13px; }
footer { margin-top: 80px; padding: 32px 24px; }
.foot-link { font-size: 12px; }
footer p { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.nav a.is-here, .foot-link:hover, .mail:hover { border-color: var(--ink); }
:focus-visible, .official-play:focus-visible, .game-feature a.store-badge:focus-visible { outline-color: var(--ink); }
.doc-head { background: none; }
.policy-content ul { border-left-color: var(--line); }
.policy-content a { border-bottom-color: #aaa5a0; }
.policy-content a:hover { border-color: var(--ink); }
.btn { border-color: var(--ink); }
.btn:not(.is-ghost):not(.download-button):not(:hover) { color: var(--ink); }
@media (max-width: 719px) {
  .topbar { padding: 14px 20px; }
  .home-release { grid-template-columns: minmax(0,1fr); gap: 32px; padding: 40px 0 48px; }
  .release-copy { text-align: center; }
  .release-art { grid-row: auto; padding: 28px; border-radius: 20px; }
  .release-art a { width: 210px; }
  .release-label { margin-bottom: 16px; }
  .home-release h1 { font-size: clamp(29px, 7vw, 40px); margin-bottom: 20px; }
  .release-intro { font-size: 16px; }
  .release-description { font-size: 13px; }
  .release-actions { flex-direction: row; justify-content: center; gap: 12px 18px; }
  .official-play { width: 172px; }
  .home-release + section { margin-top: 0; padding-top: 40px; }
  section + section { margin-top: 56px; }
  .lede { font-size: 15px; }
  .contact { padding: 28px 24px; }
  .hero, .hero.hero-sub { padding-top: 40px; }
  .game-feature { padding: 24px; gap: 28px; }
  .game-feature .shot { max-width: 220px; }
  .game-feature .desc { font-size: 16px; }
  .game-feature .stores { justify-content: center; }
  .grid-works.is-vertical { grid-template-columns: minmax(0,280px); }
}
@media (max-width: 359px) {
  .mark { font-size: 14px; letter-spacing: -.025em; }
  .mark img { width: 28px; height: 28px; flex-basis: 28px; }
  .langswitch button { padding: 5px 8px; font-size: 11px; }
}

/* Inter for Latin, IBM Plex Sans JP for Japanese. */
.home-release h1, .hero.hero-sub h1, .sec-head h2, .contact h2 {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.02em;
}
:lang(ja) .home-release h1, :lang(ja) .hero.hero-sub h1,
:lang(ja) .sec-head h2, :lang(ja) .contact h2 {
  font-weight: 500;
  letter-spacing: 0;
}

/* Shared typography for secondary pages and document-specific components. */
h1, h2, h3, h4 { font-family: var(--sans); font-variation-settings: normal; }
.doc-head { padding: 64px 24px 32px; border-bottom: 0; }
.doc-head h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; }
.doc-head .label { display: none; }
.doc-head .kicker { font-family: var(--sans); font-size: 14px; letter-spacing: 0; margin-top: 16px; }
.policy-content h2 { font-size: 22px; font-weight: 500; letter-spacing: 0; gap: 14px; }
.policy-content h2::before { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.policy-content p, .policy-content li { font-size: 15px; line-height: 1.95; }
.policy-content section { padding: 32px 0; }
.policy-content ul { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.policy-content .mail { font-family: var(--sans); font-size: 15px; overflow-wrap: anywhere; }
.updated { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12px; }
.tool { padding: 28px; border: 1px solid var(--line); border-radius: 20px; }
.tool h3, .work h3, .panel h3 { font-size: 22px; font-weight: 500; letter-spacing: 0; }
.tool .ver, .tool .env, .work .meta, .work .cat, .tags, .soon-tag,
.credits dt, .credits dd, .btn, .game-feature .sub { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.btn { border-radius: 999px; }
.tool p, .work p { font-size: 14px; line-height: 1.8; }
.work .thumb { background: var(--surface-2); }
.work .thumb .ph { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
body > main > section > h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 500; line-height: 1.5; letter-spacing: 0; }
footer { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
@media (max-width: 719px) {
  .doc-head { padding-top: 40px; }
  .policy-content h2 { font-size: 20px; }
  .policy-content ul { padding: 20px; }
  .tool { padding: 24px; }
}

/* Let copy use its available column; wrap only when the line is full. */
.hero-tagline, .lede, .release-description, .channel p,
.game-feature .desc, .hero.hero-sub h1 { max-width: none; }
.download-button > .i18n { text-wrap: wrap; }
