/* ===== SPIテストセンター 本番画面再現模試 [spi_border_moshi] / [spi_kotoku_moshi] =====
   記事埋め込み（spi-mini 系・reset無し）。arorua模試（arorua-moshi.css）の型を名前空間ごと複製し、
   本番テストセンターの出題UI（4タブの資料／チェックボックス複数選択／長文／問題ごとの時計）と
   結果の判定UI（ボーダー表・高得点指標チェック）を足したもの。
   第1部=言語8問/8分、第2部=非言語8問/8分。

   テーマ色は貼る記事のアイキャッチ実測ドミナントカラーに合わせる
   （feedback_moshi_theme_color_matches_eyecatch）。1エンジンを2記事に出すので data-mode で切替：
     border（/test-center-border/）  アイキャッチ #3CD4B6（占有54.6%）
     kotoku（/suiron-checkbox-indicator/） アイキャッチ #009CB2（占有54.5%）
   ⚠ どちらもアイキャッチ色そのままでは白文字が 1.86:1 / 3.28:1 で不足するので、
     面（--sptc-accent）にだけ使い、白文字が乗る deep / deep-d は同系の暗い色を実測して置く。 */

.sptc-moshi {
  /* 既定＝border（/test-center-border/・アイキャッチ #3CD4B6） */
  --sptc-accent: #3CD4B6;   /* 地・帯・アイコンの面。文字は載せない */
  --sptc-deep: #0E9179;     /* 白文字 3.93:1 ＝18px以上の太字ボタン用 */
  --sptc-deep-d: #097868;   /* 白文字 5.39:1 ＝14px前後の小さい文字用 */
  --sptc-deep-l: #E1F7F1;
  --sptc-blue: #0E9179;
  --sptc-blue-d: #097868;
  --sptc-mist: #F1FBF8;
  --sptc-orange: #FF9A3C;
  --sptc-orange-d: #C86A00;
  --sptc-ink: #333;
  --sptc-sub: #666;
  --sptc-line: #e3e6ee;
  container-type: inline-size;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--sptc-ink);
  border: 1px solid var(--sptc-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.sptc-moshi button,
.sptc-moshi input { font-family: inherit; }
#sptc-honban-moshi { scroll-margin-top: 88px; }

.sptc-moshi-screen { padding: 0; }

/* ===== 試験開始画面 ===== */
.sptc-moshi-intro-hero,
.sptc-moshi-gate-hero {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background: var(--sptc-mist);
}
.sptc-moshi-intro-hero {
  background: var(--sptc-mist); /* オーナー好み＝ゲートと同じ淡色ヒーロー（2026-07-28） */
}
.sptc-moshi-intro-heading,
.sptc-moshi-gate-heading {
  position: relative;
  z-index: 2;
  width: 72%;
  padding: 32px 0 26px 42px;
}
.sptc-moshi-intro-title,
.sptc-moshi-gate-title {
  width: calc(100cqi - 294px);
  max-width: 100%;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 4px dotted var(--sptc-deep-d);
  color: var(--sptc-deep-d);
  font-size: clamp(27px, 5cqi, 40px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: .03em;
  white-space: nowrap;
}
.sptc-moshi-intro-title {
  width: calc(100cqi - 250px);
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--sptc-deep-d);
  font-size: clamp(28px, 5cqi, 38px);
  letter-spacing: 0;
  white-space: nowrap;
}
.sptc-moshi-intro-lead,
.sptc-moshi-gate-lead {
  margin: 13px 0 0;
  color: #243043;
  font-size: clamp(13px, 2.1cqi, 17px);
  font-weight: 700;
  line-height: 1.65;
}
/* リード文の幅を制限し、右のプレビュー画像に文字が被らないようにする（TAL と同じ計算） */
.sptc-moshi-intro-hero .sptc-moshi-intro-lead,
.sptc-moshi-gate-hero .sptc-moshi-gate-lead {
  width: calc(100cqi - 294px);
  max-width: 100%;
}
.sptc-moshi-intro-hero .sptc-moshi-intro-lead {
  color: var(--sptc-deep);
  font-weight: 800;
  white-space: nowrap;
}
.sptc-moshi-mobile-break,
.sptc-moshi-gate-mobile-break { display: none; }
.sptc-moshi-intro-kyoka,
.sptc-moshi-gate-kyoka {
  position: absolute;
  top: 0;
  right: 20px;
  width: 210px;
  height: 210px;
  object-fit: contain;
}
/* ヒーロー右の2部構成プレビュー */
.sptc-moshi-intro-preview {
  position: absolute;
  right: 22px;
  bottom: -23px;
  width: 204px;
  height: 218px;
  margin: 0;
  pointer-events: none;
}
.sptc-moshi-preview-phone {
  position: absolute;
  display: block;
  width: 96px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(10, 70, 85, .2));
  transform-origin: 50% 58%;
}
.sptc-moshi-preview-phone--ability {
  top: 22px;
  left: 8px;
  transform: rotate(-5deg);
}
.sptc-moshi-preview-phone--personality {
  top: 3px;
  right: 6px;
  transform: rotate(6deg);
}
.sptc-moshi-gate-preview {
  bottom: -27px;
}
.sptc-moshi-intro-body {
  width: min(calc(100% - 48px), 760px);
  margin: 0 auto;
  padding: 18px 0 26px;
}
.sptc-moshi-intro-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sptc-moshi-intro-spec {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 11px 15px;
  border: 1px solid #A6DAE3;
  border-radius: 14px;
  background: #F0F9FB;
}
.sptc-moshi-intro-spec-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #D9F0F4;
}
.sptc-moshi-intro-spec-icon img {
  display: block;
  width: 36px;
  height: 36px;
}
.sptc-moshi-intro-spec-part {
  display: block;
  margin-bottom: 1px;
  color: var(--sptc-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.sptc-moshi-intro-spec-name {
  display: block;
  color: #241C30;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.sptc-moshi-intro-spec-meta {
  display: block;
  margin-top: 3px;
  color: #52607a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.sptc-moshi-intro-caution {
  margin-top: 13px;
  padding: 12px 17px 13px;
  border: 1px solid #A6DAE3;
  border-radius: 13px;
  background: #fff6e9;
}
.sptc-moshi-intro-caution-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #a85700;
  font-size: 13px;
  font-weight: 800;
}
.sptc-moshi-intro-caution-title img {
  width: 17px;
  height: 17px;
  filter: invert(54%) sepia(93%) saturate(2438%) hue-rotate(9deg) brightness(99%) contrast(101%);
}
.sptc-moshi-intro-caution ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  color: #4d443b;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
}
.sptc-moshi-intro-caution li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding-left: 0;
}
.sptc-moshi-intro-caution li::before {
  position: static;
  width: 6px;
  height: 6px;
  margin-top: calc((1.6em - 6px) / 2);
  border-radius: 50%;
  background: var(--sptc-orange);
  content: "";
}
.sptc-moshi-intro-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 600px);
  min-height: 58px;
  margin: 19px auto 0;
  border: 0;
  border-radius: 32px;
  color: #fff;
  background: var(--sptc-deep);
  box-shadow: 0 6px 0 var(--sptc-deep-d), 0 13px 20px rgba(10,70,85,.22);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .05em;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.sptc-moshi-intro-start:hover { background: var(--sptc-deep-d); transform: translateY(-1px); }
