@charset "UTF-8";

/* ============================================================
   ROOT & RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --off:     #F8F6F1;
  --off2:    #EEEAE1;
  --stone:   #D8D2C8;
  --ink:     #0E0C07;
  --ink2:    #1E1B14;
  --mid:     #38352D;
  --faint:   #95896f;
  --sub:     #6B6760;
  --accent:  #7A5C3A;
  --line:    rgba(14,12,7,.13);
  --eb:      'EB Garamond', Georgia, serif;
  --noto:    'Noto Serif JP', serif;
  --inst:    'Instrument Sans', sans-serif;
  --ease:    cubic-bezier(0.77, 0, 0.175, 1);
  --slow:    0.9s;
  --med:     0.5s;
  --fast:    0.22s;
}

body {
  font-family: var(--noto);
  font-weight: 400;
  background: var(--off);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* 標準の矢印を復活させる */
body, a, button {
    cursor: auto !important;
}
/* 外側の円 */
#cur {
    width: 40px;
    height: 40px;
    border: 2px solid #cef76e; /* 枠線だけにするとオシャレです */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out; /* 遅れてついてくる設定 */
}

/* 中心の点 */
#cur-dot {
    width: 8px;
    height: 8px;
    background-color: #cef76e;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* 紙の質感 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   PROGRESS
============================================================ */
#prog {
  position: fixed; top: 0; left: 0; z-index: 800;
  height: 1px; width: 0;
  background: var(--accent);
}

/* ============================================================
   LOADER — 劇場の幕
============================================================ */

/* 左右2枚の幕 */
.ld-curtain {
  position: fixed; top: 0; bottom: 0; z-index: 7100;
  width: 50%;
  background: var(--ink2);
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.ld-curtain.left  { left: 0;  }
.ld-curtain.right { right: 0; }
.ld-curtain.left.open  { transform: translateX(-100%); }
.ld-curtain.right.open { transform: translateX(100%);  }

/* 幕の内側装飾ライン */
.ld-curtain.left::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 1px; background: rgba(248,246,241,.06);
}
.ld-curtain.right::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: rgba(248,246,241,.06);
}

/* ステージコンテンツ */
#loader-stage {
  position: fixed; inset: 0; z-index: 7200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
  transition: opacity .35s ease;
}
#loader-stage.hide { opacity: 0; }

/* 大きなカウンター */
#ld-count {
  font-family: var(--eb);
  font-style: italic; font-weight: 400;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 1; letter-spacing: -.04em;
  color: var(--off);
  transform: translateY(60px); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s ease;
}
#ld-count.show { transform: translateY(0); opacity: 1; }
#ld-count sup {
  font-size: 2.4rem; vertical-align: super;
  letter-spacing: .04em; color: var(--accent);
}

/* 装飾縦ライン */
.ld-vline {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: rgba(248,246,241,.05);
}
.ld-vline.l1 { left: 25%; }
.ld-vline.l2 { left: 50%; }
.ld-vline.l3 { left: 75%; }

/* 下部ラベル */
.ld-bottom {
  position: absolute; bottom: 40px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
}
.ld-name {
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: clamp(.9rem, 1.5vw, 1.15rem);
  color: rgba(248,246,241,.45); letter-spacing: .08em;
  transform: translateY(20px); opacity: 0;
  transition: transform .7s .3s var(--ease), opacity .5s .3s ease;
}
.ld-name.show { transform: translateY(0); opacity: 1; }
.ld-role {
  font-family: var(--inst); font-weight: 400;
  font-size: .58rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(248,246,241,.28);
  transform: translateY(20px); opacity: 0;
  transition: transform .7s .45s var(--ease), opacity .5s .45s ease;
}
.ld-role.show { transform: translateY(0); opacity: 1; }

/* プログレスバー */
.ld-bar-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(248,246,241,.06);
}
.ld-bar-fill {
  height: 100%; width: 0;
  background: var(--accent);
  transition: width .06s linear;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  mix-blend-mode: multiply;
  transition: transform var(--med) var(--ease);
}
.header.scrolled {
  background: rgba(248,246,241,.92);
  backdrop-filter: blur(10px);
  mix-blend-mode: normal;
  box-shadow: 0 1px 0 var(--line);
}
.header.hide { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 56px;
}

