/* ============================================================
   Career Sommelier — Design System v4
   ロゴ実測のグラデーション（B案）× ニュートラル。
   装飾のための色数を増やさず、余白・影・タイポグラフィで魅せる。

   色の使い分け（ここを崩さないこと）
     グラデーション … ヘッダー下の線 / 見出しのグラデ文字 / 帯の下辺3px の3か所だけ。
                      面や文字に敷くと必ず読めなくなる。
     単色マゼンタ   … ボタン・アイコン・罫線などの「面」
     深いマゼンタ   … 白地に置く文字（白との比 5.84:1。--brand のままだと 4.20:1 で足りない）
     黒（--ink）    … プロフィールの帯。顔写真の背景になるため、色を持たせない
   ============================================================ */

:root {
  /* ---- ニュートラル ---- */
  --ink: #15131C;
  --ink-soft: #6E6B78;
  --ink-faint: #A6A2AE;
  --paper: #FFFFFF;
  --paper-tint: #FAF9FB;
  --paper-deep: #F3F1F5;
  --line: #ECE9EF;
  --line-soft: #F3F1F5;
  --surface: #FFFFFF;

  /* ---- ブランドカラー（ロゴ実測） ---- */
  --brand: #E62689;
  --brand-deep: #C0176F;
  --brand-tint: #FDEBF4;
  --brand-tint-strong: #F9D2E6;

  /* ロゴの5色。順番を入れ替えないこと（ロゴの並びそのもの） */
  --logo-1: #E62689;   /* マゼンタ */
  --logo-2: #EA5F9E;   /* ピンク */
  --logo-3: #8BC9E6;   /* スカイ */
  --logo-4: #18B4A8;   /* ティール ＝ パートナーズの単色 */
  --logo-5: #EC9701;   /* アンバー */
  --logo-gradient: linear-gradient(100deg, #E62689 0%, #EA5F9E 24%, #8BC9E6 52%, #18B4A8 76%, #EC9701 100%);

  /* 明るいマゼンタ。濃色背景に置く文字と、グラデの淡い端に使う */
  --brand-light: #F79BCB;
  --brand-soft: #F68FC0;

  /* ---- 濃色（黒背景セクション用） ---- */
  --dusk: #1B1720;

  /* ---- 機能色（最小限） ---- */
  --gold: #B4862B;
  --gold-tint: #FBF3E2;
  --forest: #1E8E5A;
  --forest-tint: #E9F7EF;
  --silver: #8A8794;
  --silver-tint: #F1EFF3;
  --danger: #D6394A;
  --danger-tint: #FCEBEC;

  /* 旧テンプレ互換（未使用箇所のフォールバック） */
  --navy: var(--brand);
  --navy-deep: var(--brand-deep);
  --navy-tint: var(--brand-tint);
  --navy-tint-strong: var(--brand-tint-strong);
  --wine: var(--gold);
  --wine-tint: var(--gold-tint);

  /* ---- 形 ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* ---- 影 ---- */
  --shadow-sm: 0 1px 3px rgba(21,19,28,0.06);
  --shadow-md: 0 16px 32px -10px rgba(21,19,28,0.14);
  --shadow-lg: 0 32px 64px -16px rgba(21,19,28,0.22);
  --shadow-brand: 0 18px 36px -10px rgba(230,38,137,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
  line-height: 1.6;
  /* 横スクロールを防ぐ。hidden はスクロールコンテナを作って
     position:sticky を壊すため clip を使う（ヘッダー追従を維持するため） */
  overflow-x: clip;
}
html { overflow-x: clip; max-width: 100%; }
/* 画像・動画がコンテナを超えないように */
img, svg, video, iframe { max-width: 100%; }

.serif { font-family: 'Manrope', 'Noto Sans JP', sans-serif; }

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

/* ============================================================
   日本語の組版

   既定のままだと、日本語は「文字が入るところまで入れて折る」ため、
   単語の途中や助詞の前で切れて読みにくくなる。特にスマホで顕著。

   word-break: auto-phrase … 文節（ぶんせつ）の切れ目で折り返す。
                             「キャリアアドバイ／ザー」のような切れ方が無くなる
   line-break: strict      … 禁則処理を厳しくする（行頭の「。」「ー」などを防ぐ）
   text-wrap: balance      … 見出しの各行の長さを揃える。最後の1行だけ1語、を防ぐ
   text-wrap: pretty       … 本文の最終行が1語だけになるのを防ぐ

   balance / pretty / auto-phrase は未対応のブラウザでは無視されるだけで、
   従来どおりの折り返しになる。壊れることはない。
   ============================================================ */

body {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;   /* 長いURLなどが枠を突き破るのを防ぐ */
}

/* 見出し：行の長さを揃える */
.cp-h1, .cp-h2, .cp-h3,
h1, h2, h3,
.cp-eyebrow {
  text-wrap: balance;
}

/* 本文・説明文：最終行の孤立語を防ぐ */
p, .cp-lead, li, dd, figcaption, label, .cp-text-muted, .cp-text-faint {
  text-wrap: pretty;
}

/* 折り返してほしくないもの（数字＋単位、電話番号、許可番号など） */
.nowrap { white-space: nowrap; }

/* メールアドレス・URLは文節で切れないので、従来どおり任意の位置で折る */
.breakall, a[href^="mailto:"], a[href^="tel:"] { word-break: break-all; }

/* ============ レイアウト ============ */

.cp-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cp-section { padding: 112px 0; }
.cp-section-tight { padding: 64px 0; }

@media (max-width: 768px) {
  .cp-container { padding: 0 20px; }
  .cp-section { padding: 64px 0; }
  .cp-section-tight { padding: 40px 0; }
}

.cp-grid { display: grid; gap: 24px; }
.cp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cp-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .cp-grid-2, .cp-grid-3, .cp-grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .cp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.cp-flex { display: flex; }
.cp-flex-between { display: flex; justify-content: space-between; align-items: center; }
.cp-flex-center { display: flex; align-items: center; gap: 12px; }
.cp-flex-col { display: flex; flex-direction: column; gap: 16px; }

/* ============ ヘッダー / ナビ ============ */

.cp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(16px);
  /* 下辺の線にロゴの5色。サイト全体で最初に目に入るブランドの署名 */
  border-bottom: 2px solid transparent;
  border-image: var(--logo-gradient) 1;
}

.cp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.cp-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

.cp-logo-mark {
  width: 30px; height: 30px; background: var(--ink); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: white;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
/* 実ロゴ画像（マーク＋ワードマーク一体型） */
.cp-logo-img { height: 30px; width: auto; display: block; }
.footer .cp-logo-img { height: 28px; filter: brightness(0) invert(1); opacity: .92; }
@media (max-width: 560px) { .cp-logo-img { height: 26px; } }

.cp-nav-link {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: var(--radius-pill); transition: all 0.15s;
}
.cp-nav-link:hover { color: var(--ink); background: var(--paper-deep); }
.cp-nav-link.active { color: var(--ink); background: var(--paper-deep); }

/* ============ ハンバーガーメニュー（モバイル） ============ */

.cp-burger {
  display: none; width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0; transition: background .2s;
  position: relative; z-index: 320;
}
.cp-burger:hover { background: var(--paper-deep); }
.cp-burger span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  position: absolute; transition: transform .35s cubic-bezier(.16,.84,.44,1), opacity .25s;
}
.cp-burger span:nth-child(1) { transform: translateY(-7px); }
.cp-burger span:nth-child(3) { transform: translateY(7px); }
.cp-burger.is-open span:nth-child(1) { transform: rotate(45deg); }
.cp-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.cp-burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* ドロワー本体 */
.cp-drawer {
  position: fixed; inset: 0; z-index: 300; display: none;
}
.cp-drawer.is-open { display: block; }
.cp-drawer-veil {
  position: absolute; inset: 0; background: rgba(21,19,28,.5);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s;
}
.cp-drawer.is-open .cp-drawer-veil { opacity: 1; }
.cp-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
  background: white; box-shadow: -12px 0 40px rgba(21,19,28,.18);
  padding: 84px 22px 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.16,.84,.44,1);
  display: flex; flex-direction: column; gap: 6px;
}
.cp-drawer.is-open .cp-drawer-panel { transform: none; }

