/* ===========================================================
   b612.html — Le Petit Prince × Deep Space
   Dark theme, gold accent, refined typography
   =========================================================== */

/* ===== Page Navigation（↓ボタンで次セクションへスムーズスクロール）===== */
html:has(body.b612) {
  scroll-behavior: smooth;
}
/* セクションは自然な高さで、scroll-snap は proximity（緩い）にとどめる */
body.b612 {
  scroll-snap-type: y proximity;
}
body.b612 section[id] {
  scroll-snap-align: start;
  position: relative;
  /* min-height は控えめに：コンテンツ次第で伸ばす */
  min-height: auto;
}
/* hero だけはフルビューポート */
body.b612 .b612-hero {
  min-height: 100vh;
  min-height: 100svh;
}
body.b612 .b612-divider { display: none; }

/* ===== 次へボタン ===== */
.b612-next {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(217, 181, 107, 0.4);
  padding: 12px 22px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.25);
}
.b612-next:hover {
  border-color: var(--gold);
  background-color: rgba(217, 181, 107, 0.15);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(217, 181, 107, 0.4);
}
.b612-next__arrow {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
  animation: nextBob 1.8s ease-in-out infinite;
}
@keyframes nextBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* 物語パート最後（try）→ サービス案内へボタン */
.b612-next--service {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 600;
  padding: 14px 28px 18px;
}
.b612-next--service:hover {
  background-color: var(--gold-bright);
}

