/* ===== STUDIO HOLIDAY — sticker-wall first view (prototype) ===== */

:root {
  --surface: #f1fcfc;
  --surface-2: #f0f0f0;
  --ink: #1a1a1a;
  --white: #ffffff;
  --lime: #bbff38;
  --orange: #f57424;
  --blue: #3b73f8;
  --green: #36f718;
  --grid-line: #dff5f7;
  /* FV（ファーストビュー）の背景。?tune パネルからJSで上書きできる。
   * テクスチャ（ハーフトーン・方眼等）は main.js の applyFvParams() が
   * --fv-texture / --fv-texture-size に合成してセットする */
  --fv-bg: #ececec;        /* 本番デフォルト: ライトグレー */
  --fv-texture: url("./assets/texture-halftone.png"); /* 本番デフォルト: アナログハーフトーン（no-JS時の保険） */
  --fv-texture-size: 720px auto;
  --font-en: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Noto Sans CJK JP", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
}

body {
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--white);
  padding-left: 0;
}

/* ---------- header ----------
 * Figma第3弾（Frame 46）準拠: 白い角丸ピル（ロゴ+社名+ナビ）の右端にライムの
 * 「お問い合わせ」が一体でつながる。枠線なし・うっすら落ち影。position:fixed でスクロールに追従。 */
.site-header {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1150; /* ticker(1100)より手前・モーダル(1200)より奥 */
  display: flex;
  align-items: stretch;
  gap: 0;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.08)); /* Figma: sticker-ds 相当 */
  pointer-events: none;
}
.header-pill {
  display: flex;
  align-items: center;
  gap: 40px; /* Figma: ロゴ→ナビ間 40 */
  background: var(--white);
  padding: 16px 24px 16px 16px; /* Figma: 上下16 / 左16 / 右24 */
  border-radius: 50px 0 0 50px;
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}
/* ロゴ画像はFigmaと同じく 56x30 の窓でアーチ部分だけを見せる */
.brand-logo {
  position: relative;
  width: 56px;
  height: 30px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo img {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 221px;
  height: 48px;
  max-width: none;
  transform: translateX(-50%);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}
.site-nav a:hover { opacity: 0.55; }
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background-color: var(--fig-lime);
  border-radius: 0 50px 50px 0;
  color: #1a1a1a;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  pointer-events: auto;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-contact:hover { background-color: var(--ink); color: var(--fig-lime); }

/* ハンバーガーボタン / メニュー内のお問い合わせ: スマホでのみ使う */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-contact { display: none; }

/* ---------- hero: 回遊できる「壁」 ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  touch-action: none; /* モバイルはドラッグ＝壁のパン。下層へはナビから */
  user-select: none;  /* ドラッグ回遊中に文字が選択されないように */
  -webkit-user-select: none;
}
.hero.is-scrolled { touch-action: pan-y; } /* ページ先頭から離れている間は縦スワイプ＝ページスクロール（main.js） */
.hero.can-pan { cursor: grab; }
.hero.can-pan.is-panning { cursor: grabbing; }

