/* ==========================================================================
   フネラボ SNS全チャネル運用 設計サイト
   トークン出典：VEXT実測（60:30:10・角丸0-3px・直角ボタン・二重罫）を
   競艇＝水面の世界観に転写。ネイビー基調＋アクセント1色（茜色）。
   ========================================================================== */

:root {
  /* --- 色（60:30:10） --- */
  --c-base: #F5F6F4;          /* ベース オフホワイト 60% */
  --c-base-2: #FFFFFF;
  --c-navy: #0D1B2E;          /* 深紺 プライマリ 30% */
  --c-navy-2: #16283F;        /* サブ紺（カード・帯） */
  --c-navy-3: #23385A;        /* 淡い紺（罫線・小要素） */
  --c-accent: #B8442C;        /* 茜色 アクセント 10%（CTA・警告数値） */
  --c-accent-2: #8E9A94;      /* 灰緑（水面の澱み・補助） */
  --c-verified: #0D1B2E;      /* 実測バッジ = 紺ベタ */
  --c-unverified: #9B6B2C;    /* 未検証バッジ = 琥珀アウトライン */
  --c-text: #16232F;
  --c-text-sub: #566270;
  --c-line: #D8DBD6;
  --c-line-dark: #2B3D57;

  /* --- フォント --- */
  --f-mincho: "Shippori Mincho", "游明朝", "Yu Mincho", serif;
  --f-gothic: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --f-mono: "JetBrains Mono", "Roboto Mono", monospace;
  --f-en: "Newsreader", serif;

  --radius-s: 2px;
  --radius-m: 3px;
  --shadow-card: 0 3px 3px 0 rgba(13, 27, 46, 0.06);
  --shadow-card-hover: 0 6px 14px 0 rgba(13, 27, 46, 0.12);

  --bp-sp: 767px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--f-gothic);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.gsap-hidden { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- 進捗バー --- */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-navy-3));
  z-index: 9999;
  transition: width 80ms linear;
}

/* --- ヘッダー --- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(13, 27, 46, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line-dark);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  color: #fff;
}
.brand-mark {
  font-family: var(--f-mincho);
  font-size: 20px; letter-spacing: 0.08em; font-weight: 700;
}
.brand-sub {
  font-family: var(--f-en);
  font-size: 11px; letter-spacing: 0.18em; color: #93A3B8;
  text-transform: uppercase;
}
nav.channel-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
}
nav.channel-nav a {
  font-size: 13px; color: #C7D2E0;
  padding: 8px 12px; border: 1px solid transparent;
  border-radius: var(--radius-s);
  transition: border-color 200ms, color 200ms, background 200ms;
  white-space: nowrap;
}
nav.channel-nav a:hover, nav.channel-nav a.active {
  border-color: #3A5273;
  color: #fff;
  background: rgba(255,255,255,0.05);
}
nav.channel-nav a.active { border-color: var(--c-accent); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 16px; }
  nav.channel-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
}

/* --- レイアウト共通 --- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }
@media (max-width: 767px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 18px; }
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 40px; height: 1px; background: var(--c-navy);
}
.eyebrow .en {
  font-family: var(--f-en); font-style: italic; font-size: 14px;
  color: var(--c-navy);
}
.eyebrow .ja {
  font-size: 11px; color: var(--c-accent); letter-spacing: 0.1em;
  border: 1px solid var(--c-accent); padding: 2px 8px; border-radius: var(--radius-s);
}

h1, h2, h3, h4 { font-family: var(--f-mincho); color: var(--c-navy); font-weight: 700; margin: 0; }
h2.section-title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.5; margin-bottom: 8px; }
h3.block-title { font-size: 20px; margin-bottom: 14px; }
p { margin: 0 0 1em; color: var(--c-text); }
p.lead { font-size: 17px; color: var(--c-text-sub); max-width: 62ch; }

.sec-desc { max-width: 68ch; color: var(--c-text-sub); }

/* --- ボタン（VEXT二重罫） --- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border: 1px solid var(--c-navy);
  background: var(--c-base-2);
  color: var(--c-navy);
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms, background 200ms, color 200ms;
}
.btn::after {
  content: ""; position: absolute; inset: 4px -4px -4px 4px;
  border: 1px solid var(--c-navy); pointer-events: none;
  transition: inset 200ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.btn:hover::after { inset: 3px -3px -3px 3px; }
.btn.primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn.primary::after { border-color: var(--c-accent); opacity: 0.5; }
.btn.small { padding: 8px 16px; font-size: 12px; }

/* --- Hero --- */
.hero {
  background: var(--c-navy);
  color: #fff;
  padding: 120px 0 90px;
  overflow: hidden;
  position: relative;
}
.hero canvas#ripple { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-en); font-size: 12px; letter-spacing: 0.2em;
  color: #93A3B8; text-transform: uppercase;
  border: 1px solid #2B3D57; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 28px;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.5;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero h1 .accent { color: #E8896F; }
