/* ==========================================================================
   KAKU ～核～ style.css
   トーン: 親しみやすい × 知的 × 洗練 × 少し未来的
   フラットイラスト調に合わせ、影・グラデーションは最小限。占い/スピリチュアル感を避ける。
   ========================================================================== */

:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1C1D21;
  --color-text-soft: #5B5E68;
  --color-border: #E4E4E0;
  --color-accent: #2C2F6B;      /* 深いインディゴ: ブランドのメインカラー */
  --color-accent-soft: #EFEFF7;
  --color-glow: #5EC8F2;        /* シアン系アクセント: 近未来感を出したい箇所（誘導バナー等）で使用 */
  --color-vivid: #5B4FE8;       /* 青紫寄りのビビッドカラー: ヒーロー背景のグラデーションに深みを出す用（紫単体には寄せない） */
  --color-vivid-2: #2FB8C6;     /* ティール寄りのシアン: グラデーションの中間色 */
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --font-serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif; /* PERSONAL BOOKの「本らしさ」演出に使用 */
  --book-bg-a: #0A0D1C;
  --book-bg-b: #10142C;
  --book-panel: #12172E;
  --book-text: #ECEEF7;
  --book-text-soft: rgba(236, 238, 247, 0.68);
  --book-border: rgba(94, 200, 242, 0.22);
  --book-gold: #D9B36C;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 880px;
  --font-jp: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-jp);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo span { color: var(--color-accent); }
.site-nav { display: flex; gap: 24px; font-size: 14px; }
.site-nav a { color: var(--color-text-soft); }
.site-nav a:hover { color: var(--color-text); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}
.container--narrow {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.view { min-height: 60vh; }

.section-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.subsection-title {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 16px;
}
.body-text {
  font-size: 15px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.step-indicator {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  margin-bottom: 8px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-soft);
}
.feature-list li strong { color: var(--color-text); }

/* ---------- Hero (TOP) ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px 56px;
  text-align: center;
}
.hero__title {
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero__lead {
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--color-text-soft);
  margin-bottom: 28px;
}
.hero__meta {
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--color-text-soft);
  margin: 4px 0 20px;
  letter-spacing: 0.04em;
}
.btn--lg {
  padding: 18px 46px;
  font-size: clamp(15px, 1vw, 16px);
}

/* KAKUらしい世界観の背景（宇宙・魔法陣・過剰な紫/ゴールドは使わず、
   色そのものは大胆に、モチーフは幾何学的な線・円・グリッドの重なりだけで
   「核／内面」を表現）。サイトの「顔」になる部分なので、ここだけは彩度・
   グローともにはっきり効かせて近未来的な高揚感を出す。 */
.hero--kaku {
  position: relative;
  max-width: none;
  width: 100%;
  padding: 108px 24px 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 620px 520px at 12% -6%, rgba(94, 200, 242, 0.42), transparent 60%),
    radial-gradient(ellipse 680px 560px at 92% 8%, rgba(91, 79, 232, 0.34), transparent 62%),
    radial-gradient(ellipse 640px 460px at 50% 108%, rgba(47, 184, 198, 0.30), transparent 64%),
    linear-gradient(160deg, #EEF3FF 0%, #F1F6FF 32%, #FAFAF8 62%, #FAFAF8 100%);
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: kakuHeroDrift 24s ease-in-out infinite;
}
.hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero__decor::before {
  content: "";
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(rgba(44, 47, 107, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 47, 107, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 820px 560px at 50% 22%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 820px 560px at 50% 22%, #000 0%, transparent 74%);
  animation: kakuGridDrift 22s linear infinite;
}
.hero__decor-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(44, 47, 107, 0.22);
  animation: kakuFloat 9s ease-in-out infinite;
}
.hero__decor-circle--a { width: 320px; height: 320px; top: -120px; left: -80px; border-color: rgba(91, 79, 232, 0.28); animation-duration: 12s; }
.hero__decor-circle--b {
  width: 220px; height: 220px; top: 24px; right: 5%;
  border-color: rgba(94, 200, 242, 0.55);
  animation: kakuFloat 8s ease-in-out infinite, kakuGlowPulse 4s ease-in-out infinite;
  animation-delay: -2s, 0s;
}
.hero__decor-circle--c { width: 120px; height: 120px; bottom: -30px; left: 16%; border-color: rgba(47, 184, 198, 0.32); animation-duration: 10s; animation-delay: -4s; }
.hero__decor-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(94, 200, 242, 0.5), transparent);
  animation: kakuLineDrift 7s ease-in-out infinite;
}
.hero__decor-line--a { width: 50%; top: 20%; right: -6%; transform: rotate(-8deg); }
.hero__decor-line--b { width: 40%; bottom: 12%; left: -3%; transform: rotate(6deg); background: linear-gradient(90deg, transparent, rgba(91, 79, 232, 0.4), transparent); animation-delay: -3.2s; }
.hero__scanline {
  position: absolute;
  top: 0;
  left: -20%;
  width: 30%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(94, 200, 242, 0.16) 45%, rgba(94, 200, 242, 0.26) 50%, rgba(94, 200, 242, 0.16) 55%, transparent);
  animation: kakuScan 7s ease-in-out infinite;
}
.hero__sparkle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(94, 200, 242, 0.8);
  animation: kakuTwinkle 3.4s ease-in-out infinite;
}
.hero__sparkle--a { width: 5px; height: 5px; top: 18%; left: 12%; animation-delay: -0.4s; }
.hero__sparkle--b { width: 4px; height: 4px; top: 32%; right: 18%; animation-delay: -1.6s; }
.hero__sparkle--c { width: 6px; height: 6px; bottom: 22%; left: 24%; animation-delay: -2.4s; }
.hero__sparkle--d { width: 4px; height: 4px; bottom: 30%; right: 12%; animation-delay: -0.9s; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(120deg, var(--color-vivid), var(--color-glow), var(--color-vivid-2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 24px -10px rgba(91, 79, 232, 0.35);
  animation: kakuBadgePulse 3.2s ease-in-out infinite;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-glow), var(--color-vivid));
}
.hero__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero__lead--sub { margin-top: -14px; }

