:root {
  --navy: #092341;
  --blue: #62a5c6;
  --teal: #4e9ba7;
  --yellow: #ffe344;
  --paper: #fcfcf8;
  --soft-blue: #e8eef0;
  --line: rgba(9, 35, 65, .22);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.wrap {
  width: min(1320px, 94%);
  margin-inline: auto;
}

/* ---------- HEADER ---------- */
.header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0 22px;
}

.brand {
  font-family: "Outfit", sans-serif;
  font-size: 49px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .9;
}

.brand span { color: var(--teal); }

.tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.header nav,
.footer nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.header nav a,
.footer nav a {
  position: relative;
}

.header nav a::after,
.footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  border-top: 2px solid var(--teal);
  transition: right .2s ease;
}

.header nav a:hover::after,
.footer nav a:hover::after { right: 0; }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
}

.hero-copy { align-self: center; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(56px, 7.8vw, 105px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.12;
}

.last-line {
  font-size: .66em;
  white-space: nowrap;
}

.dot {
  background: linear-gradient(transparent 68%, var(--yellow) 68%);
}

.hero-copy > p {
  margin: 16px 0;
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 800;
}

.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  min-width: 235px;
  padding: 11px 28px;
  background: var(--yellow);
  border-radius: 0;
  font-size: 16px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #ffdb1f;
}

.poster {
  min-height: 440px;
  aspect-ratio: 1.46;
  position: relative;
  background: var(--blue);
  overflow: hidden;
}

.poster-words {
  position: absolute;
  top: 7%;
  left: 5%;
  width: 66%;
  z-index: 1;
  font-family: "Anton", sans-serif;
  font-size: clamp(70px, 9.7vw, 137px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .9;
}

.poster-words span { display: block; }
.poster-words .move { margin-left: 12%; }

.poster-plus {
  position: absolute;
  top: 14%;
  left: 52%;
  width: 39%;
  height: 65%;
  background: var(--paper);
  clip-path: polygon(34% 0, 67% 0, 67% 34%, 100% 34%, 100% 66%, 67% 66%, 67% 100%, 34% 100%, 34% 66%, 0 66%, 0 34%, 34% 34%);
}

.english {
  position: absolute;
  right: 5%;
  top: 8%;
  margin: 0;
  font-family: "League Spartan", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .12em;
}

.poster-caption {
  position: absolute;
  right: 4%;
  bottom: 7%;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

.poster-caption::after {
  content: "";
  display: block;
  width: 40px;
  margin-top: 14px;
  border-top: 2px solid;
}

/* ---------- COMMON HEADINGS ---------- */
h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 58px;
  letter-spacing: -.045em;
  line-height: 1;
}

p { margin: 0; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 26px 0 20px;
}

.rule {
  display: inline-block;
  width: 60px;
  border-top: 1px solid currentColor;
  flex-shrink: 0;
}

.section-heading p,
.service-note p {
  font-size: 14px;
  font-weight: 700;
}

/* ---------- WORKS ---------- */
.works { margin-bottom: 38px; }

.works-featured {
  display: grid;
  gap: 22px;
}

.work-game { width: 100%; }

.works-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #fff;
}

.thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  background: rgba(252, 252, 248, .94);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.play {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(9, 35, 65, .9);
  color: #fff;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  font-size: 18px;
  padding-left: 4px;
  transition: transform .2s ease, background .2s ease;
}

.thumbnail:not(:disabled):hover .play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--teal);
}

.work-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 15px;
  min-height: 38px;
  padding-top: 7px;
}

.work-caption h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.work-caption > span {
  font-size: 12px;
  color: rgba(9, 35, 65, .72);
}

/* 16:9 GAME PR 仮サムネ */
.game-preview {
  text-align: left;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 35%, rgba(255,255,255,.18) 0 2%, transparent 2.2%),
    radial-gradient(circle at 73% 43%, rgba(255,227,68,.9) 0 1.1%, transparent 1.25%),
    linear-gradient(135deg, #153c58 0%, #2d7082 46%, #4e9ba7 100%);
}

.game-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(252,252,248,.12) 54% 55%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 52px);
}

.game-preview::after {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: -8%;
  bottom: -38%;
  border-radius: 50%;
  border: clamp(38px, 7vw, 95px) solid rgba(252,252,248,.12);
}

.game-preview-kicker,
.game-preview-title,
.game-preview-copy {
  position: absolute;
  z-index: 3;
  left: 5%;
}

.game-preview-kicker {
  top: 22%;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(12px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: .14em;
}

.game-preview-title {
  top: 31%;
  font-family: "Anton", sans-serif;
  font-size: clamp(56px, 8.6vw, 132px);
  font-weight: 400;
  line-height: .83;
  letter-spacing: .015em;
}

.game-preview-copy {
  bottom: 9%;
  font-size: clamp(12px, 1.35vw, 18px);
  font-weight: 700;
}

.game-preview-plus {
  position: absolute;
  z-index: 2;
  right: 8%;
  top: 6%;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(190px, 28vw, 420px);
  font-weight: 900;
  line-height: 1;
  color: rgba(252,252,248,.14);
  transform: rotate(8deg);
}

.game-preview .play {
  background: rgba(9,35,65,.78);
}

/* ---------- SERVICE ---------- */
.service {
  background: var(--blue);
  color: #fff;
  padding: 34px 0 38px;
}

.service-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
}

.service-heading h2 { font-size: 54px; }

