/*
 * theme-pop.css — nijigen-works.jp 風のポップテーマ
 *
 * 要素: ピル型フローティングヘッダー / ホログラフィック(オーロラ)グラデ /
 *       ダーク×ライトのセクション交互 / 極太見出し＋グラデマーカー /
 *       ステッカー風カテゴリーバッジ / 角丸大 / 右下固定CTA / ✦スパークル
 * 名刺の実描画 (.tc-face / .mc-*) には手を入れない。
 */

:root {
  --bg: #ededed;
  --panel: #ffffff;
  --ink: #333333;
  --muted: #8a8a90;
  --line: #e2e2e6;
  --dark: #2b2b2e;
  --radius: 24px;
  --holo: linear-gradient(115deg, #a9b8ff 0%, #e9a8ff 30%, #a8e9ff 62%, #d3b4ff 100%);
  --holo-soft: linear-gradient(115deg, #dfe5ff 0%, #fadfff 30%, #dff6ff 62%, #ecdfff 100%);
  --shadow: 0 2px 6px rgba(20, 20, 30, .05), 0 14px 34px rgba(20, 20, 30, .08);
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* hidden属性をdisplay指定(.catalog-wrap等のgrid)より必ず優先させる */
[hidden] { display: none !important; }

/* ── ピル型フローティングヘッダー ───────────────────────────── */
.top-wrap { position: sticky; top: 10px; z-index: 50; padding: 10px 16px 0; }
.pill-nav {
  max-width: 1180px; margin: 0 auto; background: #fff; border-radius: 999px;
  display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 20px;
  box-shadow: 0 4px 18px rgba(20, 20, 30, .12);
}
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--holo); flex: none;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #33333322; position: relative;
}
.logo-mark::after { content: "名"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #333; }
.logo b { font-size: 14.5px; font-weight: 900; letter-spacing: .02em; display: block; line-height: 1.2; }
.logo small { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  padding: 10px 14px; font-size: 13.5px; font-weight: 700; border-radius: 999px; letter-spacing: .02em;
}
.nav-links a:hover { background: #f1f1f4; }
.cta-pill {
  border: none; border-radius: 999px; padding: 12px 22px; font-size: 13.5px; font-weight: 900;
  background: var(--holo); color: #333; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(160, 120, 255, .35); }
.cta-pill .arr {
  width: 22px; height: 22px; border-radius: 50%; background: #333; color: #fff;
  display: inline-grid; place-items: center; font-size: 12px;
}

/* ── レイアウト共通 ─────────────────────────────────────────── */
.catalog-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 120px; }
.layout { max-width: 1180px; margin: 0 auto; }
.panel, .cat-block, .cat-principles {
  border: none; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ── ヒーロー（ダーク＋グリッド線＋スパークル）──────────────── */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--dark);
  color: #fff; padding: 40px 32px 36px; margin-bottom: 18px;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 72px);
}
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .22em;
  background: linear-gradient(115deg, #cdb8ff, #ffb8f0, #b8ecff); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; text-transform: uppercase;
}
.hero-title { margin: 0; font-size: clamp(23px, 3.4vw, 37px); font-weight: 900; line-height: 1.65; letter-spacing: .04em; }
.hero-title .hl {
  background: var(--holo); color: #2b2b2e; padding: 1px 14px; border-radius: 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero-sub { font-size: 14px; color: #cfcfd6; margin: 16px 0 0; font-weight: 500; line-height: 2; }
.hero-sub b { color: #fff; }

/* ステッカー風カテゴリーバッジ */
.hero-badges { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.badge-sticker { background: none; border: none; cursor: pointer; width: 148px; position: relative; transition: transform .18s ease; }
.badge-sticker:hover { transform: translateY(-5px) rotate(-1.5deg); }
.badge-sticker svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.badge-sticker .bs-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 900; color: #2b2b2e; letter-spacing: .04em; padding-bottom: 2px;
}
.badge-sticker .bs-label > span { display: block; text-align: center; line-height: 1.25; }
.badge-sticker .bs-label small { display: block; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; color: #2b2b2e99; text-align: center; margin-top: 2px; }

/* スパークル✦ */
.sparkle { position: absolute; pointer-events: none; opacity: .9; }
.sparkle svg { display: block; }

/* ── 各セクションカード ────────────────────────────────────── */
.cat-principles { padding: 26px 28px; }
.catalog-wrap h3 { font-size: 20px; font-weight: 900; letter-spacing: .03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catalog-wrap h3::before { content: ""; width: 14px; height: 14px; border-radius: 5px; background: var(--holo); box-shadow: 0 0 0 2px #33333318; flex: none; }

/* 設計インプット（最上部カード）。.panelのsticky指定を打ち消してスクロールで流す */
.cat-input { padding: 26px 28px; margin-bottom: 18px; position: static; }
.ci-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ci-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ci-sample { font-size: 14.5px; }
.ci-apply { border-radius: 999px; padding: 12px 24px; font-size: 14.5px; }
.ci-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 14px; margin-top: 16px; }
.ci-grid label { font-size: 13.5px; font-weight: 700; color: #55555c; display: grid; gap: 5px; }

/* ウィザード */
.cat-wizard { padding: 26px 28px; scroll-margin-top: 90px; }
.fld, textarea.fld, select.fld { border-radius: 12px; border-color: var(--line); background: #fafafc; }
.wiz-result { background: var(--holo-soft); border: none; border-radius: 16px; font-weight: 600; padding: 18px 22px; }
.wiz-reco-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 18px; }
.wiz-reco-line b { font-weight: 900; }
/* おすすめテンプレートへのリンク: ホロ枠のピル型ボタン */
.wiz-reco-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 900; color: #333; text-decoration: none;
  border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--holo) border-box;
  box-shadow: 0 3px 12px rgba(120, 90, 220, .22);
  transition: transform .14s ease, box-shadow .14s ease;
}
.wiz-reco-link:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(120, 90, 220, .32); }
.wrl-arr {
  width: 23px; height: 23px; border-radius: 50%; background: #333; color: #fff;
  display: inline-grid; place-items: center; font-size: 12px; flex: none;
}
.wiz-note { margin-top: 10px; font-size: 14px; color: #6b6b74; }
.wiz-reason { margin-top: 10px; font-size: 14.5px; color: #6b6b74; font-weight: 500; }

/* 共通チップ */
.chip-line { border-radius: 999px; background: #f4f4f7; border: none; font-weight: 600; }
button.ghost { border-radius: 999px; font-weight: 700; border-color: var(--line); }
button.ghost:hover { background: var(--holo-soft); border-color: transparent; }

/* ── カテゴリーブロック ────────────────────────────────────── */
.cat-block { overflow: hidden; scroll-margin-top: 90px; }
.cat-band { padding: 18px 22px; position: relative; }
.cat-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 45%, rgba(255,255,255,.08));
}
.cat-no { background: #fff; color: var(--cat); border: none; font-weight: 900; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.cat-band h3 { font-size: 19px; font-weight: 900; }
.cat-band h3::before { display: none; }
.cat-scenes { border-radius: 999px; }
.cat-scenes span { border-radius: 999px; }

/* テンプレートカード */
.tc-card { border: none; border-radius: 18px; box-shadow: 0 1px 3px rgba(20,20,30,.06), 0 8px 22px rgba(20,20,30,.07); padding: 16px 17px; }
.tc-card.tc-reco { box-shadow: 0 0 0 3px transparent, 0 8px 22px rgba(20,20,30,.1); position: relative; }
.tc-card.tc-reco::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 3px;
  background: var(--holo);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.tc-id { border-radius: 999px; padding: 3px 11px; }
.tc-flag { background: var(--holo-soft); border: none; color: #333; font-weight: 700; }
.tc-reco-star { background: var(--holo); color: #2b2b2e; border-radius: 999px; padding: 2px 10px; font-weight: 900; }
.tc-detail summary { font-weight: 900; }
.tc-detail dd .chip-line { background: var(--cat-soft); }

/* 原則・参考文献 */
.p-table th { background: var(--dark); }
.p-table th:first-child { border-radius: 10px 0 0 0; }
.p-table th:last-child { border-radius: 0 10px 0 0; }
.ref-group { margin-top: 14px; }

/* ── STEPバッジ・ステップ見出し ─────────────────────────────── */
.step-no {
  background: #333; color: #fff; border-radius: 999px; padding: 4px 14px;
  font-size: 13px; font-weight: 900; letter-spacing: .08em; flex: none;
}
.cat-step-head { padding: 8px 6px 0; scroll-margin-top: 90px; }
.cat-step-head h3 { margin: 0; }
.cat-input, .cat-principles { scroll-margin-top: 90px; }

/* ── 各カードのPDF出力ボタン／CTAリンク ─────────────────────── */
.tc-pdf { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pdf-btn {
  border: 1.5px solid var(--cat-acc, #333); color: var(--cat, #333); background: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.pdf-btn:hover { background: var(--cat, #333); color: #fff; }
a.tc-cta-link { text-decoration: none; display: inline-flex; align-items: center; }

/* ── オプション配置ガイド（QRを増やすなら？／キャラを付けるなら？）── */
.fw { position: relative; display: inline-block; }
.addon-ov {
  position: absolute; width: 27%; aspect-ratio: 1 / 1; z-index: 5; pointer-events: none;
  border: 2.5px dashed var(--cat-acc, #999); border-radius: 10px;
  background: rgba(255, 255, 255, .5); display: grid; place-items: center;
}
.addon-ov.ao-chara { border-radius: 50%; }
/* 定位置ハイライト（rect指定）: 既存要素に合わせた矩形枠 */
.addon-ov.ao-fit { aspect-ratio: auto; border-radius: 12px; }
.addon-ov span {
  font-size: 10.5px; font-weight: 900; color: var(--cat, #333); background: #fff;
  border-radius: 999px; padding: 2px 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); white-space: nowrap;
}
.addon-btns { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.addon-btn {
  border: 1.5px dashed var(--cat-acc, #999); color: var(--cat, #333); background: #fff;
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .12s ease;
}
.addon-btn:hover { background: var(--cat-soft, #f4f4f7); }
.addon-btn.on { background: var(--cat-soft, #f4f4f7); border-style: solid; }
.addon-note {
  margin-top: 7px; font-size: 12.5px; color: #55555c; line-height: 1.7;
  background: var(--cat-soft, #f4f4f7); border-radius: 10px; padding: 7px 12px;
}

/* ── カテゴリーE（漫画名刺=制作サービス）の注記 ─────────────── */
.cat-service-note {
  margin: 14px 18px 0; padding: 11px 16px; border-radius: 12px;
  background: var(--cat-soft, #faeef4); color: #4a2a3a; font-size: 14px; line-height: 1.8;
  border: 1.5px dashed var(--cat-acc, #c95c8f);
}

/* ウィザードの漫画名刺ヒント */
.wiz-manga-hint {
  margin-top: 10px; font-size: 14px; background: #fff; border-radius: 12px; padding: 9px 14px;
  border: 1.5px dashed #c95c8f;
}
.wiz-manga-hint a { color: #8f3a63; }

button.primary { background: #333; border-color: #333; border-radius: 999px; font-weight: 900; }
button.primary:hover { background: #000; filter: none; }

/* ── フッター ──────────────────────────────────────────────── */
.site-foot {
  max-width: 1180px; margin: 0 auto 26px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--dark); color: #b9b9c2; font-size: 12px; text-align: center;
}
.site-foot b { color: #fff; font-weight: 900; }
.foot-copy { display: inline-block; margin-top: 6px; font-size: 11.5px; color: #96969e; }
.foot-link { color: #cfc3ff; font-weight: 700; }

/* ── 文字サイズ底上げ（小さすぎ対策・一括）──────────────────── */
body { font-size: 16px; }
.cat-para { font-size: 15px; line-height: 1.9; }
.muted-s { font-size: 13.5px; }
.catalog-wrap h3 { font-size: 22px; }
.hero-sub { font-size: 16px; }
.hero-kicker { font-size: 13px; }
.wiz-grid label { font-size: 14px; font-weight: 700; }
.fld, textarea.fld, select.fld { font-size: 15px; padding: 10px 12px; }
.wiz-result { font-size: 15px; }
.chip-line { font-size: 13px; }
.cat-band h3 { font-size: 21px; }
.cat-band p { font-size: 13.5px; }
.cat-scenes { font-size: 12.5px; }
.tc-id { font-size: 13px; }
.tc-name { font-size: 16.5px; }
.tc-flag { font-size: 11.5px; }
.tc-reco-star { font-size: 12.5px; }
.tc-aim { font-size: 13.5px; line-height: 1.75; }
.card-tag { font-size: 12px; }
.tc-detail summary { font-size: 14.5px; }
.tc-detail dl { font-size: 14px; }
.tc-detail dt { font-size: 13px; }
.p-table { font-size: 14px; }
.p-table th { font-size: 13.5px; }
.ref-group { font-size: 14px; }
.ref-group a { font-size: 12.5px; }
.site-foot { font-size: 13px; }
button { font-size: 15px; }

@media (max-width: 860px) {
  /* スマホではヘッダーを追従させない（スクロールで画面から流れる） */
  .top-wrap { position: static; }
  .pill-nav { flex-wrap: wrap; border-radius: 22px; padding: 10px 14px; }
  .logo { margin-right: 0; }
  .nav-links a { padding: 8px 10px; font-size: 12.5px; }
  .hero { padding: 32px 18px; }
}
