/* =========================================================
   SHUI KUROKI — site styles
   ルール：英字の補助テキストを「全部大文字＋字間広め」にしない
   ========================================================= */
:root {
  --bg: #000;
  --panel: #0c0c0c;
  --fg: #fff;
  --mute: #a1a1a1;
  --dim: #6e6e6e;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .32);

  --en: Barlow, "DIN Alternate", "DIN 2014", "Helvetica Neue", Arial, sans-serif;
  --read: #d9d9d9; /* 読ませる日本語用（飾りの --mute とは分ける） */
  --ja: "ゴシックMB101 DB JIS2004", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ja-r: "ゴシックMB101 R JIS2004", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

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

  --side: 200px;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ja);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* 数字は等幅に */
.num-f { font-family: var(--en); font-feature-settings: "lnum", "tnum"; }
/* 補助テキスト：通常の大文字小文字・字間なし */
.label {
  font-family: var(--en);
  font-feature-settings: "lnum", "tnum";
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--mute);
}
.label-ja { font-family: var(--ja-r); font-size: 13px; color: var(--mute); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Layout ---------- */
.main { width: calc(100% - var(--side)); }
.section { position: relative; padding: clamp(96px, 14vw, 200px) var(--gutter); }
.sec-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-head .no { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 13px; color: var(--dim); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); transform-origin: left center; }
.sec-head .ttl { font-family: var(--en); font-weight: 700; font-size: 15px; color: var(--fg); }

/* ---------- Sidebar (desktop) ---------- */
.side {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--side);
  z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 24px 32px 20px;
  border-left: 1px solid var(--line);
  background: var(--bg);
}
.side-logo { display: block; width: 160px; }
.side-logo img { width: 100%; }
.side-mid { display: flex; flex-direction: column; gap: 40px; }
/* ナビは現行サイトの表記・字間（0.05em）をそのまま踏襲 */
.nav { display: flex; flex-direction: column; gap: 14px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .05em;
  color: var(--fg);
  transition: color .4s var(--ease-out);
}
.nav a::before {
  content: ""; width: 0; height: 1px; background: currentColor;
  transition: width .5s var(--ease-out);
}
.nav a:hover { color: var(--mute); }
.nav a:hover::before, .nav a[aria-current="page"]::before { width: 18px; }
.nav a[aria-current="page"] { color: var(--mute); }

.side-index { display: grid; gap: 10px; }
.side-index .current {
  height: 22px; line-height: 22px; overflow: hidden; position: relative;
  font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 13px; color: var(--mute);
}
.side-index .current span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-progress { position: relative; width: 1px; height: 96px; background: var(--line); }
.side-progress i { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }
.side-foot { display: grid; gap: 16px; }
.side-foot .social { gap: 16px; }
.side-foot .social a { width: 16px; height: 16px; }
.side-foot .clock { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 13px; color: var(--mute); }

/* ---------- Mobile header ---------- */
.mhead { display: none; }
.mmenu { display: none; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.intro-bg { position: absolute; inset: 0; background: #fff; transform-origin: top center; }
.intro-mark {
  position: fixed; left: 50%; top: 50%;
  width: min(92vw, 1600px);
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  z-index: 101;
}
.intro-mark img { width: 100%; }
html:not(.has-intro) .intro { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 160px;
}
.hero-copy {
  font-family: var(--ja); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.32; letter-spacing: .04em;
}
.hero-sub { display: flex; align-items: center; gap: 24px; margin-top: clamp(32px, 4vw, 56px); }
.hero-sub img { width: clamp(160px, 16vw, 240px); }
.hero-sub .role { font-family: var(--en); font-weight: 600; font-size: 14px; color: var(--mute); }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.scroll-cue .bar { position: relative; width: 72px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-cue .bar::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); }
}

