/* ============================================================
   Cheeky Trio 公式サイト - スタイルシート
   方針: パステル基調・丸みのある形・余白たっぷり。
   文字色は真っ黒ではなく温かい茶色（参考: すみっコぐらし公式）。
   ============================================================ */

:root {
  --bg: #ffffff;            /* 白基調 */
  --bg-soft: #f6f4f1;
  --card: #ffffff;
  --ink: #4a3728;           /* 温かい茶色（本文） */
  --ink-soft: #8a7360;
  --accent: #f59e0b;        /* オレンジ（アクセント） */
  --accent-deep: #d97706;
  --pink: #f9a8d4;
  --radius: 20px;
  --shadow: 0 4px 14px rgba(120, 84, 40, 0.10);
  --shadow-hover: 0 8px 22px rgba(120, 84, 40, 0.16);
  --accent-soft: rgba(245, 158, 11, 0.16);  /* ピル等のホバー用うすオレンジ */
  /* 16タイプ グループ色 */
  --nt: #7e5ab2;  /* 分析家（紫） */
  --nf: #33a474;  /* 外交官（緑） */
  --sj: #4281c0;  /* 番人（青） */
  --sp: #c4961e;  /* 探検家（黄土） */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff8f0;  /* ヘッダーはベージュ（試作 sp_index_white.png 実測値） */
  box-shadow: 0 2px 12px rgba(120, 84, 40, 0.08);
  backdrop-filter: blur(4px);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.logo img { width: 42px; height: 42px; border-radius: 50%; }
.logo small { display: block; font-size: 0.65rem; color: var(--ink-soft); font-weight: normal; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--accent-deep);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- レイアウト ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section.block { padding: 56px 0 8px; }
.section-title {
  font-size: 1.6rem;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.section-lead { color: var(--ink-soft); margin: 0 0 24px; }
.more-link { text-align: right; margin-top: 14px; }
.more-link a { font-weight: bold; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* ---------- 集合メイン画像（スライドショー） ---------- */
.main-visual img { width: 100%; }
/* JS無効時は1枚目のみ表示し、ドットは隠す */
.mv-slide + .mv-slide { display: none; }
.mv-dots { display: none; }
/* JS有効時：2枚を重ねてクロスフェード */
.main-visual.mv-enhanced { position: relative; aspect-ratio: 2400 / 1100; }
.main-visual.mv-enhanced .mv-slide {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.main-visual.mv-enhanced .mv-slide.is-active { opacity: 1; pointer-events: auto; }
.main-visual.mv-enhanced .mv-slide img { height: 100%; object-fit: cover; }
.main-visual.mv-enhanced .mv-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
}
.mv-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(138, 115, 96, 0.35);
  box-shadow: 0 1px 4px rgba(120, 84, 40, 0.25);
  cursor: pointer;
}
.mv-dot.is-active { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .main-visual.mv-enhanced .mv-slide { transition: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  /* 試作の実測どおり：上端 #f6f4f1 → 白へのグラデーション */
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 48px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 8px;
  line-height: 1.4;
}
.hero .catch {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 640px;
}
.hero-panels {
  /* 4グループ（NT紫・NF緑・SJ青・SP黄）から1タイプずつ、4枚並べ */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 28px;
}
.hero-panels a {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-panels img {
  /* パネル画像に焼き込まれた暗い縁取りをコンテナ外へ逃がして「色面そのまま」に見せる */
  transform: scale(1.05);
  width: 100%;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid var(--accent);  /* ボタンはUI部品として輪郭線を維持（試作どおり） */
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: var(--card); color: var(--accent-deep); }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
/* お知らせのサムネイル（任意）: <li> の先頭に
   <img class="news-thumb" src="assets/img/news/ファイル名" alt="説明"> を置く。
   画像が無い項目では img を省略すれば、本文だけの表示になる（崩れない）。 */
.news-thumb {
  flex: none;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-soft);
}
.news-body { flex: 1; min-width: 0; }
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.news-date {
  flex: none;
  font-weight: bold;
  color: var(--accent-deep);
  font-size: 0.9rem;
  min-width: 92px;
}
.news-tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: bold;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
}
.news-list p { margin: 0; }

/* ---------- IPカード ---------- */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ip-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.ip-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ip-card .ip-body { padding: 16px 18px 20px; }
.ip-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ip-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- キャラクター ---------- */
.group-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.group-chip {
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
}
.chip-nt { background: var(--nt); }
.chip-nf { background: var(--nf); }
.chip-sj { background: var(--sj); }
.chip-sp { background: var(--sp); }

.group-heading {
  margin: 40px 0 4px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-heading .g-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.group-sub { color: var(--ink-soft); margin: 0 0 18px; font-size: 0.92rem; }

.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.char-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 16px;
}
.char-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.char-type {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 12px 0 2px;
  letter-spacing: 0.04em;
}
.gender-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  border-radius: 999px;
  padding: 1px 12px;
  color: #fff;
  margin-bottom: 8px;
}
.g-nt { background: var(--nt); }
.g-nf { background: var(--nf); }
.g-sj { background: var(--sj); }
.g-sp { background: var(--sp); }
.kanban {
  margin: 0 14px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 8px 10px;
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* カード内プロフィール（折りたたみ・JS不要） */
.char-profile { margin: 12px 14px 0; text-align: left; }
.char-profile summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 36px;
  line-height: 22px;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--ink);
}
.char-profile summary::-webkit-details-marker { display: none; }
.char-profile summary::marker { content: ""; }
.char-profile summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.char-profile[open ] summary::after { content: "▴"; }
.char-profile summary:hover { background: var(--accent-soft); color: var(--accent-deep); }
.profile-list { margin: 12px 4px 2px; }
.profile-item { margin-bottom: 10px; }
.profile-item:last-child { margin-bottom: 2px; }
.profile-item dt {
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  margin-bottom: 2px;
}
.profile-item dd {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink);
}

