/* ======================================================
   くいずん デザイントークン + コンポーネント (B案)
   ====================================================== */

:root {
  /* Base blues */
  --c-blue-50:  #EFF6FF;
  --c-blue-100: #DBEAFE;
  --c-blue-200: #BFDBFE;
  --c-blue-300: #93C5FD;
  --c-blue-400: #60A5FA;
  --c-blue-500: #3B82F6;
  --c-blue-600: #2563EB;
  --c-blue-700: #1D4ED8;
  --c-blue-800: #1E40AF;
  --c-blue-900: #1E3A8A;

  /* Accents */
  --c-yellow: #FFC83D;
  --c-yellow-deep: #F59E0B;
  --c-coral: #FF6B6B;
  --c-coral-deep: #EF4444;
  --c-mint: #34D399;
  --c-purple: #8B5CF6;

  /* Neutrals
     ─ コントラスト 基準 (WCAG AA = 4.5:1 / 大文字 3:1) ─
       --c-text   #0F172A : 白 上 で 18.7:1 (AAA pass / メイン 文字 用)
       --c-text-2 #475569 : 白 上 で  7.5:1 (AAA pass / サブ 文字 用)
       --c-text-3 #64748B : 白 上 で  4.6:1 (AA  pass / 補助 ・ ラベル ・ メタ 用)
                            ※ 旧 #94A3B8 は 3.0:1 で 小文字 読みづらかった ため 暗く 修正
     ─ 注意 ─
       薄背景 (#FFFBEB / #FEF3C7 等 黄系) の 上 では --c-text-3 でも コントラスト
       不足 に なる ため、文字 は --c-text-2 か darker accent を 使う こと。 */
  --c-white: #FFFFFF;
  --c-bg: #F5F8FF;
  --c-surface: #FFFFFF;
  --c-border: #E2E8F5;
  --c-text: #0F172A;
  --c-text-2: #475569;
  --c-text-3: #64748B;

  /* Genre palette */
  --g-1:  #FF5C8A; /* アニメ/漫画/ゲーム */
  --g-2:  #A855F7; /* エンターテイメント */
  --g-3:  #F97316; /* 社会/歴史/地理 */
  --g-4:  #22C55E; /* スポーツ */
  --g-5:  #06B6D4; /* 理系学問 */
  --g-6:  #8B5CF6; /* 文系学問 */
  --g-7:  #EAB308; /* 語学 */
  --g-8:  #EC4899; /* グルメ/ファッション */
  --g-9:  #14B8A6; /* 趣味・雑学 */
  --g-10: #3B82F6; /* なぞなぞ */

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 14px rgba(30,64,175,.08);
  --shadow-lg: 0 12px 32px rgba(30,64,175,.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-feature-settings: "palt";
  -webkit-text-size-adjust: 100%;
  /* 2026-05-30 ・ モ バ イ ル 横 ス ク ロ ー ル 防 御 (= iPhone Safari レ イ ア ウ ト 崩 壊 修 復)
     ど こ か 1 要 素 が viewport 超 え て も 全 体 を 横 ス ク ロ ー ル さ せ な い 防 御 */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* iOS Safari は font-size < 16px の input にフォーカスするとページごと
   ズームしてしまうので、モバイル幅では全 input/textarea/select を
   最小 16px に揃える。インラインの font-size:14px 等を上書きする
   ため !important が必要。デスクトップでは元のサイズを維持。 */
@media (max-width: 760px) {
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ======================================================
   Header
   ====================================================== */

.qz-header {
  background: var(--c-blue-800);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  flex-wrap: nowrap;
}
@media (max-width: 760px) {
  .qz-header { padding: 12px 16px; gap: 12px; }
}

.qz-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.qz-logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--c-yellow); color: var(--c-blue-900);
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
  transform: rotate(-4deg);
  box-shadow: 0 3px 0 #C68B0E;
}
.qz-logo-text {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
  color: #fff;
}

.qz-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.qz-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  color: rgba(255,255,255,.78);
  cursor: pointer;
}
.qz-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.qz-nav a.active { background: rgba(255,255,255,.18); color: #fff; }

.qz-spacer { flex: 1; }

.qz-point-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(52,211,153,.15);
  border: 1px solid rgba(52,211,153,.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}
.qz-point-pill .star { color: var(--c-mint); }

.qz-level-pill {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  background: var(--c-yellow);
  color: var(--c-blue-900);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
  box-shadow: 0 2px 0 #C68B0E;
}

@media (max-width: 760px) {
  .qz-nav, .qz-point-pill { display: none; }
  .qz-level-pill { padding: 4px 8px; font-size: 11px; }
}

/* === ヘッダー ショートカット (くいずペット / 戦国時代) === */
.qz-shortcut {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800; text-decoration: none;
  white-space: nowrap; flex: none;
  border: 1px solid transparent;
  transition: transform .12s, filter .12s;
  line-height: 1.4;
}
.qz-shortcut:hover { transform: translateY(-1px); filter: brightness(1.08); }
.qz-shortcut:active { transform: translateY(1px); }
.qz-shortcut .ic { font-size: 11px; line-height: 1; }
.qz-shortcut .lbl { letter-spacing: .03em; }
.qz-shortcut-pet {
  background: rgba(52,211,153,.18);
  color: #6EE7B7;
  border-color: rgba(52,211,153,.55);
}
.qz-shortcut-sengoku {
  background: linear-gradient(135deg, rgba(251,224,122,.22), rgba(220,38,38,.18));
  color: #FBE07A;
  border-color: rgba(251,191,36,.7);
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
@media (max-width: 760px) {
  .qz-shortcut { padding: 3px 6px; font-size: 9px; }
  .qz-shortcut .lbl { display: none; } /* モバイル は アイコン のみ */
  .qz-shortcut .ic { font-size: 13px; }
}

.qz-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.08);
  overflow: hidden;
}
.qz-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Login / Register buttons in header (logged-out) */
.qz-header-auth {
  display: flex;
  gap: 8px;
  flex: none;
}
.qz-btn-login {
  padding: 8px 16px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.qz-btn-login:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.qz-btn-register {
  padding: 8px 16px;
  background: var(--c-yellow);
  border: none;
  border-radius: 999px;
  color: var(--c-blue-900);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.qz-btn-register:hover { background: #FFD355; transform: translateY(-1px); }
@media (max-width: 480px) {
  .qz-btn-login { padding: 6px 12px; font-size: 12px; }
  .qz-btn-register { padding: 6px 12px; font-size: 12px; }
}

/* ======================================================
   Hero (gradient blue with dot pattern)
   ====================================================== */

.qz-hero {
  background: linear-gradient(180deg, var(--c-blue-800) 0%, var(--c-blue-600) 100%);
  padding: 32px 28px 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) {
  .qz-hero { padding: 20px 16px 72px; }
}
/* 未 ロ グ イ ン 時 ・ さ ら に 下 部 余 白 を 増 や し て 文 字 と の 被 り を 完 全 防 止 */
body:not(.is-logged-in) .qz-hero { padding-bottom: 96px; }
@media (max-width: 760px) {
  body:not(.is-logged-in) .qz-hero { padding-bottom: 80px; }
}
/* 本文を 重ねない 帯 (問題集の一覧 ・ 新着クイズ ・ list.php の is-flat) ・ 下の 余白は 重ねる分を 取らない */
.qz-hero.is-flat, body:not(.is-logged-in) .qz-hero.is-flat { padding-bottom: 28px; }
@media (max-width: 760px) {
  .qz-hero.is-flat, body:not(.is-logged-in) .qz-hero.is-flat { padding-bottom: 20px; }
}
.qz-hero.is-flat ~ .qz-main { margin-top: 0; }
.qz-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.qz-hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.qz-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .qz-hero h1 { font-size: 22px; }
}
.qz-hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  opacity: .9;
}
.qz-hero-stat .num {
  font-size: 28px;
  font-weight: 900;
  color: var(--c-yellow);
  letter-spacing: -.02em;
}
@media (max-width: 760px) {
  .qz-hero-stat { font-size: 12px; }
  .qz-hero-stat .num { font-size: 22px; }
}

.qz-search {
  display: flex;
  gap: 6px;
  max-width: 520px;
  margin: 20px auto 0;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.qz-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 8px 16px;
  font-family: inherit;
  background: transparent;
  color: var(--c-text);
  min-width: 0;   /* 2026-10-18 ・ 入力欄が幅を取りすぎて スマホで「検索」が縦に 2 行になっていた */
}
.qz-search button {
  flex: none;
  white-space: nowrap;
  padding: 8px 20px;
  background: var(--c-blue-700);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ======================================================
   Breadcrumb (= UI パン く ず ・ JSON-LD 連 動)
   ====================================================== */
.qz-breadcrumb {
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 6px 28px 0;
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
@media (max-width: 760px) {
  .qz-breadcrumb { padding: 6px 16px 0; font-size: 11px; }
}
.qz-breadcrumb a {
  color: var(--c-blue-700);
  text-decoration: none;
  font-weight: 700;
}
.qz-breadcrumb a:hover { text-decoration: underline; }
.qz-breadcrumb .sep { color: var(--c-text-3); opacity: .6; margin: 0 2px; }
.qz-breadcrumb .cur { color: var(--c-text); font-weight: 700; }

/* ======================================================
   Main container
   ====================================================== */

.qz-main {
  max-width: 1200px;
  margin: -36px auto 0;
  padding: 0 28px 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .qz-main { margin-top: -28px; padding: 0 16px 24px; }
}

/* 未 ロ グ イ ン 時 ・ 負 マ ー ジ ン を 解 除 し て 文 字 が 青 背 景 に 被 る の を 防 止
   (= 一 部 の LP / SW キ ャ ッ シ ュ で .qz-random カ ー ド が 出 ず テ キ ス
   ト が 直 接 来 る ケ ー ス で 青 と 文 字 が 重 な っ た 報 告 を 受 け 対 応) */
.qz-main.is-logged-out {
  margin-top: 8px;
  padding-top: 4px;
}
@media (max-width: 760px) {
  .qz-main.is-logged-out { margin-top: 6px; padding-top: 4px; }
}
/* 未ログイン時のランダム出題カードはシャドウで存在感を 出す
   (元 仕 様 ・ 青 帯 の 上 に 浮 か せ て い た 設 計 を 残 し て お く) */
.qz-main.is-logged-out .qz-random {
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  margin-top: 4px;
}
/* 未ログイン時のランダムカード内蔵タイトル */
.qz-random-inline-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-blue-200);
}
.qz-random-inline-title .badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c-yellow);
  color: var(--c-blue-900);
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.qz-random-inline-title .title { font-size: 14px; font-weight: 800; color: var(--c-text); }
.qz-random-inline-title .sub { font-size: 11px; color: var(--c-text-3); margin-top: 1px; }