.cp-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-size: 15.5px; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateX(14px);
}
.cp-drawer.is-open .cp-drawer-link { animation: drawerIn .4s cubic-bezier(.16,.84,.44,1) both; }
.cp-drawer.is-open .cp-drawer-link:nth-child(1){ animation-delay:.06s }
.cp-drawer.is-open .cp-drawer-link:nth-child(2){ animation-delay:.11s }
.cp-drawer.is-open .cp-drawer-link:nth-child(3){ animation-delay:.16s }
.cp-drawer.is-open .cp-drawer-link:nth-child(4){ animation-delay:.21s }
.cp-drawer.is-open .cp-drawer-link:nth-child(5){ animation-delay:.26s }
@keyframes drawerIn { to { opacity: 1; transform: none; } }
.cp-drawer-link::after { content: '›'; color: var(--ink-faint); font-size: 18px; }

.cp-drawer-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cp-drawer-actions .cp-btn { width: 100%; }
.cp-drawer-note { margin-top: 18px; font-size: 12px; color: var(--ink-faint); line-height: 1.7; text-align: center; }

@media (max-width: 860px) {
  .cp-burger { display: flex; }
  /* PC用のナビ・ヘッダー内ボタンはドロワーへ移すので隠す */
  .cp-header-inner > nav { display: none !important; }
  .cp-header-inner > .cp-header-actions { display: none !important; }
  /* ヘッダー右端のアバター単体もモバイルでは省く */
  .cp-header-inner > .cp-avatar { display: none !important; }
  .cp-header-inner { height: 58px; }
  .cp-header.is-scrolled .cp-header-inner { height: 54px; }
  .cp-logo-img { height: 26px; }

  /* ヘッダーを常に画面上端へ追従させる（スクロールしても消えない） */
  .cp-header { position: sticky; top: 0; z-index: 90; }
  .cp-header.is-scrolled { box-shadow: 0 4px 20px -8px rgba(21,19,28,.22); }
  /* デモバナーは一緒に固定しない（本来のコンテンツ領域を確保するため） */
  .cp-demo-banner { position: relative; z-index: 1; }
}

