@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Inter:wght@200;300;400;500&family=JetBrains+Mono:wght@300;400&family=Noto+Serif+JP:wght@300;400&display=swap');

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

:root {
  --ink: #e8edf5;
  --ink-dim: #8ba0c0;
  --accent: #a8d0ff;
}

html, body { height: 100%; }
body {
  background: #050810;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

.scroll-driver {
  height: 850vh;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 文字の下だけに柔らかいぼかし（疑似要素 + マスクで四角にならない） */
.logo,
nav {
  position: relative;
  isolation: isolate;
}
.logo::before,
nav::before {
  content: '';
  position: absolute;
  inset: -20px -40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.45) 20%,
    rgba(0,0,0,0.2) 55%,
    rgba(0,0,0,0) 85%
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.logo {
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
  line-height: 1.2;
}
.logo-en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.logo-jp {
  display: block;
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin-top: 2px;
}
nav {
  display: flex;
  gap: 24px;
}
nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  opacity: 0.8; transition: opacity 0.3s;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}
nav a:hover { opacity: 1; }

/* ───── ヒーロー ───── */
.hero {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 50;
  pointer-events: none;
  padding: 0 20px;
  transition: opacity 0.6s ease;
}
.hero.hidden { opacity: 0; }

/* Closing（終端） */
.closing {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 55;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.closing.visible {
  opacity: 1;
  pointer-events: auto;
}
/* Closing内のタイトルはアニメーションなしで即表示、文字は黒系に */
.closing .hero-eyebrow {
  opacity: 1;
  animation: none;
  color: #555 !important;
  font-size: 20px !important;
  letter-spacing: 0.3em !important;
  margin-bottom: 32px !important;
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 6px 0;
}
.closing .hero-eyebrow::before {
  content: '';
  position: absolute;
  inset: -18px -50px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.55) 20%,
    rgba(255,255,255,0.3) 55%,
    rgba(255,255,255,0) 85%
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.closing .hero-title {
  opacity: 1;
  animation: none;
  color: #1a1a1a;
}
.closing .hero-title .glitch {
  color: #1a1a1a;
}
.closing .hero-sub {
  opacity: 1;
  animation: none;
}
.closing-msg {
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-size: 24px !important;
  font-weight: 300 !important;
  line-height: 2.2 !important;
  color: #333 !important;
  margin-top: 32px !important;
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 8px 0;
}
.closing-msg::before {
  content: '';
  position: absolute;
  inset: -20px -60px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.55) 20%,
    rgba(255,255,255,0.3) 55%,
    rgba(255,255,255,0) 85%
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
.contact-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  border: 1px solid rgba(26,26,26,0.5);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.3);
}
.contact-btn:hover {
  background: rgba(26,26,26,0.9);
  border-color: #1a1a1a;
  color: #fff;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 1.2s 0.5s ease forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 15vw, 220px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  animation: fadeIn 1.5s 0.8s ease forwards;
}
/* ── lbebber 風グリッチエフェクト ── */
.hero-title .glitch {
  position: relative;
  display: inline-block;
  color: #fff;
  animation: glitch-skew 8s infinite steps(1);
}
.hero-title .glitch .dot {
  font-size: 0.45em;
  letter-spacing: normal;
  margin: 0 -0.15em;
  vertical-align: middle;
  display: inline-block;
}
.hero-title .glitch::before,
.hero-title .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
}
.hero-title .glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff2a6d;
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim-1 8s infinite steps(1);
}
.hero-title .glitch::after {
  left: -2px;
  text-shadow: -2px 0 #05d9e8, 2px 2px #ff2a6d;
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim-2 7.5s infinite steps(1);
}