/* ドラッグ操作のヒント（控えめ） */
.drag-hint {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  font-family: "Roboto", "Zen Maru Gothic", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #2a262277;
  z-index: 991;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* スクロールで本編に行けることをはっきり示すCTA */
.scroll-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 22px;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 991; /* ロゴ(990)より上・ヘッダー(1000)より下 */
  transition: opacity 0.4s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.scroll-cta em {
  font-style: normal;
  animation: bob 1.4s ease-in-out infinite;
}
.scroll-cta:hover { transform: translateX(-50%) translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.hero.is-intro .drag-hint,
.hero.is-intro .scroll-cta { opacity: 0; pointer-events: none; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ビューポートより広い壁。カメラ（translate+scale）で映す範囲を動かす。
 * JSがサイズを設定するまでの一瞬はビューポートと同サイズ（中央の文字が正しく中央に出る） */
.world {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.world.is-zooming { transition: transform 1.45s cubic-bezier(0.7, 0, 0.25, 1); }

/* 壁の中央: Design & Deploy Partner。イントロの最後にロゴが上に貼られる */
.world-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 200; /* 通常ステッカー(〜数百)より手前・ロゴ(990)より奥 */
  pointer-events: none;
}
/* 中央のキャッチコピー（ライムの手書きレタリング）とロゴ（Figma 235:1066 / 235:1097） */
.world-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.fv-catch {
  width: min(445px, 64vw);
  height: auto;
  animation: fadeIn 0.6s ease both;
}
.fv-logo {
  width: min(316px, 46vw);
  height: auto;
  animation: fadeIn 0.6s ease both;
}
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- sticker ----------
 * 白フチ（輪郭ダイカット）と落ち影はJS側でCanvasに焼き込み済み。
 * ここでは配置と手触り（ポップイン / ホバーの持ち上げ）だけを担当する。
 */
.sticker {
  position: absolute;
  transform-origin: center;
  transform: var(--tf);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1.4);
  text-decoration: none; /* ステッカーは<a>（クリックでWorksへ） */
}
.sticker.is-popping { animation: pop 0.42s cubic-bezier(.18,.9,.3,1.35) both; }

.sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

@keyframes pop {
  0%   { transform: var(--tf) scale(0);   opacity: 0; }
  70%  { transform: var(--tf) scale(1.08); opacity: 1; }
  100% { transform: var(--tf) scale(1); }
}

/* hover で少し持ち上がる手触り（989 = 社名ロゴ(1090)は超えない） */
.sticker:hover {
  z-index: 989 !important;
  transform: var(--tf) scale(1.06) translateY(-2px);
}

/* ---------- 素材エフェクト（ホログラム / ラメ） ----------
 * 台紙の形のマスク（--fx-mask, JSが生成）で切り抜いた光の層。
 * .sticker は transform を持つのでスタッキングコンテキストになり、
 * ブレンドはステッカーの絵柄・台紙とだけ起こる（壁の背景には混ざらない）。
 * 動かすのは transform / opacity だけ。 */
.sticker-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: var(--fx-mask) center / 100% 100% no-repeat;
          mask: var(--fx-mask) center / 100% 100% no-repeat;
}
.sticker-fx > span {
  position: absolute;
  pointer-events: none;
}

/* ホログラム: 虹色の層（斜めに流れる）+ 白い光の帯 */
.sticker-fx--holo .fx-rainbow {
  inset: -50% -150%;
  background: repeating-linear-gradient(
    115deg,
    #ff8fcf 0%, #ffd36e 8%, #a6ff8a 16%, #6fe3ff 24%, #a98bff 32%, #ff8fcf 40%
  );
  mix-blend-mode: multiply;
  opacity: 0.42;
  animation: fxHoloShift 6s ease-in-out var(--fx-delay, 0s) infinite alternate;
}
.sticker-fx--holo .fx-glare {
  inset: -20% -60%;
  background: linear-gradient(
    115deg,
    transparent 38%, rgba(255, 255, 255, 0.75) 47%, rgba(255, 255, 255, 0.15) 51%,
    rgba(255, 255, 255, 0.55) 54%, transparent 62%
  );
  mix-blend-mode: screen;
  animation: fxGlare 4.5s ease-in-out var(--fx-delay, 0s) infinite;
}
.sticker:hover .sticker-fx--holo .fx-rainbow { animation-duration: 2.4s; }

@keyframes fxHoloShift {
  from { transform: translateX(-22%); }
  to   { transform: translateX(22%); }
}
@keyframes fxGlare {
  0%, 20%  { transform: translateX(-60%); }
  70%, 100% { transform: translateX(60%); }
}

/* ラメ: 銀色の薄い色味 + 粒の層2枚を交互に点滅 */
.sticker-fx--glitter .fx-tint {
  inset: 0;
  /* 白い台紙でも粒が見えるよう、銀色の濃淡を敷いてから明るい粒を重ねる */
  background:
    linear-gradient(115deg, rgba(150, 160, 185, 0.55), rgba(225, 230, 240, 0.25) 35%, rgba(160, 150, 190, 0.5) 60%, rgba(215, 225, 240, 0.3));
  mix-blend-mode: multiply;
}
.sticker-fx--glitter .fx-sparkle {
  inset: 0;
  background: var(--fx-glitter) 0 0 / 80px 80px repeat;
  mix-blend-mode: screen;
  animation: fxTwinkle 1.8s ease-in-out var(--fx-delay, 0s) infinite alternate;
}
.sticker-fx--glitter .fx-sparkle--b {
  background-position: 37px 23px;
  background-size: 64px 64px;
  animation-direction: alternate-reverse;
  animation-duration: 2.3s;
}
@keyframes fxTwinkle {
  from { opacity: 0.15; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sticker-fx > span { animation: none !important; }
  .sticker-fx--glitter .fx-sparkle { opacity: 0.7; }
  .sticker-fx--glitter .fx-sparkle--b { opacity: 0.35; }
}

/* ---------- 輪郭タグ ----------
 * ステッカーの実績情報を外周パスに沿わせて表示するSVGオーバーレイ。
 * 文字サイズ・縁取り太さはJS側でviewBox比にスケールして画面上12px相当にする */
.tag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.tag-svg.is-hiding { opacity: 0; }
/* 文字の下に敷くライムの帯（パスをダッシュで文字分だけ描く。太さはJS側で指定） */
.tag-svg path {
  stroke: var(--fig-lime);
  fill: none;
  stroke-linecap: butt; /* 帯の端は角丸にしない */
  stroke-linejoin: miter;
}
.tag-svg text {
  font-family: var(--font-ja);
  font-weight: 700;
  fill: var(--ink);
}

/* ---------- 社名ロゴステッカー ---------- */
/* 常にどのステッカーよりも手前。クリックで About へ */
.sticker-logo,
.sticker-logo:hover {
  z-index: 1090 !important;
}

/* ロゴの白台紙（DOM版）: 中央の「Design & Deploy Partner」に覆い被さる */
.logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: 6px 10px 18px rgba(40, 33, 24, 0.28);
}
.logo-plate img {
  width: 88% !important;
  height: auto !important;
  object-fit: contain;
}

/* ---------- 写真（ポラロイド風カード） ---------- */
/* クリックで外部ページ（KDCイベントレポート等）かサイト内記事へ */
.photo-card {
  position: absolute;
  display: block;
  background: var(--white);
  padding: 8px 8px 10px;
  box-shadow: 3px 6px 12px rgba(40, 33, 24, 0.22);
  transform: var(--tf);
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1.4);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.photo-card.is-popping { animation: pop 0.42s cubic-bezier(.18,.9,.3,1.35) both; }
.photo-card:hover {
  z-index: 989 !important;
  transform: var(--tf) scale(1.05) translateY(-2px);
}
.photo-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.photo-emoji { font-size: 44px; }
.photo-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
/* 外部サイトへのリンクであることを示すアイコン（カードの右下・キャプションの横） */
.photo-ext {
  position: absolute;
  right: 8px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--ink);
  pointer-events: none;
}
.photo-card:has(.photo-ext) .photo-cap { padding-right: 22px; padding-left: 22px; }
.home-page .photo-card:has(.photo-ext) .photo-cap { padding-left: 8px; }
.photo-cap {
  display: block;
  padding-top: 7px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}

/* ---------- ステッカー詳細ドロワー（右からスライドイン） ---------- */
.work-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.work-drawer[hidden] { display: none; }
.work-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* 記事を読む幅として画面の40%。狭い画面では従来どおり画面いっぱいに寄せる */
  width: min(100vw, max(560px, 50vw)); /* 作品詳細ページと同じ組みが入る幅 */
  background: var(--white);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain; /* 記事の端まで来ても背面ページに送らない */
  transform: translateX(102%); /* border込みで完全に隠す */
  transition: transform 0.38s cubic-bezier(0.25, 0.9, 0.3, 1);
}
.work-drawer.is-open .work-drawer-backdrop { opacity: 1; }
.work-drawer.is-open .work-drawer-panel { transform: none; }
.work-drawer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: none;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
}
.work-drawer-close:hover { opacity: 1; }
/* 中身は作品詳細ページ（.wd-*）と同じ部品。ドロワーの幅に合わせて寸法だけ詰める */
.work-drawer .wd-hero { height: 260px; }
.work-drawer .wd-visual { top: 72px; width: 260px; height: 260px; }
.work-drawer .wd-visual.is-pasting img { animation: rvStickerPaste 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) 0.25s both; }
.work-drawer .wd-main { width: min(600px, calc(100% - 48px)); margin-top: 110px; padding-bottom: 0; }
.work-drawer .wd-main--head { padding-bottom: 48px; }
.work-drawer .wd-main--body { margin-top: 0; padding: 0 0 56px; }
.work-drawer .wd-main--body > .work-body,
.work-drawer .wd-main--body > .work-note { margin-top: 40px; }
.work-drawer .wd-main h1 { font-size: clamp(32px, 3.4vw, 52px); }
.work-drawer .work-body,
.work-drawer .work-note { max-width: none; }
.work-drawer .wd-main .work-body h2,
.work-drawer .wd-main .work-body h3 { margin: 40px 0 16px; font-size: 22px; }
.work-drawer .work-credit { max-width: none; margin-top: 48px; }
.work-drawer .work-credit dt { width: 128px; font-size: 12px; }
/* 本文・クレジットの下に置くコンパクトな帯（見出し・カードとも小さめ）。パネルの末尾なので下余白は広め */
.work-drawer .wd-related { padding: 32px 24px 64px; }
.work-drawer .wd-related[hidden] { display: none; }
.work-drawer .wd-related h2 { margin-bottom: 24px; font-size: 20px; }
.work-drawer .works-board .works-grid { grid-template-columns: repeat(3, minmax(0, 170px)); max-width: none; gap: 14px; }
.work-drawer .works-board .work-card { height: auto; aspect-ratio: 5 / 6; }
.work-drawer .works-board .work-card-visual { padding: 14px; }
.work-drawer .works-board .work-card-body { gap: 6px; padding: 10px 12px 12px; }
.work-drawer .works-board .work-card-title { font-size: 14px; }
.work-drawer .work-card-tags span { font-size: 10px; }
.work-drawer .wd-related .works-all { height: 48px; margin-top: 24px; }
/* 閉じるボタンはライムの帯の上でも見えるよう白い丸に。記事をスクロールしても右上に残す
 * （パネルは transform 付きなので fixed はパネル基準になり、中身と一緒に流れない） */