.service-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.services > div {
  text-align: center;
  padding: 4px 14px;
  border-right: 1px solid rgba(255,255,255,.5);
}

.services > div:last-child { border: 0; }

.services svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services h3 {
  margin: 7px 0 0;
  font-size: 16px;
}

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 180px 270px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 25px;
  padding-block: 42px;
}

.about-heading h2 { font-size: 46px; }

.about-heading .rule {
  margin: 24px 0 8px;
  width: 38px;
}

.about-heading p {
  font-size: 14px;
  font-weight: 700;
}

.years {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 800;
}

.years strong {
  font-family: "Anton", sans-serif;
  font-size: 156px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.025em;
}

.years span { font-size: 23px; }

.bio {
  font-size: 14px;
  line-height: 1.95;
}

.bio p + p { margin-top: 10px; }

.logo-mark {
  width: 100%;
  max-width: 120px;
  height: auto;
  justify-self: end;
}

/* ---------- CONTACT ---------- */
.contact {
  background: #fff;
  padding: 30px 0;
  border-top: 1px solid rgba(9,35,65,.05);
}

.contact-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.contact-heading h2 { font-size: 46px; }
.contact-heading .rule { width: 42px; }

.contact-heading p {
  font-size: 15px;
  font-weight: 700;
}

.contact-actions { flex-shrink: 0; }

.email-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
}

.email-row button {
  padding: 2px 8px;
  background: none;
  border: 1px solid #b6c4cd;
  font-size: 12px;
}

.reassurance {
  padding-left: 25px;
  border-left: 1px solid;
  font-size: 13px;
}

#copy-status {
  display: block;
  min-height: 20px;
  font-size: 12px;
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 34px;
}

.footer .brand {
  font-size: 32px;
  letter-spacing: -.05em;
}

.footer small { font-size: 12px; }

.footer nav {
  font-size: 12px;
  gap: 24px;
}

/* ---------- ACCESSIBILITY / DIALOG ---------- */
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  background: white;
  z-index: 10;
}

.skip:focus { top: 10px; }

dialog {
  width: min(960px, 94vw);
  padding: 20px;
  border: 0;
  color: var(--navy);
  background: var(--paper);
}

dialog::backdrop { background: #041225dd; }

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dialog-heading h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.dialog-heading button {
  border: 0;
  background: transparent;
  font-size: 24px;
  padding: 0 10px;
}

#video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

#video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

dialog > p {
  margin-top: 12px;
  text-align: right;
  font-size: 14px;
}

body.modal-open { overflow: hidden; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 1500px) {
  .poster-words { font-size: 145px; }
}

@media (max-width: 1100px) {
  .header nav { gap: 22px; }
  .poster { min-height: 365px; }

  .about {
    grid-template-columns: 150px 220px minmax(0, 1fr);
    gap: 18px;
  }

  .years strong { font-size: 128px; }
  .logo-mark { display: none; }

  .service-inner {
    grid-template-columns: 220px 1fr;
  }

  h2 { font-size: 50px; }

  .contact-inner { flex-wrap: wrap; }
  .contact-heading { min-width: 450px; }
  .reassurance { display: none; }
  .footer nav { gap: 15px; }
}

@media (max-width: 760px) {
  .wrap { width: 90%; }

  .header {
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 0;
  }

  .brand { font-size: 40px; }
  .tagline { font-size: 12px; }

  .header nav {
    order: 4;
    width: 100%;
    justify-content: space-between;
    margin: 4px 0 0;
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero h1 { font-size: clamp(64px, 14vw, 100px); }
  .hero-copy > p { font-size: 13px; }
  .hero-copy .button { font-size: 15px; }

  .poster {
    min-height: 0;
    aspect-ratio: 1.46;
  }

  .poster-words { font-size: clamp(74px, 18vw, 140px); }
  .english { font-size: clamp(8px, 1.7vw, 12px); }
  .poster-caption { font-size: 12px; }

  .section-heading {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .section-heading h2 { font-size: 46px; }
  .section-heading .rule { width: 42px; }

  .section-heading p {
    width: 100%;
    font-size: 13px;
  }

  .works-subgrid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .work-caption { justify-content: space-between; }
  .play { width: 50px; height: 50px; }
  .game-preview-title { font-size: clamp(46px, 15vw, 85px); }
  .game-preview-plus { font-size: clamp(150px, 45vw, 260px); }

  .service { padding-block: 28px; }

  .service-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-heading h2 { font-size: 46px; }

  .service-note {
    gap: 15px;
    margin-top: 10px;
  }

  .service-note p { font-size: 13px; }
  .service-note .rule { width: 32px; }

  .services {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .services > div:nth-child(2) { border: 0; }
  .services h3 { font-size: 14px; }

  .about {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-block: 32px;
  }

  .about-heading h2 { font-size: 42px; }
  .years { justify-content: flex-end; }
  .years strong { font-size: 110px; }
  .years span { font-size: 18px; }

  .bio {
    grid-column: 1 / 3;
    font-size: 15px;
  }

  .logo-mark {
    display: block;
    width: 84px;
    grid-column: 1 / 3;
    justify-self: end;
  }

  .contact-inner { display: block; }

  .contact-heading {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .contact-heading h2 { font-size: 42px; }
  .contact-heading p { grid-column: 1 / 3; }
  .contact-actions { margin-top: 24px; }

  .footer {
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer nav {
    order: 4;
    width: 100%;
    justify-content: space-between;
  }

  .footer > small:last-child { margin-left: auto; }
  .footer .brand { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
