/* ============================================================
   okapi_iroha — 彩の目録(旧 data-iroha)
   温かいクリーム地 × 砂金の糸 × 各サイトのひと色 + オカピ
   (トークンは 101_data_iroha を継承 — design/content_assets.md §12)
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EFE7;
  --surface: #FDFBF7;
  --ink: #26241F;
  --ink-sub: #5B564C;
  --ink-faint: #8A8378;
  --gold: #A8875A;
  --gold-light: #C9AB7A;
  --gold-pale: #E8D9BC;
  --gold-text: #77603C;
  --hairline: rgba(168, 135, 90, 0.28);
  --night-text: #EFE6D2;
  --night-muted: #A79C83;

  --c-agave: #3B7A45;   --c-agave-deep: #2C5E36;
  --c-caudex: #C4502C;  --c-caudex-deep: #A03E20;
  --c-green: #5CB270;   --c-green-deep: #2E7040; /* テキスト用: #33804A では tint 上 4.36:1 と AA 未達のため一段暗く (5.4:1) */
  --c-compass: #0071E3; --c-compass-deep: #0060C0;
  --c-kakeizu: #0F766E; --c-kakeizu-deep: #0B5D57;
  --c-flagpin: #6DB3F7; --c-flagpin-deep: #2E6FA8; /* Flagpin の空色(実物 --fp-accent)。deep は明地テキスト用 */
  --c-flagpin-lit: #93C8FF; /* 近黒紺パネル上のアクセント(明るい空色) */
  --c-flagpin-ink: #0A0C10; /* Flagpin の近黒紺(実物 --fp-bg) */
  --c-night-1: #14261A;
  --c-night-2: #101724;

  /* 縞プログレスゲージの色(旧オカピ SVG の縞トークン --okapi-stripe を継承)。
     テーマブリッジ(motion.js applyTheme)がここへ章アクセントを流し込む */
  --gauge-tint: #A8875A;

  --sans: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: var(--sans);
  --display: var(--sans);

  --ease: cubic-bezier(0.22, 0.72, 0.16, 1);
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: no-preference) {
  html.no-js { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* 紙の粒子 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: multiply;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

.serif { font-family: var(--sans); font-weight: 700; }

::selection { background: var(--gold-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 13px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus-visible { top: 0; }

.sp-only { display: none; }
@media (max-width: 640px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* ---------- brand chip(巡回するひと色) ---------- */
@keyframes chipCycle {
  0%, 9%    { background-color: var(--c-agave); }
  12%, 21%  { background-color: var(--c-caudex); }
  24%, 33%  { background-color: var(--c-green); }
  36%, 45%  { background-color: var(--c-compass); }
  48%, 57%  { background-color: var(--c-kakeizu); }
  60%, 69%  { background-color: var(--c-flagpin); }
  72%, 81%  { background-color: var(--c-night-1); }
  84%, 95%  { background-color: var(--c-night-2); }
  100%      { background-color: var(--c-agave); }
}
.brand-chip {
  display: inline-block;
  width: 0.42em;
  height: 0.1em;
  border-radius: 0.06em;
  margin: 0 0.13em;
  /* okapi_iroha の「_」に忠実に、ベースライン直下(アンダースコア位置)へ。
     ヘッダー・ヒーロー・footer 共通(全箇所が .brand-chip を共有) */
  vertical-align: -0.08em;
  background-color: var(--c-agave);
  animation: chipCycle 24.5s ease-in-out infinite;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom-color: rgba(168, 135, 90, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
/* backdrop-filter 非対応時は不透明地にフォールバック(可読性確保) */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-header.is-scrolled { background: rgba(250, 247, 242, 0.97); }
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding-inline: clamp(18px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.global-nav { display: flex; gap: 32px; }
.global-nav a {
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--ink-sub);
  padding-block: 6px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.global-nav a:hover { color: var(--ink); background-size: 100% 1px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(4.25px) rotate(24deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { transform: translateY(-4.25px) rotate(-24deg); }

@media (max-width: 880px) {
  .global-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- nav overlay (mobile) ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 10vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.overlay-nav { display: flex; flex-direction: column; gap: 4vh; }
.overlay-nav a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.nav-overlay.is-open .overlay-nav a { opacity: 1; transform: none; }
.nav-overlay.is-open .overlay-nav a:nth-child(2) { transition-delay: 0.07s; }
.nav-overlay.is-open .overlay-nav a:nth-child(3) { transition-delay: 0.14s; }
.nav-overlay.is-open .overlay-nav a:nth-child(4) { transition-delay: 0.21s; }
.overlay-nav em {
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.overlay-foot {
  margin-top: 9vh;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.overlay-foot a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 72px) var(--pad) clamp(72px, 9vh, 96px);
}

.hero-micro {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.38em;
  color: var(--gold-text);
}
@media (max-width: 640px) {
  .hero-micro { font-size: 10px; letter-spacing: 0.24em; }
}

.wordmark {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wm-chip { margin: 0 0.16em; }

@keyframes goldSheen {
  0%, 100% { background-position: 10% 50%; }
  50%      { background-position: 90% 50%; }
}
.wm-iroha {
  background: linear-gradient(105deg, #8A6B40 0%, var(--gold-light) 32%, var(--gold-pale) 50%, var(--gold-light) 66%, #8A6B40 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldSheen 8s ease-in-out infinite;
}

.hero-concept {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--gold-text);
}
.hero-concept::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero-lede {
  margin-top: 14px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-feature-settings: "palt";
}
.hero-sub {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-sub);
}
.hero-handle {
  color: var(--gold-text);
  font-family: var(--mono);
  font-size: 13px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  padding-bottom: 1px;
}
.hero-handle:hover { color: var(--ink); }

/* いろはパレット(呼吸する色見本) */
.palette {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 42px;
}
.chip {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 24px;
  border-radius: 5px;
  transform-origin: bottom center;
}
.palette .chip { animation: chipBreath 4.6s ease-in-out infinite alternate; }
.palette .chip:nth-child(1) { animation-delay: 0s; }
.palette .chip:nth-child(2) { animation-delay: 0.55s; }
.palette .chip:nth-child(3) { animation-delay: 1.1s; }
.palette .chip:nth-child(4) { animation-delay: 1.65s; }
.palette .chip:nth-child(5) { animation-delay: 2.2s; }
.palette .chip:nth-child(6) { animation-delay: 2.75s; }
.palette .chip:nth-child(7) { animation-delay: 3.3s; }
.palette .chip:nth-child(8) { animation-delay: 3.85s; }
@keyframes chipBreath {
  from { transform: scaleY(1); }
  to   { transform: scaleY(1.55); }
}
.chip-agave   { background: var(--c-agave); }
.chip-caudex  { background: var(--c-caudex); }
.chip-green   { background: var(--c-green); }
.chip-compass { background: var(--c-compass); }
.chip-kakeizu { background: var(--c-kakeizu); }
.chip-flagpin { background: var(--c-flagpin); }
.chip-night-1 { background: var(--c-night-1); box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.55); }
.chip-night-2 { background: var(--c-night-2); box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.55); }

.chip span {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--gold-text);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}
.chip:hover span, .chip:focus-visible span { opacity: 1; transform: translateX(-50%) translateY(0); }

/* hero 背景: オーロラ */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.aurora { position: absolute; inset: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.blob-1 { width: 520px; height: 520px; top: -14%; left: 52%;  background: radial-gradient(circle at 42% 42%, rgba(201, 171, 122, 0.55), transparent 70%); animation: drift1 44s ease-in-out infinite alternate; }
.blob-2 { width: 420px; height: 420px; top: 30%;  left: -10%; background: radial-gradient(circle at 50% 50%, rgba(92, 178, 112, 0.34), transparent 70%);  animation: drift2 36s ease-in-out infinite alternate; }
.blob-3 { width: 380px; height: 380px; bottom: 2%; left: 32%; background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.26), transparent 70%);  animation: drift3 52s ease-in-out infinite alternate; }
.blob-4 { width: 320px; height: 320px; top: 14%;  left: 26%;  background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.15), transparent 70%);   animation: drift2 41s ease-in-out infinite alternate-reverse; }
.blob-5 { width: 360px; height: 360px; bottom: -12%; right: -6%; background: radial-gradient(circle at 50% 50%, rgba(232, 132, 90, 0.22), transparent 70%); animation: drift1 47s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); }      to { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); }      to { transform: translate(9%, -7%) scale(0.94); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); }      to { transform: translate(-7%, -9%) scale(1.09); } }

/* hero 背景: 立ち上る金の塵 */
.dust { position: absolute; inset: 0; overflow: hidden; }
.dust i {
  position: absolute;
  bottom: -2vh;
  border-radius: 50%;
  background: rgba(168, 135, 90, 0.55);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.7; }
  60%  { opacity: 0.35; }
  100% { transform: translate(var(--sway, 24px), -82vh); opacity: 0; }
}
.dust i:nth-child(1)  { left: 6%;  width: 3px; height: 3px; animation-duration: 19s; animation-delay: 0s;    --sway: 30px; }
.dust i:nth-child(2)  { left: 14%; width: 2px; height: 2px; animation-duration: 24s; animation-delay: 4s;    --sway: -22px; }
.dust i:nth-child(3)  { left: 22%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 8s;    --sway: 18px; }
.dust i:nth-child(4)  { left: 31%; width: 2px; height: 2px; animation-duration: 26s; animation-delay: 2s;    --sway: -34px; }
.dust i:nth-child(5)  { left: 38%; width: 3px; height: 3px; animation-duration: 21s; animation-delay: 11s;   --sway: 26px; }
.dust i:nth-child(6)  { left: 47%; width: 2px; height: 2px; animation-duration: 18s; animation-delay: 6s;    --sway: -16px; }
.dust i:nth-child(7)  { left: 54%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: 13s;   --sway: 36px; }
.dust i:nth-child(8)  { left: 62%; width: 2px; height: 2px; animation-duration: 17s; animation-delay: 3s;    --sway: -26px; }
.dust i:nth-child(9)  { left: 69%; width: 4px; height: 4px; animation-duration: 22s; animation-delay: 9s;    --sway: 20px; }
.dust i:nth-child(10) { left: 76%; width: 2px; height: 2px; animation-duration: 27s; animation-delay: 1s;    --sway: -30px; }
.dust i:nth-child(11) { left: 83%; width: 3px; height: 3px; animation-duration: 20s; animation-delay: 12s;   --sway: 24px; }
.dust i:nth-child(12) { left: 89%; width: 2px; height: 2px; animation-duration: 23s; animation-delay: 5s;    --sway: -18px; }
.dust i:nth-child(13) { left: 94%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: 15s;   --sway: 14px; }
.dust i:nth-child(14) { left: 45%; width: 2px; height: 2px; animation-duration: 28s; animation-delay: 17s;   --sway: -24px; }