.header-logo a {
  font-family: var(--eb);
  font-size: 2rem; font-weight: 400; font-style: italic;
  letter-spacing: .08em; color: var(--ink);
  transition: color var(--fast);
}
.header-logo a:hover { color: var(--accent); }

.nav-list { display: flex; gap: 40px; }
.nav-list a {
  font-family: var(--inst);
  font-size: .90rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
  position: relative; padding-bottom: 2px;
  transition: color var(--fast);
}
.nav-list a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--med) var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { width: 100%; }

/* ハンバーガー */
.hbg {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hbg span { display: block; width: 20px; height: 1px; background: var(--ink); transition: all .3s; }

/* ============================================================
   モバイルメニュー — ドロワー型（右から出る）
============================================================ */
/* ドロワー本体 */
.mob {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 78%; max-width: 360px;
  z-index: 600;
  background: #fff;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--slow) var(--ease);
  box-shadow: -8px 0 32px rgba(14,12,7,.12);
}
.mob.open { transform: translateX(0); }

/* 上部 — ロゴ＋閉じるボタン */
.mob-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* 右上のCloseボタン */
.mob-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(14,12,7,.18);
  background: none; cursor: pointer;
  font-size: 11px; color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--fast), color var(--fast);
}
.mob-close:hover { border-color: var(--ink); color: var(--ink); }

.mob-logo {
  font-family: var(--eb); font-style: italic;
  font-size: 1.1rem; color: var(--ink);
  letter-spacing: .04em; display: block;
  margin-bottom: 4px; margin-top: 4px;
}
.mob-sub {
  font-family: var(--inst); font-size: .55rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(14,12,7,.35); display: block;
}

/* ナビリンク */
.mob-nav {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
}

/* リンク */
/*.mob-nav a {
  display: flex;
  align-items: center;
  padding: 20px 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(14,12,7,.06);
  transition: background 0.3s;
  font-family: var(--eb); font-style: italic;
  font-size: 1.3rem; color: var(--ink2);
  text-decoration: none; line-height: 1;
  transition: color var(--fast), padding-left var(--med) var(--ease);
}
/* マウスを乗せた時（ホバー時）の設定 */
/*.mob-nav a:hover {
    background-color: #cef76e; /* 指定の背景色に変える */

/* 1. 通常の状態（アニメーションの準備） */
.mob-nav a {
    display: flex;
    padding: 20px 10px;    /* paddingを多めにしてクリック範囲を広げる */
    margin-bottom: 8px;    /* 項目ごとの隙間 */
    text-decoration: none;
    color: #333;           /* 文字色（適宜調整してください） */
    
/* ふわっとさせる設定（0.3秒かけて変化） */
    transition: background-color 0.8s ease; 
}
/* 2. カーソルを合わせた（ホバー）時の状態 */
.mob-nav a:hover {
    background-color: #cef76e; /* 指定の背景色 */
}
.mob-num {
  font-family: var(--inst); font-style: normal;
  font-size: .45rem; letter-spacing: .1em;
  color: var(--accent); min-width: 16px;
}
.mob-arr {
  margin-left: auto; font-size: .75rem;
  color: rgba(14,12,7,.2);
  transition: transform .3s var(--ease);
}
.mob-nav a:hover .mob-arr { transform: translate(3px, -3px); }

/* 下部 — メール＋SNS */
.mob-footer {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mob-mail {
  font-family: var(--inst); font-size: .55rem;
  letter-spacing: .08em; color: rgba(14,12,7,.38);
}
.mob-sns {
  display: flex; gap: 10px;
}
.mob-sns a {
  width: 28px; height: 28px;
  border: 1px solid rgba(14,12,7,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(14,12,7,.45);
  transition: border-color var(--fast), color var(--fast);
}
.mob-sns a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   FV — 左テキスト × 右の大きな矩形（色面）
============================================================ */
#fv {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* 左 */
.fv-l {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 140px 64px 80px 56px;
  position: relative;
  border-right: 1px solid var(--line);
}

/* 縦の赤いマージンライン */
.fv-l::before {
  content: '';
  position: absolute; top: 0; left: 28px; bottom: 0;
  width: 1px; background: rgba(122,92,58,.22);
}

/* eyebrow */
.fv-eyebrow {
  font-family: var(--inst);
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mid);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
  opacity: 0; transform: translateY(10px);
}
.fv-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); }

