:root {
  color-scheme: light;
  --navy: #0b234a;
  --muted: #4e6180;
  --blue: #1477df;
  --blue-deep: #076acb;
  --coral: #fa756d;
  --line: #dbe5f0;
  --soft-blue: #eaf6ff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 3px; }

.container { width: min(100% - 12.5%, 1390px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 10; background: #fff; }
.header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark, .footer-wordmark { font-family: Arial, Helvetica, sans-serif; font-size: clamp(30px, 2.75vw, 43px); line-height: 1; font-weight: 750; letter-spacing: .075em; text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 3.3vw, 54px); font-weight: 700; font-size: 17px; }
.main-nav a, .site-footer nav a { text-decoration: none; transition: color .2s ease; }
.main-nav a:hover, .site-footer nav a:hover { color: var(--blue); }

.hero { overflow: hidden; background: radial-gradient(circle at 88% 36%, #ecf7ff 0, #fff 52%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: 728px; }
.hero-copy { position: relative; z-index: 2; width: 58%; padding-bottom: 30px; }
.hero h1 { margin: 0; font-size: clamp(56px, 5.65vw, 91px); line-height: 1.22; letter-spacing: -.048em; font-weight: 850; }
.hero h1 span { color: var(--coral); }
.hero-copy > p { margin: 38px 0 34px; font-size: clamp(18px, 1.47vw, 23px); line-height: 1.85; font-weight: 600; }
.primary-button { display: inline-flex; min-width: 285px; min-height: 76px; align-items: center; justify-content: center; gap: 24px; padding: 17px 27px; border-radius: 999px; color: #fff; background: linear-gradient(120deg, var(--blue), var(--blue-deep)); box-shadow: 0 9px 22px rgba(20, 119, 223, .12); font-size: 20px; font-weight: 750; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button span { font-size: 27px; font-family: Arial, sans-serif; font-weight: 400; line-height: 1; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 24px rgba(20, 119, 223, .2); }
.hero-art { position: absolute; z-index: 1; width: min(67vw, 1010px); max-width: none; height: auto; right: -11%; top: 5%; pointer-events: none; }

.games-section { padding: 108px 0 96px; background: linear-gradient(180deg, #f5faff 0, #fff 30%); scroll-margin-top: 20px; }
.section-heading { max-width: 850px; margin-bottom: 48px; }
.section-eyebrow { margin: 0 0 13px; color: var(--blue); font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .2em; }
.section-heading h2, .future-copy h2 { margin: 0 0 16px; font-size: clamp(37px, 3.55vw, 57px); letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.8; }
.game-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 325px; align-items: center; gap: clamp(40px, 7vw, 118px); min-height: 660px; margin-bottom: 32px; padding: 52px clamp(45px, 7vw, 110px); border-radius: 42px; overflow: hidden; }
.game-card::before { content: ""; position: absolute; width: 450px; height: 450px; border: 36px solid rgba(255,255,255,.48); border-radius: 50%; right: -140px; top: -240px; pointer-events: none; }
.game-card-swipalette { background: linear-gradient(125deg, #e6f6ff 0%, #d9edff 100%); }
.game-card-nanpure { background: linear-gradient(125deg, #fff6ef 0%, #fff0e6 100%); }
.game-card-copy, .game-screen { position: relative; z-index: 1; }
.status-badge { display: inline-block; padding: 9px 17px; border-radius: 999px; color: #075b9a; background: #fff; font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.game-card-nanpure .status-badge { color: #a84e39; }
.game-card h3 { margin: 22px 0 13px; font-size: clamp(39px, 3.8vw, 62px); line-height: 1.2; letter-spacing: -.04em; }
.game-card-lead { margin: 0 0 20px; font-size: clamp(22px, 2vw, 30px); font-weight: 750; line-height: 1.5; }
.game-card-copy > p:not(.game-card-lead) { max-width: 610px; margin: 0; color: #344a68; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.9; }
.game-features { display: flex; flex-wrap: wrap; gap: 10px; margin: 27px 0 0; padding: 0; list-style: none; }
.game-features li { padding: 10px 15px; border: 1px solid rgba(32, 94, 150, .15); border-radius: 12px; background: rgba(255,255,255,.72); font-size: 14px; font-weight: 700; }
.game-screen { width: min(100%, 284px); margin: 0 auto; text-align: center; }
.game-screen img { width: 100%; height: 560px; object-fit: cover; object-position: top; border: 8px solid #fff; border-radius: 31px; box-shadow: 0 20px 40px rgba(18, 61, 109, .17); }
.game-screen figcaption { margin-top: 15px; color: var(--muted); font-size: 13px; }
.development-note { margin: 19px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.future-section { overflow: hidden; background: linear-gradient(180deg, #f8fbff, #edf7ff); }
.future-inner { position: relative; display: flex; align-items: center; min-height: 630px; }
.future-copy { position: relative; z-index: 2; width: 57%; padding: 80px 0; }
.future-lead { margin: 22px 0 19px; font-size: clamp(35px, 3.5vw, 55px); font-weight: 850; line-height: 1.35; letter-spacing: -.04em; }
.future-copy > p:not(.section-eyebrow, .future-lead) { max-width: 600px; margin: 0; color: #344a68; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.85; }
.future-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.future-tags span { display: inline-flex; align-items: baseline; gap: 10px; padding: 13px 18px; border: 1px solid #cbdff2; border-radius: 15px; background: rgba(255,255,255,.85); font-size: 17px; font-weight: 800; }
.future-tags small { color: #3273bc; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700; white-space: nowrap; }
.future-art { position: absolute; z-index: 1; width: min(67vw, 1030px); max-width: none; right: -13%; top: 2%; pointer-events: none; }

.company-section { overflow: hidden; background: #fff; scroll-margin-top: 20px; }
.company-inner { position: relative; display: flex; align-items: center; min-height: 540px; }
.company-copy { position: relative; z-index: 2; width: 55%; padding: 60px 0; }
.company-copy h2, .contact-inner h2 { margin: 0 0 44px; font-size: clamp(35px, 3.2vw, 50px); letter-spacing: .04em; }
.company-lead { margin: 0 0 12px; font-size: clamp(25px, 2.4vw, 37px); font-weight: 750; letter-spacing: .035em; }
.company-description { margin: 0 0 33px; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.8; }
.company-details { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 18px; }
.company-details div { display: flex; gap: 28px; padding: 12px 0; }
.company-details dt { min-width: 104px; color: var(--muted); }
.company-details dd { margin: 0; padding-left: 30px; border-left: 1px solid #b9c5d4; font-weight: 700; overflow-wrap: anywhere; }
.company-art { position: absolute; z-index: 1; width: min(67vw, 1030px); max-width: none; right: -20%; top: -7%; pointer-events: none; }

.contact-section { position: relative; overflow: hidden; background: linear-gradient(115deg, #e4f3ff 0%, #edf8ff 52%, #dceeff 100%); scroll-margin-top: 20px; }
.contact-section::after { content: ""; position: absolute; width: 46vw; height: 46vw; right: -15vw; top: -30vw; border: 32px solid rgba(112, 182, 247, .18); border-radius: 50%; pointer-events: none; }
.contact-inner { position: relative; z-index: 1; padding-top: 58px; padding-bottom: 65px; }
.contact-inner h2 { margin-bottom: 22px; }
.contact-inner > p { margin: 0 0 22px; color: #465f7e; font-size: 18px; line-height: 1.8; }
.contact-address { display: block; width: fit-content; margin: 0 0 25px; color: #073b89; font-family: Arial, Helvetica, sans-serif; font-size: clamp(21px, 2.1vw, 30px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-address:hover { text-decoration: underline; }
.contact-inner .primary-button { min-height: 67px; min-width: 280px; font-size: 18px; }
.contact-inner .contact-support { margin: 20px 0 0; font-size: 15px; }
.contact-support a { margin-left: 3px; color: #075fb5; text-underline-offset: 3px; }

.site-footer { background: #fff; }
.footer-inner { display: flex; align-items: center; gap: 34px; min-height: 114px; }
.footer-wordmark { font-size: 28px; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-size: 14px; }
.site-footer small { color: #70809a; font-size: 12px; white-space: nowrap; }

.subpage { display: flex; flex-direction: column; min-height: 100vh; }
.subpage main { flex: 1; }
.content-page { max-width: 950px; padding-top: 62px; padding-bottom: 130px; }
.back-link { color: #296da9; font-size: 15px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.content-page h1 { margin: 35px 0 25px; font-size: clamp(38px, 4vw, 55px); letter-spacing: -.025em; }
.page-intro { margin: 0 0 54px; color: var(--muted); font-size: 18px; line-height: 1.9; }
.content-page section { padding: 29px 0 34px; border-top: 1px solid var(--line); }
.content-page section h2 { margin: 0 0 14px; font-size: 24px; }
.content-page section p { max-width: 770px; margin: 0 0 16px; color: #3f5673; font-size: 16px; line-height: 1.9; }
.content-page section a:not(.content-email) { color: #075fb5; text-underline-offset: 3px; }
.content-email { display: inline-block; margin: 0 0 17px; color: #075fb5; font-family: Arial, Helvetica, sans-serif; font-size: 21px; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .container { width: min(100% - 9%, 1390px); }
  .hero-inner { min-height: 650px; }
  .hero-art { width: 74vw; right: -18%; top: 13%; }
  .game-card { grid-template-columns: minmax(0, 1fr) 265px; gap: 30px; min-height: 610px; padding: 40px; }
  .game-screen img { height: 515px; }
  .future-art { width: 74vw; right: -20%; top: 12%; }
  .company-art { width: 76vw; right: -28%; top: 5%; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 40px, 640px); }
  .header-inner { min-height: 88px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding: 14px 0; }
  .wordmark { font-size: 31px; }
  .main-nav { width: 100%; gap: 21px; font-size: 13px; }
  .hero-inner, .future-inner, .company-inner { display: block; min-height: 0; }
  .hero-copy, .future-copy, .company-copy { width: 100%; }
  .hero-copy { padding: 80px 0 0; }
  .hero h1 { font-size: clamp(36px, 9.2vw, 55px); line-height: 1.28; }
  .hero-copy > p { margin: 26px 0 27px; font-size: 16px; line-height: 1.8; }
  .desktop-only { display: none; }
  .primary-button { min-width: 210px; min-height: 59px; gap: 20px; padding: 12px 22px; font-size: 16px; }
  .primary-button span { font-size: 22px; }
  .hero-art, .future-art, .company-art { position: relative; top: auto; right: auto; max-width: none; pointer-events: none; }
  .hero-art { width: 125%; margin: -10px 0 5px -3%; }
  .games-section { padding: 72px 0 67px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .future-copy h2 { font-size: 37px; }
  .section-heading > p:last-child { font-size: 16px; }
  .game-card { display: flex; flex-direction: column; align-items: stretch; gap: 32px; min-height: 0; margin-bottom: 22px; padding: 31px 24px 34px; border-radius: 28px; }
  .game-card::before { width: 300px; height: 300px; right: -150px; top: -130px; }
  .game-card h3 { margin-top: 18px; font-size: clamp(34px, 8vw, 48px); }
  .game-card-lead { font-size: 22px; }
  .game-card-copy > p:not(.game-card-lead) { font-size: 16px; }
  .game-features { gap: 8px; margin-top: 20px; }
  .game-features li { font-size: 12px; padding: 8px 11px; }
  .game-screen { width: min(100%, 242px); }
  .game-screen img { height: 480px; }
  .future-copy { padding: 72px 0 0; }
  .future-lead { font-size: clamp(34px, 8.5vw, 52px); }
  .future-copy > p:not(.section-eyebrow, .future-lead) { font-size: 16px; }
  .future-tags span { font-size: 14px; padding: 10px 13px; }
  .future-art { width: 127%; margin: 3px 0 4px -8%; }
  .company-copy { padding: 72px 0 0; }
  .company-copy h2, .contact-inner h2 { margin-bottom: 26px; font-size: 34px; }
  .company-lead { font-size: 25px; }
  .company-description { font-size: 16px; margin-bottom: 26px; }
  .company-details { font-size: 15px; }
  .company-details div { gap: 13px; }
  .company-details dt { min-width: 75px; }
  .company-details dd { padding-left: 18px; }
  .company-art { width: 136%; margin: -40px 0 0 -8%; }
  .contact-inner { padding-top: 56px; padding-bottom: 60px; }
  .contact-inner > p { font-size: 15px; }
  .contact-address { font-size: 21px; }
  .contact-inner .primary-button { min-width: 220px; min-height: 58px; font-size: 16px; }
  .footer-inner { flex-wrap: wrap; gap: 17px; padding: 30px 0; }
  .footer-wordmark { width: 100%; }
  .site-footer nav { order: 2; width: 100%; margin-left: 0; }
  .site-footer small { order: 3; }
  .content-page { padding-top: 47px; padding-bottom: 80px; }
  .content-page h1 { margin-top: 28px; }
  .page-intro { font-size: 16px; margin-bottom: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button, .main-nav a, .site-footer nav a { transition: none; }
}