.work-drawer-close {
  position: fixed;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  font-size: 24px;
  opacity: 1;
}
.work-drawer-close:hover { background: var(--ink); color: var(--fig-lime); }
/* ドロワーを開いている間は背面（ページ本体）を動かさない */
body.drawer-open { overflow: hidden; }

/* --- クレジット（本文の一番下） --- */
.work-credit {
  max-width: 760px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.work-credit h2 {
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.work-credit dl { margin: 0; font-size: 13px; line-height: 1.8; }
.work-credit dl > div { display: flex; gap: 16px; padding: 6px 0; }
.work-credit dt { width: 180px; flex-shrink: 0; margin: 0; font-weight: 700; color: var(--bk-80); }
.work-credit dd { flex: 1; margin: 0; }
.work-drawer .work-credit { max-width: none; margin-top: 40px; }
.work-drawer .work-credit dt { width: 128px; font-size: 12px; }

/* ---------- ニュースレター（Substack）動線: 左端の縦型電光掲示板 ---------- */
.news-ticker {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #17140f;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.25);
}
.ticker-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 0 12px;
  writing-mode: vertical-rl;
  align-self: center;
  color: #ffc63a;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  border-bottom: 2px solid #ffffff1a;
}
.ticker-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc63a;
  box-shadow: 0 0 6px #ffc63a;
  animation: blink 1.4s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.ticker-window {
  flex: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-decoration: none;
}
.ticker-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tickerMove 40s linear infinite;
}
.ticker-window:hover .ticker-track { animation-play-state: paused; }
.ticker-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding-bottom: 56px;
  color: #ffd94e;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 8px #ffb80055;
}
.ticker-set span,
.ticker-set a { writing-mode: vertical-rl; white-space: nowrap; }
.ticker-set a { color: inherit; text-decoration: none; }
.ticker-set a:hover { text-decoration: underline; text-underline-offset: 4px; }
@keyframes tickerMove { to { transform: translateY(-50%); } }
.ticker-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  background: #ffc63a;
  color: #17140f;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  writing-mode: vertical-rl;
  white-space: nowrap;
}
.ticker-cta:hover { background: #ffd94e; }

@media (max-width: 640px) {
  /* スマホはハンバーガー: バーにはロゴと三本線だけを出し、
   * ナビとお問い合わせはバーの下に開くパネルにまとめる */
  .site-header { top: 12px; right: 12px; left: 12px; gap: 0; }
  .header-pill {
    position: relative;
    flex: 1;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 14px;
    border-radius: 50px;
  }
  .brand { font-size: 11px; }
  .brand-logo { width: 42px; height: 22px; }
  .brand-logo img { width: 166px; height: 36px; top: -1.5px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -1px;
    right: -1px;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border-radius: 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 15px 10px;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-contact {
    display: block;
    margin-top: 8px;
    padding: 15px 10px !important;
    text-align: center;
    background-color: var(--fig-lime);
    border-bottom: none !important;
    border-radius: 999px;
  }
  .header-contact { display: none; } /* パネル内の .nav-contact に集約 */
  .news-ticker { width: 40px; }
  .ticker-label { display: none; }
  .ticker-cta { padding: 12px 0; font-size: 11px; }
  .scroll-cta { font-size: 12px; padding: 9px 16px; }
}

/* ---------- 配置の調整デモパネル（URLに ?tune で表示） ---------- */
.tune-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1300;
  width: 232px;
  background: #17140fee;
  color: #f1ece1;
  font-size: 11px;
  font-weight: 700;
  padding: 14px 16px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.tune-panel strong {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
  color: #ffc63a;
  letter-spacing: 0.08em;
}
.tune-panel label { display: block; margin-bottom: 10px; }
.tune-panel output {
  float: right;
  color: #ffd94e;
  font-family: "Roboto", sans-serif;
}
.tune-panel input[type="range"] {
  width: 100%;
  margin: 4px 0 0;
  accent-color: #ffc63a;
}
.tune-actions { display: flex; gap: 8px; margin-top: 4px; }
.tune-actions button {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 7px 0;
  font-family: inherit;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  background: #ffc63a;
  color: #17140f;
}
.tune-actions button[data-act="reset"] { background: #3a352d; color: #f1ece1; }

/* ==========================================================
   Figma renewal — TOP page
   ========================================================== */

.home-page {
  padding-left: 0;
  background-color: var(--white);
}

.home-page main {
  background-color: var(--white);
}

/* （旧: TOPではヘッダー非表示 → Figmaモックのピル型ヘッダー導入で表示に戻した） */

.home-page .hero {
  min-height: 700px;
  background: var(--fv-bg);
}

.home-page .world {
  background-color: var(--fv-bg);
  background-image: var(--fv-texture);
  background-size: var(--fv-texture-size);
}

.home-page .world-center {
  width: max-content;
  z-index: 991;
}

.home-page .logo-plate,
.home-page .logo-plate:hover {
  border-radius: 24px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.home-page .logo-plate img {
  width: 150% !important;
  max-width: none;
  height: auto !important;
}

.home-page .photo-card {
  padding: 12px 12px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.home-page .photo-img,
.home-page .photo-img img {
  border-radius: 12px;
}

.home-page .photo-cap {
  padding: 12px 8px 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.home-page .drag-hint {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0;
  color: #666;
  white-space: nowrap;
}

.home-page .scroll-cta {
  display: none;
}




/* Figma node 166:249 — newsletter rail */
.home-page .news-ticker {
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 60px;
  border-radius: 30px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: none;
}

.home-page .ticker-label {
  gap: 12px;
  padding: 24px 0 18px;
  color: var(--lime);
  border-bottom: none;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0;
}

.home-page .ticker-label img {
  width: 24px;
  height: 24px;
  display: block;
}

.home-page .ticker-window {
  min-height: 0;
}

.home-page .ticker-track {
  animation-duration: 46s;
}

.home-page .ticker-set {
  gap: 52px;
  padding-bottom: 52px;
  color: var(--lime);
  font-family: var(--font-ja);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-shadow: none;
}

.home-page .ticker-cta {
  min-height: 170px;
  gap: 12px;
  padding: 18px 0;
  background: var(--lime);
  color: #1a1a1a;
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: background 0.15s ease, color 0.15s ease;
}

/* hoverは他のライムボタンと同じ黒反転 */
.home-page .ticker-cta:hover {
  background: var(--ink);
  color: var(--fig-lime);
}

.home-page .ticker-cta svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 900px) {

}

@media (max-width: 640px) {
  .home-page {
    padding-left: 0;
  }

  /* 左端のニュースレター帯（幅48px）とヘッダーが重ならないよう、
   * ヘッダーの左端を帯の右側から始める */
  .home-page .site-header {
    left: 56px;
  }

  .home-page .hero {
    min-height: 620px;
  }

  /* （旧方眼テクスチャ用の background-size 上書きは、ハーフトーン画像を
   *   潰してしまうため撤去。タイル幅は --fv-texture-size に任せる） */

  /* モバイルは左のニュースレター帯のぶんだけ中央を右に寄せる */
  .home-page .world-center {
    left: calc(50% + 22px);
  }

  .home-page .drag-hint {
    bottom: 20px;
    font-size: 12px;
  }

  /* FV内のドラッグは壁のパンでページが動かないため、本編への入口を常設する */
  .home-page .scroll-cta {
    left: 50%;
    bottom: 16px;
    display: inline-flex;
    gap: 8px;
    padding: 14px 22px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background-color: var(--fig-lime);
    background-image: url("./assets/texture-halftone-btn.png");
    background-size: 280px auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transform: translateX(-50%);
  }

  .home-page .scroll-cta:hover {
    transform: translateX(-50%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  }

  /* スマホ版は左端に密着したフル高の帯にする（添付Figmaのモバイル版準拠） */
  .home-page .news-ticker {
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    border-radius: 0;
  }

  .home-page .ticker-label {
    display: flex;
    padding: 18px 0 14px;
    font-size: 11px;
  }

  .home-page .ticker-label img {
    width: 20px;
    height: 20px;
  }

  .home-page .ticker-set {
    font-size: 11px;
    gap: 36px;
    padding-bottom: 36px;
  }

  .home-page .ticker-cta {
    min-height: 136px;
    padding: 12px 0;
    font-size: 11px;
  }

}

/* ==========================================================
   ▼ Figmaリニューアル第2弾
   TOP: FV以下のセクション（node 204:250）
   DESIGN PROCESS ページ（node 204:532）
   ========================================================== */

:root {
  /* Figmaのデザイントークン（lime / bk-80 / bk-50）。
   * 2026-11-26: メインカラーを #bbff38 に変更。FVの --lime も同じ値にそろえた */
  --fig-lime: #bbff38;
  --bk-80: #666666;
  --bk-50: #cccccc;
}

/* DESIGN PROCESSページ: FV用のグローバル余白を打ち消す */
.dp-page, .sub-page { padding-left: 0 !important; }

/* --- セクションラベル（名前 + 罫線 + 通し番号） --- */
.sec-label {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}
.sec-label i { flex: 1; border-top: 1px solid var(--ink); }

/* --- ライムのCTAボタン（矢印つき） --- */
.btn-lime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 62px;
  padding: 16px 24px;
  background-color: var(--fig-lime);
  border: 0;
  border-radius: 999px; /* Figma第3弾: 枠なしの角丸ピル */
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-lime svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn-lime:hover { background-color: var(--ink); color: var(--fig-lime); }
.btn-lime:hover svg { transform: translateX(4px); }
.btn-lime--wide { width: min(445px, 100%); margin: 0 auto; }

/* --- COMPANY --- */
.sec-company { margin: 134px 20px 0; }
.company-grid { display: flex; margin-top: 20px; font-size: 14px; font-weight: 700; }
.company-list { flex: 1 1 0; min-width: 0; margin: 0; }
.company-list > div,
.company-clients {
  display: flex;
  gap: 24px;
  padding: 36px 24px;
}
.company-list dt,
.company-clients dt { width: 100px; flex-shrink: 0; margin: 0; }
.company-list dd { flex: 1; margin: 0; }
.company-clients { width: 50%; flex-shrink: 0; align-items: flex-start; margin: 0; }
.company-clients ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

/* --- CONTACT --- */
.sec-contact { margin: 120px 20px 0; padding-bottom: 220px; }
.contact-lead {
  width: min(720px, 100%);
  margin: 100px auto 60px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

/* --- フッター（bk-80） --- */
.fig-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 421px;
  padding: 24px 36px;
  background: var(--bk-80);
  color: var(--white);
  font-size: 12px;
}
.fig-footer a { color: inherit; text-decoration: none; }
.fig-footer a:hover { opacity: 0.7; }
.fig-footer-main {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  padding: 36px 0;
}
.fig-footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.fig-footer-logo { width: 160px; height: 70px; object-fit: contain; }
.fig-footer-addr { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 273px; }
.fig-footer-addr p { margin: 0; font-weight: 700; }
.fig-footer-contact {
  display: inline-block;
  padding: 12px 16px;
  background-color: var(--fig-lime);
  background-image: url("./assets/texture-halftone-btn.png"); /* ハーフトーン重ね */
  background-size: 280px auto;
  color: var(--bk-80) !important;
  font-weight: 700;
}
.fig-footer-contact:hover { opacity: 1 !important; background-color: var(--white); }
.fig-footer-nav { display: flex; gap: 24px; }
.fnav-col { display: flex; flex-direction: column; gap: 16px; min-width: 60px; }
.fnav-col .fnav-head { font-weight: 700; }
.fnav-sub { display: flex; flex-direction: column; gap: 12px; font-weight: 400; }
.fnav-ext { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.fnav-ext svg { width: 16px; height: 16px; }
.fig-footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.fig-footer-bottom p { margin: 0; font-weight: 700; }
.fig-footer-bottom a { text-decoration: underline; }

/* ==========================================================
   ▼ WORKs: TOPのカード一覧（#works）と事例ページ（work.html）
   カードはsite.jsがmicroCMSの内容で描画する
   ========================================================== */

.sec-works { margin: 134px 20px 0; }
.works-lead {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
/* 「すべての事例を見る」を押すまでは初期表示ぶんだけ見せる */

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.work-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-bottom: 1px solid var(--ink);
  background-color: var(--surface-2);
  background-image: url("./assets/texture-halftone.png");
  background-size: 420px auto;
  overflow: hidden;
}
.work-card-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.work-card:hover .work-card-visual img { transform: scale(1.06) rotate(-2deg); }
.work-card-noimg {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bk-50);
}
.work-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 20px 24px;
}
.work-card-kind,
.work-card-client { font-size: 11px; font-weight: 700; color: var(--bk-80); }
.work-card-title {
  padding-right: 44px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.work-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background-color: var(--fig-lime);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.work-card-arrow svg { width: 18px; height: 18px; }
.work-card:hover .work-card-arrow { background-color: var(--ink); color: var(--fig-lime); }

.works-more {
  width: min(445px, 100%);
  margin: 40px auto 0;
  font-family: inherit;
  cursor: pointer;
}

/* --- 事例ページ本体 --- */
.work-page { padding-left: 0 !important; } /* FV用のグローバル余白を打ち消す */
.work-detail { margin: 140px 20px 0; }
.work-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.work-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-hero { display: flex; gap: 40px; align-items: flex-start; }
.work-hero-visual {
  flex: 0 0 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 40px;
  border: 1px solid var(--ink);
  background-color: var(--surface-2);
  background-image: url("./assets/texture-halftone.png");
  background-size: 520px auto;
}
.work-hero-visual img { max-width: 100%; max-height: 100%; object-fit: contain; }
.work-hero-body { flex: 1; min-width: 0; }
.work-hero-body .work-kind { display: block; font-size: 12px; font-weight: 700; color: var(--bk-80); }
.work-hero-body h1 {
  margin: 12px 0 20px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.3;
}
.work-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}
.work-tags li { padding: 4px 10px; background: var(--fig-lime); font-size: 12px; font-weight: 700; }
.work-lead { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.9; }

/* microCMSリッチエディタ本文（入稿HTMLをそのまま表示） */
.work-body {
  max-width: 760px;
  margin: 64px auto 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.95;
}
.work-body h2,
.work-body h3 {
  margin: 40px 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.work-body p { margin: 0 0 1.6em; }
.work-body img { display: block; max-width: 100%; height: auto; margin: 12px 0 20px; }
.work-body a { color: var(--ink); }
.work-body ul,
.work-body ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.work-body li { margin-bottom: 0.5em; }
.work-body blockquote {
  margin: 0 0 1.6em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--fig-lime);
  color: var(--bk-80);
}
/* 画像 + キャプション。本文幅より少し広げて見せる */
.work-body figure { margin: 40px 0; }
.work-body figure img { margin: 0; border: 1px solid var(--ink); }
.work-body figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--bk-80);
}
/* 仮原稿であることの注記 */
.work-draft-note {
  margin: 0 0 32px !important;
  padding: 10px 14px;
  background: var(--fig-lime);
  font-size: 12px;
  font-weight: 700;
}
.work-note,
.work-missing {
  max-width: 760px;
  margin: 64px auto 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--bk-80);
}
.work-missing { text-align: center; }
.work-detail .btn-lime { width: min(445px, 100%); margin: 24px auto 0; }

/* 他の事例 */
.sec-works-other { margin: 120px 20px 0; }
.sec-works-other .works-grid { margin-top: 20px; }

/* --- レスポンシブ（900px以下で縦積みに） --- */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .work-card-body { padding: 16px 16px 20px; }
  .work-card-title { padding-right: 0; font-size: 15px; }
  .work-card-arrow { position: static; margin-top: 8px; }
  .work-detail { margin-top: 110px; }
  .work-hero { flex-direction: column; gap: 24px; }
  .work-hero-visual { flex: none; width: 100%; padding: 24px; }
  .work-body,
  .work-note { margin-top: 40px; }
  .sec-works-other { margin-top: 80px; }

  .sec-company { margin-top: 80px; }
  .company-grid { flex-direction: column; }
  .company-clients { width: auto; }
  .sec-contact { padding-bottom: 120px; }
  .contact-lead { margin-top: 60px; }
  .fig-footer-main { flex-direction: column; }
  .fig-footer-nav { flex-wrap: wrap; }
}

/* ==========================================================
   ▼ Figmaリニューアル第3弾: TOP（node 326:920）
   セクション見出しをステッカー画像に、BUSINESS/WORKSはハーフトーン地に
   少し傾けたカードを貼る。MEMBERSを新設（横スクロール）。
   ========================================================== */

/* --- ステッカー見出し（画像はFigmaの無回転版。角度はここで付ける） --- */
.sticker-head { margin: 0; line-height: 0; }
.sticker-head img { display: block; width: 100%; height: auto; }


/* --- ABOUT: 白地。左上にABOUTステッカー --- */
.about-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 724px;
  padding: 115px 24px;
  background: var(--white);
  text-align: center;
  overflow: hidden;
}
.sticker-head--about {
  position: absolute;
  left: 20px;
  top: 38px;
  width: min(439px, 34vw);
  transform: rotate(-21.5deg);
  transform-origin: left top;
  translate: 0 min(160px, 12.4vw);
}
.about-hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(24px, 3.33vw, 48px);
  font-weight: 700;
  line-height: 1.4;
}
.about-hero p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }

