/* ============================================================
   PRACTICAL AI SERIES — 書籍ページ共通スタイル
   表紙のビジュアル言語（クリーム地・鉛筆スケッチ・淡い水彩）に合わせる。
   既刊 /book/ai-agent/ は自己完結のまま残し、本ファイルは
   ハブ（/book/）と新刊 LP が共有する。
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --paper:          #F5F3EE;
  --paper-mid:      #EAE6DC;
  --paper-dark:     #D6D0C2;
  --ink:            #1C1B18;
  --ink-mid:        #3A3935;
  --ink-sub:        #625F57;
  --ink-faint:      #9A9790;
  --wc-blue:        #7AAECF;
  --wc-blue-mid:    #A4C8E0;
  --wc-blue-light:  #C6DEF0;
  --wc-blue-wash:   #EAF3FA;
  --wc-warm:        #C49840;
  --wc-warm-light:  #F5E9C8;
  --surface:        #FAFAF7;
  --shadow-sketch:  3px 3px 0 #D6D0C2;
  /* 各巻でこの 1 変数だけ差し替えるとアクセントが変わる */
  --accent:         #7AAECF;
  --accent-wash:    #EAF3FA;
  --accent-light:   #C6DEF0;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background:
    radial-gradient(ellipse 70% 35% at 8% 18%, rgba(122,174,207,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 92% 55%, rgba(122,174,207,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 45% 30% at 48% 85%, rgba(196,152,64,0.07) 0%, transparent 55%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Layout ===== */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1080px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt {
  background:
    radial-gradient(ellipse 65% 70% at 90% 30%, rgba(122,174,207,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 8% 75%, rgba(122,174,207,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 50% 10%, rgba(196,152,64,0.09) 0%, transparent 55%),
    var(--paper-mid);
  position: relative;
}
.section--alt::before,
.section--alt::after {
  content: ''; position: absolute; left: 0; right: 0; height: 32px; pointer-events: none;
}
.section--alt::before {
  top: 0;
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(234,230,220,0.85) 40%, transparent 100%);
}
.section--alt::after {
  bottom: 0;
  background: linear-gradient(to top, var(--paper) 0%, rgba(234,230,220,0.70) 40%, transparent 100%);
}

/* ===== Type ===== */
.label {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ink-sub); border: 1.5px solid var(--ink-sub);
  padding: 3px 10px; border-radius: 2px; margin-bottom: 14px; opacity: 0.65;
}
.section-title { font-size: clamp(22px, 4vw, 32px); font-weight: 900; line-height: 1.3; margin-bottom: 12px; }
.section-sub { font-size: 15px; color: var(--ink-sub); max-width: 580px; line-height: 1.8; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 238, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper-dark);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--ink-sub); transition: color 0.15s;
}
.nav-logo:hover { color: var(--accent); }
/* アイコンリングは design-system.css の .icon-rainbow-wrapper が本体。
   ここでは紙色の背景に合わせた差分だけを指定する。 */
:root { --nzw-icon-ring-bg: var(--paper); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-crumb {
  display: none; font-size: 12px; font-weight: 600; color: var(--ink-sub); transition: color 0.15s;
}
.nav-crumb:hover { color: var(--accent); }
@media (min-width: 640px) { .nav-crumb { display: inline-flex; align-items: center; gap: 6px; } }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 3px 10px 5px 8px / 8px 4px 10px 3px;
  font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--paper);
  transition: all 0.2s; box-shadow: var(--shadow-sketch);
}
.nav-cta:hover {
  background: var(--ink-mid); transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--paper-dark);
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-coming, .btn-amazon {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 3px 12px 6px 10px / 10px 5px 12px 4px;
  font-size: 14px; font-weight: 700;
  transition: all 0.2s; box-shadow: var(--shadow-sketch);
}
.btn-primary { padding: 14px 28px; background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-mid); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--paper-dark); }
.btn-amazon { padding: 14px 28px; background: #FF9900; color: #1C1B18; border: 1.5px solid #E88A00; }
.btn-amazon:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--paper-dark); }
.btn-secondary {
  padding: 13px 24px; background: var(--surface); color: var(--ink-mid);
  border: 1.5px solid var(--paper-dark);
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--accent-light);
}
.btn-coming {
  padding: 13px 24px; background: var(--paper-mid); color: var(--ink-faint);
  border: 1.5px dashed var(--paper-dark); cursor: default; box-shadow: none;
}