/* ===== SKIP ボタン（物語パート閲覧中だけ右上に固定表示） ===== */
.b612-skip {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  background: rgba(15, 12, 30, 0.7);
  border: 1px solid rgba(217, 181, 107, 0.35);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.b612-skip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.b612-skip:hover {
  background: rgba(217, 181, 107, 0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.b612-skip__arrow {
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .b612-skip {
    top: 14px;
    right: 14px;
    padding: 8px 14px;
    font-size: 0.65rem;
  }
}

/* ===== Story Characters（背景キャラクター）===== */
.b612-chars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.b612-char {
  position: absolute;
  opacity: 0;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  filter: drop-shadow(0 0 18px rgba(217, 181, 107, 0.15));
}
section.is-active .b612-char {
  opacity: 0.42;
}
section.is-active .b612-char--strong { opacity: 0.6; }
section.is-active .b612-char--soft { opacity: 0.3; }
.b612-char svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* キャラクター（コンテンツの邪魔をしないよう右上の控えめな装飾） */
.b612-char--ceo,
.b612-char--prince,
.b612-char--sheep,
.b612-char--box {
  width: 200px;
  height: 240px;
  right: 4%;
  top: 90px;
  transform: translateY(0);
}
.b612-char--sheep {
  width: 240px;
  height: 200px;
}
.b612-char--box {
  width: 200px;
  height: 200px;
}
section.is-active .b612-char {
  animation: charFloat 5s ease-in-out infinite;
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes charBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes boxFloat {
  0%, 100% { transform: scale(0.95) translateY(0); }
  50% { transform: scale(0.97) translateY(-10px); }
}

/* セクション内のメインコンテンツが上にくるよう */
body.b612 section > .container,
body.b612 .b612-hero__inner,
body.b612 .b612-story__chapter,
body.b612 .b612-story__title,
body.b612 .b612-story__body,
body.b612 .b612-lab__grid,
body.b612 .b612-logic__intro,
body.b612 .b612-logic__stack,
body.b612 .b612-trail__chart,
body.b612 .b612-compare,
body.b612 .b612-try__chat,
body.b612 .b612-pricing__intro,
body.b612 .b612-pricing__grid,
body.b612 .b612-pricing__limit,
body.b612 .works-cosmos,
body.b612 .b612-invitation__inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  /* モバイル/タブレットではキャラ非表示（コンテンツ優先） */
  .b612-chars { display: none; }
  .b612-next { bottom: 18px; font-size: 0.65rem; padding: 10px 18px 14px; }
}

body.b612 {
  --bg: #06061a;
  --bg-alt: #0a0a25;
  --bg-deep: #03030f;
  --paper: rgba(255, 255, 255, 0.025);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f6f2e6;
  --text-mute: rgba(246, 242, 230, 0.88);
  --text-dim: rgba(246, 242, 230, 0.6);

  --card: #0e0e26;
  --card-2: #14143a;
  --card-featured: #1c1640;

  --accent: #f4f0e1;
  --accent-soft: rgba(244, 240, 225, 0.9);
  --gold: #d9b56b;
  --gold-bright: #ecc97a;
  --gold-soft: rgba(217, 181, 107, 0.4);
  --gold-glow: rgba(217, 181, 107, 0.18);
  --nebula: #8ab4ff;
  --nebula-soft: rgba(138, 180, 255, 0.35);

  --highlight: var(--gold);

  --font-serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;

  background:
    /* スポット光（青みと金み） */
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(138, 180, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 100%, rgba(217, 181, 107, 0.08), transparent 60%),
    /* スクロールで色が変わるストーリーグラデーション */
    linear-gradient(180deg,
      #06061a 0%,        /* HERO: 深い夜 */
      #0a0822 10%,       /* PROLOGUE: 数字に追われる夜 */
      #08091f 22%,       /* CHAPTER I: 男の子の気配（青み） */
      #0d0726 34%,       /* CHAPTER II: 思い出のきざし（紫） */
      #0b0c2e 46%,       /* CHAPTER III: 不思議な風（青光） */
      #14102a 58%,       /* CHAPTER IV: 決断（深い藍） */
      #0a0a25 72%,       /* CHAPTER V: 灯る星 */
      #060614 86%,       /* EPILOGUE入口 */
      #03030f 100%       /* Footer: 最深の闇 */
    ),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.95;
  letter-spacing: 0.015em;
}

/* 各セクションは透明に（ストーリーグラデを透けて見せる） */
body.b612 .b612-story,
body.b612 .b612-lab,
body.b612 .b612-logic,
body.b612 .b612-pricing,
body.b612 .b612-works,
body.b612 .section {
  background: transparent !important;
}

body.b612 ::selection { background: var(--gold); color: var(--bg); }

/* 日本語：単語の途中で切らない（balance は予測不能なので廃止） */
body.b612 h1,
body.b612 h2,
body.b612 h3,
body.b612 h4,
body.b612 .section-head__lead,
body.b612 .b612-hero__lead,
body.b612 .b612-story__body p,
body.b612 .b612-logic__intro p,
body.b612 .b612-pricing__intro p,
body.b612 .b612-invitation__lead,
body.b612 .b612-lab__item p {
  word-break: keep-all;          /* 単語の途中で切らない */
  overflow-wrap: normal;
  line-break: strict;
}

/* ----- 星の散らばり（背景）多層 ----- */
body.b612::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0.7px, transparent 1.4px),
    radial-gradient(circle at 78% 42%, var(--gold) 0.6px, transparent 1.2px),
    radial-gradient(circle at 28% 73%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 91% 81%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 45% 12%, var(--gold) 0.5px, transparent 1px),
    radial-gradient(circle at 62% 58%, #fff 0.6px, transparent 1.2px),
    radial-gradient(circle at 8% 88%, var(--gold) 0.6px, transparent 1.2px),
    radial-gradient(circle at 35% 35%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 88% 22%, #fff 0.6px, transparent 1.2px),
    radial-gradient(circle at 18% 55%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 72% 92%, var(--gold) 0.5px, transparent 1px),
    radial-gradient(circle at 5% 30%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 95% 65%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 52% 88%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 24% 8%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 58% 28%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 41% 48%, var(--gold) 0.4px, transparent 0.9px),
    radial-gradient(circle at 75% 22%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 14% 68%, var(--gold-bright) 0.5px, transparent 1px),
    radial-gradient(circle at 84% 56%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 38% 82%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 67% 78%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 47% 65%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 22% 45%, #fff 0.4px, transparent 0.9px),
    radial-gradient(circle at 60% 5%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 3% 60%, #fff 0.4px, transparent 0.9px),
    /* 銀河（雲状の薄い光）2か所 */
    radial-gradient(ellipse 380px 180px at 18% 28%, rgba(138, 180, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 460px 220px at 82% 68%, rgba(217, 181, 107, 0.06) 0%, transparent 60%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.95;
  pointer-events: none;
}
body.b612::after {
  /* twinkle layer */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 22% 28%, #fff 0.6px, transparent 1.2px),
    radial-gradient(circle at 68% 12%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 33% 92%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--gold-bright) 0.5px, transparent 1.1px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0% { opacity: 0.2; }
  100% { opacity: 0.9; }
}

/* ----- Header ----- */
body.b612 .header {
  background: transparent;
}
body.b612 .header.is-scrolled {
  background: rgba(6, 6, 26, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
body.b612 .header__logo {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
body.b612 .header__cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 500;
}
body.b612 .header__cta:hover {
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-1px);
}
body.b612 .header__nav a {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  color: var(--text-mute);
}
body.b612 .header__nav a:hover { color: var(--text); }
body.b612 .header__menu {
  border-color: var(--border-strong);
}
body.b612 .header__menu:hover { background: var(--surface); }
body.b612 .header__menu span { background: var(--text); }

/* mobile menu dark */
body.b612 .mobile-menu { background: var(--bg-deep); }
body.b612 .mobile-menu__nav a {
  color: var(--text);
  border-bottom-color: var(--border);
  font-family: var(--font-serif);
}
body.b612 .mobile-menu__num { color: var(--gold); }
body.b612 .mobile-menu__cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright)) !important;
  color: var(--bg) !important;
}
body.b612 .mobile-menu__foot { color: var(--text-dim); }

/* ===================================================
   HERO
   =================================================== */
.b612-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 160px 24px 140px;
  overflow: hidden;
}
.b612-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.b612-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(6, 6, 26, 0.6) 75%, var(--bg) 100%);
}
.b612-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.b612-hero__brand {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 36px;
  display: inline-flex; align-items: center; gap: 14px;
}
.b612-hero__brand::before,
.b612-hero__brand::after {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.b612-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  color: var(--text);
}
.b612-hero__title em {
  font-style: normal;
  color: var(--gold-bright);
  filter:
    drop-shadow(0 0 24px rgba(236, 201, 122, 0.65))
    drop-shadow(0 0 8px rgba(236, 201, 122, 0.4))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: goldPulse 3.6s ease-in-out infinite;
}
@keyframes goldPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 22px rgba(236, 201, 122, 0.55))
      drop-shadow(0 0 8px rgba(236, 201, 122, 0.4))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  }
  50% {
    filter:
      drop-shadow(0 0 36px rgba(236, 201, 122, 0.85))
      drop-shadow(0 0 12px rgba(236, 201, 122, 0.55))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  }
}
.b612-hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 2.4;
  color: var(--text-mute);
  margin-bottom: 56px;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.b612-hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-bottom: 60px;
}
.b612-hero__cta .btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 500;
  box-shadow: 0 6px 30px -8px var(--gold-glow);
}
.b612-hero__cta .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(217, 181, 107, 0.4);
}
.b612-hero__cta .btn--ghost {
  color: var(--text);
  border-color: var(--border-strong);
  font-family: var(--font-serif);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(10px);
}
.b612-hero__cta .btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.b612-hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-mute);
  z-index: 2;
}
.b612-hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  margin: 14px auto 0;
  position: relative;
  overflow: hidden;
}
.b612-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0; right: 0; height: 50%;
  background: var(--gold);
  animation: scrollDown 2.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* split-char reveal */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotateX(-30deg);
  transform-origin: 50% 100%;
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.split-char.is-in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
.split-char--space { width: 0.3em; }

/* ===================================================
   STORY SECTIONS
   =================================================== */
.b612-story {
  position: relative;
  padding: 160px 24px;
  overflow: hidden;
  z-index: 2;
}
.b612-story__chapter {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 32px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.b612-story__chapter::before,
.b612-story__chapter::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.b612-story__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 48px;
  color: var(--text);
  max-width: 32em;
  width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.b612-story__title em {
  font-style: normal;
  color: var(--gold-bright);
  filter:
    drop-shadow(0 0 18px rgba(236, 201, 122, 0.55))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.b612-story__body {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 2.4;
  color: var(--text-mute);
  text-align: center;
}
.b612-story__body p { margin-bottom: 1.8em; }
.b612-story__body p:last-child { margin-bottom: 0; }
.b612-story__body b {
  color: var(--gold);
  font-weight: 500;
}
.b612-story__body em {
  font-style: normal;
  color: var(--text);
  position: relative;
}
.b612-story__body em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* divider */
.b612-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin: 0 auto;
  width: fit-content;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  opacity: 0.55;
}
.b612-divider::before,
.b612-divider::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

/* ===================================================
   LAB: 3つの惑星
   =================================================== */
.b612-lab {
  padding: 160px 24px;
  position: relative;
  z-index: 2;
}
.b612-lab__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 90px auto 0;
}
@media (min-width: 800px) { .b612-lab__grid { grid-template-columns: repeat(3, 1fr); } }
.b612-lab__item {
  text-align: center;
  padding: 44px 28px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  transition: border-color var(--t-med), transform var(--t-med), background var(--t-med);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.7);
}
.b612-lab__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(217, 181, 107, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.b612-lab__item:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  background: var(--card-2);
}
.b612-lab__planet-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 28px;
}
.b612-lab__planet {
  width: 100%; height: 100%;
}
.b612-lab__planet circle,
.b612-lab__planet path,
.b612-lab__planet polygon,
.b612-lab__planet ellipse,
.b612-lab__planet line {
  vector-effect: non-scaling-stroke;
}
.b612-lab__planet-wrap::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, var(--gold-glow), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-med);
}
.b612-lab__item:hover .b612-lab__planet-wrap::after { opacity: 1; }