/* 淡い・暗いセクション向けの装飾バリエーション（オーロラの浮遊するグラデーション塊で
   「近未来感・ワクワク感」を出す。宇宙感にならないよう、抽象的な光の塊にとどめる） */
.hero__decor--soft { opacity: 0.7; }
.hero__decor--dark { z-index: 0; }
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.aurora-blob--a {
  width: 420px; height: 420px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(94, 200, 242, 0.28), transparent 70%);
  animation: kakuAuroraA 16s ease-in-out infinite;
}
.aurora-blob--b {
  width: 380px; height: 380px;
  top: 10%; right: -140px;
  background: radial-gradient(circle, rgba(44, 47, 107, 0.22), transparent 70%);
  animation: kakuAuroraB 20s ease-in-out infinite;
}
.aurora-blob--c {
  width: 300px; height: 300px;
  bottom: -140px; left: 30%;
  background: radial-gradient(circle, rgba(94, 200, 242, 0.18), transparent 70%);
  animation: kakuAuroraC 18s ease-in-out infinite;
}
.hero__decor--dark .aurora-blob--a { background: radial-gradient(circle, rgba(94, 200, 242, 0.30), transparent 70%); }
.hero__decor--dark .aurora-blob--b { background: radial-gradient(circle, rgba(94, 200, 242, 0.18), transparent 70%); }

/* ヒーロー専用の強めのオーロラ（サイトの「顔」なので彩度・存在感を大きく強めた版） */
.hero__decor--vivid .aurora-blob { filter: blur(55px); }
.hero__decor--vivid .aurora-blob--a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(94, 200, 242, 0.55), transparent 68%);
}
.hero__decor--vivid .aurora-blob--b {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(91, 79, 232, 0.48), transparent 68%);
}
.hero__decor--vivid .aurora-blob--c {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(47, 184, 198, 0.42), transparent 68%);
}

@keyframes kakuFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}
@keyframes kakuGlowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(94, 200, 242, 0.10); }
  50% { box-shadow: 0 0 72px rgba(94, 200, 242, 0.26); }
}
@keyframes kakuLineDrift {
  0%, 100% { opacity: 0.55; transform: translateX(0) rotate(var(--line-rot, -8deg)); }
  50% { opacity: 1; transform: translateX(14px) rotate(var(--line-rot, -8deg)); }
}
@keyframes kakuGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}
@keyframes kakuScan {
  0% { left: -30%; opacity: 0; }
  15% { opacity: 1; }
  50% { left: 55%; opacity: 1; }
  85% { opacity: 0; }
  100% { left: 110%; opacity: 0; }
}
@keyframes kakuAuroraA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
}
@keyframes kakuAuroraB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, 24px) scale(1.08); }
}
@keyframes kakuAuroraC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -22px) scale(1.15); }
}
@keyframes kakuHeroDrift {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50% { background-position: 10% 8%, 88% 12%, 46% 92%, 0 0; }
}
@keyframes kakuBadgePulse {
  0%, 100% { box-shadow: 0 8px 24px -10px rgba(91, 79, 232, 0.35); }
  50% { box-shadow: 0 8px 28px -8px rgba(94, 200, 242, 0.55); }
}
@keyframes kakuTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__decor-circle,
  .hero__decor-line,
  .hero__decor::before,
  .hero__scanline,
  .hero__sparkle,
  .hero__badge,
  .hero--kaku,
  .aurora-blob,
  .final-cta__grid {
    animation: none !important;
  }
}

