/* ══════════════════════════════════════════════════════════
   「私なんかが」4タイプ無料診断 ＿ 共通CSS（5枚で共有）
   セミナーLP（index_c）と同じ世界。デザイン強度4。
   ・動きはフェードのみ。スクロールは掴まない、横に流れない
   ・カード＋影＋丸番号＋絵文字を使わず、罫・余白・薄い大数字で組む
   ══════════════════════════════════════════════════════════ */

:root {
  --paper: #fdf9f4; /* 生成り */
  --paper-2: #f7efe5; /* 一段濃い生成り */
  --ink: #241a15;
  --ink-soft: #6e6058;
  --ink-faint: #736660; /* 注記も本文なので 4.5:1 に届く濃さ */

  --vermilion: #b0350f; /* 文字にも面にも使える朱 */
  --orange: #ff6b35; /* ブランドの橙。面と装飾にだけ。文字に使わない */
  --sumi: #1f1714;
  --sumi-ink: #f4ece5;
  --sumi-soft: #b3a49a;

  --rule: #e2d5c7;
  --rule-strong: #cdbba8;

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(56px, 10vw, 100px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  /* width/height 属性が aspect-ratio を殺すので auto に戻す */
  height: auto;
}
canvas {
  max-width: 100%;
}
::selection {
  background: var(--orange);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
li,
dd {
  text-wrap: pretty;
}
/* 語の途中で割れると読みにくい短い語は、まとめて送る
   （word-break: auto-phrase は実機未対応のため使わない） */
.nb {
  display: inline-block;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: var(--section) 0;
}
.ground-2 {
  background: var(--paper-2);
}

/* ── 見出しの体系 ───────────────────────────────── */
.disp {
  font-family: var(--mincho);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.disp--xl {
  font-size: clamp(26px, 6.4vw, 42px);
  line-height: 1.5;
}
.disp--lg {
  font-size: clamp(21px, 4.6vw, 30px);
}
.disp--md {
  font-size: clamp(17px, 2.6vw, 21px);
  font-weight: 600;
}
.disp em {
  font-style: normal;
  color: var(--vermilion);
}

.eyebrow {
  font-family: var(--gothic);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--vermilion);
  margin-bottom: 14px;
}
.sec-head {
  margin-bottom: clamp(26px, 5vw, 44px);
}

.prose {
  color: var(--ink-soft);
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.note {
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* 装飾の大数字。読み上げからは外す */
.num {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(46px, 11vw, 74px);
  line-height: 0.78;
  color: var(--orange);
  opacity: 0.22;
  letter-spacing: 0.02em;
  user-select: none;
}

/* ── ボタン。立体の影をやめ、ベタの朱で置く ─────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--vermilion);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: clamp(15.5px, 3vw, 17.5px);
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 17px 38px;
  border-radius: 999px;
  min-height: 48px;
  transition: background-color 0.2s ease;
}
.btn small {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.92;
}
.btn:hover {
  background: #a63109;
}
.btn--wide {
  display: flex;
  width: 100%;
  max-width: 420px;
}
.btn--ghost {
  background: transparent;
  color: var(--vermilion);
  border: 1px solid var(--rule-strong);
}
.btn--ghost:hover {
  background: var(--paper-2);
}
.btn-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 12px;
  letter-spacing: 0.06em;
}

/* ══ 入口 ══════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, #ffe9dc 0%, var(--paper) 62%);
  padding: clamp(40px, 8vw, 72px) 0 clamp(36px, 6vw, 56px);
  text-align: center;
}
.hero .imprint {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.hero .imprint span {
  display: inline-block;
}
.hero h1 {
  margin-bottom: 14px;
}
.hero h1 .t-quote {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 27em;
  margin: 0 auto 22px;
}
.hero-meta {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin: 14px 0 0;
}
.hero .btn--wide {
  margin: 0 auto;
}

/* こんな人に（罫のリスト） */
.fits {
  list-style: none;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.fits li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: clamp(6px, 2vw, 16px);
  align-items: baseline;
  padding: clamp(14px, 2.6vw, 20px) 0;
  border-bottom: 1px solid var(--rule);
}
.fits .n {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 19px;
  color: var(--vermilion);
  letter-spacing: 0.04em;
}
.fits .t {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(16px, 3.2vw, 19px);
  line-height: 1.7;
}

/* 愛称のチラ見せ（説明は書かない） */
.peek {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}
.peek li {
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: clamp(18px, 3.6vw, 28px) 8px;
  text-align: center;
}
.peek .no {
  display: block;
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--vermilion);
  margin-bottom: 6px;
}
.peek .name {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(17px, 4vw, 22px);
  letter-spacing: 0.04em;
}

/* 作った人 */
.makers {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.makers li {
  padding: clamp(13px, 2.4vw, 17px) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.makers b {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
  margin-right: 10px;
}

/* ══ 設問（1画面1問） ══════════════════════════════ */
#quiz {
  display: none;
}
#quiz.is-on {
  display: block;
}
body.quiz-mode #entry {
  display: none;
}
.q-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--rule);
}
.q-progress {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--vermilion);
}
.q-back {
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 10px 2px; /* タップ領域 44px 相当 */
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--gothic);
  letter-spacing: 0.04em;
}
.q-back:hover {
  color: var(--vermilion);
}
.q-bar {
  height: 2px;
  background: var(--rule);
  margin-bottom: clamp(30px, 7vw, 48px);
}
.q-bar i {
  display: block;
  height: 100%;
  background: var(--orange);
  transition: width 0.3s ease;
}
.q-text {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(19px, 4.6vw, 26px);
  line-height: 1.75;
  min-height: 5.25em;
  margin-bottom: clamp(26px, 6vw, 40px);
}
.q-opts {
  list-style: none;
  display: grid;
  gap: 12px;
}
.q-opts button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--gothic);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 14px 18px;
  min-height: 52px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.q-opts button:hover {
  border-color: var(--vermilion);
  background: var(--paper-2);
}
.q-opts button:active {
  background: var(--paper-2);
}
/* 1つ前にもどったとき、前に選んだ答えが分かるようにする（塗らずに枠線だけ） */
.q-opts button[aria-pressed="true"] {
  border-color: var(--vermilion);
  box-shadow: inset 0 0 0 1px var(--vermilion);
  font-weight: 600;
}
.q-note {
  margin-top: clamp(26px, 6vw, 40px);
}