/* 主見出し */
/* 主見出し */
.fv-title { display: block; }
.fv-title-inner { display: block; }
.fv-title-ja { display: none; }

.fv-title-en {
  display: flex;
  flex-direction: column;
  font-family: var(--eb);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--ink);
  line-height: .93;
}
.fv-title-en .line  { display: block; }
.fv-title-en .word  { display: inline-block; transform: translateY(110%); will-change: transform; }

/* 段階的サイズ */
.fv-title-en .word.small { font-size: clamp(1.4rem, 2.6vw, 2.6rem); color: rgba(14,12,7,.3); }
.fv-title-en .word       { font-size: clamp(2.2rem, 4vw,  4.2rem); }
.fv-title-en .word.large { font-size: clamp(2.8rem, 5.2vw, 5.4rem); }

/* People. の「.」だけコーラル */
.fv-title-en .dot { color: #fd6b5d; }

/* タイトル下のグラデーションライン */
.fv-title-line {
  width: 0; height: 2px;
  background: linear-gradient(to right, #fd6b5d, #cef76e);
  margin-top: 20px;
  transition: width 1.2s 1.2s var(--ease);
}
.fv-title-line.on { width: 56px; }

/* リード文：左ボーダー付き */
.fv-sub {
  margin-top: 20px;
  font-family: var(--noto);
  font-size: .88rem;
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: .04em;
  color: rgba(14,12,7,.55);
  max-width: 360px;
  border-left: 2px solid rgba(14,12,7,.1);
  padding-left: 14px;
  opacity: 0; transform: translateY(12px);
}

.fv-title-en .line  { display: block; }
.fv-title-en .word  { display: inline-block; transform: translateY(110%); will-change: transform; }

/* People. だけアウトライン */
.fv-title-en .word.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

/* サブテキスト */
.fv-sub {
  margin-top: 36px;
  font-family: var(--noto);
  font-size: .9rem; font-weight: 400;
  line-height: 2.2; letter-spacing: .05em;
  color: var(--ink2); max-width: 380px;
  opacity: 0; transform: translateY(12px);
}

/* サイトインデックス */
.fv-index { margin-top: 52px; opacity: 0; transform: translateY(12px); }
.fv-index li { border-bottom: 1px solid var(--line); }
.fv-index li:first-child { border-top: 1px solid var(--line); }
.fv-index a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 0;
  font-family: var(--inst); font-size: .78rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink2);
  transition: color var(--fast), padding-right .4s var(--ease);
}
.fv-index .i-n { color: var(--accent); font-size: .5rem; }
.fv-index a:hover { color: var(--ink); padding-right: 8px; }
.fv-index .arr { font-size: .7rem; transition: transform .3s var(--ease); }
.fv-index a:hover .arr { transform: translateX(4px) translateY(-4px); }

/* 右 — ロスコ的な色面 */
.fv-r {
  position: relative; overflow: hidden;
  background: var(--off2);
}

/* 上の色面（砂色） */
.fv-r-top {
  position: absolute; left: 0; right: 0; top: 0;
  height: 58%;
  background: #fd6b5d;
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s var(--ease);
}
/* 下の色面（墨） */
.fv-r-bot {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 44%;
  background: #cef76e;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1.4s .15s var(--ease);
}
.fv-r-top.on { transform: scaleY(1); }
.fv-r-bot.on  { transform: scaleY(1); }

/* 右面のテキスト装飾 */
.fv-r-label {
  position: absolute; z-index: 2;
  bottom: 52%; right: 40px;
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: clamp(5rem, 10vw, 10rem); line-height: 1;
  letter-spacing: -.03em;
  color: rgba(248,246,241,.12);
  user-select: none; pointer-events: none; white-space: nowrap;
}
.fv-r-year {
  position: absolute; z-index: 2;
  bottom: 44%; left: 32px;
  font-family: var(--inst); font-size: .66rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(248,246,241,.35);
  writing-mode: vertical-rl;
}
.fv-r-tag {
  position: absolute; z-index: 2; top: 32px; right: 32px;
  font-family: var(--inst); font-size: .52rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(248,246,241,.0);
  transition: color .8s 1s ease;
}
.fv-r-tag.on { color: rgba(248,246,241,.28); }