/* ---------- あなたは、どのKAKUだろう。（TOP・12タイプ×3分類ショーケース）
   参考リファレンス（色見本カード型UI）を踏まえ、分類ごとに「濃紺バー＋ビジュアル＋
   タイプのカラーコード付きスウォッチ」を1枚のカードにまとめ、ドット＋矢印で
   スワイプ／クリック送りできるカルーセルとして見せる構成 ---------- */
.type-showcase {
  max-width: none;
  width: 100%;
  padding: 64px 0 8px;
  text-align: center;
}
.type-showcase__inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.type-showcase__eyebrow { text-align: center; }
.type-showcase__title { margin-bottom: 12px; }
.type-showcase__lead {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  color: var(--color-text-soft);
  margin: 0 0 8px;
}

.type-showcase__carousel {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.type-showcase__viewport { border-radius: 22px; }
.type-showcase__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.type-showcase__slide { min-width: 0; }
.type-showcase__slide-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--color-surface);
  height: 100%;
  box-shadow: 0 24px 48px -20px rgba(20, 20, 40, 0.28);
}
.type-showcase__slide-bar {
  position: relative;
  padding: 18px 22px 20px;
  text-align: left;
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--cat-color, var(--color-accent)) 82%, #0A0D1C),
    color-mix(in srgb, var(--cat-color, var(--color-accent)) 55%, #05060F));
}
.type-showcase__slide-bar-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}
.type-showcase__slide-bar-text {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}
.type-showcase__slide-visual {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: color-mix(in srgb, var(--cat-color, var(--color-accent)) 16%, #FFFFFF);
}
.type-showcase__slide-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(48px, 9vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--cat-color, var(--color-accent)) 32%, #FFFFFF);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.type-showcase__slide-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 8px;
  padding: 24px 20px 28px;
}
.type-showcase__swatch {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.type-showcase__swatch:hover { transform: translateY(-3px); }
.type-showcase__swatch-photo {
  display: block;
  width: clamp(64px, 18vw, 84px);
  height: clamp(64px, 18vw, 84px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(20, 20, 40, 0.18);
}
.type-showcase__swatch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.type-showcase__swatch-code {
  margin: 9px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--cat-color, var(--color-accent)) 70%, black);
  opacity: 0.85;
}
.type-showcase__swatch-name {
  margin: 2px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text);
}

.type-showcase__note {
  margin: 40px auto 0;
  max-width: 480px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.9;
  color: var(--color-text-soft);
  font-family: var(--font-serif);
}
@media (min-width: 641px) and (max-width: 940px) {
  .type-showcase__track { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .type-showcase { padding: 44px 0 8px; }
  .type-showcase__carousel { max-width: 420px; margin-top: 32px; padding: 0 16px; }
  .type-showcase__track { grid-template-columns: 1fr; gap: 16px; }
  .type-showcase__slide-visual { height: 84px; }
  .type-showcase__slide-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 12px 22px; gap: 8px; }
}

/* ---------- 自分事化の問いかけ（TOP） ---------- */
.hero-questions {
  max-width: none;
  width: 100%;
  padding: 72px 0 76px;
  text-align: center;
}
.hero-questions__inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero-questions__eyebrow {
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(14px, 1.1vw, 16px);
}
.hero-questions__featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-questions__item--featured {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 26px 28px;
  padding-left: 32px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 16px 32px -20px rgba(44, 47, 107, 0.28);
}
.hero-questions__item--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-glow), var(--color-accent));
  box-shadow: 0 0 14px rgba(94, 200, 242, 0.5);
}
.hero-questions__secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-questions__item--secondary {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.7;
  padding: 12px 6px 0;
}
@media (max-width: 640px) {
  .hero-questions__secondary { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- 仕組みのミニ説明（TOP・最後に軽く） ---------- */
.hero-explainer {
  max-width: none;
  width: 100%;
  padding: 64px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(44, 47, 107, 0.05), transparent 68%),
    var(--color-bg);
}
.hero-explainer__inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.hero-explainer__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  margin: 0 0 28px;
}
.hero-explainer__grid {
  display: flex;
  align-items: stretch;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-explainer__step {
  flex: 1 1 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
}
.hero-explainer__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 10px;
}
.hero-explainer__desc {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.75;
}
.hero-explainer__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  opacity: 0.5;
  font-size: 15px;
}
.hero-explainer__result {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 10px 0 30px;
  line-height: 1.8;
}
.hero-explainer__result strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
  color: var(--color-text);
  font-family: var(--font-serif);
}
@media (max-width: 640px) {
  .hero-explainer__grid { flex-direction: column; }
  .hero-explainer__arrow { transform: rotate(90deg); }
}

