:root {
  color-scheme: light;
  --bg: #f8fbff;
  --ink: #101827;
  --muted: #5a667a;
  --line: #dce6f3;
  --cyan: #00b8d9;
  --yellow: #ffcf45;
  --green: #54d17a;
  --panel: #ffffff;
  --shadow: 0 22px 60px rgba(16, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 184, 217, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(0, 184, 217, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  color: var(--ink);
  font-family:
    Inter, "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(220, 230, 243, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #06111f;
  background: var(--yellow);
  border: 2px solid #06111f;
  box-shadow: 5px 5px 0 var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) 70px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 12vw, 158px);
  line-height: 0.86;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.8;
}

.hero-actions,
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.work-links a,
.link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(16, 24, 39, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.work-links a:hover,
.link-list a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(16, 24, 39, 0.18);
}

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary,
.work-links a,
.link-list a {
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.orbit {
  position: absolute;
  border: 2px solid rgba(0, 184, 217, 0.42);
  border-radius: 999px;
}

.orbit.one {
  inset: 16px 30px 74px 18px;
}

.orbit.two {
  inset: 88px 0 18px 82px;
  border-color: rgba(255, 207, 69, 0.58);
}

.screen-card {
  position: absolute;
  inset: 70px 26px 42px 26px;
  overflow: hidden;
  background: #071247;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow), 12px 12px 0 var(--yellow);
}

.screen-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.16);
}

.screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff8cf;
}

.pixel-stage {
  position: relative;
  height: calc(100% - 40px);
}

.face {
  position: absolute;
  padding: 12px 16px;
  color: #fff8cf;
  border: 2px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
  box-shadow: 0 0 28px currentColor;
}

.joy {
  top: 22%;
  left: 12%;
  color: #ffcf45;
}

.fun {
  top: 48%;
  right: 10%;
  color: #54d17a;
}

.sad {
  bottom: 16%;
  left: 26%;
  color: #6fdcff;
}

.merge-line {
  position: absolute;
  left: 20%;
  right: 18%;
  bottom: 24%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--yellow), var(--cyan), transparent);
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.section h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
}

.section-heading p,
.work-feature p,
.principles p,
.info-grid p,
.contact-box p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 34px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 184, 217, 0.2);
}

.work-feature h3,
.principles h3 {
  margin: 0;
  font-size: 26px;
}

.work-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.work-panel span {
  display: grid;
  place-items: center;
  min-height: 110px;
  background: #071247;
  color: #fff8cf;
  border: 2px solid var(--ink);
  font-size: 44px;
  font-weight: 900;
}

.studio {
  background: #fff;
  border-block: 1px solid var(--line);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.principles div {
  padding-top: 22px;
  border-top: 4px solid var(--cyan);
}

.principles div:nth-child(2) {
  border-top-color: var(--yellow);
}

.principles div:nth-child(3) {
  border-top-color: var(--green);
}

.info-grid,
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--ink);
  color: #fff;
}

.info-grid p,
.contact-box p {
  color: #dbe7f5;
}

.link-list {
  display: grid;
  gap: 12px;
}

.contact-box {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer .footer-links {
  display: flex;
  gap: 18px;
}

/* 文章ページ（プライバシーポリシー・お問い合わせ） */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px) 80px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.legal h2 {
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 4px solid var(--cyan);
  font-size: clamp(22px, 3.4vw, 30px);
}

.legal h2:nth-of-type(2n) {
  border-top-color: var(--yellow);
}

.legal h2:nth-of-type(3n) {
  border-top-color: var(--green);
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.95;
}

.legal a.inline {
  color: #0090ab;
  font-weight: 800;
  text-decoration: underline;
}

.legal ul {
  padding-left: 22px;
}

.legal .contact-mail {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--cyan);
}

.legal .back {
  display: inline-flex;
  margin-top: 48px;
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .work-feature,
  .principles,
  .info-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .screen-card {
    inset: 32px 10px 20px;
  }

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

  .work-panel span {
    min-height: 78px;
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .work-links {
    flex-direction: column;
  }

  .button,
  .work-links a,
  .link-list a {
    width: 100%;
  }

  .work-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}