/* 縦の装飾ライン */
.fv-r-deco {
  position: absolute; z-index: 3;
  bottom: 30%; left: 50%;
  width: 1px; height: 0;
  background: rgba(248,246,241,.12);
  transform-origin: top;
  transition: height 1.4s .8s var(--ease);
}
.fv-r-deco.on { height: 120px; }
.fv-r-deco::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 8px; height: 1px;
  background: rgba(248, 248, 241, 0.299);
}

/* 座標テキスト */
.fv-r-coord {
  position: absolute; z-index: 3;
  bottom: 44px; left: 36px;
  font-family: var(--inst); font-size: .5rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(248,246,241,.3);
  opacity: 0; transition: opacity .8s 1.6s ease;
}
.fv-r-coord.on { opacity: 1; }

/* スクロールヒント */
.fv-scroll {
  position: absolute; right: 40px; bottom: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0;
}
.fv-scroll-txt {
  font-family: var(--inst); font-size: .70rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--faint); writing-mode: vertical-rl;
  color: rgba(41, 28, 1, 0.51);
}
.fv-scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   SECTION COMMON
============================================================ */
.section { padding: 120px 0; position: relative; }
.inner { max-width: 1280px; margin: 0 auto; padding: 0 56px; }

.sh {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 0; margin-bottom: 72px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px;
  align-items: end;
}
.sh-n {
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: 3.2rem; color: var(--stone); line-height: 1;
  letter-spacing: -.03em; user-select: none;
}
.sh-r { display: flex; flex-direction: column; gap: 4px; }
.sh-label {
  font-family: var(--inst); font-size: .6rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent);
}
.sh-title {
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1; letter-spacing: -.01em; color: var(--ink);
}

/* ============================================================
   WORKS
============================================================ */
.works { background: var(--off); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* フィルター */
.wfilter { display: flex; gap: 0; margin-bottom: 56px; border: 1px solid var(--line); width: fit-content; }
.wf {
  font-family: var(--inst); font-size: .54rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 9px 22px; background: none;
  border: none; border-right: 1px solid var(--line);
  color: var(--sub); cursor: none;
  transition: all var(--fast);
}
.wf:last-child { border-right: none; }
.wf.on { background: var(--ink); color: var(--off); }
.wf:not(.on):hover { background: var(--off2); color: var(--ink); }

/* グリッド */
.wg {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 40px;
}
.wg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* バナー・ポスター行：正方形に近いサイズ感 */
.wg-row--sub .wcard-thumb { aspect-ratio: 4/3; }
/* バナー・ポスター行：正方形に近いサイズ感 */
.wg-row--sub .wcard-thumb { aspect-ratio: 4/3; }

.wg-col { display: flex; flex-direction: column; gap: 16px; }

/* ワークカード */
.wcard {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--off); position: relative; overflow: hidden; cursor: none;
  transition: background var(--fast);
}
.wcard:hover { background: var(--off2); }

.wcard-thumb {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  background: var(--off2);
  display: flex; align-items: center; justify-content: center;
}
.wg-col:first-child .wcard:first-child .wcard-thumb { aspect-ratio: 3/2; }