/* ---------- 最終CTA（TOP・体験の締め、あえて背景を暗くして余韻を作る） ---------- */
.final-cta {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 96px 24px 108px;
  text-align: center;
  background: linear-gradient(160deg, var(--color-accent), #1B1D45 60%, #0F1130);
  color: #fff;
  overflow: hidden;
}
.final-cta__grid {
  position: absolute;
  inset: -56px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 200, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 200, 242, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 620px 420px at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 620px 420px at 50% 40%, #000 0%, transparent 75%);
  animation: kakuGridDrift 18s linear infinite;
}
.final-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final-cta__pre {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 20px;
  line-height: 1.8;
}
.final-cta__title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.38;
  margin: 0 0 30px;
  color: #fff;
}
.final-cta .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--color-accent);
  box-shadow: 0 0 32px rgba(94, 200, 242, 0.28);
}
.final-cta__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  margin: 14px 0 0;
  letter-spacing: 0.04em;
}

/* ---------- ブランドメッセージ（ABOUT） ---------- */
.brand-message {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  background: var(--color-accent-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  margin: 6px;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.btn--text {
  border: none;
  background: none;
  color: var(--color-text-soft);
}

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-soft);
}
.form-field input,
.form-field select {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}
.form-note {
  font-size: 12px;
  color: var(--color-text-soft);
}

/* ---------- Progress bar ---------- */
.progress-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.reassurance-note {
  font-size: 12px;
  color: var(--color-text-soft);
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 24px;
}