/* ===== Hero ===== */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 72% at 94% 10%, rgba(122,174,207,0.42) 0%, rgba(122,174,207,0.18) 45%, transparent 68%),
    radial-gradient(ellipse 42% 48% at 4% 88%, rgba(122,174,207,0.28) 0%, transparent 58%),
    radial-gradient(ellipse 38% 42% at 62% 88%, rgba(196,152,64,0.16) 0%, transparent 55%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 240px; gap: 56px;
  align-items: center; position: relative; z-index: 1;
}
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { order: -1; display: flex; justify-content: center; }
}
.hero-series {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ink-sub); border: 1.5px solid var(--ink-sub);
  padding: 4px 12px; border-radius: 2px; margin-bottom: 20px; opacity: 0.65;
  transition: opacity 0.15s;
}
a.hero-series:hover { opacity: 1; }
.hero-title {
  font-size: clamp(28px, 5.5vw, 46px); font-weight: 900; line-height: 1.2;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.hero-en { font-size: 13px; color: var(--ink-faint); font-style: italic; margin-bottom: 20px; }
.hero-desc { font-size: 15px; color: var(--ink-sub); line-height: 1.85; margin-bottom: 32px; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cover { display: flex; justify-content: center; }
.book-cover-wrap { display: inline-block; }
.book-cover-img {
  width: 210px; border-radius: 3px; display: block;
  box-shadow: 0 8px 28px rgba(28,27,24,0.22);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.book-cover-wrap:hover .book-cover-img { transform: translateY(-8px) rotate(-1.5deg); }

/* ===== Stats ===== */
.stats-bar { display: flex; flex-wrap: wrap; gap: 32px; padding: 32px 0; margin-top: 48px; position: relative; }
.stats-bar::before, .stats-bar::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(122,174,207,0.50) 20%, rgba(122,174,207,0.30) 65%, transparent 100%);
}
.stats-bar::before { top: 0; }
.stats-bar::after { bottom: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; color: var(--ink-sub); font-weight: 500; }

/* ===== Quote ===== */
.quote-block {
  margin: 0; padding: 28px 32px;
  background: var(--accent-wash); border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0; position: relative;
}
.quote-block::before {
  content: '\201C'; position: absolute; top: -4px; left: 20px;
  font-size: 80px; line-height: 1; color: var(--accent-light);
  font-family: Georgia, serif; pointer-events: none;
}
.quote-text {
  font-size: clamp(16px, 2.5vw, 20px); font-weight: 700;
  line-height: 1.6; font-style: italic; position: relative;
}
.quote-source { font-size: 13px; color: var(--ink-sub); margin-top: 10px; }

/* ===== Feature cards ===== */
.axes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 580px) { .axes-grid { grid-template-columns: 1fr; } }
.axis-card {
  background: var(--surface); border: 1px solid var(--paper-dark);
  border-radius: 4px 14px 8px 12px / 12px 6px 14px 4px;
  padding: 24px; transition: box-shadow 0.2s, transform 0.2s; box-shadow: var(--shadow-sketch);
}
.axis-card:hover { box-shadow: 5px 5px 0 var(--accent-light); transform: translate(-1px,-1px); }
.axis-icon {
  width: 44px; height: 44px; border-radius: 5px 14px 8px 12px;
  background: var(--accent-wash); border: 1px solid var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent); margin-bottom: 14px;
}
.axis-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--wc-warm);
  text-transform: uppercase; margin-bottom: 4px; font-family: 'JetBrains Mono', monospace;
}
.axis-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.axis-desc { font-size: 14px; color: var(--ink-sub); line-height: 1.7; }