/* Section heading */
.qz-section-h {
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.qz-section-h h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .qz-section-h h2 { font-size: 16px; }
}
.qz-section-h .sub {
  font-size: 11px;
  color: var(--c-text-3);
}
/* 見出しは 縮めない ・ 説明が 入らない ときは 次の 行へ (2026-11-01 ・ スマホで「クイズのポイントで / 遊ぶ」と 語の 途中で 折れていた) */
.qz-section-h { flex-wrap: wrap; row-gap: 2px; }
.qz-section-h h2 { flex: 0 0 auto; max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }
.qz-section-h .sub { flex: 1 1 auto; min-width: 0; }
.qz-section-h-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  margin-top: 8px;
}
.qz-section-h-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}
@media (max-width: 760px) {
  .qz-section-h-row h2 { font-size: 16px; }
}
.qz-link-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-blue-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ======================================================
   Status bar (logged-in)
   ====================================================== */

.qz-status {
  background: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: auto minmax(180px,1fr) auto auto auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.qz-status-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--c-yellow), inset 0 -3px 0 rgba(0,0,0,.08);
  flex: none;
  overflow: hidden;
}
.qz-status-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qz-status-name { min-width: 0; }
.qz-status-name .lv {
  font-size: 11px; color: var(--c-text-3);
}
.qz-status-name .bar {
  height: 8px;
  background: var(--c-blue-50);
  border-radius: 999px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}
