@charset "UTF-8";
/* ============================================================
   owned-media.css
   受験生サイト内オウンドメディア用の追加コンポーネント
   main.css の後に読み込むこと
   ------------------------------------------------------------
   使用色は main.css のトークンに準拠
     key        #004098
     key-sub2   #c8161d
     key-sub3   #e9f1fb
     key-sub9   #126ce8
     key-sub0   #c5d9f4
     border     #e6e6e5
     black10    #f3f3f3
   ============================================================ */

/* ------------------------------------------------------------
   記事ヘッダー（カテゴリ・日付）
   ------------------------------------------------------------ */
.om-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75em 1.25em;
}
.om-cat {
  display: inline-block;
  background: #004098;
  color: #fff;
  line-height: 1;
  padding: 0.5em 1em;
}
.om-cat.is-sub {
  background: #e9f1fb;
  color: #004098;
}
.om-date {
  color: #004098;
}
.om-date + .om-date {
  color: #818181;
}

/* ------------------------------------------------------------
   アイキャッチ（画像未設定時のプレースホルダ）
   ------------------------------------------------------------ */
.om-eyecatch {
  width: 100%;
  max-width: 600px;   /* 実寸 600 × 400 */
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
}
.om-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 画像未設定時のプレースホルダ */
.om-eyecatch__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #004098 0%, #126ce8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.16em;
  font-size: 1.2rem;
}

/* ------------------------------------------------------------
   目次
   ------------------------------------------------------------ */