/* ===== TOC ===== */
.toc-list {
  margin-top: 32px; border: 1px solid var(--paper-dark);
  border-radius: 4px 14px 8px 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sketch);
}
.toc-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 15px 22px; border-bottom: 1px solid var(--paper-mid); transition: background 0.15s;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { background: var(--accent-wash); }
.toc-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 3px 8px 5px 9px;
  background: var(--paper-mid); color: var(--ink-mid);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; margin-top: 1px; border: 1px solid var(--paper-dark);
}
.toc-num--special { background: var(--wc-warm-light); color: var(--wc-warm); border-color: rgba(196,152,64,0.28); }
.toc-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.toc-desc { font-size: 12px; color: var(--ink-sub); margin-top: 2px; line-height: 1.5; }
.toc-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 2px;
  background: var(--paper-mid); color: var(--ink-sub); border: 1px solid var(--paper-dark);
  margin-left: auto; margin-top: 2px; white-space: nowrap; letter-spacing: 0.06em;
}
.toc-badge--tech { background: rgba(122,174,207,0.12); color: var(--wc-blue); border-color: var(--wc-blue-light); }
.toc-badge--appendix { background: var(--wc-warm-light); color: var(--wc-warm); border-color: rgba(196,152,64,0.25); }
.toc-badge--case { background: rgba(180,100,55,0.08); color: #B46428; border-color: rgba(180,100,55,0.22); }

/* ===== Blueprint table（出題比重など） ===== */
.bp-table {
  width: 100%; border-collapse: collapse; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--paper-dark);
  border-radius: 4px 14px 8px 12px; overflow: hidden; box-shadow: var(--shadow-sketch);
}
.bp-table th, .bp-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--paper-mid); font-size: 14px; }
.bp-table thead th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-sub); background: var(--paper-mid);
}
.bp-table tbody tr:last-child td { border-bottom: none; }
.bp-table .bp-code {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  color: var(--accent); white-space: nowrap;
}
.bp-bar-cell { width: 190px; }
.bp-bar { display: flex; align-items: center; gap: 10px; }
.bp-bar-track { flex: 1; height: 7px; background: var(--paper-mid); border-radius: 4px; overflow: hidden; }
.bp-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.bp-bar-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; min-width: 38px; text-align: right; }
.table-scroll { overflow-x: auto; }

/* ===== Desk strip ===== */
.book-desk-strip { width: 100%; height: 340px; overflow: hidden; position: relative; }
.book-desk-strip::before, .book-desk-strip::after {
  content: ''; position: absolute; left: 0; right: 0; height: 100px; pointer-events: none; z-index: 1;
}
.book-desk-strip::before { top: 0; background: linear-gradient(to bottom, var(--paper) 0%, transparent 100%); }
.book-desk-strip::after { bottom: 0; background: linear-gradient(to top, var(--paper-mid) 0%, transparent 100%); }
.book-desk-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }

/* ===== Showcase ===== */
.book-showcase { padding: 72px 0; }
.book-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.book-showcase-img {
  width: 100%; max-width: 320px; display: block; margin: 0 auto;
  border-radius: 4px 16px 10px 12px / 12px 6px 16px 4px;
  box-shadow: 8px 10px 32px rgba(28,27,24,0.18), 3px 3px 0 var(--paper-dark);
}
.book-showcase-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wc-warm); margin-bottom: 14px;
}
.book-showcase-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.35; margin-bottom: 20px; }
.book-showcase-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
/* li は flex にしない。flex にすると中の <strong> が独立したフレックスアイテムになり文が途中で折れる */
.book-showcase-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-sub); line-height: 1.6; }
.book-showcase-list li i { position: absolute; left: 0; top: 5px; color: var(--accent); }
@media (max-width: 680px) {
  .book-showcase-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-showcase-img { max-width: 240px; }
}