/* hero 背景: いろは歌(縦書き) */
.iroha-col {
  position: absolute;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  letter-spacing: 0.52em;
  color: rgba(168, 135, 90, 0.17);
  user-select: none;
  margin: 0;
  animation: irohaDrift ease-in-out infinite alternate;
}
.iroha-col-1 { right: 9%; top: 6%;  font-size: clamp(15px, 1.7vw, 22px); animation-duration: 46s; }
.iroha-col-2 { right: 3.5%; top: 24%; font-size: clamp(12px, 1.3vw, 17px); color: rgba(168, 135, 90, 0.11); animation-duration: 58s; }
@keyframes irohaDrift {
  from { transform: translateY(-2.5%); }
  to   { transform: translateY(3.5%); }
}
@media (max-width: 720px) {
  .iroha-col-2 { display: none; }
  .iroha-col-1 { right: 5%; opacity: 0.75; }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-line {
  position: relative;
  width: 1px;
  height: 54px;
  background: rgba(168, 135, 90, 0.3);
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -20px;
  width: 1px;
  height: 20px;
  background: var(--gold);
  animation: scrollDrop 2.4s var(--ease) infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(0); }
  100% { transform: translateY(76px); }
}
.scroll-text {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--gold-text);
}

/* ---------- sections 共通 ---------- */
.section { padding-block: clamp(52px, 7.5vw, 88px); }

.sec-head {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  padding-top: clamp(20px, 3vw, 30px);
}
.sec-num {
  position: absolute;
  top: -0.12em;
  left: calc(var(--pad) - 0.05em);
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.1rem, 6.5vw, 4.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 135, 90, 0.36);
  user-select: none;
  pointer-events: none;
}
.sec-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--gold-text);
}
.sec-label::after { content: ""; width: 52px; height: 1px; background: var(--gold); }
.sec-title {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: clamp(1.45rem, 2.9vw, 2rem);
  letter-spacing: 0.09em;
  line-height: 1.45;
  color: var(--ink);
}
.sec-desc {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-sub);
}

/* ---------- 01 works ---------- */
.work-list {
  max-width: var(--maxw);
  margin: clamp(30px, 4.5vw, 44px) auto 0;
  padding-inline: var(--pad);
  display: grid;
  gap: clamp(30px, 4.5vw, 48px);
}

.work {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 480px) 1fr;
  gap: clamp(26px, 4.5vw, 56px);
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(24px, 3.5vw, 36px);
}
.work::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.work--flip { grid-template-columns: 1fr minmax(330px, 480px); }
.work--flip .work-emblem { order: 2; }
.work--flip .work-body { order: 1; }

