/* ===== SPI-H（高卒向けSPI）本番想定模試 [spi_h_moshi] =====
   記事埋め込み（spi-mini 系・reset無し）。SPIボーダー判定模試の体裁を名前空間ごと複製し、
   性格パート（interpret）の見た目を cubic-moshi.css から移植して3部構成にしたもの。
   第1部=言語18問/10分、第2部=非言語10問/10分（どちらも採点）、第3部=性格12問/5分（正解なし）。
   記事 /spi-h/ のアイキャッチ実測ドミナントカラーは #9CC2EA（43.7%）。
   ただし #9CC2EA は白文字のコントラストが取れない淡色なので、同系のまま十分に暗くした
   #295F99（白文字 6.7:1＝14px でも AA）を主色に据え、#9CC2EA はヒーローのアクセントに使う。 */

.spih-moshi {
  --spih-eyecatch: #9CC2EA;
  --spih-deep: #295F99;
  --spih-deep-d: #1C4470;
  --spih-deep-l: #E2EDF8;
  --spih-blue: #3E7FBF;
  --spih-blue-d: #2A6099;
  --spih-mist: #F2F7FC;
  --spih-orange: #FF9A3C;
  --spih-orange-d: #C86A00;
  --spih-ink: #333;
  --spih-sub: #666;
  --spih-line: #e3e6ee;
  container-type: inline-size;
  font-family: inherit;
  color: var(--spih-ink);
  border: 1px solid var(--spih-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.spih-moshi button,
.spih-moshi input { font-family: inherit; }
#spih-honban-moshi { scroll-margin-top: 88px; }

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

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

/* ===== LINEゲート ===== */
.spih-moshi-gate-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--spih-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.spih-moshi-gate-body {
  width: min(calc(100% - 48px), 680px);
  margin: 0 auto;
  padding: 25px 0 28px;
  text-align: center;
}
.spih-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: #336EAD;
  background: #effbf3;
  font-size: 14px;
  font-weight: 800;
}
.spih-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);
}
.spih-moshi-gate-perk img {
  width: 18px;
  height: 18px;
  filter: invert(45%) sepia(39%) saturate(990%) hue-rotate(125deg) brightness(91%) contrast(88%);
}
.spih-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;
}
.spih-moshi-line-button:hover { color: #fff !important; background: #10d45e; transform: translateY(-1px); }
.spih-moshi-line-button:active { transform: translateY(5px); box-shadow: 0 1px 0 #05a948; }
.spih-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;
}
.spih-moshi-line-badge img { width: 30px; height: 30px; object-fit: contain; display: block; }
.spih-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;
}
.spih-moshi-gate-form { margin-top: 22px; }
.spih-moshi-gate-field { position: relative; }
.spih-moshi-gate-lock {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.spih-moshi-gate-lock-body {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  background: #949aa0;
}
.spih-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;
}
.spih-moshi .spih-moshi-gate-input {
  width: 100%;
  height: 58px;
  margin: 0;
  padding: 0 60px 0 52px;
  border: 2px solid #aebfe0;
  border-radius: 15px;
  color: #241C30;
  background: #F2F7FC;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}
.spih-moshi .spih-moshi-gate-input::placeholder { color: #99a0b0; }
.spih-moshi .spih-moshi-gate-input:focus {
  border-color: var(--spih-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(41,95,153,.16);
  outline: none;
}
.spih-moshi .spih-moshi-gate-input.is-error { border-color: #e04e4e; color: #e04e4e; }
.spih-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(--spih-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;
}
.spih-moshi-gate-go:hover { background: var(--spih-deep-d); }
.spih-moshi-gate-go:active { transform: translateY(-50%) scale(.94); }
.spih-moshi-gate-error {
  margin: 10px 0 0;
  color: #d54747;
  font-size: 12px;
  font-weight: 800;
}
.spih-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;
}
.spih-moshi-gate-proof img { width: 26px; height: 26px; }
.spih-moshi-gate-proof strong { color: #f27600; font-size: 21px; font-weight: 900; }
.spih-moshi-gate-note {
  margin: 14px 0 0;
  color: var(--spih-orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}
.spih-moshi-gate-back {
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--spih-sub);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.spih-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;
}
.spih-moshi-intro-start:focus-visible,
.spih-moshi-line-button:focus-visible,
.spih-moshi-gate-go:focus-visible,
.spih-moshi-gate-back:focus-visible,
.spih-moshi-gate-input:focus-visible {
  outline: 4px solid rgba(41,95,153,.28);
  outline-offset: 4px;
}

/* ===== 第2部開始カード ===== */
.spih-moshi-start-card { padding: 22px 18px 24px; text-align: center; }
.spih-moshi-start-head {
  font-size: 18px;
  font-weight: 800;
  color: var(--spih-deep);
  margin-bottom: 10px;
  line-height: 1.5;
}
.spih-moshi-start-lead {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--spih-ink);
  margin: 0 auto 16px;
  max-width: 40em;
}
.spih-moshi-start {
  display: inline-block;
  background: var(--spih-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(28,68,112,.24);
}
.spih-moshi-start:hover { background: var(--spih-deep-d); }
.spih-moshi-start:active { transform: translateY(1px); }

/* ===== 進捗バー（第1部/第2部共通） ===== */
.spih-moshi-screen[data-screen="part1"],
.spih-moshi-screen[data-screen="part2"] {
  background: #F2F7FC;
}
.spih-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: #295F99;
  box-shadow: 0 7px 0 #143354, 0 14px 26px rgba(28,68,112,.18);
}
.spih-moshi-bar-part {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.spih-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;
}
.spih-moshi-screen[data-screen="part2"] .spih-moshi-bar-part::before { content: "2"; }
.spih-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;
}
.spih-moshi-bar-timer {
  min-width: 72px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #fff;
  color: var(--spih-deep);
  box-shadow: 0 3px 0 rgba(28,68,112,.2);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.spih-moshi-bar-timer.is-warning {
  color: #c86a00;
  background: #fff3df;
  animation: spih-moshi-pulse 1s infinite;
}
@keyframes spih-moshi-pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

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

/* ===== 質問 ===== */
.spih-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(28,68,112,.09), inset 0 1px 0 #fff;
}
.spih-moshi-q::before {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--spih-deep);
  background: #E2EDF8;
  content: "QUESTION";
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .15em;
}
.spih-moshi-q-text {
  margin: 0 0 11px;
  color: #4d2b12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: .015em;
}
.spih-moshi-q-text table { max-width: 100%; }
.spih-moshi-q-hint {
  /* ⚠ 家族CSSは inline-flex だが、それだと文中の <strong> が独立したフレックスアイテムになり、
     ヒントが2行に折り返した瞬間に「…も／のを 1 選んで…／つ」のようにバラバラに割れる
     （第3部のヒントが長いので360pxで実際に発生した）。inline-block なら普通の行として折り返す。
     1行に収まる第1部・第2部の見た目は inline-flex と同じ。 */
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #60697c;
  background: #F2F7FC;
  font-size: 11.5px;
  font-weight: 600;
}
.spih-moshi-q-hint strong { color: var(--spih-deep); }

.spih-moshi-choices { display: flex; flex-direction: column; gap: 10px; }
.spih-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(28,68,112,.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;
}
.spih-moshi-choice:hover {
  border-color: var(--spih-blue);
  background: #F2F7FC;
  box-shadow: 0 4px 0 #C7DDF3, 0 9px 18px rgba(41,95,153,.08);
  transform: translateY(-1px);
}
.spih-moshi-choice:focus-visible {
  outline: 3px solid rgba(41,95,153,.24);
  outline-offset: 2px;
}
.spih-moshi-choice.is-selected {
  border-color: var(--spih-deep);
  color: var(--spih-deep-d);
  background: #E2EDF8;
  box-shadow: 0 4px 0 #C7DDF3, 0 9px 20px rgba(41,95,153,.13);
  transform: translateY(-1px);
}
.spih-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(28,68,112,.08);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.spih-moshi-choice.is-selected .spih-moshi-choice-check {
  border-color: var(--spih-deep);
  background: #295F99;
  box-shadow: 0 3px 7px rgba(41,95,153,.25);
}
.spih-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;
}
.spih-moshi-choice.is-selected .spih-moshi-choice-check::after { opacity: 1; }
.spih-moshi-choice-label { flex: 1; }

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

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

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

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

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

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

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

