/* =========================================================
   Chihiro Hiratsuka — Portfolio
   ========================================================= */

:root{
  --c-deep: #081124;
  --c-navy: #0A1E5E;
  --c-blue: #1E4FFF;
  --c-blue-soft: #6E8BFF;
  --c-aqua: #8FD3FF;
  --c-white: #FFFFFF;
  --c-mute: rgba(255,255,255,.62);
  --c-line: rgba(255,255,255,.10);

  --ff-en: "Space Grotesk","Montserrat",system-ui,sans-serif;
  --ff-en-alt: "Montserrat","Space Grotesk",system-ui,sans-serif;
  --ff-jp: "Zen Kaku Gothic New","Noto Sans JP",system-ui,sans-serif;
  --ff-jp-alt: "Noto Sans JP","Zen Kaku Gothic New",system-ui,sans-serif;

  --r-card: 18px;
  --shadow-blue: 0 12px 40px -12px rgba(30,79,255,.55);

  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

*,*::before,*::after{ box-sizing: border-box; }

html,body{
  margin:0; padding:0;
  background: var(--c-deep);
  color: var(--c-white);
  font-family: var(--ff-jp);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body{
  min-height: 100dvh;
  overflow-x: hidden;
}

img,svg,canvas{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
}
ul{ list-style:none; padding:0; margin:0; }

::selection{ background: var(--c-blue); color: var(--c-white); }

/* =========================================================
   GATE（ローディング＋合言葉）
   ========================================================= */
.gate{
  position: fixed; inset: 0;
  background: #f6f6f4 url("../assets/textures/bg-paper.png") repeat;
  background-size: 800px auto;
  z-index: 9999;
  display: grid; place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #0e0e1a;
}

/* === ページが開いたら飛んでくる図形 === */
.gate__shapes{
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.gate-shape{
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size); height: var(--size);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  will-change: transform, opacity;
}
.gate-shape--circle{ border-radius: 50%; }
.gate-shape--triangle{
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.gate-shape--square{
  border-radius: 6px;
}
.gate-shape[data-color="yellow"] { background: #FFD61E url("../assets/textures/bg-yellow.jpg")  center/cover; }
.gate-shape[data-color="purple"] { background: #B564FF url("../assets/textures/bg-purple.jpg")  center/cover; }
.gate-shape[data-color="green"]  { background: #4FCB7E url("../assets/textures/bg-green.jpg")   center/cover; }
.gate-shape[data-color="skyblue"]{ background: #BEE9F8 url("../assets/textures/bg-skyblue.png") center/cover; }
.gate-shape[data-color="pink"]   { background: #FF7BB3 url("../assets/textures/bg-pink.jpg")    center/cover; }
.gate-shape[data-color="blue"]   { background: #2EA3F0 url("../assets/textures/bg-blue.jpg")    center/cover; }

/* === センター UI === */
.gate__inner{
  position: relative;
  z-index: 3;
  width: min(420px, 88vw);
  text-align: center;
}
.gate__intro{
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 44px);
  letter-spacing: .28em;
  opacity: 0;
  margin: 0;
  color: #0e0e1a;
}
.gate__intro-text{
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid #0e0e1a;
}
.gate__form{
  margin-top: 30px;
  display: grid;
  gap: 22px;
  opacity: 0;
  transform: translateY(8px);
}
.gate__field{
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.gate__field input{
  width: 100%;
  background: #fff;
  border: 2.5px solid #0e0e1a;
  border-radius: 14px;
  color: #0e0e1a;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: .55em;
  text-align: center;
  padding: 16px 12px 14px 24px;   /* letter-spacing 分の左パディング */
  outline: none;
  box-shadow: 4px 4px 0 #0e0e1a;
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.gate__field input:focus{
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #0e0e1a;
}
.gate__field input::placeholder{
  color: rgba(14,14,26,.3);
  letter-spacing: .35em;
}
.gate__message{
  min-height: 1.6em;
  margin: 0;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(14,14,26,.6);
}
.gate__message.is-error{ color: #E94B3C; }
.gate__message.is-ok{ color: #4FCB7E; }

/* 猫顔シルエットの enter ボタン */
.gate__submit{
  justify-self: center;
  position: relative;
  width: clamp(120px, 14vw, 160px);
  aspect-ratio: 1/1;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .25s var(--ease-out);
}
.gate__submit:hover{ transform: translateY(-3px) rotate(-2deg); }
.gate__submit:active{ transform: scale(.96); }
.gate__submit-bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 5px 8px rgba(0,0,0,.25));
}
.gate__submit-label{
  position: relative;
  z-index: 1;
  font-family: var(--ff-en); font-weight: 800;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: .26em;
  color: #fff;
  margin-top: 12%;   /* 顔の中央に来るよう微調整 */
  pointer-events: none;
}

.gate__welcome{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: .12em;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  color: #0e0e1a;
}

.gate__flash{
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

/* === 下からのぞく猫（頭だけ） === */
.gate__peek{
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
  object-position: top center;       /* 画像の上端＝頭部だけを露出 */
  filter: drop-shadow(0 -4px 12px rgba(0,0,0,.18));
}
.gate__peek--left{                   /* タキシード猫：顔まで見える */
  left: clamp(2vw, 6vw, 10vw);
  width: clamp(200px, 24vw, 300px);
  height: clamp(170px, 22vh, 260px);
}
.gate__peek--right{                  /* 黒猫：顔まで見える */
  right: clamp(2vw, 6vw, 10vw);
  width: clamp(180px, 20vw, 260px);
  height: clamp(140px, 18vh, 210px);
}

/* シェイクアニメ（不正解時） */
.gate__field.is-shake input{
  animation: gateShake .4s var(--ease-in-out);
}
@keyframes gateShake {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-8px,0); }
  40%  { transform: translate(8px,0); }
  60%  { transform: translate(-5px,0); }
  80%  { transform: translate(5px,0); }
  100% { transform: translate(0,0); }
}

/* =========================================================
   SITE 共通
   ========================================================= */
.site{
  position: relative;
  background: #f4f4f4 url("../assets/textures/bg-white.jpg") repeat;
  background-size: 600px auto;
}

/* ===== セクションごとの背景色（テクスチャ）===== */
[data-bg]{
  background-repeat: repeat;
  background-size: 600px auto;
  color: #0e0e1a;
}
[data-bg="blue"]  { background-color: #2EA3F0; background-image: url("../assets/textures/bg-blue.jpg"); }
[data-bg="yellow"]{ background-color: #FFD61E; background-image: url("../assets/textures/bg-yellow.jpg"); }
[data-bg="green"] { background-color: #4FCB7E; background-image: url("../assets/textures/bg-green.jpg"); }
[data-bg="purple"]{ background-color: #B564FF; background-image: url("../assets/textures/bg-purple.jpg"); color: #fff; }
[data-bg="pink"]  { background-color: #FF7BB3; background-image: url("../assets/textures/bg-pink.jpg"); }
[data-bg="black"] { background-color: #000; color: #fff; }
[data-bg="skyblue"]{ background-color: #BEE9F8; background-image: url("../assets/textures/bg-skyblue.png"); background-size: 800px auto; }

/* セクション内のテキストカラー切替（明るい背景は暗色） */
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) .section__label,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) .section__title,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) p,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) h1,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) h2,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) h3,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) li,
[data-bg]:not([data-bg="purple"]):not([data-bg="black"]) a{
  color: #0e0e1a;
}

/* ===== 2カラムレイアウト（左 約42%, 右 約58%）===== */
.layout{
  display: grid;
  grid-template-columns: minmax(380px, 5fr) 7fr;
  align-items: start;
  min-height: 100dvh;
}
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
}

/* --- 左カラム / Sidebar --- */
.sidebar{
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: clamp(36px, 5vw, 72px) clamp(36px, 5vw, 80px);
  background: transparent; /* .site の白テクスチャを共有 */
  color: #0e0e1a;
  z-index: 5;
}
@media (max-width: 900px){
  .sidebar{
    position: relative;
    height: auto;
  }
}
.sidebar__inner{
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

/* 名刺カード（中央・左に傾き） */
.sidebar__card{
  position: relative;
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  perspective: 1200px;
  margin: 8px 0;
}
.sidebar__card-img{
  position: relative;
  display: block;
  width: clamp(220px, 26vw, 340px);
  height: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    18px 22px 40px rgba(0,0,0,.16),
    4px 6px 12px rgba(0,0,0,.08);
  transform: rotate(-8deg);
  transform-origin: center center;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
  z-index: 1;
}
.sidebar__card-shadow{ display: none; } /* 影は box-shadow のみで表現 */
.sidebar__card:hover .sidebar__card-img{
  transform: rotate(-4deg) translateY(-4px);
  box-shadow:
    22px 28px 50px rgba(0,0,0,.2),
    6px 8px 14px rgba(0,0,0,.1);
}

/* ===== 吹き出し（顔から出るセリフ） ===== */
.speech{
  position: absolute;
  top: 16%;
  right: clamp(-32px, -2vw, 0px);
  z-index: 12;
  pointer-events: none;
  transform-origin: bottom left;
}
@media (max-width: 900px){
  .speech{ display: none; }
}
.speech__bubble{
  position: relative;
  background: #fff;
  border: 2.5px solid #0e0e1a;
  border-radius: 28px;
  padding: 16px 24px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.12);
  transform: rotate(3deg);
  min-width: 180px;
  max-width: 280px;
}
.speech__bubble::before,
.speech__bubble::after{
  content: "";
  position: absolute;
  left: -14px;
  bottom: 20px;
  width: 20px; height: 20px;
  background: #fff;
  border-left: 2.5px solid #0e0e1a;
  border-bottom: 2.5px solid #0e0e1a;
  transform: rotate(45deg);
}
.speech__bubble::before{
  /* 影側 */
  left: -12px;
  background: transparent;
  border-color: rgba(0,0,0,.12);
  transform: rotate(45deg) translate(2px, 2px);
  z-index: -1;
}
.speech__text{
  margin: 0;
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: .04em;
  line-height: 1.55;
  color: #0e0e1a;
  text-align: center;
  white-space: normal;
}

.sidebar__nav ul{
  display: grid;
  gap: 4px;
}
.sidebar__nav a{
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 0;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 14px; letter-spacing: .26em;
  color: #0e0e1a; opacity: .55;
  transition: opacity .25s var(--ease-out), gap .25s var(--ease-out), color .25s var(--ease-out);
}
.sidebar__nav a::before{
  content:""; width: 22px; height: 2px;
  background: currentColor;
  transition: width .25s var(--ease-out);
}
.sidebar__nav a:hover,
.sidebar__nav a.is-active{
  opacity: 1;
  gap: 20px;
}
.sidebar__nav a:hover::before,
.sidebar__nav a.is-active::before{
  width: 38px;
}

.sidebar__social{
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.sidebar__social a{
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 11px; letter-spacing: .26em;
  color: #0e0e1a;
  background: #fff;
  transition: all .2s var(--ease-out);
}
.sidebar__social a:hover{
  background: #0e0e1a; color: #fff;
  transform: translateY(-2px);
}
.sidebar__copy{
  margin: 0;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 10px; letter-spacing: .32em;
  color: #0e0e1a; opacity: .45;
}

/* --- 右カラム / Content --- */
.content{
  position: relative;
  min-width: 0;                  /* grid 内で overflow を防ぐ */
  margin-top: clamp(24px, 4vh, 56px);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  overflow: hidden;              /* 子セクションの上端を角丸でクリップ */
}
@media (max-width: 900px){
  .content{
    margin-top: 0;
    border-radius: 0;
  }
}

section{
  position: relative;
  padding: clamp(100px, 14vw, 180px) clamp(28px, 6vw, 96px);
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
}

.section__label{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 14px;
  letter-spacing: .4em;
  color: currentColor;
  margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.section__label::before{
  content:""; width: 36px; height: 2px; background: currentColor;
}
.section__title{
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(40px, 7.5vw, 96px);
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 56px;
}

/* =========================================================
   FV
   ========================================================= */
.fv{
  min-height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: clamp(60px, 8vw, 120px);
  text-align: center;
}
@media (max-width: 900px){
  .fv{ min-height: 80dvh; }
}
.fv__particles{ display: none; } /* テクスチャ背景があるので粒子は不要 */
.fv__noise{ display: none; }

.fv__inner{ position: relative; z-index: 2; }
.fv__hello{
  font-family: var(--ff-en); font-weight: 700;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: .5em;
  margin: 0 0 24px;
}
.fv__statement{
  margin: 32px auto 0;
  max-width: 32em;
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}
.fv__statement p{
  margin: 0;
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(16px, 2.1vw, 24px);
  letter-spacing: .06em;
  line-height: 2.1;
  text-shadow: 3px 3px 0 rgba(0,0,0,.08);
}

.fv__scroll{
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px;
  letter-spacing: .4em;
  z-index: 2;
}
.fv__scroll-line{
  width: 2px; height: 44px;
  background: currentColor;
  animation: fvScroll 1.8s var(--ease-in-out) infinite;
  transform-origin: top;
}

.fv__cat{
  position: absolute;
  right: clamp(-110px, -6vw, -50px); /* 右側を見切らせる */
  bottom: clamp(8px, 2vw, 28px);
  width: clamp(150px, 16vw, 220px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(6px 8px 14px rgba(0,0,0,.18));
  z-index: 2;
}

/* 改行しない（1行で表示）span */
.fv__nowrap{
  display: inline-block;
  white-space: nowrap;
}

/* PC では非表示・SP のみ出現 */
.show-sp{ display: none; }

/* SPでのみ非表示 */
@media (max-width: 720px){
  .hide-sp{ display: none !important; }
  .show-sp{ display: inline; }
  /* SP: WORKS の上余白を控えめに */
  .works{
    padding-top: clamp(48px, 10vw, 80px) !important;
  }
}

/* === SP 専用調整 === */
@media (max-width: 720px){
  .fv__statement p{
    font-size: clamp(13px, 3.6vw, 16px);
    letter-spacing: .04em;
    line-height: 1.9;
  }
  .fv__cat{
    width: clamp(90px, 22vw, 120px);    /* 小さく */
    bottom: clamp(-10px, -1vw, 4px);    /* もう少し下に（少し見切れ） */
    right: clamp(-24px, -3vw, -8px);
  }
  /* SP: FV背景に半透明の白オーバーレイを乗せて少し透明感を出す */
  .fv{
    position: relative;
    isolation: isolate;
  }
  .fv::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 1;
  }
}
@keyframes fvScroll {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   WHO
   ========================================================= */
.who__grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 768px){
  .who__grid{ grid-template-columns: 1fr; }
}
/* WHO ビジュアル：シール（ポラロイド）風 */
.who__visual{
  margin: 0;
  aspect-ratio: 3/4;
  width: 100%;
  background: #fff;
  padding: 14px 14px 56px; /* 下を厚く＝ポラロイド */
  border-radius: 6px;
  /* 黄色背景に馴染ませる薄い影 */
  box-shadow:
    4px 6px 10px rgba(120, 86, 0, .10),
    1px 2px 4px rgba(120, 86, 0, .06);
  transform: rotate(-3deg);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.who__visual:hover{
  transform: rotate(-1deg) translateY(-3px);
}
.who__photo{
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* SP: プロフィール写真を正方形に */
@media (max-width: 720px){
  .who__visual{
    aspect-ratio: 1 / 1;
    padding: 12px 12px 36px;
  }
}

.who__name-en{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 14px; letter-spacing: .4em;
  margin: 0 0 10px;
}
.who__name-ja{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(36px, 5.6vw, 56px);
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0;
}
.who__role{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .3em;
  margin: 10px 0 28px;
}
.who__text{
  font-size: 16px; line-height: 2;
  margin: 0 0 20px;
}
.who__text:last-of-type{ margin-bottom: 32px; }
.who__tags{
  display: flex; flex-wrap: wrap; gap: 10px;
}
.who__tags li{
  font-family: var(--ff-jp-alt); font-weight: 700;
  font-size: 13px; letter-spacing: .04em;
  padding: 8px 16px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
}

/* =========================================================
   WORKS
   ========================================================= */
.works__filter{
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-bottom: 36px;
}
.chip{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .22em;
  padding: 10px 18px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  color: #0e0e1a;
  background: #fff;
  transition: all .2s var(--ease-out);
}
.chip:hover{ transform: translateY(-2px); }
.chip.is-active{
  color: #fff;
  background: #0e0e1a;
}

.works__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
}
@media (max-width: 720px){
  .works__grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* 2カラムで偶数番目を少し下にずらす（kimiko風） */
@media (min-width: 721px){
  .works__grid .work-card:nth-child(even){
    margin-top: 64px;
  }
}

.work-card{
  position: relative;
  background: #fff;
  border: 3px solid #0e0e1a;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 8px 8px 0 #0e0e1a;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.work-card:hover{
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 #0e0e1a;
}
.work-card__thumb{
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2EA3F0, #B564FF 80%);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #0e0e1a;
}
.work-card__thumb::after{
  content: none;
}

.work-card__body{ padding: 18px 20px 22px; }
.work-card__cat{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 11px; letter-spacing: .32em;
  color: #0e0e1a; margin: 0 0 6px;
  opacity: .65;
}
.work-card__title{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: .02em;
  margin: 0 0 6px; color: #0e0e1a;
}
.work-card__lead{
  font-size: 14px; color: #0e0e1a; opacity: .75; margin: 0;
}

/* Podcast 風のカード */
.work-card[data-cat="podcast"] .work-card__thumb::before{
  content:"▶";
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--c-deep);
  background: var(--c-white);
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 1;
}

/* =========================================================
   WORKS ティーザー（トップに置く誘導カード）
   ========================================================= */
.works{ position: relative; }
.works--teaser{
  text-align: left;
}
/* 緑背景の底に座る黒猫（左右反転・右カラム左端） */
.works__cat{
  position: absolute;
  left: clamp(-8px, 1.5vw, 24px);
  bottom: 0;
  width: clamp(110px, 13vw, 180px);
  height: auto;
  transform: scaleX(-1);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.works__teaser-title{
  font-family: var(--ff-jp); font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: .06em;
  line-height: 1.1;
  margin: 8px 0 28px;
  color: #0e0e1a;
}
.works--teaser .works__filter{
  margin-bottom: 32px;
}
.works__more{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  border: 3px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .28em;
  cursor: pointer;
  box-shadow: 6px 6px 0 #0e0e1a;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.works__more:hover{
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 #0e0e1a;
}
.works__more svg{ display: block; }

/* =========================================================
   WORKS VIEW（詳細オーバーレイ）
   ========================================================= */
.works-view{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: var(--sidebar-w, 0px);
  z-index: 8000;
  overflow-y: auto;
  background: #4FCB7E url("../assets/textures/bg-green.jpg") repeat;
  background-size: 600px auto;
  color: #0e0e1a;
}
.works-view[hidden]{ display: none; }
@media (max-width: 900px){
  .works-view{ left: 0; }
}
.works-view__back{
  position: sticky;
  top: clamp(16px, 2vw, 24px);
  margin: clamp(16px, 2vw, 24px) 0 0 clamp(16px, 2vw, 32px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .26em;
  color: #0e0e1a;
  cursor: pointer;
  z-index: 5;
  box-shadow: 4px 4px 0 #0e0e1a;
  transition: transform .2s var(--ease-out);
}
.works-view__back:hover{ transform: translate(-2px, -2px); }
.works-view__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(80px, 12vw, 160px);
}
.wv-hero{ margin-bottom: clamp(32px, 5vw, 56px); }
.wv-label{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .4em;
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 14px;
}
.wv-label::before{
  content: ""; width: 32px; height: 2px; background: currentColor;
}
.wv-title{
  font-family: var(--ff-jp); font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: .04em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.wv-lead{
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
  max-width: 640px;
  margin: 0;
  opacity: .8;
}
.works-view__filter{
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  position: sticky;
  top: clamp(56px, 7vw, 80px);
  z-index: 4;
  padding: 12px 0;
}

/* === 4段構成のセクション === */
.works-view__sections{
  display: flex; flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}
.wv-section{
  min-height: 0;
  padding: 0;
}
.wv-section-label{
  font-family: var(--ff-jp); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .06em;
  margin: 0 0 18px;
  color: #0e0e1a;
  display: inline-flex; align-items: center; gap: 12px;
}
.wv-section-label::before{
  content: "";
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  background: url("../assets/cat-head-btn.png") no-repeat center / contain;
  flex-shrink: 0;
}

/* === 横スクロールレール === */
.works-view__rail{
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2vw, 32px);
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 0 24px;
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px));
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
  -webkit-overflow-scrolling: touch;
}
/* スクロールバー非表示（スクロール機能は維持） */
.works-view__rail{
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/旧Edge */
}
.works-view__rail::-webkit-scrollbar{
  display: none;                  /* WebKit (Chrome/Safari) */
  width: 0; height: 0;
}

/* レール内のカード：黒縁なし・画像 + 下に小さくタイトル */
.works-view__rail .work-card{
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  margin-top: 0 !important;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: transform .25s var(--ease-out);
}
.works-view__rail .work-card:hover{
  transform: translateY(-4px);
  box-shadow: none;
}
.works-view__rail .work-card__thumb{
  background: #fff;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.works-view__rail .work-card__title{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: 13px; letter-spacing: .04em;
  color: #0e0e1a;
  margin: 0;
  padding: 0 2px;
  max-width: 360px;
  line-height: 1.5;
}

/* --- crop スタイル（site / lp）：FVのみ・大きめ・横にはみ出す --- */
.work-card[data-style="crop"] .work-card__thumb{
  width: clamp(380px, 38vw, 560px);
  aspect-ratio: 16/10;
}
@media (max-width: 720px){
  .work-card[data-style="crop"] .work-card__thumb{
    width: clamp(260px, 72vw, 320px);
  }
  .work-card[data-style="square"] .work-card__thumb{
    width: clamp(180px, 50vw, 240px);
  }
  .work-card[data-style="portrait"] .work-card__thumb{
    width: clamp(160px, 42vw, 200px);
  }
}
.work-card[data-style="crop"] .work-card__thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* --- square スタイル（banner）：正方形・全体表示 --- */
.work-card[data-style="square"] .work-card__thumb{
  width: clamp(240px, 24vw, 320px);
  aspect-ratio: 1/1;
  display: grid; place-items: center;
}
.work-card[data-style="square"] .work-card__thumb img{
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* --- portrait スタイル（flyer）：縦長方形・全体表示 --- */
.work-card[data-style="portrait"] .work-card__thumb{
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 3/4;
  display: grid; place-items: center;
}
.work-card[data-style="portrait"] .work-card__thumb img{
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* === グリッド表示（banner / flyer）：縦に並んで全体表示 === */
.works-view__grid[data-rail]{
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}
.works-view__grid[data-rail="banner"]{
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.works-view__grid[data-rail="flyer"]{
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.works-view__grid .work-card{
  display: flex; flex-direction: column;
  gap: 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0 !important;
  transition: transform .25s var(--ease-out);
}
.works-view__grid .work-card:hover{ transform: translateY(-3px); }

.work-card[data-style="grid"] .work-card__thumb{
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.work-card[data-cat="banner"][data-style="grid"] .work-card__thumb{
  aspect-ratio: 16/9;
}
.work-card[data-cat="flyer"][data-style="grid"] .work-card__thumb{
  aspect-ratio: 3/4;
}
.work-card[data-style="grid"] .work-card__thumb img{
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.works-view__grid .work-card__title{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: 13px; letter-spacing: .04em;
  color: #0e0e1a;
  margin: 0;
  padding: 0 2px;
  line-height: 1.5;
}

.works-view__empty{
  color: #0e0e1a; opacity: .7;
  padding: 24px;
}

/* === 詳細ビュー === */
.works-view__detail{
  margin-top: 8px;
}
.works-view__detail[hidden]{ display: none; }
.works-view__detail-back{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .26em;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0e0e1a;
  transition: transform .2s var(--ease-out);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.works-view__detail-back:hover{ transform: translate(-2px, -2px); }
.wv-detail-head{ margin-bottom: clamp(20px, 3vw, 32px); }
.wv-detail-cat{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .32em;
  margin: 0 0 8px;
  opacity: .7;
}
.wv-detail-title{
  font-family: var(--ff-jp); font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .04em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #0e0e1a;
}
.wv-detail-lead{
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  margin: 0;
  opacity: .85;
}
.wv-detail-images{
  display: grid;
  grid-template-columns: 1fr;  /* 常に縦積み: PC → SP の順で表示 */
  gap: clamp(20px, 2.4vw, 32px);
}
.wv-detail-image{
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f0;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.wv-detail-image-label{
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px;
  background: #0e0e1a; color: #fff;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 11px; letter-spacing: .26em;
  border-radius: 999px;
}
.wv-detail-image img{
  display: block;
  width: 100%;
  height: auto;
}

/* === ライブサイト埋め込み === */
.wv-detail-live{
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}
.wv-detail-live-bar{
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #f5f5f0;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.wv-detail-live-url{
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: .04em;
  color: #0e0e1a;
  opacity: .8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.wv-detail-live-open{
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  color: #fff;
  background: #0e0e1a;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .2s var(--ease-out);
}
.wv-detail-live-open:hover{ transform: translate(-1px, -1px); }
.wv-detail-live-frame{
  display: block;
  width: 100%;
  height: clamp(520px, 78vh, 900px);
  border: 0;
  background: #fff;
}

/* === 外部リンクカード（iframe不可サイト用） === */
.wv-detail-external{
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: #0e0e1a;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  text-align: center;
  justify-items: center;
}
.wv-detail-external:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}
.wv-detail-external__thumb{
  display: block;
  width: min(100%, 520px);
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  background: #f5f5f0;
}
.wv-detail-external__cta{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 2.5px solid #0e0e1a;
  border-radius: 999px;
  background: #0e0e1a;
  color: #fff;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .24em;
  box-shadow: 4px 4px 0 #0e0e1a;
}
.wv-detail-external__url{
  font-family: var(--ff-en);
  font-size: 12px; letter-spacing: .04em;
  color: rgba(14,14,26,.6);
  word-break: break-all;
}

/* 詳細表示中は hero / 一覧セクションごと隠す */
.works-view--detail .wv-hero,
.works-view--detail .works-view__sections{
  display: none;
}

/* =========================================================
   UNIVERSITY (旧 BLUE NOTES) — PDFティーザー
   ========================================================= */
.notes--university{
  position: relative;
}
.notes--university .section__title{
  font-size: clamp(24px, 3.6vw, 40px);
  margin-bottom: 28px;
}
.notes__preview{
  position: relative;
  margin: 24px 0 28px;
  width: 100%;
  max-height: 460px;
  background: transparent;
  border: 0;
  overflow: hidden;
  display: flex; justify-content: center;
}
.notes__pdf-thumb{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.notes__preview-overlay{ display: none; }
@media (max-width: 720px){
  .notes__preview{
    max-height: none;          /* 高さ制限を解除 → 表紙全体が縮小せず収まる */
    margin: 16px 0 20px;
  }
  .notes__pdf-thumb{
    width: 100%;
    height: auto;
  }
}
.notes__more{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  border: 3px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .28em;
  cursor: pointer;
  box-shadow: 6px 6px 0 #0e0e1a;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.notes__more:hover{
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 #0e0e1a;
}

/* === University View（全画面PDF） === */
.university-view{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: var(--sidebar-w, 0px);
  z-index: 8000;
  overflow: hidden;
  background: #B564FF url("../assets/textures/bg-purple.jpg") repeat;
  background-size: 600px auto;
  color: #fff;
}
.university-view[hidden]{ display: none; }
@media (max-width: 900px){
  .university-view{ left: 0; }
}
.university-view__back{
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 32px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .26em;
  cursor: pointer;
  z-index: 10;
  box-shadow: 4px 4px 0 #0e0e1a;
  transition: transform .2s var(--ease-out);
}
.university-view__back:hover{ transform: translate(-2px, -2px); }
.university-view__inner{
  position: relative;
  height: 100dvh;
  padding: 0;
  display: flex; align-items: center;
}
.university-view__rail{
  flex: 1 1 auto;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 4vw, 48px) clamp(80px, 8vw, 120px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.university-view__rail::-webkit-scrollbar{ display: none; width: 0; height: 0; }
.uv-page{
  flex-shrink: 0;
  margin: 0;
  scroll-snap-align: center;
  height: 68vh;
  display: flex;
}
.uv-page img{
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
}

/* === 左右ナビ矢印 === */
.uv-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  border-radius: 50%;
  border: 2px solid #0e0e1a;
  background: #fff;
  color: #0e0e1a;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 4px 4px 0 #0e0e1a;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s;
}
.uv-nav:hover{
  transform: translateY(calc(-50% - 2px)) translateX(-2px);
  box-shadow: 6px 6px 0 #0e0e1a;
}
.uv-nav--prev{ left: clamp(16px, 2vw, 28px); }
.uv-nav--next{ right: clamp(16px, 2vw, 28px); }
.uv-nav:disabled{
  opacity: .35;
  cursor: not-allowed;
  transform: translateY(-50%) !important;
  box-shadow: 4px 4px 0 #0e0e1a !important;
}
.uv-counter{
  position: absolute;
  left: 50%; bottom: clamp(16px, 2vw, 28px);
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 16px;
  background: rgba(14,14,26,.7);
  color: #fff;
  border-radius: 999px;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .2em;
  z-index: 6;
  pointer-events: none;
}

/* === SP: 縦積みスクロールに切替 === */
@media (max-width: 720px){
  /* オーバーレイ全体を縦スクロール可能に */
  .university-view{
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .university-view__inner{
    height: auto;
    min-height: 100dvh;
    display: block;
    padding: clamp(72px, 14vw, 96px) clamp(12px, 4vw, 20px) clamp(40px, 8vw, 64px);
  }
  .university-view__rail{
    flex-direction: column;
    gap: clamp(14px, 3vw, 20px);
    padding: 0;
    margin: 0;
    overflow: visible;        /* 親(.university-view)に scroll を委譲 */
    scroll-snap-type: none;
  }
  .uv-page{
    width: 100%;
    height: auto;
    flex-shrink: 1;
    scroll-snap-align: none;
  }
  .uv-page img{
    width: 100%;
    height: auto;
  }
  /* 左右矢印・カウンターは横スクロール用なのでSPでは隠す */
  .uv-nav, .uv-counter{ display: none !important; }
}

/* =========================================================
   BLUE NOTES (旧スタイル・互換用)
   ========================================================= */
.notes__grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.note{
  margin: 0;
  padding: 26px 26px 30px;
  border: 3px solid #0e0e1a;
  border-radius: 16px;
  background: #FFD61E;
  color: #0e0e1a;
  box-shadow: 6px 6px 0 #0e0e1a;
  transform: rotate(-1.2deg);
  transition: transform .3s var(--ease-out);
}
.note:nth-child(2n){ background: #fff; transform: rotate(1deg); }
.note:nth-child(3n){ background: #4FCB7E; transform: rotate(-.6deg); }
.note:nth-child(4n){ background: #FF7BB3; transform: rotate(1.4deg); }
.note:hover{
  transform: translateY(-4px) rotate(0deg);
}
.note blockquote{
  margin: 0;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: .02em;
  line-height: 1.7;
  color: #0e0e1a;
}
.note blockquote::before{ content:"“ "; }
.note blockquote::after{ content:" ”"; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills__group + .skills__group{
  margin-top: clamp(36px, 5vw, 64px);
}
.skills__group-title{
  font-family: var(--ff-jp); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .08em;
  margin: 0 0 18px;
  color: #0e0e1a;
  display: inline-flex; align-items: center; gap: 12px;
}
.skills__group-title::before{
  content: "■";
  color: #0e0e1a;
  font-size: .8em;
}
.skills__grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.skill{
  position: relative;
  min-height: 110px;
  padding: 24px 18px;
  border: 3px solid #0e0e1a;
  border-radius: 16px;
  background: #fff;
  color: #0e0e1a;
  text-align: center;
  overflow: hidden;
  box-shadow: 5px 5px 0 #0e0e1a;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.skill:hover,
.skill:focus-visible{
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0e0e1a;
  outline: none;
}
.skill__name{
  position: relative;
  font-family: var(--ff-en-alt); font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1.4;
  color: #0e0e1a;
  transition: opacity .25s var(--ease-out);
}
.skill__name small{
  display: inline-block;
  font-size: .82em;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .8;
}
.skill__desc{
  position: absolute;
  inset: 0;
  background: #0e0e1a;
  color: #fff;
  padding: 16px 16px;
  font-family: var(--ff-jp);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.skill:hover .skill__desc,
.skill:focus-visible .skill__desc,
.skill:focus-within .skill__desc{
  opacity: 1;
  transform: translateY(0);
}
.skill:hover .skill__name,
.skill:focus-visible .skill__name,
.skill:focus-within .skill__name{
  opacity: 0;
}

/* =========================================================
   OUTRO
   ========================================================= */
.outro{
  min-height: 80dvh;
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
}
.outro__inner{
  position: relative; z-index: 1;
  padding: clamp(40px, 6vw, 80px) 24px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
}
.outro__cat{
  display: block;
  width: clamp(140px, 16vw, 220px);
  height: auto;
  user-select: none;
}
.outro__title{
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .06em;
  line-height: 1.8;
  margin: 0;
  color: #0e0e1a;
}
.outro__links{
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.outro__btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 2.5px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .22em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 #0e0e1a;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out);
}
.outro__btn:hover{
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0e0e1a;
}
.outro__btn--ig:hover{
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  color: #fff;
}
.outro__btn--mail:hover{
  background: #FF7BB3;
  color: #fff;
}
.outro__btn svg{ display: block; flex-shrink: 0; }
.outro__copy{
  font-family: var(--ff-en); font-size: 11px; letter-spacing: .3em;
  color: rgba(14,14,26,.5);
  margin: clamp(20px, 3vw, 36px) 0 0;
}

/* =========================================================
   WHO view more & PROFILE VIEW
   ========================================================= */
.who__more{
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .22em;
  cursor: pointer;
  box-shadow: 5px 5px 0 #0e0e1a;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.who__more:hover{
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0e0e1a;
}
.who__more svg{ display: block; }

/* ===== Profile View（右カラム領域を覆う） ===== */
.profile-view{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: var(--sidebar-w, 0px);
  z-index: 8000;
  overflow-y: auto;
  background: #FFD61E url("../assets/textures/bg-yellow.jpg") repeat;
  background-size: 600px auto;
  color: #0e0e1a;
}
.profile-view[hidden]{ display: none; }
@media (max-width: 900px){
  .profile-view{ left: 0; }
}

.profile-view__back{
  position: sticky;
  top: clamp(16px, 2vw, 24px);
  margin: clamp(16px, 2vw, 24px) 0 0 clamp(16px, 2vw, 32px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .26em;
  color: #0e0e1a;
  cursor: pointer;
  z-index: 5;
  box-shadow: 4px 4px 0 #0e0e1a;
  transition: transform .2s var(--ease-out);
}
.profile-view__back:hover{ transform: translate(-2px, -2px); }

.profile-view__inner{
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 64px) clamp(80px, 12vw, 160px);
}

/* Hero */
.pv-hero{
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (max-width: 640px){
  .pv-hero{ grid-template-columns: 1fr; }
}
.pv-hero__photo{
  background: #fff;
  padding: 12px 12px 44px;
  border-radius: 4px;
  box-shadow: 14px 18px 36px rgba(0,0,0,.16);
  transform: rotate(-2.4deg);
  aspect-ratio: 3/4;
}
.pv-hero__photo img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pv-hero__role{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .32em;
  margin: 0 0 12px;
  opacity: .7;
}
.pv-hero__name-ja{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(40px, 8vw, 88px);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0 0 14px;
}
.pv-hero__name-ja span{ margin-left: .4em; }
.pv-hero__name-en{
  font-family: var(--ff-en); font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .26em;
  margin: 0;
  opacity: .75;
}

/* Sections — グローバル section ルールの上書き */
.profile-view section,
.pv-section{
  min-height: 0;
  padding: 0;
  display: block;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.profile-view section:last-child,
.pv-section:last-child{ margin-bottom: 0; }
.pv-label{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .4em;
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.pv-label::before{
  content: ""; width: 32px; height: 2px; background: currentColor;
}

/* Prose */
.pv-prose p{
  margin: 0 0 1.4em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2;
}
.pv-prose p:last-child{ margin-bottom: 0; }

/* Info table */
.pv-info{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 2px solid #0e0e1a;
}
.pv-info--stack{ grid-template-columns: 1fr; }
@media (max-width: 640px){
  .pv-info{ grid-template-columns: 1fr; }
}
.pv-info > div{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 22px 8px;
  border-bottom: 1px solid rgba(14,14,26,.18);
}
@media (max-width: 640px){
  .pv-info > div{ grid-template-columns: 1fr; gap: 8px; }
}
.pv-info dt{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 11px; letter-spacing: .28em;
  color: #0e0e1a; opacity: .7;
  padding-top: 4px;
}
.pv-info dd{
  margin: 0;
  font-family: var(--ff-jp); font-weight: 500;
  font-size: 15px;
  line-height: 1.75;
}
.pv-info__note{
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  opacity: .7;
}

/* Tools sub-list */
.pv-tool__intro{
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}
.pv-tools{
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.pv-tools li{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #0e0e1a;
  border-radius: 12px;
}
@media (max-width: 640px){
  .pv-tools li{ grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
}
.pv-tool__name{
  font-family: var(--ff-en-alt); font-weight: 700;
  font-size: 13px; letter-spacing: .06em;
}
.pv-tool__desc{
  font-family: var(--ff-jp); font-weight: 500;
  font-size: 13px; line-height: 1.7;
}

/* Timeline */
.pv-timeline{
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 24px;
}
.pv-timeline li{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 22px;
  background: #fff;
  border: 2px solid #0e0e1a;
  border-radius: 14px;
  box-shadow: 5px 5px 0 #0e0e1a;
}
@media (max-width: 640px){
  .pv-timeline li{ grid-template-columns: 1fr; }
}
.pv-timeline__year{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .24em;
  color: #0e0e1a;
  background: #FFD61E;
  border: 2px solid #0e0e1a;
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
  align-self: start;
}
.pv-timeline p{
  margin: 0;
  font-size: 15px; line-height: 1.85;
}

/* Likes */
.pv-likes{
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  padding: 0; margin: 0; list-style: none;
}
.pv-likes li span{
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: 14px;
}

/* Likes — key/value 表示（PLACE: disneyland 等） */
.pv-likes--kv{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.pv-likes--kv li{
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  background: #fff;
  border: 2px solid #0e0e1a;
  border-radius: 14px;
  box-shadow: 5px 5px 0 #0e0e1a;
}
.pv-likes--kv li:nth-child(4n+2){ background: #8FD3FF; }
.pv-likes--kv li:nth-child(4n+3){ background: #FF7BB3; }
.pv-likes--kv li:nth-child(4n+4){ background: #4FCB7E; }
.pv-likes--kv li span{
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
.pv-likes__key{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 11px; letter-spacing: .3em;
  opacity: .75;
}
.pv-likes__val{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: .02em;
}

/* CTA */
.pv-section--cta{ text-align: center; margin-bottom: 0; }
.pv-section--cta .pv-label{ justify-content: center; }
.pv-cta__title{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: .04em;
  margin: 0 0 32px;
  line-height: 1.2;
}
.pv-cta__links{
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0; margin: 0; list-style: none;
}
.pv-cta__links a{
  display: inline-block;
  padding: 14px 28px;
  background: #fff;
  border: 2px solid #0e0e1a;
  border-radius: 999px;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 13px; letter-spacing: .26em;
  color: #0e0e1a;
  box-shadow: 5px 5px 0 #0e0e1a;
  transition: transform .2s var(--ease-out);
}
.pv-cta__links a:hover{
  transform: translate(-2px, -2px);
}

body.profile-open,
body.works-open,
body.university-open{ overflow: hidden; }

/* =========================================================
   MENU TOGGLE（猫ボタン） & MENU PANEL
   ========================================================= */
.menu-toggle{
  position: fixed;             /* スクロールしても追従 */
  top: clamp(16px, 2.4vw, 32px);
  right: clamp(16px, 2.4vw, 32px);
  z-index: 9000;
  width: clamp(72px, 8vw, 100px);
  aspect-ratio: 1/1;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
}
/* メニューを開いている間はトグルを隠してパッドのclose と重ならないように */
body.menu-open .menu-toggle{
  opacity: 0;
  pointer-events: none;
}
.menu-toggle:hover{ transform: rotate(-8deg) scale(1.05); }
.menu-toggle:active{ transform: scale(.96); }

.menu-toggle__icon{
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(4px 6px 10px rgba(0,0,0,.25));
}
.menu-toggle__label{
  position: absolute;
  /* 猫の顔（耳の下〜中央寄り）に重ねる */
  top: 60%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-en); font-weight: 700;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: .18em;
  color: #fff;
  pointer-events: none;
}

/* ===== Menu Panel ===== */
.menu-panel{
  position: fixed; inset: 0;
  z-index: 10000;
  /* 中央寄せをやめて、右端から見切れる配置にする */
  pointer-events: none;        /* 透過領域はクリックを通す（背景は隠さない） */
}
.menu-panel[hidden]{ display: none; }
/* バックドロップはクリックで閉じる検出のみ。色なし・ぼかしなし */
.menu-panel__backdrop{
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: auto;
}
/* === メモパッド本体：右カラム右端からはみ出す配置 === */
.menu-panel__nav{
  position: absolute;
  top: clamp(80px, 10vh, 130px);
  right: clamp(-120px, -8vw, -60px);   /* 右に飛び出して見切れる */
  width: min(440px, 88vw);
  padding: 56px 32px 36px;
  background: #fff url("../assets/textures/bg-paper.png") repeat;
  background-size: 600px auto;
  border-radius: 4px;
  text-align: left;
  transform: rotate(3deg);
  box-shadow:
    0 30px 60px rgba(0,0,0,.28),
    0 10px 20px rgba(0,0,0,.16);
  pointer-events: auto;
}
@media (max-width: 720px){
  .menu-panel__nav{
    top: 72px;
    right: -40px;
    width: 86vw;
  }
}
/* スパイラル綴じ */
.menu-panel__spiral{
  position: absolute;
  top: -12px; left: 24px; right: 24px;
  display: flex; justify-content: space-between;
}
.menu-panel__spiral span{
  width: 14px; height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF7BB3 0%, #FFD61E 45%, #4FCB7E 70%, #2EA3F0 100%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.18);
}
/* MENU タイトル + close */
.menu-panel__head{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin: 6px 0 22px;
}
.menu-panel__title{
  position: relative;
  display: inline-block;
  padding: 8px 16px;
}
.menu-panel__title-text{
  position: relative;
  z-index: 1;
  font-family: var(--ff-en);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .04em;
  color: #0e0e1a;
}
.menu-panel__title-scribble{
  position: absolute;
  inset: -6px -8px -10px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
}
.menu-panel__close{
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0;
  width: 54px; height: 54px;
  padding: 4px;
  border: 1.5px solid #0e0e1a;
  border-radius: 6px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.menu-panel__close:hover{
  transform: rotate(6deg);
  background: #f5f5f0;
}
.menu-panel__close-x{
  font-size: 22px;
  line-height: 1;
  margin-top: 4px;
}
.menu-panel__close-label{
  font-size: 9px;
  letter-spacing: .1em;
  margin-top: 2px;
}
/* メニュー項目（破線区切り） */
.menu-panel__list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-panel__list li{
  border-top: 1.5px dashed rgba(14,14,26,.45);
}
.menu-panel__list li:last-child{
  border-bottom: 1.5px dashed rgba(14,14,26,.45);
}
.menu-panel__list a{
  display: block;
  padding: 16px 6px;
  font-family: var(--ff-en); font-weight: 800;
  font-size: 18px; letter-spacing: .08em;
  color: #0e0e1a;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  transform: none;
  transition: transform .25s var(--ease-out), color .25s var(--ease-out);
}
.menu-panel__list a:hover{
  color: #E94B3C;
  background: transparent;
  transform: translateX(8px);
}

/* 下端の close ボタン */
.menu-panel__close-bottom{
  display: inline-flex; align-items: center; gap: 10px;
  margin: 22px 0 0;
  padding: 10px 22px;
  border: 1.5px solid #0e0e1a;
  border-radius: 999px;
  background: #fff;
  color: #0e0e1a;
  font-family: var(--ff-en); font-weight: 800;
  font-size: 12px; letter-spacing: .26em;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0e0e1a;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.menu-panel__close-bottom:hover{
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #0e0e1a;
  background: #f5f5f0;
}
.menu-panel__close-bottom-x{
  font-size: 18px; line-height: 1;
}

body.menu-open{ overflow: hidden; }

/* =========================================================
   MODAL
   ========================================================= */
.modal{
  position: fixed; inset: 0;
  z-index: 10000;
  display: grid; place-items: center;
  padding: 24px;
}
.modal[hidden]{ display: none; }
.modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel{
  position: relative;
  width: min(960px, 100%);
  max-height: 90dvh; overflow: auto;
  background: #fff;
  border: 3px solid #0e0e1a;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  color: #0e0e1a;
  box-shadow: 12px 12px 0 #0e0e1a;
}
.modal__gallery{
  margin: 16px 0 24px;
  display: grid;
  gap: 18px;
}
/* 複数画像（PC+SP / メイン+別案 など）は横並び */
.modal__gallery--multi{
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 720px){
  .modal__gallery--multi{ grid-template-columns: 1fr; }
}
.modal__image{
  position: relative;
  margin: 0;
  border: 2px solid #0e0e1a;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f0;
  display: flex; flex-direction: column;
}
.modal__image-label{
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px;
  background: #0e0e1a; color: #fff;
  font-family: var(--ff-en); font-weight: 700;
  font-size: 10px; letter-spacing: .24em;
  border-radius: 999px;
}
.modal__image img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}
.modal__body .modal__lead{
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
  margin: 0 0 20px;
  color: #0e0e1a;
  opacity: .85;
}
.modal__panel h3{ color: #0e0e1a; }
.modal__panel .modal__cat{ color: #0e0e1a; opacity: .7; }
.modal__panel dt{ color: #0e0e1a; opacity: .7; }
.modal__panel dd{ color: #0e0e1a; }
.modal__close{
  position: absolute; right: 14px; top: 10px;
  width: 36px; height: 36px;
  font-size: 28px; color: #0e0e1a;
  border-radius: 50%;
}
.modal__close:hover{ background: rgba(0,0,0,.08); }

.modal__body h3{
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(24px, 3.8vw, 36px);
  margin: 0 0 6px;
  line-height: 1.2;
}
.modal__body .modal__cat{
  font-family: var(--ff-en); font-weight: 700;
  font-size: 11px; letter-spacing: .3em;
  margin: 0 0 24px;
  opacity: .7;
}
.modal__body dl{
  display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px;
  font-size: 14px;
}
@media (max-width: 540px){
  .modal__body dl{ grid-template-columns: 1fr; gap: 4px 0; }
  .modal__body dt{ margin-top: 12px; }
}
.modal__body dt{
  font-family: var(--ff-en-alt); font-weight: 700;
  font-size: 11px; letter-spacing: .22em;
}
.modal__body dd{ margin: 0; line-height: 1.9; }

/* =========================================================
   TOPに戻る（猫ロケット・右下固定）
   ========================================================= */
.to-top{
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  width: clamp(78px, 8vw, 120px);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 7000;
  opacity: 0;
  transform: translateY(20px) rotate(-8deg);
  pointer-events: none;
  transition:
    opacity .35s var(--ease-out),
    transform .35s var(--ease-out);
}
.to-top.is-visible{
  opacity: 1;
  transform: translateY(0) rotate(-8deg);
  pointer-events: auto;
}
.to-top:hover{
  transform: translateY(-6px) rotate(-2deg);
}
.to-top__img{
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 6px 10px rgba(0,0,0,.20));
}
.to-top__label{
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(-8px, -50%);
  background: #0e0e1a;
  color: #fff;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: 12px; letter-spacing: .24em;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
  pointer-events: none;
}
.to-top:hover .to-top__label,
.to-top:focus-visible .to-top__label{
  opacity: 1;
  transform: translate(-16px, -50%);
}
/* オーバーレイ表示中は被らないように消す */
body.profile-open .to-top,
body.works-open .to-top,
body.university-open .to-top{
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   Reveal アニメ初期状態
   ========================================================= */
.reveal{ opacity: 0; transform: translateY(28px); }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