/* カード内カテゴリリンク（キャラ別導線） */
.char-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 12px 10px 0;
}
.char-link {
  display: inline-block;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 36px;
  line-height: 22px;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
  font-size: 0.8rem;
}
.char-link:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* 動物シリーズカード（characters.html 専用、絞り込み対象外） */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.series-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 18px 14px;
}
.series-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
}
.series-card h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.series-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

/* 代表シリーズのフィーチャーカード（characters.html 専用） */
.series-feature {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}
.series-feature img { width: 320px; max-width: 100%; border-radius: 16px; flex: none; }
.series-feature-body { flex: 1; min-width: 0; }
.series-feature h3 { margin: 0 0 8px; font-size: 1.3rem; }
.series-feature .series-intro { margin: 0 0 12px; color: var(--ink-soft); }
.brothers { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.brothers li { background: var(--bg-soft); border-radius: 12px; padding: 7px 12px; font-size: 0.9rem; }
.brothers .b-name { font-weight: bold; margin-right: 8px; }
.series-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.series-feature .char-links { justify-content: flex-start; margin: 12px 0 0; }
@media (max-width: 860px) {
  .series-feature { flex-direction: column; align-items: stretch; }
  .series-feature img { width: 100%; }
}

/* トップのキャラ抜粋 */
.char-grid.teaser { grid-template-columns: repeat(4, 1fr); }

/* ---------- マンガ ---------- */
.manga-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.manga-hero img { width: 180px; height: 180px; border-radius: 50%; flex: none; }
.manga-hero h2 { margin: 0 0 8px; }
.manga-hero p { margin: 0; color: var(--ink-soft); }
.episode {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.episode h3 { margin: 0 0 4px; }
.episode .ep-meta { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 14px; }
.episode .strip { max-width: 560px; margin: 0 auto; }
.episode .strip img { border-radius: 12px; }
.episode.coming { text-align: center; color: var(--ink-soft); background: var(--bg-soft); box-shadow: none; }

/* ---------- 埋め込み枠 ---------- */
.embed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.embed-frame {
  border-radius: var(--radius);
  background: var(--bg-soft);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
}
.embed-frame strong { color: var(--ink); font-size: 1.05rem; }
.embed-frame p { margin: 0; font-size: 0.88rem; }
.embed-frame iframe { width: 100%; border: 0; border-radius: 12px; }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { margin-top: 20px; }
.contact-form iframe {
  width: 100%;
  height: 1080px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
}
.contact-form-note { margin: 16px 0 10px; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .contact-form iframe { height: 1180px; }
}

/* ---------- ショップ / SNS ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shop-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.shop-card:hover { box-shadow: var(--shadow-hover); }
.shop-card h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--accent-deep); }
.shop-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.shop-card .go { display: inline-block; margin-top: 10px; font-weight: bold; color: var(--accent-deep); }

/* ショップカード内のイチオシ商品（画像＋価格＋購入ボタン） */
.shop-card .pickup-label {
  margin: 16px 0 8px;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}
.pickup-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}
.pickup-item img {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.pickup-info { min-width: 0; }
.shop-card .pickup-name { margin: 0; font-weight: bold; font-size: 0.9rem; color: var(--ink); }
.shop-card .pickup-price { margin: 2px 0 0; font-weight: bold; font-size: 0.9rem; color: var(--accent-deep); }
.btn-buy {
  display: inline-block;
  margin-top: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.btn-buy:hover { background: var(--accent-deep); }

.sns-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sns-row a {
  display: inline-block;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
}
.sns-row a:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 72px;
  background: var(--bg-soft);
  padding: 32px 0 40px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.footer-nav { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 0 0 14px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: bold; font-size: 0.92rem; }
.footer-note { color: var(--ink-soft); font-size: 0.82rem; margin: 4px 0; }
.copyright { color: var(--ink-soft); font-size: 0.85rem; margin-top: 14px; }

/* ---------- ショップバナー（フッター全ページ／TOPショップ欄） ---------- */
.shop-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}
.shop-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 16px 12px 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.shop-banner:hover { box-shadow: var(--shadow-hover); }
.shop-banner img {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}
.shop-banner .sb-body { min-width: 0; }
.shop-banner .sb-title { display: block; font-weight: bold; font-size: 1rem; color: var(--accent-deep); line-height: 1.4; }
.shop-banner .sb-text { display: block; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }
.shop-banner .sb-go { display: block; font-size: 0.82rem; font-weight: bold; color: var(--accent-deep); margin-top: 3px; }
@media (max-width: 860px) {
  .shop-banners { grid-template-columns: 1fr; }
}

/* ---------- キャラクター絞り込み ---------- */
.filter-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.filter-row { margin-bottom: 14px; }
.filter-row:last-of-type { margin-bottom: 6px; }
.filter-label {
  display: block;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  appearance: none;
  border: none;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-weight: bold;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 44px;
  cursor: pointer;
}
.filter-btn:hover { background: var(--accent-soft); }
.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
}
.filter-status { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.char-card[hidden], section.block[hidden] { display: none; }

/* ---------- 楽しみ方ガイド ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.guide-card .step {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 8px;
}
.guide-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.guide-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; }
.guide-card .go { font-weight: bold; text-decoration: none; }
.guide-card .go:hover { text-decoration: underline; }
.type-picker { margin-top: 4px; }
.type-picker summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--accent-deep);
  padding: 8px 0;
}
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.type-chips a {
  display: inline-block;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 40px;
  line-height: 26px;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
  font-size: 0.9rem;
}
.type-chips a:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- ゲーム ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.game-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.game-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.game-card .game-body { padding: 18px 20px 22px; }
.game-card h2 { margin: 0 0 6px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.badge-soon {
  font-size: 0.72rem;
  font-weight: bold;
  color: #fff;
  background: var(--ink-soft);
  border-radius: 999px;
  padding: 2px 12px;
}
.game-card.coming { background: var(--bg-soft); box-shadow: none; }
.game-card.coming .game-body { text-align: center; color: var(--ink-soft); padding: 36px 20px; }

/* ---------- ダウンロード（壁紙） ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 18px;
}
.dl-card img { width: 100%; aspect-ratio: 1179 / 2556; object-fit: cover; }
.dl-card.pc img { aspect-ratio: 16 / 9; }
.dl-subhead { font-size: 1.25rem; margin: 30px 0 14px; }
.dl-subhead:first-of-type { margin-top: 6px; }
.dl-card h3 { margin: 12px 0 2px; font-size: 1.05rem; }
.dl-card .dl-meta { color: var(--ink-soft); font-size: 0.82rem; margin: 0 0 12px; }
.dl-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 24px;
  min-height: 44px;
  line-height: 24px;
}
.dl-btn:hover { background: var(--accent-deep); }
.dl-terms {
  margin-top: 10px;
  padding: 0 16px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: left;
}
.terms-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 28px;
}
.terms-box h2 { margin: 0 0 8px; font-size: 1.05rem; }
.terms-box p, .terms-box li { font-size: 0.9rem; color: var(--ink-soft); }
.terms-box ul { margin: 6px 0; padding-left: 1.2em; }

/* ---------- アバウト ---------- */
.about-body h2 { margin: 28px 0 6px; font-size: 1.15rem; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { margin: 0 0 12px; }
.about-body ul { margin: 6px 0 12px; padding-left: 1.2em; }
.about-body li { margin-bottom: 4px; }

/* ---------- 16タイプ性格診断（quiz/） ---------- */
.quiz-banner { margin: 0 0 18px; }
.quiz-banner a {
  display: block;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: bold;
  color: var(--accent-deep);
  text-decoration: none;
  text-align: center;
}
.quiz-banner a:hover { background: rgba(245, 158, 11, 0.28); }
.quiz-wrap { max-width: 760px; }
.quiz-subcopy {
  text-align: center;
  font-weight: bold;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}
#quiz-start .section-title { justify-content: center; }
#quiz-start .section-title::before { display: none; }
.quiz-intro { margin: 14px 0 10px; }
.quiz-time { text-align: center; font-weight: bold; color: var(--ink-soft); margin: 0 0 22px; }
.quiz-start-imgs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 26px;
}
.quiz-start-imgs img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; }
.quiz-start-btn-row { text-align: center; margin: 0; }
.quiz-start-btn-row .btn { font-size: 1.05rem; padding: 14px 36px; cursor: pointer; font-family: inherit; }

.quiz-progress-label { font-weight: bold; color: var(--ink-soft); margin: 0 0 8px; font-size: 0.92rem; }
.quiz-progress {
  background: var(--bg-soft);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 26px;
}
.quiz-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.quiz-q-text { font-size: 1.3rem; line-height: 1.6; margin: 0 0 20px; }
.quiz-choices { display: flex; flex-direction: column; gap: 10px; }
.quiz-choice {
  appearance: none;
  font: inherit;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--bg-soft);
  border-radius: 16px;
  padding: 14px 18px;
  min-height: 54px;
  cursor: pointer;
  box-shadow: var(--shadow);
  line-height: 1.6;
}
.quiz-choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-choice.is-selected { border-color: var(--accent); background: var(--accent-soft); font-weight: bold; }
.quiz-nav-row { margin: 20px 0 0; }
.quiz-back {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 4px;
}
.quiz-back:hover { color: var(--accent-deep); text-decoration: underline; }

