/* ══════════════════════════════════════════════════════════
   入口（#entry）＿ 案A2 を本番の入口に昇格させたCSS
   移植元: public/lp/a2/style.css（候補ページはそのまま残してある）

   shindan.css の“後”に読み込む。診断本体を壊さないため、移植にあたって
   次の3点だけ形を変えている。中身（見た目）は A2 のまま:

   (1) :root のカスタムプロパティは全部 --a2-* に改名した。
       shindan.css と名前が10個ぶつかっており（--paper-2 / --ink-soft /
       --gothic / --maru / --gutter は値まで違う）、:root に置くと
       設問・結果・フッターの地色と余白まで変わってしまう。
   (2) 全域ルール（* / html / body / img / text-wrap）は書かない。
       * と img は shindan.css が同じ内容で持っている。html/body に
       あたる指定は #entry へ移した（body.quiz-mode のとき診断UIの
       文字サイズ・行間が変わらないようにするため）。
   (3) セレクタは全部 #entry 配下にスコープした。これでクラス名が
       ぶつかっている .hero / .peek / .makers / .wrap でも、
       id分だけ詳細度が上回り shindan.css 側に勝つ。
       .hero と .makers は誤爆を避けるため markup 側で
       .a2-hero / .a2-makers に改名済み。.peek は tools/verify.js が
       「JSオフで .peek li が読める」を見ているので名前を残し、
       shindan.css の .peek / .peek li を下で打ち消している。
   ══════════════════════════════════════════════════════════ */

#entry {
  --a2-paper: #fffaf3;
  --a2-paper-2: #fff1d9;
  --a2-ink: #3d2f26;
  --a2-ink-soft: #6a594b; /* 生成り地で 5.9:1 */
  --a2-vermilion: #b0350f; /* 文字にも面にも使える朱 */
  --a2-vermilion-dark: #8f2a08;
  --a2-orange: #ff6b35; /* 面と装飾だけ。文字に使わない */

  --a2-c01: #fdf0c4;
  --a2-c02: #e4f2d4;
  --a2-c03: #fbe0e6;
  --a2-c04: #d9ecfa;

  --a2-line: #3d2f26;
  --a2-gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --a2-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--a2-gothic);
  --a2-hand: "Yusei Magic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--a2-gothic);

  --a2-gutter: clamp(16px, 4.5vw, 28px);

  /* A2の body 指定はここへ。診断モードでは #entry が display:none に
     なるので、設問・結果の地の文には一切かからない */
  background: var(--a2-paper);
  color: var(--a2-ink);
  font-family: var(--a2-gothic);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
#entry h1,
#entry h2,
#entry p,
#entry li {
  text-wrap: pretty;
}
#entry .wrap {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--a2-gutter);
}

/* ─────────── ヒーロー ─────────── */
#entry .a2-hero {
  position: relative;
  padding: 10px 0 26px;
  background:
    radial-gradient(circle at 1px 1px, rgba(176, 53, 15, 0.13) 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(180deg, #fff5e1 0%, var(--a2-paper) 100%);
  border-bottom: 3px solid var(--a2-line);
}

/* 無料 / 3分 / 登録不要 のシール */
#entry .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  justify-content: center;
}
#entry .tags li {
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: 2px solid var(--a2-line);
  border-radius: 999px;
  background: #fff;
}
#entry .tags .tags__free {
  background: var(--a2-vermilion);
  color: #fff;
  border-color: var(--a2-vermilion-dark);
  font-size: 14px;
  transform: rotate(-3deg);
}

/* ─── 口ぐせ（案Aのキッカーの席を、読者自身の言葉に明け渡した） ───
   赤ペンの相槌 .retort とセットでしか置かない。裸の引用は作らない。
   ボタンに見せない: 影なし・面ベタなし・左寄せ・しっぽ付きの吹き出しにする */
#entry .quote {
  position: relative;
  margin: 9px auto 0;
  max-width: 22em;
  background: #fff;
  border: 2px solid var(--a2-line);
  border-radius: 14px 14px 14px 4px;
  padding: 7px 13px;
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: clamp(13.5px, 3.9vw, 16px);
  line-height: 1.55;
  color: var(--a2-ink);
  transform: rotate(-0.8deg);
}
#entry .quote::before,
#entry .quote::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -11px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 11px 0 0;
  border-color: var(--a2-line) transparent transparent transparent;
}
#entry .quote::after {
  bottom: -7px;
  left: 18px;
  border-width: 8px 8px 0 0;
  border-color: #fff transparent transparent transparent;
}

