:root {
  --bg-page: #ffffff;
  --bg-surface: rgba(244, 245, 247, 0.8);
  --bg-hero: linear-gradient(145deg, rgba(243, 242, 239, 0.82) 0%, rgba(238, 242, 247, 0.82) 100%);
  --bg-card: #ffffff;
  --bg-accent-soft: #eaf1fb;
  --border-soft: #e6ebf2;
  --border-active: #bfd5f0;
  --text-primary: #425e7d;
  --text-secondary: #6e7f91;
  --text-muted: #93a1b0;
  --accent-blue: #4f78a8;
  --shadow-soft: 0 18px 45px rgba(52, 78, 108, 0.06);
  --shadow-card: 0 8px 24px rgba(52, 78, 108, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fbfd 0%, #f1f5fb 50%, #f7f9fc 100%);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 深海スクロール時のカード外テキスト視認性確保 */
.about-copy .eyebrow,
.about-copy .section-heading,
.about-copy .section-text,
.workflow-header .eyebrow,
.workflow-header .section-heading,
.games-heading-wrap .eyebrow,
.games-heading-wrap .section-heading,
.games-heading-wrap .section-subheading,
.site-footer {
  transition: color 0.45s ease;
}

body.is-deep .about-copy .section-heading,
body.is-deep .workflow-header .section-heading,
body.is-deep .games-heading-wrap .section-heading {
  color: #f3f8ff;
}

body.is-deep .about-copy .section-text,
body.is-deep .games-heading-wrap .section-subheading,
body.is-deep .site-footer {
  color: #c5dcf5;
}

body.is-deep .about-copy .eyebrow,
body.is-deep .workflow-header .eyebrow,
body.is-deep .games-heading-wrap .eyebrow {
  color: #8dd6ff;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
}

/* ヘッダー */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(246, 247, 249, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 28px 28px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6d98ca, #425e7d);
  display: inline-block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* ヒーロー */
.hero-card {
  background: rgba(243, 245, 248, 0.78);
  backdrop-filter: blur(10px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 44px 48px 28px;
  box-shadow: var(--shadow-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  font-weight: 700;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.pill-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: 0 12px 28px rgba(66, 94, 125, 0.12);
}

.pill-btn--subtle {
  background: #f9fbfd;
}

.pill-btn--play {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  padding: 12px 34px;
}

.pill-btn--play:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.hero-stage {
  width: 100%;
  height: 290px;
  border-radius: var(--radius-lg);
  background: #e9eff7;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-stage:hover .hero-stage-img {
  transform: scale(1.03);
}

.hero-stage-overlay {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(24, 38, 56, 0.78) 0%, rgba(24, 38, 56, 0.15) 55%, transparent 100%);
  color: #ffffff;
}

.stage-badge {
  align-self: flex-start;
  margin-bottom: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-blue);
}

.stage-title {
  font-size: 22px;
  font-weight: 700;
}

.stage-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent-blue);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dot.is-active {
  background: var(--accent-blue);
  transform: scale(1.2);
}

/* Message セクション */
.message-section {
  padding: 56px 12px 16px;
}

.message-card {
  background: rgba(248, 250, 253, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  text-align: center;
}

.message-heading {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--text-primary);
}

.message-body {
  margin: 0 auto;
  max-width: 680px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* About セクション */
.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 44px;
  align-items: center;
  padding: 64px 20px;
}

.section-heading {
  margin: 0 0 14px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.35;
}

.section-subheading {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.section-text {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.about-side-tiles {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}

.media-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #eef3f9;
  min-height: 90px;
  box-shadow: var(--shadow-card);
}

.media-tile--tall {
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

/* Workflow セクション */
.workflow-section {
  padding: 8px 12px 56px;
}

.workflow-header {
  margin-bottom: 24px;
  padding-left: 8px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.wf-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  background: var(--bg-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.workflow-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-primary);
}

.workflow-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Games / Works セクション */
.games-section {
  padding: 12px 12px 48px;
}

.games-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

.games-heading-wrap {
  padding-left: 8px;
  margin-bottom: 22px;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: #f9fafb;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.game-tab:hover {
  background: #f3f7fc;
}

.game-tab.is-active {
  background: var(--bg-accent-soft);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card);
}

.game-tab-text strong {
  display: block;
  font-size: 14.5px;
  color: var(--text-primary);
}

.game-tab-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

.game-tab-thumb {
  width: 72px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  flex-shrink: 0;
}

.game-tab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 詳細パネル */
.game-detail-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  align-items: center;
}

.detail-preview-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.preview-visual {
  height: 230px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: #dce7f5;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(20, 34, 52, 0.78) 0%, rgba(20, 34, 52, 0.1) 55%, transparent 100%);
  color: #ffffff;
}

.preview-tag {
  align-self: flex-start;
  margin-bottom: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-blue);
}

.preview-overlay strong {
  font-size: 18px;
}

.preview-overlay small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.detail-title {
  margin: 0 0 4px;
  font-size: 23px;
  color: var(--text-primary);
}

.detail-genre {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
}

.detail-description {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meta-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}

.meta-value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 0 8px;
}

.thumb-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
}

.thumb-dots {
  display: flex;
  gap: 8px;
}

.thumb-pill {
  width: 52px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--border-soft);
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.thumb-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-pill.is-active {
  border-color: var(--accent-blue);
}

.detail-related {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
}

.related-label {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.related-card {
  background: #f6f8fb;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.related-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  object-position: top center;
}

.related-card span {
  display: block;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Contact & フッター */
.contact-section {
  padding: 12px;
}

.contact-card {
  background: var(--bg-hero);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-card .section-text {
  margin-bottom: 0;
  max-width: 600px;
}

.site-footer {
  margin-top: 36px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-section,
  .workflow-grid,
  .games-layout,
  .detail-top,
  .contact-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

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