/* ──────────────────────────────────────────────────────────
   Yu Iwase Portfolio — 新案2: Editorial Luminescence & Horizon Flow
   世界観: 高級科学雑誌のエディトリアル（Nature / MIT Tech Review）× 生命光彩
   カラー: 生命蛍光パレット（Bio-Teal, Cyan, Starlight Gold, Midnight Navy）
   特徴: アシンメトリー余白、天球儀ミニマル旋回リング、ドロップキャップ、自然な角丸8px
────────────────────────────────────────────────────────── */

:root {
  --c-bg: #ffffff;
  --c-bg-subtle: #f8fafc;
  --c-bg-card: #ffffff;

  --c-text-main: #0f172a;
  --c-text-sub: #334155;
  --c-text-muted: #64748b;

  /* Bio-Luminescence Spectral Colors */
  --c-teal: #0d9488;
  --c-teal-bright: #2dd4bf;
  --c-teal-dark: #0f766e;
  --c-teal-soft: rgba(13, 148, 136, 0.07);
  --c-line-teal: rgba(13, 148, 136, 0.2);

  --c-cyan: #0284c7;
  --c-cyan-soft: rgba(2, 132, 199, 0.08);

  --c-gold: #d4af37;
  --c-gold-bright: #f1cf68;
  --c-navy: #141d2f;

  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 6px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(13, 148, 136, 0.05);
  --shadow-card-hover: 0 20px 40px -8px rgba(15, 23, 42, 0.1), 0 8px 24px -2px rgba(13, 148, 136, 0.18);

  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-gothic: "Zen Kaku Gothic New", "Inter", "Hiragino Sans", sans-serif;
  --font-mono: "Fira Code", monospace;

  /* Refined Editorial Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--c-bg);
  color: var(--c-text-main);
}

body {
  font-family: var(--font-gothic);
  line-height: 1.8;
  background: #ffffff;
  color: var(--c-text-main);
  overflow-x: hidden;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────
   WellV Faithful Animated Sparkle Background
────────────────────────────────────────────────────────── */
.sparkle-canvas-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wellv-sparkle-grid {
  position: absolute;
  inset: -100px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 1rem;
  opacity: 0;
  animation: sparkleGridFadeIn 1.5s ease-out forwards;
}

@keyframes sparkleGridFadeIn {
  from { opacity: 0; }
  to { opacity: 0.07; }
}

.sparkle-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkle-star {
  width: 5rem;
  height: 5rem;
  color: #748dae;
  fill: currentColor;
  opacity: 0;
  animation: wellvSparkle 12s ease-in-out infinite both;
}

@keyframes wellvSparkle {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.42; }
}

/* 背景飾り：統計グラフと波形（数値なし） */
.page-gimmick-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-stat-graph {
  position: absolute;
  right: -3%;
  top: 16%;
  width: min(520px, 48vw);
  opacity: 0.04;
}

.bg-wave-scroll {
  position: absolute;
  left: -8%;
  bottom: 7%;
  width: 72vw;
  height: 88px;
  opacity: 0.045;
}

.bg-oscillo {
  position: absolute;
  left: 7%;
  top: 42%;
  width: min(640px, 56vw);
  height: 70px;
  opacity: 0.055;
}

.bg-lissajous {
  position: absolute;
  right: 7%;
  bottom: 16%;
  width: 150px;
  height: 150px;
  opacity: 0.05;
}

.bg-spectrum {
  position: absolute;
  left: 10%;
  bottom: 20%;
  width: min(380px, 36vw);
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  opacity: 0.05;
}

.bg-waterfall {
  position: absolute;
  right: 12%;
  top: 26%;
  width: min(260px, 26vw);
  height: 86px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  opacity: 0.045;
}

.bg-wave-path {
  fill: none;
  stroke: #0d9488;
  stroke-width: 1.4;
  stroke-dasharray: 240;
  animation: waveScroll 10s linear infinite;
}

