@charset "utf-8";
/* ============================================================
   本文ブロック
   ------------------------------------------------------------
   inc/blocks.php の render_block() が出すHTMLに対応する。
   ブロックを増やしたら、ここにも1節足す。
   ============================================================ */

/* ブロック同士の間隔は、親側で一括して面倒を見る。
   各ブロックが自前で margin を持つと、並び順によって隙間が変わる。 */
.nw-article__body > * { margin: 0; }
.nw-article__body > * + * { margin-top: 26px; }

/* ------------------------------------------------------------
   見出し
   ------------------------------------------------------------ */
.nb-heading {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(17px, 2.2vw, 21px); font-weight: 900; color: var(--blue);
  padding-bottom: 10px;
  border-bottom: 2px dotted var(--sky-deep);
  margin-top: 38px !important;
}
.nb-heading__star { color: var(--yellow); font-size: 1.1em; }

/* ------------------------------------------------------------
   本文
   ------------------------------------------------------------ */
.nb-text { font-size: 14px; line-height: 2.1; }

/* ------------------------------------------------------------
   画像
   ------------------------------------------------------------ */
.nb-image { margin-inline: 0; }
.ph--nb-image { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.nb-image figcaption {
  font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 8px;
}

/* ------------------------------------------------------------
   カード
   ------------------------------------------------------------ */
.nb-cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 枚数が少ないときに間延びしないよう、列数を枚数に合わせる */
.nb-cards[data-count="1"] { grid-template-columns: minmax(0, 260px); }
.nb-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nb-cards[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nb-card {
  --nbc: var(--blue);
  border-radius: var(--radius); overflow: hidden;
}
.nb-card--pink   { --nbc: #e4699a; }
.nb-card--blue   { --nbc: var(--blue); }
.nb-card--green  { --nbc: var(--green); }
.nb-card--orange { --nbc: var(--orange); }
.nb-card--purple { --nbc: var(--purple); }

.nb-card__inner { display: flex; flex-direction: column; gap: 7px; }
a.nb-card__inner { transition: transform .15s ease; }
a.nb-card__inner:hover { transform: translateY(-3px); }
a.nb-card__inner:hover .nb-card__title { text-decoration: underline; }

.ph--nb-card {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border-color: var(--nbc);
}
.nb-card__title { font-size: 14px; font-weight: 900; color: var(--nbc); line-height: 1.4; }
.nb-card__text  { font-size: 12px; line-height: 1.7; color: var(--ink-soft); }

/* ------------------------------------------------------------
   強調ボックス
   ------------------------------------------------------------ */
.nb-highlight {
  background: var(--cream); border: 2px solid #f3e4b4;
  border-radius: var(--radius); padding: 20px 24px;
}
.nb-highlight__title {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 900; color: var(--blue);
  margin-bottom: 8px;
}
.nb-highlight__title span { color: var(--yellow); }
.nb-highlight__body { font-size: 13px; line-height: 1.9; }

/* ------------------------------------------------------------
   ボタン
   ------------------------------------------------------------ */
.nb-button { text-align: center; }

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .nb-cards,
  .nb-cards[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .nb-cards,
  .nb-cards[data-count="2"],
  .nb-cards[data-count="3"] { grid-template-columns: 1fr; }
  .nb-cards[data-count="1"] { grid-template-columns: 1fr; }
  .nb-highlight { padding: 16px 16px; }
}