.om-toc {
  --om-toc-num: 1.75rem;
  --om-toc-gap: 0.75rem;
  background: #f3f3f3;
  border: 1px solid #e6e6e5;
  border-radius: 10px;
  padding: 1.75em 2em;
}
@media (max-width: 990px) {
  .om-toc {
    padding: 1.25em 1.25em;
  }
}
.om-toc__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #004098;
  font-weight: bold;
  margin-bottom: 1em;
}
.om-toc__title::before {
  content: "";
  display: block;
  width: 0.9em;
  height: 0.9em;
  background: #004098;
  flex-shrink: 0;
}
.om-toc ol,
.om-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.om-toc li {
  list-style: none;
  margin: 0;
}
.om-toc a {
  color: inherit;
  text-decoration: none;
}
.om-toc__lists {
  counter-reset: om-toc;
}
.om-toc__list {
  counter-increment: om-toc;
}
.om-toc__list + .om-toc__list {
  margin-top: 0.6em;
}
.om-toc__link {
  display: flex;
  align-items: flex-start;
  gap: var(--om-toc-gap);
  color: #181818;
  font-weight: bold;
  line-height: 1.5;
  transition: color ease-in-out 0.2s, text-decoration ease-in-out 0.2s;
}
.om-toc__link::before {
  content: counter(om-toc, decimal-leading-zero);
  color: #004098;
  flex: 0 0 var(--om-toc-num);
  width: var(--om-toc-num);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.85em;
  line-height: 1.5;
  padding-top: 0;
}
.om-toc__link:hover {
  color: #004098;
  text-decoration: underline;
}
.om-toc ul.om-toc__children {
  padding-left: calc(var(--om-toc-num) + var(--om-toc-gap));
  margin-top: 0.4em;
}
.om-toc__children li + li {
  margin-top: 0.3em;
}
.om-toc__children a {
  color: #4e4e4e;
  line-height: 1.5;
}
.om-toc__children a:hover {
  color: #004098;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   本文見出し（preview.html の .cms-p h2/h3/h4 に合わせる）
   ------------------------------------------------------------ */
.welcome-news-body.cms-p h2,
:is(.cms-p, .mce-content-body) h2 {
  clear: both;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2.5rem 0 2rem;
  font-size: 1.9rem;
  font-weight: bold;
  line-height: 1.3;
  padding: 0.5em 0 0.5em 0.75em;
  background: none;
  border: none;
  border-left: 0.3em solid #004098;
}
.welcome-news-body.cms-p h3,
:is(.cms-p, .mce-content-body) h3 {
  clear: both;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2.5rem 0 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.3;
  padding: 0.75em;
  background: #f3f3f3;
  border: none;
  border-left: 0.25em solid #004098;
}
.welcome-news-body.cms-p h4,
:is(.cms-p, .mce-content-body) h4 {
  clear: both;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2.5rem 0 1rem;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1.3;
  padding: 0.5em 0 0.5em 0.75em;
  background: none;
  border: none;
  border-bottom: 4px solid #c5d9f4;
}

/* ------------------------------------------------------------
   本文内 POINT ボックス（公開の .cms-p と TinyMCE の両方）
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) .om-point {
  background: #e9f1fb;
  border-radius: 10px;
  padding: 1.75em 2em;
  margin: 2em 0;
}
@media (max-width: 990px) {
  :is(.cms-p, .mce-content-body) .om-point {
    padding: 1.25em 1.25em;
  }
}
:is(.cms-p, .mce-content-body) .om-point__label {
  display: inline-block;
  background: #004098;
  color: #fff;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 0.5em 1em;
  margin-bottom: 0.75em;
}
:is(.cms-p, .mce-content-body) .om-point p:first-of-type {
  margin-top: 0;
}

/* ------------------------------------------------------------
   タイムライン（順序に意味がある内容にのみ使用）
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) .om-timeline {
  position: relative;
  margin: 2em 0;
  padding: 0;
  list-style: none;
}
:is(.cms-p, .mce-content-body) .om-timeline::before {
  content: "";
  position: absolute;
  top: 0.8em;
  bottom: 0.8em;
  left: 5.6em;
  width: 2px;
  background: #c5d9f4;
}
@media (max-width: 990px) {
  :is(.cms-p, .mce-content-body) .om-timeline::before {
    left: 4.4em;
  }
}
:is(.cms-p, .mce-content-body) .om-timeline > li {
  display: grid;
  grid-template-columns: 4.5em 2.2em 1fr;
  align-items: start;
  margin: 0 0 1.75em 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 990px) {
  :is(.cms-p, .mce-content-body) .om-timeline > li {
    grid-template-columns: 3.5em 1.8em 1fr;
  }
}
:is(.cms-p, .mce-content-body) .om-timeline > li:last-child {
  margin-bottom: 0;
}
.om-timeline__time {
  color: #004098;
  font-weight: bold;
  text-align: right;
  line-height: 1.6;
}
.om-timeline__dot {
  justify-self: center;
  position: relative;
  padding-top: 0.35em;
}
.om-timeline__dot::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #004098;
}
:is(.cms-p, .mce-content-body) .om-timeline > li:nth-child(odd) .om-timeline__dot::before {
  background: #c8161d;
  border-color: #c8161d;
}
.om-timeline__body h4 {
  margin: 0 0 0.2em 0 !important;
  padding: 0 !important;
  border: none !important;
  font-weight: bold;
  line-height: 1.5;
}
.om-timeline__body p {
  margin-top: 0 !important;
  color: #4e4e4e;
}

/* ------------------------------------------------------------
   監修者・執筆者
   ------------------------------------------------------------ */
.om-author {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  background: #f3f3f3;
  border-radius: 10px;
  padding: 1.75em 2em;
}
@media (max-width: 990px) {
  .om-author {
    flex-direction: column;
    gap: 1em;
    padding: 1.25em;
  }
}
.om-author__img {
  width: 84px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #d6e2f2;
}
.om-author__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.om-author__role {
  display: inline-block;
  color: #004098;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1;
}
.om-author__name {
  font-weight: bold;
  margin: 0.4em 0 0.6em 0;
}
.om-author__text {
  color: #4e4e4e;
  line-height: 1.8;
}

/* ------------------------------------------------------------
   関連記事カード
   ------------------------------------------------------------ */
.om-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e6e5;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: all ease-in-out 0.2s;
}
@media (min-width: 990px) {
  .om-card:hover {
    background: #f3f5f7;
    transform: translateY(-4px);
  }
}
.om-card__img {
  background: linear-gradient(135deg, #126ce8 0%, #004098 100%);
}
.om-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.om-card:nth-child(2) .om-card__img {
  background: linear-gradient(135deg, #5aa0d8 0%, #004098 100%);
}
.om-card:nth-child(3) .om-card__img {
  background: linear-gradient(135deg, #a0c2ef 0%, #126ce8 100%);
}
.om-card__body {
  padding: 1.2em 1.4em 1.5em;
}
.om-card__cat {
  display: inline-block;
  background: #e9f1fb;
  color: #004098;
  font-weight: bold;
  line-height: 1;
  padding: 0.45em 0.9em;
}
.om-card__title {
  font-weight: bold;
  line-height: 1.6;
  margin: 0.7em 0 0.4em;
}
.om-card__date {
  color: #818181;
}

/* ------------------------------------------------------------
   記事内CTA帯
   ------------------------------------------------------------ */
.om-cta {
  background: #004098;
  color: #fff;
  border-radius: 10px;
  padding: 2.5em 2em;
  position: relative;
  overflow: hidden;
}
.om-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #c8161d;
}
.om-cta__title {
  font-weight: bold;
  line-height: 1.5;
}
.om-cta__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ------------------------------------------------------------
   .disc の二重ビュレット修正
   main.css で「:is(.cms-p, .mce-content-body) ul li{list-style-type:disc}」と
   「:is(.cms-p, .mce-content-body) .disc li::before{青い丸}」が両方効くため、
   .disc 使用時はネイティブのマーカーを消す
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) ul.disc,
:is(.cms-p, .mce-content-body) ol.disc {
  margin-left: 0;
  list-style: none;
}
:is(.cms-p, .mce-content-body) ul.disc > li,
:is(.cms-p, .mce-content-body) ol.disc > li {
  margin-left: 0;
  padding-left: 1.4em;
  list-style: none;
}
:is(.cms-p, .mce-content-body) ul.disc > li::before,
:is(.cms-p, .mce-content-body) ol.disc > li::before {
  left: 0.2em;
  top: 0.75em;
  width: 6px;
  height: 6px;
}

/* ------------------------------------------------------------
   本文中の画像（h2 / h3 の直下に配置）
   .om-figure           … 600 × 400（3:2・既定）
   .om-figure.is-wide   … カラム幅いっぱい・16:9（グラフ等の図版用）
   ※ main.css の「:is(.cms-p, .mce-content-body) img{display:inline}」を打ち消すため
     .om-figure__img img で上書きしている
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) .om-figure {
  width: 100%;
  max-width: 600px;   /* 実寸 600 × 400 */
  margin: 1.75em auto 2em;
}
:is(.cms-p, .mce-content-body) .om-figure__img {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
}
/* 図版など、横幅いっぱいで見せたい場合 */
:is(.cms-p, .mce-content-body) .om-figure.is-wide {
  max-width: none;
}
:is(.cms-p, .mce-content-body) .om-figure.is-wide .om-figure__img {
  aspect-ratio: 16/9;
}
:is(.cms-p, .mce-content-body) .om-figure__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 画像未設定時のプレースホルダ */
:is(.cms-p, .mce-content-body) .om-figure__placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #e9f1fb 0 10px, #dbe8f8 10px 20px);
  border: 1px dashed #c5d9f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #004098;
  letter-spacing: 0.08em;
  line-height: 1.6;
  font-size: 1.2rem;
  padding: 1em;
}
:is(.cms-p, .mce-content-body) .om-figure figcaption {
  color: #818181;
  font-size: 0.85em !important;
  line-height: 1.6 !important;
  margin-top: 0.7em !important;
  padding-left: 0.8em;
  border-left: 2px solid #c5d9f4;
}