.bg-wave-path.delay {
  stroke: #2dd4bf;
  stroke-width: 1.1;
  animation-duration: 14s;
  animation-direction: reverse;
}

/* ──────────────────────────────────────────────────────────
   Design Switcher Floating Header
────────────────────────────────────────────────────────── */
.design-switcher-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.8125rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.switcher-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-teal-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.switcher-options {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.switch-pill {
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--c-text-sub);
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-weight: 500;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.switch-pill:hover {
  color: var(--c-teal-dark);
  border-color: var(--c-teal);
  background: var(--c-teal-soft);
}

.switch-pill.active {
  background: var(--c-navy);
  color: #ffffff;
  border-color: var(--c-teal);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
   Site Global Header
────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.brand-title {
  font-family: var(--font-mincho);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-text-main);
  text-decoration: none;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--c-teal-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--c-text-sub);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--c-teal);
}

.lang-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-line-teal);
  background: #ffffff;
  color: var(--c-text-main);
  font-family: var(--font-gothic);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--c-teal-soft);
  border-color: var(--c-teal);
  color: var(--c-teal-dark);
}

/* ──────────────────────────────────────────────────────────
   Hero Section: Editorial Luminescence
────────────────────────────────────────────────────────── */
.edit-hero-sec {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
}

/* 天球儀ミニマル旋回リング背景SVG */
.edit-armillary-svg {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.armillary-ring-1 {
  transform-origin: 310px 310px;
  animation: armillaryRotate 65s linear infinite;
}

.armillary-ring-2 {
  transform-origin: 310px 310px;
  animation: armillaryCounter 46s linear infinite;
}

@keyframes armillaryRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes armillaryCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Hero Grid Layout */
.edit-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.edit-editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-teal-dark);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--c-line-teal);
}

.edit-hero-title {
  font-family: var(--font-mincho);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text-main);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.edit-hero-title .initial-accent {
  color: var(--c-teal);
}

.edit-lead-body {
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.edit-dropcap {
  float: left;
  font-family: var(--font-mincho);
  font-size: 3.5rem;
  line-height: 0.8;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 4px;
  color: var(--c-teal);
  font-weight: 700;
}

.edit-cta-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-edit-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-md);
  background: var(--c-navy);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--c-teal);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.25);
  transition: all 0.25s ease;
}

.btn-edit-primary:hover {
  background: var(--c-teal-dark);
  border-color: var(--c-teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.38);
  color: #ffffff;
}

.btn-edit-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--c-teal-dark);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--c-line-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.btn-edit-secondary:hover {
  background: var(--c-teal-soft);
  border-color: var(--c-teal);
  transform: translateY(-2px);
}

/* Photo Magazine Frame */
.edit-stage-wrap {
  position: relative;
  width: 100%;
}

.edit-photo-magazine {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  aspect-ratio: 4 / 4.8;
  background: #ffffff;
  border: 1px solid var(--c-line-teal);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.edit-photo-magazine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  color: #ffffff;
}

.edit-cap-loc {
  font-size: 0.74rem;
  color: var(--c-teal-bright);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edit-cap-desc {
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ──────────────────────────────────────────────────────────
   Sections Common Layout
────────────────────────────────────────────────────────── */
.edit-sec-block {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.edit-sec-header {
  margin-bottom: 3.25rem;
  border-bottom: 1px solid var(--c-line-teal);
  padding-bottom: 1.5rem;
}

.edit-sec-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-teal-dark);
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.edit-sec-title {
  font-family: var(--font-mincho);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-text-main);
}

.edit-sec-title .initial-accent {
  color: var(--c-teal);
}

/* ──────────────────────────────────────────────────────────
   Cards: Editorial Magazine Style (Radius 8px)
────────────────────────────────────────────────────────── */
.edit-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.edit-card {
  background: #ffffff;
  border: 1px solid var(--c-line-teal);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.edit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-teal);
}