/* ============ ボタン ============ */

.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px;
  cursor: pointer; border: 1.5px solid transparent; transition: all 0.18s cubic-bezier(.2,.8,.2,1);
  text-decoration: none; white-space: nowrap; font-family: inherit;
}

.cp-btn-primary { background: var(--ink); color: white; }
.cp-btn-primary:hover { background: #000; box-shadow: var(--shadow-md); transform: translateY(-2px); }

.cp-btn-gold { background: var(--brand); color: white; box-shadow: var(--shadow-brand); }
.cp-btn-gold:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 22px 44px -10px rgba(230,38,137,0.42); }

.cp-btn-ghost { background: white; color: var(--ink); border-color: var(--line); }
.cp-btn-ghost:hover { border-color: var(--ink); }

.cp-btn-outline-invert { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.cp-btn-outline-invert:hover { border-color: white; background: rgba(255,255,255,0.08); }

.cp-btn-text { background: none; border: none; color: var(--ink); padding: 4px 0; font-weight: 700; border-bottom: 2px solid var(--ink); border-radius: 0; }
.cp-btn-text:hover { color: var(--brand-deep); border-color: var(--brand-deep); }

/* ---- 狭い画面でのボタン ----
   日本語のラベルは長い。nowrap のままだと、320px級の端末で
   文字がボタンからはみ出して切れる。折り返しを許し、
   2行になっても行の長さが揃うようにする。 */
@media (max-width: 480px) {
  .cp-btn {
    white-space: normal;
    text-wrap: balance;
    padding-left: 18px; padding-right: 18px;
    line-height: 1.5;
  }
  /* 文字だけのボタンは下線が文字幅と揃うよう、伸びないようにする */
  .cp-btn-text { align-self: flex-start; }
}

.cp-btn-lg { padding: 18px 34px; font-size: 16px; }
.cp-btn-sm { padding: 10px 18px; font-size: 13px; }
.cp-btn-block { width: 100%; }
.cp-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ カード ============ */

.cp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px;
}
.cp-card-hover { transition: all 0.25s cubic-bezier(.2,.8,.2,1); cursor: pointer; }
.cp-card-hover:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }

.cp-divider { height: 1px; background: var(--line); margin: 32px 0; border: none; }

/* ============ タイポグラフィ ============ */

.cp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-deep);
  margin-bottom: 18px;
}
.cp-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--brand); display: inline-block; border-radius: 2px; }

.cp-h1 { font-size: 50px; font-weight: 800; line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 24px 0; }
.cp-h2 { font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 16px 0; }
.cp-h3 { font-size: 19px; font-weight: 700; line-height: 1.5; margin: 0 0 10px 0; }
.cp-lead { font-size: 17px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 30px 0; }

.cp-text-muted { color: var(--ink-soft); }
.cp-text-faint { color: var(--ink-faint); }
.cp-text-gold { color: var(--gold); }
.cp-text-navy { color: var(--brand-deep); }