.qz-status-name .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-blue-400), var(--c-blue-600));
  border-radius: 999px;
}
.qz-stat {
  text-align: center;
  padding: 0 6px;
  min-width: 56px;
}
.qz-stat .v {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.qz-stat .l {
  font-size: 10px;
  color: var(--c-text-3);
  margin-top: 2px;
}

@media (max-width: 760px) {
  .qz-status {
    grid-template-columns: auto 1fr;
    padding: 14px;
  }
  /* P値 と 体力ゲージを Row 2 に横並びで全幅配置（P 左 / HP 右） */
  .qz-status-mob-right {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--c-border);
  }
  .qz-status-mob-right .p {
    display: flex; align-items: baseline; gap: 4px;
    flex: none;
  }
  .qz-status-mob-right .p .l { font-size: 10px; color: var(--c-text-3); font-weight: 700; }
  .qz-status-mob-right .p .v {
    font-size: 18px; font-weight: 900;
    color: var(--c-blue-700); letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }
  .qz-status-mob-right .qz-physical.compact {
    flex: 1; min-width: 0; justify-content: flex-end;
  }
  .qz-status .qz-stat,
  .qz-status .qz-physical:not(.compact) { display: none; }
}
@media (min-width: 761px) {
  .qz-status-mob-right { display: none; }
}