.edit-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.edit-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xs);
  background: rgba(20, 29, 47, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.edit-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.edit-card-date {
  font-size: 0.76rem;
  color: var(--c-teal-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.edit-card-title {
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text-main);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.edit-card-desc {
  font-size: 0.9rem;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.edit-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.edit-tag-pill {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-xs);
  background: var(--c-teal-soft);
  color: var(--c-teal-dark);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--c-line-teal);
}

/* ──────────────────────────────────────────────────────────
   Timeline: Magazine Spread Chronology
────────────────────────────────────────────────────────── */
.edit-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.edit-timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-line-teal);
}

.edit-timeline-row:last-child {
  border-bottom: none;
}

.edit-tl-year {
  font-family: var(--font-mincho);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-teal);
  line-height: 1;
}

.edit-tl-category {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.edit-tl-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.85rem;
  border: 1px solid var(--c-line-teal);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.edit-tl-content:hover {
  transform: translateX(4px);
  border-color: var(--c-teal);
  box-shadow: var(--shadow-card);
}

.edit-tl-title {
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: 0.75rem;
}

.edit-tl-desc {
  font-size: 0.9rem;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ──────────────────────────────────────────────────────────
   Gallery
────────────────────────────────────────────────────────── */
.edit-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.edit-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: 1px solid var(--c-line-teal);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.edit-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  color: #ffffff;
}

.edit-g-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.edit-g-sub {
  font-size: 0.74rem;
  color: var(--c-teal-bright);
}

/* ──────────────────────────────────────────────────────────
   Spectrum & Waveform Gizmos (動くスペクトラム・生体波形コンソール)
────────────────────────────────────────────────────────── */
.editorial-spectrum-console {
  background: #ffffff;
  border: 1px solid var(--c-line-teal);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.85rem;
  box-shadow: var(--shadow-subtle);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.spectrum-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.spectrum-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-gothic);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-teal-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spectrum-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--c-teal);
  background: var(--c-teal-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-line-teal);
}

.live-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  animation: liveBeaconPulse 1.8s ease-in-out infinite alternate;
}

@keyframes liveBeaconPulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 6px var(--c-teal); }
}

/* 動くオシロスコープSVG波形 */
.oscilloscope-canvas-wrap {
  position: relative;
  height: 68px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.oscilloscope-svg {
  width: 100%;
  height: 100%;
}

.osc-wave-488 {
  stroke: var(--c-teal);
  stroke-width: 1.75;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
  animation: waveScroll 6s linear infinite;
}

.osc-wave-512 {
  stroke: var(--c-teal-bright);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.85;
  stroke-dasharray: 600;
  stroke-dashoffset: 300;
  animation: waveScrollReverse 8s linear infinite;
}

@keyframes waveScroll {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}

@keyframes waveScrollReverse {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 600; }
}

/* リアルタイム動くスペクトラムアナライザー（16本イコライザーバー） */
.spectrum-bars-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 48px;
  gap: 4px;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
  margin-bottom: 0.85rem;
}

.spectrum-bar-item {
  flex: 1;
  background: linear-gradient(180deg, var(--c-teal-bright) 0%, var(--c-teal) 60%, #141d2f 100%);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.2s ease;
  animation: spectrumBounce 1.8s ease-in-out infinite alternate;
}

.spectrum-bar-item:nth-child(2n) { animation-duration: 2.3s; animation-delay: -0.4s; }
.spectrum-bar-item:nth-child(3n) { animation-duration: 1.5s; animation-delay: -0.9s; }
.spectrum-bar-item:nth-child(5n) { animation-duration: 2.7s; animation-delay: -1.2s; }
.spectrum-bar-item:nth-child(7n) { animation-duration: 1.9s; animation-delay: -0.7s; }

@keyframes spectrumBounce {
  0% { height: 15%; opacity: 0.45; }
  50% { height: 85%; opacity: 0.95; }
  100% { height: 35%; opacity: 0.6; }
}

.gizmo-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.osc-scan-cursor {
  stroke: var(--c-teal-bright);
  stroke-width: 1.25;
  opacity: 0.7;
  animation: oscScan 4.5s linear infinite;
}

@keyframes oscScan {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 0.85; }
  92% { opacity: 0.85; }
  100% { transform: translateX(1000px); opacity: 0; }
}