.wcard-fill { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.wcard:hover .wcard-fill { transform: scale(1.04); }

.wc1 { background: linear-gradient(150deg, #D6C9B4 0%, #B8A890 100%); }
.wc2 { background: linear-gradient(150deg, #B4BEC6 0%, #8A9AA8 100%); }
.wc3 { background: linear-gradient(150deg, #C4B8A4 0%, #A89880 100%); }
.wc4 { background: linear-gradient(150deg, #C0BABA 0%, #9A9090 100%); }
.wc5 { background: linear-gradient(150deg, #BAC0BA 0%, #909A90 100%); }
.wc6 { background: linear-gradient(150deg, #C8C0B0 0%, #ACA090 100%); }

.wcard-letter {
  position: relative; z-index: 1;
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: clamp(4rem, 10vw, 9rem);
  color: rgba(248,246,241,.2); user-select: none; letter-spacing: -.04em;
}

.wcard-over {
  position: absolute; inset: 0;
  background: rgba(14,12,7,0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; transition: background var(--med);
}
.wcard:hover .wcard-over { background: rgba(14,12,7,.72); }
.wcard-meta { transform: translateY(8px); opacity: 0; transition: all var(--med) var(--ease); }
.wcard:hover .wcard-meta { transform: none; opacity: 1; }
.wcard-tag {
  font-family: var(--inst); font-size: .5rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.wcard-nm {
  font-family: var(--eb); font-style: italic;
  font-size: 1.2rem; color: var(--off); line-height: 1.2;
}
.wcard-arr {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px;
  border: 1px solid rgba(248,246,241,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--off);
  opacity: 0; transition: opacity var(--fast), transform var(--fast) var(--ease);
}
.wcard:hover .wcard-arr { opacity: 1; transform: rotate(45deg); }

.wcard-body { margin-bottom: 28px; padding: 14px 18px; border-top: 1px solid var(--line); }
.wcard-name {
  font-size: .82rem; font-weight: 400; letter-spacing: .02em;
  color: var(--ink); margin-bottom: 3px; line-height: 1.55;
}
.wcard-info {
  font-family: var(--inst); font-size: .55rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sub);
}
.wcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;    /* 上部（FV部分）を表示 */
  position: absolute;
  inset: 0;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  background: var(--off2);
  border-bottom: 1px solid var(--line);
}
.about::before {
  content: 'ABOUT';
  position: absolute; right: -2rem; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: clamp(6rem, 12vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,7,.06);
  pointer-events: none; user-select: none; white-space: nowrap;
}

.about-grid {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 80px; align-items: start; position: relative; z-index: 1;
}
.about-l { position: sticky; top: 100px; }

/* プロフィール図形 */
.about-fig {
  width: 100%; aspect-ratio: 1;
  position: relative; overflow: hidden; background: var(--stone);
  margin-bottom: 24px;
}
.about-fig::before { display: none; }
.about-fig::after { display: none; }

/* 写真のスタイルを追加 */
.about-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;  /* 顔が上にある場合 */
  display: block;
  position: absolute;
  inset: 0;
}
.about-fig-init {
  position: absolute; z-index: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: 5rem; color: rgba(248,246,241,.12);
  letter-spacing: -.04em; user-select: none;
}
.about-fig-tag {
  position: absolute; z-index: 2; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  font-family: var(--inst); font-size: .48rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(248,246,241,.4);
}

/* スキルドット */
.sk-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.sk-row:first-child { border-top: 1px solid var(--line); }
.sk-name {
  font-family: var(--inst); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink2); font-weight: 400;
}
.sk-dots { display: flex; gap: 4px; }
.sd { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); border: 1px solid var(--line); }
.sd.on { background: var(--accent); border-color: var(--accent); }

/* About本文 */
.about-r { padding-top: 4px; }
.about-body { font-size: .88rem; font-weight: 400; line-height: 2.3; color: var(--ink2); }
.about-body p { margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }

/* 統計 */
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 44px; border: 1px solid var(--line);
}
.as-cell {
  padding: 24px 20px; border-right: 1px solid var(--line);
  transition: background var(--fast);
}
.as-cell:last-child { border-right: none; }
.as-cell:hover { background: var(--off); }
.as-n {
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -.02em;
}
.as-n sup { font-size: .9rem; color: var(--accent); }
.as-l {
  font-family: var(--inst); font-size: .52rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sub); margin-top: 5px;
}

/* ============================================================
   SKILL
============================================================ */
.skill { background: var(--off); border-bottom: 1px solid var(--line); }

.skill-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; border: 1px solid var(--line);
}
.ski {
  display: grid; grid-template-columns: 52px 1fr;
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background var(--fast);
}
.ski:hover { background: var(--off2); }
.ski:nth-child(2n) { border-right: none; }
.ski:nth-last-child(-n+2):not(:nth-child(odd)) { border-bottom: none; }
.ski:nth-last-child(1):nth-child(odd) { grid-column: span 2; border-right: none; }

.ski-n {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 32px;
  font-family: var(--eb); font-style: italic;
  font-size: .78rem; color: var(--sub);
  border-right: 1px solid var(--line); letter-spacing: .04em;
}
.ski-body { padding: 32px 28px 32px 24px; }
.ski-name {
  font-family: var(--inst); font-size: .72rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 10px;
}
.ski-name em {
  font-style: normal; color: var(--accent); font-size: .55rem;
  letter-spacing: .2em; margin-left: 10px;
}
.ski-text {
  font-size: .84rem; font-weight: 400; line-height: 2.05; color: var(--ink2);
}
.ski-dots { display: flex; gap: 4px; margin-top: 14px; }
.sk-d { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); border: 1px solid var(--line); }
.sk-d.on { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   CONTACT
============================================================ */
.contact {
  background: var(--off);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 0;
}

/* 上部カラーバー */
.contact-topbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 5px;
}
.contact-topbar-l { background: #fd6b5d; }
.contact-topbar-r { background: #cef76e; }

.contact-body {
  padding: 72px 56px 80px;
  position: relative;
}

/* 薄いグリッド線 */
.contact-body::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,12,7,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,12,7,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.contact-rule { display: none; } /* 旧ルールを非表示 */

.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  position: relative; z-index: 1;
}

.c-number {
  font-family: var(--eb); font-style: italic;
  font-size: 4rem; color: rgba(14,12,7,.06);
  line-height: 1; margin-bottom: -12px;
}
.c-tag {
  font-family: var(--inst); font-size: .52rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: #fd6b5d; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.c-tag::before { content: ''; width: 14px; height: 1px; background: #fd6b5d; }

.c-head {
  font-family: var(--eb); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 32px;
}
.c-head em {
  font-style: normal;
  background: #cef76e;
  color: var(--ink);
  padding: 0 6px;
  display: inline-block;
  line-height: 1.2;
}

.c-mail-big {
  font-family: var(--inst); font-size: .7rem;
  letter-spacing: .06em; color: var(--faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px; margin-bottom: 0;
}

.c-r { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.c-lead {
  font-family: var(--inst); font-size: .84rem; font-weight: 300;
  line-height: 2.1; color: var(--sub);
}
.c-links { display: flex; gap: 12px; flex-wrap: wrap; }
.c-link {
  font-family: var(--inst); font-size: .54rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sub); padding: 6px 14px;
  border: 1px solid var(--line); text-decoration: none;
  transition: border-color var(--fast), color var(--fast);
}
.c-link:hover { border-color: #fd6b5d; color: #fd6b5d; }

.c-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--inst); font-size: .58rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fd6b5d; background: transparent;
  padding: 14px 28px;
  border: 1.5px solid #fd6b5d;
  align-self: flex-start;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: color var(--med), background var(--med);
}
.c-btn::before {
  content: ''; position: absolute; inset: 0;
  background: #fd6b5d;
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.c-btn:hover { color: var(--off); }
.c-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.c-btn span, .c-btn svg { position: relative; z-index: 1; }
.c-btn svg { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.c-btn:hover svg { transform: translate(4px, -4px); }

.c-mail { display: none; } /* 旧メールアドレス表示を非表示 */

/* ============================================================
   PAGE TOP — 丸型・ぷかぷか浮遊
============================================================ */
#ptop {
  position: fixed; bottom: 32px; right: 32px; z-index: 400;
  width: 52px; height: 52px;
  border-radius: 50%;                              /* 丸に */
  border: 1.5px solid var(--line);
  background: var(--off);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--fast), background var(--fast),
              border-color var(--fast);
}
#ptop.show {
  border-width: 2px;
  border-color: #7e5a57;
  opacity: 1;
  transform: translateY(0);
  animation: ptop-float 3s ease-in-out infinite; /* ぷかぷか */
}
#ptop:hover {
  background: var(--ink);
  border: 2px solid var(--ink);
}
#ptop:hover .ptop-label { color: var(--off); }
#ptop:hover svg { color: var(--off); }

/* ぷかぷかアニメーション */
@keyframes ptop-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.ptop-label {
  font-family: var(--inst);
  font-size: .32rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sub);
  line-height: 1;
  transition: color var(--fast);
}
#ptop svg {
  width: 12px; height: 12px;
  color: var(--mid);
  transition: color var(--fast);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--ink2);
  padding: 0;
  position: relative;
}
.footer-main {
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: none;
}

.f-logo {
  font-family: var(--eb); font-style: italic; font-size: .95rem;
  color: rgba(248,246,241,.7);
}
.f-logo em {font-style: normal; color: rgba(248,246,241,.4);
 }
.f-sns {
  display: flex; gap: 14px;
}
.f-sns-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(248,246,241,.12);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: border-color var(--fast);
}
.f-sns-icon:hover { border-color: rgba(248,246,241,.4); }
.f-sns-icon svg {
  width: 12px; height: 12px;
  fill: none; stroke: rgba(248,246,241,.35);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.f-right {
  display: flex; justify-content: flex-end;
}
.f-copy {
  font-family: var(--inst); font-size: .48rem;
  letter-spacing: .14em; color: rgba(248,246,241,.2);
}
/* 下部カラーバー */
.footer-bar {
  display: grid; grid-template-columns: 1fr 1fr;
  height: 3px;
}
.footer-bar-l { background: #fd6b5d; opacity: .6; }
.footer-bar-r { background: #cef76e; opacity: .6; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
body.no-js .rv,
body.no-js .rv-x { opacity: 1; transform: none; }

.rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .45s; }

.rv-x {
  opacity: 0; transform: translateX(-20px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.rv-x.on { opacity: 1; transform: none; }
.rv-x.d1 { transition-delay: .1s; }
.rv-x.d2 { transition-delay: .22s; }
.rv-x.d3 { transition-delay: .34s; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
============================================================ */
@media (max-width: 1024px) {
  .wg { column-gap: 12px; }
  .inner { padding: 0 40px; }
  .header-inner { padding: 20px 40px; }
  .footer { padding: 20px 40px; }
  .fv-l { padding: 130px 40px 72px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-l { position: static; display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
  .about-fig { margin-bottom: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  #cur, #cur-dot {
        display: none !important;
    }
    /* スマホでカーソルが消えないように強制的に戻す */
    body {
        cursor: auto !important;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (≤767px)
============================================================ */
@media (max-width: 767px) {
  .inner { padding: 0 24px; }
  .header-inner { padding: 18px 24px; }
  .nav-list { display: none; }
  .hbg { display: flex; }
  .mob { display: flex; }
  .mob-close { right: 24px; }
  #fv { grid-template-columns: 1fr; min-height: 100svh; }
  .fv-l { padding: 96px 24px 48px 40px; border-right: none; border-bottom: 1px solid var(--line); }
  .fv-l::before { left: 14px; }
  .fv-r { height: 40vw; min-height: 200px; }
  .fv-r-label { display: none; }
  .fv-title-en .word.small { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .fv-title-en .word       { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .fv-title-en .word.large { font-size: clamp(2.2rem, 8.5vw, 3.4rem); }
  .fv-sub { max-width: 100%; font-size: .82rem; }
  .section { padding: 80px 0; }
  .sh { margin-bottom: 48px; }
  .wg { grid-template-columns: 1fr;
        row-gap: 16px;
        padding: 0 16px;
     }
  .skill-grid { grid-template-columns: 1fr; }
  .ski:nth-child(2n) { border-right: 1px solid var(--line); }
  .ski:nth-last-child(1):nth-child(odd) { grid-column: span 1; }
  .about-l { grid-template-columns: 1fr; }
  .footer { padding: 0; }                              /* footerのpaddingはfooter-mainで管理 */
.footer-main {
  padding: 20px 24px;
  flex-direction: column;                            /* 縦並びに */
  align-items: flex-start;
  gap: 8px;
}
.f-right { justify-content: flex-start; }           /* コピーライトを左寄せに */
  #ptop { bottom: 20px; right: 20px; }
  .ld-bottom { padding: 0 24px; }
}