/* Physical gauge (体力) */
.qz-physical {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #FEF3C7, #FFE9B0);
  border-radius: 999px;
  border: 1px solid #FCD34D;
  white-space: nowrap;
  flex: none;
}
.qz-physical .heart { font-size: 14px; line-height: 1; }
.qz-physical .segs { display: flex; gap: 2px; }
.qz-physical .seg {
  width: 5px; height: 12px;
  border-radius: 1.5px;
  background: rgba(245,158,11,.18);
}
.qz-physical .seg.on { background: #F59E0B; }
.qz-physical .num {
  font-size: 11px; font-weight: 800;
  color: #92400E;
  font-variant-numeric: tabular-nums;
}
.qz-physical.compact { padding: 4px 8px; }
.qz-physical.compact .seg { width: 4px; height: 10px; }
.qz-physical .recover {
  font-size: 10px; font-weight: 800;
  color: #92400E;
  background: rgba(255,255,255,.7);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qz-physical .recover.full { color: #047857; background: rgba(110,231,183,.35); }
.qz-physical.compact .recover { font-size: 9px; padding: 1px 5px; }

/* Result/Workbook 解答結果のポイントメッセージ用ピル */
.qz-r-pm-ok { color: var(--c-mint); font-weight: 900; }
.qz-r-pm-warn { color: var(--c-coral-deep); font-weight: 900; }
.qz-r-pm-sep { color: var(--c-text-3); opacity: .55; margin: 0 2px; }

/* ======================================================
   Genre tile (10色)
   ====================================================== */

.qz-genre-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .qz-genre-grid { grid-template-columns: repeat(2, 1fr); }
}
.qz-genre-tile {
  border-radius: 18px;
  padding: 14px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
  min-height: 96px;
  position: relative;
  overflow: hidden;
}
.qz-genre-tile .glyph-bg {
  position: absolute; right: -8px; top: -8px;
  font-size: 64px; opacity: .18;
  font-weight: 900; line-height: 1;
}
.qz-genre-tile .glyph-fg {
  position: relative;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.25);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px;
}
.qz-genre-tile .name { position: relative; font-weight: 800; font-size: 13px; line-height: 1.3; }
.qz-genre-tile .count { position: relative; font-size: 10px; opacity: .9; margin-top: 2px; }
@media (min-width: 761px) {
  .qz-genre-tile { padding: 18px; min-height: 120px; }
  .qz-genre-tile .glyph-bg { font-size: 80px; }
  .qz-genre-tile .glyph-fg { width: 36px; height: 36px; font-size: 18px; }
  .qz-genre-tile .name { font-size: 15px; }
  .qz-genre-tile .count { font-size: 11px; }
}

.qz-genre-1  { background: var(--g-1);  box-shadow: 0 4px 0 #cc476e, var(--shadow-md); }
.qz-genre-2  { background: var(--g-2);  box-shadow: 0 4px 0 #8639d6, var(--shadow-md); }
.qz-genre-3  { background: var(--g-3);  box-shadow: 0 4px 0 #c75a12, var(--shadow-md); }
.qz-genre-4  { background: var(--g-4);  box-shadow: 0 4px 0 #1a9c4b, var(--shadow-md); }
.qz-genre-5  { background: var(--g-5);  box-shadow: 0 4px 0 #0590a8, var(--shadow-md); }
.qz-genre-6  { background: var(--g-6);  box-shadow: 0 4px 0 #6f48cc, var(--shadow-md); }
.qz-genre-7  { background: var(--g-7);  box-shadow: 0 4px 0 #b9890a, var(--shadow-md); }
.qz-genre-8  { background: var(--g-8);  box-shadow: 0 4px 0 #bb377b, var(--shadow-md); }
.qz-genre-9  { background: var(--g-9);  box-shadow: 0 4px 0 #109485, var(--shadow-md); }
.qz-genre-10 { background: var(--g-10); box-shadow: 0 4px 0 #2566cb, var(--shadow-md); }

/* Genre pill (small, used in cards) */
.qz-genre-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.qz-genre-pill-1  { background: rgba(255,92,138,.12); color: var(--g-1); }
.qz-genre-pill-2  { background: rgba(168,85,247,.12); color: var(--g-2); }
.qz-genre-pill-3  { background: rgba(249,115,22,.12); color: var(--g-3); }
.qz-genre-pill-4  { background: rgba(34,197,94,.12); color: var(--g-4); }
.qz-genre-pill-5  { background: rgba(6,182,212,.12); color: var(--g-5); }
.qz-genre-pill-6  { background: rgba(139,92,246,.12); color: var(--g-6); }
.qz-genre-pill-7  { background: rgba(234,179,8,.14); color: var(--g-7); }
.qz-genre-pill-8  { background: rgba(236,72,153,.12); color: var(--g-8); }
.qz-genre-pill-9  { background: rgba(20,184,166,.12); color: var(--g-9); }
.qz-genre-pill-10 { background: rgba(59,130,246,.12); color: var(--g-10); }

/* Genre pill solid (filled bg with white text) */
.qz-genre-pill-solid-1  { background: var(--g-1);  color: #fff; }
.qz-genre-pill-solid-2  { background: var(--g-2);  color: #fff; }
.qz-genre-pill-solid-3  { background: var(--g-3);  color: #fff; }
.qz-genre-pill-solid-4  { background: var(--g-4);  color: #fff; }
.qz-genre-pill-solid-5  { background: var(--g-5);  color: #fff; }
.qz-genre-pill-solid-6  { background: var(--g-6);  color: #fff; }
.qz-genre-pill-solid-7  { background: var(--g-7);  color: #fff; }
.qz-genre-pill-solid-8  { background: var(--g-8);  color: #fff; }
.qz-genre-pill-solid-9  { background: var(--g-9);  color: #fff; }
.qz-genre-pill-solid-10 { background: var(--g-10); color: #fff; }

/* ======================================================
   Quiz card (used in lists)
   ====================================================== */

.qz-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .qz-quiz-grid { grid-template-columns: 1fr 1fr; }
}
.qz-quiz-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.qz-quiz-card:hover { border-color: var(--c-blue-300); box-shadow: var(--shadow-md); }
.qz-quiz-card .q {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.qz-quiz-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--c-text-3);
}
.qz-quiz-card .meta-author {
  display: flex; align-items: center; gap: 6px;
}
.qz-quiz-card .meta-author img {
  width: 20px; height: 20px; border-radius: 50%;
}
.qz-quiz-card .rate {
  padding: 2px 6px;
  background: var(--c-mint);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10px;
}

/* ======================================================
   Random quiz hero block
   ====================================================== */

.qz-random {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  border: 2px dashed var(--c-blue-200);
  position: relative;
}
@media (max-width: 760px) {
  .qz-random { padding: 18px; }
}
.qz-random .head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.qz-random .author {
  font-size: 11px; color: var(--c-text-3);
}
.qz-random .pt {
  padding: 3px 10px;
  background: var(--c-yellow);
  color: var(--c-blue-900);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}
.qz-random .q {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .qz-random .q { font-size: 15px; }
}
.qz-random .choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 760px) {
  .qz-random .choices { grid-template-columns: 1fr; }
}
.qz-choice-btn {
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--c-blue-200);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text);
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.qz-choice-btn:hover { border-color: var(--c-blue-400); background: var(--c-blue-50); }
.qz-choice-btn .label {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-blue-50);
  color: var(--c-blue-700);
  display: grid; place-items: center;
  font-weight: 900;
  flex: none;
}

/* ======================================================
   Tag list
   ====================================================== */

.qz-tag-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--c-border);
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .qz-tag-card { padding: 14px; }
}
.qz-tag-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.qz-tag {
  /* 2026-10-13 ・ スマホは押しやすさのため高さ 44px 以上 (下のモバイル UX) ・ 文字を上下の真ん中に (上に寄って下に改行があるように見えた) */
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  line-height: 1.3;
  padding: 8px 14px;
  background: var(--c-blue-50);
  color: var(--c-blue-700);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .qz-tag { padding: 6px 12px; font-size: 12px; }
}
.qz-tag.hot {
  background: var(--c-blue-600);
  color: #fff;
}
.qz-tag:hover { background: var(--c-blue-100); }
.qz-tag.hot:hover { background: var(--c-blue-700); }

/* ======================================================
   Ranking list (TOP page)
   ====================================================== */

.qz-rank {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--c-border);
  margin-bottom: 32px;
}
@media (max-width: 760px) { .qz-rank { padding: 14px; } }
.qz-rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--c-border);
}
.qz-rank-row:last-child { border-bottom: 0; }
.qz-rank-no {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-blue-50);
  color: var(--c-text-2);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}
.qz-rank-no.r1 { background: var(--c-yellow); color: #fff; }
.qz-rank-no.r2 { background: #C0C0C0; color: #fff; }
.qz-rank-no.r3 { background: #CD7F32; color: #fff; }
.qz-rank-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
}
.qz-rank-icon img { width: 100%; height: 100%; object-fit: cover; }
.qz-rank-name {
  font-size: 13px; font-weight: 600;
  flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qz-rank-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-blue-700);
  font-variant-numeric: tabular-nums;
}
.qz-rank-score .unit {
  font-size: 10px;
  color: var(--c-text-3);
  margin-left: 2px;
}

/* ======================================================
   Floating CTA
   ====================================================== */

.qz-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 22px;
  background: var(--c-coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--c-coral-deep), 0 8px 20px rgba(239,68,68,.3);
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
  z-index: 100;
}
.qz-fab:hover { transform: translateY(-1px); }
.qz-fab .plus { font-size: 18px; line-height: 1; }

/* ======================================================
   Quiz detail page
   ====================================================== */

.qz-detail-hero {
  background: linear-gradient(180deg, var(--c-blue-800) 0%, var(--c-blue-600) 100%);
  padding: 20px 28px 64px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .qz-detail-hero { padding: 10px 16px 36px; } }
.qz-detail-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.qz-detail-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-end;
}
.qz-detail-main {
  max-width: 760px;
  margin: -40px auto 0;
  padding: 0 28px 48px;
  position: relative;
}
@media (max-width: 760px) { .qz-detail-main { margin-top: -24px; padding: 0 12px 24px; } }
.qz-detail-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}
@media (max-width: 760px) { .qz-detail-card { border-radius: 18px; padding: 14px; } }
.qz-detail-tags {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.qz-pill-yellow {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--c-yellow); color: var(--c-blue-900);
  font-size: 11px; font-weight: 700;
}
.qz-detail-q {
  margin-top: 0; /* h1 として使うため既定の上マージンを消す */
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: -.005em;
}
@media (max-width: 760px) { .qz-detail-q { font-size: 15px; margin-bottom: 14px; } }
.qz-detail-choices {
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 760px) { .qz-detail-choices { gap: 7px; } }
.qz-detail-choices form { margin: 0; padding: 0; }
.qz-detail-choices .qz-choice-btn { padding: 16px 18px; font-size: 15px; gap: 14px; border-radius: 14px; }
.qz-detail-choices .qz-choice-btn .label { width: 32px; height: 32px; font-size: 14px; }
@media (max-width: 760px) {
  .qz-detail-choices .qz-choice-btn { padding: 11px 12px; font-size: 13px; gap: 10px; border-radius: 11px; }
  .qz-detail-choices .qz-choice-btn .label { width: 26px; height: 26px; font-size: 12px; }
}
.qz-detail-hint {
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--c-blue-50);
  border-radius: 10px;
  font-size: 12px;
  color: var(--c-blue-700);
  display: flex; align-items: center; gap: 6px;
}
@media (max-width: 760px) { .qz-detail-hint { margin-top: 12px; padding: 7px 10px; font-size: 10px; } }

.qz-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 760px) { .qz-detail-stats { gap: 6px; margin-top: 8px; } }
.qz-detail-stat {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  text-align: center;
}
@media (max-width: 760px) { .qz-detail-stat { border-radius: 10px; padding: 8px 6px; } }
.qz-detail-stat .l {
  font-size: 10px;
  color: var(--c-text-3);
  font-weight: 700;
}
.qz-detail-stat .v {
  font-size: 22px;
  font-weight: 900;
  margin-top: 2px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .qz-detail-stat .v { font-size: 15px; }
  .qz-detail-stat .l { font-size: 9px; }
}
.qz-detail-stat.s1 .v { color: var(--c-blue-600); }
.qz-detail-stat.s2 .v { color: var(--c-mint); }
.qz-detail-stat.s3 .v { color: var(--c-yellow-deep); }

.qz-detail-author {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 10px;
}
@media (max-width: 760px) { .qz-detail-author { border-radius: 12px; padding: 10px; margin-top: 8px; } }
.qz-detail-author img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
@media (max-width: 760px) { .qz-detail-author img { width: 32px; height: 32px; } }
.qz-detail-author .name { flex: 1; min-width: 0; }
.qz-detail-author .name .l { font-size: 10px; color: var(--c-text-3); }
.qz-detail-author .name .v { font-size: 14px; font-weight: 700; }
.qz-detail-author .date { font-size: 11px; color: var(--c-text-3); text-align: right; }
.qz-detail-author .date .v { font-size: 12px; color: var(--c-text-2); font-weight: 600; }

.qz-detail-tagline {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.qz-detail-tagline .label {
  font-size: 10px;
  color: var(--c-text-3);
  font-weight: 700;
  margin-right: 4px;
}
.qz-detail-tagline a {
  padding: 4px 9px;
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-blue-700);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.qz-detail-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 760px) { .qz-detail-actions { margin-top: 12px; gap: 8px; } }
.qz-detail-actions a, .qz-detail-actions button {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
@media (max-width: 760px) {
  .qz-detail-actions a, .qz-detail-actions button { padding: 10px 12px; font-size: 12px; border-radius: 10px; }
}
.qz-detail-actions .blue { color: var(--c-blue-600); }
.qz-detail-actions .mint { color: var(--c-mint); }
.qz-detail-actions .icon { font-size: 16px; }

/* ======================================================
   Genre detail page
   ====================================================== */

.qz-genre-hero {
  padding: 32px 28px 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .qz-genre-hero { padding: 20px 16px 64px; } }
.qz-genre-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.qz-genre-hero .glyph-bg {
  position: absolute;
  right: -40px; top: -20px;
  font-size: 280px;
  opacity: .15;
  font-weight: 900;
  line-height: 1;
}
.qz-genre-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.qz-genre-hero .pre {
  font-size: 11px;
  opacity: .85;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.qz-genre-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.02em;
}
@media (max-width: 760px) { .qz-genre-hero h1 { font-size: 26px; } }
.qz-genre-hero .meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.qz-genre-hero .meta .pill {
  padding: 6px 14px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
/* アニメ / 漫画 / ゲームの タグのページへ (2026-11-08) */
.qz-gh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qz-gh-tags a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: 12px;
  background: #fff; color: var(--c-text);
  font-size: 14px; font-weight: 800; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.qz-gh-tags a span { font-size: 11px; font-weight: 700; color: var(--c-text-2); }
.qz-gh-tags a:hover { transform: translateY(-1px); }

.qz-genre-tag-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
@media (max-width: 760px) { .qz-genre-tag-card { padding: 14px; } }
.qz-genre-tag-card-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.qz-genre-tag-card-h h2 { margin: 0; font-size: 14px; font-weight: 800; }

/* Genre quiz list */
.qz-genre-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .qz-genre-quiz-grid { grid-template-columns: 1fr; gap: 10px; } }
.qz-genre-quiz-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--c-border);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 760px) { .qz-genre-quiz-card { padding: 14px; } }
.qz-genre-quiz-card:hover { border-color: var(--c-blue-300); box-shadow: var(--shadow-md); }
.qz-genre-quiz-card .head {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.qz-genre-quiz-card .head .date {
  font-size: 10px; color: var(--c-text-3); margin-left: auto;
}
.qz-genre-quiz-card .q {
  font-size: 14px; font-weight: 700; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qz-genre-quiz-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--c-text-3);
  padding-top: 8px;
  border-top: 1px dashed var(--c-border);
}
.qz-genre-quiz-card .foot .author {
  display: flex; align-items: center; gap: 6px;
}
.qz-genre-quiz-card .foot .author img { width: 20px; height: 20px; border-radius: 50%; }
.qz-genre-quiz-card .foot .num { font-variant-numeric: tabular-nums; }
.qz-genre-quiz-card .foot .rate {
  padding: 2px 8px; background: var(--c-mint); color: #fff;
  border-radius: 6px; font-weight: 800; font-size: 11px;
}

/* ======================================================
   My page
   ====================================================== */

.qz-mp-hero {
  background: linear-gradient(180deg, var(--c-blue-800) 0%, var(--c-blue-600) 100%);
  padding: 28px 28px 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .qz-mp-hero { padding: 16px 16px 56px; } }
.qz-mp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.qz-mp-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
}
@media (max-width: 760px) { .qz-mp-hero-inner { gap: 12px; } }
.qz-mp-avatar-wrap {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: none;
  padding: 0;
}
/* アイコンは どれも 透明な 背景の 絵 (称号の メダル ・ 月桂樹 ・ リボン を 含む) なので 丸く 切らず 黄色い 枠も 付けない (2026-10-25 オーナー「黄色い線で 見切れる ・ 枠は 必要？」) */
.qz-mp-avatar-wrap .avatar {
  width: 84px; height: 84px;
  filter: drop-shadow(0 4px 8px rgba(15,23,42,.28));
}
.qz-mp-avatar-wrap .avatar img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .qz-mp-avatar-wrap .avatar { width: 68px; height: 68px; } }
.qz-mp-avatar-wrap .edit {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-blue-700);
  border: 2px solid var(--c-blue-800);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900;
}
@media (max-width: 760px) { .qz-mp-avatar-wrap .edit { width: 22px; height: 22px; font-size: 11px; } }
.qz-mp-name { flex: 1; min-width: 0; }
.qz-mp-name .lvrow {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.qz-mp-name .lv {
  padding: 2px 8px;
  background: var(--c-yellow);
  color: var(--c-blue-900);
  border-radius: 6px;
  font-size: 11px; font-weight: 800;
}
.qz-mp-name h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
}
@media (max-width: 760px) { .qz-mp-name h1 { font-size: 19px; } }

.qz-mp-xp { margin-top: 8px; max-width: 360px; }
.qz-mp-xp .xp-info {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; opacity: .85; margin-bottom: 4px;
}
.qz-mp-xp .xp-num { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-yellow); }
.qz-mp-xp .xp-bar {
  height: 8px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  overflow: hidden;
}
.qz-mp-xp .xp-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-yellow-deep));
  border-radius: 999px;
}


