:root {
  --bg: #05060a;
  --bg-soft: #0a0d16;
  --cyan: #00e5ff;
  --violet: #7c5cff;
  --text: #eaf2ff;
  --dim: rgba(210, 226, 255, 0.62);
  --dim2: rgba(210, 226, 255, 0.4);
  --line: rgba(120, 170, 255, 0.16);
  --glass: rgba(16, 22, 38, 0.55);

  --c-war-a: #22e59a;
  --c-war-b: #ff3d5a;
  --c-voyage: #6ea8ff;
  --c-orbit: #ffb14a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", "Noto Sans JP", system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 78%);
  opacity: 0.55;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50vw 50vw at 12% -8%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(55vw 55vw at 105% 15%, rgba(124, 92, 255, 0.14), transparent 60%);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  padding: 28px 0 8px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand .mark {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .sub {
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--dim2);
}
.site-header nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.site-header nav a:hover { color: var(--cyan); }

/* ===== ヒーロー ===== */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero .eyebrow {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}
.hero h1 {
  margin-top: 18px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  margin: 20px auto 0;
  max-width: 640px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.9;
}

/* ===== セクション見出し ===== */
.section-label {
  margin: 8px 4px 18px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--dim2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: 0 0 auto;
}
.section-label::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ===== 作品カード(トップ) ===== */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-bottom: 60px;
}
.work-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--card-glow, var(--cyan));
}
.work-card .thumb {
  aspect-ratio: 16/8.4;
  overflow: hidden;
  position: relative;
}
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,6,10,0.92) 100%);
}
.work-card .body { padding: 22px 24px 26px; }
.work-card .tag {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-glow, var(--line));
  color: var(--card-glow, var(--cyan));
  margin-bottom: 12px;
}
.work-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.work-card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.75;
}
.work-card .cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--card-glow, var(--cyan));
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.05em;
}
.work-card.war { --card-glow: var(--c-war-a); }
.work-card.voyage { --card-glow: var(--c-voyage); }
.work-card.orbit { --card-glow: var(--c-orbit); }

@media (min-width: 760px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 詳細ページ ===== */
.detail-hero {
  padding: 40px 0 0;
}
.breadcrumb {
  font-size: 12px;
  color: var(--dim2);
  margin-bottom: 18px;
}
.breadcrumb a { text-decoration: none; color: var(--dim2); }
.breadcrumb a:hover { color: var(--cyan); }

.detail-hero .tag {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--page-accent, var(--cyan));
  color: var(--page-accent, var(--cyan));
  margin-bottom: 16px;
}
.detail-hero h1 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.45;
}
.detail-hero .lead {
  margin-top: 14px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.9;
  max-width: 700px;
}

.hero-shot {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hero-shot img { width: 100%; }

.cta-row {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--page-accent, var(--cyan)), var(--violet));
  color: #05060a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--page-accent, var(--cyan)); color: var(--text); }

.detail-body {
  padding: 56px 0 40px;
  display: grid;
  gap: 40px;
}
.detail-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-body h2::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--page-accent, var(--cyan));
  box-shadow: 0 0 8px var(--page-accent, var(--cyan));
}
.detail-body p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.95;
}
.detail-body p + p { margin-top: 12px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.fact-grid .fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--glass);
}
.fact-grid .fact .num {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  color: var(--page-accent, var(--cyan));
}
.fact-grid .fact .label {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--dim2);
}
@media (min-width: 640px) {
  .fact-grid { grid-template-columns: repeat(4, 1fr); }
}

.other-works {
  padding: 10px 0 64px;
}
.other-works .mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .other-works .mini-grid { grid-template-columns: repeat(2, 1fr); }
}
.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.mini-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.mini-card img {
  width: 68px; height: 68px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
}
.mini-card .title { font-size: 14px; font-weight: 700; }
.mini-card .desc { margin-top: 3px; font-size: 12px; color: var(--dim2); line-height: 1.5; }

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
}
.site-footer p {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--dim2);
}
.site-footer a { text-decoration: none; color: var(--dim2); }
.site-footer a:hover { color: var(--cyan); }
