@charset "UTF-8";
/* =========================================================
   新着情報タブ（共通モジュール）
   inc/news-tabs.php ／ assets/js/news-tabs.js と対で使う。

   モーダル内の新着情報（.as-modal-news__*）とは
   クラス名を分けてあるため、双方に影響しない。
   TOPなど本文中に置く前提で、モーダル版より
   サムネイル・文字サイズを一回り大きくしている。
   ========================================================= */

.snt {
  --snt-line: #e5e9ef;
  --snt-bar: #f4f6f9;
  --snt-text: #1f2b3a;
  --snt-muted: #3a4a5e;
  --snt-accent: #2d57d7;
  --snt-btn-line: #161518;

  box-sizing: border-box;
  width: 100%;
}

.snt *,
.snt *::before,
.snt *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   タブ
   --------------------------------------------------------- */
.snt__tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--snt-bar);
  border-bottom: 1px solid #ddd;
}

.snt__tabs::-webkit-scrollbar {
  display: none;
}

.snt__tab {
  /* 内容幅を下限に、余った横幅だけを均等配分する。
     収まらない幅では .snt__tabs が横スクロールする。 */
  flex: 1 0 auto;
  min-width: 0;
  margin: 0;
  padding: 16px 18px 15px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid #ddd;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--snt-muted);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}

.snt__tab:last-child {
  border-right: 0;
}

.snt__tab:hover {
  background: #fff;
  color: var(--snt-accent);
}

.snt__tab.is-active {
  background: #fff;
  color: var(--snt-accent);
  font-weight: 700;
  border-bottom-color: var(--snt-accent);
}

.snt__tab:focus-visible {
  outline: 2px solid var(--snt-accent);
  outline-offset: -2px;
}

/* ---------------------------------------------------------
   パネル
   --------------------------------------------------------- */
.snt__panel {
  display: none;
}

.snt__panel.is-active {
  display: block;
}

.snt__panel[hidden] {
  display: none;
}

.snt__empty {
  margin: 32px 0;
  font-size: 15px;
  color: #6b7a8c;
}

/* ---------------------------------------------------------
   記事リスト
   --------------------------------------------------------- */
.snt__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    ul.snt__list li {
        padding: 0 34px;
    }
}
@media screen and (max-width: 767px) {
    ul.snt__list li {
        padding: 0 14px;
    }
}

.snt__item {
  margin: 0 !important;
  padding: 0;
  border-bottom: 1px solid #ddd;
}

.snt__link {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 4px;
  text-decoration: none;
  color: inherit;
}


/* サムネイル */
.snt__thumb {
  position: relative;
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: #f0f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--snt-line) !important;
}

.snt__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.snt__thumb-ph {
  font-size: 11px;
  letter-spacing: .04em;
  color: #9aa7b5;
}

/* 読み込み中のシマー（非アクティブなタブの画像は JS が後から生成する） */
.snt__thumb.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #eef1f6 0%, #e3e8ef 25%, #f7f9fc 45%, #e3e8ef 65%, #eef1f6 100%);
  background-size: 220% 100%;
  animation: snt-shimmer 1.25s ease-in-out infinite;
}

@keyframes snt-shimmer {
  0% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

/* 本文 */
.snt__body {
  flex: 1;
  min-width: 0;
}

.snt__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.snt__badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #c9d2dd;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--snt-muted);
  white-space: nowrap;
}

.snt__badge--event {
  border-color: #c9d2dd;
  color: #161518;
}

.snt__date {
  font-size: 14px;
  font-weight: 400;
  color: #161518;
}

.snt__title {
  display: block;
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: #14284b;
  text-underline-offset: 2px;
  font-weight: 500;
}

@media (hover: hover) {
  .snt__link:hover .snt__title {
    color: var(--snt-accent);
    text-decoration: underline;
  }
}

.snt__link:focus-visible {
  outline: 2px solid var(--snt-accent);
  outline-offset: 2px;
}

/* サムネイルなし表示 */
.snt--no-thumb .snt__link {
  gap: 0;
}

/* ---------------------------------------------------------
   「〇〇一覧へ →」ボタン（リスト末尾）
   タブ切替で表示されるパネルごとに1つ。
   「新着情報」タブは対応する一覧が無いため出力されない。
   --------------------------------------------------------- */
.snt__more {
  margin: 36px 0 8px;
  padding: 0;
  text-align: center;
}

.snt__more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1em;
  min-width: 200px;
  padding: 13px 34px;
  background: #fff;
  border: 1px solid var(--snt-btn-line, #161518);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--snt-btn-line, #161518);
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}

.snt__more-arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform .2s;
}

@media (hover: hover) {
  .snt__more-link:hover {
    background: #fff;
    color: #fff;
    text-decoration: none;
  }

  .snt__more-link:hover .snt__more-arrow {
    transform: translateX(4px);
  }
}

.snt__more-link:focus-visible {
  outline: 2px solid var(--snt-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .snt__tab {
    font-size: 15px;
    padding: 14px 16px 13px;
  }

  .snt__link {
    gap: 24px;
    padding: 20px 4px;
  }

  .snt__thumb {
    flex-basis: 140px;
    width: 140px;
  }
}

@media (max-width: 767px) {
  .snt__tab {
    flex: 0 0 auto;
    padding: 13px 16px 12px;
    font-size: 14px;
    min-width: 19%;
  }

  .snt__link {
    gap: 14px;
    padding: 16px 0;
  }

  .snt__thumb {
    flex-basis: 96px;
    width: 96px;
  }

  .snt__meta {
    gap: 8px;
    margin-bottom: 6px;
  }

  .snt__badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  .snt__date {
    font-size: 12px;
  }

  .snt__title {
    font-size: 15px;
    line-height: 1.6;
  }

  .snt__more {
    margin: 24px 14px 4px;
  }

  .snt__more-link {
    width: 100%;
    min-width: 0;
    padding: 13px 20px;
    font-size: 15px;
    gap: .8em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snt__thumb.is-loading::after {
    animation: none;
    background: #eef1f6;
  }

  .snt__more-link,
  .snt__more-arrow {
    transition: none;
  }

  .snt__more-link:hover .snt__more-arrow {
    transform: none;
  }

  .snt__tab {
    transition: none;
  }
}
