@charset "UTF-8";
/* ============================================================
   KEISUKE TAIRA — Portfolio 本番スタイル
   承認済みプロトタイプ design-preview/index.html v3.3 を忠実移植。
   パーシャル分割方式(既存の style.scss が @import する構成を踏襲)。
   コンパイル: npx --yes sass css/scss/style.scss css/style.css --style=expanded --no-source-map
   ============================================================ */
/* ============================================================
   RESET — プロトタイプ v3.3「0. TOKENS & RESET」内のグローバルreset部分を転記。
   ※ プロトタイプは自己完結1ファイルで外部リセットに依存していないため、
     忠実移植のためここは軽量な素のリセットのみとする(destyle等は不使用)。
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-jp-body);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(163, 37, 44, 0.14);
}

/* 素のリセット */
/* ============================================================
   BASE — TOKENS(CSS変数)/ グローバルreset / 共通ヘルパー / REVEAL
   プロトタイプ v3.3 の「0. TOKENS & RESET」「1. REVEAL ANIMATION」を転記。
   CSS変数はそのまま使用(scss変数への書き換えはしない)。
   フォント/SKILLS/PHOTO の data-* バリアント切替はここ〜各パーシャルに実装。
   ============================================================ */
:root {
  --bg:#FBFBF9;
  --pure:#FFFFFF;
  --ink:#202020;
  --sub:#8E9AA4;
  --line:#E9E9E4;
  --accent:#A3252C;
  --tint:#F4F6F7;
  --ff-jp-head:"Zen Old Mincho", serif;
  --ff-jp-body:"Shippori Mincho", serif;
  --ff-label:"Inter", sans-serif;
  /* 見出し: 本命 FreightBig Pro Light(Adobe Fonts)。無料代替を data-font で切替
     A=Fraunces(最も近い/デフォルト) / B=Playfair Display / C=Bodoni Moda */
  --ff-en-head:"freight-big-pro","Fraunces",serif;
  --en-w-thin:300;
  --en-w-reg:400;
  --en-track:.03em;
  --en-varset:"opsz" 144;
  --ease:cubic-bezier(0.22,1,0.36,1);
  --gutter:clamp(20px,5vw,90px);
  --sec-pad:clamp(90px,16vw,220px);
}

html[data-font=b] {
  --ff-en-head:"freight-big-pro","Playfair Display",serif;
  --en-w-thin:500;
  --en-w-reg:500;
  --en-track:.02em;
  --en-varset:normal;
}

html[data-font=c] {
  --ff-en-head:"freight-big-pro","Bodoni Moda",serif;
  --en-w-thin:400;
  --en-w-reg:400;
  --en-track:.04em;
  --en-varset:"opsz" 96;
}

/* グローバル reset は _reset.scss に分離。ここではトークン/ヘルパー/共通挙動を定義 */
/* Shared helpers */
.en-head {
  font-family: var(--ff-en-head);
  font-weight: var(--en-w-thin);
  text-transform: uppercase;
  letter-spacing: var(--en-track);
  font-variation-settings: var(--en-varset);
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}

.label {
  font-family: var(--ff-label);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--sub);
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   REVEAL ANIMATION(共通)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-img {
  overflow: hidden;
}

.reveal-img img, .reveal-img .clip-inner {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.06);
  transition: clip-path 1.15s var(--ease), transform 1.4s var(--ease);
}