/* 長めの "静寂" と 短い "グリッチ発作" を繰り返す */
@keyframes glitch-anim-1 {
  0%, 12%   { clip: rect(0, 0, 0, 0); }
  13%       { clip: rect(18px, 9999px, 45px, 0); }
  14%       { clip: rect(82px, 9999px, 110px, 0); }
  15%, 40%  { clip: rect(0, 0, 0, 0); }
  41%       { clip: rect(55px, 9999px, 72px, 0); }
  42%       { clip: rect(10px, 9999px, 24px, 0); }
  43%, 68%  { clip: rect(0, 0, 0, 0); }
  69%       { clip: rect(95px, 9999px, 120px, 0); }
  70%       { clip: rect(30px, 9999px, 48px, 0); }
  71%, 92%  { clip: rect(0, 0, 0, 0); }
  93%       { clip: rect(60px, 9999px, 80px, 0); }
  94%       { clip: rect(5px, 9999px, 18px, 0); }
  95%, 100% { clip: rect(0, 0, 0, 0); }
}
@keyframes glitch-anim-2 {
  0%, 18%   { clip: rect(0, 0, 0, 0); }
  19%       { clip: rect(70px, 9999px, 95px, 0); }
  20%       { clip: rect(25px, 9999px, 40px, 0); }
  21%, 48%  { clip: rect(0, 0, 0, 0); }
  49%       { clip: rect(110px, 9999px, 128px, 0); }
  50%       { clip: rect(42px, 9999px, 55px, 0); }
  51%, 76%  { clip: rect(0, 0, 0, 0); }
  77%       { clip: rect(20px, 9999px, 38px, 0); }
  78%       { clip: rect(85px, 9999px, 100px, 0); }
  79%, 100% { clip: rect(0, 0, 0, 0); }
}
/* 本体のスキューも発作時のみ */
@keyframes glitch-skew {
  0%, 12%   { transform: skew(0deg); }
  13%       { transform: skew(1deg); }
  14%       { transform: skew(-0.5deg); }
  15%, 40%  { transform: skew(0deg); }
  41%       { transform: skew(-1deg); }
  42%       { transform: skew(0.4deg); }
  43%, 68%  { transform: skew(0deg); }
  69%       { transform: skew(0.8deg); }
  70%       { transform: skew(-0.3deg); }
  71%, 92%  { transform: skew(0deg); }
  93%       { transform: skew(-0.7deg); }
  94%       { transform: skew(0.3deg); }
  95%, 100% { transform: skew(0deg); }
}
.hero-sub {
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-top: 28px;
  max-width: 640px;
  line-height: 2.0;
  opacity: 0;
  animation: fadeIn 1.2s 1.2s ease forwards;
}
.scroll-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
}
.scroll-hint span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--ink-dim), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ───── セクションラベル ───── */
.section-label {
  position: fixed;
  top: 40%;
  right: 80px;
  z-index: 60;
  text-align: right;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  mix-blend-mode: difference;
}
.section-label.visible {
  opacity: 1;
  transform: translateX(0);
}
.section-label .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  letter-spacing: 0.3em;
  color: #fff;
  opacity: 0.6;
  margin-bottom: 16px;
}
.section-label .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 112px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
}

/* ───── プロジェクト情報 ───── */
.project-info {
  position: fixed;
  left: 40px;
  bottom: 80px;
  z-index: 60;
  max-width: 640px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.project-info.visible { opacity: 1; }
.project-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 12px;
}
.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.project-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.project-desc {
  font-size: 34px;
  font-weight: 300;
  color: var(--ink-dim);
  line-height: 1.8;
}

/* ───── プログレスバー（下） ───── */
.progress-bar {
  position: fixed;
  bottom: 20px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 60;
}
/* フッター全面に広がる黒ぼかし背景（視認性確保） */
.progress-bar::after {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 30%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.progress-bar-fill {
  height: 100%;
  background: #e8b94a;
  box-shadow: 0 0 6px rgba(232, 185, 74, 0.55);
  width: 0%;
  transition: width 0.1s linear;
}
.progress-chapters {
  position: absolute;
  inset: 0;
  display: flex;
}
.chapter {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.chapter:last-child { border: none; }
.chapter span {
  position: absolute;
  top: -26px;
  left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 185, 74, 0.75);
}

/* ══════ クレジットロール ══════ */
.credits {
  position: relative;
  z-index: 20;
  max-width: 720px;
  margin: 0 auto;
  padding: 110vh 40px 15vh;
  color: #fff;
  pointer-events: auto;
  text-shadow: 0 0 14px rgba(0,0,0,0.6);
  transition: opacity 0.6s ease;
}

/* Closing 表示中は Credits（本文）をフェードアウトして重なりを防ぐ */
.closing.visible ~ .scroll-driver .credits {
  opacity: 0;
  pointer-events: none;
}

.credit-section {
  margin: 22vh 0;
  text-align: center;
}

.credit-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 70px;
}

