/* 映画の採点帳：診断・タイプ紹介・採点の部品。
   クリーム色の紙に紺のインク、コーラルのしおり、黄色のマーカー。本・ノートの質感でまとめる。
   色と書体は --stc-* で管理（テーマ側で上書きできる） */
:root {
  --stc-bg: #FFF8DC;
  --stc-paper: #FFFFFF;
  --stc-ink: #1D4E9E;
  --stc-blue: #1D4E9E;
  --stc-blue-d: #143A78;
  --stc-cta: #E8B12E;
  --stc-cta-d: #B0811A;
  --stc-on-cta: #14305F;
  --stc-gold: #E9B92B;
  --stc-sub: #4A6699;
  --stc-line: #D6E1F2;
  --stc-rule: #E3EBF7;
  --stc-mark: #FFE066;
  --stc-stamp: #6B7A90;
  --stc-marker: #1D4E9E;
  --stc-on-marker: #FFFFFF;
  --stc-pick-border: #1D4E9E;
  --stc-hl: #FFE066;
  --stc-display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --stc-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

.stc, .stc *, .stc *::before, .stc *::after { box-sizing: border-box; }
.stc { color: var(--stc-ink); font-family: var(--stc-body); font-weight: 500; font-size: 16px; line-height: 1.85; letter-spacing: .03em; scroll-margin-top: 80px; }
.stc h1, .stc h2, .stc h3, .stc p, .stc ul, .stc ol, .stc pre { margin: 0; padding: 0; }
.stc ul, .stc ol { list-style: none; }
.stc button, .stc input, .stc select { font: inherit; color: inherit; letter-spacing: inherit; }
.stc button { cursor: pointer; }
.stc button:focus-visible, .stc input:focus-visible, .stc a:focus-visible, .stc select:focus-visible { outline: 3px solid var(--stc-ink); outline-offset: 3px; }
.stc [hidden] { display: none !important; }
.stc-center { text-align: center; }
.stc-lead { color: var(--stc-sub); }
.stc-aicon { width: 1.15em; height: 1.15em; flex: none; }
.stc-dec { font-size: .6em; letter-spacing: 0; }

.stc-kari { display: inline-block; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0; color: var(--stc-stamp); background: var(--stc-paper); border: 1.5px solid var(--stc-stamp); border-radius: 3px; padding: 3px 5px; vertical-align: middle; transform: rotate(-3deg); white-space: nowrap; }

/* ボタン：コーラルのピル型、紺の影で少し立体に */
.stc-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 58px; padding: 12px 22px;
  border: 2.5px solid var(--stc-cta); border-radius: 999px;
  background: var(--stc-cta); color: #fff;
  font-weight: 800; font-size: 17px; line-height: 1.4; letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--stc-cta-d);
  transition: transform .1s ease, box-shadow .1s ease;
}
.stc .stc-btn { color: var(--stc-on-cta); }
.stc-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--stc-cta-d); }
.stc-btn:disabled { background: #CFCBBE; border-color: #CFCBBE; box-shadow: none; cursor: not-allowed; }
.stc .stc-btn.stc-ghost { background: var(--stc-paper); border-color: var(--stc-ink); color: var(--stc-ink); box-shadow: 0 4px 0 var(--stc-line); }
.stc-btn.stc-small { width: auto; min-height: 44px; font-size: 15px; padding: 6px 20px; }
.stc-status { min-height: 1.75em; font-size: 14px; color: var(--stc-sub); text-align: center; }

/* しおり型の小見出し */
.stc .stc-pill {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 5px 26px 5px 20px;
  background: var(--stc-ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}

/* キャラクター */
.stc-face { --s: 112px; position: relative; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; background: var(--stc-bg); flex: none; box-shadow: inset 0 0 0 2px var(--stc-line); }
.stc-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.stc-kari-dot { position: absolute; right: 12%; bottom: 8%; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--stc-paper); border: 1.5px solid var(--stc-stamp); color: var(--stc-stamp); font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.stc-full { display: flex; justify-content: center; align-items: flex-end; position: relative; min-height: 120px; }
.stc-full img { display: block; max-width: 100%; height: auto; max-height: 360px; width: auto; }
.stc-full .stc-kari { position: absolute; right: 8px; bottom: 6px; }

/* 属性ラベル（アイコン＋名前） */
.stc-tags { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px; }
.stc-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 800; color: var(--stc-ink); }
.stc-tag .stc-aicon { width: 17px; height: 17px; }
.stc-x { font-size: 11px; color: var(--stc-sub); }

/* 6属性の丸アイコン */
.stc-icircle { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; }
.stc-icircle .stc-aicon { width: 44%; height: 44%; }
.stc-ic0 { background: #FDE3E6; } .stc-ic1 { background: #E3F0FB; } .stc-ic2 { background: #FFE9C9; }
.stc-ic3 { background: #FFF6D2; } .stc-ic4 { background: #F7E7DC; } .stc-ic5 { background: #ECEFF2; }

/* ---------- 診断 ---------- */
.stc-start .stc-lead { margin-bottom: 22px; color: var(--stc-ink); text-align: center; font-weight: 700; }
.stc .stc-start-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-bottom: 28px; text-align: center; font-size: 13px; font-weight: 800; }
.stc-start-icons li { display: grid; justify-items: center; gap: 4px; }
.stc-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.stc-count { font-weight: 800; font-size: 15px; white-space: nowrap; }
.stc-bars { display: flex; gap: 6px; flex: 1; }
.stc-bars i { flex: 1; height: 7px; border-radius: 4px; background: var(--stc-line); }
.stc-bars i.is-done { background: var(--stc-ink); }
.stc-bars i.is-now { background: var(--stc-cta); }
.stc .stc-q-title { font-weight: 800; font-size: 23px; line-height: 1.5; text-align: center; margin-bottom: 20px; text-wrap: balance; word-break: auto-phrase; }
.stc-q-title:focus, .stc-td-name:focus { outline: none; }
.stc .stc-q-note { color: var(--stc-sub); font-size: 15px; margin: -8px 0 20px; text-align: center; }
.stc .stc-cards { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; margin-bottom: 20px; }
.stc-card {
  width: 100%; height: 100%; min-height: 116px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--stc-paper); border: 2px solid var(--stc-line); border-radius: 16px;
  padding: 14px 10px; text-align: center;
  font-weight: 800; font-size: 15px; line-height: 1.45; letter-spacing: .02em;
  text-wrap: balance; word-break: auto-phrase;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.stc-card:hover { border-color: var(--stc-ink); }
.stc-card:active { transform: scale(.97); }
.stc-em { font-size: 30px; line-height: 1; }
.stc-card[aria-pressed="true"], .stc-pick[aria-pressed="true"], .stc-seg button[aria-pressed="true"] { background: var(--stc-marker); border-color: var(--stc-pick-border); color: var(--stc-on-marker); }
.stc-nav { display: flex; justify-content: space-between; gap: 10px; min-height: 44px; }
.stc .stc-picks { display: grid; gap: 10px; margin-bottom: 20px; }
.stc-pick { width: 100%; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 4px 12px; text-align: left; background: var(--stc-paper); border: 2px solid var(--stc-line); border-radius: 16px; padding: 14px 16px; }
.stc-pick .stc-em { grid-row: span 2; text-align: center; }
.stc-nm { font-weight: 800; font-size: 17px; line-height: 1.4; }
.stc-ds { font-size: 14px; line-height: 1.6; color: var(--stc-sub); }
.stc-pick[aria-pressed="true"] .stc-ds { color: var(--stc-on-marker); }
.stc-q4-actions { display: grid; gap: 10px; }
.stc-result { display: grid; gap: 26px; }
.stc .stc-result-label { text-align: center; font-weight: 800; letter-spacing: .1em; margin-bottom: -10px; }
.stc .stc-share-text { margin-bottom: 10px; padding: 14px 16px; background: var(--stc-paper); border: 2px solid var(--stc-line); border-radius: 12px; font-family: var(--stc-body); font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; -webkit-user-select: all; user-select: all; }
.stc-share .stc-status { margin-top: 8px; }
.stc-result-more { display: grid; gap: 14px; }

/* SNSシェア */
.stc-sns { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--stc-line); text-align: center; }
.stc .stc-sns-label { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.stc-sns-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stc-sns-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 0; font-weight: 800; font-size: 14px; text-decoration: none; color: #fff; }
.stc .stc-sns-btn { color: #fff; }
.stc-sns-btn.is-x { background: #111; }
.stc-sns-btn.is-line { background: #06C755; }
.stc-sns-btn.is-threads { background: #333; }
.stc .stc-sns-btn.is-more { background: var(--stc-paper); color: var(--stc-ink); box-shadow: inset 0 0 0 2px var(--stc-ink); }
.stc .stc-sns-note { margin-top: 6px; font-size: 12px; color: var(--stc-sub); }

/* ---------- キャラクターカードとプロフィール ---------- */
/* 属性の地色（--t1/--t2）の上に全身の絵。2属性は斜めに塗り分ける。名札は白いプレート */
.stc-medals { position: absolute; left: 8px; top: 8px; z-index: 1; display: flex; gap: 4px; }
.stc-medal { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--stc-paper); box-shadow: 0 0 0 2px var(--stc-cta); }
.stc-medal .stc-aicon { width: 18px; height: 18px; }

.stc .stc-tcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.stc-tc { display: grid; height: 100%; align-content: start; text-decoration: none; color: var(--stc-ink); }
.stc-tc-art { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px 12px 0 0; overflow: hidden; background: linear-gradient(135deg, var(--t1) 0 50%, var(--t2) 50% 100%); border: 2px solid var(--stc-ink); border-bottom: 0; }
.stc-tc-art img { position: absolute; left: 50%; bottom: -14%; width: 92%; height: auto; transform: translateX(-50%); }
.stc-tc-art .stc-kari-dot { left: auto; right: 6px; top: 6px; bottom: auto; }
.stc-tc-plate { display: grid; gap: 0; padding: 7px 8px 8px; background: var(--stc-ink); color: #fff; border-radius: 0 0 12px 12px; text-align: center; }
.stc-tc-plate small { font-size: 10.5px; font-weight: 700; opacity: .8; letter-spacing: .04em; }
.stc-tc-plate b { font-weight: 800; font-size: 16px; line-height: 1.35; letter-spacing: .04em; }
.stc-tc-catch { padding: 6px 4px 0; font-size: 11.5px; line-height: 1.55; color: var(--stc-sub); text-align: center; letter-spacing: 0; }
.stc-tc[aria-current="page"] .stc-tc-art, .stc-tc[aria-current="page"] .stc-tc-plate { border-color: var(--stc-cta); }
.stc-tc[aria-current="page"] .stc-tc-plate { background: var(--stc-cta); color: var(--stc-on-cta); }
.stc-tc:active .stc-tc-art img { transform: translateX(-50%) scale(1.03); }

.stc-prof { position: relative; }
.stc-prof-art { position: relative; height: 380px; border-radius: 18px 18px 0 0; overflow: hidden; border: 2.5px solid var(--stc-ink); border-bottom: 0; background: linear-gradient(135deg, var(--t1) 0 50%, var(--t2) 50% 100%); }
.stc-prof-art img { position: absolute; left: 50%; bottom: -6%; height: 108%; width: auto; max-width: none; transform: translateX(-50%); }
.stc-prof-art .stc-medals { left: 12px; top: 12px; }
.stc-prof-art .stc-medal { width: 40px; height: 40px; }
.stc-prof-art .stc-medal .stc-aicon { width: 24px; height: 24px; }
.stc-prof-art .stc-kari { position: absolute; right: 10px; top: 12px; }
.stc-prof-plate { padding: 14px 18px 16px; background: var(--stc-ink); color: #fff; border-radius: 0 0 18px 18px; text-align: center; }
.stc .stc-prof-tags .stc-tag { color: #fff; }
.stc-prof-tags .stc-medal { display: none; }
.stc-prof-tags .stc-x { color: rgba(255, 255, 255, .7); }
.stc-prof-tags .stc-aicon { background: #fff; border-radius: 50%; padding: 2px; width: 20px; height: 20px; }
.stc .stc-prof-name { margin: 2px 0 0; font-weight: 800; font-size: 34px; line-height: 1.3; letter-spacing: .06em; color: #fff; }
.stc .stc-prof-catch { font-weight: 700; font-size: 14px; color: var(--stc-cta); }
.stc-prof-body { padding: 22px 4px 4px; font-weight: 700; font-size: 15.5px; line-height: 1.95; }
.stc-prof mark { background: linear-gradient(transparent 58%, var(--stc-mark) 58%); color: inherit; padding: 0 1px; }
.stc-prof-sec { margin-top: 24px; }
.stc .stc-prof-h { margin-bottom: 10px; font-weight: 800; font-size: 17px; padding-left: 12px; border-left: 5px solid var(--stc-cta); line-height: 1.4; }
.stc .stc-quotes { display: grid; gap: 8px; }
.stc-quotes li { position: relative; padding: 12px 14px 12px 40px; background: var(--stc-bg); border-radius: 12px; font-weight: 800; font-size: 15px; line-height: 1.55; }
.stc-quotes li::before { content: "“"; position: absolute; left: 12px; top: 2px; font-size: 34px; line-height: 1; color: var(--stc-cta); font-family: Georgia, serif; }
.stc .stc-prof-src { margin-top: 10px; font-size: 13px; color: var(--stc-sub); line-height: 1.8; }
.stc .stc-td-attrlist { display: grid; gap: 10px; }
.stc-td-attrlist li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: var(--stc-paper); border: 1.5px solid var(--stc-line); border-radius: 14px; font-size: 14px; line-height: 1.6; }
.stc-td-attrlist b { display: block; font-weight: 800; font-size: 16px; }
.stc-td-attr-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--stc-bg); }
.stc-td-attr-icon .stc-aicon { width: 30px; height: 30px; }
.stc-td-cta { display: grid; gap: 14px; margin-top: 28px; }

/* ---------- 一覧の見出し ---------- */
.stc .stc-types-lead { margin-bottom: 18px; font-weight: 700; }
.stc-index { margin-top: 8px; }
.stc-prof + .stc-index, .stc-types > .stc-prof ~ .stc-index { margin-top: 40px; }
.stc .stc-index-title { margin-bottom: 14px; font-weight: 800; font-size: 19px; padding-left: 12px; border-left: 5px solid var(--stc-cta); }
.stc-index-cta { margin-top: 26px; }

/* ---------- 準備中 ---------- */
.stc-todo { border: 2px dashed var(--stc-line); border-radius: 16px; padding: 18px; background: var(--stc-paper); }
.stc .stc-todo h2 { font-size: 15px; font-weight: 800; color: var(--stc-cta); margin-bottom: 6px; }

/* ---------- 切り替えボタン ---------- */
.stc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stc-seg button { min-height: 46px; border: 2px solid var(--stc-line); border-radius: 999px; background: var(--stc-paper); font-weight: 800; font-size: 14px; line-height: 1.3; }

/* ---------- 採点 ---------- */
/* スマホ：タイトル→10項目→結果の縦1列。パソコン：左に10項目、右に結果を固定表示 */
.stc-saiten { display: grid; gap: 32px; }
.stc-saiten-main, .stc-sum { min-width: 0; }
.stc-field { display: grid; gap: 6px; }
.stc-field label, .stc-field-label { font-size: 14px; font-weight: 700; }
.stc .stc-s-title, .stc .stc-s-type {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--stc-ink);
  border-radius: 12px;
  background: var(--stc-paper);
  color: var(--stc-ink);
  padding: 8px 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}
.stc .stc-s-type { font-size: 16px; }
.stc-s-title::placeholder { color: var(--stc-sub); font-weight: 500; }
.stc-hint { font-size: 13px; color: var(--stc-sub); }
.stc-hint a { color: var(--stc-ink); }
.stc .stc-items { margin-top: 24px; border-top: 2px solid var(--stc-ink); counter-reset: none; }
.stc-item { padding: 18px 0 16px; border-bottom: 1px dashed var(--stc-line); }
.stc-item-head { display: grid; grid-template-columns: auto 1fr auto; gap: 0 10px; align-items: start; }
.stc-item-no { font-size: 22px; line-height: 1.35; color: var(--stc-sub); }
.stc-item.is-set .stc-item-no { color: var(--stc-stamp); }
.stc .stc-item-text h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.stc .stc-item-text p { font-size: 14px; line-height: 1.65; color: var(--stc-sub); }
.stc-item-val {
  font-family: var(--stc-display);
  font-size: 28px;
  line-height: 1.1;
  min-width: 2.4em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--stc-line);
}
.stc-item.is-set .stc-item-val { color: var(--stc-ink); }
.stc-item-ctl { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; margin-top: 10px; }
.stc-step {
  width: 44px; height: 44px;
  border: 2px solid var(--stc-line);
  border-radius: 50%;
  background: var(--stc-paper);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.stc-step:hover { border-color: var(--stc-ink); }
.stc-item input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--stc-stamp); cursor: pointer; opacity: .45; }
.stc-item.is-set input[type="range"] { opacity: 1; }
/* スマホ：採点中、画面下に合計を出しておく */
.stc-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--stc-ink);
  color: var(--stc-bg);
  font-weight: 700;
  font-size: 14px;
}
.stc-bar-n { font-family: var(--stc-display); font-weight: 400; font-size: 18px; font-variant-numeric: tabular-nums; }
.stc-sum { display: grid; gap: 16px; align-content: start; background: var(--stc-paper); border-radius: 18px; padding: 22px 20px 24px; }
.stc .stc-sum-label { font-size: 14px; font-weight: 700; color: var(--stc-sub); margin-bottom: -14px; }
.stc-total { display: flex; align-items: baseline; gap: 6px; }
.stc-total-n { font-family: var(--stc-display); font-size: clamp(56px, 16vw, 76.8px); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--stc-sub); }
.stc-saiten.is-done .stc-total-n { color: var(--stc-ink); background: linear-gradient(transparent 70%, var(--stc-hl) 70%); }
.stc-total-of { font-weight: 700; color: var(--stc-sub); }
.stc .stc-sum-rest { font-size: 14px; color: var(--stc-sub); margin-top: -10px; }
.stc-sum .stc-seg button { min-height: 44px; font-size: 14px; }
.stc .stc-copy-text { margin-bottom: 0; font-size: 14px; }
.stc-sum .stc-status { text-align: center; margin-top: -8px; }
.stc .stc-reset { justify-self: start; }
.stc .stc-reset.is-sure { border-color: var(--stc-stamp); color: var(--stc-stamp); }



/* 採点：ノートの配色に */
.stc .stc-items { border-top-color: var(--stc-ink); }
.stc-item { border-bottom-color: var(--stc-line); }
.stc-item.is-set .stc-item-no { color: var(--stc-ink); }
.stc .stc-item-text h3 { font-weight: 800; }
.stc-item-val, .stc-total-n, .stc-bar-n { font-weight: 800; }
.stc-step { border-color: var(--stc-line); }
.stc-item input[type="range"] { accent-color: var(--stc-ink); }
.stc-bar { background: var(--stc-ink); }
.stc-sum { border: 2px solid var(--stc-ink); border-left-width: 10px; border-radius: 6px 18px 18px 6px; background: var(--stc-paper); }
.stc-saiten.is-done .stc-total-n { color: var(--stc-ink); background: linear-gradient(transparent 70%, var(--stc-mark) 70%); }
.stc .stc-s-title, .stc .stc-s-type { border-color: var(--stc-ink); }

@media (prefers-reduced-motion: reduce) { .stc * { transition: none !important; } }


/* ---------- 0.10：明るい黄色 ---------- */
:root { --stc-cta: #FFDD1F; --stc-cta-d: #E0B800; }
.stc-quotes li::before { color: var(--stc-ink); }

/* ---------- 0.17：キャラクターの背景は淡いグレーに統一（紺の名札と同じ青みのグレー） ---------- */
.stc-tc-art, .stc-prof-art { background: #ECEFF4 url(paper-tex.png) 0 0 / 512px 512px; }

/* ---------- 0.18 ---------- */
.stc-card { min-height: 92px; }
.stc-card { text-wrap: wrap; word-break: normal; font-size: 14.5px; font-weight: 800; letter-spacing: 0; padding-inline: 6px; }
.stc-card > span { white-space: nowrap; }
.stc .stc-q-title { text-wrap: wrap; word-break: normal; }
.stc .stc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stc-card { min-width: 0; overflow: hidden; }
.stc-card > span.is-wrap { white-space: normal; text-wrap: balance; }

/* ---------- 0.21 ---------- */
.stc-quotes li { padding: 12px 16px; }
.stc-quotes li::before { content: none; }
.stc-result .stc-prof-sec { margin-top: 24px; }

/* ---------- 0.26：配信サイト紹介 ---------- */
.stc-hs-pr { margin: 0 0 10px; font-size: 12.5px; color: var(--stc-sub); }
.stc-hs .stc-lead { margin-bottom: 22px; }
.stc-hs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.stc-hs-card { position: relative; padding: 18px 16px 20px; background: var(--stc-paper); border: 2.5px solid var(--stc-ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--stc-cta); }
.stc-hs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.stc-hs-logo { flex: none; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #ECEFF4; }
.stc-hs-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stc-hs-tile { padding: 4px; font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: 0; text-align: center; color: var(--stc-ink); word-break: normal; overflow-wrap: anywhere; }
.stc .stc-hs-name { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.45; letter-spacing: .02em; color: var(--stc-ink); }
.stc-hs-name small { font-size: 12.5px; font-weight: 700; color: var(--stc-sub); }
.stc-hs-tag { display: inline-block; margin-left: 6px; padding: 2px 6px; font-size: 10.5px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; color: var(--stc-sub); border: 1.5px solid var(--stc-sub); border-radius: 4px; vertical-align: 2px; }
.stc-hs-desc { margin: 0; font-size: 15px; line-height: 1.85; }
.stc .stc-hs-go { margin-top: 16px; width: 100%; }
.stc-hs-px { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stc-hs-note { margin: 28px 0 0; font-size: 12.5px; color: var(--stc-sub); }
.stc-hs-more { margin-top: 30px; text-align: center; }
.stc-hs-more p { margin: 0 0 10px; font-size: 14px; font-weight: 700; }

/* ---------- 0.26.3：配信サイト紹介の余白（.stc p の余白リセットより強く指定） ---------- */
.stc .stc-hs-pr { margin: 0 0 10px; }
.stc .stc-hs-note { margin: 34px 0 0; padding: 0 2px; font-size: 12.5px; line-height: 1.85; color: var(--stc-sub); }
.stc-hs-note span { display: inline-block; }

/* ---------- 0.27：映画の採点帳のTikTokへの案内 ---------- */
.stc-follow { margin: 22px 0 6px; padding: 18px 16px 18px; background: var(--stc-paper); border: 2.5px solid var(--stc-ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--stc-cta); text-align: center; }
.stc .stc-follow-t { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--stc-ink); }
.stc .stc-follow-d { margin: 0 0 14px; font-size: 13.5px; line-height: 1.75; color: var(--stc-sub); text-align: left; }
.stc .stc-follow-btn { font-size: 16px; }
.stc-follow { margin-top: 14px; }
.stc .stc-follow-t { text-wrap: balance; }
.stc .stc-follow-btn { padding-inline: 14px; font-size: 15.5px; letter-spacing: .03em; }
.stc-follow-t span { display: inline-block; }
.stc-sns-logo { width: 26px; height: 26px; margin-right: 8px; border-radius: 7px; object-fit: contain; flex: none; }
.stc-hs-name small { display: inline-block; white-space: nowrap; }

/* ---------- 0.30：同じ映画の投稿へ（各SNSのボタン）・採点への案内・noteへの案内 ---------- */
.stc-follow-movie { font-weight: 800; color: var(--stc-ink); }
.stc-follow-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stc .stc-follow-sns { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 6px 10px; border: 2.5px solid var(--stc-ink); border-radius: 999px; background: var(--stc-cta); color: var(--stc-on-cta); font-size: 15px; font-weight: 800; letter-spacing: .02em; text-decoration: none; box-shadow: 0 3px 0 var(--stc-cta-d); }
.stc-follow-sns:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--stc-cta-d); }
.stc-follow-sns .stc-sns-logo { width: 24px; height: 24px; margin-right: 6px; }
.stc-follow-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.stc-note-link { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--stc-line); text-align: center; }
.stc .stc-note-link p { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--stc-sub); line-height: 1.7; }
.stc-note-link p span { display: inline-block; }