.work--agave   { --accent: var(--c-agave);   --accent-deep: var(--c-agave-deep);   --tint: #EEF3EC; --tint-line: rgba(59, 122, 69, 0.25); }
.work--caudex  { --accent: var(--c-caudex);  --accent-deep: var(--c-caudex-deep);  --tint: #F7EEE7; --tint-line: rgba(196, 80, 44, 0.22); }
.work--green   { --accent: var(--c-green);   --accent-deep: var(--c-green-deep);   --tint: #EDF5EC; --tint-line: rgba(92, 178, 112, 0.3); }
.work--compass { --accent: var(--c-compass); --accent-deep: var(--c-compass-deep); --tint: #EBF2FA; --tint-line: rgba(0, 113, 227, 0.18); }
.work--kakeizu { --accent: var(--c-kakeizu); --accent-deep: var(--c-kakeizu-deep); --tint: #E9F3F1; --tint-line: rgba(15, 118, 110, 0.24); }
/* Flagpin = 近黒紺の「小さな夜」。パネル全体を暗地にし本文は明色(構造的に AA を確保) */
.work--flagpin { --accent: var(--c-flagpin); --accent-deep: var(--c-flagpin-lit); --tint: #0A0C10; --tint-line: rgba(109, 179, 247, 0.32); }

.work-emblem {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.work-emblem::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(168, 135, 90, 0.2);
  border-radius: 11px;
  pointer-events: none;
}
/* ときどき通り過ぎる光沢 */
.work-emblem::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 43%, rgba(255, 255, 255, 0.55) 50%, transparent 57%);
  transform: translateX(-65%);
  animation: sheenPass 12s ease-in-out infinite;
  pointer-events: none;
}
.work:nth-of-type(2) .work-emblem::after { animation-delay: 2.4s; }
.work:nth-of-type(3) .work-emblem::after { animation-delay: 4.8s; }
.work:nth-of-type(4) .work-emblem::after { animation-delay: 7.2s; }
.work:nth-of-type(5) .work-emblem::after { animation-delay: 9.6s; }
@keyframes sheenPass {
  0%, 62%  { transform: translateX(-65%); }
  80%, 100% { transform: translateX(65%); }
}

.work-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  opacity: 0.6;
}

/* ---------- dioramas(各サイトのミニ移植) ---------- */
@keyframes agaveBreath {
  from { transform: scale(1) rotate(-0.7deg); }
  to   { transform: scale(1.035) rotate(0.7deg); }
}
@keyframes nodePulse {
  0%, 22%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
}
@keyframes threadFlow { to { stroke-dashoffset: -30; } }
@keyframes barBreath { from { transform: scaleX(0.93); } to { transform: scaleX(1); } }

.work-emblem.scene {
  aspect-ratio: 16 / 11;
  display: block;
  padding: 0;
  box-shadow: 0 30px 60px -42px rgba(38, 36, 31, 0.45);
}
.work-emblem.scene::before { content: none; }
.scene .work-num { z-index: 3; font-size: 9.5px; top: 8px; right: 12px; opacity: 0.9; }
.scene--pc .work-num, .scene--cx .work-num, .scene--gr .work-num { color: rgba(232, 217, 188, 0.85); }
.scene--pc .work-num { top: auto; bottom: 7px; right: 12px; color: rgba(20, 38, 26, 0.4); }
.scene--bc .work-num { color: #AEAEB2; }
.scene--kz .work-num { color: #8A8983; }

.mini { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mini-util {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5px 13px;
  background: #0D1A11;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.26em;
  color: #A8875A;
}
.mini-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 13px;
}
.mini-head--forest { background: linear-gradient(135deg, #14261A, #1E3D26); }
.mini-logo { font-weight: 900; font-size: 9.5px; letter-spacing: 0.18em; color: #FAF7F2; white-space: nowrap; }
.mini-logo b { color: #C9AB7A; font-weight: 900; }
.mini-logo em { font-style: normal; color: #C9AB7A; font-weight: 600; letter-spacing: 0.3em; margin-left: 7px; font-size: 8.5px; }
.mini-pills { display: flex; gap: 5px; }
.mini-pills i {
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 242, 0.85);
  border: 1px solid rgba(201, 171, 122, 0.5);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.mini-pills i.on { background: #C9AB7A; color: #14261A; border-color: transparent; font-weight: 700; }
.mini-body { flex: 1; padding: 10px 12px; display: grid; gap: 7px; align-content: start; }

/* PlantsChain: 深緑ヒーロー + 白ガラスのルートカード */
.scene--pc { background: #FAF7F2; }
.scene--pc .mini-body { align-content: stretch; grid-template-rows: 1fr auto; }
.pc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, #14261A, #1E3D26);
  border-radius: 9px;
  padding: 7px 12px 6px;
}
.pc-hero-brand { font-family: var(--mono); font-size: 6px; letter-spacing: 0.32em; color: #A8875A; }
.pc-hero-title { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #E8D9BC; }
.pc-hero-lead { margin-top: 3px; font-size: 6.8px; letter-spacing: 0.06em; color: rgba(232, 217, 188, 0.72); }
.pc-rosette { width: 46px; flex: none; }
.agave-rosette-sm { transform-origin: 32px 44px; animation: agaveBreath 7s ease-in-out infinite alternate; }
.pc-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.pc-meta { display: flex; align-items: center; gap: 4px; }
.pc-badge {
  font-size: 6px;
  letter-spacing: 0.1em;
  color: #1E3D26;
  background: #F3EFE7;
  border-radius: 999px;
  padding: 1.5px 6px;
}
.pc-ticker {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.38);
  padding: 4px 9px;
}
.pc-new {
  font-family: var(--mono);
  font-size: 5.5px;
  letter-spacing: 0.16em;
  color: #FFFFFF;
  background: #C4502C;
  border-radius: 999px;
  padding: 1.5px 6px;
  animation: stampBreath 4s ease-in-out infinite alternate;
}
.pc-ticker-t { font-size: 7px; color: #2A2A28; letter-spacing: 0.04em; }
.pc-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.38);
  padding: 7px 9px 8px;
  display: grid;
  gap: 3px;
  justify-items: start;
}
.pc-rank {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: #C9AB7A;
  background: #14261A;
  border-radius: 999px;
  padding: 1.5px 7px;
}
.pc-card-t { font-size: 9.5px; font-weight: 800; color: #14261A; letter-spacing: 0.06em; }
.pc-card-d { font-size: 7px; color: #6B6B65; letter-spacing: 0.04em; }

/* CAUDEX: 件数付きカテゴリカード + 相場 */
.scene--cx { background: #FAF7F2; }
.cx-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.38);
  padding: 5.5px 10px;
}
.cx-t { font-size: 9px; font-weight: 800; color: #14261A; letter-spacing: 0.05em; line-height: 1.3; }
.cx-t small { display: block; font-size: 6.5px; font-weight: 500; color: #6B6B65; margin-top: 1px; }
.cx-n { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #14261A; line-height: 1; text-align: right; }
.cx-n small { display: block; font-size: 5.5px; letter-spacing: 0.1em; color: #6B6B65; margin-top: 2px; font-weight: 400; }
.cx-market {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.38);
  overflow: hidden;
}
.cx-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5px 10px;
  background: #14261A;
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.22em;
  color: #C9AB7A;
}
.cx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 6px 0 5px;
}
.cx-stat { text-align: center; border-right: 1px solid rgba(201, 171, 122, 0.25); }
.cx-stat:last-child { border-right: 0; }
.cx-stat b { display: block; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #14261A; line-height: 1.2; }
.cx-stat span { font-size: 5.5px; letter-spacing: 0.14em; color: #6B6B65; }
.cx-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 6px;
  border-top: 1px solid rgba(201, 171, 122, 0.25);
}
.cx-top-rank {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #14261A;
  color: #C9AB7A;
  font-size: 7px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cx-top-name { font-size: 8px; font-weight: 700; color: #14261A; line-height: 1.25; }
.cx-top-name small { display: block; font-size: 6px; font-weight: 500; color: #6B6B65; }
.cx-top .cx-price { margin-left: auto; }
.cx-price {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #D45D3A;
  animation: stampBreath 5s ease-in-out infinite alternate;
}

/* GREEN: フィルターチップ + 記事カード */
.scene--gr { background: #FAF7F2; }
.scene--gr .mini-head--forest { background: #14261A; }
.gr-chips {
  flex: none;
  display: flex;
  gap: 5px;
  padding: 0 13px 9px;
  background: #14261A;
}
.gr-chips i {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(201, 171, 122, 0.45);
  border-radius: 999px;
  padding: 2.5px 9px;
}
.gr-chips i.on { background: #C9AB7A; color: #14261A; font-weight: 700; }
.gr-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(201, 171, 122, 0.38);
  padding: 6px 10px;
}
.gr-thumb { flex: none; width: 25px; height: 25px; border-radius: 50%; background: #EDF5EC; display: grid; place-items: center; }
.gr-thumb svg { width: 15px; height: 15px; }
.gr-card-t { font-size: 9px; font-weight: 800; color: #14261A; letter-spacing: 0.05em; flex: 1; }
.gr-card-t small { display: block; font-size: 6.5px; font-weight: 500; color: #6B6B65; margin-top: 1px; }
.gr-tag {
  flex: none;
  font-size: 6px;
  letter-spacing: 0.12em;
  color: #2C5E36;
  border: 1px solid rgba(59, 122, 69, 0.4);
  border-radius: 999px;
  padding: 1.5px 7px;
}

/* Baby Compass: 比較テーブル + メダル + iOS ブルー */
.scene--bc { background: #FCFCFD; }
.mini-head--ios { background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.bc-brand { display: grid; gap: 1px; }
.bc-logo { font-size: 10px; font-weight: 700; color: #1D1D1F; letter-spacing: 0.02em; }
.bc-tag { font-size: 6px; color: #5A5A5F; letter-spacing: 0.08em; }
.bc-seg {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 2px;
}
.bc-seg i {
  font-style: normal;
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: #5A5A5F;
  padding: 2px 8px;
  border-radius: 999px;
}
.bc-seg i.on { background: #FFFFFF; color: #0071E3; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.bc-cat { font-size: 6.5px; letter-spacing: 0.1em; color: #AEAEB2; }
.bc-table {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 7px 10px;
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.bc-thead, .bc-trow {
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  align-items: center;
  gap: 8px;
}
.bc-thead span { font-size: 6.5px; letter-spacing: 0.06em; color: #AEAEB2; font-weight: 600; }
.bc-trow { border-top: 1px solid rgba(0, 0, 0, 0.05); padding-top: 6px; }
.bc-th { font-size: 7.5px; font-weight: 600; color: #5A5A5F; }
.bc-cell { display: flex; align-items: center; gap: 5px; }
.bc-cell b { font-family: var(--mono); font-size: 7.5px; font-weight: 700; color: #1D1D1F; white-space: nowrap; }
.bc-cell b small { font-size: 5.5px; color: #5A5A5F; font-weight: 400; }
.bc-mbar { flex: 1; height: 4px; background: rgba(0, 0, 0, 0.06); border-radius: 999px; overflow: hidden; }
.bc-mbar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: #0071E3;
  border-radius: inherit;
  transform-origin: left center;
  animation: barBreath 4.5s ease-in-out infinite alternate;
}
.bc-trow:nth-of-type(3) .bc-mbar i { animation-delay: 0.7s; }
.bc-check {
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: #1F9D47;
  border: 1px solid rgba(48, 209, 88, 0.45);
  border-radius: 999px;
  padding: 1.5px 7px;
}
.bc-rank { display: flex; align-items: center; gap: 7px; }
.bc-medal {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 7.5px;
  font-weight: 700;
}
.bc-medal--g { background: linear-gradient(135deg, #FFD700, #FFB800); color: #1D1D1F; }
.bc-medal--s { background: linear-gradient(135deg, #E8E8E8, #BDBDBD); color: #1D1D1F; }
.bc-medal--b { background: linear-gradient(135deg, #E0945A, #B87333); color: #FFFFFF; }
.bc-rank-name { font-size: 7.5px; font-weight: 600; color: #1D1D1F; white-space: nowrap; }
.bc-bar { flex: 1; height: 5px; background: rgba(0, 0, 0, 0.06); border-radius: 999px; overflow: hidden; }
.bc-bar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: #0071E3;
  border-radius: inherit;
  transform-origin: left center;
  animation: barBreath 4.5s ease-in-out infinite alternate;
}
.bc-score { font-family: var(--mono); font-size: 9px; font-weight: 700; color: #0071E3; }

/* 家系図ずかん: 紙地 + ドット格子 + 円ノードの家系図 */
.scene--kz { background: #FAFAFA; }
.mini-head--paper { background: #FFFFFF; border-bottom: 1px solid #E5E3E0; }
.kz-logo { font-size: 10px; font-weight: 800; color: #0F766E; letter-spacing: 0.12em; }
.kz-nav { font-size: 6.5px; color: #6B6B6B; letter-spacing: 0.1em; }
.kz-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E3E0;
}
.kz-btn {
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: #0F766E;
  border: 1px solid rgba(15, 118, 110, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.kz-btn--primary { background: #0F766E; color: #FFFFFF; border-color: #0F766E; font-weight: 700; }
.kz-tools { margin-left: auto; display: flex; gap: 5px; }
.kz-tools .kz-btn { color: #6B6B6B; border-color: #D8D6D2; }
.kz-connect { animation: threadFlow 2.8s linear infinite; }
.kz-cursor {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.8s ease-in-out infinite;
}
.kz-stage {
  flex: 1;
  min-height: 0;
  background-color: rgba(255, 253, 247, 0.9);
  background-image: radial-gradient(rgba(15, 118, 110, 0.12) 1px, transparent 1.3px);
  background-size: 15px 15px;
}
.kz-stage svg { width: 100%; height: 100%; display: block; }
.kz-node--sel > circle:first-of-type {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 5.2s ease-in-out infinite;
}

/* ---------- work body ---------- */
.work-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent-deep);
}
.work-name {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.work-name-ja { letter-spacing: 0.1em; }
.work-tagline {
  margin-top: 8px;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.work-desc {
  margin-top: 10px;
  max-width: 560px;
  font-size: 13.8px;
  line-height: 1.95;
  color: var(--ink-sub);
}
.work-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.work-tags li {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #6C6555; /* すりガラス上で AA 4.5:1+ (旧 --ink-faint は 3.6:1 で未達) */
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 13px;
}

.work-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent-deep);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.work-link-text {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
  padding-bottom: 2px;
}
.work-link:hover .work-link-text { background-size: 100% 1px; }
.work-link-domain {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #6C6555; /* すりガラス上で AA 4.5:1+ */
}
.work-link-arrow {
  position: relative;
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: width 0.45s var(--ease);
}
.work-link-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg) scale(0.86);
}
.work-link:hover .work-link-arrow { width: 50px; }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; gap: 22px; }
  .work--flip .work-emblem { order: 0; }
  .work--flip .work-body { order: 1; }
  .work-emblem { max-width: 420px; }
}

/* ---------- WORKS の透ける対象: 章テーマ色のオーロラブロブ ----------
   すりガラスの背後を流れる色。--theme-accent(テーマブリッジ)で章ごとに染まり、
   スクロールで緩く視差(motion.js)。ブロブは各カードのジオラマ側(交互 L/R)に置き、
   本文テキスト列の直下に濃い核が来ないようにする(M8) */
.works { position: relative; }
.works > .sec-head, .works > .work-list { position: relative; z-index: 1; }
.works-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.works-bg .wb {
  position: absolute;
  width: clamp(380px, 46vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--theme-accent, var(--gold-light)) 0%, transparent 66%);
  opacity: 0.42;
  filter: blur(56px);
  will-change: transform;
}
.wb-1 { top: 6%;  left: clamp(-220px, -17vw, -120px); }
.wb-2 { top: 23%; right: clamp(-230px, -18vw, -130px); opacity: 0.36; }
.wb-3 { top: 40%; left: clamp(-200px, -16vw, -110px); }
.wb-4 { top: 57%; right: clamp(-220px, -17vw, -120px); opacity: 0.38; }
.wb-5 { top: 73%; left: clamp(-210px, -16vw, -115px); }
@media (max-width: 860px) {
  /* 1 カラム時は本文がブロブ側にも回り込むため薄める(コントラスト保全) */
  .works-bg .wb { opacity: 0.26; }
}

/* ---------- WORKS すりガラス(prismplane 方式。803 patterns/12) ----------
   各 work を半透明のフロスト面にして紙地・ノイズ・ブロブの彩を透かす。
   非対応環境は @supports で不透明地にフォールバック(可読性確保) */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .work:not(.work--flagpin) {
    border-top-color: transparent;
    padding: clamp(20px, 2.8vw, 32px);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(255, 254, 251, 0.5), rgba(250, 247, 242, 0.3));
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    backdrop-filter: blur(20px) saturate(1.12);
    box-shadow: 0 30px 58px -46px rgba(58, 42, 24, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }
  .work:not(.work--flagpin)::before { top: 0; left: clamp(20px, 2.8vw, 32px); }
}

/* ---------- Flagpin = works の中の「小さな夜」パネル ----------
   パネル全体を近黒紺の自前暗地にし、本文を明色で載せる。
   これにより theme-mood の補間状態と独立して常に AA を満たす(保護地方式の補完) */
.work--flagpin {
  border-top: 0;
  margin-top: clamp(4px, 1vw, 12px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background:
    radial-gradient(120% 130% at 82% -20%, rgba(45, 92, 158, 0.42), transparent 58%),
    linear-gradient(158deg, #10141C 0%, #0A0C10 64%);
  box-shadow: 0 44px 88px -54px rgba(4, 8, 20, 0.95), inset 0 0 0 1px rgba(109, 179, 247, 0.15);
  overflow: hidden;
}
.work--flagpin::before { content: none; }
.work--flagpin .work-num { color: rgba(147, 200, 255, 0.72); }
.work--flagpin .work-kicker { color: var(--c-flagpin-lit); }
.work--flagpin .work-name { color: var(--night-text); }
.work--flagpin .work-tagline { color: var(--c-flagpin-lit); }
.work--flagpin .work-desc { color: #CBD8EA; }        /* near-black 上 ~12:1 */
.work--flagpin .work-tags li { color: #AAB9CD; border-color: rgba(109, 179, 247, 0.32); }
.work--flagpin .work-link { color: var(--c-flagpin-lit); }
.work--flagpin .work-link-domain { color: #8496AD; } /* near-black 上 ~5.6:1(小さめ字だが AA 可) */

/* works 内 fp シーン(地球儀 + 採点サイド)。共通見た目は .teaser-scene--fp,.scene--fp で定義済み */
.scene--fp .work-num { color: rgba(147, 200, 255, 0.82); z-index: 3; }
.scene--fp .fp-globe { width: clamp(112px, 40%, 152px); height: auto; }
@media (max-width: 640px) {
  .scene--fp { flex-direction: column; padding: 16px 14px; gap: 12px; }
  .scene--fp .fp-globe { width: 118px; }
}

/* ---------- ピン留めシアター(データの粒 → 彩の意匠。H2) ---------- */
.theater { position: relative; background: var(--bg-alt); overflow: hidden; }
.theater-stage {
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7vh var(--pad) 5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.theater-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.42em; color: var(--gold-text); }
.theater-line {
  margin-top: 14px;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  letter-spacing: 0.09em;
  line-height: 1.55;
  color: var(--ink);
}
/* 弧の扇 = 主役。最終状態で画面幅の 6〜7 割を占める(1280 で 弧幅 850/svg 1000)。
   縦も 100vh の中央帯を使い、見出し+扇で画面を満たす */
.theater-svg { margin-top: clamp(14px, 3vh, 32px); width: 100%; max-width: 1000px; height: auto; }
/* 粒の色は着地する弧の彩(fill 属性)に任せる — CSS で上書きしない */
/* motion 時のみ弧を一旦伏せ、scrub で描く(reduced-motion では静的に意匠が見える) */
html.motion .th-arcs path { opacity: 0.9; }

/* ---------- 02 next(夜のセクション) ---------- */
.night {
  position: relative;
  overflow: hidden;
  background: linear-gradient(152deg, #0D1410 0%, #0E1516 52%, #0F1522 100%);
}
.night .sec-title { color: var(--night-text); }
.night .sec-desc { color: var(--night-muted); }
.night .sec-label { color: var(--gold-light); }
.night .sec-label::after { background: var(--gold-light); }
.night .sec-num { -webkit-text-stroke-color: rgba(201, 171, 122, 0.32); }

.night-stars { position: absolute; inset: 0; pointer-events: none; }
.night-stars::before,
.night-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 22% 28%, rgba(232, 217, 188, 0.85), transparent 55%),
    radial-gradient(1px 1px at 64% 14%, rgba(232, 217, 188, 0.6), transparent 55%),
    radial-gradient(1.4px 1.4px at 83% 42%, rgba(232, 217, 188, 0.7), transparent 55%),
    radial-gradient(1px 1px at 41% 64%, rgba(232, 217, 188, 0.5), transparent 55%),
    radial-gradient(1.2px 1.2px at 12% 78%, rgba(232, 217, 188, 0.65), transparent 55%),
    radial-gradient(1px 1px at 92% 82%, rgba(232, 217, 188, 0.55), transparent 55%);
  background-size: 640px 520px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.night-stars::after {
  background-position: 320px 200px;
  animation-delay: 3.5s;
  animation-direction: alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }

.teaser-list {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 40px) auto 0;
  padding-inline: var(--pad);
  display: grid;
  /* NEXT は DAREKARA 1 枚のみ。単独カードを中央に据える(2 列時代の名残で左寄せにしない) */
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 860px) { .teaser-list { grid-template-columns: 1fr; } }

.teaser {
  position: relative;
  border: 1px solid rgba(201, 171, 122, 0.28);
  border-radius: 20px;
  padding: clamp(18px, 2.5vw, 26px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  overflow: hidden;
}
.teaser::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 44%, rgba(232, 217, 188, 0.09) 50%, transparent 56%);
  transform: translateX(-65%);
  animation: sheenPass 14s ease-in-out infinite;
  pointer-events: none;
}
.teaser:nth-child(2)::before { animation-delay: 5s; }
@media (max-width: 640px) {
  .teaser-scene--fp { padding-inline: 12px; }
  .fp-globe { width: 100px; height: 100px; }
  /* 狭幅では COMING SOON スタンプをシーンに重ねず、カード上部の専用帯に収める
     (390px で Flagpin タイトルと重なるため)。
     セレクタは .teaser 付きで詳細度を上げる(基本定義がソース順で後にあるため) */
  .teaser { padding-top: 60px; }
  .teaser .teaser-stamp { top: 14px; right: 16px; }
}

.teaser-stamp {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 30px;
  transform: rotate(-3deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-light);
  border: 1px solid rgba(201, 171, 122, 0.5);
  border-radius: 999px;
  padding: 6px 14px 6px 16px;
  background: rgba(10, 16, 12, 0.55);
  animation: stampBreath 5s ease-in-out infinite alternate;
}
@keyframes stampBreath { from { opacity: 0.55; } to { opacity: 1; } }

/* ティザーシーン: 各新作の世界観のミニ移植 */
.teaser-scene {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 176px;
  border: 1px solid rgba(201, 171, 122, 0.22);
}

/* ダレカラ: 夜の温室 + 金糸の系譜 */
.teaser-scene--dk { background: radial-gradient(120% 100% at 50% -20%, #1E3D26 0%, #14261A 42%, #0D1A11 100%); }
.teaser-scene--dk svg { width: 100%; height: 100%; display: block; }
.dk-legend {
  position: absolute;
  top: 10px;
  left: 13px;
  z-index: 2;
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.14em;
  color: rgba(201, 171, 122, 0.8);
}
.dk-legend span { display: inline-flex; align-items: center; gap: 4px; }
.dk-legend i { display: inline-block; width: 14px; height: 0; }
.dk-lg-endorsed { border-top: 2.4px solid #C9AB7A; }
.dk-lg-claimed { border-top: 1px solid rgba(201, 171, 122, 0.68); }
.dk-lg-gap { border-top: 1.2px dashed rgba(201, 171, 122, 0.6); }
.dk-gap { animation: threadFlow 3.6s linear infinite; }
.dk-node--me { animation: stampBreath 4.5s ease-in-out infinite alternate; }
.dk-spark {
  offset-path: path("M110 90 C138 74 158 66 184 58");
  animation: dkSpark 3.2s ease-in-out infinite;
}
@keyframes dkSpark {
  0%   { offset-distance: 0%; opacity: 0; }
  12%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.dk-mark {
  position: absolute;
  right: 13px;
  bottom: 9px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: rgba(201, 171, 122, 0.75);
}

/* Flagpin: 夜の地球儀 + 採点タイル(実物準拠 = 近黒紺 #0A0C10 + 空色 #6DB3F7。
   works の .scene--fp と /sites/ の .teaser-scene--fp で共用) */
.teaser-scene--fp,
.work-emblem.scene--fp {
  background: radial-gradient(120% 90% at 50% -30%, #10141C 0%, #0A0C10 62%);
  display: flex;             /* .work-emblem.scene の display:block を上書きするため 0,2,0 で指定 */
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 10px clamp(14px, 2vw, 24px);
}
.teaser-scene--fp::before,
.scene--fp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 22%, rgba(214, 228, 248, 0.8), transparent 55%),
    radial-gradient(1px 1px at 72% 12%, rgba(214, 228, 248, 0.5), transparent 55%),
    radial-gradient(1.3px 1.3px at 88% 58%, rgba(147, 200, 255, 0.55), transparent 55%),
    radial-gradient(1px 1px at 42% 82%, rgba(214, 228, 248, 0.4), transparent 55%),
    radial-gradient(1px 1px at 60% 40%, rgba(214, 228, 248, 0.35), transparent 55%);
  background-size: 420px 300px;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.fp-globe { width: 134px; height: 134px; flex: none; position: relative; z-index: 1; }
.fp-land { animation: fpDrift 18s ease-in-out infinite alternate; }
@keyframes fpDrift {
  from { transform: translateX(-16px); }
  to   { transform: translateX(10px); }
}
.fp-equator { animation: threadFlow 4.2s linear infinite; }
.fp-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: fpPing 2.8s ease-out infinite;
}
@keyframes fpPing {
  0%        { transform: scale(0.4); opacity: 0.9; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}
.fp-side { display: grid; gap: 7px; position: relative; z-index: 1; }
.fp-logo { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: #E6EEF8; }
.fp-logo b { color: var(--c-flagpin); }
.fp-streak { font-family: var(--mono); font-size: 8px; color: #8FA0B8; letter-spacing: 0.06em; margin-left: 9px; font-weight: 400; }
.fp-flag { display: flex; align-items: center; gap: 8px; }
.fp-flag svg { width: 22px; height: 22px; flex: none; }
.fp-q { font-size: 8px; font-weight: 600; color: #E6EEF8; letter-spacing: 0.08em; }
.fp-share {
  background: rgba(12, 17, 28, 0.78);
  border: 1px solid rgba(109, 179, 247, 0.24);
  border-radius: 8px;
  padding: 6px 10px 7px;
  display: grid;
  gap: 5px;
}
.fp-share-l1 { font-family: var(--mono); font-size: 7px; letter-spacing: 0.06em; color: #E6EEF8; }
.fp-tiles { display: flex; align-items: center; gap: 4px; }
.fp-tiles i {
  width: 13px;
  height: 13px;
  border-radius: 3.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: stampBreath 4s ease-in-out infinite alternate;
}
.fp-tiles i:nth-child(2) { animation-delay: 0.4s; }
.fp-tiles i:nth-child(3) { animation-delay: 0.8s; }
.fp-tiles i:nth-child(4) { animation-delay: 1.2s; }
.fp-tiles i:nth-child(5) { animation-delay: 1.6s; }
.t-g { background: linear-gradient(160deg, #58D68A, #1F8F52); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 8px rgba(74, 222, 128, 0.38); } /* good = 緑 #4ade80 */
.t-n { background: linear-gradient(160deg, #FBD24E, #B8860B); } /* near = アンバー #fbbf24 */
.t-t { background: linear-gradient(160deg, #EF6D64, #93312D); }
.t-m { background: linear-gradient(160deg, #8A93A5, #565D6E); } /* miss = 灰 #6b7484 */
.fp-score { margin-left: 6px; font-family: var(--mono); font-size: 8.5px; color: var(--c-flagpin-lit); letter-spacing: 0.08em; }
.fp-prompt { font-size: 7.5px; color: #8FA0B8; letter-spacing: 0.12em; }

.teaser-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
}
.teaser-title {
  margin-top: 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: 0.09em;
  line-height: 1.6;
  color: var(--night-text);
}
.teaser-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--night-muted);
}

/* ---------- 03 about(運営者) ---------- */
.about { background: var(--bg-alt); }
.about-inner {
  max-width: var(--maxw);
  margin: clamp(24px, 3.5vw, 36px) auto 0;
  padding-inline: var(--pad);
}
.about-statement {
  position: relative;
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.07em;
  line-height: 2;
  color: var(--ink);
  padding-top: 20px;
}
.about-statement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  width: 64px;
  height: 1px;
  background: var(--gold);
}

/* 運営者アイデンティティ */
.operator {
  margin-top: clamp(22px, 3vw, 30px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.operator-mark {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 22px -12px rgba(20, 38, 26, 0.55);
}
.operator-mark svg { display: block; width: 100%; height: 100%; }
.operator-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.operator-name small {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-left: 8px;
  letter-spacing: 0.08em;
}
.operator-role {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-text);
}
.about-note {
  margin-top: clamp(18px, 2.5vw, 24px);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-sub);
}

.sns-list {
  max-width: var(--maxw);
  margin: clamp(20px, 3vw, 28px) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  max-width: 760px;
}
@media (max-width: 700px) { .sns-list { grid-template-columns: 1fr; } }

.sns-card {
  display: grid;
  /* 第3列を hover 最大幅(50px)で固定予約 → 矢印が伸びても body(1fr)を侵さず reflow ゼロ
     (research_flagpin_and_hover.md 修正A。トップ/about 共通クラスで両方直る) */
  grid-template-columns: 48px 1fr 50px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 22px;
  background: var(--surface);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.sns-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px -30px rgba(38, 36, 31, 0.3);
  border-color: rgba(168, 135, 90, 0.5);
}
.sns-glyph {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  display: grid;
  place-items: center;
}
.sns-glyph svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.7; }
.sns-glyph .ig-dot { fill: var(--ink); stroke: none; }
.sns-body { display: grid; gap: 2px; }
.sns-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.sns-handle {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gold-text);
}
.sns-desc { font-size: 12.5px; line-height: 1.8; color: var(--ink-sub); margin-top: 4px; }
.sns-card .work-link-arrow { color: var(--gold-text); width: 34px; margin-left: auto; }
.sns-card:hover .work-link-arrow { width: 50px; } /* 予約枠(50px)内で伸びるだけ */

/* ---------- footer ---------- */
.site-footer {
  background: var(--c-night-1);
  color: #D9CDB2;
  padding-top: clamp(44px, 6vw, 64px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(28px, 4.5vw, 56px);
  padding-bottom: clamp(32px, 4.5vw, 48px);
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

.brand--footer { color: var(--gold-pale); font-size: 24px; }
.brand--footer .brand-chip { animation: none; background: var(--gold-light); }
.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(217, 205, 178, 0.75);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(28px, 5vw, 64px);
  justify-content: start;
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  font-size: 13.5px;
  color: rgba(232, 217, 188, 0.72);
  background: linear-gradient(var(--gold-light), var(--gold-light)) left bottom / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.footer-col a:hover { color: var(--gold-pale); background-size: 100% 1px; }

.footer-bottom {
  border-top: 1px solid rgba(201, 171, 122, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad) 26px;
}
.palette--footer { height: auto; gap: 8px; margin: 0; }
.palette--footer .chip { width: 5px; height: 13px; border-radius: 3px; animation: chipBreath 5.5s ease-in-out infinite alternate; }
.copyright {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(217, 205, 178, 0.5);
}

/* ---------- サブページ共通 ---------- */
.page-main { padding-top: 68px; }
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) var(--pad) clamp(16px, 2.5vw, 26px);
}
.crumb {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb a { background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.crumb a:hover { background-size: 100% 1px; }
.crumb i { font-style: normal; color: var(--ink-faint); }
.page-title {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.page-desc { margin-top: 10px; max-width: 660px; font-size: 14px; line-height: 1.95; color: var(--ink-sub); }

/* ---------- /sites/ カードリスト ---------- */
.site-list {
  max-width: var(--maxw);
  margin: clamp(20px, 3vw, 30px) auto clamp(64px, 8vw, 96px);
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 920px) { .site-list { grid-template-columns: 1fr; } }

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tint-line, var(--hairline));
  border-radius: 20px;
  overflow: hidden;
  background: var(--tint, var(--surface));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-card:hover { transform: translateY(-5px); box-shadow: 0 34px 64px -38px rgba(38, 36, 31, 0.42); }
.site-card .work-emblem.scene {
  position: relative;
  aspect-ratio: 16 / 10.2;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--tint-line, var(--hairline));
}
.site-card-body { flex: 1; display: grid; gap: 8px; align-content: start; padding: 18px 22px 22px; }
.site-card-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent-deep, var(--gold-text)); }
.site-card-name { font-size: 19px; font-weight: 800; letter-spacing: 0.03em; color: var(--ink); }
.site-card-tagline { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; color: var(--accent-deep, var(--ink)); }
.site-card-desc { font-size: 12.8px; line-height: 1.9; color: var(--ink-sub); }
.site-card .work-tags { margin-top: 2px; }
.site-card-foot { margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-deep, var(--ink));
  color: #FFFFFF;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: filter 0.3s, transform 0.3s var(--ease);
}
.site-card-cta:hover { filter: brightness(1.15); transform: translateX(2px); }
.site-card-cta .work-link-arrow { width: 20px; color: rgba(255, 255, 255, 0.9); }
.site-card-domain { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-faint); }

/* 公開準備中カード(夜) */
.site-card--night { background: #0E1512; border-color: rgba(201, 171, 122, 0.3); }
.site-card--night .teaser-scene { border: 0; border-radius: 0; height: 200px; border-bottom: 1px solid rgba(201, 171, 122, 0.25); }
.site-card--night .site-card-kicker { color: var(--gold-light); }
.site-card--night .site-card-name { color: var(--night-text); }
.site-card--night .site-card-tagline { color: var(--gold-pale); }
.site-card--night .site-card-desc { color: var(--night-muted); }
.site-card--night .site-card-stamp {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  border: 1px solid rgba(201, 171, 122, 0.5);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(10, 16, 12, 0.55);
  animation: stampBreath 5s ease-in-out infinite alternate;
}

/* Flagpin(公開済み)= /sites/ の「小さな夜」運営カード。暗地 + 空色 + 明ボタン */
.site-card--flagpin {
  --accent: var(--c-flagpin);
  --accent-deep: var(--c-flagpin-lit);
  background: linear-gradient(158deg, #10141C 0%, #0A0C10 66%);
  border-color: rgba(109, 179, 247, 0.3);
}
.site-card--flagpin .work-emblem.scene { border-bottom-color: rgba(109, 179, 247, 0.25); }
.site-card--flagpin .site-card-kicker { color: var(--c-flagpin-lit); }
.site-card--flagpin .site-card-name { color: var(--night-text); }
.site-card--flagpin .site-card-tagline { color: var(--c-flagpin-lit); }
.site-card--flagpin .site-card-desc { color: #C0CEE2; }
.site-card--flagpin .site-card-domain { color: #8496AD; }
.site-card--flagpin .work-tags li { color: #AAB9CD; border-color: rgba(109, 179, 247, 0.32); }
.site-card--flagpin .site-card-cta { background: var(--c-flagpin); color: #071018; } /* 暗 UI 上の明ボタン(実物準拠) */
.site-card--flagpin .site-card-cta .work-link-arrow { color: rgba(7, 16, 24, 0.9); }

/* ---------- /about/ 運営者紹介 ---------- */
.about-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 26px) var(--pad) 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
}
.about-mark {
  flex: none;
  width: clamp(76px, 9vw, 96px);
  height: clamp(76px, 9vw, 96px);
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(20, 38, 26, 0.6);
}
.about-mark svg { display: block; width: 100%; height: 100%; }
.about-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: 0.05em; color: var(--ink); }
.about-name small { font-weight: 500; font-size: 0.55em; color: var(--ink-faint); margin-left: 10px; letter-spacing: 0.1em; }
.about-role { margin-top: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--gold-text); }

.about-block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 36px) var(--pad) 0;
}
.about-block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold-text);
}
.about-block-title::after { content: ""; flex: 1; max-width: 52px; height: 1px; background: var(--gold); }
.about-lead { margin-top: 14px; max-width: 700px; font-size: 14.5px; line-height: 2.05; color: var(--ink); }

.fact-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.fact-list li {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 15px;
}

.value-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px 20px; }
.value-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold); }
.value-card h3 { margin-top: 8px; font-size: 14.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); }
.value-card p { margin-top: 8px; font-size: 12.8px; line-height: 1.9; color: var(--ink-sub); }
.value-card p a { color: var(--gold-text); background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; }

.msite-list { margin-top: 8px; }
.msite {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding: 13px 2px;
  transition: background-color 0.3s;
}
.msite:last-child { border-bottom: 1px solid var(--hairline); }
.msite:hover { background: rgba(255, 255, 255, 0.55); }
.msite-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.msite-name { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.msite-desc { font-size: 12px; color: var(--ink-sub); flex: 1; }
.msite .work-link-arrow { color: var(--gold-text); }
.msite:hover .work-link-arrow { width: 46px; }
@media (max-width: 640px) { .msite-desc { display: none; } }

.timeline { margin-top: 14px; border-left: 1px solid var(--hairline); padding-left: 22px; display: grid; gap: 13px; max-width: 560px; }
.timeline li { position: relative; font-size: 13px; line-height: 1.8; color: var(--ink-sub); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26.5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold-text); margin-right: 10px; font-weight: 400; }
.timeline strong { color: var(--ink); font-weight: 700; }
.about-cta-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }
.about-foot-pad { padding-bottom: clamp(64px, 8vw, 96px); }

/* nav active */
.global-nav a.is-current { color: var(--ink); background-size: 100% 1px; }

/* 狭幅ではシーンのアスペクト固定をやめ、内容の高さに合わせる(見切れ防止) */
@media (max-width: 480px) {
  .work-emblem.scene, .site-card .work-emblem.scene { aspect-ratio: auto; }
  .work-emblem.scene .mini { position: static; }
}

/* ---------- reveal(スクロール出現) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
html.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.36s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.5s; }
html.js .reveal[data-delay="5"] { transition-delay: 0.62s; }
html.js .reveal.is-in { opacity: 1; transform: none; }


/* ============================================================
   オカピ(生成 AI 実写アセット。2026-07-11 直希さん判断で SVG から改定)
   ヒーロー = cut_b(紙白スタジオ立ち姿)。開幕の森 = cut_c/動画。
   仕様正本: design/prompts/okapi_asset_prompts.md / 原本 design/assets_incoming/
   ============================================================ */

/* ヒーローの主役: cut_b(スタジオ立ち姿)。クリーム背景を地色へ溶かす放射マスク付き */
.hero-figure {
  position: absolute;
  z-index: 2;
  right: clamp(-10px, 2vw, 40px);
  bottom: clamp(36px, 8vh, 96px);
  width: clamp(196px, 30vw, 372px);
  pointer-events: none;
  /* cut_b の温クリーム(#F8EFE4)を地色(#FAF7F2)/オーロラへ溶かす。
     オカピ(中央〜右寄り)を残す放射マスクに、四辺の線形フェードを intersect で重ね、
     矩形の直線エッジ(トーン差)を全辺で地色へ羽化する(切り抜き不要) */
  -webkit-mask-image:
    radial-gradient(96% 112% at 60% 49%, #000 42%, rgba(0,0,0,0.5) 70%, transparent 90%),
    linear-gradient(90deg, transparent 0, #000 9%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 7%, #000 89%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    radial-gradient(96% 112% at 60% 49%, #000 42%, rgba(0,0,0,0.5) 70%, transparent 90%),
    linear-gradient(90deg, transparent 0, #000 9%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 7%, #000 89%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 26px 30px rgba(58, 42, 24, 0.14));
}
.hero-figure picture, .hero-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 880px) {
  .hero-figure { width: clamp(140px, 36vw, 200px); right: -6px; bottom: 28px; opacity: 0.92; }
}
@media (max-width: 560px) {
  /* 本文(sub)と縦に被らないよう最下部の右隅へ小さく。地色に溶ける装飾アクセント */
  .hero-figure { width: 104px; right: -8px; bottom: 8px; opacity: 0.72; }
}

/* ---------- 開幕: プリローダー(縞の幕)→ 全面の森(初回のみ = html.intro) ---------- */
.preloader { position: fixed; inset: 0; z-index: 300; display: none; overflow: hidden; pointer-events: none; }
html.intro .preloader { display: block; }
.pl-stripes { position: absolute; inset: 0; display: flex; }
.pl-stripes i { flex: 1; will-change: transform; transform: translateY(0); }
.pl-stripes i:nth-child(odd) { background: #F1EBDC; }  /* 温白の縞 */
.pl-stripes i:nth-child(even) { background: #2A1D14; } /* 焦茶の縞 */
/* 幕が中央から持ち上がって開く(CSS 駆動 = GSAP 到達前でも成立)。stage driver が終了後にノード除去 */
html.intro .pl-stripes i { animation: plOpen 0.6s var(--ease) forwards; }
@keyframes plOpen { to { transform: translateY(-101%); } }
html.intro .pl-stripes i:nth-child(1), html.intro .pl-stripes i:nth-child(10) { animation-delay: 0.34s; }
html.intro .pl-stripes i:nth-child(2), html.intro .pl-stripes i:nth-child(9)  { animation-delay: 0.29s; }
html.intro .pl-stripes i:nth-child(3), html.intro .pl-stripes i:nth-child(8)  { animation-delay: 0.24s; }
html.intro .pl-stripes i:nth-child(4), html.intro .pl-stripes i:nth-child(7)  { animation-delay: 0.19s; }
html.intro .pl-stripes i:nth-child(5), html.intro .pl-stripes i:nth-child(6)  { animation-delay: 0.15s; }

/* 開幕の森: 全面動画(月光のオカピ)。stage driver が poster/video を注入し is-playing で差し替え。
   紙白の世界へは intro-leaving で opacity フェード(動画が退場しヒーローが現れる) */
.intro-forest {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #0B0A08;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.15s var(--ease);
  display: none; /* 初回開幕(intro / intro-leaving)のときだけ表示。再訪・no-js では全面黒にしない */
}
html.intro .intro-forest,
html.intro-leaving .intro-forest { display: block; }
html.intro-leaving .intro-forest { opacity: 0; }
.intro-forest-poster,
.intro-forest-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%; /* 主役(右寄りのオカピ)を中央寄せで見せる */
}
.intro-forest-video { opacity: 0; transition: opacity 0.7s linear; }
.intro-forest-video.is-playing { opacity: 1; }

/* 開幕の夜明けワイプ(パス3 磨き): 森が明ける瞬間、左上(月光の光条と同じ方向)から
   紙白の光が斜めに走り、画面を塗り替える。大きな斜め矩形の transform 一本(C2: transform 限定)。
   stage driver の leave() が要素を注入し ~1s 後に除去。初回開幕のみ = reduced-motion では生成されない。
   fixed オーバーレイなので CLS を出さない */
.dawn-wipe {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 260; /* 森(250)より上・プリローダー(300)より下 */
}
.dawn-wipe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300vmax;
  height: 300vmax;
  /* 進行方向(右下)側の縁を紙白の光にし、後方は地色で「塗り替え」を残す帯 */
  background: linear-gradient(
    135deg,
    #faf7f2 0%,
    #faf7f2 78%,
    #fffdf9 90%,
    rgba(255, 253, 249, 0) 100%
  );
  will-change: transform;
  transform: translate3d(-262vmax, -262vmax, 0) translate(-50%, -50%) rotate(-20deg);
  animation: dawnWipe 0.92s cubic-bezier(0.16, 0.84, 0.36, 1) forwards;
}
@keyframes dawnWipe {
  0%   { transform: translate3d(-262vmax, -262vmax, 0) translate(-50%, -50%) rotate(-20deg); }
  100% { transform: translate3d(262vmax, 262vmax, 0) translate(-50%, -50%) rotate(-20deg); }
}

/* 開幕中はヒーローのコピーを伏せ、森が明けた時に現れる。
   cut_b(.hero-figure)は opacity を伏せず transform(わずかな上昇)だけで登場させる —
   森の背後で描画済みにして LCP を早期確定させるため(初回訪問の LCP 対策)。
   森が opacity で退場する間に cut_b が滲み出て、ふわりと上がって定位置へ */
html.motion-boot .hero-inner,
html.motion-boot .scroll-cue { opacity: 0; }
html.motion-boot .hero-figure { transform: translateY(26px); }
html.motion .hero-inner,
html.motion .scroll-cue { transition: opacity 1s var(--ease) 0.12s; }
html.motion .hero-figure { transition: transform 1.2s var(--ease); }
html.motion.hero-formed .hero-inner,
html.motion.hero-formed .scroll-cue { opacity: 1; }
html.motion.hero-formed .hero-figure { transform: none; }

/* ---------- 縞プログレスゲージ(H3 の代替。旧スクロール歩行オカピを廃止)----------
   左端の細い縦ゲージ。読了率で縞が下から伸び、章のテーマ色(--gauge-tint)へ染まる。
   動物の絵ではない抽象要素。transform/opacity 限定(C2)。モバイル非表示。motion.js が生成 */
.stripe-gauge {
  position: fixed;
  left: clamp(10px, 2.4vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  width: 7px; /* 4px では疾走感の担い手として知覚できないため一段太く */
  height: clamp(96px, 17vh, 156px);
  z-index: 40;
  display: flex;
  flex-direction: column-reverse; /* 下から積む */
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.6s var(--ease);
}
.stripe-gauge.is-on { opacity: 1; }
/* 章切替パルスのグロー(テーマ色)。通常は不可視、パルス時だけ opacity で灯す(C2: opacity 限定) */
.stripe-gauge::before {
  content: "";
  position: absolute;
  inset: -9px -11px;
  border-radius: 10px;
  background: radial-gradient(58% 46% at 50% 50%, var(--gauge-tint, #A8875A), transparent 70%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
.stripe-gauge i {
  position: relative;
  flex: 1;
  border-radius: 3px;
  background: rgba(122, 96, 60, 0.24); /* 未読の縞(トラック)。0.16 では薄すぎたので一段濃く */
  overflow: hidden;
}
.stripe-gauge i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* 塗り縞に上端ハイライトを与えて彩度・点灯感を上げる(テーマ色はブリッジ配信) */
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gauge-tint, #A8875A) 78%, #fff) 0%,
    var(--gauge-tint, #A8875A) 60%
  );
  transform: scaleY(0);
  transform-origin: bottom;
}
/* 5 本の縞を読了率 --gauge-p(0..1)で順に満たす(下→上)。transform のみ(C2 準拠) */
.stripe-gauge i:nth-child(1)::after { transform: scaleY(clamp(0, calc(var(--gauge-p, 0) / 0.2), 1)); }
.stripe-gauge i:nth-child(2)::after { transform: scaleY(clamp(0, calc((var(--gauge-p, 0) - 0.2) / 0.2), 1)); }
.stripe-gauge i:nth-child(3)::after { transform: scaleY(clamp(0, calc((var(--gauge-p, 0) - 0.4) / 0.2), 1)); }
.stripe-gauge i:nth-child(4)::after { transform: scaleY(clamp(0, calc((var(--gauge-p, 0) - 0.6) / 0.2), 1)); }
.stripe-gauge i:nth-child(5)::after { transform: scaleY(clamp(0, calc((var(--gauge-p, 0) - 0.8) / 0.2), 1)); }
html.on-night .stripe-gauge i { background: rgba(201, 171, 122, 0.2); } /* 夜章はトラックを砂金寄りに */
@media (max-width: 640px) { .stripe-gauge { display: none; } } /* モバイル非表示 */

/* 章切替パルス(motion.js が .is-pulse を一瞬付与)。ゲージが ~1.3 倍に膨らんで戻り、
   テーマ色のグローが灯る。transform / opacity 限定・translateY(-50%) を全キーフレームで保持。
   reduced-motion では motion.js 非起動 + 既定の animation 0.001s で無効化される(C2) */
.stripe-gauge.is-pulse { animation: gaugePulse 0.6s var(--ease); }
.stripe-gauge.is-pulse::before { animation: gaugeGlow 0.6s var(--ease); }
@keyframes gaugePulse {
  0%   { transform: translateY(-50%) scale(1); }
  32%  { transform: translateY(-50%) scale(1.3); }
  100% { transform: translateY(-50%) scale(1); }
}
@keyframes gaugeGlow {
  0%   { opacity: 0; }
  32%  { opacity: 0.6; }
  100% { opacity: 0; }
}

/* ---------- ABOUT 冒頭の「夜明けの一枚」(cut_c。テキストは重ねない)---------- */
.about-dawn {
  max-width: var(--maxw);
  margin: clamp(20px, 3vw, 32px) auto 0;
  padding-inline: var(--pad);
}
.about-dawn picture {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 60px -42px rgba(58, 42, 24, 0.42);
}
.about-dawn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.about-dawn picture::before { /* ジオラマ窓と同じ内枠 */
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 640px) { .about-dawn img { aspect-ratio: 3 / 2; } }


/* ============================================================
   v2 motion layer — パス2(JS 有効時のみ。html.motion / html.motion-boot)
   reduced-motion では motion.js が起動せず、このレイヤは一切効かない
   参照規範: 803 patterns/01,02,03,05,08,16
   ============================================================ */

/* 開幕のヒーロー出現(コピー + cut_b + scroll-cue)は上の「開幕の森」節で
   html.motion-boot → html.motion.hero-formed により一体制御する */

/* --- 章テーマブリッジ: 単一の真実(--theme-*)の配信先 --- */
html.motion body { background-color: var(--theme-mood, var(--bg)); }
/* 明章の保護地: --theme-mood-lit は明章の間だけ補間され、夜章では直前の明ムードを保持する。
   世界(body)が夜へ補間される間も works/about のテキスト直下は常に明地となり、
   補間中間の低コントラスト状態(中間灰 × 暗テキスト)を構造的に排除する(WCAG AA)。
   夜との境界は night セクション自前背景とのエッジ = 101 と同じ見え方 */
html.motion .works,
html.motion .about { background-color: var(--theme-mood-lit, var(--bg)); }
html.motion .brand-chip {
  animation: none;
  background-color: var(--theme-accent, var(--c-agave));
}
html.motion .site-header.is-scrolled {
  background: rgba(var(--theme-mood-rgb, 250, 247, 242), 0.82);
}
html.motion .sec-label { color: var(--theme-accent-deep, var(--gold-text)); }
html.motion .sec-label::after { background: var(--theme-accent, var(--gold)); }
html.motion .sec-num { -webkit-text-stroke-color: var(--theme-accent, rgba(168, 135, 90, 0.36)); }
html.motion .night .sec-label { color: var(--gold-light); }
html.motion .night .sec-label::after { background: var(--gold-light); }

/* 夜の章ではヘッダーの文字も夜仕様へ */
html.motion .site-header .brand { transition: color 0.9s var(--ease); }
html.motion .global-nav a { transition: background-size 0.45s var(--ease), color 0.9s var(--ease); }
html.motion .nav-toggle-line { transition: transform 0.45s var(--ease), opacity 0.3s, background-color 0.9s var(--ease); }
html.on-night .site-header .brand { color: var(--night-text); }
html.on-night .global-nav a { color: var(--night-muted); }
html.on-night .global-nav a:hover { color: var(--night-text); }
html.on-night .nav-toggle-line { background: var(--night-text); }

/* --- 粒子 canvas(motion.js が生成・挿入) --- */
.iroha-canvas,
.star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* CSS の金の塵・静的星は canvas 粒子へ置換 */
html.motion .dust { display: none; }
html.motion .night-stars::before,
html.motion .night-stars::after { content: none; }

/* --- 磨き: マイクロインタラクション(patterns/16) --- */
html.motion .work-emblem .mini { transition: transform 0.8s var(--ease); }
html.motion .work:hover .work-emblem .mini { transform: scale(1.012); } /* 窓を覗き込む */
html.motion .site-card-cta:active { transform: scale(0.97); }
html.motion .sns-card:active { transform: translateY(-2px) scale(0.99); }
html.motion .palette .chip { transition: transform 0.4s var(--ease); }
html.motion .palette .chip:hover { transform: scaleY(1.7); }

/* reduced-motion 二重保険(inline script は reduce 時に class を付けない) */
@media (prefers-reduced-motion: reduce) {
  html.motion-boot .hero-inner,
  html.motion-boot .hero-figure,
  html.motion-boot .scroll-cue { opacity: 1 !important; }
  html.motion-boot .hero-figure { transform: none !important; }
  .intro-forest, .preloader { display: none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .dust { display: none; }
  .scroll-line::after { display: none; }
  .blob { opacity: 0.55; }
}