.reveal-img.is-in img, .reveal-img.is-in .clip-inner {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* ============================================================
   SECTION HEADING PATTERN(共通)
   ============================================================ */
.sec {
  padding-top: var(--sec-pad);
  padding-bottom: var(--sec-pad);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: clamp(26px, 3vw, 40px);
  margin-bottom: clamp(46px, 7vw, 90px);
}

.sec-head__en {
  font-size: clamp(44px, 6.5vw, 104px);
} /* セリフ体の字幅に合わせ微調整 */
.sec-head__lab {
  flex: none;
  text-align: right;
  padding-bottom: 0.4em;
}

/* 共通レスポンシブは _responsive.scss へ移動(コンポーネント定義より後に
   読み込まないと同詳細度の上書きが負けるため。style.scss の import 順参照) */
/* トークン(CSS変数)/ ヘルパー / reveal / sec-head */
/* ============================================================
   HEADER + モバイルナビ(ハンバーガー / navover オーバーレイ)
   プロトタイプ v3.3「2. HEADER」を転記。
   ============================================================ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100; /* navover(85)より上、intro(120)より下 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.hdr.is-scrolled {
  background: rgba(251, 251, 249, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.hdr__logo {
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.24em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--ink);
}

.hdr__nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 42px);
}

.hdr__nav a {
  font-family: var(--ff-label);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.hdr__nav a:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.hdr__burger {
  display: none;
  width: 26px;
  height: 16px;
  position: relative;
  z-index: 90;
}

.hdr__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.hdr__burger span:nth-child(1) {
  top: 0;
}

.hdr__burger span:nth-child(2) {
  top: 7px;
}

.hdr__burger span:nth-child(3) {
  top: 14px;
}

body.menu-open .hdr__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .hdr__burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hdr__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.navover {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--pure);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vh, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

body.menu-open .navover {
  opacity: 1;
  pointer-events: auto;
}

.navover a {
  font-family: var(--ff-en-head);
  font-weight: var(--en-w-reg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(30px, 9vw, 46px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

body.menu-open .navover a {
  opacity: 1;
  transform: none;
}

.navover a:nth-child(1) {
  transition-delay: 0.1s;
}

.navover a:nth-child(2) {
  transition-delay: 0.16s;
}

.navover a:nth-child(3) {
  transition-delay: 0.22s;
}

.navover a:nth-child(4) {
  transition-delay: 0.28s;
}

.navover a:nth-child(5) {
  transition-delay: 0.34s;
}

@media (max-width: 820px) {
  .hdr__nav {
    display: none;
  }
  .hdr__burger {
    display: block;
  }
}
/* ヘッダー + モバイルナビ */
/* ============================================================
   INTRO — 幕(初回のみ)/ 文字字送り収縮+blur / 罫線scaleX / 深紅正方形ポップ
   プロトタイプ v3.3「3. INTRO」を転記。
   シーケンス: 文字が字送り収縮+blurで順次出現 → 罫線が中央からscaleX
   → 右端に深紅正方形ポップ → 0.3s静止 → 幕opacityフェード(計約1.8s)
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--pure);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.intro.is-hidden {
  opacity: 0;
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.intro__t {
  font-family: var(--ff-en-head);
  font-weight: var(--en-w-thin);
  font-variation-settings: var(--en-varset);
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0.34em;
  animation: introTrack 1.3s var(--ease) forwards; /* .34em → .14em 収縮 */
}

@keyframes introTrack {
  to {
    letter-spacing: 0.14em;
  }
}
.intro__t i {
  font-style: normal;
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(4px);
  animation: introChar 0.55s var(--ease) forwards;
  animation-delay: var(--d); /* 1文字ずつ 0.03s差 */
}

@keyframes introChar {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
.intro__rule {
  position: relative;
  width: min(300px, 56vw);
  height: 1px;
  background: var(--ink);
  opacity: 0.5;
  transform: scaleX(0); /* 中央から */
  animation: introRule 0.45s var(--ease) 0.6s forwards;
}

@keyframes introRule {
  to {
    transform: scaleX(1);
  }
}
.intro__sq {
  position: absolute;
  right: -2px;
  top: 50%;
  margin-top: -2px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: scale(0);
  animation: introSq 0.25s var(--ease) 1.05s forwards;
}

@keyframes introSq {
  to {
    transform: scale(1);
  }
}
/* イントロ幕 */
/* ============================================================
   HERO(MV)— becky36式: 縦2トーン分割背景 + 右ブリード写真 + 横断ロゴタイプ
   プロトタイプ v3.3「4. HERO」を転記。
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
  padding: clamp(110px, 14vh, 170px) 0 clamp(60px, 10vh, 110px);
  overflow: hidden;
}

/* 背景の縦2トーン分割: 左38% 白系 / 右62% 淡ブルーグレー */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  right: 0;
  background: #EEF3F5;
}