/* ------------------------------------------------------------
   数字リスト（1）ステップ表示 .om-num
   順序に意味がある「手順」に使用する。
   main.css の .num02 と同じ見た目だが、
   ・li への <span>1</span> 記述が不要（CSSカウンタで自動採番）
   ・「:is(.cms-p, .mce-content-body) ol li{list-style-type:decimal}」との二重採番を抑止
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) ol.om-num {
  counter-reset: om-num;
  list-style: none;
  margin: 1.75em 0 2em;
  padding: 0;
}
:is(.cms-p, .mce-content-body) ol.om-num > li {
  counter-increment: om-num;
  position: relative;
  list-style: none;
  margin: 0 0 1em 0;
  padding: 0.1em 0 0 4em;
  min-height: 2.5em;
  line-height: 1.7;
}
:is(.cms-p, .mce-content-body) ol.om-num > li:last-child {
  margin-bottom: 0;
}
:is(.cms-p, .mce-content-body) ol.om-num > li::before {
  content: counter(om-num);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  background: #004098;
  border-radius: 2px;
  color: #fff;
  font-weight: bold;
  line-height: 1;
}
.om-num__title {
  display: block;
  color: #004098;
  font-weight: bold;
  margin-bottom: 0.2em;
}
:is(.cms-p, .mce-content-body) ol.om-num > li p {
  margin-top: 0 !important;
}
/* STEP 表記つき（縦線でつなぐ） */
:is(.cms-p, .mce-content-body) ol.om-num.is-step > li::after {
  content: "";
  position: absolute;
  left: 1.25em;
  top: 2.9em;
  bottom: -1em;
  width: 2px;
  background: #c5d9f4;
}
:is(.cms-p, .mce-content-body) ol.om-num.is-step > li:last-child::after {
  display: none;
}