/* 役職: 名前（映画クレジットの基本形） */
.credit-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: baseline;
  gap: 0;
  margin-bottom: 32px;
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
}
.credit-row .role {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  padding-right: 20px;
}
.credit-row .sep {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}
.credit-row .name {
  text-align: left;
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  padding-left: 20px;
}
.credit-row .name.small {
  font-size: 20px;
}

/* 大きな見出し行（自己紹介など） */
.credit-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
  margin: 30px 0 40px;
  color: #fff;
}
.credit-prose {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 2.2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

/* Works セクション下部の注記（左寄せ・ブロックは中央配置） */
.works-note {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-align: left;
  line-height: 1.9;
  margin: 64px auto 0;
  max-width: 560px;
}

/* Works セクション末尾の補足情報（企業参画プロジェクトでの経験領域） */
.works-extra {
  max-width: 560px;
  margin: 48px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.works-extra-lead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-bottom: 28px;
}
.exp-block {
  margin-bottom: 24px;
  text-align: left;
}
.exp-block:last-child { margin-bottom: 0; }
.exp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.exp-items {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
}

/* 実績エントリ（左揃え・各エントリの左端を揃える） */
.work-entry {
  margin: 56px 0;
  text-align: center;
}
.work-entry .work-info {
  display: inline-block;
  text-align: left;
  width: 100%;
  max-width: 640px;
}
.work-entry .work-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 8px;
}
.work-entry .work-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.work-entry .work-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
}
.work-entry .work-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  line-height: 1.7;
}
.work-entry .work-link {
  display: inline-block;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.work-entry .work-link:hover {
  color: #fff;
  border-color: #fff;
}

/* Career セクション（中央配置・左揃え） */
.career-section { text-align: center; }
.career-body {
  display: inline-block;
  text-align: left;
}
.career-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
}
.career-row .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  min-width: 56px;
}
.career-row .sep {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}
.career-row .name {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
}

/* ════════════ テキストスクランブル（SEO対応版） ════════════ */
/* scramble-real は常にDOMに存在しレイアウトも保持。視覚的には opacity:0 で隠す */
/* scramble-ghost は absolute で同じ位置にオーバーレイし、視覚的なスクランブルを表現 */
/* → display:none を使わないことで Google のインデックス評価を保つ */
.scramble {
  position: relative;
}
/* インラインspanに付いた場合は inline-block 化して absolute の基準を確実にする */
span.scramble {
  display: inline-block;
  max-width: 100%;
}
.scramble:not(.scramble-done) .scramble-real {
  opacity: 0;
}
.scramble .scramble-ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: inherit;
  color: inherit;
}
.scramble.scramble-done .scramble-ghost {
  display: none;
}

/* スクランブル中のダミー文字（ゴールド） */
.scramble-dud {
  color: #e8b94a;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(232, 185, 74, 0.45);
}

/* About セクション（タイトルは中央・内容は左寄せ） */
.about-section {
  text-align: center;
}
.about-section .credit-section-title {
  text-align: center;
}
.about-body {
  display: inline-block;
  text-align: left;
}
.about-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.about-person {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.about-person-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.about-bio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 26px;
}
.about-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  line-height: 1.4;
}
.about-services {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}


/* Skills（カテゴリ付きアイコングリッド） */
.skill-category {
  max-width: 720px;
  margin: 0 auto 48px;
}
.skill-cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 22px 14px;
  max-width: 720px;
  margin: 0 auto;
}
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.skill img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  opacity: 0.95;
}
.skill .name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
}


