.jmat-moshi {
  --m-deep: #2A4B8D;
  --m-deep-d: #1B3160;
  --m-deep-l: #E5EAF5;
  --m-blue: #2A4B8D;
  --m-blue-d: #1B3160;
  --m-mist: #F3F6FC;
  --m-shade: #B9C6E1;
  --m-shadow-rgb: 27, 49, 96;
  --m-orange: #E58B12;
  --m-orange-d: #9A5700;
}

#jmat-honban-moshi,
#jmat-practice { scroll-margin-top: 88px; }

.jmat-ad-anchor {
  display: block;
  width: 0;
  height: 0;
}

/* 検査名は4文字と短いので nowrap のままでも端末モックに被らないが、
 * 330px の最悪ケースでキッカーが折り返せるようにしておく。 */
.jmat-moshi .moshi-gate-kicker {
  max-width: 100%;
  white-space: normal;
}

@container (max-width: 345px) {
  .jmat-moshi .moshi-gate-kicker { font-size: 10px; }
  .jmat-moshi .moshi-intro-title { font-size: 17px; }
}

/* 第2部の図表（来店者数と購入者数の表）＝スマホでも横スクロールさせずに収める。 */
.jmat-moshi .moshi-q-caption {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--m-ink);
}
.jmat-moshi .moshi-q-table {
  width: 100%;
  margin: 0 0 10px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}
.jmat-moshi .moshi-q-table td {
  padding: 6px 8px;
  border: 1px solid var(--m-line);
  text-align: right;
  color: var(--m-ink);
}
.jmat-moshi .moshi-q-table tr:first-child td {
  background: var(--m-mist);
  font-weight: 700;
  text-align: center;
}
.jmat-moshi .moshi-q-table td:first-child { text-align: left; }

/* 第1部の長文読解の本文。1本の文章に5問が続くので、毎問同じ箱で出す。 */
.jmat-moshi .moshi-q-passage {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 1.8;
  color: var(--m-ink);
}
.jmat-moshi .moshi-q-passage p { margin: 0 0 6px; }
.jmat-moshi .moshi-q-passage p:last-child { margin-bottom: 0; }

/* 第3部 性格検査 interpret 結果のうち、共通土台 moshi-base.css に無い2クラス。
 * ドナー attelu-moshi.css の .attelu-moshi-pc-badge / -pc-overall と同値で、色だけ var() に寄せた。 */
.jmat-moshi .moshi-pc-badge {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.jmat-moshi .moshi-pc-badge.is-ok { color: var(--m-deep); background: var(--m-deep-l); }
.jmat-moshi .moshi-pc-badge.is-warn { color: #c0392b; background: #fdecec; }
.jmat-moshi .moshi-pc-overall {
  margin: 12px 0 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--m-mist);
  border: 1px solid var(--m-shade);
  color: var(--m-deep-d);
  font-size: .92rem;
  line-height: 1.7;
}


.jmat-ad {
  container-type: inline-size;
  color: #333;
  font-family: inherit;
}
.jmat-ad .btn-orange,
.jmat-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;
}
.jmat-ad .btn-orange { background-color: #FF9900; }
.jmat-ad .btn-green  { background-color: #3889F2; }
.jmat-ad .btn-orange:hover,
.jmat-ad .btn-green:hover { opacity: .94; transform: translateY(-1px); }
.jmat-ad .jmat-ad-phones-link { display: block; }
.jmat-ad .jmat-ad-phones {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 2px auto 12px;
}
.jmat-ad .jmat-ad-benefits li {
  color: #252525;
}
.jmat-ad .jmat-ad-proof { margin: 4px 0 2px; text-align: center; font-weight: 700; font-size: 15px; color: #808080; }
.jmat-ad .jmat-ad-note { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: #ff0000; }
.jmat-ad .jmat-ad-btn-sub { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; opacity: .95; }

.jmat-moshi .moshi-q-hint { display: inline-block; }

.jmat-moshi .moshi-gate-hero { background: #f2f4f8 !important; border-radius: 10px; display: flex; align-items: center; min-height: 250px !important; }
.jmat-moshi .moshi-gate-hero .moshi-gate-preview { bottom: 16px !important; }
.jmat-moshi .moshi-gate-hero .moshi-gate-kicker { color: #2a4b8d !important; font-weight: 700 !important; letter-spacing: .04em !important; font-size: 16px !important; white-space: normal !important; }
.jmat-moshi .moshi-gate-hero .moshi-gate-title { color: #2a4b8d !important; border-bottom: 0 !important; padding-bottom: 0 !important; font-size: 34px !important; line-height: 1.35 !important; margin-top: 6px !important; white-space: normal !important; }
.jmat-moshi .moshi-gate-hero .moshi-gate-lead { display: none !important; }
.jmat-moshi .moshi-nb { display: inline-block; }
@media (max-width: 600px) {
  .jmat-moshi .moshi-gate-hero .moshi-gate-title { font-size: 20px !important; }
  .jmat-moshi .moshi-gate-hero .moshi-gate-kicker { font-size: 13px !important; }
  .jmat-moshi .moshi-gate-hero { min-height: 195px !important; }
  .jmat-moshi .moshi-gate-hero .moshi-gate-preview { bottom: 10px !important; }
  .jmat-moshi .moshi-gate-heading { padding-left: 20px !important; width: calc(100% - 118px) !important; }
}
@media (max-width: 350px) {
  .jmat-moshi .moshi-gate-hero .moshi-gate-kicker { font-size: 11px !important; line-height: 1.5 !important; }
  .jmat-moshi .moshi-gate-hero .moshi-gate-title { font-size: 16px !important; }
}
@media (max-width: 600px) {
  .jmat-moshi .moshi-gate-heading { padding-left: 16px !important; width: calc(100% - 128px) !important; }
}
@media (max-width: 600px) {
  .jmat-moshi .moshi-gate-hero .moshi-gate-title { font-size: 18px !important; }
}