/* ===========================================================
   Planet SVG animations
   =========================================================== */

/* 回転系（角度違い） */
.anim-orbit-slow { animation: planetSpin 40s linear infinite; }
.anim-orbit-mid  { animation: planetSpin 26s linear infinite reverse; }
.anim-orbit-mid-rev { animation: planetSpin 22s linear infinite; }
.anim-orbit-fast { animation: planetSpin 12s linear infinite; }
.anim-spin-slow  { animation: planetSpin 60s linear infinite; }
.anim-spin-mid   { animation: planetSpin 36s linear infinite; }
.anim-orbit-saturn-moon { animation: planetSpin 9s linear infinite; }

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

/* クレーター・点滅 */
.anim-pulse {
  animation: planetPulse 3s ease-in-out infinite;
}
@keyframes planetPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 中心点きらめき */
.anim-twinkle {
  animation: planetTwinkle 2.6s ease-in-out infinite;
}
@keyframes planetTwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 太陽コロナ呼吸 */
.anim-breathe {
  transform-box: fill-box;
  animation: planetBreathe 4.5s ease-in-out infinite;
}
@keyframes planetBreathe {
  0%, 100% { transform: scale(1); opacity: var(--breathe-opacity, 0.3); }
  50% { transform: scale(1.08); opacity: var(--breathe-opacity, 0.45); }
}

/* 太陽放射光線（脈動 + 微回転） */
.anim-sun-rays {
  animation: sunRays 4s ease-in-out infinite, planetSpin 80s linear infinite;
}
@keyframes sunRays {
  0%, 100% { stroke-opacity: 0.55; }
  50% { stroke-opacity: 0.95; }
}

/* 太陽中心コア（拍動） */
.anim-sun-core {
  animation: sunCore 2.2s ease-in-out infinite;
}
@keyframes sunCore {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* SVG 内の要素を確実に中心基準で回転させる */
.b612-lab__planet [class^="anim-"],
.b612-lab__planet [class*=" anim-"] {
  transform-box: view-box;
}

/* 動き抑制対応 */
@media (prefers-reduced-motion: reduce) {
  .anim-orbit-slow, .anim-orbit-mid, .anim-orbit-mid-rev, .anim-orbit-fast,
  .anim-spin-slow, .anim-spin-mid, .anim-orbit-saturn-moon,
  .anim-pulse, .anim-twinkle, .anim-breathe, .anim-sun-rays, .anim-sun-core {
    animation: none !important;
  }
}

.b612-lab__head {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 14px;
}
.b612-lab__item h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 500;
}
.b612-lab__item p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--text-mute);
}

/* ===================================================
   LOGIC AND ART
   =================================================== */
.b612-logic {
  padding: 160px 24px;
  position: relative;
  z-index: 2;
}
.b612-logic__intro {
  max-width: 720px;
  margin: 0 auto 80px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 2.4;
  text-align: center;
  color: var(--text-mute);
}
.b612-logic__intro b { color: var(--gold); }
.b612-logic__stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
@media (min-width: 700px) { .b612-logic__stack { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .b612-logic__stack { grid-template-columns: repeat(4, 1fr); } }
.b612-logic__cell {
  padding: 32px 22px;
  background: var(--card);
  text-align: center;
  transition: background var(--t-med), transform var(--t-med);
  position: relative;
}
.b612-logic__cell::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
  opacity: 0;
  transition: opacity var(--t-med);
}
.b612-logic__cell:hover {
  background: var(--card-2);
}
.b612-logic__cell:hover::before { opacity: 1; }
.b612-logic__cell-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}
.b612-logic__cell-desc {
  font-family: var(--font-en);
  font-size: 0.74rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ===================================================
   TRAIL — 言葉が、星になるまで
   =================================================== */
.b612-trail {
  position: relative;
  padding: 160px 24px;
  z-index: 2;
}

.b612-trail__chart {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

.b612-trail__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
}
@media (min-width: 900px) {
  .b612-trail__steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
}

.b612-trail__step {
  position: relative;
  text-align: center;
  padding: 0 12px;
  display: grid;
  grid-template-rows: 30px 100px auto auto;
  align-items: center;
  justify-items: center;
}

/* PCで星と星をつなぐ軌跡線（星の中心 = num 30px + 星エリア中心 50px = 80px） */
@media (min-width: 900px) {
  .b612-trail__step::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(236, 201, 122, 0.55) 10%,
      rgba(236, 201, 122, 0.65) 90%,
      transparent 100%);
    box-shadow: 0 0 8px rgba(236, 201, 122, 0.4);
    z-index: 1;
  }
  .b612-trail__step:last-child::before { display: none; }
}
/* モバイル：縦の線 */
@media (max-width: 899px) {
  .b612-trail__step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1.5px;
    height: 56px;
    background: linear-gradient(180deg,
      rgba(236, 201, 122, 0.6) 0%,
      transparent 100%);
    box-shadow: 0 0 8px rgba(236, 201, 122, 0.3);
    transform: translateX(-0.75px);
  }
  .b612-trail__step:last-child::before { display: none; }
}

.b612-trail__num {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  align-self: end;
  margin-bottom: 14px;
}

