/* ===========================================
   作品集 - アレンジ版トップページ
   コンセプト: タイポグラフィ主役 / 非対称レイアウト / ダーク×差し色
=========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #101012;
  --bg-soft: #17171a;
  --accent: #c9f407;
  --text: #f4f4ef;
  --text-muted: #8b8c88;
  --line: rgba(244, 244, 239, 0.14);
}

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  overflow-x: hidden;
}

/* ---------- ステージ全体 ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vw 7vw 6vw;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 244, 7, 0.14), transparent 45%),
    var(--bg);
}

/* ---------- 装飾図形 ---------- */
.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  display: block;
}

.shape-ring {
  width: 340px;
  height: 340px;
  right: 6%;
  top: 8%;
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.shape-square {
  width: 120px;
  height: 120px;
  right: 16%;
  top: 46%;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  transform: rotate(18deg);
}

.shape-dot {
  width: 16px;
  height: 16px;
  right: 10%;
  top: 42%;
  background: var(--accent);
  border-radius: 50%;
}

.shape-line {
  width: 1.5px;
  height: 220px;
  right: 22%;
  bottom: 6%;
  background: linear-gradient(to bottom, transparent, var(--line) 40%, transparent);
}

/* ---------- ヒーロー(タイトル) ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 420px;
}

/* ---------- ナビゲーション ---------- */
.menu {
  position: relative;
  z-index: 1;
  margin-top: 9vh;
  border-top: 1px solid var(--line);
}

.main-nav {
  list-style: none;
}

.main-nav li {
  border-bottom: 1px solid var(--line);
}

.main-nav li a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.25s, padding-left 0.25s;
  position: relative;
}

.main-nav li a .num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.25s;
}

.main-nav li a::after {
  content: "→";
  margin-left: auto;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
  color: var(--accent);
}

.main-nav li a:hover {
  color: var(--accent);
  padding-left: 14px;
}

.main-nav li a:hover .num {
  color: var(--accent);
}

.main-nav li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- 右上の大きなインデックス数字(装飾) ---------- */
.hero-index {
  position: absolute;
  top: 6vw;
  right: 7vw;
  z-index: 1;
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  line-height: 1;
  user-select: none;
}

/* ---------- スクロールでフェードイン ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.is-show {
  opacity: 1;
  transform: translateY(0);
}

.menu.fade-in {
  transition-delay: 0.15s;
}

/* ---------- フッター ---------- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 34px 0 44px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--bg);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .stage {
    padding: 22vw 7vw 12vw;
  }
  .hero-index {
    top: 6vw;
    right: 6vw;
    font-size: 56px;
  }
  .shape-ring { width: 200px; height: 200px; }
  .shape-square { width: 80px; height: 80px; }
}