.qz-mp-main {
  max-width: 1100px;
  margin: -56px auto 0;
  padding: 0 28px 48px;
  position: relative;
}
@media (max-width: 760px) { .qz-mp-main { margin-top: -42px; padding: 0 16px 32px; } }

.qz-mp-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 760px) { .qz-mp-stats { grid-template-columns: 1fr; gap: 10px; } }

.qz-mp-pcard {
  background: linear-gradient(135deg, #FFE9B0 0%, #FBBF24 100%);
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid #F59E0B;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 760px) { .qz-mp-pcard { padding: 14px; } }
.qz-mp-pcard .star {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.5);
  display: grid; place-items: center;
  font-size: 26px;
  color: #92400E;
  font-weight: 900;
  flex: none;
}
.qz-mp-pcard .body { flex: 1; min-width: 0; }
.qz-mp-pcard .body .l {
  font-size: 11px; font-weight: 700; color: #92400E;
}
.qz-mp-pcard .body .v {
  font-size: 28px; font-weight: 900; color: #78350F;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.qz-mp-pcard .body .v .unit { font-size: 14px; margin-left: 2px; }
.qz-mp-pcard .body .sub {
  font-size: 10px; color: #92400E;
  margin-top: 2px; font-weight: 600;
}
.qz-mp-pcard .shop {
  padding: 8px 12px;
  background: var(--c-blue-700);
  color: #fff;
  border-radius: 10px;
  font-size: 12px; font-weight: 800;
  flex: none;
  box-shadow: 0 2px 0 var(--c-blue-900);
  display: flex; align-items: center; gap: 4px;
}

.qz-mp-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--c-border);
}
@media (max-width: 760px) { .qz-mp-card { padding: 12px; } }
.qz-mp-card .l {
  font-size: 11px; color: var(--c-text-3); font-weight: 700;
  margin-bottom: 8px;
}