/* 赤ペンの書き込み。ここが逃げ場（＝ひとりじゃない）と笑いの担当 */
#entry .retort {
  margin: 7px auto 0;
  max-width: 24em;
  text-align: right;
  font-family: var(--a2-hand);
  font-size: clamp(12.5px, 3.5vw, 15px);
  line-height: 1.5;
  color: var(--a2-vermilion);
  letter-spacing: 0.02em;
  transform: rotate(-1.2deg);
}
/* 見出し */
#entry .title {
  margin-top: 7px;
  margin-bottom: 0;
  text-align: center;
  font-family: var(--a2-maru);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.01em;
}
#entry .title__q {
  display: block;
  font-size: clamp(24px, 7.4vw, 38px);
  color: var(--a2-vermilion);
}
#entry .title__main {
  display: block;
  font-size: clamp(28px, 8.8vw, 46px);
}
/* 手描きのマーカー */
#entry .mark {
  background: linear-gradient(transparent 62%, #ffd98a 62%, #ffd98a 92%, transparent 92%);
  padding-inline: 2px;
}

/* サブタイトル。案AではFVの2行の主張だったが、A2では口ぐせに主役を譲り、
   4タイプの節へ降格して置いた（必須要素としては維持） */
#entry .lede {
  margin: 10px auto 0;
  max-width: 30em;
  text-align: center;
  font-size: clamp(12.5px, 3.4vw, 14.5px);
  line-height: 1.7;
  color: var(--a2-ink-soft);
  letter-spacing: 0.01em;
}
#entry .lede b {
  color: var(--a2-vermilion);
  font-weight: 700;
}

/* 「分かること」— ここが一番強い一行 */
#entry .promise {
  margin: 9px auto 0;
  max-width: 26em;
  text-align: center;
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: clamp(17px, 5vw, 24px);
  line-height: 1.5;
  color: #fff;
  background: var(--a2-vermilion);
  border-radius: 4px;
  padding: 10px 14px;
}

/* 開始ボタン */
#entry .cta-row {
  margin-top: 12px;
  text-align: center;
}
#entry .cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 400px;
  min-height: 62px;
  padding: 11px 20px;
  border: 3px solid var(--a2-line);
  border-radius: 999px;
  background: #ffb703;
  color: #3a2a10;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--a2-line);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#entry .cta__main {
  font-family: var(--a2-maru);
  font-weight: 900;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
#entry .cta__sub {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #4a3512;
}
#entry .cta:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--a2-line);
}
#entry .cta:focus-visible {
  outline: 3px solid var(--a2-vermilion);
  outline-offset: 3px;
}
#entry .cta-note {
  margin-top: 9px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--a2-ink-soft);
}

/* 4人のチラ見せ。
   .peek は shindan.css 側にも同名の（罫で組んだ2列グリッドの）定義が
   あるので、まずそれを打ち消してから A2 の形を当てる */
#entry .peek {
  display: block;
  margin-top: 16px;
  border: 0;
  padding: 0;
}
#entry .peek__q {
  text-align: center;
  font-family: var(--a2-hand);
  font-size: clamp(15px, 4.2vw, 19px);
  color: var(--a2-vermilion);
  letter-spacing: 0.04em;
}
#entry .peek__row {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2.4vw, 14px);
  list-style: none;
  margin-top: 8px;
}
#entry .peek__row li {
  flex: 0 1 76px;
  min-width: 0;
  border: 0;
  padding: 0;
  animation: a2-bob 3.6s ease-in-out infinite;
}
#entry .peek__row li:nth-child(2) { animation-delay: 0.45s; }
#entry .peek__row li:nth-child(3) { animation-delay: 0.9s; }
#entry .peek__row li:nth-child(4) { animation-delay: 1.35s; }
@keyframes a2-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
#entry .peek__row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--a2-line);
  background: #fff;
}

/* ─────────── ジグザグ罫 ─────────── */
#entry .zig {
  height: 12px;
  background:
    linear-gradient(-45deg, var(--a2-paper) 50%, transparent 50%) 0 0 / 16px 16px repeat-x,
    linear-gradient(45deg, var(--a2-paper) 50%, transparent 50%) 0 0 / 16px 16px repeat-x,
    var(--a2-orange);
}

/* ─────────── 見出し ─────────── */
#entry .sec-title {
  font-family: var(--a2-maru);
  font-weight: 900;
  font-size: clamp(19px, 5.4vw, 26px);
  line-height: 1.45;
  text-align: center;
}
#entry .sec-title--sm {
  font-size: clamp(17px, 4.6vw, 21px);
}
#entry .sec-title__en {
  display: block;
  font-family: var(--a2-gothic);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--a2-vermilion);
  margin-bottom: 4px;
}

/* ─────────── 4タイプ ─────────── */
#entry .types {
  padding: 30px 0 34px;
  background: var(--a2-paper);
}
#entry .type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 18px);
  list-style: none;
  margin-top: 16px;
}
#entry .type {
  position: relative;
  border: 3px solid var(--a2-line);
  border-radius: 16px;
  padding: 14px 9px 12px;
  text-align: center;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(61, 47, 38, 0.14);
}
#entry .type--01 { background: var(--a2-c01); }
#entry .type--02 { background: var(--a2-c02); }
#entry .type--03 { background: var(--a2-c03); }
#entry .type--04 { background: var(--a2-c04); }
#entry .type__no {
  position: absolute;
  top: -12px;
  left: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--a2-vermilion);
  color: #fff;
  border: 3px solid var(--a2-line);
  font-family: var(--a2-maru);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}