/* 星のサイズを全ステップで統一（80px固定）→ 線が中心を通る */
.b612-trail__star {
  position: relative;
  width: 80px;
  height: 80px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b612-trail__star svg {
  width: 100%;
  height: 100%;
  /* デフォルトの Bloom */
  filter:
    drop-shadow(0 0 8px rgba(255, 248, 220, 0.7))
    drop-shadow(0 0 22px rgba(255, 240, 200, 0.4))
    drop-shadow(0 0 48px rgba(255, 230, 180, 0.2));
  transition: filter 0.6s ease, opacity 0.6s ease;
}

/* === B001 → B005 で徐々に明るくする === */
.b612-trail__step:nth-child(1) .b612-trail__star svg {
  opacity: 0.5;
  filter:
    drop-shadow(0 0 4px rgba(255, 248, 220, 0.3));
}
.b612-trail__step:nth-child(2) .b612-trail__star svg {
  opacity: 0.68;
  filter:
    drop-shadow(0 0 6px rgba(255, 248, 220, 0.5))
    drop-shadow(0 0 14px rgba(255, 240, 200, 0.2));
}
.b612-trail__step:nth-child(3) .b612-trail__star svg {
  opacity: 0.82;
  filter:
    drop-shadow(0 0 9px rgba(255, 248, 220, 0.65))
    drop-shadow(0 0 22px rgba(255, 240, 200, 0.35));
}
.b612-trail__step:nth-child(4) .b612-trail__star svg {
  opacity: 0.95;
  filter:
    drop-shadow(0 0 12px rgba(255, 240, 200, 0.8))
    drop-shadow(0 0 30px rgba(255, 220, 170, 0.45))
    drop-shadow(0 0 60px rgba(255, 200, 140, 0.2));
}
/* 5番目（LAUNCH/final）は既に最大の発光（trailFinalPulse） */

/* 軌跡の線も徐々に強く */
@media (min-width: 900px) {
  .b612-trail__step:nth-child(1)::before {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(236, 201, 122, 0.25) 10%,
      rgba(236, 201, 122, 0.4) 90%,
      transparent 100%);
  }
  .b612-trail__step:nth-child(2)::before {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(236, 201, 122, 0.4) 10%,
      rgba(236, 201, 122, 0.55) 90%,
      transparent 100%);
  }
  .b612-trail__step:nth-child(3)::before {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(236, 201, 122, 0.55) 10%,
      rgba(236, 201, 122, 0.7) 90%,
      transparent 100%);
  }
  .b612-trail__step:nth-child(4)::before {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(236, 201, 122, 0.7) 10%,
      rgba(236, 201, 122, 0.9) 90%,
      transparent 100%);
    box-shadow: 0 0 12px rgba(236, 201, 122, 0.5);
  }
}
.b612-trail__star::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at center, rgba(255, 240, 200, 0.25), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* 最終 (LAUNCH) は同サイズだが、SVGを scale で大きく + Bloom最大 */
.b612-trail__star--final svg {
  transform: scale(1.5);
  filter:
    drop-shadow(0 0 14px rgba(236, 201, 122, 0.95))
    drop-shadow(0 0 36px rgba(236, 201, 122, 0.65))
    drop-shadow(0 0 72px rgba(236, 201, 122, 0.4))
    drop-shadow(0 0 120px rgba(236, 201, 122, 0.22));
  animation: trailFinalPulse 2.6s ease-in-out infinite;
}
@keyframes trailFinalPulse {
  0%, 100% {
    transform: scale(1.5);
    filter:
      drop-shadow(0 0 14px rgba(236, 201, 122, 0.85))
      drop-shadow(0 0 36px rgba(236, 201, 122, 0.55))
      drop-shadow(0 0 72px rgba(236, 201, 122, 0.35))
      drop-shadow(0 0 120px rgba(236, 201, 122, 0.18));
  }
  50% {
    transform: scale(1.62);
    filter:
      drop-shadow(0 0 20px rgba(236, 201, 122, 1))
      drop-shadow(0 0 48px rgba(236, 201, 122, 0.75))
      drop-shadow(0 0 96px rgba(236, 201, 122, 0.5))
      drop-shadow(0 0 160px rgba(236, 201, 122, 0.3));
  }
}
.b612-trail__star--final::after {
  background: radial-gradient(circle at center, rgba(236, 201, 122, 0.4), transparent 60%);
  inset: -50%;
}

.b612-trail__label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}
.b612-trail__label em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.b612-trail__step--final .b612-trail__label {
  color: var(--gold-bright);
  font-size: 0.95rem;
}

.b612-trail__desc {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--text-mute);
  margin-top: 8px;
}

/* === Claude本来との比較 === */
.b612-compare {
  max-width: 980px;
  margin: 100px auto 0;
  padding: 40px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
}
.b612-compare__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text-mute);
}
.b612-compare__row {
  margin-bottom: 28px;
}
.b612-compare__row:last-child { margin-bottom: 0; }
.b612-compare__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.b612-compare__brand {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  font-weight: 600;
}
.b612-compare__row--b612 .b612-compare__brand {
  color: var(--gold);
}
.b612-compare__pct {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.b612-compare__bar {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 14px;
}
.b612-compare__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(244, 240, 225, 0.4), rgba(244, 240, 225, 0.7));
  border-radius: 100px;
  width: 0;
  transition: width 1.5s cubic-bezier(.16,1,.3,1);
}
.b612-compare.is-visible .b612-compare__fill {
  width: var(--target-width, 60%);
}
.b612-compare__row--claude .b612-compare__fill {
  --target-width: 60%;
}
.b612-compare__row--b612 .b612-compare__fill {
  --target-width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 18px rgba(236, 201, 122, 0.5);
}
.b612-compare__note {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--text-mute);
}
.b612-compare__note b {
  color: var(--gold-bright);
  font-weight: 500;
}

.b612-compare__prereq {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(217, 181, 107, 0.08);
  border: 1px solid rgba(217, 181, 107, 0.3);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-mute);
  text-align: center;
}
.b612-compare__prereq b {
  color: var(--gold-bright);
  font-weight: 600;
}