/* ---------- Question card ---------- */
.question-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.question-card__prompt {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
}
.question-card__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text);
}
.question-card__option:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* ---------- STATE Likert ---------- */
.likert-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.likert-item__prompt {
  font-size: 14px;
  margin-bottom: 12px;
}
.likert-scale {
  display: flex;
  gap: 8px;
}
.likert-scale button {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.likert-scale button.is-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---------- Analyzing ---------- */
.analyzing {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.analyzing__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing__text {
  font-size: 14px;
  color: var(--color-text-soft);
}

/* ---------- Result / KAKU CARD ---------- */
.kaku-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  text-align: center;
}
.kaku-card__image {
  width: 100%;
  display: block;
  background: var(--color-accent-soft);
}
.kaku-card__poster-tag {
  margin: 0;
  padding: 16px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}
.kaku-card__body { padding: 24px; }
.kaku-card__type-en {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.kaku-card__type-jp {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0 12px;
}
.kaku-card__praise {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.6;
  margin: 0 0 12px;
}
.kaku-card__catchcopy {
  font-size: 14px;
  color: var(--color-text-soft);
}
.kaku-card__rarity {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@keyframes kakuCardReveal {
  0% { opacity: 0; transform: scale(0.88) translateY(14px); }
  60% { opacity: 1; transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.kaku-card--reveal {
  animation: kakuCardReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.core6-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.core6-grid__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.core6-grid__label { font-size: 12px; color: var(--color-text-soft); }
/* 文中で「構想力（VISION）」のように英語表記を添えるときの、英語部分の弱め表示 */
.axis-en { opacity: 0.55; font-weight: 400; }
/* 見出しの末尾に「WEAPON」のような英語の補助ラベルを小さく添えるとき用（日本語を主役にするため） */
.label-en {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  opacity: 0.5;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
.core6-grid__bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.core6-grid__bar-fill {
  height: 100%;
  background: var(--color-accent);
}

.radar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.radar-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.radar-fill-anim {
  animation: radarGrow 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes radarGrow {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media print {
  .radar-fill-anim { animation: none; transform: scale(1); opacity: 1; }
}

.result-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.result-block h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.result-block p {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- KAKU GAP（本来のあなた × 今のあなた のズレ）｜最大の差別化ポイントなので視覚的に目立たせる ---------- */
.gap-hero {
  background: linear-gradient(165deg, var(--color-accent) 0%, #171933 100%);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 8px 0 32px;
  color: #F4F5FA;
}
.gap-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-glow);
  margin: 0 0 16px;
  font-weight: 700;
}
.gap-hero__compare {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
}
.gap-hero__before,
.gap-hero__after {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.gap-hero__tag {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(244, 245, 250, 0.6);
  margin: 0 0 6px;
  font-weight: 700;
}
.gap-hero__before .gap-hero__tag { color: var(--color-glow); }
.gap-hero__after .gap-hero__tag { color: #F2B84A; }
.gap-hero__compare p:last-child {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: rgba(244, 245, 250, 0.92);
}
.gap-hero__arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(244, 245, 250, 0.4);
}
.gap-hero__score {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.gap-hero__score-number {
  flex: none;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  min-width: 74px;
  text-align: center;
}
.gap-hero__score-number::after {
  content: "";
}
.gap-hero__score-body { flex: 1 1 auto; }
.gap-hero__score-tier {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}
.gap-hero__meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.gap-hero__meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.gap-hero__meter-fill--small,
.gap-hero__score-number--small { color: #3AAFA9; }
.gap-hero__meter-fill--small { background: #3AAFA9; }
.gap-hero__meter-fill--medium,
.gap-hero__score-number--medium { color: #E8B930; }
.gap-hero__meter-fill--medium { background: #E8B930; }
.gap-hero__meter-fill--large,
.gap-hero__score-number--large { color: #F2789F; }
.gap-hero__meter-fill--large { background: #E0568C; }
.gap-hero__score-caption {
  font-size: 11px;
  color: rgba(244, 245, 250, 0.55);
  margin: 0;
}
.gap-hero__message {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: rgba(244, 245, 250, 0.92);
}
.gap-hero__message strong { color: #FFFFFF; }
.gap-hero__detail-toggle {
  margin-top: 16px;
}
@media (max-width: 480px) {
  .gap-hero__compare { flex-direction: column; }
  .gap-hero__arrow { transform: rotate(90deg); }
}

.share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- PERSONAL BOOK 誘導バナー（近未来HUD風） ---------- */
.upsell-banner {
  position: relative;
  margin: 32px 0 8px;
  padding: 40px 28px 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 28px),
    linear-gradient(135deg, #0B0E1E 0%, #171C3C 55%, #202B5C 100%);
  color: #fff;
  text-align: center;
  border: 1px solid rgba(94, 200, 242, 0.35);
  box-shadow: 0 0 0 1px rgba(94, 200, 242, 0.08) inset, 0 10px 32px rgba(6, 8, 20, 0.45);
  animation: upsellGlow 3.6s ease-in-out infinite;
}
.upsell-banner::before,
.upsell-banner::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-glow);
  opacity: 0.75;
  pointer-events: none;
}
.upsell-banner::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 4px;
}
.upsell-banner::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 4px;
}
.upsell-banner__formula {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.upsell-banner__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-glow);
  background: rgba(94, 200, 242, 0.1);
  border: 1px solid rgba(94, 200, 242, 0.5);
  border-radius: 999px;
  padding: 5px 12px;
}
.upsell-banner__times {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 700;
}
.upsell-banner__title {
  position: relative;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 18px;
  text-shadow: 0 0 20px rgba(94, 200, 242, 0.4);
}
.upsell-banner__text {
  position: relative;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  margin: 0 0 28px;
}
.btn--cta {
  position: relative;
  background: #fff;
  border-color: #fff;
  color: #14183A;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(94, 200, 242, 0.45), 0 6px 22px rgba(94, 200, 242, 0.4);
}
.btn--cta:hover { transform: translateY(-2px) scale(1.02); }
@keyframes upsellGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(94, 200, 242, 0.08) inset, 0 10px 32px rgba(6, 8, 20, 0.45); }
  50% { box-shadow: 0 0 0 1px rgba(94, 200, 242, 0.22) inset, 0 10px 42px rgba(94, 200, 242, 0.3); }
}

/* ---------- KNOW→USE→CONNECT→BUILD（KAKU全体のサービス構造） ---------- */
.journey-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 24px 0 32px;
  padding: 20px;
  background: var(--color-accent-soft);
  border-radius: var(--radius);
}
.journey-flow__step {
  text-align: center;
  padding: 4px 14px;
}
.journey-flow__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin: 0 0 4px;
}
.journey-flow__desc {
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0;
}
.journey-flow__arrow {
  color: var(--color-text-soft);
  opacity: 0.5;
  font-size: 14px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--color-surface);
  text-align: center;
}
.pricing-card__step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-glow-on-light, var(--color-accent));
  opacity: 0.7;
  margin: 0 0 6px;
}
.pricing-card__price {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 16px;
}
.price-tag {
  font-size: 20px;
  font-weight: 800;
  margin: 16px 0;
}

/* ---------- タイプ一覧（3分類ごとにグループ表示） ---------- */
.types-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}
.types-grid__category {
  border-radius: var(--radius);
  padding: 20px 18px;
  background: var(--cat-color-soft, var(--color-accent-soft));
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--color-accent)) 22%, transparent);
}
.types-grid__category-head { margin-bottom: 16px; }
.types-grid__category-name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--cat-color, var(--color-accent));
}
.types-grid__category-desc {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-soft);
}
.types-grid__category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}
/* PC: 各カテゴリのタイプ4体を横一列に並べる */
#view-types .container--narrow { max-width: 1120px; }
#view-types .section-title,
#view-types > .container > .body-text { max-width: 880px; }
@media (min-width: 900px) {
  .types-grid__category-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.type-card {
  border: 1px solid color-mix(in srgb, var(--type-color, var(--color-accent)) 28%, var(--color-border));
  border-top: 3px solid var(--type-color, var(--color-accent));
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--type-color, var(--color-accent)) 55%, transparent);
}
.type-card__summary {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  position: relative;
}
.type-card__image {
  width: 100%;
  display: block;
  background: color-mix(in srgb, var(--type-color, var(--color-accent)) 14%, #FFFFFF);
}
.type-card__poster-tag {
  margin: 0;
  padding: 10px 14px;
  min-height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--type-color, var(--color-accent));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}