/* 設問のフェード（1回だけ。結果表示の演出もこの1種のみ） */
.q-fade {
  opacity: 1;
  transition: opacity 0.22s ease;
}
.q-fade.is-out {
  opacity: 0;
}

/* ══ 結果ページ ════════════════════════════════════ */

/* シェアから来た人への帯（JSで出す） */
.visitor-band {
  display: none;
  background: var(--sumi);
  color: var(--sumi-ink);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.8;
  padding: 13px var(--gutter);
}
body.is-visitor .visitor-band {
  display: block;
}
.visitor-band a {
  color: #ffab7d;
  font-weight: 700;
  text-decoration: underline;
  padding: 8px 2px;
  display: inline-block;
}

/* 結果カード（1〜3をひとつの枠で組む。スクショ耐性） */
.result-hero {
  background: linear-gradient(180deg, #ffe9dc 0%, var(--paper) 70%);
  padding: clamp(36px, 7vw, 64px) 0 clamp(30px, 5vw, 48px);
}
.result-card {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  padding: clamp(24px, 5vw, 44px) clamp(20px, 4.4vw, 40px) clamp(18px, 3.4vw, 26px);
}
.rc-head {
  text-align: center;
  padding-bottom: clamp(20px, 4vw, 30px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(20px, 4vw, 30px);
}
.rc-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.rc-sub {
  display: none; /* サブタイプはJSで出す */
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(14px, 3vw, 17px);
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.rc-sub.is-on {
  display: block;
}
.rc-name {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(38px, 11vw, 64px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.js .rc-name {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.js .rc-name.is-in {
  opacity: 1;
}
.rc-formal {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(13.5px, 3vw, 16px);
  color: var(--vermilion);
  margin-top: 8px;
}
.rc-sec + .rc-sec {
  margin-top: clamp(22px, 4.4vw, 32px);
}
.rc-sec h2 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(15.5px, 3.4vw, 18px);
  letter-spacing: 0.06em;
  color: var(--vermilion);
  margin-bottom: 10px;
}
.rc-list {
  list-style: none;
}
.rc-list li {
  padding: 7px 0 7px 1.2em;
  text-indent: -1.2em;
  line-height: 1.85;
}
.rc-list li::before {
  content: "・";
  color: var(--vermilion);
}
.rc-say li {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(15.5px, 3.4vw, 18px);
  padding: 8px 0;
  text-indent: 0;
  line-height: 1.8;
}
.rc-say li::before {
  content: none;
}
.rc-foot {
  margin-top: clamp(24px, 5vw, 36px);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* トリセツ本文（4〜7） */
.torisetsu .rc-sec h2 {
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(18px, 3.6vw, 26px);
}
.torisetsu .rc-sec {
  margin-top: clamp(26px, 5vw, 40px);
}
.torisetsu .rc-sec:first-child {
  margin-top: 0;
}

/* ── シェア ─────────────────────────────────────── */
.share {
  text-align: center;
}
.share .btn {
  margin: 0 auto;
}
.share-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.share-pills a,
.share-pills button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 9px 22px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.share-pills a:hover,
.share-pills button:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}
.share-webshare {
  display: none; /* navigator.share がある環境でだけJSが出す */
}
.share-webshare.is-on {
  display: block;
}
.copy-done {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--vermilion);
  font-weight: 700;
}
.copy-done.is-on {
  display: block;
}
.story-box {
  margin-top: clamp(26px, 5vw, 36px);
  padding-top: clamp(20px, 4vw, 28px);
  border-top: 1px solid var(--rule);
}
.story-out {
  display: none;
  margin-top: 16px;
}
.story-out.is-on {
  display: block;
}
.story-out img {
  margin: 0 auto;
  max-width: min(300px, 80%);
  border: 1px solid var(--rule-strong);
}

/* ── 他の3タイプ（畳む。JSなしでも開ける details） ── */
.others details {
  border-top: 1px solid var(--rule);
}
.others details:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.others summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 2px;
  min-height: 44px;
}
.others summary::-webkit-details-marker {
  display: none;
}
.others summary .no {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--vermilion);
}
.others summary .nm {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(16px, 3.4vw, 19px);
}
.others summary .fm {
  font-size: 12px;
  color: var(--ink-faint);
}
.others summary::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--mincho);
  color: var(--vermilion);
}
.others details[open] summary::after {
  content: "−";
}
.others .body {
  padding: 2px 2px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.send-friend {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--vermilion);
  font-family: var(--gothic);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}