/* ===== Series grid（ハブ用） ===== */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .series-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.series-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--paper-dark);
  border-radius: 4px 16px 10px 14px / 14px 6px 16px 5px;
  padding: 22px; box-shadow: var(--shadow-sketch);
  transition: transform 0.2s, box-shadow 0.2s;
}
.series-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--card-accent, var(--wc-blue-light)); }
.series-cover-wrap { text-align: center; margin-bottom: 18px; }
.series-cover {
  width: 150px; border-radius: 3px; display: inline-block;
  box-shadow: 0 6px 20px rgba(28,27,24,0.20);
}
.series-vol {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wc-warm); font-family: 'JetBrains Mono', monospace; margin-bottom: 6px;
}
.series-name { font-size: 17px; font-weight: 900; line-height: 1.4; margin-bottom: 6px; }
.series-stance { font-size: 13px; font-weight: 700; color: var(--card-accent, var(--wc-blue)); margin-bottom: 10px; }
.series-desc { font-size: 13.5px; color: var(--ink-sub); line-height: 1.7; margin-bottom: 18px; }
.series-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.series-animal {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--ink-faint);
}
.series-read {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--card-accent, var(--wc-blue));
}
.series-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 2px;
  background: var(--paper-mid); color: var(--ink-sub); border: 1px solid var(--paper-dark);
}
.series-status--out { background: var(--wc-warm-light); color: var(--wc-warm); border-color: rgba(196,152,64,0.3); }
.series-status--new { background: #E3F3E8; color: #2E7D4F; border-color: #BEE0CB; }

/* ===== Cross-link（他巻・アプリへの導線） ===== */
.crosslink-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 680px) { .crosslink-grid { grid-template-columns: 1fr; } }
.crosslink {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--paper-dark);
  border-radius: 4px 14px 8px 12px; padding: 20px;
  box-shadow: var(--shadow-sketch); transition: transform 0.2s, box-shadow 0.2s;
}
.crosslink:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--accent-light); }
.crosslink-thumb { flex-shrink: 0; width: 74px; border-radius: 2px; box-shadow: 0 4px 14px rgba(28,27,24,0.18); }
.crosslink-thumb--icon { width: 60px; border-radius: 14px; box-shadow: 0 4px 14px rgba(28,27,24,0.14); }
.crosslink-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wc-warm); margin-bottom: 4px;
}
.crosslink-title { font-size: 15px; font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.crosslink-desc { font-size: 13px; color: var(--ink-sub); line-height: 1.65; }

/* ===== Author ===== */
.author-card {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--paper-dark);
  border-radius: 4px 18px 10px 14px / 14px 8px 18px 5px;
  padding: 28px; margin-top: 32px; box-shadow: var(--shadow-sketch);
}
@media (max-width: 560px) { .author-card { flex-direction: column; } }
.author-avatar {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: 5px 18px 10px 14px;
  background: var(--surface); border: 2px solid var(--paper-dark);
  overflow: hidden; box-shadow: 3px 3px 0 var(--paper-dark);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-name { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.author-role { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.author-certs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.author-cert {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-mid); background: var(--paper-mid);
  border: 1.5px solid var(--paper-dark); border-radius: 2px; padding: 3px 10px;
}
.author-bio { font-size: 14px; color: var(--ink-sub); line-height: 1.75; margin-bottom: 16px; }
.author-links { display: flex; gap: 10px; flex-wrap: wrap; }
.author-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 2px 9px 4px 7px;
  font-size: 13px; font-weight: 700;
  background: var(--paper-mid); color: var(--ink-mid);
  border: 1px solid var(--paper-dark); transition: all 0.15s; box-shadow: 2px 2px 0 var(--paper-dark);
}
.author-link:hover {
  background: var(--accent-wash); color: var(--accent); border-color: var(--accent);
  box-shadow: 2px 2px 0 var(--accent-light); transform: translate(-1px,-1px);
}

/* ===== CTA ===== */
.cta-section {
  text-align: center; padding: 72px 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 150% at 50% 120%, rgba(122,174,207,0.65) 0%, rgba(166,208,232,0.45) 38%, rgba(122,174,207,0.15) 60%, transparent 78%),
    radial-gradient(ellipse 70% 60% at 15% 15%, rgba(122,174,207,0.28) 0%, transparent 58%),
    radial-gradient(ellipse 50% 45% at 85% 10%, rgba(196,152,64,0.12) 0%, transparent 55%),
    var(--paper-mid);
}
.cta-section::before, .cta-section::after {
  content: ''; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; z-index: 1;
}
.cta-section::before { top: 0; background: linear-gradient(to bottom, var(--paper) 0%, transparent 100%); }
.cta-section::after { bottom: 0; background: linear-gradient(to top, var(--paper) 0%, transparent 100%); }
.cta-title { font-size: clamp(20px, 4vw, 30px); font-weight: 900; margin-bottom: 10px; position: relative; z-index: 2; }
.cta-sub { font-size: 15px; color: var(--ink-sub); margin-bottom: 36px; position: relative; z-index: 2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 2; }
.btn-cta-white, .btn-cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 3px 12px 6px 10px / 10px 5px 12px 4px;
  font-size: 14px; font-weight: 700; transition: all 0.2s; box-shadow: var(--shadow-sketch);
}
.btn-cta-white { padding: 14px 32px; background: var(--ink); color: var(--paper); }
.btn-cta-white:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(28,27,24,0.14); }
.btn-cta-outline { padding: 13px 28px; background: var(--surface); color: var(--ink-mid); border: 1.5px solid var(--paper-dark); }
.btn-cta-outline:hover { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }

/* ===== Disclaimer ===== */
.disclaimer {
  margin-top: 28px; padding: 16px 20px;
  background: var(--paper-mid); border: 1px dashed var(--paper-dark);
  border-radius: 3px 10px 5px 8px;
  font-size: 12px; color: var(--ink-sub); line-height: 1.75;
}
.disclaimer i { color: var(--ink-faint); margin-right: 6px; }
.note-inline { font-size: 12px; color: var(--ink-faint); text-align: center; margin-top: 16px; }

/* ===== Footer ===== */
.site-footer { padding: 48px 24px 36px; background: var(--paper-mid); position: relative; }
.footer-rainbow {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0.55;
  background: linear-gradient(90deg, transparent 0%, var(--wc-blue-light) 15%, var(--wc-blue) 50%, var(--wc-blue-light) 85%, transparent 100%);
}
.footer-inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-icons { display: flex; gap: 16px; }
.footer-icon {
  width: 44px; height: 44px; border-radius: 5px 14px 8px 12px;
  background: var(--surface); border: 1px solid var(--paper-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-sub); font-size: 18px; transition: all 0.2s; box-shadow: 2px 2px 0 var(--paper-dark);
}
.footer-icon:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--paper-dark); }
.footer-icon--x:hover  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer-icon--ig:hover { background: #e1306c; color: #fff; border-color: #e1306c; }
.footer-icon--gh:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer-text { text-align: center; font-size: 13px; color: var(--ink-sub); font-family: 'JetBrains Mono', monospace; }
.footer-tagline { margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 10px; }
.footer-link { color: var(--ink-sub); transition: color 0.15s; }
.footer-link:hover { color: var(--wc-blue); }
.footer-link--active { color: var(--wc-blue); font-weight: 700; }
.footer-sep { color: var(--paper-dark); }

/* OS 側で「視差効果を減らす」を選んでいる人には常時ループを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