/* --- BUSINESS: ライムのハーフトーン地。左タグ（追従）+ 右にカード3枚 --- */
.sec-business {
  padding: 40px 20px 60px;
  background: var(--white) url("./assets/texture-halftone-lime.png");
  background-size: 720px auto;
}
.biz-layout {
  display: flex;
  justify-content: center;
  gap: 112px;
  max-width: 1100px;
  margin: 0 auto;
}
.sticker-head--business {
  position: sticky;
  top: 110px;
  align-self: flex-start;
  flex-shrink: 0;
  width: 208px;
  margin-top: 10px;
  transform: rotate(6.78deg);
}
.biz-list { display: flex; flex-direction: column; gap: 54px; width: min(780px, 100%); }
.biz-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  color: #000;
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.3s ease;
}
.biz-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); }
/* 画像は常にカラー。hoverでズームのみ */
.biz-visual { display: block; height: 370px; border-radius: 12px; overflow: hidden; }
.biz-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.biz-card:hover .biz-visual img { transform: scale(1.04); }
.biz-card-body { display: flex; flex-direction: column; gap: 16px; padding: 40px 24px 24px; }
.biz-card-body strong {
  font-family: var(--font-en);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
}
.biz-card-foot { display: flex; align-items: flex-start; gap: 24px; }
.biz-card-foot > span:first-child { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.5; }
.biz-card .btn-lime { flex-shrink: 0; width: 72px; }
.biz-card:hover .btn-lime { background-color: var(--ink); color: var(--fig-lime); }
.biz-card:hover .btn-lime svg { transform: translateX(4px); }