.hero__stage {
  position: relative;
  width: 100%;
  min-height: 72vh;
}

/* クロップ比率の混在(縦長2/3・横長3/2・縦長3/4)で動きを出す */
.hero__main {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 6%; /* 右端ブリード+フォールド下まで */
  width: 46%;
  max-width: 640px;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.hero__sub {
  position: absolute;
  overflow: hidden;
}

.hero__sub--1 {
  z-index: 2;
  left: 10%;
  top: 56%;
  width: 20%;
  aspect-ratio: 3/4;
} /* 縦長 */
.hero__sub--2 {
  z-index: 1;
  left: 6%;
  top: 10%;
  width: 26%;
  aspect-ratio: 3/2;
} /* 横長(左上の余白解消) */
.hero__ph {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.hero__ph.is-ready {
  opacity: 1;
  transform: none;
}

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

/* Hero logotype — mix-blend-mode:difference(becky36手法)
   白地上では濃色、写真上は自動反転。blendを効かせるため名前自身が
   z-indexを持ち、祖先(.hero__stage/.hero)は stacking context を作らない */
.hero__eyebrow {
  position: absolute;
  z-index: 6;
  left: 8%;
  top: 60%;
  transform: translateY(calc(-100% - 14px)); /* 名前の左上に配置 */
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  pointer-events: none;
  width: fit-content;
  padding: 5px 10px 5px 8px; /* 写真上の可読性確保用の薄いスクリム */
  background: rgba(251, 251, 249, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
}

.hero__eyebrow::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex: none;
}

.hero__name {
  position: absolute;
  z-index: 5;
  left: 8%;
  top: 58%;
  pointer-events: none;
  font-size: clamp(56px, 8.5vw, 128px);
  white-space: nowrap; /* becky36並みの大きさ */
  color: #FBFBF9;
  mix-blend-mode: difference;
}

.hero__scroll {
  position: absolute;
  z-index: 6;
  left: clamp(16px, 2.5vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__scroll span {
  writing-mode: vertical-rl;
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--sub);
}

.hero__scroll i {
  width: 1px;
  height: 64px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(250%);
  }
}
/* SP hero (<760px): 分割背景は維持、縦長メイン1枚+blend名前が写真に重なる */
@media (max-width: 759px) {
  .hero__stage {
    min-height: 78vh;
  }
  .hero__main {
    width: 86%;
    right: 0;
    top: 6%;
  } /* aspect 2/3 → 高さ約58-62vh */
  .hero__sub--1 {
    display: none;
  }
  .hero__sub--2 {
    display: none;
  }
  .hero__eyebrow {
    left: 6%;
    top: 56%;
  }
  .hero__name {
    left: 6%;
    top: 56%;
    font-size: clamp(44px, 12vw, 68px);
    white-space: normal;
    max-width: 88%;
  }
  .hero__scroll {
    display: none;
  }
}
/* HERO */
/* ============================================================
   ABOUT (01)
   プロトタイプ v3.3「6. ABOUT」を転記。
   ============================================================ */
.about {
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.about__figwrap {
  position: relative;
}

.about__fig {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(32, 32, 32, 0.1);
}

.about__fig .clip-inner {
  position: absolute;
  inset: 0;
}

.about__fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

.about__figcap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.about__figcap i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex: none;
}

.about__jp {
  font-family: var(--ff-jp-head);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  margin: 0;
}

.about__en {
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sub);
  margin: 14px 0 clamp(26px, 4vw, 44px);
}

.about__bio p {
  font-family: var(--ff-jp-body);
  font-weight: 400;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.95;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0 0 1.5em;
}

.about__bio p:last-child {
  margin-bottom: 0;
}

.about__bio.reveal p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.about__bio.reveal.is-in p {
  opacity: 1;
  transform: none;
}

.about__bio.reveal.is-in p:nth-child(1) {
  transition-delay: 0.05s;
}

.about__bio.reveal.is-in p:nth-child(2) {
  transition-delay: 0.15s;
}

.about__bio.reveal.is-in p:nth-child(3) {
  transition-delay: 0.25s;
}

.about__bio.reveal.is-in p:nth-child(4) {
  transition-delay: 0.35s;
}

/* ABOUT (01) */
/* ============================================================
   SKILLS (02) — BARS(確定)+ RADAR + RINGS の全形状を実装。
   data-skills(radar/bars/rings)で表示切替。プロトタイプ v3.3「7. SKILLS」を転記。
   ============================================================ */
.skills {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.skillcard {
  background: var(--pure);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 42px) clamp(20px, 3vw, 40px) clamp(30px, 4vw, 48px);
  box-shadow: 0 10px 34px rgba(32, 32, 32, 0.03);
}

.skillcard__hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(14px, 2vw, 26px);
}