/* ---------- Concept ---------- */
.concept { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concept-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.concept-kicker { margin-bottom: 24px; font-family: var(--ja); font-weight: 700; font-size: 15px; color: var(--mute); letter-spacing: .04em; }
.concept-title {
  font-weight: 700; font-size: clamp(32px, 4.4vw, 72px); line-height: 1.36; letter-spacing: .04em;
}
.concept-body {
  font-family: var(--ja-r); font-weight: 400;
  font-size: 15px; line-height: 2.2; letter-spacing: .06em; color: var(--read);
}
.concept-body p + p { margin-top: 1.4em; }
.services { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr 1.2fr; align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.service .no { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 13px; color: var(--dim); }
.service .name { font-family: var(--en); font-weight: 700; font-size: clamp(20px, 2.2vw, 32px); }
.service .desc { font-family: var(--ja-r); font-size: 15px; color: var(--read); letter-spacing: .06em; }

/* ---------- Works (horizontal) ---------- */
.works { padding-left: 0; padding-right: 0; overflow: hidden; }
@media (min-width: 1025px) {
  .works { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 48px; }
  .works .sec-head { margin-bottom: 40px; }
  .works .works-intro { margin-top: 0; margin-bottom: 32px; }
  .works .works-intro h2 { font-size: clamp(48px, min(6vw, 9vh), 104px); }
  .works .work, .works .work-all { width: clamp(220px, min(24vw, 42vh), 400px); }
  .works .works-progress { margin-top: 32px; }
}
.works .sec-head, .works-intro { padding: 0 var(--gutter); }
.works-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: -40px 0 clamp(40px, 5vw, 64px); }
.works-intro h2 { font-family: var(--en); font-weight: 700; font-size: clamp(48px, 7vw, 120px); line-height: .95; letter-spacing: -.01em; }
.works-counter { display: flex; align-items: baseline; gap: 8px; font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; }
.works-counter .now { font-size: 32px; display: inline-block; min-width: 2ch; }
.works-counter .total { font-size: 14px; color: var(--dim); }
.works-pin { position: relative; }
.works-track {
  display: flex; gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter);
  width: max-content;
  counter-reset: work;
}
.work { position: relative; width: clamp(260px, 24vw, 400px); flex: none; counter-increment: work; }
.work-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.work-media img {
  position: absolute; top: 0; left: -8%;
  width: 116%; height: 100%; max-width: none; object-fit: cover;
  filter: brightness(.82) saturate(.85);
  transform: scale(1.02);
  transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.work:hover .work-media img { filter: brightness(1) saturate(1); transform: scale(1.07); }
.work-cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 12px; padding-top: 16px; }
.work-cap::before { content: counter(work, decimal-leading-zero); font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 12px; color: var(--dim); }
.work-title { font-family: var(--en); font-weight: 700; font-size: 16px; }
.work-arrow { font-family: var(--en); font-size: 14px; color: var(--dim); transition: transform .5s var(--ease-out), color .5s; }
.work-sub { grid-column: 2 / 4; font-family: var(--ja-r); font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.work:hover .work-arrow { transform: translateX(4px); color: #fff; }
.work-line { height: 1px; background: var(--line); margin-top: 16px; position: relative; overflow: hidden; }
.work-line::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.work:hover .work-line::after { transform: scaleX(1); }
.work-all {
  width: clamp(260px, 24vw, 400px); flex: none;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  transition: background .6s var(--ease-out), color .6s var(--ease-out);
}
.work-all:hover { background: #fff; color: #000; }
.work-all .count { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 14px; color: var(--mute); transition: color .6s; }
.work-all:hover .count { color: #555; }
.work-all .big { font-family: var(--en); font-weight: 700; font-size: clamp(32px, 3vw, 48px); line-height: 1.05; }
.work-all .arrow { font-family: var(--en); font-size: 28px; align-self: flex-end; transition: transform .6s var(--ease-out); }
.work-all:hover .arrow { transform: translateX(8px); }
.works-progress { margin: clamp(40px, 5vw, 64px) var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.works-progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 140px); align-items: center; }
.profile-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.profile-media img { position: absolute; inset: -5% 0; width: 100%; height: 110%; max-width: none; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.profile-role { margin-bottom: 16px; }
.profile-name { font-weight: 700; font-size: clamp(36px, 4.4vw, 64px); letter-spacing: .08em; line-height: 1.2; }
.profile-name .nm, .js-motion .profile-name .line > .nm { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .1em .45em; }
.profile-name .en { font-family: var(--en); font-weight: 600; font-size: .5em; letter-spacing: 0; }
.profile-lead { margin-top: 40px; font-family: var(--ja-r); font-size: 15px; line-height: 2.1; letter-spacing: .06em; color: var(--read); }
.profile-facts { margin-top: 40px; border-top: 1px solid var(--line); }
.profile-facts li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--ja-r); font-size: 14px; letter-spacing: .04em; line-height: 1.8; color: var(--read); }
.profile-facts .y { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; color: var(--dim); }

/* ---------- Link button ---------- */
.link-more {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 48px;
  font-family: var(--en); font-weight: 700; font-size: 15px;
}
.link-more .circle {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; overflow: hidden;
  transition: background .5s var(--ease-out), border-color .5s;
}
.link-more .circle span { transition: transform .5s var(--ease-out); }
.link-more:hover .circle { background: #fff; border-color: #fff; color: #000; }
.link-more:hover .circle span { transform: translateX(3px); }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: 40px 24px 36px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num .v { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 700; font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -.01em; }
.num .k { margin-top: 16px; }

/* ---------- Clients ---------- */
.clients-head { margin-bottom: 40px; }
.clients-head h2 { font-family: var(--en); font-weight: 700; font-size: clamp(36px, 5vw, 80px); line-height: 1; }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client { position: relative; background: var(--bg); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.client img { width: 100%; filter: grayscale(1) contrast(1.05); opacity: .62; transition: filter .6s var(--ease-out), opacity .6s, transform .8s var(--ease-out); }
.client:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
.client .name {
  position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: #000;
  font-family: var(--en); font-weight: 600; font-size: 12px; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out);
}
.client:hover .name { opacity: 1; transform: none; }

/* ---------- Contact CTA ---------- */
.cta { border-top: 1px solid var(--line); }
.cta-link { display: block; }
.cta-title {
  font-family: var(--en); font-weight: 700;
  font-size: clamp(44px, 8.4vw, 148px); line-height: 1.02; letter-spacing: -.02em;
}
.cta-title .ul { position: relative; display: inline-block; }
.cta-title .ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .04em; min-height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease-out);
}
.cta-link:hover .cta-title .ul::after { transform: scaleX(1); transform-origin: left; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; }
.cta-sub { font-family: var(--ja-r); font-size: 15px; color: var(--read); letter-spacing: .06em; }
.cta-arrow {
  width: clamp(72px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-family: var(--en); font-size: clamp(22px, 2.4vw, 36px);
  transition: background .6s var(--ease-out), color .6s, transform .6s var(--ease-out);
}
.cta-link:hover .cta-arrow { background: #fff; color: #000; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.foot { position: relative; padding: 0 var(--gutter) 24px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; }
.foot-nav { display: flex; gap: 32px; }
.foot-nav a, .totop { font-family: var(--en); font-weight: 600; font-size: 14px; color: var(--mute); transition: color .4s; }
.foot-nav a:hover, .totop:hover { color: #fff; }
.social { display: flex; gap: 20px; }
.social a { width: 18px; height: 18px; color: var(--mute); transition: color .4s; }
.social a:hover { color: #fff; }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.foot-mark { overflow: hidden; padding-top: 24px; }
.foot-mark img { width: 100%; }
.foot-copy { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.foot-copy small { font-family: var(--en); font-size: 12px; color: var(--dim); }

/* ---------- Page transition ---------- */
.pt { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95; background: #fff; transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 99;
    width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: #fff; mix-blend-mode: difference; pointer-events: none;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
  }
  .cursor span { font-family: var(--en); font-weight: 700; font-size: 13px; color: #000; opacity: 0; transition: opacity .3s; }
  .cursor.is-view { width: 88px; height: 88px; margin: -44px 0 0 -44px; mix-blend-mode: normal; }
  .cursor.is-view span { opacity: 1; }
  .cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .cursor.is-hidden { opacity: 0; }
}


/* =========================================================
   Motion pre-states (only when JS motion is active)
   ========================================================= */
/* 欧文のディセンダー（g, y, p など）が切れないよう、マスク枠の上下に余白を持たせる */
.js-motion [data-reveal="lines"] .line { display: block; overflow: hidden; padding: .08em 0 .22em; margin: -.08em 0 -.22em; }
.js-motion [data-reveal="lines"] .line > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.js-motion [data-reveal="fade"] { opacity: 0; transform: translateY(24px); }
.js-motion [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.js-motion [data-reveal="rule"] { transform: scaleX(0); }
.js-motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(16px); }
.js-motion.has-intro .side-logo { opacity: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  :root { --side: 0px; }
  .main { width: 100%; }
  .side { display: none; }
  .mhead {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; mix-blend-mode: difference;
  }
  .mhead .logo { width: 128px; }
  .mhead button, .mmenu .close {
    appearance: none; background: none; border: 0; color: #fff; padding: 8px 0;
    font-family: var(--en); font-weight: 700; font-size: 14px; cursor: pointer;
  }
  .mmenu {
    position: fixed; inset: 0; z-index: 70; background: #000;
    display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 24px;
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
  }
  .mmenu.is-open { clip-path: inset(0 0 0 0); }
  .mmenu a { font-family: var(--en); font-weight: 700; font-size: 44px; letter-spacing: .02em; }
  .mmenu a small { font-size: 12px; color: var(--dim); margin-right: 12px; vertical-align: middle; font-feature-settings: "lnum", "tnum"; }
  .mmenu .close { position: absolute; top: 16px; right: 20px; }
  .concept-grid, .profile-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 40px 1fr; gap: 8px 16px; }
  .service .desc { grid-column: 2 / 3; }
  .profile-media { max-width: 360px; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .num { padding: 32px 16px 28px; }
  .works-pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .works-pin::-webkit-scrollbar { display: none; }
  .work, .work-all { scroll-snap-align: start; scroll-margin-left: var(--gutter); width: 72vw; }
}
@media (max-width: 600px) {
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 12px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-row { flex-wrap: wrap; }
  .foot-nav { gap: 20px; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue .bar::after { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   Sub pages (Profile / Contact)
   ========================================================= */
.page-head { padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(56px, 7vw, 96px); }
.crumb { display: flex; gap: 10px; font-family: var(--en); font-weight: 600; font-size: 13px; color: var(--dim); margin-bottom: 24px; }
.crumb a { color: var(--mute); transition: color .4s; }
.crumb a:hover { color: #fff; }
.page-title { font-family: var(--en); font-weight: 700; font-size: clamp(56px, 9vw, 152px); line-height: .95; letter-spacing: -.01em; }
.page-lead { margin-top: clamp(24px, 3vw, 40px); max-width: 40em; font-family: var(--ja-r); font-size: 15px; line-height: 2.1; letter-spacing: .06em; color: var(--read); }
.sub-section { padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }

/* Profile: intro */
.pf-intro { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 140px); align-items: start; padding: 0 var(--gutter) clamp(96px, 12vw, 160px); }
.pf-catch { margin-top: 40px; font-weight: 700; font-size: clamp(20px, 2vw, 28px); line-height: 1.7; letter-spacing: .04em; }

/* Profile: career */
.career { border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.career .y { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 18px; }
.career .org { font-weight: 700; font-size: 17px; letter-spacing: .04em; line-height: 1.7; }
.career .org-line { display: block; }
.career .now.now--dual { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.career .role { display: block; margin-top: 4px; font-family: var(--ja-r); font-weight: 400; font-size: 14px; color: var(--read); letter-spacing: .04em; }
.career .now { font-family: var(--ja-r); font-size: 11px; line-height: 1; color: #fff; background: transparent; border: 1px solid #fff; padding: 5px 9px 4px; white-space: nowrap; }

/* Profile: biography */
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 120px); }
.bio-meta { font-family: var(--ja-r); font-size: 15px; line-height: 2; color: var(--read); letter-spacing: .04em; }
.bio-meta strong { display: block; margin-bottom: 8px; font-family: var(--ja); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: .08em; }
.bio-body { font-family: var(--ja-r); font-size: 15px; line-height: 2.2; letter-spacing: .06em; color: var(--read); }
.bio-body p + p { margin-top: 1.6em; }

/* Profile: awards / academic */
.honors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); }
.honors h3 { font-family: var(--en); font-weight: 700; font-size: clamp(22px, 2vw, 30px); margin-bottom: 24px; }
.honors ul { border-top: 1px solid var(--line); }
.honors li { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--ja-r); font-size: 15px; line-height: 1.8; color: var(--read); letter-spacing: .04em; }
.honors li b { display: block; font-family: var(--ja); font-weight: 700; color: #fff; }
.honors-media { margin-top: 32px; overflow: hidden; }
.honors-media img { width: 100%; }

/* Contact */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 120px); padding: 0 var(--gutter) clamp(96px, 12vw, 160px); }
.ct-note { font-family: var(--ja-r); font-size: 15px; line-height: 2.1; letter-spacing: .06em; color: var(--read); }
.ct-note p + p { margin-top: 1.4em; }
.ct-topics { margin-top: 32px; border-top: 1px solid var(--line); }
.ct-topics li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--ja-r); font-size: 14px; color: var(--read); }
.ct-topics li span { font-family: var(--en); font-weight: 600; color: var(--dim); }
.form { display: grid; gap: 40px; }
.field { position: relative; display: grid; gap: 12px; }
.field label { display: flex; align-items: baseline; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.field label .no { font-family: var(--en); font-weight: 600; font-size: 13px; color: var(--dim); }
.field label .req { margin-left: auto; font-family: var(--ja-r); font-weight: 400; font-size: 12px; color: var(--mute); }
.field input, .field textarea {
  width: 100%; appearance: none; border: 0; border-radius: 0; background: transparent; color: #fff;
  padding: 12px 0 14px; font-family: var(--ja-r); font-size: 17px; letter-spacing: .04em; line-height: 1.7;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  outline: none;
}
.field textarea { min-height: 200px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6e6e6e; }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); pointer-events: none; }
.field input:focus ~ .bar, .field textarea:focus ~ .bar { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-foot p { font-family: var(--ja-r); font-size: 13px; color: var(--mute); line-height: 1.8; }
.submit {
  appearance: none; border: 0; background: none; color: #fff; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 20px;
  font-family: var(--ja); font-weight: 700; font-size: 17px; letter-spacing: .06em;
}
.submit .circle {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--en); font-size: 22px;
  transition: background .6s var(--ease-out), color .6s, transform .6s var(--ease-out);
}
.submit:hover .circle, .submit:focus-visible .circle { background: #fff; color: #000; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .pf-intro, .bio, .honors, .ct-grid { grid-template-columns: 1fr; }
  .pf-intro .profile-media { max-width: 320px; }
  .career li { grid-template-columns: 72px minmax(0, 1fr); }
  .career .now { grid-column: 2; justify-self: start; }
}
.honors-note { margin-top: 16px; font-family: var(--ja-r); font-size: 13px; color: var(--mute); }

/* =========================================================
   Design list
   ========================================================= */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.list-count { font-family: var(--en); font-feature-settings: "lnum", "tnum"; font-weight: 600; font-size: 15px; color: var(--mute); padding-bottom: .6em; }
.list-section { padding: 0 var(--gutter) clamp(96px, 12vw, 160px); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 40px); counter-reset: work; }
.works-grid .work { width: auto; }
.works-grid .work-media img { left: 0; width: 100%; }
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid .work { width: auto; scroll-snap-align: none; }
}
@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
}