/* --- CONTACT（BUSINESS直後）: ステッカー + リード + ボタン --- */
.home-page .sec-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 88px 20px 120px;
}
.sticker-head--contact { width: min(357px, 70vw); }
.home-page .contact-lead { margin: 88px auto 59px; }

/* --- WORKS: グレーのハーフトーン地にカードを貼る --- */
.sec-works { position: relative; margin: 0; padding-top: 89px; }
.sticker-head--works {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 270px;
  translate: -50% 0;
}
.works-board {
  padding: 174px 20px 150px;
  background-color: var(--white);
  background-image: url("./assets/texture-halftone.png");
  background-size: 720px auto;
}
.works-board .works-grid {
  /* 最大3列。幅が足りなければ列を減らす（固定3列だと900〜1000px台ではみ出す） */
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
  align-items: center;
  gap: 24px;
  max-width: calc(300px * 3 + 24px * 2);
  margin: 0 auto;
}
.works-board .work-card {
  height: 420px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Figmaの並び: 0°, 1°, -1°, 1°, 0° … を繰り返す */
.works-board .work-card:nth-child(4n + 2),
.works-board .work-card:nth-child(4n + 4) { transform: rotate(1deg); }
.works-board .work-card:nth-child(4n + 3) { transform: rotate(-1deg); }
.works-board .work-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); }
.works-board .work-card-visual {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  padding: 36px;
  border: 0;
  background: var(--white);
}
.works-board .work-card-visual img { width: 100%; height: 100%; }
.works-board .work-card-body { flex: none; gap: 12px; padding: 16px 16px 20px; }
.works-board .work-card-kind,
.works-board .work-card-client,
.works-board .work-card-arrow { display: none; }
.works-board .work-card-title { padding: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.work-card-tags { display: none; }
.works-board .work-card-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.work-card-tags span { background: var(--fig-lime); font-size: 12px; font-weight: 700; line-height: 1.4; }
/* 「全て見る」: カードの並びの最後に置くライムのタイル */
.works-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  height: 300px;
  margin: 0;
  padding: 16px 24px;
  border: 0;
  border-radius: 30px;
  background: var(--fig-lime);
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transform: rotate(1deg);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.works-more[hidden] { display: none; }
.works-more svg { width: 24px; height: 24px; transition: transform 0.2s ease; }
.works-more:hover { background: var(--ink); color: var(--fig-lime); transform: rotate(0deg); }
.works-more:hover svg { transform: translateX(4px); }

/* --- MEMBERS: 見出しステッカーごと横にスクロールする帯 --- */
.sec-members { padding: 72px 0 0; }
.members-scroller {
  display: flex;
  align-items: center;
  gap: 61px;
  padding: 40px 40px 60px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.members-scroller::-webkit-scrollbar { display: none; }
.members-scroller.is-dragging { cursor: grabbing; user-select: none; }
.members-scroller.is-dragging a,
.members-scroller img { pointer-events: none; -webkit-user-drag: none; }
.sticker-head--members { flex-shrink: 0; width: 458px; transform: rotate(-7.39deg); }
.members-list { display: flex; gap: 41px; margin: 0; padding: 0 0 0 30px; list-style: none; }
.member { position: relative; flex-shrink: 0; width: 315px; height: 300px; }
.member-photo {
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg, var(--bk-50));
}
.member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-photo.is-illust img { object-fit: contain; padding: 36px; }
.member-name {
  position: absolute;
  padding: 0 2px;
  background: var(--fig-lime);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(var(--tilt, 0deg));
}
/* 名前ラベルの位置はFigmaの3パターン（右下はみ出し / 左下 / 中央下）+ 右寄せ */
.member-name--l { left: 92px; top: 232px; }
.member-name--s { left: -2px; top: 246px; }
.member-name--m { left: 35px; top: 262px; }
.member-name--r { right: -10px; top: 240px; }

/* --- COMPANY --- */
.home-page .sec-company { max-width: 1007px; margin: 157px auto 0; padding: 0 20px 180px; }
.sticker-head--company { width: min(465px, 80vw); margin: 43px auto 0; transform: rotate(-5.29deg); }
.home-page .company-grid { margin-top: 54px; }

@media (max-width: 900px) {
  .about-hero { min-height: 0; padding: 250px 24px 80px; gap: 28px; }
  /* SPは中央に置く（回転の基準も中央に） */
  .sticker-head--about { left: 50%; top: 110px; width: 220px; transform-origin: center; translate: -50% 0; }
  .about-hero p br { display: none; } /* 狭い幅では手動改行を外して自然に折り返す */

  .sec-business { padding: 40px 16px 48px; }
  .biz-layout { flex-direction: column; align-items: center; gap: 32px; }
  .sticker-head--business { position: static; align-self: center; width: 120px; margin: 0; }
  .biz-list { gap: 32px; }
  .biz-visual { height: auto; aspect-ratio: 4 / 3; }
  .biz-card-body { padding: 24px 12px 12px; }
  .biz-card .btn-lime { width: 56px; height: 56px; padding: 0; }

  .home-page .sec-contact { padding: 64px 20px 88px; }
  .home-page .contact-lead { margin: 48px auto 40px; }

  .sec-works { padding-top: 60px; }
  .sticker-head--works { width: 190px; }
  .works-board { padding: 120px 16px 88px; }
  .works-board .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .works-board .work-card { height: auto; aspect-ratio: 5 / 7; }
  .works-board .work-card-visual { padding: 16px; }
  .works-board .work-card-title { font-size: 16px; }
  .works-board .work-card-tags { gap: 4px 6px; }
  .work-card-tags span { font-size: 10px; }
  .works-more { width: 100%; height: auto; aspect-ratio: 1; font-size: 15px; border-radius: 20px; }

  .sec-members { padding-top: 40px; }
  .members-scroller { gap: 24px; padding: 32px 20px 40px; }
  .sticker-head--members { width: 240px; }
  .members-list { gap: 20px; padding-left: 8px; }
  .member { width: 200px; height: 190px; }
  .member-photo { width: 190px; height: 190px; }
  .member-photo.is-illust img { padding: 24px; }
  .member-name { font-size: 16px; }
  .member-name--l { left: 50px; top: 146px; }
  .member-name--s { left: -2px; top: 156px; }
  .member-name--m { left: 20px; top: 166px; }
  .member-name--r { right: -6px; top: 152px; }

  .home-page .sec-company { margin-top: 80px; padding-bottom: 100px; }
  .home-page .company-grid { margin-top: 32px; }
}

/* ==========================================================
   ▼ Figmaリニューアル第3弾: 下層ページ
   DESIGN PROCESS（326:1058）/ COMMUNITY & SPACE（326:1173）/ FOOD（326:1241）
   WORKS一覧（326:1313）/ WORK詳細（326:1330）
   ========================================================== */

/* --- 共通ヒーロー: ライムのハーフトーン帯に見出しステッカー --- */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  padding: 90px 20px 0;
  background: var(--white) url("./assets/texture-halftone-lime.png");
  background-size: 720px auto;
  overflow: hidden;
}
.page-hero .sticker-head { width: var(--w, 490px); max-width: 80vw; transform: rotate(var(--tilt, 0deg)); }