.lissajous-svg {
  width: 72px;
  height: 72px;
}

.liss-ring {
  fill: none;
  stroke: var(--c-teal);
  stroke-width: 1.1;
  transform-origin: 40px 40px;
}

.liss-ring.a {
  animation: lissSpin 8s linear infinite;
}

.liss-ring.b {
  stroke: var(--c-teal-bright);
  animation: lissSpin 11s linear infinite reverse;
}

.liss-dot {
  fill: var(--c-teal);
  transform-origin: 40px 40px;
  animation: lissOrbit 4s linear infinite;
}

@keyframes lissSpin {
  to { transform: rotate(360deg); }
}

@keyframes lissOrbit {
  0% { transform: rotate(0deg) translateX(28px); }
  100% { transform: rotate(360deg) translateX(28px); }
}

.deco-waterfall {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 52px;
  margin-top: 0.85rem;
}

.bg-waterfall span,
.deco-waterfall span {
  flex: 1;
  min-width: 0;
  background: repeating-linear-gradient(
    to top,
    var(--c-teal) 0 3px,
    transparent 3px 6px
  );
  transform-origin: bottom;
  animation: waterfallPulse 2.1s ease-in-out infinite alternate;
  opacity: 0.4;
}

@keyframes waterfallPulse {
  0% { transform: scaleY(0.25); opacity: 0.2; }
  100% { transform: scaleY(1); opacity: 0.55; }
}

.header-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  width: min(220px, 50%);
  margin-top: 0.85rem;
}

.header-eq .spectrum-bar-item {
  min-height: 3px;
}

.deco-wave-rule {
  height: 28px;
  margin: 2rem 0 0;
  overflow: hidden;
}

.edit-sec-header .deco-wave-rule {
  margin-top: 0.75rem;
  width: min(320px, 72%);
}

.deco-wave-rule svg {
  width: 100%;
  height: 100%;
}

.deco-wave-path {
  fill: none;
  stroke: var(--c-teal);
  stroke-width: 1.2;
  stroke-dasharray: 180;
  animation: waveScroll 7s linear infinite;
}

#sec-research {
  position: relative;
}

.sec-deco-stat {
  position: absolute;
  inset: 8% 0 auto;
  height: 220px;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
}

.sec-deco-stat svg {
  width: 100%;
  height: 100%;
}

#sec-research > *:not(.sec-deco-stat) {
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────
   Timeline: Symmetrical Pair & Geometric Forms
   (ヒーロー直下 / 互い違い対向写真 / 四角だけじゃない造形)
────────────────────────────────────────────────────────── */
.editorial-timeline-spread {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.spread-track-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--c-line-teal);
  pointer-events: none;
  z-index: 1;
}

.spread-light-beam {
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, var(--c-teal-bright) 50%, #ffffff 100%);
  filter: drop-shadow(0 0 6px var(--c-teal-bright));
  animation: spreadTraverse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spreadTraverse {
  0% { top: -140px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.spread-pairs-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.tl-pair-row {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  position: relative;
  gap: 1.5rem;
}

.tl-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.tl-oct-beacon {
  width: 34px;
  height: 34px;
  background: var(--c-navy);
  color: var(--c-teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  border: 1px solid var(--c-teal);
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.45);
  animation: beaconPulse 3.5s ease-in-out infinite alternate;
}

@keyframes beaconPulse {
  0% { transform: scale(0.94); box-shadow: 0 0 6px rgba(13, 148, 136, 0.3); }
  100% { transform: scale(1.06); box-shadow: 0 0 16px rgba(45, 212, 191, 0.8); }
}

/* テキストカード：斜角カッティング造形（Chamfered Plate） */
.tl-text-box {
  background: #ffffff;
  border: 1px solid var(--c-line-teal);
  padding: 1.85rem 2.15rem;
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.tl-text-box.chamfer-left {
  clip-path: polygon(14px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 14px);
}

.tl-text-box.chamfer-right {
  clip-path: polygon(0% 0%, calc(100% - 14px) 0%, 100% 14px, 100% 100%, 0% 100%);
}

.tl-text-box:hover {
  transform: translateY(-4px);
  border-color: var(--c-teal);
  box-shadow: var(--shadow-card);
}

.tl-date-badge {
  display: inline-block;
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-navy);
  background: var(--c-teal-soft);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-line-teal);
  margin-bottom: 0.5rem;
}

/* 対向写真カード：四角だけじゃない幾何学造形（アーチ窓・斜角プレート） */
.tl-photo-box {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-line-teal);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: #f8fafc;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
}

.tl-photo-box:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-teal);
}