.hero p.lead { color: #C7D2E0; font-size: 18px; max-width: 56ch; margin-bottom: 44px; }

/* --- 実測ヒーロー数値バー --- */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #23385A;
  border: 1px solid #23385A; border-radius: var(--radius-m); overflow: hidden;
  margin-top: 8px;
}
.stat-cell { background: #112238; padding: 26px 24px; }
.stat-cell .num {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); color: #fff; line-height: 1;
  display: block; margin-bottom: 10px;
}
.stat-cell .num.warn { color: var(--c-accent); }
.stat-cell .label { font-size: 12px; color: #93A3B8; letter-spacing: 0.04em; }
@media (max-width: 767px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* --- 数値カード（本文セクション用） --- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--c-line);
  border: 1px solid var(--c-line);
}
.stat-card { background: var(--c-base-2); padding: 28px 24px; }
.stat-card .num {
  font-family: var(--f-mono); font-weight: 700;
  font-size: 38px; color: var(--c-navy); line-height: 1;
  margin-bottom: 8px; display: block;
}
.stat-card .num.accent { color: var(--c-accent); }
.stat-card .label { font-size: 13px; color: var(--c-text-sub); }

/* --- バッジ：実測 / 未検証（視覚的に明確に区別） --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 20px;
  white-space: nowrap;
}
.badge.verified {
  background: var(--c-verified); color: #fff;
}
.badge.verified::before { content: "✓"; }
.badge.unverified {
  background: repeating-linear-gradient(45deg, #FBF2E1, #FBF2E1 5px, #F5E7CC 5px, #F5E7CC 10px);
  border: 1px dashed var(--c-unverified);
  color: var(--c-unverified);
}
.badge.unverified::before { content: "△"; }

.footnote {
  font-size: 12px; color: var(--c-text-sub); margin-top: 6px;
}
.footnote.unverified-note { color: var(--c-unverified); }

/* --- カード系 --- */
.card {
  background: var(--c-base-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 250ms, transform 250ms;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* --- チャネルナビカード（index） --- */
.channel-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .channel-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .channel-cards { grid-template-columns: 1fr; } }
.channel-card {
  display: block;
  background: var(--c-navy); color: #fff;
  border-radius: var(--radius-m);
  padding: 26px 20px;
  border: 1px solid var(--c-navy);
  position: relative;
  overflow: hidden;
}
.channel-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms ease;
}
.channel-card:hover::before { transform: scaleX(1); }
.channel-card .role {
  font-size: 10px; letter-spacing: 0.12em; color: #93A3B8;
  border: 1px solid #2B3D57; display: inline-block; padding: 2px 8px; border-radius: 20px;
  margin-bottom: 14px;
}
.channel-card .name { font-family: var(--f-mincho); font-size: 20px; margin-bottom: 8px; }
.channel-card .desc { font-size: 12.5px; color: #C7D2E0; line-height: 1.7; }
.channel-card .arrow { display: block; margin-top: 14px; color: var(--c-accent); font-size: 14px; }

/* --- テーブル（横スクロール） --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--radius-m); }
table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--c-base-2); }
th, td { padding: 14px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
thead th { background: var(--c-navy); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: 0.03em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFAF8; }
td.num-cell { font-family: var(--f-mono); font-weight: 700; }

/* --- プロフィール文（完成文・コピーボタン） --- */
.profile-box {
  background: var(--c-navy-2);
  color: #EDEFEC;
  border-radius: var(--radius-m);
  padding: 26px;
  position: relative;
}
.profile-box .profile-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.profile-box .profile-head .tag {
  font-size: 11px; color: #93A3B8; letter-spacing: 0.08em;
}
.profile-box pre.profile-text {
  font-family: var(--f-gothic); font-size: 14.5px; line-height: 1.9;
  white-space: pre-wrap; margin: 0; color: #F2F3F0;
}
.copy-btn {
  font-family: var(--f-gothic);
  font-size: 12px; color: var(--c-navy); background: #fff;
  border: 1px solid #fff; border-radius: var(--radius-s);
  padding: 6px 14px; cursor: pointer;
  transition: background 200ms, color 200ms;
}
.copy-btn:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.copy-btn.copied { background: #3E7A5D; color: #fff; border-color: #3E7A5D; }

/* --- 投稿テンプレカード --- */
.post-template {
  background: var(--c-base-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.post-template .pt-head {
  background: var(--c-navy); color: #fff;
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.post-template .pt-head .pt-type { font-size: 13px; font-weight: 700; }
.post-template .pt-head .pt-time { font-family: var(--f-mono); font-size: 11.5px; color: #93A3B8; }
.post-template .pt-body { padding: 20px; }
.post-template pre.pt-text {
  font-family: var(--f-gothic); font-size: 14.5px; line-height: 1.85;
  white-space: pre-wrap; margin: 0 0 14px; color: var(--c-text);
}
.post-template .pt-tags { font-family: var(--f-mono); font-size: 12.5px; color: var(--c-accent); margin-bottom: 14px; }
.post-template .pt-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 18px; }
.post-template .pt-note { font-size: 12px; color: var(--c-text-sub); }

/* --- チェックリスト --- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--c-base-2); border: 1px solid var(--c-line); border-radius: var(--radius-s);
  padding: 14px 16px; font-size: 14.5px;
}
.checklist li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px;
  border: 1.5px solid var(--c-navy); border-radius: 3px;
}

/* --- 戦略図（役割分担） --- */
.role-map {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px;
}
@media (max-width: 900px) { .role-map { grid-template-columns: 1fr; } }
.role-col { border: 1px solid var(--c-line); border-radius: var(--radius-m); overflow: hidden; }
.role-col-head { padding: 16px 20px; font-weight: 700; color: #fff; font-family: var(--f-mincho); font-size: 16px; }
.role-col.axis .role-col-head { background: var(--c-navy); }
.role-col.repost .role-col-head { background: var(--c-navy-3); }
.role-col.long .role-col-head { background: var(--c-accent); }
.role-col-body { padding: 18px 20px; background: var(--c-base-2); font-size: 14px; }
.role-col-body .chip {
  display: inline-block; font-size: 12px; border: 1px solid var(--c-line); border-radius: 20px;
  padding: 3px 12px; margin: 0 6px 6px 0; background: var(--c-base);
}

/* --- 引用抜き出し --- */
blockquote.pull {
  border-left: 3px solid var(--c-accent);
  margin: 32px 0; padding: 4px 0 4px 24px;
  font-family: var(--f-mincho); font-size: 22px; line-height: 1.8; color: var(--c-navy);
}

/* --- 規約リスク・NGワード --- */
.risk-box {
  background: #FBF2E1; border: 1px solid #E7CE9E; border-radius: var(--radius-m);
  padding: 22px 24px;
}
.risk-box h4 { color: #7A4E17; font-size: 16px; margin-bottom: 10px; }
.risk-box p { color: #6B4B1E; font-size: 14px; }
.ng-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ng-word {
  font-size: 12.5px; background: #fff; border: 1px solid #E7CE9E; color: #A5432A;
  padding: 4px 12px; border-radius: 20px; text-decoration: line-through;
}

/* --- フッター --- */
.site-footer {
  background: var(--c-navy); color: #93A3B8;
  padding: 48px 0 32px; font-size: 12.5px;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

/* --- スティッキーCTA（モバイル） --- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: var(--c-navy); color: #fff;
  padding: 12px 18px; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%); transition: transform 300ms ease;
  border-top: 1px solid var(--c-accent);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta a { font-size: 13px; font-weight: 700; }
@media (max-width: 767px) { .mobile-cta { display: flex; } }

/* --- 波線ディバイダー --- */
.wave-divider { display: block; width: 100%; height: 26px; }
.wave-divider path { fill: var(--c-navy); }

/* --- セクション背景の切り替え --- */
.bg-alt { background: #EFF1EC; }
.bg-navy { background: var(--c-navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #C7D2E0; }
.bg-navy .eyebrow::before { background: #3A5273; }
.bg-navy .eyebrow .en { color: #93A3B8; }

/* AOS抑制：この案件は内部レポート性格が強いため控えめに */
[data-aos] { transition-property: opacity, transform; }