.send-friend:hover {
  border-color: var(--vermilion);
}

/* ── メール登録 ─────────────────────────────────── */
.signup .consent {
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--vermilion);
  padding: clamp(16px, 3.4vw, 24px);
  font-size: 13.5px;
  line-height: 2;
  margin: 22px 0;
  text-align: left;
}
.signup .consent ul {
  list-style: none;
}
.signup .consent li {
  padding-left: 1.1em;
  text-indent: -1.1em;
}
.signup .consent li::before {
  content: "・";
  color: var(--vermilion);
}
.bme-embed {
  margin: 10px 0;
}
/* 診断していない人向けの差し替え（JSで出す） */
.signup-visitor {
  display: none;
}
body.is-visitor .signup-visitor {
  display: block;
}
body.is-visitor .signup-self {
  display: none;
}

/* ── 次回セミナー（控えめ） ─────────────────────── */
.seminar {
  text-align: center;
  padding-bottom: calc(var(--section) * 1.1);
}
.seminar p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 18px;
}

footer {
  background: var(--sumi);
  color: var(--sumi-soft);
  text-align: center;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  font-size: 12.5px;
  line-height: 2.1;
  letter-spacing: 0.08em;
}
footer b {
  display: block;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--sumi-ink);
  margin-bottom: 6px;
}
footer a {
  color: var(--sumi-soft);
}

/* ── 出現（JSが動いたときだけ隠す） ─────────────── */
.js .fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.js .fade.on {
  opacity: 1;
  transform: none;
}

/* ── 画面幅 ─────────────────────────────────────── */
@media (max-width: 374px) {
  .peek .name {
    font-size: 16px;
  }
  .q-opts button {
    padding: 13px 14px;
  }
}

/* 「視差効果を減らす」がONなら、動きは全部なし。
   止まった状態がそのまま完成形になるよう組んである。 */
@media (prefers-reduced-motion: reduce) {
  .js .fade,
  .js .rc-name {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .q-fade,
  .q-bar i,
  .btn,
  .q-opts button,
  .share-pills a,
  .share-pills button {
    transition: none !important;
  }
}
