/* SMS TOPICS — 既存のホーム画面との干渉を避けるため sms-topics に限定 */
.home-mv { position: relative; isolation: isolate; overflow: visible; }
.sms-topics-pickup, .sms-topics-latest, .sms-topics-page { font-family: inherit; color: #171717; }
.sms-topics-pickup *, .sms-topics-latest *, .sms-topics-page * { box-sizing: border-box; }

/* ファーストビュー: PCでは右上に、2行をひとつのパネルで重ねる */
.sms-topics-pickup {
  position: absolute; z-index: 5; top: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 72px); width: min(410px, 38vw);
  background: #fff; border: 1px solid #ededed; border-radius: 8px;
  box-shadow: 0 6px 22px rgb(0 0 0 / 11%);
}
.sms-topics-pickup__list, .sms-topics-latest__cards, .sms-topics-archive__grid { list-style: none; margin: 0; padding: 0; }
.sms-topics-pickup__item + .sms-topics-pickup__item { border-top: 1px solid #e7e3dd; }
.sms-topics-pickup__link {
  display: flex; align-items: center; min-height: 76px; gap: 12px;
  padding: 10px 14px; color: inherit; text-decoration: none;
}
.sms-topics-pickup__link:hover, .sms-topics-pickup__link:focus-visible { background: #fffaf0; }
.sms-topics-pickup__image { display: block; flex: 0 0 76px; width: 76px; height: 54px; overflow: hidden; background: #f4f2ed; }
.sms-topics-pickup__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sms-topics-pickup__body { display: block; min-width: 0; flex: 1; }
.sms-topics-pickup__type { display: block; width: fit-content; padding: 2px 6px; background: #fff1cd; color: #634d00; font-size: 10px; font-weight: 700; line-height: 1.3; }
.sms-topics-pickup__title { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.sms-topics-pickup__arrow { flex: none; font-size: 21px; line-height: 1; }

/* 中段: PC は左に案内、右に2列×2段の記事カード */
.sms-topics-latest { padding: 78px 24px 70px; background: #f7f4ed; }
.sms-topics-latest__inner { display: grid; grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.7fr); gap: clamp(32px, 4vw, 72px); width: min(1160px, 100%); margin-inline: auto; }
.sms-topics-latest__head { min-width: 0; padding-top: 14px; }
.sms-topics-latest__heading { margin: 0 0 34px; font-size: clamp(36px, 3.5vw, 55px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; white-space: nowrap; }
.sms-topics-latest__intro p { margin: 0 0 22px; font-size: 14px; line-height: 1.9; }
.sms-topics-latest__all { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-width: 130px; padding: 8px 10px 8px 18px; border: 1px solid #999; border-radius: 30px; color: inherit; background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.sms-topics-latest__all span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #171717; color: #fff; font-size: 16px; }
.sms-topics-latest__all:hover, .sms-topics-latest__all:focus-visible { background: #ffcb27; border-color: #ffcb27; }
/* PC の画像未設定カードには指定の画像を表示して高さを揃える。 */
.sms-topics-latest__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sms-topics-card { min-width: 0; }
.sms-topics-card__link { display: flex; flex-direction: column; min-height: 258px; height: 100%; gap: 10px; padding: 16px; background: #fff; border-radius: 3px; color: inherit; text-decoration: none; transition: box-shadow .2s ease; }
.sms-topics-card__link:hover, .sms-topics-card__link:focus-visible { box-shadow: 0 7px 22px rgb(0 0 0 / 12%); }
.sms-topics-card__meta { display: flex; align-items: center; gap: 10px; min-height: 23px; }
.sms-topics-card__type { padding: 4px 10px; border-radius: 16px; background: #23619b; color: #fff; font-size: 11px; line-height: 1.3; font-weight: 700; }
.sms-topics-card__type--media { background: #67a6c5; }
.sms-topics-card__type--culture { background: #32916c; }
.sms-topics-card__type--info, .sms-topics-card__type--notice { background: #757575; }
.sms-topics-card__date { margin-left: auto; color: #555; font-size: 11px; white-space: nowrap; }
.sms-topics-card__image { display: block; width: 100%; aspect-ratio: 2.6 / 1; overflow: hidden; background: #eee; }
.sms-topics-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sms-topics-card__title { display: block; font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.sms-topics-card__more { display: block; margin-top: auto; color: #235477; font-size: 12px; font-weight: 700; }
.sms-topics-card__more > span:last-child { margin-left: 8px; }
.sms-topics-card__link:hover .sms-topics-card__more, .sms-topics-card__link:focus-visible .sms-topics-card__more { text-decoration: underline; text-underline-offset: 3px; }

/* TOPICS 一覧: 画像付きカードとカテゴリ絞り込み */
.sms-topics-archive__description { margin: -12px 0 28px; font-size: 15px; line-height: 1.8; }
.sms-topics-archive__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 34px; }
.sms-topics-archive__filter { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 17px; border: 1px solid #a6a49f; border-radius: 24px; background: #fff; color: #222; font-size: 13px; font-weight: 700; text-decoration: none; }
.sms-topics-archive__filter:hover, .sms-topics-archive__filter:focus-visible, .sms-topics-archive__filter.is-current { border-color: #ffcb27; background: #ffcb27; }
.sms-topics-archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sms-topics-archive__item { min-width: 0; }
.sms-topics-archive__card { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid #e9e5dc; border-radius: 4px; background: #fff; color: #171717; text-decoration: none; transition: box-shadow .2s ease; }
.sms-topics-archive__card:hover, .sms-topics-archive__card:focus-visible { box-shadow: 0 7px 22px rgb(0 0 0 / 12%); }
.sms-topics-archive__image { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f0eee8; }
.sms-topics-archive__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sms-topics-archive__image--empty { color: #9a9589; font-size: 27px; font-weight: 800; letter-spacing: .08em; }
.sms-topics-archive__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 18px; }
.sms-topics-archive__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 22px; }
.sms-topics-archive__meta time { color: #666; font-size: 12px; }
.sms-topics-archive__title { font-size: 16px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.sms-topics-archive__more { margin-top: auto; color: #235477; font-size: 12px; font-weight: 700; }
.sms-topics-archive__card:hover .sms-topics-archive__more, .sms-topics-archive__card:focus-visible .sms-topics-archive__more { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) and (min-width: 768px) {
  .sms-topics-latest__inner { grid-template-columns: 1fr; gap: 30px; }
  .sms-topics-latest__head { padding-top: 0; }
  .sms-topics-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* TOPICS 一覧・個別記事 */
.sms-topics-page { min-height: 60vh; padding: clamp(44px, 7vw, 100px) 24px; background: #faf8f3; }
.sms-topics-page__inner { width: min(960px, 100%); margin-inline: auto; }
.sms-topics-page__back { display: inline-block; margin-bottom: 28px; color: #222; text-underline-offset: 3px; }
.sms-topics-page__eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.sms-topics-page__heading { margin: 0 0 34px; font-size: clamp(38px, 6vw, 68px); line-height: 1.1; }
.sms-topics-page__header { padding-bottom: 28px; border-bottom: 1px solid #d9d6d0; }
.sms-topics-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 13px; color: #5d5d5d; }
.sms-topics-page__label { padding: 4px 10px; background: #ffcb27; color: #222; font-size: 11px; font-weight: 700; }
.sms-topics-page__title { margin: 0; font-size: clamp(27px, 4.2vw, 48px); line-height: 1.4; overflow-wrap: anywhere; }
.sms-topics-page__cover { max-width: 100%; height: auto; display: block; margin: 36px auto 0; }
.sms-topics-page__content { padding: 38px 0; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.sms-topics-page__content img, .sms-topics-page__content iframe { max-width: 100%; }
.sms-topics-page__content img { height: auto; }
.sms-topics-page__pager { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.sms-topics-page__pager .page-numbers { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid #aaa; color: #222; text-decoration: none; }
.sms-topics-page__pager .current { background: #ffcb27; border-color: #ffcb27; }

@media (max-width: 767px) {
  /* スマホ上部は1枚の白い枠に文字だけ2行。画像・種別は出さない */
  .sms-topics-pickup { top: 12px; left: 16px; right: 16px; width: auto; border-radius: 6px; }
  .sms-topics-pickup__link { min-height: 48px; padding: 10px 14px; }
  .sms-topics-pickup__image, .sms-topics-pickup__type { display: none; }
  .sms-topics-pickup__title { margin-top: 0; font-size: 12px; line-height: 1.45; }
  .sms-topics-pickup__arrow { font-size: 18px; }

  .sms-topics-latest { padding: 52px 20px 56px; }
  .sms-topics-latest__inner { grid-template-columns: 1fr; gap: 26px; }
  .sms-topics-latest__head { padding-top: 0; }
  .sms-topics-latest__heading { margin-bottom: 18px; font-size: clamp(35px, 9vw, 48px); }
  .sms-topics-latest__intro p { margin: 0 0 14px; }
  /* スマホでは4件を文字主体の縦リストとして並べる */
  .sms-topics-latest__cards { display: block; }
  .sms-topics-card { border-bottom: 1px solid #d9d6d0; }
  .sms-topics-card__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; min-height: 80px; padding: 13px 0; background: transparent; }
  .sms-topics-card__link:hover, .sms-topics-card__link:focus-visible { box-shadow: none; }
  .sms-topics-card__meta { grid-column: 1 / -1; justify-content: flex-start; min-height: 0; }
  .sms-topics-card__date { order: -1; margin-left: 0; }
  .sms-topics-card__type { font-size: 9px; padding: 2px 7px; }
  .sms-topics-card__image { display: none; }
  .sms-topics-card__title { font-size: 14px; }
  .sms-topics-card__more { align-self: center; margin: 0; color: #171717; font-size: 18px; }
  .sms-topics-card__more-text { display: none; }
  .sms-topics-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sms-topics-archive__body { gap: 10px; padding: 14px; }
  .sms-topics-archive__title { font-size: 14px; }
  .sms-topics-page { padding-inline: 20px; }
}

@media (max-width: 520px) {
  .sms-topics-archive__grid { grid-template-columns: 1fr; }
}

.sms-topics-card__link:hover .sms-topics-card__title,
.sms-topics-card__link:focus-visible .sms-topics-card__title,
.sms-topics-archive__card:hover .sms-topics-archive__title,
.sms-topics-archive__card:focus-visible .sms-topics-archive__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
