:root {
  color-scheme: dark;
  --ink: #f4f6fa;
  --muted: #a7afbf;
  --dim: #737f93;
  --surface: #0b101c;
  --surface-raised: #101827;
  --line: rgb(182 205 235 / 13%);
  --accent: #56bafa;
  --accent-bright: #82d8ff;
  --page-width: 1200px;
  --badge-visible-height: 50px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #070a12;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #070a12; line-height: 1.75; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 16px; color: #07101d; background: var(--accent-bright); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 2; display: flex; width: 100%; height: 72px; align-items: center; justify-content: space-between; padding-inline: clamp(20px, 5.6vw, 80px); background: #070d1b; }
.header-brand { display: flex; max-width: 280px; align-items: center; gap: 12px; }
.header-symbol { width: 64px; height: auto; }
.header-wordmark { width: 182px; height: auto; }
.language-switch { display: inline-flex; width: 120px; height: 36px; align-items: stretch; overflow: hidden; border: 1px solid #778194; border-radius: 999px; background: #0a1120; font-family: Arial, sans-serif; font-size: 13px; letter-spacing: .04em; }
.language-link { display: grid; flex: 1; place-items: center; color: #f4f6fa; text-decoration: none; transition: background-color .2s ease; }
.language-link:hover { background: rgb(86 186 250 / 25%); }
.language-link.is-current { border-radius: 999px; background: #2379b3; color: #fff; }
.language-link:focus-visible { position: relative; z-index: 1; border-radius: 999px; outline: none; box-shadow: inset 0 0 0 2px var(--accent-bright); }
.hero { position: relative; display: grid; height: 460px; min-height: 420px; overflow: hidden; place-items: center; isolation: isolate; padding: 34px 24px 44px; background: #080e1b; text-align: center; }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(7 13 27 / 12%) 0%, rgb(7 13 27 / 5%) 25%, rgb(7 13 27 / 7%) 70%, rgb(8 12 21 / 38%) 90%, #080c15 100%); content: ""; }
.hero-background { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero-content { display: flex; width: min(100%, 840px); flex-direction: column; align-items: center; }
.hero-logo { display: flex; width: min(500px, 78vw); flex-direction: column; align-items: center; gap: 9px; margin: 0 0 25px; }
.hero-symbol { width: 51%; height: auto; }
.hero-wordmark { width: 100%; height: auto; }
.hero h1 { max-width: 100%; margin: 0; font-size: clamp(26px, 2.1vw, 30px); font-weight: 400; letter-spacing: .055em; line-height: 1.45; text-wrap: balance; }
.hero-subtitle { margin: 19px 0 0; color: #f1f4f9; font: 500 15px/1.5 Arial, sans-serif; letter-spacing: .27em; }

.section { padding-right: max(24px, calc((100vw - var(--page-width)) / 2)); padding-left: max(24px, calc((100vw - var(--page-width)) / 2)); }
.section-heading { margin: 0 0 34px; text-align: center; }
.section-heading h2 { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 26px); margin: 0; color: #f5f7fb; font-family: Arial, sans-serif; font-size: clamp(28px, 2.35vw, 32px); font-weight: 500; letter-spacing: .16em; line-height: 1.35; white-space: nowrap; }
.section-heading h2::before, .section-heading h2::after { width: min(23vw, 290px); height: 1px; flex: 1 1 auto; content: ""; }
.section-heading h2::before { background: linear-gradient(90deg, transparent, rgb(86 186 250 / 66%)); }
.section-heading h2::after { background: linear-gradient(90deg, rgb(86 186 250 / 66%), transparent); }
.games-section { padding-top: 42px; padding-bottom: 56px; background: linear-gradient(180deg, #080c15 0%, #09111e 100%); }
.games-section .section-heading { margin-bottom: 30px; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.game-card { display: flex; min-width: 0; flex-direction: column; }
.game-feature { display: block; width: 100%; height: auto; border-radius: 14px; }
.game-summary { display: grid; min-height: 180px; grid-template-columns: 86px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
.game-icon { width: 86px; height: 86px; flex: 0 0 auto; border-radius: 18px; }
.game-copy { min-width: 0; }
.game-copy h3 { margin: 0; color: #f7f8fb; font-size: clamp(21px, 1.8vw, 24px); font-weight: 600; letter-spacing: .01em; line-height: 1.45; }
.translated-title { margin: 2px 0 0; color: #c4cedc; font-size: 13px; line-height: 1.5; }
.game-description { margin: 9px 0 0; color: #d2dbe7; font-size: 15px; line-height: 1.82; }
.availability-note { margin: 0; color: #c2cbd8; font-size: 12px; line-height: 1.6; }
.store-links { display: flex; min-height: var(--badge-visible-height); flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.store-link { display: flex; width: max-content; height: var(--badge-visible-height); flex: 0 0 auto; align-items: center; justify-content: center; }
.store-link img { display: block; width: auto; max-width: none; height: var(--badge-visible-height); object-fit: contain; }
.google-play-link img { height: calc(var(--badge-visible-height) * 250 / 192); }
html[lang="en"] .google-play-link img { height: calc(var(--badge-visible-height) * 250 / 168); }

.about-section { padding-top: 48px; padding-bottom: 52px; border-top: 1px solid rgb(86 186 250 / 24%); background: linear-gradient(145deg, #0b1625 0%, #0b1421 52%, #09111d 100%); }
.about-section .section-heading { margin-bottom: 34px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: stretch; }
.about-card { display: flex; min-width: 0; min-height: 0; flex-direction: column; align-items: flex-start; padding: 0 8px 0 0; border: 0; background: none; text-align: left; }
.about-card + .about-card { padding: 0 0 0 48px; border-left: 1px solid rgb(142 184 224 / 30%); }
.about-brand { display: flex; width: 100%; height: 172px; align-items: center; justify-content: center; margin: 0 0 14px; }
.studio-brand { flex-direction: column; gap: 2px; }
.studio-symbol { width: min(36%, 205px); height: auto; }
.studio-wordmark { width: min(72%, 270px); height: auto; }
.lab-logo { width: min(100%, 360px); height: 172px; object-fit: contain; object-position: center; }
.about-card p { max-width: 530px; margin: 0 0 12px; color: #d0d9e5; font-size: 15px; line-height: 1.82; }

.contact-section { padding: 34px 24px; border-top: 1px solid rgb(182 205 235 / 14%); background: #080d17; }
.contact-inner { display: grid; width: min(100%, var(--page-width)); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; margin: 0 auto; padding-inline: 32px; }
.contact-item { display: flex; min-width: 0; min-height: 82px; align-items: center; gap: 18px; color: #f3f6fa; }
.contact-icon { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: #f1f5fa; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.contact-copy h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: .025em; line-height: 1.4; }
.contact-email { display: inline-block; min-height: 36px; margin: 1px 0 0; padding: 2px 0; color: #c9d6e6; font-size: 15px; text-decoration-color: rgb(86 186 250 / 60%); text-underline-offset: 4px; transition: color .2s ease; }
.contact-email:hover, .privacy-item:hover { color: var(--accent-bright); }
.privacy-item { min-height: 70px; padding-left: clamp(28px, 6vw, 72px); border-left: 1px solid rgb(142 184 224 / 30%); color: #f3f6fa; font-size: 20px; text-decoration: none; transition: color .2s ease; }
.site-footer { display: flex; min-height: 78px; align-items: center; justify-content: center; padding: 24px 20px; border-top: 1px solid rgb(182 205 235 / 15%); color: #b8c3d2; background: #080c15; text-align: center; }
.site-footer p { margin: 0; font: 13px/1.5 Arial, sans-serif; letter-spacing: .12em; }

@media (min-width: 1600px) { .hero-background { object-position: center 57%; } }
@media (max-width: 850px) {
  :root { --badge-visible-height: 42px; }
  .section { padding-right: 28px; padding-left: 28px; }
  .games-grid { gap: 24px; }
  .game-summary { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; }
  .game-icon { width: 72px; height: 72px; }
  .game-copy h3 { font-size: 21px; }
  .game-description { font-size: 14px; }
  .store-links { gap: 8px; }
  .about-grid { gap: 30px; }
  .about-card + .about-card { padding-left: 30px; }
  .about-card p { font-size: 14px; }
  .contact-inner { padding-inline: 10px; }
}
@media (max-width: 650px) {
  .site-header { height: 64px; padding-inline: 16px; }
  .header-brand { max-width: 190px; gap: 8px; }
  .header-symbol { width: clamp(38px, 12vw, 52px); }
  .header-wordmark { width: clamp(108px, 37vw, 128px); }
  .language-switch { width: 98px; height: 34px; font-size: 12px; }
  :root { --badge-visible-height: 48px; }
  .hero { height: 420px; min-height: 390px; padding: 28px 20px 36px; }
  .hero-background { object-position: 50% 51%; }
  .hero-logo { width: min(390px, 84vw); gap: 7px; margin-bottom: 24px; }
  .hero-symbol { width: 47%; }
  .hero h1 { max-width: 430px; font-size: clamp(23px, 5.7vw, 28px); line-height: 1.5; letter-spacing: .025em; }
  html[lang="ja"] .hero h1 { font-size: clamp(18px, 5.3vw, 24px); white-space: nowrap; }
  .hero-subtitle { margin-top: 16px; font-size: 12px; letter-spacing: .21em; }
  .section { padding-right: 21px; padding-left: 21px; }
  .section-heading h2 { gap: 12px; font-size: 27px; }
  .games-section { padding-top: 36px; padding-bottom: 46px; }
  .games-section .section-heading { margin-bottom: 25px; }
  .games-grid { grid-template-columns: 1fr; gap: 34px; }
  .game-feature { border-radius: 12px; }
  .game-summary { min-height: 0; grid-template-columns: 68px minmax(0, 1fr); gap: 15px; margin-top: 17px; }
  .game-icon { width: 68px; height: 68px; border-radius: 15px; }
  .game-copy h3 { font-size: 20px; }
  .game-description { margin-top: 7px; font-size: 14px; line-height: 1.75; }
  .translated-title { font-size: 12px; }
  .availability-note { margin-top: 10px; font-size: 12px; }
  .store-links { min-height: var(--badge-visible-height); flex-wrap: nowrap; gap: 10px; padding-top: 16px; }
  .about-section { padding-top: 42px; padding-bottom: 42px; }
  .about-section .section-heading { margin-bottom: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 23px; }
  .about-card { padding: 0; }
  .about-card + .about-card { padding: 23px 0 0; border-top: 1px solid rgb(142 184 224 / 26%); border-left: 0; }
  .about-brand { height: 136px; margin-bottom: 10px; }
  .studio-symbol { width: min(45%, 175px); }
  .studio-wordmark { width: min(80%, 270px); }
  .lab-logo { width: min(100%, 300px); height: 136px; }
  .about-card p { margin-bottom: 10px; font-size: 14px; line-height: 1.8; }
  .contact-section { padding: 24px 21px; }
  .contact-inner { width: min(100%, 500px); grid-template-columns: 1fr; padding-inline: 0; }
  .contact-item { min-height: 72px; gap: 15px; }
  .contact-copy h2, .privacy-item { font-size: 19px; }
  .privacy-item { min-height: 64px; padding: 13px 0 0; border-top: 1px solid rgb(142 184 224 / 26%); border-left: 0; }
  .site-footer { min-height: 68px; padding: 21px 18px; }
  .site-footer p { font-size: 13px; }
}
@media (max-width: 375px) {
  :root { --badge-visible-height: 46px; }
  .hero h1 { font-size: 22px; }
  html[lang="ja"] .hero h1 { font-size: 18px; }
  .game-summary { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .game-icon { width: 62px; height: 62px; }
  .game-copy h3 { font-size: 19px; }
  .store-links { gap: 8px; }
}
@media (max-width: 320px) {
  .store-links { flex-wrap: wrap; row-gap: 6px; }
  .store-link, .store-link img { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