/* --- 共通: 英見出し + 和見出し + リード（DESIGN PROCESS / 各事業ページ） --- */
.page-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 37px;
  width: min(720px, calc(100% - 40px));
  margin: 168px auto 0;
  text-align: center;
}
.page-intro h1 {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}
.page-intro .page-lead { margin: 0; font-size: clamp(20px, 1.95vw, 28px); font-weight: 700; line-height: 1.45; }
.page-intro p:not(.page-lead) { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }

/* --- 共通: 下層ページのCONTACT（ステッカー + リード + ボタン） --- */
.page-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 140px;
}
.page-contact .contact-lead { margin: 88px auto 59px; }

/* --- DESIGN PROCESS --- */
.dp-block { position: relative; width: min(1360px, calc(100% - 80px)); margin: 84px auto 0; }
.dp-label {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0 1px;
  background: var(--fig-lime);
  font-family: "Roboto Condensed", var(--font-en);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.dp-label--bold { font-weight: 600; }
.approach-list { display: flex; flex-direction: column; gap: 176px; width: min(536px, 100%); margin: 0 auto; }
.approach-item { display: flex; flex-direction: column; }
.approach-media { aspect-ratio: 536 / 406; background: #d9d9d9; /* 画像プレースホルダー（Figma上も未指定） */ }
.approach-body { padding: 0 40px; }
.approach-body h2 { margin: 56px 0 44px; font-size: clamp(22px, 1.95vw, 28px); font-weight: 700; line-height: 1.4; }
.approach-body p { margin: 0 0 56px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.approach-body .btn-lime { width: min(445px, 100%); }
.service-list { display: flex; flex-direction: column; gap: 20px; width: min(680px, 100%); margin: 0 auto; }
.service-card { border: 1px solid #1a1a1a; background: var(--white); }
.service-media { height: 125px; background: var(--bk-50); /* 画像プレースホルダー */ }
.service-body { padding: 32px 24px 24px; }
.service-body h2 { margin: 0 0 32px; font-size: clamp(24px, 2.5vw, 36px); font-weight: 700; line-height: 1.2; }
.service-body ul { margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; line-height: 1.5; }
.dp-page .page-contact { margin-top: 260px; }

/* --- COMMUNITY & SPACE / FOOD DESIGN: 外部サイトへのバナー --- */
.biz-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: min(537px, calc(100% - 40px));
  aspect-ratio: 537 / 197;
  margin: 95px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  color: var(--white);
  text-decoration: none;
}
.biz-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.2, 1); }
.biz-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.55)); }
.biz-link span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  font-family: var(--font-en);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
}
.biz-link svg { width: 26px; height: 26px; }
.biz-link:hover img { transform: scale(1.04); }
.biz-page .page-contact { margin-top: 182px; }