.b612-pricing__prereq {
  margin-top: 32px !important;
  padding: 14px 20px;
  background: rgba(217, 181, 107, 0.06);
  border: 1px dashed rgba(217, 181, 107, 0.4);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 0.82rem !important;
  line-height: 1.85 !important;
  color: var(--text-mute);
  text-align: center;
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.b612-pricing__prereq b {
  color: var(--gold-bright);
  font-weight: 600;
}

/* ===================================================
   TRY — インタラクティブ体験（Claude風チャット）
   =================================================== */
.b612-try {
  padding: 160px 24px;
  position: relative;
  z-index: 2;
}

.b612-try__chat {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0e0e22 0%, #08081a 100%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(217, 181, 107, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  position: relative;
}

/* ヘッダー */
.b612-try__chat-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.b612-try__chat-head-dot {
  width: 10px; height: 10px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow:
    16px 0 0 #f59e0b,
    32px 0 0 #10b981;
  margin-right: 30px;
}
.b612-try__chat-head-title {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}
.b612-try__chat-head-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.b612-try__chat-head-led {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
  animation: tryLed 2s ease-in-out infinite;
}
@keyframes tryLed { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* メッセージエリア */
.b612-try__chat-body {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 500px;
}

.b612-try__msg {
  display: flex; gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: tryMsgIn 0.5s ease-out forwards;
}
@keyframes tryMsgIn {
  to { opacity: 1; transform: translateY(0); }
}
.b612-try__msg--user { flex-direction: row-reverse; }

.b612-try__msg-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.b612-try__msg--sheep .b612-try__msg-avatar {
  background: rgba(217, 181, 107, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(217, 181, 107, 0.25);
}

.b612-try__msg-content {
  max-width: 78%;
  display: flex; flex-direction: column;
}
.b612-try__msg--user .b612-try__msg-content { align-items: flex-end; }

.b612-try__msg-name {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.b612-try__msg--sheep .b612-try__msg-name { color: var(--gold); }

.b612-try__msg-text {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: normal;
}
.b612-try__msg--sheep .b612-try__msg-text {
  background: linear-gradient(180deg, rgba(217, 181, 107, 0.08), rgba(217, 181, 107, 0.03));
  border-color: rgba(217, 181, 107, 0.3);
}
.b612-try__msg--user .b612-try__msg-text {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

/* タイピング表示 */
.b612-try__typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 14px 18px;
}
.b612-try__typing span {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: tryTyping 1.2s ease-in-out infinite;
}
.b612-try__typing span:nth-child(2) { animation-delay: 0.2s; }
.b612-try__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tryTyping {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* === ターミナル風ステップ表示 === */
.b612-try__steps {
  margin: 4px 0 4px 52px;
  padding: 16px 18px;
  background: #02020a;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-mute);
  opacity: 0;
  transform: translateY(6px);
  animation: tryMsgIn 0.4s ease-out forwards;
  max-height: 380px;
  overflow-y: auto;
}
.b612-try__step {
  margin-bottom: 14px;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.b612-try__step:last-child { margin-bottom: 0; }
.b612-try__step.is-running,
.b612-try__step.is-done { opacity: 1; }

.b612-try__step-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.b612-try__step-icon {
  width: 14px; height: 14px;
  border: 1.5px solid var(--text-dim);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s ease;
}
.b612-try__step.is-running .b612-try__step-icon {
  border-color: var(--gold);
  border-top-color: transparent;
  animation: tryStepSpin 0.8s linear infinite;
}
.b612-try__step.is-done .b612-try__step-icon {
  background: var(--gold);
  border-color: var(--gold);
  animation: none;
}
.b612-try__step.is-done .b612-try__step-icon::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 0.5px;
  width: 4px; height: 7.5px;
  border-right: 1.5px solid #02020a;
  border-bottom: 1.5px solid #02020a;
  transform: rotate(45deg);
}
.b612-try__step.is-done .b612-try__step-head { color: var(--text); }
.b612-try__step.is-running .b612-try__step-head { color: var(--gold); }
.b612-try__step-label {
  letter-spacing: 0.04em;
  font-weight: 500;
}

.b612-try__step-cmd {
  display: block;
  padding: 4px 0 4px 24px;
  color: var(--gold-bright);
  font-size: 0.74rem;
  opacity: 0;
  white-space: pre-wrap;
  word-break: break-all;
}
.b612-try__step.is-running .b612-try__step-cmd,
.b612-try__step.is-done .b612-try__step-cmd { opacity: 1; }

.b612-try__step-logs {
  display: block;
  padding: 0 0 0 24px;
  color: var(--text-mute);
  font-size: 0.72rem;
  line-height: 1.8;
}
.b612-try__step-log {
  display: block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: pre-wrap;
  word-break: break-all;
}
.b612-try__step-log.is-shown {
  opacity: 1;
  transform: translateX(0);
}
.b612-try__step-log.is-ok { color: #86efac; }
.b612-try__step-log.is-warn { color: var(--gold); }
.b612-try__step-log.is-dim { color: var(--text-dim); }
.b612-try__step-log.is-url { color: var(--gold-bright); font-weight: 600; }

.b612-try__cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--gold);
  vertical-align: -2px;
  animation: tryCursor 1s steps(2) infinite;
}
@keyframes tryCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

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

/* 完了の結果カード */
.b612-try__result {
  margin: 4px 0 4px 52px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(217, 181, 107, 0.14), rgba(217, 181, 107, 0.05));
  border: 1px solid var(--gold);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.96);
  animation: tryResultIn 0.5s ease-out forwards;
  box-shadow: 0 10px 30px -10px rgba(217, 181, 107, 0.3);
}
@keyframes tryResultIn {
  to { opacity: 1; transform: scale(1); }
}
.b612-try__result-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  font-weight: 600;
}
.b612-try__result-url {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
}
.b612-try__result-note {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(217, 181, 107, 0.3);
  line-height: 1.85;
}
.b612-try__result-note b { color: var(--gold-bright); }

.b612-try__result-work {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-top: 6px;
}
.b612-try__result-no {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  padding-top: 4px;
}
.b612-try__result-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.b612-try__result-tag {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  color: var(--text-mute);
  width: fit-content;
  margin-top: 4px;
}
.b612-try__result-desc {
  grid-column: 1 / -1;
  grid-row: 3;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-mute);
  margin-top: 12px;
}
.b612-try__result-link {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-bright);
  word-break: break-all;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(217, 181, 107, 0.1);
  border: 1px solid rgba(217, 181, 107, 0.4);
  border-radius: 8px;
  transition: all var(--t-fast);
  width: fit-content;
}
.b612-try__result-link:hover {
  background: rgba(217, 181, 107, 0.2);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* 入力エリア */
.b612-try__chat-input {
  display: flex; gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
}
.b612-try__input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: #04040d;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: border-color var(--t-fast);
}
.b612-try__input-wrap:focus-within { border-color: var(--gold); }
.b612-try__input-prompt {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--gold);
  font-size: 1rem;
}
.b612-try__select {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 0;
  font-family: var(--font-jp);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-mute) 50%),
    linear-gradient(135deg, var(--text-mute) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) center,
    calc(100% - 8px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.b612-try__select option {
  background: #04040d;
  color: var(--text);
}

.b612-try__send {
  padding: 0 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 6px 18px -6px var(--gold-glow);
}
.b612-try__send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(217, 181, 107, 0.5);
}
.b612-try__send:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}
.b612-try__send-arrow { display: inline-block; }