/* ===== 手動掲載広告 [ad_spih] ===== */
.spih-ad {
  container-type: inline-size;
  color: #333;
  font-family: inherit;
}
.spih-ad .btn-orange,
.spih-ad .btn-green {
  display: inline-block;
  box-sizing: border-box;
  width: 90%;
  margin: 5px 0;
  padding: .6em 1em;
  border-radius: 3px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 30%), 0 4px 6px -4px rgb(0 0 0 / 25%);
  color: #fff !important;
  text-decoration: none !important;
  vertical-align: middle;
  transition: opacity .2s ease, transform .2s ease;
}
.spih-ad .btn-orange:hover,
.spih-ad .btn-green:hover { opacity: .94; transform: translateY(-1px); }
.spih-ad .spih-ad-phones-link { display: block; }
.spih-ad .spih-ad-phones {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 2px auto 12px;
}
#spih-honban-moshi,
#spih-practice { scroll-margin-top: 88px; }
.spih-ad-anchor {
  display: block;
  width: 0;
  height: 0;
}

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

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

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

/* ===== ヒーローのはみ出し対策（端末モック2枚と共存させる） =====
   基本ルールの `.spih-moshi-intro-hero .spih-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。 */
.spih-moshi-intro-hero .spih-moshi-intro-lead,
.spih-moshi-gate-hero .spih-moshi-gate-lead {
  box-sizing: border-box;
  width: 100%;              /* 予約幅は見出しコンテナ側で持つ */
  max-width: 100%;
  white-space: normal;      /* 最悪でも折り返す＝モックに侵入させない */
  overflow-wrap: anywhere;
}
.spih-moshi-intro-heading,
.spih-moshi-gate-heading {
  box-sizing: border-box;
  width: calc(100% - 236px);   /* PC＝プレビュー204px + right22px + 余白10px */
}
.spih-moshi-intro-hero .spih-moshi-intro-title,
.spih-moshi-gate-hero .spih-moshi-gate-title {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 600px) {
  .spih-moshi-intro-heading,
  .spih-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 ④スペックは問数と時間だけ。⚠ 基本ルールより後ろに置く。 */
.spih-moshi-intro-hero { min-height: 168px; }
.spih-moshi-intro-heading { padding: 22px 0 18px 20px; }
.spih-moshi-intro-lead { margin-top: 9px; }
.spih-moshi-intro-body { padding: 14px 0 20px; }

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

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

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

/* イントロのスペックカードは3枚（言語／非言語／性格）。
   横2列のままだと3枚目が右半分だけの孤立カードになるので、3枚目は2列ぶち抜きにする。
   モバイルで1列に落ちる指定（上の @media）でも 1/-1 は「その1列ぶん」なので無害。 */
.spih-moshi-intro-spec:nth-child(3) { grid-column: 1 / -1; }

/* ===== 第3部 性格検査 interpret 結果（cubic-moshi.css から移植・配色だけ spih に合わせた） ===== */
.spih-moshi-pc-axes { display:flex; flex-direction:column; gap:8px; }
.spih-moshi-pc-axes .spih-moshi-rb-axis-head { display:flex; align-items:center; justify-content:space-between; }
.spih-moshi-pc-badge {
  font-size:.78rem; font-weight:700; line-height:1; padding:5px 10px; border-radius:999px; white-space:nowrap;
}
.spih-moshi-pc-badge.is-ok   { color:#295F99; background:#E2EDF8; }
.spih-moshi-pc-badge.is-warn { color:#c0392b; background:#fdecec; }
.spih-moshi-pc-skip { color:#949aa0; font-weight:600; }
.spih-moshi-pc-overall {
  margin:12px 0 4px; padding:14px 16px; border-radius:12px;
  background:#FFF7EE; border:1px solid #f5d8b0; color:#C75B00;
  font-size:.92rem; line-height:1.7;
}
/* interpret レビュー（正誤ではなく回答＋企業からの見え方） */
.spih-moshi-rb-review.is-interp { border-left:4px solid #FF7A00; background:#fffaf5; }
.spih-moshi-rb-review-badge.is-neutral {
  color:#C75B00; background:#FFF3DF; border:1px solid #f5d8b0;
}

/* ===== PC幅（記事カラム670px〜）で端末モックが見切れないようにする =====
   2026-08-07 の「イントロを1画面に収める」圧縮でヒーローが 200px → 168px になったが、
   プレビューの寸法は **モバイル（@media max-width:600px）側しか** 縮めていなかった。
   その結果 PC幅では 96px幅の端末（回転後の外接 114×214px）が 168px のヒーローに収まらず、
   上端と下端が切れる。⚠ ハーネスの over（横はみ出し個数）は縦の切れを検出しないので、
   スクショを見るまで気づけない（[[feedback_moshi_qa_must_include_pc_width]]）。
   ここで PC だけ「ヒーローを少し高く＋端末を 88px に」して2台とも完全に見える形にする。
   イントロだけでなく **ゲートのヒーローも同じプレビューを使う** ので一緒に直す。 */
@media (min-width: 601px) {
  .spih-moshi-intro-hero,
  .spih-moshi-gate-hero { min-height: 238px; }
  .spih-moshi-intro-preview,
  .spih-moshi-gate-preview { bottom: 16px; width: 196px; height: 200px; }
  .spih-moshi-preview-phone { width: 88px; }
  .spih-moshi-preview-phone--ability { top: 16px; left: 8px; }
  .spih-moshi-preview-phone--personality { top: 0; right: 6px; }
}