/* TOP: 数字ブロック削除後の余白整理（Profile と Clients の間を1区間分に） */
.profile + .clients { padding-top: 0; }

/* =========================================================
   Case (design detail)
   ========================================================= */
.case-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.case-catch { font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.6; letter-spacing: .04em; }
.case-desc { margin-top: 20px; font-family: var(--ja-r); font-size: 15px; line-height: 2.1; letter-spacing: .06em; color: var(--read); }
.case-meta { border-top: 1px solid var(--line); }
.case-meta div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-family: var(--en); font-weight: 600; font-size: 13px; color: var(--dim); }
.case-meta dd { font-family: var(--ja-r); font-size: 14px; color: var(--read); line-height: 1.7; }
.case-hero { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 0 var(--gutter); background: #111; }
.case-hero img { position: absolute; inset: -5% 0; width: 100%; height: 110%; max-width: none; object-fit: cover; }
.case-gallery { display: grid; gap: clamp(16px, 2vw, 32px); padding: clamp(16px, 2vw, 32px) var(--gutter) clamp(96px, 12vw, 160px); }
.case-gallery figure { margin: 0; background: #111; }
.case-gallery img { width: 100%; }

.case-nav { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.case-nav a { display: block; padding: clamp(40px, 5vw, 72px) var(--gutter); transition: background .6s var(--ease-out); }
.case-nav a:hover { background: #111; }
.case-nav .prev { border-right: 1px solid var(--line); }
.case-nav .k { display: flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 600; font-size: 13px; color: var(--mute); }
.case-nav .t { margin-top: 16px; font-family: var(--en); font-weight: 700; line-height: 1.05; }
.case-nav .prev .t { font-size: clamp(20px, 2vw, 28px); }
.case-nav .next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.case-nav .next .t { font-size: clamp(36px, 5.4vw, 88px); }
.case-nav .thumb { width: clamp(96px, 11vw, 168px); aspect-ratio: 1; overflow: hidden; }
.case-nav .thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: transform 1s var(--ease-out), filter .6s; }
.case-nav .next:hover .thumb img { transform: scale(1.08); filter: brightness(1); }
.case-nav .arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.case-nav .next:hover .arrow { transform: translateX(6px); }
.case-nav .prev:hover .arrow { transform: translateX(-6px); }
.case-back { display: flex; justify-content: center; padding: 40px var(--gutter); border-top: 1px solid var(--line); }
.case-back a { font-family: var(--en); font-weight: 600; font-size: 14px; color: var(--mute); transition: color .4s; }
.case-back a:hover { color: #fff; }

@media (max-width: 1024px) {
  .case-intro { grid-template-columns: 1fr; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav .prev { border-right: 0; border-bottom: 1px solid var(--line); }
}
/* Case: 生成テンプレート用 */
.case-reading { margin-top: 16px; font-family: var(--ja-r); font-size: 14px; color: var(--mute); letter-spacing: .12em; }
.case-sub { font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.9; letter-spacing: .04em; }
.case-sub + .case-desc { margin-top: 24px; }
.case-intro { align-items: start; }
.case-intro.no-meta { grid-template-columns: minmax(0, 1fr); max-width: 52em; }
.case-video { position: relative; aspect-ratio: 16 / 9; background: #111; }
.case-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 長い英単語の見出しがスマホ幅ではみ出さないように */
.page-title { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .page-title { font-size: clamp(36px, 10.5vw, 56px); }
}

/* Next project: スマホ幅でタイトルと写真が重ならないように */
.case-nav .next > span:first-child { min-width: 0; }
.case-nav .next .t { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .case-nav .next { gap: 16px; }
  .case-nav .next .t { font-size: clamp(22px, 6.8vw, 34px); line-height: 1.15; }
  .case-nav .thumb { width: 72px; }
}

/* Profile: 強み3点と経歴の要約（2026-12 追加） */
.pf-values { margin-top: 32px; border-top: 1px solid var(--line); }
.pf-values li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pf-values strong { font-weight: 700; font-size: 15px; letter-spacing: .08em; color: #fff; }
.pf-values span { font-family: var(--ja-r); font-size: 15px; line-height: 1.9; letter-spacing: .06em; color: var(--read); }
.pf-proof { margin-top: 28px; display: grid; gap: 8px; }
.pf-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--ja-r); font-size: 14px; letter-spacing: .04em; line-height: 1.8; color: var(--read); }
.pf-path .ar { font-family: var(--en); color: var(--dim); }
.pf-award { font-family: var(--ja-r); font-size: 14px; letter-spacing: .04em; color: var(--read); }
@media (max-width: 600px) {
  .pf-values li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}