/* リセットボタン */
.b612-try__reset {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  display: none;
  transition: color var(--t-fast), border-color var(--t-fast);
  z-index: 2;
}
.b612-try__reset:hover { color: var(--gold); border-color: var(--gold); }
.b612-try__chat.is-done .b612-try__reset { display: inline-block; }
.b612-try__chat.is-running .b612-try__chat-input,
.b612-try__chat.is-done .b612-try__chat-input { opacity: 0.5; pointer-events: none; }

@media (max-width: 600px) {
  .b612-try__msg-content { max-width: 84%; }
  .b612-try__steps,
  .b612-try__result { margin-left: 0; }
  .b612-try__chat-input { flex-direction: column; }
  .b612-try__send { width: 100%; justify-content: center; padding: 12px 24px; }
}

/* ===================================================
   PRICING — 星の開拓費用
   =================================================== */
.b612-pricing {
  padding: 160px 24px;
  position: relative;
  z-index: 2;
}
.b612-pricing__intro {
  max-width: 680px;
  margin: 0 auto 80px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.4;
  text-align: center;
  color: var(--text-mute);
}
.b612-pricing__intro b {
  color: var(--gold);
  font-weight: 500;
}
.b612-pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto 60px;
}
@media (min-width: 800px) { .b612-pricing__grid { grid-template-columns: repeat(2, 1fr); } }
.b612-pricing__card {
  position: relative;
  padding: 48px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.b612-pricing__card--featured {
  background: var(--card-featured);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold-soft),
    0 30px 80px -30px rgba(217, 181, 107, 0.35);
}
.b612-pricing__card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(217, 181, 107, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.b612-pricing__ribbon {
  position: absolute; top: -14px; left: 36px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--bg);
  border-radius: 100px;
  font-weight: 600;
}
.b612-pricing__name {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.b612-pricing__sub {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.b612-pricing__rows {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--border-strong);
}
.b612-pricing__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  font-family: var(--font-serif);
}
.b612-pricing__row dt {
  font-size: 0.95rem;
  color: var(--text);
}
.b612-pricing__row dt small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 2px;
  font-family: var(--font-en);
}
.b612-pricing__amount {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-serif);
}
.b612-pricing__old {
  text-decoration: line-through;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.b612-pricing__new {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.b612-pricing__card--featured .b612-pricing__new {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.b612-pricing__unit {
  font-size: 0.78rem;
  color: var(--text-mute);
}
.b612-pricing__rules {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 2;
  display: flex; flex-direction: column; gap: 10px;
}
.b612-pricing__rules li {
  position: relative;
  padding-left: 22px;
}
.b612-pricing__rules li::before {
  content: '✦';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
}
.b612-pricing__rules li.warn { color: var(--text); }
.b612-pricing__rules li.warn::before { content: '✶'; color: var(--gold-bright); }
.b612-pricing__rules b { color: var(--gold); font-weight: 600; }

.b612-pricing__cta {
  margin-top: 32px;
}
.b612-pricing__cta .btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 500;
  width: 100%;
  box-shadow: 0 6px 30px -10px var(--gold-glow);
}
.b612-pricing__cta .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -10px rgba(217, 181, 107, 0.4);
}

.b612-pricing__limit {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.b612-pricing__limit b {
  color: var(--gold);
  font-weight: 600;
}

/* ===================================================
   WORKS — 星々
   =================================================== */
.b612-works {
  padding: 160px 24px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3) 50%, transparent);
}
.b612-works .works__item {
  background: var(--card);
  border-color: var(--border);
  padding-top: 0;
  overflow: hidden;
}
.b612-works .works__item:hover {
  border-color: var(--gold);
  background: var(--card-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.b612-works .works__tag {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* === テレビ画面風スクリーン === */
.b612-works .works__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -28px -26px 22px;  /* カードの内側パディングを打ち消して画面を端まで */
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    linear-gradient(180deg, #050511 0%, #0a0a20 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* スキャンライン（CRT風の薄い横線） */
.b612-works .works__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
  opacity: 0.6;
}

/* 四隅のL字マーカー */
.b612-works .works__screen-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  z-index: 3;
  opacity: 0.55;
  transition: opacity var(--t-med);
}
.b612-works .works__screen-corner--tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.b612-works .works__screen-corner--tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.b612-works .works__screen-corner--bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.b612-works .works__screen-corner--br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.b612-works .works__item:hover .works__screen-corner { opacity: 1; }

/* PLANET タグラベル */
.b612-works .works__screen-label {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
  z-index: 3;
}

/* === ミニ惑星（CSS で 3D風）=== */
.b612-works .works__planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 30%,
      var(--planet-bright, #ff8a3d) 0%,
      var(--planet-bright, #ff8a3d) 18%,
      var(--planet-deep, #ea580c) 65%,
      #1a0a05 100%);
  box-shadow:
    inset -8px -8px 16px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 255, 255, 0.06),
    0 0 60px color-mix(in srgb, var(--planet-bright, #ff8a3d) 30%, transparent);
  z-index: 2;
  animation: worksPlanetSpin 12s linear infinite;
}
/* CSS で表面の模様（自転して見える） */
.b612-works .works__planet::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 30% at 30% 50%, rgba(255,255,255,0.12), transparent 60%),
    radial-gradient(ellipse 40% 20% at 70% 40%, rgba(0,0,0,0.25), transparent 60%),
    radial-gradient(ellipse 30% 15% at 50% 70%, rgba(255,255,255,0.08), transparent 60%);
}
/* ハロー */
.b612-works .works__planet::after {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--planet-bright, #ff8a3d) 35%, transparent) 0%,
    transparent 60%);
  z-index: -1;
  pointer-events: none;
}
@keyframes worksPlanetSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ホバー時、惑星が拡大 */
.b612-works .works__item:hover .works__planet {
  animation-duration: 6s;
  box-shadow:
    inset -10px -10px 20px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 255, 255, 0.1),
    0 0 80px color-mix(in srgb, var(--planet-bright, #ff8a3d) 50%, transparent);
}

/* ===========================================================
   WORKS COSMOS — 宇宙マップ + iframe ビューアー
   =========================================================== */
.works-cosmos {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  background: linear-gradient(180deg, #050511 0%, #02020a 100%);
  border: 1px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(217, 181, 107, 0.15),
    0 30px 80px -30px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.works-cosmos__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.works-cosmos__canvas:active { cursor: grabbing; }

.works-cosmos__hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(217, 181, 107, 0.3);
  border-radius: 100px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.works-cosmos.is-viewer-open .works-cosmos__hint { opacity: 0; }

/* 惑星の下に出る常時ラベル */
.works-cosmos__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.works-cosmos__label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, 0);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
}
.works-cosmos__label.is-visible { opacity: 1; }
.works-cosmos__label-no {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 2px;
}
.works-cosmos__label-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.5);
}
.works-cosmos__label.is-hovered .works-cosmos__label-title {
  color: var(--gold-bright);
}

/* ホバー時のツールチップ */
.works-cosmos__tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}
.works-cosmos__tooltip.is-visible { opacity: 1; }
.works-cosmos__tooltip-no {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-right: 8px;
}

