/* ===== GPSテスト（ベネッセi-キャリア）本番想定模試 [gps_moshi] =====
   記事埋め込み（spi-mini 系・reset無し）。SPI3-G模試（spig-moshi.css）の型を名前空間ごと複製したもの。
   第1部=思考力15問/15分、第2部=基礎能力10問/8分の約23分短縮版。どちらも正解あり採点。
   テーマ色は記事 /tekiseikennsagps/ のアイキャッチ実測ドミナントカラー #2D3192（藍・占有36.2%）
   をそのまま使う（feedback_moshi_theme_color_matches_eyecatch）。
   #2D3192 は白文字が 10.7:1 なので、18pxの大ボタンでも14pxの小ボタンでもAAAを満たす＝
   spig（#58B3C7 が薄く暗度を落とす必要があった）と違い、暗度調整なしで塗りに使える：
     --gps-deep   #2D3192（白文字 10.7:1＝大ボタン・帯・小ボタンすべて）
     --gps-deep-d #1E2170（さらに暗い同系＝立体の影・タイムバー・強調文字） */

.gps-moshi {
  --gps-deep: #2D3192;
  --gps-deep-d: #1E2170;
  --gps-deep-l: #E8E9F7;
  --gps-blue: #4A4FB0;
  --gps-blue-d: #2A2E80;
  --gps-mist: #F4F5FC;
  --gps-orange: #FF9A3C;
  --gps-orange-d: #C86A00;
  --gps-ink: #333;
  --gps-sub: #666;
  --gps-line: #e3e6ee;
  container-type: inline-size;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--gps-ink);
  border: 1px solid var(--gps-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.gps-moshi button,
.gps-moshi input { font-family: inherit; }
#gps-honban-moshi { scroll-margin-top: 88px; }

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

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

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

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

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

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

/* ===== 質問 ===== */
.gps-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(20,22,80,.09), inset 0 1px 0 #fff;
}
.gps-moshi-q::before {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gps-deep);
  background: #E8E9F7;
  content: "QUESTION";
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .15em;
}
.gps-moshi-q-text {
  margin: 0 0 11px;
  color: #4d2b12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: .015em;
}
.gps-moshi-q-text table { max-width: 100%; }
.gps-moshi-q-hint {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #60697c;
  background: #F4F5FC;
  font-size: 11.5px;
  font-weight: 600;
}
.gps-moshi-q-hint strong { color: var(--gps-deep); }

.gps-moshi-choices { display: flex; flex-direction: column; gap: 10px; }
.gps-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(20,22,80,.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;
}
.gps-moshi-choice:hover {
  border-color: var(--gps-blue);
  background: #F4F5FC;
  box-shadow: 0 4px 0 #BFC2E8, 0 9px 18px rgba(30,33,112,.08);
  transform: translateY(-1px);
}
.gps-moshi-choice:focus-visible {
  outline: 3px solid rgba(30,33,112,.24);
  outline-offset: 2px;
}
.gps-moshi-choice.is-selected {
  border-color: var(--gps-deep);
  color: var(--gps-deep-d);
  background: #E8E9F7;
  box-shadow: 0 4px 0 #BFC2E8, 0 9px 20px rgba(30,33,112,.13);
  transform: translateY(-1px);
}
.gps-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(20,22,80,.08);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.gps-moshi-choice.is-selected .gps-moshi-choice-check {
  border-color: var(--gps-deep);
  background: #2D3192;
  box-shadow: 0 3px 7px rgba(30,33,112,.25);
}
.gps-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;
}
.gps-moshi-choice.is-selected .gps-moshi-choice-check::after { opacity: 1; }
.gps-moshi-choice-label { flex: 1; }

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

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

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

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

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

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

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

/* ===== GPS記事内広告・konowaka枠 [gps_konowaka] =====
   「この記事でわかること」直下ランキングの末尾に出す端末モック＋2ボタン。
   スコープは .gps-ad だけ。ミニ=橙 / 本番模試=緑 の house 標準CTAに揃える
   （SHL/TRACS/TAPOC/ミキワメと同一）。 */
.gps-ad {
  container-type: inline-size;
  color: #333;
  font-family: inherit;
}
#gps-honban-moshi,
#gps-practice { scroll-margin-top: 88px; }
.gps-ad-anchor {
  display: block;
  width: 0;
  height: 0;
}
.gps-ad .gps-ad-phones-link {
  display: block;
}
.gps-ad .gps-ad-konowaka-phones {
  display: block;
  width: min(100%, 480px);
  height: auto;
  margin: 2px auto 12px;
  filter: drop-shadow(0 8px 10px rgba(0, 60, 55, .2));
}
.gps-ad .gps-ad-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 12px auto;
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 4px 0 #c75b00, 0 8px 16px rgba(0, 60, 55, .2);
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.gps-ad .gps-ad-btn:hover {
  color: #fff !important;
  opacity: .94;
  transform: translateY(-1px);
}
.gps-ad .gps-ad-btn:active {
  box-shadow: 0 1px 0 #c75b00;
  transform: translateY(3px);
}
.gps-ad .gps-ad-btn .fa { margin-right: 6px; }
.gps-ad .gps-ad-btn--light { background: #ff9902; }
.gps-ad .gps-ad-btn--main { background: #27a69a; box-shadow: 0 4px 0 #1c8a80, 0 8px 16px rgba(0, 60, 80, .14); } /* 本番模試=house標準の緑CTA(ミニ=橙/模試=緑) */
.gps-ad .gps-ad-btn--main:active { box-shadow: 0 1px 0 #1c8a80; }
.gps-ad .gps-ad-btn-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  opacity: .95;
}

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

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

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

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

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

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

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

/* ===== 端末モックを見切れさせない（オーナーFB 2026-08-07「画像が見切れているのは非常に気になる」） =====
   原因＝2026-08-07 の「イントロを1画面に収める」圧縮でヒーローを200px→168pxにしたとき、
   プレビューの寸法をモバイル（@media max-width:600px）側しか縮めなかったこと。PC幅では
   96px幅の端末（回転後の外接 114×214px）が入りきらず、上9〜28px・下37px 切れていた。
   PC側の数値は **SPI-H模試（spih-moshi.css）で先に確定した値をそのまま流用**する
   ＝家族へ横展開するときに1レシピで済むようにする（[[feedback_moshi_phone_mockup_must_not_be_clipped]]）。
   ⚠ このブロックはファイル末尾に置く（前方の `.gps-moshi-intro-hero { min-height:168px }` に勝つため）。 */
@media (min-width: 601px) {
  .gps-moshi-intro-hero,
  .gps-moshi-gate-hero { min-height: 238px; }
  .gps-moshi-intro-preview,
  .gps-moshi-gate-preview { bottom: 16px; width: 196px; height: 200px; }
  .gps-moshi-preview-phone { width: 88px; }
  .gps-moshi-preview-phone--ability { top: 16px; left: 8px; }
  .gps-moshi-preview-phone--personality { top: 0; right: 6px; }
}

/* モバイル（≤600px）も端末が枠にぴったり接していた（実測＝下1px・右0px＝影ごと切れて
   「見切れ」に見える）。数値上は収まっていても余白ゼロは切れて見えるので8〜11px逃がす。
   ⚠ SPI-H側にはこの手当てが入っていないので、横展開するときはPCブロックとセットで当てる。 */
@media (max-width: 600px) {
  .gps-moshi-intro-preview { right: 12px; }
  .gps-moshi-preview-phone--ability { top: 12px; }
  .gps-moshi-intro-heading,
  .gps-moshi-gate-heading { width: calc(100% - 132px); }
}