.type-card__body { padding: 16px; }
.type-card__type-en {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: color-mix(in srgb, var(--type-color, var(--color-accent)) 65%, var(--color-text-soft));
}
.type-card__type-jp {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0 8px;
  color: color-mix(in srgb, var(--type-color, var(--color-accent)) 78%, black);
}
.type-card__catchcopy {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}
.type-card__rarity {
  font-size: 11px;
  font-weight: 700;
  color: var(--type-color, var(--color-accent));
}
.type-card__toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--type-color, var(--color-accent));
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-card__detail {
  padding: 0 16px 20px;
  border-top: 1px solid color-mix(in srgb, var(--type-color, var(--color-accent)) 22%, var(--color-border));
  font-size: 13px;
  color: var(--color-text-soft);
}
.type-card__detail p { margin: 6px 0; }
.result-block__mini-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  margin-top: 14px !important;
}
.type-card--open .type-card__image { filter: brightness(1.02); }

/* ---------- PERSONAL BOOK: CONTEXT（深掘り）質問フォーム ---------- */
.context-intro {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 24px;
  margin: 20px 0 24px;
  text-align: left;
}
.context-intro__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0 0 8px;
}
.context-item { margin: 20px 0; }
.context-item__prompt {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.context-item__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.context-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text);
}
.context-option:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.context-option.is-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---------- PERSONAL BOOK preview（表紙から先も「データ感・近未来感・本感」を統一） ---------- */
.book-preview {
  text-align: left;
  margin-top: 8px;
  padding: 22px 16px 34px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 26px),
    linear-gradient(180deg, var(--book-bg-a) 0%, var(--book-bg-b) 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 200, 242, 0.1);
}
.book-preview > .form-note:first-child {
  color: var(--book-text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--book-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 20px;
}

/* ---------- PERSONAL BOOK: 本のような見た目 ---------- */
.book-cover {
  position: relative;
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 28px 34px 40px;
  text-align: center;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 10, 16, 0.3);
}
.book-cover::before {
  /* 背表紙（スパイン） */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.3);
}
.book-cover::after {
  /* 表紙の縁取り（箔押し風） */
  content: "";
  position: absolute;
  inset: 10px 10px 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.book-cover__label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  opacity: 0.8;
  margin-bottom: 18px;
}
.book-cover__image {
  position: relative;
  width: 148px;
  border-radius: var(--radius-sm);
  margin: 0 auto 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}
.book-cover__title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.book-cover__rule {
  position: relative;
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  margin: 16px auto 0;
}

/* ---------- PERSONAL BOOK: 章タブ（縦長スクロールを避け、章単位で切り替える） ---------- */
.book-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 20px;
  flex-wrap: wrap;
}
.book-tab {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(94, 200, 242, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--book-text-soft);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-serif);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.book-tab.is-active {
  background: var(--color-glow);
  border-color: var(--color-glow);
  color: #0A0D1C;
}

/* ---------- PERSONAL BOOK: 第3章のステップ表示（番号バッジ付き） ---------- */
.book-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.book-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.book-step:first-child { border-top: none; padding-top: 8px; }
.book-step__num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 179, 108, 0.14);
  border: 1px solid rgba(217, 179, 108, 0.5);
  color: var(--book-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-step__when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-glow);
  margin: 0 0 6px;
  font-weight: 700;
}