/* iframe ビューアー */
.works-cosmos__viewer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(5, 5, 17, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
  z-index: 4;
}
.works-cosmos.is-viewer-open .works-cosmos__viewer {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0s;
}

.works-cosmos__viewer-head {
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.works-cosmos__viewer-info {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.works-cosmos__viewer-no {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
}
.works-cosmos__viewer-tag {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: var(--text);
}
.works-cosmos__viewer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--text);
}
.works-cosmos__viewer-desc {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.85;
  margin-bottom: 14px;
}
.works-cosmos__viewer-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.works-cosmos__viewer-open {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  border-radius: 100px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.works-cosmos__viewer-open:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px var(--gold-glow);
}
.works-cosmos__viewer-close {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-mute);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.works-cosmos__viewer-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.works-cosmos__viewer-screen {
  position: relative;
  flex: 1;
  background: #000;
  border-top: 1px solid var(--border);
}
.works-cosmos__viewer-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.works-cosmos__viewer-iframe.is-loaded { opacity: 1; }

.works-cosmos__viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-mute);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.works-cosmos__viewer-loading.is-hidden { opacity: 0; }
.works-cosmos__viewer-loading-spinner {
  width: 38px; height: 38px;
  border: 2px solid rgba(217, 181, 107, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: cosmoSpin 0.9s linear infinite;
}
@keyframes cosmoSpin { to { transform: rotate(360deg); } }

.works-cosmos__viewer-error {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: rgba(5, 5, 17, 0.95);
  color: var(--text-mute);
  font-family: var(--font-serif);
  line-height: 1.95;
  z-index: 5;
}
.works-cosmos__viewer-error.is-visible { display: flex; }

@media (max-width: 720px) {
  .works-cosmos { min-height: 400px; aspect-ratio: 4 / 5; }
  .works-cosmos__viewer-head { padding: 16px 18px 12px; }
  .works-cosmos__viewer-title { font-size: 1.1rem; }
}
.b612-works .works__no {
  color: var(--gold);
  font-family: var(--font-en);
}
.b612-works .works__title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
}
.b612-works .works__desc {
  font-family: var(--font-serif);
  color: var(--text-mute);
}
.b612-works .works__link {
  font-family: var(--font-en);
  color: var(--gold);
  border-top-color: var(--border);
}
.b612-works .works__title small { color: var(--text-dim); }

/* ===================================================
   INVITATION — クロージング
   =================================================== */
.b612-invitation {
  position: relative;
  padding: 200px 24px;
  background:
    radial-gradient(ellipse at center, rgba(20, 20, 50, 0.6), var(--bg-deep) 70%),
    var(--bg-deep);
  overflow: hidden;
  z-index: 2;
}
.b612-invitation::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, var(--gold-bright) 0.7px, transparent 1.4px),
    radial-gradient(circle at 78% 65%, #fff 0.6px, transparent 1.2px),
    radial-gradient(circle at 35% 80%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 88% 18%, var(--gold) 0.6px, transparent 1.2px),
    radial-gradient(circle at 22% 55%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 62% 32%, var(--gold-bright) 0.7px, transparent 1.4px),
    radial-gradient(circle at 8% 88%, #fff 0.5px, transparent 1px),
    radial-gradient(circle at 92% 92%, #fff 0.6px, transparent 1.2px),
    radial-gradient(circle at 48% 10%, var(--gold) 0.5px, transparent 1px),
    radial-gradient(circle at 52% 95%, #fff 0.5px, transparent 1px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.9;
}
.b612-invitation__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.b612-invitation__chapter {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.b612-invitation__chapter::before,
.b612-invitation__chapter::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.b612-invitation__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 32px;
  color: var(--text);
  max-width: 14em;
  display: block;
}
.b612-invitation__title br { display: block; }
.b612-invitation__title em {
  font-style: normal;
  color: var(--gold-bright);
  filter:
    drop-shadow(0 0 24px rgba(236, 201, 122, 0.7))
    drop-shadow(0 0 8px rgba(236, 201, 122, 0.4))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: goldPulse 3.6s ease-in-out infinite;
}
.b612-invitation__lead {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.4;
  color: var(--text-mute);
  margin-bottom: 56px;
}
.b612-invitation__cta .btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 500;
  box-shadow: 0 12px 40px -10px var(--gold-glow);
}
.b612-invitation__cta .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -10px rgba(217, 181, 107, 0.5);
}
.b612-invitation__meta {
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ===================================================
   FAQ
   =================================================== */
body.b612 .section { background: transparent; }
body.b612 .section-head__num { color: var(--gold); }
body.b612 .section-head__title { color: var(--text); font-family: var(--font-serif); font-weight: 500; }
body.b612 .section-head__lead { color: var(--text-mute); font-family: var(--font-serif); }

body.b612 .faq__item {
  background: var(--card);
  border-color: var(--border);
}
body.b612 .faq__item:hover { border-color: var(--border-strong); background: var(--card-2); }
body.b612 .faq__item[open] { border-color: var(--gold); background: var(--card-2); }
body.b612 .faq__item summary {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}
body.b612 .faq__item summary::after { color: var(--gold); }
body.b612 .faq__a {
  font-family: var(--font-serif);
  line-height: 2.2;
  color: var(--text-mute);
}
body.b612 .faq__a b { color: var(--gold); }

/* ===================================================
   Footer
   =================================================== */
body.b612 .footer {
  background: var(--bg-deep);
  border-top-color: var(--border);
  position: relative;
  z-index: 2;
}
body.b612 .footer__logo {
  font-family: var(--font-serif);
  font-weight: 500;
  background: linear-gradient(135deg, var(--text), var(--gold-bright));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
body.b612 .footer__brand p { font-family: var(--font-serif); color: var(--text-mute); }
body.b612 .footer__nav h5 { font-family: var(--font-en); color: var(--text-dim); }
body.b612 .footer__nav a {
  font-family: var(--font-serif);
  color: var(--text-mute);
}
body.b612 .footer__nav a:hover { color: var(--gold); }
body.b612 .footer__operator a { color: var(--text-mute); border-bottom-color: var(--border); }
body.b612 .footer__operator a:hover { color: var(--gold); border-bottom-color: var(--gold); }
body.b612 .footer__bottom { color: var(--text-dim); border-top-color: var(--border); }
body.b612 .container { position: relative; z-index: 2; }

/* Reveal */
.b612 [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1);
}
.b612 [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Plain section (世界観を抑えたビジネス見出し) ===== */
.b612-section--plain {
  padding-top: 100px;
  padding-bottom: 100px;
}
.b612-section--plain::before {
  display: none !important;
}
.b612-section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  padding: 6px 18px;
  border: 1px solid rgba(217, 181, 107, 0.4);
  border-radius: 100px;
  margin-bottom: 24px;
  text-align: center;
  text-transform: uppercase;
}
.b612-section--plain {
  text-align: center;
}
.b612-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 auto 40px;
  line-height: 1.4;
}
.b612-section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* plain section 内のテキストは中央寄せ・落ち着いた色 */
.b612-section--plain .b612-pricing__intro,
.b612-section--plain .b612-story__body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Pricing — 3 column extension ===== */
.b612-pricing__grid--3 {
  grid-template-columns: 1fr;
  max-width: 1280px;
}
@media (min-width: 800px) {
  .b612-pricing__grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .b612-pricing__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .b612-pricing__grid--3 .b612-pricing__card { padding: 40px 28px; }
}
.b612-pricing__grid--3 .b612-pricing__new { font-size: 1.4rem; }
.b612-pricing__rules li.muted {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 6px;
}
.b612-pricing__rules li.muted::before { content: '·'; color: var(--text-dim); }

/* ===== Free Trial banner ===== */
.b612-pricing__trial {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 36px 40px;
  background:
    linear-gradient(135deg, rgba(217, 181, 107, 0.08), rgba(217, 181, 107, 0.02));
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.b612-pricing__trial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(217, 181, 107, 0.18), transparent 60%);
  pointer-events: none;
}
.b612-pricing__trial-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  padding: 5px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  border-radius: 100px;
  margin-bottom: 18px;
  font-weight: 600;
}
.b612-pricing__trial h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.b612-pricing__trial h3 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.b612-pricing__trial p {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.85;
  margin: 0 0 24px;
}
.b612-pricing__trial .btn {
  position: relative;
  z-index: 1;
}