/* --- WORKS一覧 --- */
.works-page .works-board { padding: 120px 20px 160px; background-image: none; } /* 一覧ページの作品エリアは無地（TOPのWORKS帯はハーフトーンのまま） */
.works-count { margin: 0 0 40px; font-family: var(--font-en); font-size: 14px; font-weight: 700; text-align: center; }

/* --- WORK詳細 --- */
.wd-hero {
  position: relative;
  height: 351px;
  background: var(--white) url("./assets/texture-halftone-lime.png");
  background-size: 720px auto;
}
.wd-visual {
  position: absolute;
  left: 50%;
  top: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 324px;
  height: 323px;
  translate: -50% 0;
  transform: rotate(4.86deg);
}
.wd-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* 切り抜き画像に白フチ（Figmaの alpha border）+ ステッカーの落ち影 */
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}
.wd-noimg { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--bk-50); }
.wd-main { width: min(720px, calc(100% - 40px)); margin: 158px auto 0; padding-bottom: 150px; }
.wd-main h1 { margin: 0; font-size: clamp(36px, 4.2vw, 60px); font-weight: 100; line-height: 1.3; text-align: center; }
.wd-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.wd-tags li { background: var(--fig-lime); font-size: 14px; font-weight: 700; line-height: 1.5; }
.wd-lead { margin: 40px 0 0; font-size: 14px; line-height: 1.8; }
.wd-main .work-body { margin: 40px 0 0; font-size: 14px; font-weight: 400; line-height: 1.8; }
.wd-main .work-body h2,
.wd-main .work-body h3 { margin: 60px 0 24px; font-size: 28px; font-weight: 700; line-height: 1.4; }
.wd-main .work-note, .wd-main .work-draft-note { margin-top: 40px; }
.wd-main .work-credit { margin-top: 60px; }
.wd-related { padding: 67px 20px 140px; background-color: var(--white); position: relative; }
.wd-related::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/texture-halftone.png");
  background-size: 720px auto;
  opacity: 0.3;
}
.wd-related > * { position: relative; }
.wd-related h2 { margin: 0 0 99px; font-size: 28px; font-weight: 400; text-align: center; }
.wd-related .works-board { padding: 0; background: none; }
.wd-related .works-all { width: min(445px, 100%); margin: 80px auto 0; }

@media (max-width: 900px) {
  .work-drawer .wd-hero { height: 200px; }
  .work-drawer .wd-visual { top: 64px; width: 200px; height: 200px; }
  .work-drawer .wd-main { margin-top: 90px; width: calc(100% - 40px); }
  .work-drawer .works-board .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .work-drawer .works-board .work-card-visual { padding: 8px; }
  .work-drawer .works-board .work-card-title { font-size: 12px; }
  .work-drawer .work-card-tags { display: none; } /* 3枚並びで狭いのでタグは省く */
  .page-hero { height: 320px; padding-top: 70px; }
  .page-intro { margin-top: 88px; gap: 24px; }
  .page-intro p br { display: none; }
  .page-contact { padding-bottom: 88px; }
  .page-contact .contact-lead { margin: 48px auto 40px; }

  .dp-block { width: calc(100% - 40px); margin-top: 72px; }
  .dp-label { position: static; display: inline-block; margin-bottom: 24px; font-size: 20px; }
  .approach-list { gap: 72px; }
  .approach-body { padding: 0; }
  .approach-body h2 { margin: 28px 0 20px; }
  .approach-body p { margin-bottom: 28px; }
  .service-body h2 { margin-bottom: 20px; }
  .dp-page .page-contact { margin-top: 120px; }

  .biz-link { margin-top: 64px; border-radius: 16px; }
  .biz-page .page-contact { margin-top: 120px; }

  .works-page .works-board { padding: 64px 16px 88px; }

  .wd-hero { height: 220px; }
  .wd-visual { top: 84px; width: 210px; height: 210px; }
  .wd-main { margin-top: 110px; padding-bottom: 88px; }
  .wd-main .work-body h2,
  .wd-main .work-body h3 { margin-top: 40px; font-size: 22px; }
  .wd-related { padding: 48px 16px 88px; }
  .wd-related h2 { margin-bottom: 40px; font-size: 22px; }
  .wd-related .works-all { margin-top: 48px; }
}