.sptc-moshi-intro-start:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--sptc-deep-d); }
.sptc-moshi-intro-start img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.sptc-moshi-intro-note {
  margin: 22px 0 0;
  color: #7b8290;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}
body .entry-content .sptc-moshi .sptc-moshi-intro-caution ul {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .entry-content .sptc-moshi .sptc-moshi-intro-caution li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* ===== LINEゲート ===== */
.sptc-moshi-gate-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--sptc-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.sptc-moshi-gate-body {
  width: min(calc(100% - 48px), 680px);
  margin: 0 auto;
  padding: 25px 0 28px;
  text-align: center;
}
.sptc-moshi-gate-perk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 7px 15px;
  border: 1px solid #bce8cb;
  border-radius: 22px;
  color: #138f83;
  background: #effbf3;
  font-size: 14px;
  font-weight: 800;
}
.sptc-moshi-gate-perk::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid #bce8cb;
  border-bottom: 1px solid #bce8cb;
  background: #effbf3;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}
.sptc-moshi-gate-perk img {
  width: 18px;
  height: 18px;
  filter: invert(45%) sepia(39%) saturate(990%) hue-rotate(125deg) brightness(91%) contrast(88%);
}
.sptc-moshi-line-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  border-radius: 34px;
  color: #fff !important;
  background: #06c755;
  box-shadow: 0 6px 0 #05a948, 0 13px 22px rgba(6,199,85,.2);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .03em;
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.sptc-moshi-line-button:hover { color: #fff !important; background: #10d45e; transform: translateY(-1px); }
.sptc-moshi-line-button:active { transform: translateY(5px); box-shadow: 0 1px 0 #05a948; }
.sptc-moshi-line-badge {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.sptc-moshi-line-badge img { width: 30px; height: 30px; object-fit: contain; display: block; }
.sptc-moshi-line-label {
  position: absolute;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 0 44px;
  text-align: center;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.sptc-moshi-gate-form { margin-top: 22px; }
.sptc-moshi-gate-field { position: relative; }
.sptc-moshi-gate-lock {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.sptc-moshi-gate-lock-body {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  background: #949aa0;
}
.sptc-moshi-gate-lock-shackle {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #949aa0;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.sptc-moshi .sptc-moshi-gate-input {
  width: 100%;
  height: 58px;
  margin: 0;
  padding: 0 60px 0 52px;
  border: 2px solid #aebfe0;
  border-radius: 15px;
  color: #241C30;
  background: #F0F9FB;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}
.sptc-moshi .sptc-moshi-gate-input::placeholder { color: #99a0b0; }
.sptc-moshi .sptc-moshi-gate-input:focus {
  border-color: var(--sptc-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,95,115,.16);
  outline: none;
}
.sptc-moshi .sptc-moshi-gate-input.is-error { border-color: #e04e4e; color: #e04e4e; }
.sptc-moshi-gate-go {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--sptc-deep);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .08s ease;
}
.sptc-moshi-gate-go:hover { background: var(--sptc-deep-d); }
.sptc-moshi-gate-go:active { transform: translateY(-50%) scale(.94); }
.sptc-moshi-gate-error {
  margin: 10px 0 0;
  color: #d54747;
  font-size: 12px;
  font-weight: 800;
}
.sptc-moshi-gate-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #7d8390;
  font-size: 14px;
  font-weight: 700;
}
.sptc-moshi-gate-proof img { width: 26px; height: 26px; }
.sptc-moshi-gate-proof strong { color: #f27600; font-size: 21px; font-weight: 900; }
.sptc-moshi-gate-note {
  margin: 14px 0 0;
  color: var(--sptc-orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}
.sptc-moshi-gate-back {
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--sptc-sub);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sptc-moshi-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sptc-moshi-intro-start:focus-visible,
.sptc-moshi-line-button:focus-visible,
.sptc-moshi-gate-go:focus-visible,
.sptc-moshi-gate-back:focus-visible,
.sptc-moshi-gate-input:focus-visible {
  outline: 4px solid rgba(15,95,115,.28);
  outline-offset: 4px;
}

/* ===== 第2部開始カード ===== */
.sptc-moshi-start-card { padding: 22px 18px 24px; text-align: center; }
.sptc-moshi-start-head {
  font-size: 18px;
  font-weight: 800;
  color: var(--sptc-deep);
  margin-bottom: 10px;
  line-height: 1.5;
}
.sptc-moshi-start-lead {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--sptc-ink);
  margin: 0 auto 16px;
  max-width: 40em;
}
.sptc-moshi-start {
  display: inline-block;
  background: var(--sptc-deep);
  color: #fff;
  border: none;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 34px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 12px rgba(10,70,85,.24);
}
.sptc-moshi-start:hover { background: var(--sptc-deep-d); }
.sptc-moshi-start:active { transform: translateY(1px); }

/* ===== 進捗バー（第1部/第2部共通） ===== */
.sptc-moshi-screen[data-screen="part1"],
.sptc-moshi-screen[data-screen="part2"] {
  background: #F0F9FB;
}
.sptc-moshi-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 18px 0;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 15px;
  color: #fff;
  background: #008DA1;
  box-shadow: 0 7px 0 #073643, 0 14px 26px rgba(10,70,85,.18);
}
.sptc-moshi-bar-part {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.sptc-moshi-bar-part::before {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 9px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  content: "1";
  font-size: 12px;
}
.sptc-moshi-screen[data-screen="part2"] .sptc-moshi-bar-part::before { content: "2"; }
.sptc-moshi-bar-progress {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(0,20,60,.18);
  font-size: 12px;
  font-weight: 800;
}
.sptc-moshi-bar-timer {
  min-width: 72px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #fff;
  color: var(--sptc-deep);
  box-shadow: 0 3px 0 rgba(10,70,85,.2);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.sptc-moshi-bar-timer.is-warning {
  color: #c86a00;
  background: #fff3df;
  animation: sptc-moshi-pulse 1s infinite;
}
@keyframes sptc-moshi-pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

.sptc-moshi-timebar {
  height: 7px;
  margin: 13px 30px 0;
  overflow: hidden;
  border: 1px solid #d5ddee;
  border-radius: 999px;
  background: #e8edf7;
}
.sptc-moshi-timebar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: #0F7C8D;
  box-shadow: 0 0 10px rgba(15,95,115,.28);
  transition: width 1s linear;
}

/* ===== 質問 ===== */
.sptc-moshi-q {
  position: relative;
  margin: 20px 18px 0;
  padding: 25px 22px 20px;
  border: 1px solid #dbe1ee;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(10,70,85,.09), inset 0 1px 0 #fff;
}
.sptc-moshi-q::before {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--sptc-deep);
  background: #D9F0F4;
  content: "QUESTION";
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .15em;
}
.sptc-moshi-q-text {
  margin: 0 0 11px;
  color: #4d2b12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: .015em;
}
.sptc-moshi-q-text table { max-width: 100%; }
.sptc-moshi-q-hint {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #60697c;
  background: #F0F9FB;
  font-size: 11.5px;
  font-weight: 600;
}
.sptc-moshi-q-hint strong { color: var(--sptc-deep); }

.sptc-moshi-choices { display: flex; flex-direction: column; gap: 10px; }
.sptc-moshi-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 12px 15px;
  border: 1px solid #dce2ec;
  border-radius: 13px;
  color: #30384a;
  background: #fff;
  box-shadow: 0 3px 0 #e6eaf1, 0 7px 16px rgba(10,70,85,.045);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  text-align: left;
  transition: transform .14s, border-color .14s, background .14s, box-shadow .14s;
}
.sptc-moshi-choice:hover {
  border-color: var(--sptc-blue);
  background: #F0F9FB;
  box-shadow: 0 4px 0 #A6DAE3, 0 9px 18px rgba(15,95,115,.08);
  transform: translateY(-1px);
}
.sptc-moshi-choice:focus-visible {
  outline: 3px solid rgba(15,95,115,.24);
  outline-offset: 2px;
}
.sptc-moshi-choice.is-selected {
  border-color: var(--sptc-deep);
  color: var(--sptc-deep-d);
  background: #D9F0F4;
  box-shadow: 0 4px 0 #A6DAE3, 0 9px 20px rgba(15,95,115,.13);
  transform: translateY(-1px);
}
.sptc-moshi-choice-check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid #c1cbe0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(10,70,85,.08);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.sptc-moshi-choice.is-selected .sptc-moshi-choice-check {
  border-color: var(--sptc-deep);
  background: #008DA1;
  box-shadow: 0 3px 7px rgba(15,95,115,.25);
}
.sptc-moshi-choice-check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity .12s;
}
.sptc-moshi-choice.is-selected .sptc-moshi-choice-check::after { opacity: 1; }
.sptc-moshi-choice-label { flex: 1; }

.sptc-moshi-q-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px;
  padding: 16px 4px 24px;
}
.sptc-moshi-q-selected {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  color: #657081;
  font-size: 11.5px;
  font-weight: 700;
}
.sptc-moshi-q-selected::before {
  width: 8px;
  height: 8px;
  border: 2px solid #9fb0d0;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.sptc-moshi-next, .sptc-moshi-finish {
  min-width: 126px;
  min-height: 45px;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: #008DA1;
  box-shadow: 0 5px 0 #006F80, 0 10px 18px rgba(15,95,115,.18);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.sptc-moshi-next:hover, .sptc-moshi-finish:hover {
  background: #006F80;
  transform: translateY(-1px);
}
.sptc-moshi-next:active, .sptc-moshi-finish:active {
  box-shadow: 0 1px 0 #006F80;
  transform: translateY(4px);
}
.sptc-moshi-next:disabled, .sptc-moshi-finish:disabled {
  color: #fff;
  background: #cbd2de;
  box-shadow: 0 4px 0 #b0b8c6;
  cursor: not-allowed;
  transform: none;
}
.sptc-moshi-finish { background: var(--sptc-deep); box-shadow: 0 5px 0 var(--sptc-deep-d), 0 10px 18px rgba(15,95,115,.18); }
.sptc-moshi-finish:hover { background: var(--sptc-deep-d); }
.sptc-moshi-finish:active { box-shadow: 0 1px 0 var(--sptc-deep-d); }

/* ===== 結果本体（ゲート解除後） ===== */
.sptc-moshi-result-body { padding: 8px 16px 18px; }
.sptc-moshi-rb-eyebrow {
  font-size: 13px;
  font-weight: 800;
  color: var(--sptc-deep);
  text-align: center;
  letter-spacing: .04em;
  margin: 22px 0 12px;
}

/* 結果ヒーロー（総合スコア） */
.sptc-moshi-rb-hero {
  border-radius: 16px;
  padding: 18px 16px 20px;
  text-align: center;
}
.sptc-moshi-rb-hero--safe    { background: #E8F5EC; border: 1px solid #bfe3c8; }
.sptc-moshi-rb-hero--caution { background: #fff7ed; border: 1px solid #fad9ad; }
.sptc-moshi-rb-hero--danger  { background: #fdecec; border: 1px solid #f5c2c2; }
.sptc-moshi-rb-hero-band {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
.sptc-moshi-rb-hero--safe    .sptc-moshi-rb-hero-band { background: #1f8a80; }
.sptc-moshi-rb-hero--caution .sptc-moshi-rb-hero-band { background: #d18309; }
.sptc-moshi-rb-hero--danger  .sptc-moshi-rb-hero-band { background: #d23b3b; }
.sptc-moshi-rb-hero-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sptc-moshi-rb-hero-metric {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sptc-moshi-rb-hero-num {
  color: var(--sptc-deep);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
}
.sptc-moshi-rb-hero-num.is-low { color: #d18309; }
.sptc-moshi-rb-hero-num small { font-size: 18px; font-weight: 800; margin-left: 2px; }
.sptc-moshi-rb-hero-cap {
  margin-top: 8px;
  color: #56606f;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}
.sptc-moshi-rb-hero-sep { width: 1px; align-self: stretch; background: rgba(0,0,0,.1); }
.sptc-moshi-rb-hero-text {
  margin: 0;
  color: var(--sptc-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  text-align: left;
}

/* 科目別バー */
.sptc-moshi-rb-axes {
  border: 1px solid var(--sptc-line);
  border-radius: 14px;
  padding: 14px 16px 16px;
}
.sptc-moshi-rb-axis { margin-bottom: 14px; }
.sptc-moshi-rb-axis:last-child { margin-bottom: 0; }
.sptc-moshi-rb-axis-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.sptc-moshi-rb-axis-name { font-size: 13px; font-weight: 800; color: var(--sptc-ink); }
.sptc-moshi-rb-axis-val { font-size: 12px; font-weight: 800; color: var(--sptc-deep); }
.sptc-moshi-rb-axis-track { height: 9px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.sptc-moshi-rb-axis-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--sptc-blue);
}
.sptc-moshi-rb-axis-fill.is-low { background: #e0a86a; }

/* 全問レビュー */
.sptc-moshi-rb-reviews { display: flex; flex-direction: column; gap: 12px; }
.sptc-moshi-rb-review {
  border: 1px solid var(--sptc-line);
  border-left: 4px solid #cbd2de;
  border-radius: 12px;
  padding: 13px 15px 15px;
  background: #fff;
}
.sptc-moshi-rb-review.is-correct { border-left-color: #1f8a80; }
.sptc-moshi-rb-review.is-wrong { border-left-color: #e04e4e; }
.sptc-moshi-rb-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sptc-moshi-rb-review-no {
  color: var(--sptc-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
.sptc-moshi-rb-review-badge {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.sptc-moshi-rb-review.is-correct .sptc-moshi-rb-review-badge { color: #1f8a80; background: #E4F8F6; }
.sptc-moshi-rb-review.is-wrong .sptc-moshi-rb-review-badge { color: #d23b3b; background: #fdecec; }
.sptc-moshi-rb-review-q {
  margin: 0 0 9px;
  color: #26303f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
}
.sptc-moshi-rb-review-q table { max-width: 100%; }
.sptc-moshi-rb-review-ans,
.sptc-moshi-rb-review-correct {
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  color: #3a4453;
}
.sptc-moshi-rb-review-ans span,
.sptc-moshi-rb-review-correct span { color: #838b98; font-weight: 700; }
.sptc-moshi-rb-review.is-wrong .sptc-moshi-rb-review-ans { color: #c0392b; }
.sptc-moshi-rb-review-correct { color: #1f8a80; }
.sptc-moshi-rb-review-exp {
  margin-top: 9px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #F0F9FB;
  color: #3f4757;
  font-size: 12.5px;
  line-height: 1.75;
}
.sptc-moshi-rb-review-exp strong { color: var(--sptc-deep-d); }

.sptc-moshi-rb-note {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  text-align: center;
  margin: 18px 4px 0;
}

/* ===== スマホ ===== */
@media (max-width: 600px) {
  .sptc-moshi { border-radius: 14px; }
  .sptc-moshi-intro-hero,
  .sptc-moshi-gate-hero { min-height: 195px; }
  .sptc-moshi-intro-heading,
  .sptc-moshi-gate-heading { width: 72%; padding: 28px 0 24px 24px; }
  /* ゲート見出しが固定21px+nowrapのため狭い端末で右のプレビュー画像に被っていた（2026-07-30 修正）。
     コンテナ幅に追従させ、収まらない場合は被らせず折り返す。イントロ見出しは下で個別に上書き。 */
  .sptc-moshi-intro-title,
  .sptc-moshi-gate-title {
    width: calc(100cqi - 152px);
    max-width: 100%;
    padding-bottom: 9px;
    border-bottom-width: 3px;
    font-size: clamp(15px, 5.4cqi, 21px);
    white-space: normal;
  }
  .sptc-moshi-intro-title {
    width: calc(100cqi - 146px);
    max-width: none;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(18px, 5.4cqi, 21px);
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .sptc-moshi-intro-lead,
  .sptc-moshi-gate-lead { width: 220px; margin-top: 10px; font-size: 11px; }
  .sptc-moshi-intro-lead { font-size: 13px; }
  /* モバイルは2クラス指定で幅を上書き（PC用 calc(100cqi-294px) の漏れ防止・プレビューと非重複） */
  .sptc-moshi-intro-hero .sptc-moshi-intro-lead {
    width: 200px;
    max-width: none;
    color: var(--sptc-deep);
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .sptc-moshi-gate-hero .sptc-moshi-gate-lead { width: min(178px, calc(100cqi - 152px)); }
  .sptc-moshi-mobile-break,
  .sptc-moshi-gate-mobile-break { display: block; }
  .sptc-moshi-intro-kyoka,
  .sptc-moshi-gate-kyoka { top: 24px; right: 4px; width: 128px; height: 128px; }
  /* 端末モックはモバイルでも96px幅のままで縦が枠を74pxはみ出し、ヒーローの overflow:hidden で下が
     切れていた（2026-07-30 修正）。他模試（V-CAT/NMAT/3E）と同じ 112×158枠＋小さめ端末に揃える。 */
  .sptc-moshi-intro-preview {
    right: 4px;
    bottom: -4px;
    width: 112px;
    height: 158px;
  }
  .sptc-moshi-preview-phone { width: 60px; }
  .sptc-moshi-preview-phone--ability { top: 22px; left: 4px; }
  .sptc-moshi-preview-phone--personality { top: 6px; right: 4px; }
  .sptc-moshi-gate-preview { bottom: -4px; }
  .sptc-moshi-intro-body,
  .sptc-moshi-gate-body { width: calc(100% - 28px); padding: 22px 0 26px; }
  .sptc-moshi-intro-specs { grid-template-columns: 1fr; gap: 9px; }
  .sptc-moshi-intro-spec { grid-template-columns: 54px minmax(0, 1fr); min-height: 82px; padding: 11px 14px; }
  .sptc-moshi-intro-spec-icon { width: 54px; height: 54px; }
  .sptc-moshi-intro-spec-name { font-size: 17px; }
  .sptc-moshi-intro-caution { padding: 12px 14px 13px; }
  .sptc-moshi-intro-caution ul { grid-template-columns: 1fr; gap: 3px; font-size: 11px; }
  .sptc-moshi-intro-start { min-height: 54px; margin-top: 17px; font-size: 16px; }
  .sptc-moshi-gate-perk { margin-bottom: 14px; padding: 6px 13px; font-size: 13px; }
  .sptc-moshi-line-button { min-height: 60px; font-size: 13px; }
  .sptc-moshi-line-badge { left: 13px; }
  .sptc-moshi-line-label { padding: 0 42px; font-size: 15px; }
  .sptc-moshi-gate-form { margin-top: 20px; }
  .sptc-moshi .sptc-moshi-gate-input { height: 54px; border-radius: 14px; font-size: 15px; }
  .sptc-moshi-gate-go { width: 40px; height: 40px; }
  .sptc-moshi-gate-proof { font-size: 13px; }
  .sptc-moshi-gate-proof img { width: 23px; height: 23px; }
  .sptc-moshi-gate-proof strong { font-size: 19px; }
  .sptc-moshi-bar { gap: 7px; margin: 12px 12px 0; padding: 10px; border-radius: 13px; }
  .sptc-moshi-bar-part { gap: 7px; font-size: 11px; letter-spacing: 0; }
  .sptc-moshi-bar-part::before { flex-basis: 23px; width: 23px; height: 23px; border-radius: 7px; font-size: 10px; }
  .sptc-moshi-bar-progress { padding: 4px 7px; font-size: 10.5px; }
  .sptc-moshi-bar-timer { min-width: 61px; padding: 4px 6px; font-size: 13px; }
  .sptc-moshi-timebar { height: 6px; margin: 11px 22px 0; }
  .sptc-moshi-q { margin: 16px 12px 0; padding: 18px 14px 15px; border-radius: 15px; }
  .sptc-moshi-q::before { min-height: 21px; margin-bottom: 8px; padding: 0 8px; font-size: 8.5px; }
  .sptc-moshi-q-text { margin-bottom: 9px; font-size: 14px; line-height: 1.7; }
  .sptc-moshi-q-hint { margin-bottom: 13px; padding: 5px 8px; font-size: 10.5px; }
  .sptc-moshi-choices { gap: 9px; }
  .sptc-moshi-choice { min-height: 51px; gap: 10px; padding: 10px 11px; border-radius: 11px; font-size: 12px; }
  .sptc-moshi-choice-check { width: 22px; height: 22px; }
  .sptc-moshi-q-foot { margin: 0 12px; padding: 14px 2px 21px; }
  .sptc-moshi-q-selected { font-size: 10.5px; }
  .sptc-moshi-next,
  .sptc-moshi-finish { min-width: 108px; min-height: 43px; padding: 9px 18px; font-size: 13px; }
  .sptc-moshi-rb-hero-num { font-size: 38px; }
  .sptc-moshi-rb-hero-num small { font-size: 16px; }
  .sptc-moshi-rb-hero-cap { font-size: 10.5px; }
  .sptc-moshi-result-body { padding: 8px 12px 16px; }
}

/* 記事内広告枠は作らない方針（2026-08-07 オーナー判断・サイドバー導線のみ）。
   複製元にあった .<ns>-ad / .<ns>-ad-anchor のブロックはここで削除している。 */

/* ===== 結果ローディング（「結果を集計しています」くるくる）===== */
.sptc-moshi-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  padding: 48px 20px;
  text-align: center;
}
.sptc-moshi-loader[hidden] { display: none; }
.sptc-moshi-loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid var(--sptc-deep-l, #D9F0F4);
  border-top-color: var(--sptc-deep, #008DA1);
  animation: sptc-moshi-spin .8s linear infinite;
}
.sptc-moshi-loader-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--sptc-deep-d, #006F80);
  letter-spacing: .04em;
}
@keyframes sptc-moshi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sptc-moshi-loader-spinner { animation-duration: 1.8s; }
}

/* 出題分野を並べると 360px で1行に収まらないため、spec-meta は折り返し可にする。 */
.sptc-moshi-intro-spec-meta { white-space: normal; }

/* ===== 問題の図版・表（非言語のベン図／席順／資料解釈の表など） =====
   バンク側の image / image_answer は inline SVG か inline table。SVG は自前で
   max-width:100%;height:auto を持つが、表は幅が出るので横スクロールで受ける。 */
.sptc-moshi-q-figure { margin: 10px 0 2px; }
.sptc-moshi-q-figure[hidden] { display: none; }
.sptc-moshi-q-figure svg { max-width: 100%; height: auto; display: block; margin: 12px auto; }
.sptc-moshi-q-figure table,
.sptc-moshi-rb-review-exp table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.sptc-moshi-rb-review-exp svg { max-width: 100%; height: auto; display: block; margin: 10px auto; }

/* ===== ヒーローのはみ出し対策（端末モック2枚と共存させる） =====
   基本ルールの `.sptc-moshi-intro-hero .sptc-moshi-intro-lead { white-space: nowrap }` は
   2クラス指定で特異度が高く単独クラスでは勝てない。同じ2クラス指定で打ち消す。
   見出しコンテナの `calc(100cqi - 250/294px)` は左padding(42px)を計算に入れていないので、
   box-sizing:border-box ＋ %指定にして中身を折り返させる（[[reference_moshi_phone_mockup]] 4節）。
   予約幅はモックの実寸に合わせて出し分ける＝PC 204px+right22px、モバイル 112px+right4px。 */
.sptc-moshi-intro-hero .sptc-moshi-intro-lead,
.sptc-moshi-gate-hero .sptc-moshi-gate-lead {
  box-sizing: border-box;
  width: 100%;              /* 予約幅は見出しコンテナ側で持つ */
  max-width: 100%;
  white-space: normal;      /* 最悪でも折り返す＝モックに侵入させない */
  overflow-wrap: anywhere;
}
.sptc-moshi-intro-heading,
.sptc-moshi-gate-heading {
  box-sizing: border-box;
  width: calc(100% - 236px);   /* PC＝プレビュー204px + right22px + 余白10px */
}
.sptc-moshi-intro-hero .sptc-moshi-intro-title,
.sptc-moshi-gate-hero .sptc-moshi-gate-title {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 600px) {
  .sptc-moshi-intro-heading,
  .sptc-moshi-gate-heading { width: calc(100% - 124px); }  /* モバイル＝112px + right4px + 余白8px */
}
/* ===== イントロを1画面に収める（`本番模試` スキル §3-1 の確定型・[[feedback_moshi_intro_needs_firstview_cta]]）
   330/390/記事カラム670px の3幅で「開始ボタンの下端 ≦ 700px」（iPhone実効780px − 固定ヘッダー62px）＝
   スクロールなしで「試験を開始する」がファーストビューに入るのが基準。
   求められているのはボタンの追加ではなく縦圧縮。効く順＝①カードを横2列＋アイコン無し
   ②ヒーローの高さ ③注意事項と本文padding ④スペックは問数と時間だけ。⚠ 基本ルールより後ろに置く。 */
.sptc-moshi-intro-hero { min-height: 168px; }
.sptc-moshi-intro-heading { padding: 22px 0 18px 20px; }
.sptc-moshi-intro-lead { margin-top: 9px; }
.sptc-moshi-intro-body { padding: 14px 0 20px; }

/* アイコンは置かない＝カードは1カラム構成（スマホでも横2列を維持する） */
.sptc-moshi-intro-specs { grid-template-columns: 1fr 1fr; gap: 10px; }
.sptc-moshi-intro-spec {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 11px 13px;
}
.sptc-moshi-intro-spec-part { font-size: 10px; }
.sptc-moshi-intro-spec-name { font-size: 15px; line-height: 1.35; }
.sptc-moshi-intro-spec-meta { margin-top: 3px; font-size: 12px; line-height: 1.5; white-space: normal; }

.sptc-moshi-intro-caution { margin-top: 10px; padding: 11px 13px; }
.sptc-moshi-intro-caution-title { margin-bottom: 5px; }
.sptc-moshi-intro-caution ul { margin: 0; }
.sptc-moshi-intro-caution li { margin: 0; line-height: 1.45; }
.sptc-moshi-intro-start { margin-top: 12px; }

@media (max-width: 400px) {
  .sptc-moshi-intro-specs { gap: 8px; }
  .sptc-moshi-intro-spec { padding: 10px 11px; }
  .sptc-moshi-intro-spec-name { font-size: 14px; }
  .sptc-moshi-intro-spec-meta { font-size: 11.5px; }
}

/* =====================================================================
   ここから下＝本番テストセンター再現UI（arorua模試には無い追加分）
   ①記事別テーマ色 ②問題ごとの時計 ③4タブ資料 ④長文 ⑤チェックボックス
   ⑥結果のボーダー表／高得点指標チェック
   ===================================================================== */

/* ① kotoku モード（/suiron-checkbox-indicator/・アイキャッチ #009CB2）の色差し替え。
      面だけ accent、白文字が乗るところは実測した暗い同系色にする。 */
.sptc-moshi[data-mode="kotoku"] {
  --sptc-accent: #009CB2;   /* 白文字 3.28:1 ＝面のみ */
  --sptc-deep: #00889C;     /* 白文字 4.20:1 */
  --sptc-deep-d: #006F80;   /* 白文字 5.86:1 */
  --sptc-deep-l: #DFF2F6;
  --sptc-blue: #00889C;
  --sptc-blue-d: #006F80;
  --sptc-mist: #F1FAFC;
}

/* ② 問題ごとの制限時間の時計（本番の再現）
      記事 /suiron-checkbox-indicator/ が高得点指標に挙げている「残り問題の時計の針」。
      conic-gradient の角度を JS が --sptc-clock-deg で回す＝画像なし・再描画が軽い。 */
.sptc-moshi-qclock {
  --sptc-clock-deg: 360deg;
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    conic-gradient(var(--sptc-accent) var(--sptc-clock-deg), #e6ebf2 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sptc-moshi-qclock.is-warning { background: conic-gradient(#e8833c var(--sptc-clock-deg), #f3e2d4 0); }
.sptc-moshi-qclock-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16,60,70,.06);
}
/* 針。JS が rotate() を書き換える（残りが減るほど時計回りに進む＝本番の見え方） */
.sptc-moshi-qclock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 13px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--sptc-deep-d);
  transform-origin: 50% 100%;
}
.sptc-moshi-qclock.is-warning .sptc-moshi-qclock-hand { background: #c2610f; }
.sptc-moshi-qclock-num {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--sptc-deep-d);
  transform: translateY(9px);
}
.sptc-moshi-qclock.is-warning .sptc-moshi-qclock-num { color: #c2610f; }
.sptc-moshi-qclock-cap {
  font-size: 9.5px;
  color: #7d8698;
  text-align: center;
  line-height: 1.2;
  margin-top: 2px;
}
.sptc-moshi-qclock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ③ 4タブの資料読み取り */
.sptc-moshi-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 -1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sptc-moshi-tabs::-webkit-scrollbar { display: none; }
.sptc-moshi-tab {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--sptc-line);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  background: #f4f6fa;
  font-size: 12.5px;
  font-weight: 700;
  color: #6a7387;
  cursor: pointer;
  white-space: nowrap;
}
.sptc-moshi-tab.is-active {
  background: #fff;
  color: var(--sptc-deep-d);
  border-color: var(--sptc-line);
  border-bottom-color: #fff;
  box-shadow: 0 -2px 0 var(--sptc-accent) inset;
}
.sptc-moshi-tabpanel {
  border: 1px solid var(--sptc-line);
  border-radius: 0 10px 10px 10px;
  background: #fff;
  padding: 10px;
  margin: 0 0 14px;
  overflow-x: auto;          /* 表が広いときはこの中だけ横スクロール */
  -webkit-overflow-scrolling: touch;
}
.sptc-moshi-tabpanel table,
.sptc-moshi-passage-body table,
.sptc-moshi-rb-review-tab table {
  width: 100%;
  min-width: 0;   /* 2列の表なので狭い記事カラムでも横スクロールさせず収める */
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: auto;
}
.sptc-moshi-tabpanel th,
.sptc-moshi-tabpanel td,
.sptc-moshi-rb-review-tab th,
.sptc-moshi-rb-review-tab td {
  border: 1px solid #dfe4ee;
  padding: 6px 8px;
  text-align: right;
  white-space: nowrap;
}
.sptc-moshi-tabpanel th,
.sptc-moshi-rb-review-tab th { background: var(--sptc-mist); color: #46506a; font-weight: 700; }
.sptc-moshi-tabpanel td:first-child,
.sptc-moshi-tabpanel th:first-child,
.sptc-moshi-rb-review-tab td:first-child,
.sptc-moshi-rb-review-tab th:first-child { text-align: left; }
.sptc-moshi-tabpanel caption { caption-side: top; font-size: 12px; font-weight: 700; color: #46506a; text-align: left; padding-bottom: 6px; }

/* ④ 長文（同じ長文に設問が複数ぶら下がる＝本番の「長文が2題」の形） */
.sptc-moshi-passage {
  border: 1px solid var(--sptc-line);
  border-left: 3px solid var(--sptc-accent);
  border-radius: 10px;
  background: var(--sptc-mist);
  margin: 0 0 14px;
}
.sptc-moshi-passage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--sptc-line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sptc-deep-d);
}
.sptc-moshi-passage-no {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  color: #6a7387;
}
.sptc-moshi-passage-body {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #333;
  -webkit-overflow-scrolling: touch;
}
.sptc-moshi-passage-body p { margin: 0 0 10px; }
.sptc-moshi-passage-body p:last-child { margin-bottom: 0; }

/* ⑤ チェックボックス（複数選択）＝丸を角丸の四角に変えて「1つ選ぶ」と区別する */
.sptc-moshi-choices.is-multi .sptc-moshi-choice-check { border-radius: 6px; }
.sptc-moshi-choices.is-multi .sptc-moshi-choice { align-items: flex-start; }
.sptc-moshi-multi-note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: #7d8698;
}

/* ⑥-1 結果：企業別ボーダーと現在地 */
.sptc-moshi-rb-border {
  border: 1px solid var(--sptc-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.sptc-moshi-rb-border-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--sptc-line);
  font-size: 12.5px;
}
.sptc-moshi-rb-border-row.is-here {
  background: var(--sptc-deep-l);
  box-shadow: inset 3px 0 0 var(--sptc-accent);
}
.sptc-moshi-rb-border-pct {
  flex-shrink: 0;
  min-width: 62px;
  font-size: 16px;
  font-weight: 800;
  color: var(--sptc-deep-d);
  line-height: 1.1;
}
.sptc-moshi-rb-border-pct small { font-size: 10px; font-weight: 700; margin-left: 2px; }
.sptc-moshi-rb-border-firms { flex: 1; color: #4a5265; line-height: 1.55; }
.sptc-moshi-rb-border-here {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sptc-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.sptc-moshi-rb-border-note {
  margin: 0;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.7;
  color: #7d8698;
  background: #fbfcfe;
}

/* ⑥-2 結果：高得点指標のチェック */
.sptc-moshi-rb-inds { display: flex; flex-direction: column; gap: 8px; }
.sptc-moshi-rb-ind {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--sptc-line);
  border-radius: 12px;
  background: #fff;
}
.sptc-moshi-rb-ind.is-done { border-color: var(--sptc-accent); background: var(--sptc-deep-l); }
.sptc-moshi-rb-ind-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6ebf2;
  color: #98a1b3;
  font-size: 12px;
  font-weight: 800;
}
.sptc-moshi-rb-ind.is-done .sptc-moshi-rb-ind-mark { background: var(--sptc-deep); color: #fff; }
.sptc-moshi-rb-ind-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sptc-moshi-rb-ind-name {
  font-size: 13px;
  font-weight: 700;
  color: #2c3346;
  line-height: 1.4;
}
.sptc-moshi-rb-ind-name small {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sptc-deep-d);
}
.sptc-moshi-rb-ind-why { font-size: 11.5px; line-height: 1.65; color: #6a7387; }

/* ⑥-3 結果レビューに長文・タブ資料を再掲（解説を読むのに要る） */
.sptc-moshi-rb-review-passage {
  max-height: 180px;
  overflow-y: auto;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 12.5px;
  line-height: 1.8;
  color: #4a5265;
}
.sptc-moshi-rb-review-tabs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.sptc-moshi-rb-review-tab {
  padding: 8px;
  border: 1px solid var(--sptc-line);
  border-radius: 8px;
  overflow-x: auto;
  background: #fff;
}
.sptc-moshi-rb-review-tab > span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sptc-deep-d);
}

/* 狭い記事カラム（330px想定）で崩れないようにする */
@container (max-width: 360px) {
  .sptc-moshi-qclock { width: 40px; height: 40px; }
  .sptc-moshi-qclock-face { width: 31px; height: 31px; }
  .sptc-moshi-qclock-hand { height: 11px; }
  .sptc-moshi-tab { padding: 7px 10px; font-size: 11.5px; }
  .sptc-moshi-passage-body { max-height: 200px; font-size: 13px; }
  .sptc-moshi-rb-border-row { flex-wrap: wrap; }
  .sptc-moshi-rb-border-pct { min-width: 54px; font-size: 15px; }
  .sptc-moshi-rb-border-firms { flex: 1 1 100%; font-size: 12px; }
}

/* 問題文と「この問題の残り秒数」の時計を横並びにする（本番の配置に寄せる）。
   時計は右上に固定し、問題文は残り幅で折り返す。 */
.sptc-moshi-q-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sptc-moshi-q-main .sptc-moshi-q-text { flex: 1; min-width: 0; margin-top: 0; }
.sptc-moshi-q-main .sptc-moshi-qclock-wrap { flex-shrink: 0; width: 58px; }
@container (max-width: 360px) {
  .sptc-moshi-q-main { gap: 8px; }
  .sptc-moshi-q-main .sptc-moshi-qclock-wrap { width: 50px; }
  .sptc-moshi-qclock-cap { font-size: 9px; }
}

/* 適応型：高得点指標は「出題された/取れた/出題されず」の3状態で見せる */
.sptc-moshi-rb-ind.is-shown { border-color: #f0c48a; background: #fffaf2; }
.sptc-moshi-rb-ind.is-shown .sptc-moshi-rb-ind-mark { background: #f3a444; color: #fff; }
.sptc-moshi-rb-ind.is-locked { opacity: .72; }
.sptc-moshi-rb-ind.is-locked .sptc-moshi-rb-ind-name small { color: #98a1b3; font-weight: 600; }

/* =====================================================================
   出題画面を [spi_exam]（独立ページの本番模試）の体裁に合わせる
   （2026-08-07 オーナー指示「spi-exam みたいに本番と同じような画面に」）
   ローカル /spi-moshi/ の実画面から採寸：
     ・問題カード＝淡緑背景＋緑ボーダー、左だけ太い（spi-quiz-question）
     ・「問N.」は緑の太字（spi-quiz-qnum）
     ・回答時間＝緑→黄→赤の17段セグメント＋▼マーカー（spi-quiz-timebar）
     ・「次に進む」は全幅
   ===================================================================== */

.sptc-moshi-q-card {
  border: 1.5px solid var(--sptc-deep);
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--sptc-mist);
  padding: 14px 15px;
  margin: 0 0 14px;
}
.sptc-moshi-q-card .sptc-moshi-q-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  color: #2c3346;
}
.sptc-moshi-qnum {
  margin-right: 3px;
  color: var(--sptc-deep-d);
  font-size: 15.5px;
  font-weight: 800;
}
/* 解答状況はカード内の時計の下に置く（本番の「解答状況 0 / 20」と同じ位置づけ） */
.sptc-moshi-qclock-cap em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--sptc-deep-d);
}

/* 回答時間の信号機バー */
.sptc-moshi-timescale {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
}
.sptc-moshi-timescale-label {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #4a5265;
}
.sptc-moshi-timescale-track {
  position: relative;
  flex: 1;
  display: flex;
  gap: 3px;
  height: 20px;
  min-width: 0;
}
.sptc-moshi-timescale-seg {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
}
.sptc-moshi-timescale-marker {
  position: absolute;
  top: -9px;
  left: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #1f2328;
  pointer-events: none;
  will-change: left;
}

/* 「次に進む」は全幅（本番と同じ） */
.sptc-moshi-q-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.sptc-moshi-q-foot .sptc-moshi-q-selected {
  order: 1;
  text-align: center;
  font-size: 11.5px;
}
.sptc-moshi-q-foot .sptc-moshi-next,
.sptc-moshi-q-foot .sptc-moshi-finish {
  order: 2;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border-radius: 8px;
  font-size: 15.5px;
}

@container (max-width: 360px) {
  .sptc-moshi-q-card { padding: 12px 12px; }
  .sptc-moshi-q-card .sptc-moshi-q-text { font-size: 14.5px; }
  .sptc-moshi-timescale-label { font-size: 11px; }
  .sptc-moshi-timescale-track { height: 17px; gap: 2px; }
}

/* 時計は問題文と横並びにせず、カード右上へ回り込ませる。
   flex で横に並べると問題文の幅が 58px 削られ、箇条書きが1文字だけ次行に落ちる
   （330/390px で実際に発生）。float なら1行目だけ避けて、以降は全幅で流れる。 */
.sptc-moshi-q-card .sptc-moshi-q-main { display: block; }
.sptc-moshi-q-card .sptc-moshi-qclock-wrap {
  float: right;
  width: auto;
  margin: 0 0 8px 12px;
}
.sptc-moshi-q-card::after { content: ''; display: block; clear: both; }

/* [spi_exam] には「QUESTION」ラベルが無いので、本番寄せのため出さない */
.sptc-moshi-q::before { display: none !important; }