/* ---------- 0.31：診断の最初の画面に、21タイプ全員の集合 ---------- */
.stc .stc-crowd { margin: -4px -6px 14px; }
.stc-crowd img { display: block; width: 100%; height: auto; }
.stc-start .stc-lead span { display: inline-block; }
.stc-start .stc-lead .stc-lead-max { display: inline-block; font-size: 13px; font-weight: 700; color: var(--stc-sub); white-space: nowrap; }
.stc-start .stc-lead .stc-lead-l2 { display: inline-block; white-space: nowrap; font-size: min(16px, 3.7vw); letter-spacing: 0; }
/* 0.32：採点ページの説明は最初に */
.stc .stc-saiten-lead { margin: 0 0 20px; font-size: 14.5px; font-weight: 700; line-height: 1.85; color: var(--stc-ink); text-align: center; }
.stc-saiten-lead span { display: inline-block; }
.stc .stc-sum-rest:empty { display: none; }
/* 0.32.1 */
.stc-item-text p span { display: inline-block; }
.stc .stc-reset { justify-self: center; align-self: center; margin-inline: auto; display: flex; }
.stc-follow-d b { font-weight: 800; color: var(--stc-ink); }
.stc-follow-l1 { display: inline-block; white-space: nowrap; font-size: min(13.5px, 3.3vw); letter-spacing: 0; }
.stc-follow-d .w { display: inline-block; white-space: nowrap; }