.skillcard__jp {
  font-family: var(--ff-jp-head);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
}

.skillcard__en {
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--sub);
}

.skillcard svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.radar-axis {
  stroke: var(--line);
  stroke-width: 1;
}

/* transform-box:fill-box + origin中央 → SVG左上原点でなく必ず中央から展開 */
.radar-poly {
  fill: rgba(163, 37, 44, 0.06);
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  transform: scale(0.85);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.skillcard.is-in .radar-poly {
  opacity: 1;
  transform: scale(1);
}

.radar-dot {
  fill: var(--accent);
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.skillcard.is-in .radar-dot {
  opacity: 1;
  transform: scale(1);
}

.radar-lab {
  font-family: var(--ff-jp-body);
  font-weight: 500;
  font-size: 12px;
  fill: var(--ink);
}

.radar-val {
  font-family: var(--ff-label);
  font-weight: 400;
  font-size: 9px;
  fill: var(--sub);
  letter-spacing: 0.1em;
}

/* --- SKILLS 形状バリエーション切替(data-skills: radar/bars/rings) --- */
html[data-skills=radar] .sk-bars, html[data-skills=radar] .sk-rings {
  display: none;
}

html[data-skills=bars] .sk-radar, html[data-skills=bars] .sk-rings {
  display: none;
}

html[data-skills=rings] .sk-radar, html[data-skills=rings] .sk-bars {
  display: none;
}

/* BARS — 横棒の静かなインフォグラフィック */
.sk-bars {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
  padding: 14px 2px 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bar-row__jp {
  font-family: var(--ff-jp-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  width: 5em;
  flex: none;
}

.bar-row__track {
  flex: 1;
  position: relative;
  height: 2px;
  background: var(--line);
}

.bar-row__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}

.skillcard.is-in .bar-row__fill {
  transform: scaleX(var(--v));
}

.bar-row__val {
  font-family: var(--ff-label);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: var(--sub);
  width: 2.6em;
  text-align: right;
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* RINGS — 円形プログレス */
.sk-rings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 26px) clamp(12px, 1.8vw, 20px);
  padding: 14px 0 6px;
}

.ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ring__c {
  position: relative;
  width: 68px;
  height: 68px;
  display: block;
}

.ring__c svg {
  width: 68px;
  height: 68px;
  display: block;
  overflow: visible;
}

.ring__track {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.ring__prog {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center; /* 12時開始 */
}

.ring__val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-label);
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ring__jp {
  font-family: var(--ff-jp-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* SKILLS (02) BARS/RADAR/RINGS */
/* ============================================================
   MOVIE (03) — feature + 2カラム(YouTube 埋め込み)
   プロトタイプ v3.3「8. MOVIE」を転記。
   ============================================================ */
.movie {
  background: var(--bg);
}

.movie__feature {
  max-width: min(880px, 100%);
  margin: 0 auto clamp(24px, 4vw, 56px);
}

.movie__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 880px;
  margin: 0 auto;
}

.vid {
  background: var(--pure);
  border: 1px solid var(--line);
  padding: clamp(12px, 1.4vw, 18px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.vid:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.vid__no {
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--sub);
  margin: 0 0 10px;
}

.vid__frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.vid__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 820px) {
  .movie__row {
    grid-template-columns: 1fr;
  }
}
/* MOVIE (03) */
/* ============================================================
   PHOTO (04) — GRID(masonry・確定)+ BAND + lightbox + VIEW バッジ
   data-photo(grid/band)で表示切替。プロトタイプ v3.3「9. PHOTO」を転記。
   ★変更点(ユーザー指示「ルーペカーソル非表示」): PHOTO アイテムの
     cursor:zoom-in を削除し通常カーソルに。クリック可能の合図は VIEW バッジが担う。
   ============================================================ */
.photo {
  background: var(--bg);
  overflow: hidden;
}

/* --- BAND layout --- */
.pband {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pband__row {
  overflow: hidden;
}

.pband__track {
  display: flex;
  gap: 6px;
  width: max-content;
  will-change: transform;
}

.pband__row--a .pband__track {
  animation: drift 60s linear infinite;
}

.pband__row--b .pband__track {
  animation: driftRev 75s linear infinite;
}

.pband:hover .pband__track {
  animation-play-state: paused;
}

.pband__track img {
  height: clamp(240px, 36vh, 440px);
  width: auto;
  flex: none;
  transition: filter 0.4s ease;
}

.pband__track img:hover {
  filter: brightness(0.78);
} /* BANDはimg直置きのためオーバーレイ代わりに減光で明示 */
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes driftRev {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
/* --- GRID (masonry) layout --- */
.pgrid {
  position: relative;
  width: 100%;
}

.pgrid__item {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.pgrid__item.is-in {
  opacity: 1;
}

.pgrid__item img {
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease);
}

/* ホバー: ズーム + 墨色オーバーレイでクリック可能を明示(VIEWバッジと併用) */
.pgrid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 32, 0.26);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.pgrid__item:hover img {
  transform: scale(1.05);
}

.pgrid__item:hover::after {
  opacity: 1;
}

/* Layout visibility toggle */
html[data-photo=band] .pgrid {
  display: none;
}

html[data-photo=grid] .pband {
  display: none;
}

/* --- VIEW バッジ(カーソル追従・pointer:fineのPCのみ / GRID・BAND共通) --- */
.vbadge {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  pointer-events: none;
  display: none;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .vbadge {
    display: block;
  }
}
.vbadge span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--ff-label);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.vbadge.is-on span {
  opacity: 1;
  transform: scale(1);
}

/* --- Lightbox --- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 251, 249, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.lb.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lb__img {
  max-width: 86vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(32, 32, 32, 0.12);
}

.lb__close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 30px;
  height: 30px;
}

.lb__close::before, .lb__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

.lb__close::before {
  transform: rotate(45deg);
}

.lb__close::after {
  transform: rotate(-45deg);
}

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  color: var(--ink);
  transition: color 0.3s ease;
}

.lb__nav:hover {
  color: var(--accent);
}

.lb__nav svg {
  width: 100%;
  height: 100%;
}

.lb__nav--prev {
  left: clamp(14px, 3vw, 44px);
}

.lb__nav--next {
  right: clamp(14px, 3vw, 44px);
}

.lb__count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--sub);
}

/* SP: 矢印が写真に被らないよう下部のカウンター両脇へ移動(スワイプ操作と併用) */
@media (max-width: 759px) {
  .lb__nav {
    top: auto;
    bottom: 16px;
    transform: none;
    width: 36px;
    height: 36px;
  }
  .lb__nav--prev {
    left: calc(50% - 96px);
  }
  .lb__nav--next {
    right: calc(50% - 96px);
  }
  .lb__img {
    max-width: 92vw;
    max-height: 74vh;
  }
}
/* PHOTO (04) GRID/BAND/lightbox/VIEW バッジ */
/* ============================================================
   SNS (05) + FOOTER
   プロトタイプ v3.3「10. SNS + FOOTER」を転記。
   ============================================================ */
.sns {
  background: var(--bg);
}

.sns__row {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 7vw, 90px);
  margin-top: clamp(24px, 4vw, 50px);
}

.sns__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sns__btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.sns__btn svg {
  width: 30px;
  height: 30px;
}

.sns__item:hover .sns__btn {
  background: var(--accent);
  color: var(--pure);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sns__handle {
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--sub);
}

.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(80px, 12vw, 160px);
  padding: clamp(28px, 4vw, 44px) 0;
  text-align: center;
}

.foot small {
  font-family: var(--ff-label);
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 10px;
  color: var(--sub);
}

/* SNS (05) + フッター */
/* ============================================================
   RESPONSIVE(共通ブレークポイント)
   ※ 必ずコンポーネント系パーシャルより後に import すること。
     同詳細度セレクタの上書きは後勝ちのため、_base 側に置くと
     .about__grid / .skills__grid 等の2カラム指定に負けて
     SPで縦積みにならないバグになる(2026-07-06 修正済み)。
   ============================================================ */
@media (max-width: 820px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 7vw, 48px);
  }
  .about__fig {
    max-width: 340px;
  }
  .skills__grid {
    grid-template-columns: 1fr;
  }
  .movie__row {
    grid-template-columns: 1fr;
  }
  .pband__track img {
    height: clamp(150px, 24vh, 220px);
  }
}
@media (min-width: 1600px) {
  .wrap {
    max-width: 1500px;
  }
}
/* 共通レスポンシブ(コンポーネントより後・必須) */
/* ============================================================
   QA / reduced-motion / anim=off
   プロトタイプ v3.3「13. reduced-motion / anim=off」を転記。
   ?anim=0 は html[data-anim="off"] を付与(QA・スクショ用)。
   ※ プロトタイプ専用の「11. PROTOTYPE PANEL」CSS は本番では意図的に除外。
     ただし data-* バリアント切替インフラ(font/skills/photo)は各パーシャルに残置。
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
  }
  .reveal, .reveal-img img, .reveal-img .clip-inner, .hero__ph, .pgrid__item {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .radar-poly {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  .radar-dot {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  .bar-row__fill, .ring__prog {
    transition: none !important;
  } /* 即最終値 */
}
html[data-anim=off] * {
  animation: none !important;
  transition: none !important;
}

html[data-anim=off] .reveal,
html[data-anim=off] .hero__ph,
html[data-anim=off] .pgrid__item,
html[data-anim=off] .about__bio.reveal p {
  opacity: 1 !important;
  transform: none !important;
}

html[data-anim=off] .reveal-img img,
html[data-anim=off] .reveal-img .clip-inner {
  clip-path: none !important;
  transform: none !important;
}

html[data-anim=off] .radar-poly,
html[data-anim=off] .radar-dot {
  opacity: 1 !important;
  transform: scale(1) !important;
}

html[data-anim=off] .ring__prog {
  transform: rotate(-90deg) !important;
}

html[data-anim=off] .hero {
  min-height: 900px !important;
  height: 900px !important;
}

html[data-anim=off] .hero__stage {
  min-height: 620px !important;
}

html[data-anim=off] .intro {
  display: none;
}

/* reduced-motion / anim=off(QA用) */