.qz-mp-twostat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.qz-mp-twostat .l {
  font-size: 10px; color: var(--c-text-3); font-weight: 700; margin: 0;
}
.qz-mp-twostat .v {
  font-size: 20px; font-weight: 900;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.qz-mp-twostat .mint .v { color: var(--c-mint); }
.qz-mp-twostat .yellow .v { color: var(--c-yellow-deep); }

.qz-mp-section {
  margin-bottom: 24px;
}
.qz-mp-postcard {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--c-border);
}
@media (max-width: 760px) { .qz-mp-postcard { padding: 12px; } }
.qz-mp-postcard .row1 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .qz-mp-postcard .row1 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .qz-mp-postcard .row1 > .item3 { display: none; }
  .qz-mp-postcard .row1 > .post-cta { grid-column: 1 / -1; }
}
.qz-mp-postcard .item .l {
  font-size: 10px; color: var(--c-text-3); font-weight: 700;
}
.qz-mp-postcard .item .v {
  font-size: 26px; font-weight: 900;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) { .qz-mp-postcard .item .v { font-size: 22px; } }
.qz-mp-postcard .item.q .v { color: var(--c-blue-700); }
.qz-mp-postcard .item.m .v { color: var(--c-coral); }
.qz-mp-postcard .item.a .v { color: var(--c-mint); }
.qz-mp-postcard .item .v .unit { font-size: 12px; color: var(--c-text-3); margin-left: 2px; }