/* ------------------------------------------------------------
   数字リスト（2）箇条書き .om-num-simple
   ステップではなく、単に番号付きで列挙したいときに使用する。
   .disc（黒丸の箇条書き）の数字版という位置づけ。
   「:is(.cms-p, .mce-content-body) ol li{list-style-type:decimal}」との二重採番を抑止する。
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) ol.om-num-simple {
  counter-reset: om-num-simple;
  list-style: none;
  margin-left: 0;
}
:is(.cms-p, .mce-content-body) ol.om-num-simple > li {
  counter-increment: om-num-simple;
  position: relative;
  list-style: none;
  margin-left: 0;
  padding-left: 2em;
  line-height: 1.7;
}
:is(.cms-p, .mce-content-body) ol.om-num-simple > li::before {
  content: counter(om-num-simple) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #004098;
  font-weight: bold;
  font-feature-settings: "tnum";
}
/* 丸囲みの番号にする場合 */
:is(.cms-p, .mce-content-body) ol.om-num-simple.is-circle > li {
  padding-left: 2.4em;
}
:is(.cms-p, .mce-content-body) ol.om-num-simple.is-circle > li::before {
  content: counter(om-num-simple);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  top: 0.1em;
  border-radius: 50%;
  background: #e9f1fb;
  font-size: 0.85em;
  line-height: 1;
}

/* ------------------------------------------------------------
   マーカー下線
   .om-marker         … 薄黄色（既定）
   .om-marker.is-blue … 薄い水色
   ------------------------------------------------------------ */
.om-marker {
  background: linear-gradient(transparent 62%, #fdf0a8 62%);
  padding-bottom: 0.05em;
}
.om-marker.is-blue {
  background: linear-gradient(transparent 62%, #c5d9f4 62%);
}

/* ------------------------------------------------------------
   出典・参考（リンクあり）
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) .om-source {
  color: #818181;
  font-size: 0.85em !important;
  line-height: 1.6 !important;
  margin-top: 0.6em !important;
}
:is(.cms-p, .mce-content-body) .om-source a {
  color: #004098;
  text-decoration: underline;
  word-break: break-all;
  transition: all ease-in-out 0.3s;
}
:is(.cms-p, .mce-content-body) .om-source a:hover {
  text-decoration: none;
}

/* ------------------------------------------------------------
   本文中のボタン
   .btn-q の .cursor は right:1em の絶対配置のため、
   テキストが長いと矢印に重なる。右パディングで逃がす。
   ------------------------------------------------------------ */
:is(.cms-p, .mce-content-body) .btn-group .btn-q,
:is(.cms-p, .mce-content-body) .btn-group [class^=btn-q] {
  min-width: 0;
  max-width: 100%;
  padding-right: 3.5em;
  padding-left: 2em;
  text-align: center;
}
:is(.cms-p, .mce-content-body) .btn-group .btn-q > span {
  line-height: 1.4;
}
@media (max-width: 600px) {
  :is(.cms-p, .mce-content-body) .btn-group .btn-q,
  :is(.cms-p, .mce-content-body) .btn-group [class^=btn-q] {
    width: 100%;
    padding-right: 3em;
    padding-left: 1.5em;
  }
}