/* ---------- 0.36：プライバシーポリシー・免責事項・お問い合わせ ---------- */
.stc-legal { font-size: 14.5px; line-height: 1.9; }
.stc-legal section { margin-top: 26px; }
.stc .stc-legal h2 { margin: 0 0 8px; padding-left: 10px; border-left: 5px solid var(--stc-cta); font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.stc .stc-legal p { margin: 0 0 10px; }
.stc-legal a:not(.stc-btn) { color: var(--stc-ink); text-decoration: underline; text-underline-offset: 3px; }
.stc .stc-legal-date { margin-top: 30px; font-size: 13px; color: var(--stc-sub); text-align: right; }
.stc .stc-legal-btn { margin: 22px 0; }
.stc .stc-legal-note { margin: 20px 0 0; padding-left: 1.2em; font-size: 13px; color: var(--stc-sub); }

/* ---------- 0.38 ---------- */
.stc-index-cta { margin-top: 40px; }
.stc-sns-btn.is-threads { background: #111; }
.stc-hs-logo { background: #fff; box-shadow: inset 0 0 0 1.5px var(--stc-line); }
.stc-hs-logo img { object-fit: contain; padding: 6px; box-sizing: border-box; }
.stc-follow-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stc-follow-row.n3 > :last-child:nth-child(odd) { grid-column: auto; }
.stc .stc-follow-row.n3 .stc-follow-sns { flex-direction: column; gap: 3px; min-height: 60px; padding: 6px 4px; border-radius: 18px; font-size: 13px; letter-spacing: 0; }
.stc-follow-row.n3 .stc-follow-sns .stc-sns-logo { margin: 0; width: 22px; height: 22px; }
.stc-sns-logo { object-fit: contain; }
/* 0.38.1：ロゴは正方形以外もそのまま（切り抜かない） */
.stc-hs-logo { width: auto; min-width: 60px; max-width: 108px; padding: 0 6px; }
.stc-hs-logo img { width: auto; height: 100%; max-width: 96px; padding: 6px 0; }
.stc .stc-index-cta { margin-top: 48px; }
/* 0.38.2：タイプ一覧カードの絵の位置・大きさ（キャラごと） */
.stc-tc-art.k0_3 img, .stc-tc-art.k0_4 img { bottom: -5%; }
.stc-tc-art.k1_2 img, .stc-tc-art.k1_3 img { width: 84%; bottom: -10%; }
.stc-tc-art.k1_5 img { width: 76%; bottom: -8%; }
.stc-tc-art.k2_5 img { bottom: -6%; }
/* 0.38.3：ロゴは高さを固定して縦横比のまま表示（正方形・横長どちらも） */
.stc-hs-logo { height: 60px; display: flex; align-items: center; justify-content: center; }
.stc-hs-logo img { height: 46px; width: auto; max-width: 96px; padding: 0; object-fit: contain; }
/* 0.38.4 */
.stc-tc-art.k1_5 img { width: 88%; bottom: -12%; }
.stc-tc-catch, .stc-prof-catch { text-wrap: balance; }
.stc-tc-catch span, .stc-prof-catch span { display: inline-block; }
/* 詳細ページ・診断結果の絵は切らずに全体を表示 */
.stc-prof-art img { left: 3%; bottom: 3%; width: 94%; height: 92%; max-width: none; transform: none; object-fit: contain; object-position: center bottom; }
/* 0.38.5：配信サイトのロゴを小さめに */
.stc-hs-logo { height: 52px; min-width: 52px; max-width: 92px; }
.stc-hs-logo img { height: 32px; max-width: 76px; }
/* 0.38.6：キャラクターの背景を紙の質感に */
.stc-tc-art, .stc-prof-art { background: #FFF3C8 url(paper-bg.jpg?v=2) center / cover no-repeat; }
.stc-legal ul:not(.stc-legal-note) { margin: 0 0 10px; padding-left: 1.2em; }
.stc-legal ul:not(.stc-legal-note) li { margin-bottom: 6px; }

/* 0.45：コピー結果のメッセージ（2行。表示・非表示で周りが動かないよう、2行分の高さを確保） */
.stc .stc-status { min-height: 3.3em; line-height: 1.65; }
.stc .stc-status .stc-st-l { display: block; }
.stc .stc-status.is-error { color: var(--stc-ink); font-weight: 700; }
/* 0.45：「最初からやり直す」の確認 */
.stc .stc-reset[hidden], .stc .stc-reset-confirm[hidden] { display: none; }
.stc-reset-confirm { justify-self: stretch; display: grid; gap: 12px; padding: 14px 14px 16px; border: 2px solid var(--stc-ink); border-radius: 14px; background: #FFF9E0; text-align: center; }
.stc .stc-reset-q { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.7; color: var(--stc-ink); }
.stc-reset-q span { display: inline-block; }
.stc-reset-btns { display: flex; justify-content: center; gap: 12px; }
.stc .stc-reset-btns .stc-btn { min-width: 112px; margin: 0; }
.stc .stc-reset-yes { background: var(--stc-stamp); border-color: var(--stc-stamp); color: #fff; }

/* 0.48：キャラの見え方をシェアカードと同じにする
   シェアカードのキャラ枠（486×554、余白20px）と同じ割合で、枠の上下左右の中央に、絵全体が収まる大きさで置く。
   --sc：タイプごとの縮小率（シェアカードと同じ値） */
.stc .stc-tc-art img, .stc .stc-tc-art[class*="k"] img, .stc .stc-prof-art img {
  position: absolute; left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%);
  width: calc(91.8% * var(--sc, 1)); height: calc(92.8% * var(--sc, 1)); max-width: none; max-height: none;
  object-fit: contain; object-position: center center; }
.stc .stc-prof-art, .stc .stc-tc-art { aspect-ratio: 486 / 554; height: auto; }
.stc-tc:active .stc-tc-art img { transform: translate(-50%, -50%) scale(1.03); }
/* 0.48.1：鑑賞タイプ紹介（一覧・詳細）と診断結果は、絵を枠の下にそろえる（縮めたキャラが上に浮かないように）。
   大きさはシェアカードと同じ。下の余白もカードと同じ割合（20/554） */
.stc .stc-tc-art img, .stc .stc-tc-art[class*="k"] img, .stc .stc-prof-art img {
  top: auto; bottom: 3.6%; transform: translateX(-50%); object-position: center bottom; }
.stc-tc:active .stc-tc-art img { transform: translateX(-50%) scale(1.03); }
/* 0.48.2：属性アイコンを左上に縦に並べ、キャラの頭にかぶらないようにする */
.stc .stc-tc-art .stc-medals { flex-direction: column; left: 6px; top: 6px; gap: 4px; }
.stc .stc-prof-art .stc-medals { flex-direction: column; left: 10px; top: 10px; gap: 6px; }
@media (max-width: 480px) { .stc .stc-tc-art .stc-medal { width: 26px; height: 26px; } .stc .stc-tc-art .stc-medal .stc-aicon { width: 16px; height: 16px; } .stc .stc-tc-art .stc-medals { left: 5px; top: 5px; gap: 3px; } }