.qz-mp-postcard .post-cta {
  padding: 12px 18px;
  background: var(--c-yellow);
  color: var(--c-blue-900);
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 #C68B0E;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.qz-mp-postcard .post-cta:hover { transform: translateY(-1px); }

.qz-mp-postcard .quizline {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border);
}
@media (max-width: 760px) {
  .qz-mp-postcard .quizline { grid-template-columns: auto 1fr auto; }
  .qz-mp-postcard .quizline .ans { display: none; }
  .qz-mp-postcard .quizline .arrow { display: none; }
}
.qz-mp-postcard .quizline:last-child { border-bottom: 0; }
.qz-mp-postcard .quizline .glyph {
  width: 28px; height: 28px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 900;
  color: #fff;
  flex: none;
  font-size: 14px;
}
.qz-mp-postcard .quizline .body { min-width: 0; }
.qz-mp-postcard .quizline .body .q {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.4;
}
.qz-mp-postcard .quizline .body .d {
  font-size: 10px; color: var(--c-text-3); margin-top: 2px;
}
.qz-mp-postcard .quizline .ans {
  font-size: 11px; color: var(--c-text-3);
  text-align: right; min-width: 64px;
}
.qz-mp-postcard .quizline .ans .v {
  font-size: 13px; font-weight: 800;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.qz-mp-postcard .quizline .rate {
  padding: 3px 8px; background: var(--c-mint); color: #fff;
  border-radius: 6px; font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.qz-mp-postcard .quizline .arrow { color: var(--c-text-3); font-size: 16px; }

.qz-mp-deleted-section {
  margin-bottom: 24px;
}
.qz-mp-deleted-item {
  margin: 6px 8px; padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fef2f2;
}
.qz-mp-deleted-item .label {
  font-size: 11px; font-weight: bold; margin-bottom: 4px;
}
.qz-mp-deleted-item .label.auto { color: var(--c-coral-deep); }
.qz-mp-deleted-item .label.pending { color: var(--c-blue-600); }
.qz-mp-deleted-item .q { font-size: 13px; margin-bottom: 6px; }
.qz-mp-deleted-item .restore {
  display: inline-block; padding: 5px 10px;
  background: var(--c-blue-600); color: #fff;
  border-radius: 4px; font-size: 12px; font-weight: 700;
  text-decoration: none;
}

/* ======================================================
   Footer
   ====================================================== */

.qz-footer {
  background: var(--c-blue-900);
  color: rgba(255,255,255,.78);
  padding: 24px 28px;
  margin-top: 48px;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 760px) { .qz-footer { padding: 18px 16px; } }
.qz-footer a { color: #fff; white-space: nowrap; }   /* リンクの 語の 途中で 改行しない (「プラ / イバシー」 2026-10-26) */
.qz-footer .row { margin-bottom: 8px; }
.qz-footer .copy { opacity: .7; font-size: 11px; }

/* utility */
.qz-only-pc { display: block; }
.qz-only-sp { display: none; }
@media (max-width: 760px) {
  .qz-only-pc { display: none; }
  .qz-only-sp { display: block; }
}

/* ======================================================
   モ バ イ ル UX ポ リ ッ シ ュ ・ 全 ペー ジ 共 通
   ・ タ ッ プ サ イ ズ Apple HIG 推 奨 44px 以 上 を 保 証
   ・ コ ン ト ラ ス ト 補 強 + iOS Safari セ ー フ エ リ ア 対 応
   ====================================================== */
@media (max-width: 760px) {
  /* タ ッ プ サ イ ズ 最 低 値 ・ 標 準 化 (= ボ タ ン / 主 要 リ ン ク ・ Apple HIG 44px) */
  .qz-cta, .qz-btn, a.qz-tag, .qz-l-pagination a {
    min-height: 44px;
    box-sizing: border-box;
  }
  /* 入 力 欄 ・ タ ッ プ 領 域 拡 大 (= iOS ズ ー ム 防 止 は design_head.php で font-size 16px 適 用 済 み) */
  input[type="text"], input[type="search"], input[type="email"], select, textarea {
    min-height: 44px;
  }
}

/* iOS Safari セー フ エ リ ア (= ノッ チ / ホ ー ム バ ー 領 域) */
.qz-footer { padding-bottom: max(18px, env(safe-area-inset-bottom, 18px)); }
.qz-fab    { bottom: max(20px, env(safe-area-inset-bottom, 20px)); }

/* ホ ー ム 画 面 追 加 後 (= standalone) の 余 白 調 整 */
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top, 0); }
}