.tl-photo-box.shape-arch {
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.tl-photo-box.shape-chamfer {
  border-radius: 6px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.tl-photo-box.shape-soft {
  border-radius: 12px;
}

.tl-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 29, 47, 0.92) 100%);
  color: #ffffff;
}

.tl-overlay-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--c-teal-bright);
  font-family: var(--font-gothic);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.tl-overlay-caption {
  font-family: var(--font-mincho);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   Statistical Charts & Telemetry (動的統計グラフ)
────────────────────────────────────────────────────────── */
.fret-chart-container {
  background: #ffffff;
  border: 1px solid var(--c-line-teal);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-subtle);
  margin-top: 2.25rem;
  position: relative;
}

.fret-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  padding-bottom: 0.65rem;
}

.fret-chart-title {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fret-chart-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot-teal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
}

.legend-dot-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal-bright);
}

.fret-svg-graph {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.fret-data-curve {
  stroke: var(--c-teal);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawDataCurve 3s ease-out forwards;
}

.fret-data-curve-2 {
  stroke: var(--c-teal-bright);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawDataCurve 3.5s ease-out forwards 0.3s;
}

.fret-area-fill {
  fill: url(#fretGradient);
  opacity: 0.25;
}

@keyframes drawDataCurve {
  to { stroke-dashoffset: 0; }
}

.fret-point-pulse {
  animation: pointPulse 2s infinite alternate;
}

@keyframes pointPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--c-teal)); }
  100% { transform: scale(1.4); filter: drop-shadow(0 0 8px var(--c-teal-bright)); }
}

/* システム稼働テレメトリ＆コード出荷マトリクス */
.system-telemetry-panel {
  background: #ffffff;
  border: 1px solid var(--c-line-teal);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-subtle);
  margin-top: 2.25rem;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.telemetry-gauge-card {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-xs);
  background: var(--c-teal-soft);
  border: 1px solid var(--c-line-teal);
}

.gauge-svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5rem;
  transform: rotate(-90deg);
}

.gauge-bg {
  stroke: rgba(13, 148, 136, 0.2);
  stroke-width: 5;
  fill: none;
}

.gauge-fill {
  stroke: var(--c-teal);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 157;
  transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-value {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-navy);
}

.gauge-label {
  font-size: 0.72rem;
  color: var(--c-teal-dark);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ──────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────── */
.edit-footer {
  border-top: 1px solid var(--c-line-teal);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

@media (max-width: 900px) {
  .edit-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .edit-grid-3 {
    grid-template-columns: 1fr;
  }
  .edit-timeline-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .edit-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tl-pair-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-left: 50px;
  }
  .spread-track-axis {
    left: 20px;
  }
  .tl-center-col {
    position: absolute;
    left: 4px;
    top: 1.5rem;
  }
  .tl-text-box.chamfer-left,
  .tl-text-box.chamfer-right {
    clip-path: none;
  }
  .gizmo-row {
    grid-template-columns: 1fr 64px;
  }
  .bg-stat-graph {
    opacity: 0.05;
  }
}
