:root {
  color-scheme: light;
  --ink: #1e2329;
  --muted: #66717f;
  --paper: #fffaf4;
  --surface: #ffffff;
  --line: #eadfd2;
  --red: #d93f32;
  --red-dark: #a92f29;
  --blue: #246b8f;
  --green: #2f7b5f;
  --yellow: #f1bd4b;
  --shadow: 0 18px 44px rgba(82, 56, 35, 0.14);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(234, 223, 210, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(169, 47, 41, 0.2);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--red-dark);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 64px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(58px, 9vw, 118px) clamp(20px, 6vw, 72px);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(30, 35, 41, 0.84), rgba(30, 35, 41, 0.48) 45%, rgba(30, 35, 41, 0.1)),
    linear-gradient(0deg, rgba(30, 35, 41, 0.22), rgba(30, 35, 41, 0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  color: #fff;
}

.hero-symbol {
  width: clamp(74px, 12vw, 116px);
  height: clamp(74px, 12vw, 116px);
  margin-bottom: 22px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd86b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 12em;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.notice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 6vw, 72px);
  background: var(--ink);
  color: #fff;
}

.notice-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.notice-band span {
  color: rgba(255, 255, 255, 0.76);
}

.notice-band a {
  flex: 0 0 auto;
  color: #ffd86b;
  font-weight: 900;
}

.activity-strip {
  margin: 0;
  background: var(--ink);
}

.activity-strip img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.section {
  padding: clamp(64px, 10vw, 118px) clamp(20px, 6vw, 72px);
}

.about-grid,
.join,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.section p {
  max-width: 68ch;
  color: var(--muted);
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fact-list div,
.join-cards article,
.work-card,
.report-card,
.link-grid a,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.fact-list div {
  min-height: 128px;
  padding: 22px;
}

.fact-list span,
.link-grid span,
.report-card time {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fact-list strong {
  display: block;
  margin-top: 10px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.program {
  background: #f6efe6;
}

.works {
  background: #fff;
}

.page-hero {
  padding: clamp(72px, 12vw, 130px) clamp(20px, 6vw, 72px) clamp(48px, 8vw, 82px);
  background: #fff;
}

.page-hero div {
  width: min(900px, 100%);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero p:not(.section-label) {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  min-height: 230px;
  padding: 26px;
}

.steps span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
}

.join-cards,
.work-list,
.link-grid {
  display: grid;
  gap: 14px;
}

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

.works-teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  color: var(--ink);
  text-decoration: none;
}

.works-teaser img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.works-teaser span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.work-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
}

.work-card::before {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  content: "";
  opacity: 0.2;
}

.work-card.scratch::before {
  background: var(--yellow);
}

.work-card.ai-game::before {
  background: var(--blue);
}

.work-card span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.work-card p {
  margin-bottom: 0;
}

.works-page {
  display: grid;
  gap: 28px;
  background: #f6efe6;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase-card:nth-child(even) .showcase-image {
  order: 2;
}

.showcase-image {
  display: block;
  min-height: 100%;
  background: var(--ink);
}

.showcase-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.showcase-body {
  padding: clamp(24px, 4vw, 42px);
}

.showcase-body h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
}

.join-cards article {
  padding: 22px;
}

.join-cards p,
.steps p,
.report-card p {
  margin-bottom: 0;
}

.reports {
  background: #fff;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.report-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.view-all {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 16px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.history-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: none;
}

.history-link.disabled {
  border-color: #d8dce0;
  background: #f0f2f4;
  color: #98a1aa;
  cursor: not-allowed;
}

.link-grid a {
  display: block;
  min-height: 122px;
  padding: 24px;
  text-decoration: none;
}

.link-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.36rem;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px clamp(20px, 6vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 880px) {
  .site-header,
  .notice-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(30, 35, 41, 0.86), rgba(30, 35, 41, 0.35)),
      linear-gradient(90deg, rgba(30, 35, 41, 0.7), rgba(30, 35, 41, 0.14));
  }

  .about-grid,
  .join,
  .contact,
  .steps,
  .work-list,
  .works-teaser,
  .showcase-card,
  .report-list {
    grid-template-columns: 1fr;
  }

  .showcase-card:nth-child(even) .showcase-image {
    order: 0;
  }

  .showcase-image img {
    min-height: 260px;
  }

  .fact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .button {
    width: 100%;
  }
}