#entry .type img {
  width: min(100%, 116px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--a2-line);
  background: #fff;
}
/* A2の背骨: 顔 → 口ぐせ → 名前。絵で分からなくても、言葉で自分が分かる */
#entry .type__say {
  position: relative;
  margin: 10px auto 0;
  background: #fff;
  border: 2px solid var(--a2-line);
  border-radius: 10px;
  padding: 6px 7px;
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  line-height: 1.5;
  color: var(--a2-ink);
  min-height: 3.9em;
  display: flex;
  align-items: center;
  justify-content: center;
}
#entry .type__say::before,
#entry .type__say::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  margin-left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 8px;
  border-color: transparent transparent var(--a2-line) transparent;
}
#entry .type__say::after {
  top: -6px;
  margin-left: -6px;
  border-width: 0 6px 7px 6px;
  border-color: transparent transparent #fff transparent;
}

#entry .type__name {
  margin-top: 9px;
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: clamp(14.5px, 4vw, 18px);
  line-height: 1.4;
}
/* 4本の引用の逃げ場。口ぐせを並べただけで終わらせない */
#entry .types__aizuchi {
  margin: 18px auto 0;
  max-width: 30em;
  text-align: center;
  font-family: var(--a2-hand);
  font-size: clamp(13px, 3.7vw, 16px);
  line-height: 1.6;
  color: var(--a2-vermilion);
  letter-spacing: 0.02em;
}

#entry .types__note {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--a2-ink-soft);
}
#entry .types__note b {
  color: var(--a2-vermilion);
  font-weight: 700;
}

/* ─────────── こんな人に ─────────── */
#entry .check {
  padding: 30px 0 36px;
  background: var(--a2-paper-2);
  border-top: 3px solid var(--a2-line);
  border-bottom: 3px solid var(--a2-line);
}
/* .check-list には .fits も付けてある（tools/verify.js が .fits.fade の
   存在を前提にしているため）。shindan.css の .fits / .fits li が持つ罫を
   ここで打ち消してから、A2 のカード形を当てる */
#entry .check-list {
  list-style: none;
  margin: 18px auto 0;
  max-width: 460px;
  display: grid;
  gap: 8px;
  border-top: 0;
  text-align: left;
}
#entry .check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--a2-line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 52px;
  color: var(--a2-ink);
}
#entry .check-list__n {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--a2-vermilion);
  color: #fff;
  font-family: var(--a2-maru);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}
#entry .check-list__t {
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: clamp(14.5px, 4vw, 17px);
  line-height: 1.5;
  min-width: 0;
}

/* ─────────── 作った人 ─────────── */
#entry .a2-makers {
  padding: 28px 0 30px;
}
#entry .maker-list {
  list-style: none;
  margin: 16px auto 0;
  max-width: 480px;
  display: grid;
  gap: 10px;
}
#entry .maker-list li {
  border: 2px dashed var(--a2-line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
#entry .maker-list b {
  display: block;
  font-family: var(--a2-maru);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--a2-ink);
  margin-right: 0;
}
#entry .maker-list span {
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--a2-ink-soft);
}

/* JSオフの案内。A2には無い要素なので、地の文と同じ調子で小さく置く */
#entry .noscript-note {
  margin: 12px auto 0;
  max-width: 30em;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--a2-ink-soft);
}

/* ─────────── 広い画面 ─────────── */
@media (min-width: 600px) {
  #entry .a2-hero {
    padding: 22px 0 34px;
  }
  #entry .peek__row li {
    flex-basis: 104px;
  }
  #entry .check-list {
    max-width: 560px;
  }
}

/* 4列にするのは、口ぐせ1本が「意図した2行」で収まる幅を確保できてから。
   600px で4列にすると1カードの本文幅が81pxしかなく、<br /> で決めた改行が
   さらに割れて語の途中で折れる（＝A2の背骨が壊れる）。760px から4列にする */
@media (min-width: 760px) {
  #entry .type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #entry .type img {
    width: min(100%, 132px);
  }
  #entry .type__say {
    min-height: 3.2em;
    padding: 6px 4px;
    font-size: 12.5px;
  }
}

/* ─────────── 動きを減らす設定 ─────────── */
@media (prefers-reduced-motion: reduce) {
  #entry *,
  #entry *::before,
  #entry *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #entry .peek__row li {
    animation: none !important;
    transform: none !important;
  }
  #entry .quote,
  #entry .retort {
    transform: none !important;
  }
}