@media (max-width: 768px) {
  .cp-h1 { font-size: 34px; }
  .cp-h2 { font-size: 25px; }
}

/* ============ アバター ============ */

.cp-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  font-family: 'Manrope', sans-serif; flex-shrink: 0; font-size: 15px;
  position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.cp-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cp-avatar-lg { width: 76px; height: 76px; font-size: 24px; }
.cp-avatar-xl { width: 116px; height: 116px; font-size: 34px; }
.cp-avatar-ring { box-shadow: 0 0 0 3px white, 0 0 0 5px var(--brand-tint-strong); }

/* アバター配色：ブランド調の美しい2色グラデーション（写真がない/読めない時の背景） */
.cp-avatar-v1 { background: linear-gradient(140deg, #F68FC0 0%, #E62689 55%, #C0176F 100%); }
.cp-avatar-v2 { background: linear-gradient(140deg, #FFC15E 0%, #F79A3E 55%, #E5761E 100%); }
.cp-avatar-v3 { background: linear-gradient(140deg, #6FD8CE 0%, #18B4A8 55%, #0E8A80 100%); }
.cp-avatar-v4 { background: linear-gradient(140deg, #B08CE8 0%, #8A5FD6 55%, #6B3FB8 100%); }
.cp-avatar-v5 { background: linear-gradient(140deg, #B4DEF0 0%, #8BC9E6 55%, #4E9CC0 100%); }

/* ============ バッジ ============ */

.cp-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
  background: var(--paper-deep); color: var(--ink-soft);
}
.cp-badge-navy { background: var(--brand-tint); color: var(--brand-deep); }
.cp-badge-gold { background: var(--gold-tint); color: var(--gold); }
.cp-badge-wine { background: var(--gold-tint); color: var(--gold); }
.cp-badge-success { background: var(--forest-tint); color: var(--forest); }

/* ============ 星評価（金色で温かく） ============ */

.cp-stars { display: inline-flex; align-items: center; gap: 2px; color: #F5A623; }
.cp-stars svg, .cp-stars i { fill: currentColor; }

/* ============ ビジュアル部品（色付きアイコンタイル・装飾・グラデ文字） ============ */

/* 色付きアイコンタイル */
.cp-tile {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.cp-tile svg { width: 24px; height: 24px; }
.cp-tile-coral  { background: linear-gradient(140deg, #F68FC0, #E62689); color: #fff; }
.cp-tile-gold   { background: linear-gradient(140deg, #FFC15E, #F0891E); color: #fff; }
.cp-tile-teal   { background: linear-gradient(140deg, #6FD8CE, #18B4A8); color: #fff; }
.cp-tile-violet { background: linear-gradient(140deg, #B08CE8, #7A4FD0); color: #fff; }
.cp-tile-blue   { background: linear-gradient(140deg, #B4DEF0, #6BB4D8); color: #fff; }
/* 淡色版（背景に溶ける上品なタイル） */
.cp-tile-soft.cp-tile-coral  { background: var(--brand-tint); color: var(--brand-deep); box-shadow: none; }
.cp-tile-soft.cp-tile-gold   { background: var(--gold-tint); color: var(--gold); box-shadow: none; }
.cp-tile-soft.cp-tile-teal   { background: var(--forest-tint); color: var(--forest); box-shadow: none; }
.cp-tile-soft.cp-tile-violet { background: #F1EBFB; color: #7A4FD0; box-shadow: none; }
.cp-tile-soft.cp-tile-blue   { background: #EAF5FB; color: #6BB4D8; box-shadow: none; }

/* グラデーション文字 */
.cp-gradient-text {
  background: var(--logo-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 装飾：ドットグリッド */
.cp-decor-dots {
  position: absolute; z-index: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
  background-size: 15px 15px; opacity: .18;
}
/* 装飾：ソフトなカラーブロブ（親からはみ出すので親側で切り取る） */
.cp-decor-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none; opacity: .5; }
/* 装飾を含むセクションは必ずはみ出しを隠す */
.cp-section { position: relative; }
.cp-section:has(.cp-decor-blob) { overflow: hidden; }
.cp-decor-blob.coral  { background: radial-gradient(circle, var(--brand-tint-strong), transparent 68%); }
.cp-decor-blob.gold   { background: radial-gradient(circle, #FBE6C4, transparent 68%); }
.cp-decor-blob.teal   { background: radial-gradient(circle, #DCF3F0, transparent 68%); }

/* カバーバナー（プロフィール等の上部帯） */
/* 帯は黒。ここは顔写真の背景になるので、色を持たせない。
   下辺の3pxにだけロゴの5色を流し、ロゴとの関係を保つ。
   position は付けない（付けると、せり上がってくる顔写真が帯の下に隠れる）。 */
.cp-cover {
  overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* 点の模様は疑似要素ではなく背景の重ね（position を使わずに済ませるため） */
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  border-bottom: 3px solid transparent;
  border-image: var(--logo-gradient) 1;
}
/* リボンは角丸のため border-image が沿わない。線は付けずグラデーションを面で使う */
.cp-cover-ribbon {
  background-color: transparent; background-image: var(--logo-gradient);
  border-bottom-width: 0;
}

/* ============ タグ ============ */

.cp-tag {
  display: inline-flex; align-items: center; padding: 5px 12px; background: var(--paper-deep);
  border: none; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
  color: var(--ink-soft); margin-right: 6px; margin-bottom: 6px;
}

/* ============ プログレス / バー ============ */

.cp-progress { height: 6px; background: var(--line-soft); border-radius: var(--radius-pill); overflow: hidden; }
.cp-progress-bar { height: 100%; background: var(--ink); border-radius: var(--radius-pill); transition: width 0.4s ease; }
.cp-bar { height: 6px; background: var(--line-soft); border-radius: var(--radius-pill); overflow: hidden; margin: 4px 0; }
.cp-bar-fill { height: 100%; background: var(--ink); border-radius: var(--radius-pill); }
.cp-bar-fill-gold { background: var(--brand); }

/* ============ 選択カード（診断・オプション） ============ */

.cp-option {
  padding: 19px 22px; background: white; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  font-weight: 500; cursor: pointer; transition: all 0.15s; text-align: left; width: 100%;
  font-family: inherit; color: var(--ink);
}
.cp-option:hover { border-color: var(--ink); }
.cp-option.selected { border-color: var(--brand); background: var(--brand-tint); }
.cp-option.selected .cp-option-check { background: var(--brand); border-color: var(--brand); color: white; }

.cp-option-check {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: white;
  color: transparent; font-size: 12px;
}

/* ============ チェックボックスカード（一括選択） ============ */

.cp-select-card { border: 1.5px solid var(--line); border-radius: var(--radius-md); background: white; transition: all 0.15s; position: relative; }
.cp-select-card.checked { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.cp-checkbox {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: white;
  transition: all 0.15s; cursor: pointer; color: transparent; font-size: 13px;
}
.cp-select-card.checked .cp-checkbox { background: var(--brand); border-color: var(--brand); color: white; }

/* ============ タブ ============ */

.cp-tabs { display: flex; gap: 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 24px; }
.cp-tab {
  padding: 12px 4px; margin-right: 26px; font-size: 14px; font-weight: 700; color: var(--ink-faint);
  border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit; transition: all 0.15s;
}
.cp-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.cp-tab:hover:not(.active) { color: var(--ink-soft); }

/* ============ スクロール追従CTA（5問診断） ============ */

.cp-floating-cta {
  position: fixed; z-index: 60; right: 28px; bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  background: white; border-radius: var(--radius-pill);
  padding: 10px 10px 10px 22px; box-shadow: 0 18px 44px -12px rgba(21,19,28,.28);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.96);
  transition: opacity .3s cubic-bezier(.2,.8,.2,1), transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.cp-floating-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
.cp-floating-cta-text { line-height: 1.35; }
.cp-floating-cta-text b { display: block; font-size: 13.5px; font-weight: 800; }
.cp-floating-cta-text span { font-size: 11.5px; color: var(--ink-soft); }
.cp-floating-cta .cp-btn { box-shadow: var(--shadow-brand); }
/* 呼吸するような微アニメで視線を引く */
@keyframes ctaBreathe { 0%,100% { box-shadow: 0 18px 36px -12px rgba(230,38,137,.42); } 50% { box-shadow: 0 18px 44px -8px rgba(230,38,137,.62); } }
.cp-floating-cta.is-visible .cp-btn { animation: ctaBreathe 2.6s ease-in-out infinite; }

@media (max-width: 720px) {
  .cp-floating-cta {
    right: 12px; left: 12px; bottom: 12px; padding: 12px 14px;
    justify-content: space-between; gap: 12px;
  }
  .cp-floating-cta-text b { font-size: 13px; }
  .cp-floating-cta-text span { font-size: 11px; }
  .cp-floating-cta .cp-btn { padding: 12px 18px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .cp-floating-cta-text { display: none; }
  .cp-floating-cta .cp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-floating-cta { transition: opacity .2s; transform: none; }
  .cp-floating-cta.is-visible .cp-btn { animation: none; }
}

/* ============ デモバナー ============ */

.cp-demo-banner { background: var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 24px; font-size: 12.5px; color: rgba(255,255,255,0.78); text-align: center; font-weight: 500; }
.cp-demo-nav { display: inline-flex; gap: 8px; margin-left: 16px; flex-wrap: wrap; justify-content: center; }
.cp-demo-nav a { color: #F79BCB; text-decoration: underline; }

/* スマホ：デモバナーは1行に収め、リンクは横スクロールで参照する。
   説明文は隠して高さを最小化（本来のコンテンツを優先するため） */
@media (max-width: 860px) {
  .cp-demo-banner {
    padding: 7px 12px; font-size: 11.5px; text-align: left;
    white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    font-size: 0; /* テキストノード（説明文）を隠す */
    scrollbar-width: none;
  }
  .cp-demo-banner::-webkit-scrollbar { display: none; }
  .cp-demo-nav { margin-left: 0; flex-wrap: nowrap; font-size: 11.5px; gap: 6px; }
  .cp-demo-nav a { padding: 3px 2px; }
}

/* ============ アニメーション ============ */

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cp-fade-in { animation: fadeIn 0.5s cubic-bezier(.2,.8,.2,1); }

/* ---- スクロール連動リビール（motion.js が .is-in を付与） ----
   非表示の初期状態は html.js（＝JSが動作している）時のみ適用。
   JS無効・読み込み失敗時は常に表示され、内容が消えることはない。 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.js .reveal-left.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }
/* スタッガー：親に .stagger、子が順に遅延 */
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1){ transition-delay:.04s } .stagger.is-in > *:nth-child(2){ transition-delay:.10s }
.stagger.is-in > *:nth-child(3){ transition-delay:.16s } .stagger.is-in > *:nth-child(4){ transition-delay:.22s }
.stagger.is-in > *:nth-child(5){ transition-delay:.28s } .stagger.is-in > *:nth-child(6){ transition-delay:.34s }
.stagger.is-in > *:nth-child(7){ transition-delay:.40s } .stagger.is-in > *:nth-child(8){ transition-delay:.46s }

/* ---- 常時アンビエントモーション ---- */
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-14px) rotate(var(--rot,0deg)); } }
@keyframes floatYb { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(12px) rotate(var(--rot,0deg)); } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(24px,-18px) scale(1.06); } 66% { transform: translate(-16px,14px) scale(.97); } }
.anim-float { animation: floatY 6s ease-in-out infinite; }
.anim-float-slow { animation: floatYb 7.5s ease-in-out infinite; }
.anim-drift { animation: drift 16s ease-in-out infinite; }

/* ---- 無限マーキー ---- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 帯は画面いっぱい（.cp-container の外）に置いている。
   両端は画面の端そのものなので、切れていても「続きが画面の外にある」と読める。
   以前は端を透過させていたが、左端のカードが1枚まるごと薄くなって
   誰が載っているのか読めなくなっていたため、透過はやめた。 */
.marquee-viewport { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 44s linear infinite; }
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }

/* ---- ボタン内シャイン ---- */
@keyframes shine { 0% { left: -60%; } 60%,100% { left: 130%; } }
.cp-btn-gold { position: relative; overflow: hidden; }
.cp-btn-gold::after { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: shine 4.5s ease-in-out infinite; }

/* ---- パルスリング（活動中インジケータ等） ---- */
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(230,38,137,.45); } 70% { box-shadow: 0 0 0 10px rgba(230,38,137,0); } 100% { box-shadow: 0 0 0 0 rgba(230,38,137,0); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; animation: pulseRing 2s infinite; }

/* ============================================================
   ダイナミックなホバー・インタラクション
   ============================================================ */

/* ---- 汎用：持ち上がるカード（傾き＋光沢スイープ付き） ---- */
.hov-lift {
  position: relative; overflow: hidden;
  transition: transform .45s cubic-bezier(.16,.84,.44,1),
              box-shadow .45s cubic-bezier(.16,.84,.44,1),
              border-color .3s;
  will-change: transform;
}
.hov-lift:hover { transform: translateY(-10px) scale(1.03); box-shadow: var(--shadow-lg); z-index: 3; }
/* カード表面を斜めに走る光沢 */
.hov-lift::before {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .7s cubic-bezier(.16,.84,.44,1);
  pointer-events: none; z-index: 2;
}
.hov-lift:hover::before { left: 130%; }

/* ---- ボタン：押し込み・膨張 ---- */
.cp-btn { position: relative; overflow: hidden; }
.cp-btn:active { transform: translateY(1px) scale(.985); }
/* クリック位置から広がる波紋 */
.cp-btn::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  border-radius: 50%; background: rgba(255,255,255,.35);
  transform: translate(-50%,-50%); transition: width .5s ease, height .5s ease, opacity .5s ease;
  opacity: 0; pointer-events: none;
}
.cp-btn:hover::before { width: 320px; height: 320px; opacity: 1; }
.cp-btn-ghost:hover::before { background: rgba(21,19,28,.05); }

/* ---- 矢印が滑り出すリンク ---- */
.cp-btn-text { position: relative; display: inline-flex; align-items: center; gap: 6px; overflow: visible; }
.cp-btn-text::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.16,.84,.44,1);
}
.cp-btn-text:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- タグ：ホバーで浮く ---- */
.cp-tag { transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s; }
.cp-card-hover:hover .cp-tag, .hov-lift:hover .cp-tag { background: var(--paper-deep); color: var(--ink); }

/* ---- 星評価：ホバーで1つずつ弾む ---- */
@keyframes starPop { 0%,100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-4px) scale(1.25); } }
.hov-lift:hover .cp-stars svg, .cp-card-hover:hover .cp-stars svg { animation: starPop .5s ease-out both; }
.hov-lift:hover .cp-stars svg:nth-child(2), .cp-card-hover:hover .cp-stars svg:nth-child(2) { animation-delay: .05s; }
.hov-lift:hover .cp-stars svg:nth-child(3), .cp-card-hover:hover .cp-stars svg:nth-child(3) { animation-delay: .1s; }
.hov-lift:hover .cp-stars svg:nth-child(4), .cp-card-hover:hover .cp-stars svg:nth-child(4) { animation-delay: .15s; }
.hov-lift:hover .cp-stars svg:nth-child(5), .cp-card-hover:hover .cp-stars svg:nth-child(5) { animation-delay: .2s; }

/* ---- アイコンタイル：ホバーで回転＋弾み ---- */
.cp-tile { transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .35s; }
.cp-tile svg { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.feature-cell:hover .cp-tile, .hov-lift:hover .cp-tile { transform: rotate(-8deg) scale(1.12); box-shadow: var(--shadow-md); }
.feature-cell:hover .cp-tile svg, .hov-lift:hover .cp-tile svg { transform: scale(1.1); }

/* ---- 数値のカウント感を強める（強調時にスケール） ---- */
@keyframes numPop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.num-pop { animation: numPop .6s cubic-bezier(.34,1.56,.64,1) both; }

/* ---- チェックボックス：チェック時に弾む ---- */
@keyframes checkPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cp-select-card.checked .cp-checkbox { animation: checkPop .35s cubic-bezier(.34,1.56,.64,1); }
.cp-select-card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .25s; }
.cp-select-card.checked { transform: translateY(-2px); }

/* ---- 選択肢（診断）：ホバーで右にスライド ---- */
.cp-option { transition: transform .3s cubic-bezier(.16,.84,.44,1), border-color .25s, background .25s, box-shadow .3s; }
.cp-option:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.cp-option.selected { animation: optSelect .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes optSelect { 0% { transform: scale(1); } 45% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* ---- セクション見出しの下線が伸びる ---- */
.cp-eyebrow::before { transition: width .5s cubic-bezier(.16,.84,.44,1); }
.is-in .cp-eyebrow::before, .cp-eyebrow.is-in::before { width: 22px; }

/* ---- ナビリンク：下線が中央から伸びる ---- */
.cp-nav-link { position: relative; }
.cp-nav-link::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .3s cubic-bezier(.16,.84,.44,1);
}
.cp-nav-link:hover::after { transform: scaleX(1); }

/* ---- ロゴ：ホバーでわずかに弾む ---- */
.cp-logo-img { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.cp-logo:hover .cp-logo-img { transform: scale(1.05) rotate(-1deg); }

/* ---- リビールのバリエーション追加 ---- */
.js .reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.js .reveal-right.is-in { opacity: 1; transform: none; }
/* 下から迫り上がりつつ、わずかに回転して着地する */
.js .reveal-tilt { opacity: 0; transform: translateY(40px) rotate(-2deg) scale(.96); transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1); }
.js .reveal-tilt.is-in { opacity: 1; transform: none; }
/* ぼかしから解像する */
.js .reveal-blur { opacity: 0; filter: blur(10px); transform: translateY(18px); transition: opacity .8s ease, filter .8s ease, transform .8s cubic-bezier(.16,.84,.44,1); }
.js .reveal-blur.is-in { opacity: 1; filter: blur(0); transform: none; }

/* ---- スクロール進捗バー（ページ最上部） ---- */
.cp-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100;
  background: transparent; pointer-events: none;
}
.cp-scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), #F0891E, #F5A623);
  transition: width .1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .hov-lift, .hov-lift::before, .cp-btn::before, .cp-tile, .cp-option { transition: none !important; animation: none !important; }
  .hov-lift:hover { transform: none !important; }
  .js .reveal-right, .js .reveal-tilt, .js .reveal-blur { opacity: 1 !important; transform: none !important; filter: none !important; }
  .cp-stars svg { animation: none !important; }
}

/* ---- ヘッダーのスクロール収縮 ---- */
.cp-header { transition: height .25s ease, box-shadow .25s ease, background .25s ease; }
.cp-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(21,19,28,.18); }
.cp-header.is-scrolled .cp-header-inner { height: 62px; }
.cp-header-inner { transition: height .25s ease; }

/* アクセシビリティ：モーション低減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-scale, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .anim-float, .anim-float-slow, .anim-drift, .marquee-track, .cp-btn-gold::after, .pulse-dot { animation: none !important; }
}

/* ============ フォーム ============ */

.cp-field { margin-bottom: 18px; }
.cp-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cp-field .req { color: var(--brand); margin-left: 3px; font-weight: 500; }
.cp-field input, .cp-field textarea, .cp-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--ink); background: white; transition: border-color 0.15s;
}
.cp-field input:focus, .cp-field textarea:focus, .cp-field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper-deep);
}
.cp-field textarea { resize: vertical; min-height: 100px; }

.cp-icon { display: inline-flex; vertical-align: -3px; }

/* ---- 文章の飾り（assets/richtext.js が作る）----
   色は4つに絞る。自由な色指定は許さない（安っぽくなる・読めなくなるのを防ぐ） */
.rt-brand { color: var(--brand-deep); }
.rt-red { color: #C9302C; }
.rt-blue { color: #1F5FBF; }
.rt-green { color: #1E8A5A; }
.rt-big { font-size: 1.25em; font-weight: 700; line-height: 1.6; }
.rt-mark { background: linear-gradient(transparent 55%, #FFF0A3 55%); padding: 0 .1em; }
.rt-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--brand-soft); }

/* ---- 文章の道具欄と見え方（assets/richtext-editor.js）---- */
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.rt-tb { font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; line-height: 1.3; }
.rt-tb:hover { border-color: var(--ink-faint); }
.rt-tb-b { font-weight: 900; }
.rt-tb-big { font-size: 14px; }
.rt-tb-mark { background: linear-gradient(transparent 55%, #FFF0A3 55%) no-repeat; background-size: calc(100% - 16px) 100%; background-position: 8px 0; }
.rt-tb-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.rt-tb-c { width: 30px; padding: 0; display: inline-grid; place-items: center; height: 30px; }
.rt-tb-c i { width: 14px; height: 14px; border-radius: 50%; background: currentColor; display: block; }
.rt-tb-x { margin-left: auto; color: var(--ink-soft); font-weight: 600; }
.rt-pv { margin-top: 8px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper-tint); overflow: hidden; }
.rt-pv-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--ink-soft); padding: 6px 12px; border-bottom: 1px dashed var(--line); }
.rt-pv-b { padding: 12px 14px; font-size: 15.5px; line-height: 1.9; word-break: break-word; }
.rt-pv.is-empty .rt-pv-b { color: var(--ink-faint); }
.rt-pv-b strong { font-weight: 900; background: linear-gradient(transparent 62%, var(--brand-tint-strong) 62%); }
/* 色の丸は道具欄の文字色（.rt-tb）に負けないよう、組み合わせで指定する */
.rt-tb.rt-brand { color: var(--brand-deep); } .rt-tb.rt-red { color: #C9302C; } .rt-tb.rt-blue { color: #1F5FBF; } .rt-tb.rt-green { color: #1E8A5A; }