/* --- MEMBERS: 丸写真 + 名前ラベル（TOPの帯・一覧・詳細の他メンバーで共用） --- */
.member-link { display: block; position: relative; width: 100%; height: 100%; color: #000; text-decoration: none; }
.member-photo { transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1); }
.member-link:hover .member-photo { transform: scale(1.04) rotate(-2deg); }
.member-link:hover .member-name { background: var(--ink); color: var(--fig-lime); }
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 315px); /* 最大3列・幅が足りなければ減らす */
  justify-content: center;
  gap: 72px 48px;
  max-width: calc(315px * 3 + 48px * 2);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.members-board { padding: 120px 20px 160px; }
.wd-related .members-grid { grid-template-columns: repeat(auto-fit, 240px); gap: 48px 32px; max-width: calc(240px * 4 + 32px * 3); }
.wd-related .member { width: 240px; height: 230px; }
.wd-related .member-photo { width: 230px; height: 230px; }
.wd-related .member-name { font-size: 18px; }
.wd-related .member-name--l { left: 70px; top: 178px; }
.wd-related .member-name--s { left: -2px; top: 188px; }
.wd-related .member-name--m { left: 26px; top: 200px; }
.wd-related .member-name--r { right: -8px; top: 184px; }
/* メンバー詳細: WORK詳細のヒーローに丸写真を載せる */
.wd-visual.md-visual { transform: rotate(var(--tilt, 0deg)); }
.md-photo {
  display: block;
  width: 300px;
  height: 300px;
  border: 6px solid var(--white);
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg, var(--bk-50));
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}
.md-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: none; }
.md-photo.is-illust img { object-fit: contain; padding: 36px; }
.md-name-ja { margin: 8px 0 0; font-size: 16px; font-weight: 700; text-align: center; }
.md-bio p { margin: 0 0 1.6em; }

@media (max-width: 900px) {
  .members-board { padding: 64px 16px 88px; }
  .members-grid,
  .wd-related .members-grid { grid-template-columns: repeat(2, 150px); gap: 36px 20px; }
  .members-grid .member,
  .wd-related .members-grid .member { width: 150px; height: 150px; }
  .members-grid .member-photo,
  .wd-related .members-grid .member-photo { width: 150px; height: 150px; }
  .members-grid .member-photo.is-illust img { padding: 18px; }
  .members-grid .member-name { font-size: 13px; }
  .members-grid .member-name--l { left: 40px; top: 118px; }
  .members-grid .member-name--s { left: -2px; top: 124px; }
  .members-grid .member-name--m { left: 14px; top: 130px; }
  .members-grid .member-name--r { right: -6px; top: 120px; }
  .md-photo { width: 200px; height: 200px; border-width: 4px; }
}

/* ==========================================================
   ▼ 登場アニメーション（site.js の initReveal がクラスを付ける）
   - .rv-sticker … 見出しステッカー: 右上から回転しながら降りてきてペタッと貼られる（拡縮なし）
                   詳細ページの画像: 上から大きめに落ちてきて貼られる
   - .rv-card    … カード: 少し傾いた状態から貼り付く（並びは順番に）
   - .rv-type    … 文字: タイプライター（1文字ずつ + カーソル）
   既存の傾き（transform）を壊さないよう、個別プロパティ scale / rotate / translate で重ねる。
   JS無効・視差効果を減らす設定の環境ではクラスが付かず、最初から表示される。
   ========================================================== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.rv-sticker > * { opacity: 0; }
.rv-sticker.rv-in > * { animation: rvStickerPaste 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) var(--rv-delay, 0s) both; }
/* 見出しステッカーは拡縮なし: 貼る位置の右上から回転しながらスゥッと降りてきて、ペタッと止まる */
.sticker-head.rv-sticker.rv-in > * { animation: rvHeadingPaste 0.95s cubic-bezier(0.25, 0.7, 0.3, 1) var(--rv-delay, 0s) both; }
@keyframes rvHeadingPaste {
  0%   { opacity: 0; translate: 90px -110px; rotate: 18deg; filter: drop-shadow(14px 24px 18px rgba(0, 0, 0, 0.2)); }
  18%  { opacity: 1; }
  78%  { translate: 0 0; rotate: -1.6deg; filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.14)); animation-timing-function: ease-out; }
  90%  { rotate: 0.5deg; }
  100% { opacity: 1; translate: 0 0; rotate: 0deg; filter: none; }
}
@keyframes rvStickerPaste {
  0%   { opacity: 0; scale: 1.45; rotate: -9deg; translate: 0 -36px; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.22)); }
  55%  { opacity: 1; scale: 0.94; rotate: 2deg; translate: 0 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12)); }
  75%  { scale: 1.03; rotate: -0.6deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; translate: 0 0; filter: none; }
}

.rv-card { opacity: 0; }
.rv-card.rv-in { animation: rvCardPaste 0.65s cubic-bezier(0.2, 0.8, 0.25, 1) var(--rv-delay, 0s) both; }
.rv-card.rv-in.rv-alt { animation-name: rvCardPasteAlt; }
@keyframes rvCardPaste {
  0%   { opacity: 0; scale: 1.1; rotate: -4deg; translate: 0 34px; }
  60%  { opacity: 1; scale: 0.985; rotate: 0.6deg; translate: 0 0; }
  100% { opacity: 1; scale: 1; rotate: 0deg; translate: 0 0; }
}
@keyframes rvCardPasteAlt {
  0%   { opacity: 0; scale: 1.1; rotate: 4deg; translate: 0 34px; }
  60%  { opacity: 1; scale: 0.985; rotate: -0.6deg; translate: 0 0; }
  100% { opacity: 1; scale: 1; rotate: 0deg; translate: 0 0; }
}

.tw-ch { opacity: 0; }
.tw-ch.on { opacity: 1; }
.tw-cur { position: relative; }
.tw-cur::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0.1em;
  bottom: 0.05em;
  width: 2px;
  margin-left: 1px;
  background: currentColor;
  animation: twBlink 0.7s steps(1) infinite;
}
@keyframes twBlink { 50% { opacity: 0; } }

/* ---------- CMSのみ表示モード（?cms=only）の件数バッジ ---------- */
.cms-only-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font: 12px/1.5 var(--font-ja);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.cms-only-badge strong { color: var(--lime); font-size: 13px; }
.cms-only-badge a { color: var(--lime); text-decoration: underline; justify-self: start; }
.cms-only-empty {
  align-self: center;
  max-width: 320px;
  padding: 20px;
  border: 2px dashed currentColor;
  border-radius: 12px;
  font: 14px/1.6 var(--font-ja);
  list-style: none;
}

/* ?cms=only: 手元データ（サンプル等）由来のメンバーは隠し、microCMSのメンバーだけにする */
.is-cms-only [data-local] { display: none !important; }