/* ── ユーザーの アイコンは 丸く 切らず 枠も 付けない (2026-10-25 オーナー「黄色い線で 見切れる ・ 枠は 必要？ ・ ランキングや 他の ページも」) ──
   アイコンは どれも 透明な 背景の 絵 (本 ・ ロボット ・ 称号の メダル ・ 月桂樹 ・ リボン …) で 丸い 写真では ない
   → 絵は そのまま (object-fit: contain) ・ 絵の まわりの 丸い 切り抜き ・ 色の 輪 ・ 背景の 丸 を 外す ・ 新しく アイコンを 出すときも 丸く 切らない
   ただし ヘッダー 右上の アイコン (.qz-avatar) は プロフィールへの ボタンと 分かるよう 丸と 白い 輪の まま (オーナー) */
img:is([src*="/img/user_icon_"], [src*="/img/special_icon_"], [src*="rank_icon_"], [src*="/rank_svg.php"], [src*="/img/level_icon_"], [src*="/pet_species_icon.php"], [src*="/img/tt_icon_"], [src*="/img/cg_icon_"], [src*="/img/et_icon_"], [src*="/img/dex_icon_"]) {
  border-radius: 0 !important; border-width: 0 !important; box-shadow: none !important; background: none !important; object-fit: contain !important;
}
.qz-status-avatar, .qz-rank-icon,
.qz-rk-podium-card .icon, .qz-rk-list-row .icon,
.ba-podium .p .avatar, .ba-row .avatar,
.qz-fl-card .author-row .icon, .fl-icon,
.qz-similar-au-card .av, .art-cm-item .av, .art-author-box .ai-av, .art-fs-avatar,
.fr-row .icon {
  border-radius: 0 !important; overflow: visible !important; box-shadow: none !important; background: none !important; border-width: 0 !important;
}
.qz-status-avatar { filter: drop-shadow(0 3px 6px rgba(15,23,42,.25)); }
/* ヘッダー 右上は ボタンの 見た目の まま ・ 丸の 中に アイコン (画像は 正方形なので 切れ方は 前と 同じ) */
.qz-avatar img { border-radius: 50% !important; }
