@charset "UTF-8";
/* ============================================================
   ふくめぐり｜NEWS / EVENT（WordPress テーマ fukumeguri 用）
============================================================ */

.page-header__label--news { padding: 0 14px; }
.page-header__title--news { margin-top: 16px; font-size: clamp(44px, 3.75vw, 72px); line-height: 1.22; }
.page-header__title--news + .page-header__catch { margin-top: 8px; padding-left: 0; }

/* ---------- 一覧 ---------- */
#news-list { background: var(--c-bg); }
.news-list__inner { width: min(var(--w-content), 100% - 80px); margin: 0 auto; padding: 49px 0 46px; }
.news__list--archive { display: grid; grid-template-columns: repeat(4, 1fr); gap: 71px clamp(16px, 2.08vw, 40px); }
.news__link { display: flex; flex-direction: column; height: 100%; background: #fff; }
.news__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; line-height: 0; background: #fff; }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.news__img--logo { display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--c-bg); }
.news__img--logo img { width: 40%; height: auto; object-fit: contain; }
.news__body { display: block; flex: 1; min-height: 180px; padding: 16px 20px 20px; }
.news__meta { display: flex; align-items: center; gap: 8px; }
.news__cat {
  display: inline-block;
  min-width: 60px;
  height: 20px;
  padding: 0 6px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-align: center;
  background: var(--c-news);
  border-radius: 4px;
}
.news__cat--event { background: var(--c-event); }
.news__date { font-size: 16px; line-height: 23px; color: var(--c-sub); }
.news__title { display: block; font-size: 16px; font-weight: 700; line-height: 23px; }
.news__text { display: block; margin-top: 3px; font-size: 14px; line-height: 21px; }
@media (hover: hover) {
  .news__link:hover .news__img img { transform: scale(1.06); }
  .news__link:hover .news__img--logo img { transform: none; }
  .news__link:hover .news__title { text-decoration: underline; text-underline-offset: 3px; }
}
.news__none { padding: 40px 0; text-align: center; }

/* ---------- ページネーション ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 55px; }
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 23px;
  line-height: 1;
  color: #000;
  border-radius: 50%;
  transition: background-color .3s ease, color .3s ease;
}
.pagination__num.is-current { color: #fff; background: #000; font-size: 27px; }
@media (hover: hover) { a.pagination__num:hover { background: rgba(0, 0, 0, .08); } }
.pagination__arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #000; transition: opacity .3s ease; }
.pagination__arrow .arrow { width: 20px; }
@media (hover: hover) { .pagination__arrow:hover { opacity: .5; } }

/* ---------- 詳細 ---------- */
.page-news.single #header, .page-news.error404 #header { position: relative; background: #fff; }
@media (min-width: 1400px) {
  /* ロゴ（padding-top 31px + 高さ98px）がヘッダー高120pxをはみ出すため、下に余白を足す */
  .page-news.single #header, .page-news.error404 #header { padding-bottom: 30px; }
}
#news-detail { padding: 40px 0 88px; background: var(--c-bg); }
.detail { width: min(900px, 100% - 40px); margin: 0 auto; padding: 42px 100px 55px; background: #fff; }
.detail__meta { display: flex; align-items: center; gap: 12px; }
.detail__cat { min-width: 120px; height: 40px; padding: 0 12px; font-size: 28px; line-height: 40px; border-radius: 6px; }
.detail__date { font-size: 16px; line-height: 23px; color: var(--c-sub); }
.detail__title { margin-top: 16px; padding-bottom: 12px; font-size: 27px; font-weight: 400; line-height: 38px; color: var(--c-text); border-bottom: 1px solid var(--c-text); font-feature-settings: "palt"; }
.detail__body { margin-top: 37px; font-size: 16px; line-height: 24px; font-feature-settings: "palt"; }
.detail__body > * { margin: 0 0 24px; }
.detail__body > *:last-child { margin-bottom: 0; }
.detail__body h2, .detail__body h3, .detail__body h4 { font-size: 16px; font-weight: 700; line-height: 24px; }
.detail__body h2, .detail__body h3, .detail__body h4 { margin-bottom: 0; }
.detail__body a { text-decoration: underline; text-underline-offset: 3px; }
.detail__body ul, .detail__body ol { padding-left: 1.5em; }
.detail__body img, .detail__body figure { display: block; max-width: min(600px, 100%); height: auto; margin-left: auto; margin-right: auto; }
.detail__body img { width: auto; }
.detail__body figure { margin-top: 42px; margin-bottom: 24px; }
.detail__body figure img { margin: 0; }
.detail__body figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: var(--c-sub); }
.detail__body .wp-block-image, .detail__body .wp-block-gallery { margin-top: 42px; margin-bottom: 24px; }
.detail__body iframe { max-width: 100%; }
.detail__back { margin-top: 47px; text-align: center; }
.detail--404 { text-align: center; }

/* ============================================================
   タブレット（～1100px）
============================================================ */
@media (max-width: 1100px) {
  .news__list--archive { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .detail { padding: 40px 40px 50px; }
}

/* ============================================================
   SP（～768px）
============================================================ */
@media (max-width: 768px) {
  .page-header__title--news { margin-top: 20px; font-size: min(48px, 12vw); }
  .page-header__title--news + .page-header__catch { margin-top: 14px; }
  .page-header__img { margin-top: 30px; }

  .news-list__inner { width: calc(100% - 40px); padding: 40px 0 50px; }
  .news__list--archive { grid-template-columns: 1fr; gap: 40px; }
  .news__link { border-radius: 10px 10px 0 0; overflow: hidden; }
  .news__img { aspect-ratio: 360 / 240; }
  .news__img--logo img { width: 30%; }
  .news__body { min-height: 200px; padding: 20px 26px 20px; }
  .news__meta { gap: 10px; }
  .news__cat { min-width: 80px; height: 26px; font-size: 18px; line-height: 26px; }
  .news__date { font-size: 21px; line-height: 1.4; }
  .news__title { margin-top: 4px; font-size: 21px; line-height: 1.45; }
  .news__text { margin-top: 2px; font-size: 18px; line-height: 1.55; }
  .pagination { gap: 16px; margin-top: 50px; }

  #news-detail { padding: 25px 0 32px; }
  .detail { width: calc(100% - 40px); padding: 18px 15px 40px; }
  .detail__meta { gap: 12px; }
  .detail__cat { min-width: 120px; height: 40px; font-size: 28px; line-height: 40px; }
  .detail__date { font-size: 16px; }
  .detail__title { margin-top: 12px; padding-bottom: 20px; font-size: 27px; line-height: 38px; }
  .detail__body { margin-top: 36px; }

  .detail__back { margin-top: 20px; }
}