/* ---------- PERSONAL BOOK: KAKU MATCHへの誘導カード ---------- */
.book-match-promo {
  border-color: rgba(224, 86, 140, 0.4) !important;
}
.book-match-promo .book-chapter { color: #F2789F; text-shadow: 0 0 16px rgba(224, 86, 140, 0.35); }

.book-preview .result-block {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), var(--book-panel);
  border: 1px solid var(--book-border);
  box-shadow: 0 12px 28px rgba(3, 5, 14, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.book-preview .result-block h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(217, 179, 108, 0.3);
  color: var(--book-text);
}
.book-preview .result-block p {
  color: var(--book-text-soft);
  margin: 0 0 14px;
}
.book-preview .result-block p:last-child { margin-bottom: 0; }
.book-preview .result-block strong { color: var(--book-text); }
.book-preview .result-block p.result-block__mini-title {
  color: var(--color-glow);
  letter-spacing: 0.04em;
}
.book-preview .form-note {
  color: var(--book-text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.book-chapter {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--book-gold);
  font-weight: 700;
  margin: 0 0 6px;
  text-shadow: 0 0 16px rgba(217, 179, 108, 0.35);
}
.book-share-row {
  margin-bottom: 8px;
}
.book-purchase-cta {
  background: rgba(217, 179, 108, 0.08);
  border: 1px solid var(--book-gold);
  border-radius: var(--radius);
  padding: 20px;
  margin: 4px 0 24px;
  text-align: center;
}
.book-purchase-cta__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--book-text);
  margin: 0 0 8px;
}
.book-purchase-cta__desc {
  font-size: 13px;
  color: var(--book-text-soft);
  margin: 0 0 16px;
}
.book-purchase-cta .btn { width: 100%; max-width: 320px; }
.book-purchase-cta .form-note {
  color: var(--book-text-soft);
  margin: 12px 0 0;
}
.book-axis-row {
  margin: 20px 0;
}
.book-axis-row--compact {
  margin: 14px 0;
}
.book-axis-row__label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--book-text);
}
.book-axis-row__comment {
  font-size: 13px;
  color: var(--book-text-soft);
  margin: 8px 0 0;
}
.axis-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.axis-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.axis-badge--birth {
  background: rgba(94, 200, 242, 0.14);
  color: var(--color-glow);
  border: 1px solid rgba(94, 200, 242, 0.5);
}
.axis-badge--question {
  background: rgba(217, 179, 108, 0.14);
  color: var(--book-gold);
  border: 1px solid rgba(217, 179, 108, 0.5);
}

/* ---------- PERSONAL BOOK 第2章: 特に高い3つの力 ---------- */
.book-power-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 26px;
}
.book-power-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(217, 179, 108, 0.28);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.book-power-item__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.book-power-item__rank {
  flex: none;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--book-gold);
}
.book-power-item__name {
  flex: 1 1 auto;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--book-text);
}
.book-power-item__score {
  flex: none;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-glow);
}
.book-power-item__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--book-text-soft);
}

/* ---------- PERSONAL BOOK 第5章: KAKU GAPの補足アコーディオン ---------- */
.book-gap-closing {
  font-size: 15px;
  line-height: 1.8;
}
.book-accordion {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.book-accordion summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-glow);
  list-style: none;
}
.book-accordion summary::-webkit-details-marker { display: none; }
.book-accordion summary::after { content: "　＋"; }
.book-accordion[open] summary::after { content: "　－"; }
.book-accordion p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--book-text-soft);
}

/* ---------- PERSONAL BOOK 第6章: 取扱説明書スコアカード ---------- */
.manual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}
@media (min-width: 640px) {
  .manual-grid { grid-template-columns: 1fr 1fr; }
}
.manual-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--book-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.manual-card--warn {
  border-color: rgba(224, 86, 140, 0.4);
}
.manual-card__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--book-gold);
  margin: 0 0 8px;
}
.manual-card--warn .manual-card__title { color: #F2789F; }
.manual-card p:not(.manual-card__title) {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--book-text-soft);
}
.book-condition-list--shutdown { color: #F2B4C9; }

/* ---------- PERSONAL BOOK 第9章: 締めのメッセージ ---------- */
.book-final-message {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 179, 108, 0.3);
  font-size: 15px;
  line-height: 1.9;
  color: var(--book-text);
}