/* ===== Common terms box ===== */
.b612-pricing__common {
  max-width: 900px;
  margin: 60px auto 0;
  padding: 36px 40px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.b612-pricing__common h3 {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin: 0 0 24px;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}
.b612-pricing__common ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.b612-pricing__common li {
  padding: 8px 0;
  color: var(--text-mute);
  border-bottom: 1px solid rgba(217, 181, 107, 0.08);
  line-height: 1.75;
  font-family: var(--font-serif);
  font-size: 0.93rem;
}
.b612-pricing__common li:last-child { border-bottom: none; }
.b612-pricing__common li b { color: var(--gold); font-weight: 600; }

/* ===== Addons grid ===== */
.b612-pricing__addons {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 36px 40px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.b612-pricing__addons h3 {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}
.b612-pricing__addons h3 small {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-left: 8px;
}
.b612-pricing__addons > p {
  text-align: center;
  font-family: var(--font-serif);
  color: var(--text-mute);
  font-size: 0.88rem;
  margin: 0 0 24px;
}
.b612-pricing__addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.b612-pricing__addon {
  padding: 22px 16px;
  background: rgba(217, 181, 107, 0.05);
  border: 1px solid rgba(217, 181, 107, 0.15);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.b612-pricing__addon:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
}
.b612-pricing__addon b {
  display: block;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.b612-pricing__addon span {
  display: block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.b612-pricing__addon small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.7;
  font-family: var(--font-serif);
}
@media (max-width: 600px) {
  .b612-pricing__common,
  .b612-pricing__addons,
  .b612-pricing__trial { padding: 24px 20px; }
}

/* ===== Story End (物語のおわり) ===== */
.b612-story-end {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 100px;
}
.b612-story-end__cta {
  margin-top: 48px;
  text-align: center;
}
.b612-story-end__cta .btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 500;
  box-shadow: 0 12px 40px -10px rgba(217, 181, 107, 0.45);
  padding: 18px 48px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.b612-story-end__cta .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -10px rgba(217, 181, 107, 0.55);
}

/* ===== Minimal Footer (物語ページ用) ===== */
.footer--minimal {
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(217, 181, 107, 0.1);
}
.footer--minimal .footer__bottom {
  text-align: center;
  color: var(--text-mute);
  font-size: 0.8rem;
}
.footer--minimal a { transition: color 0.2s; }
.footer--minimal a:hover { color: var(--gold); }

/* ===== Lab Hero (lab.html 用シンプル HERO) ===== */
.b612-lab-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 181, 107, 0.1), transparent 50%),
    linear-gradient(180deg, #0f0a1e 0%, #050310 100%);
  overflow: hidden;
}
.b612-lab-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6) 50%, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #fde68a 50%, transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.5) 50%, transparent);
  background-size: 100% 100%;
  pointer-events: none;
}
.b612-lab-hero__inner {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.b612-lab-hero__badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  border-radius: 100px;
  margin-bottom: 32px;
  font-weight: 700;
}
.b612-lab-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 28px;
  line-height: 1.35;
}
.b612-lab-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.b612-lab-hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--text-mute);
  line-height: 1.9;
  margin: 0 0 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.b612-lab-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.b612-lab-hero__cta .btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg);
  font-weight: 600;
  padding: 16px 36px;
}
.b612-lab-hero__bullets {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.85;
}

/* lab ページ：物語専用スタイル（背景キャラ、SKIPボタン等）を無効化 */
.b612--lab .b612-chars,
.b612--lab .b612-next,
.b612--lab .b612-skip {
  display: none !important;
}