.quiz-result-label {
  text-align: center;
  font-weight: bold;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 18px;
  width: fit-content;
  margin: 0 auto 14px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.quiz-mid-note {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: bold;
  color: var(--accent-deep);
  margin: 0 0 10px;
  text-align: center;
}
.quiz-code {
  text-align: center;
  font-size: 3.4rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 6px 0 2px;
}
.quiz-code[data-group="nt"] { color: var(--nt); }
.quiz-code[data-group="nf"] { color: var(--nf); }
.quiz-code[data-group="sj"] { color: var(--sj); }
.quiz-code[data-group="sp"] { color: var(--sp); }
.quiz-prov { text-decoration: underline dotted var(--accent-deep) 3px; text-underline-offset: 6px; }
.quiz-prov sup { font-size: 1.1rem; color: var(--accent-deep); }

/* 表と素の16タイプ診断（追加分） */
.quiz-catch {
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-deep);
  margin: 16px 0 6px;
  line-height: 1.6;
}
.quiz-disclaimer-start {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
  margin: 18px 0 0;
}
.quiz-mid-heading {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 16px;
  line-height: 1.5;
}
.quiz-mid-sub { font-size: 0.9rem; color: var(--ink-soft); margin: 12px 0 0; }
.quiz-title-kind {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin: 4px 0 0;
}
.quiz-compare-headline {
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.55;
  margin: 4px 0 10px;
}
.quiz-catchname {
  text-align: center;
  width: fit-content;
  margin: 0 auto 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: bold;
  border-radius: 999px;
  padding: 4px 18px;
  font-size: 0.98rem;
}
.quiz-match-line { text-align: center; font-weight: bold; color: var(--ink-soft); margin: 0 0 6px; }
.quiz-relation-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 22px; }
.quiz-side-block { margin: 0 0 30px; }
.quiz-side-label {
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--accent-deep);
  border-left: 5px solid var(--accent);
  padding-left: 10px;
  margin: 26px 0 12px;
}
.quiz-axis-note-line { color: var(--ink-soft); font-size: 0.88rem; margin: 8px 0 0; }
.quiz-dialogue-head { text-align: left; }
.quiz-manual-intro { margin: 0 0 14px; font-weight: bold; }
.quiz-disclaimer {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 26px 0 0;
}
.quiz-disclaimer p { margin: 0 0 8px; }
.quiz-disclaimer p:last-child { margin-bottom: 0; }
.quiz-title-main { text-align: center; font-size: 1.45rem; font-weight: bold; margin: 0 0 4px; line-height: 1.5; }
.quiz-title-sub { text-align: center; color: var(--ink-soft); font-weight: bold; margin: 0 0 6px; }
.quiz-chars {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 6px;
}
.quiz-chars figure { margin: 0; text-align: center; }
.quiz-chars img {
  width: 190px;
  max-width: 40vw;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quiz-chars figcaption { margin-top: 8px; }
.quiz-chars.small img { width: 104px; max-width: 28vw; }

.quiz-axes {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 12px;
  margin-top: 18px;
}
.quiz-axis {
  display: grid;
  grid-template-columns: 58px 1fr 58px 76px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.quiz-axis-letter { font-weight: bold; font-size: 1.05rem; text-align: center; color: var(--ink-soft); line-height: 1.3; }
.quiz-axis-letter small { display: block; font-size: 0.68rem; font-weight: normal; }
.quiz-axis-letter.is-on { color: var(--accent-deep); }
.quiz-axis-track {
  position: relative;
  height: 10px;
  background: var(--bg-soft);
  border-radius: 999px;
}
.quiz-axis-track::before {
  content: "";
  position: absolute;
  left: 50%; top: -3px; bottom: -3px;
  width: 2px;
  background: rgba(120, 84, 40, 0.18);
}
.quiz-axis-marker {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(120, 84, 40, 0.3);
  transform: translate(-50%, -50%);
}
.quiz-axis-status { font-size: 0.85rem; font-weight: bold; color: var(--ink-soft); }
.quiz-axis-note { color: var(--ink-soft); font-size: 0.88rem; text-align: center; margin: 10px 0 0; }

.quiz-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-top: 18px;
}
.quiz-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiz-card h3::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.quiz-card p { margin: 0; }
.quiz-card ul { margin: 0; padding-left: 1.25em; }
.quiz-card li { margin-bottom: 4px; }
.quiz-card li:last-child { margin-bottom: 0; }
.quiz-dl { margin: 0; }
.quiz-dl > div { margin-bottom: 12px; }
.quiz-dl > div:last-child { margin-bottom: 0; }
.quiz-dl dt {
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  margin-bottom: 2px;
}
.quiz-dl dd { margin: 0; }
.quiz-pair-type { font-weight: bold; font-size: 1.1rem; }
.quiz-pair-type a { text-decoration: none; }
.quiz-pair-type a:hover { text-decoration: underline; }
.quiz-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.quiz-line {
  margin: 0;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 0.95rem;
}
.quiz-line-who {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 1px 10px;
  margin-right: 8px;
  vertical-align: 2px;
}
.quiz-more {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-top: 24px;
}
.quiz-more p { margin: 0 0 14px; font-size: 0.95rem; }
.quiz-more .btn { cursor: pointer; font-family: inherit; font-size: 1rem; }
.quiz-links { text-align: center; margin-top: 28px; }
.quiz-links > .btn { margin: 0 4px 8px; }
.quiz-links .char-links { margin-top: 10px; }
.quiz-share-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.quiz-gender-lead { text-align: center; font-weight: 700; color: var(--ink-soft); margin-top: 18px; }
.quiz-restart {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 16px;
  padding: 8px;
}
.quiz-restart:hover { color: var(--accent-deep); }
.quiz-footnote { color: var(--ink-soft); font-size: 0.82rem; margin: 26px 0 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .char-grid, .char-grid.teaser { grid-template-columns: repeat(2, 1fr); }
  .series-grid { grid-template-columns: 1fr; }
  .ip-grid, .shop-grid, .embed-grid { grid-template-columns: 1fr; }
  .guide-grid, .dl-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-panels { grid-template-columns: repeat(2, 1fr); }
  .manga-hero { flex-direction: column; text-align: center; }
  .news-list li { gap: 12px; padding: 12px 14px; }
  .news-thumb { width: 72px; height: 54px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    box-shadow: 0 10px 16px rgba(120, 84, 40, 0.10);
    padding: 8px 16px 14px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* 診断ページの小画面調整（既存ブレークポイントに合わせる） */
@media (max-width: 640px) {
  .quiz-start-imgs { grid-template-columns: repeat(2, 1fr); max-width: 340px; }
  .quiz-q-text { font-size: 1.15rem; }
  .quiz-code { font-size: 2.5rem; }
  .quiz-title-main { font-size: 1.25rem; }
  .quiz-axis { grid-template-columns: 44px 1fr 44px 62px; gap: 7px; }
  .quiz-axis-status { font-size: 0.78rem; }
  .quiz-card { padding: 16px 16px; }
  .quiz-axes { padding: 14px 12px 8px; }
}

/* ---------- ブログ ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: bold; }

.blog-container { max-width: 820px; }
.article-meta { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 4px; }
.article-hero {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 16px 0 8px;
}
.article-body h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.6em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-body h2::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.article-body h3 { font-size: 1.12rem; margin: 1.7em 0 0.5em; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.article-body li { margin-bottom: 0.35em; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.94rem;
}
.article-body th, .article-body td { padding: 8px 10px; text-align: left; }
.article-body thead th { background: var(--bg-soft); }
.article-body tbody tr:nth-child(even) { background: #fbf9f6; }
.article-body .note { color: var(--ink-soft); font-size: 0.9rem; }

/* ☆評価・図解 */
.diagram {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 26px 0;
}
.diagram figcaption { color: var(--ink-soft); font-size: 0.85rem; margin-top: 14px; }
.diagram-title { font-weight: bold; text-align: center; margin: 0 0 16px; font-size: 1.02rem; }
.diagram-chars { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.diagram-chars img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.rating-rows { display: grid; gap: 8px; }
.rating-row {
  display: grid;
  grid-template-columns: 10em 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: var(--shadow);
}
.rating-label { font-weight: bold; font-size: 0.93rem; }
.rating-bar { height: 10px; background: #eee4d3; border-radius: 999px; overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.diagram.g-nt .rating-bar span { background: var(--nt); }
.diagram.g-nf .rating-bar span { background: var(--nf); }
.diagram.g-sj .rating-bar span { background: var(--sj); }
.diagram.g-sp .rating-bar span { background: var(--sp); }
.rating-stars { color: var(--accent-deep); letter-spacing: 2px; white-space: nowrap; font-size: 0.98rem; }
.rating-stars .off { color: #ddd0ba; }

.flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.flow-step {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  font-weight: bold;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  text-align: center;
}
.flow-arrow { align-self: center; color: var(--accent-deep); font-weight: bold; }
.flow-note { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin: 12px 0 0; }
.flow-branches { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.flow-branch {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 0.92rem;
}
.flow-branch::before { content: "💭 "; }

.palette { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.palette span { width: 34px; height: 34px; border-radius: 50%; box-shadow: var(--shadow); }

/* 16タイプ マトリクス図 */
.matrix-group { margin-bottom: 18px; }
.matrix-group-label { font-weight: bold; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.matrix-group-label .g-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.matrix-cell {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 6px 12px;
  text-align: center;
}
.matrix-cell .m-type { font-weight: bold; font-size: 1.02rem; margin: 0; }
.matrix-faces { display: flex; gap: 6px; justify-content: center; margin: 6px 0; }
.matrix-faces img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.matrix-cell .m-names { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

/* 記事フッター・関連リンク */
.related-links {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 20px 10px;
  margin-top: 38px;
}
.related-links h2 { font-size: 1.05rem; margin: 0 0 8px; }
.related-links ul { margin: 0 0 10px; }
.trademark-note { color: var(--ink-soft); font-size: 0.82rem; margin-top: 30px; }

/* ブログ一覧 */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.blog-card:hover { box-shadow: var(--shadow-hover); }
.blog-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.blog-card-body { padding: 16px 18px 20px; }
.blog-card h2 { font-size: 1.12rem; margin: 0 0 6px; line-height: 1.5; }
.blog-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.blog-tag {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* キャラページのアンカー位置調整 */
.char-card[id] { scroll-margin-top: 96px; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rating-row { grid-template-columns: 1fr auto; }
  .rating-bar { grid-column: 1 / -1; order: 3; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { justify-content: center; }
}

/* タイプ記事の2人並びヒーロー */
.article-hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 8px; }
.article-hero-pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ブログタグのグループ色 */
.blog-tag.chip-nt { background: var(--nt); }
.blog-tag.chip-nf { background: var(--nf); }
.blog-tag.chip-sj { background: var(--sj); }
.blog-tag.chip-sp { background: var(--sp); }