/* ---------- PERSONAL BOOK: CORE6バー（本ページ内はダーク基調） ---------- */
.book-preview .core6-grid__bar {
  background: rgba(255, 255, 255, 0.1);
}
.book-preview .core6-grid__bar-fill {
  background: var(--color-glow);
}

/* ---------- KAKU MATCH（PERSONAL BOOK 第4章）相性グラフ ---------- */
.match-result { text-align: left; }
.match-category {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.match-category:first-of-type {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}
.match-category__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.match-category__label {
  font-size: 14px;
  font-weight: 800;
  color: var(--book-text);
}
.match-category__score {
  font-size: 22px;
  font-weight: 800;
  color: var(--book-gold);
}
.match-category__score-unit {
  font-size: 12px;
  font-weight: 700;
  margin-left: 1px;
}
.match-category__bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}
.match-category__bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--color-glow);
  transition: width 0.6s ease;
}
.match-category__bar-fill--romance { background: #F2789F; }
.match-category__bar-fill--marriage { background: #8C93F5; }
.match-category__bar-fill--work { background: #4FCE93; }
.match-category__comment {
  font-size: 13px;
  color: var(--book-text-soft);
  margin: 10px 0 0;
}
.book-preview .result-block p.match-category__reason {
  font-size: 12px;
  color: var(--color-glow);
  background: rgba(94, 200, 242, 0.1);
  border: 1px solid rgba(94, 200, 242, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 10px 0 0;
}
.book-preview .result-block p.match-category__advice {
  font-size: 12px;
  color: #F2789F;
  background: rgba(224, 86, 140, 0.1);
  border: 1px solid rgba(224, 86, 140, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 8px 0 0;
}

/* ---------- PERSONAL BOOK: KAKU MATCH のフォーム部品（画面上のみ・印刷時は非表示） ---------- */
.book-preview .form-field {
  color: var(--book-text-soft);
}

/* ---------- PERSONAL BOOK: 冒頭の手紙／結びの一言 ---------- */
.opening-letter {
  background: rgba(94, 200, 242, 0.08);
  border-left: 3px solid var(--color-glow);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--book-text-soft);
}
.opening-letter p { margin: 0 0 12px; }
.opening-letter p:last-child { margin-bottom: 0; }
.opening-letter__to {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--book-gold);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.closing-note {
  text-align: center;
  padding: 28px 20px;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--book-text-soft);
}
.closing-note__sign {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--book-gold);
  font-size: 13px;
}
.book-share-row.btn--text,
.book-share-row .btn--text {
  color: rgba(236, 238, 247, 0.75);
}

/* ---------- PDF保存（印刷）用スタイル ---------- */
@media print {
  /* ダーク基調のブックデザインを、そのままPDFにも反映させる
     （背景色を印刷対象にするための指定。指定がないとブラウザによって背景が白抜きになる） */
  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body * { visibility: hidden; }
  #personal-book-preview,
  #personal-book-preview * {
    visibility: visible;
  }
  #personal-book-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }
  .no-print { display: none !important; }
  /* 画面では章タブで1つずつ表示しているが、PDF保存では全章をまとめて出力する */
  .book-tabpanel[hidden] { display: block !important; }
  .book-preview .result-block {
    box-shadow: none;
    border: 1px solid rgba(94, 200, 242, 0.35);
    page-break-inside: avoid;
  }
  .opening-letter,
  .closing-note,
  .book-cover {
    page-break-inside: avoid;
  }
  .match-category { page-break-inside: avoid; }
}

/* ---------- PERSONAL BOOK: PDFダウンロード用のキャプチャモード ----------
   「PDFとして保存する」クリック時、html2canvasで#personal-book-previewを撮影する直前に
   .pdf-export-modeを付与し、@media printと同じ考え方で「章タブを全部展開」「no-printを隠す」
   状態にしてから撮影する（撮影後にこのクラスは外し、画面表示は元の状態に戻す）。 */
.pdf-export-mode .no-print { display: none !important; }
.pdf-export-mode .book-tabpanel[hidden] { display: block !important; }

/* ---------- 履歴（過去の診断結果の一覧） ---------- */
.history-empty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.history-empty .btn { margin-top: 16px; }

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}
.history-item__image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.history-item__body { flex: 1 1 auto; min-width: 0; }
.history-item__date {
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0 0 4px;
}
.history-item__type {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.history-item__name {
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0;
}
.history-item__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  align-items: flex-end;
}
.history-item__delete { color: var(--color-text-soft); }

@media (max-width: 600px) {
  .history-item { flex-wrap: wrap; }
  .history-item__actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 12px;
  color: var(--color-text-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero__title { font-size: 32px; }
  .core6-grid { grid-template-columns: 1fr; }
}