/* ───── カーソル ───── */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%,-50%);
}
.cursor {
  width: 24px; height: 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }

  header { padding: 14px 18px; }
  nav { gap: 14px; }
  nav a { font-size: 10px; letter-spacing: 0.15em; }
  .logo-en { font-size: 22px; letter-spacing: 0.04em; }
  .logo-jp { font-size: 9px; letter-spacing: 0.15em; }

  /* Hero */
  .hero-eyebrow { font-size: 13px !important; letter-spacing: 0.2em !important; margin-bottom: 20px !important; }
  .hero-title { font-size: clamp(56px, 18vw, 110px) !important; }
  .hero-sub {
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin-top: 52px !important;
    padding: 10px 18px !important;
    color: #1a1a1a !important;
    position: relative;
    isolation: isolate;
    display: inline-block;
  }
  .hero-sub::before {
    content: '';
    position: absolute;
    inset: -14px -40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.6) 20%,
      rgba(255,255,255,0.3) 55%,
      rgba(255,255,255,0) 85%
    );
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    z-index: -1;
    pointer-events: none;
  }
  .scroll-hint { bottom: 110px; }

  /* Closing */
  .closing .hero-eyebrow { font-size: 13px !important; margin-bottom: 18px !important; }
  .closing-msg { font-size: 15px !important; line-height: 1.9 !important; margin-top: 20px !important; padding: 6px 12px !important; }
  .contact-btn { font-size: 11px; padding: 12px 28px; margin-top: 24px; }

  /* クレジット */
  .credits { padding: 100vh 20px 100vh; max-width: 100%; }

  /* スマホはコンテンツが縦に長くなるため scroll-driver を伸ばして重なりを防ぐ */
  .scroll-driver { height: 1150vh; }
  .credit-section { margin: 14vh 0; }
  .credit-section-title { font-size: 20px; letter-spacing: 0.3em; margin-bottom: 40px; }

  /* About */
  .about-body { text-align: left; }
  .about-role { font-size: 14px; letter-spacing: 0.22em; margin-bottom: 12px; }
  .about-person { font-size: 26px; margin-bottom: 2px; }
  .about-person-en { font-size: 14px; margin-bottom: 10px; }
  .about-bio { font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
  .about-name { font-size: 26px; margin-bottom: 8px; }
  .about-services { font-size: 14px; }

  /* Career（スマホ：文字サイズ縮小） */
  .career-row {
    gap: 10px;
    margin-bottom: 14px;
  }
  .career-row .role { font-size: 12px; min-width: 46px; }
  .career-row .sep { font-size: 11px; }
  .career-row .name { font-size: 16px; }

  /* Works / Lead / Prose */
  .credit-lead { font-size: 22px; line-height: 1.5; }
  .credit-prose { font-size: 13px; line-height: 1.9; }
  .work-entry { margin: 36px 0; padding: 0 20px; }
  .work-entry .work-info { text-align: left; }
  .work-entry .work-title { font-size: 20px; }
  .work-entry .work-cat { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 10px; }
  .work-entry .work-desc { font-size: 12px; line-height: 1.8; }
  .work-entry .work-link { font-size: 10px; margin-top: 10px; }

  /* Skills */
  .skill-category { margin-bottom: 36px; }
  .skill-cat-label { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 14px; }
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 8px;
  }
  .skill img { width: 32px; height: 32px; object-fit: contain; }
  .skill .name { font-size: 9px; letter-spacing: 0.05em; }

  /* Experience（スマホ） */
  .exp-block { margin-bottom: 28px; }
  .exp-label { font-size: 10px; letter-spacing: 0.22em; min-width: 180px; margin-bottom: 10px; }
  .exp-items { font-size: 13px; line-height: 1.85; }

  /* プログレスバー（スマホ：位置とサイズ調整） */
  .progress-bar {
    left: 16px; right: 16px; bottom: 20px;
  }
  .chapter span { font-size: 9px; top: -20px; letter-spacing: 0.1em; }
  .end-section { padding: 12px 20px; font-size: 9px; }

  /* スマホはぼかしを少し小さめに */
  .progress-bar::after {
    height: 90px;
  }
}

@media (max-width: 420px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}
