/*
 * page-news.css
 * お知らせ一覧ページ
 * カテゴリフィルタ付き投稿一覧
 */

.om-news-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(126, 200, 246, .08), transparent 20%),
    radial-gradient(circle at 92% 18%, rgba(245, 138, 173, .08), transparent 18%),
    #ffffff !important;
}

.om-news-archive-hero {
  position: relative;
  padding: 70px 0 34px;
}

.om-news-archive-hero__inner {
  position: relative;
  z-index: 3;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 18%, rgba(126, 200, 246, .14), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(245, 138, 173, .12), transparent 24%),
    linear-gradient(120deg, #ffffff 0%, #f0fbff 55%, #fff7fb 100%);
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: 0 14px 34px rgba(116, 88, 63, .08);
  overflow: hidden;
}

.om-news-archive-hero__label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #55aee2;
  background: #eaf8ff;
  border: 1px solid rgba(126, 200, 246, .22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}

.om-news-archive-hero h1 {
  margin: 0 0 16px;
  color: #4b372e;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-news-archive-hero__copy p:not(.om-news-archive-hero__label) {
  margin: 0;
  color: #66564c;
  font-weight: 800;
  line-height: 2;
}

.om-news-archive-hero__deco {
  position: relative;
  min-height: 190px;
}

.om-news-archive-deco {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  animation: omSoftBob 5.2s ease-in-out infinite alternate;
}

.om-news-archive-deco--note {
  right: 48px;
  top: 20px;
  width: 116px;
  height: 116px;
  color: #55aee2;
  background: #eaf8ff;
  font-size: 66px;
}

.om-news-archive-deco--heart {
  left: 34px;
  bottom: 22px;
  width: 78px;
  height: 78px;
  color: #ee729c;
  background: #fff1f6;
  font-size: 44px;
  animation-delay: -.8s;
}

.om-news-archive-deco--circle {
  right: 152px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  background: #ffd95b;
  opacity: .72;
  animation-delay: -1.4s;
}

.om-news-archive-main {
  padding-top: 28px;
  padding-bottom: 72px;
}

.om-news-filter {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 20%, rgba(245, 138, 173, .10), transparent 22%),
    linear-gradient(90deg, #ffffff 0%, #f0fbff 100%);
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: 0 8px 18px rgba(116, 88, 63, .06);
}

.om-news-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #5b4b42 !important;
  background: #ffffff;
  border: 1px solid #f0e8df;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 5px 12px rgba(116, 88, 63, .05);
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s ease,
    background .28s ease,
    color .28s ease;
}

.om-news-filter__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #55aee2;
  background: #eaf8ff;
  font-size: 13px;
  line-height: 1;
}

.om-news-filter__item.om-news-label--notice .om-news-filter__icon {
  color: #ee729c;
  background: #fff1f6;
}

.om-news-filter__item.om-news-label--blog .om-news-filter__icon {
  color: #55aee2;
  background: #eaf8ff;
}

.om-news-filter__item.om-news-label--news .om-news-filter__icon {
  color: #ff9d11;
  background: #fff9ea;
}

.om-news-filter__item.om-news-label--photo .om-news-filter__icon {
  color: #73b988;
  background: #f2fbf5;
}

.om-news-filter__item.is-active,
.om-news-filter__item:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, #ffb13b 0%, #ff9d11 100%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 157, 17, .18);
}

.om-news-filter__item.is-active .om-news-filter__icon,
.om-news-filter__item:hover .om-news-filter__icon {
  color: #ff9d11;
  background: #ffffff;
}

.om-news-archive-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.om-news-archive-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: var(--shadow);
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease;
}

.om-news-archive-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(126, 200, 246, .10);
  pointer-events: none;
  z-index: 1;
}

.om-news-archive-card:nth-child(even)::before {
  background: rgba(245, 138, 173, .10);
}

.om-news-archive-card__link {
  position: relative;
  z-index: 2;
  display: block;
  color: inherit;
  text-decoration: none !important;
  height: 100%;
}

.om-news-archive-card__thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / .68;
  background: #f3f0eb;
  border-radius: 30px 30px 0 0;
}

.om-news-archive-card__thumb img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.om-news-archive-card__noimage {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 4px;
  align-content: center;
  color: #55aee2;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 138, 173, .12), transparent 26%),
    linear-gradient(135deg, #f0fbff 0%, #fff7fb 100%);
}

.om-news-archive-card__noimage span {
  font-size: 46px;
  line-height: 1;
}

.om-news-archive-card__noimage em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .16em;
}

.om-news-archive-card__body {
  padding: 22px 22px 24px;
}

.om-news-archive-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.om-news-archive-card__meta time {
  color: #8a7b70;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-news-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.om-news-label--notice {
  background: #ee729c;
}

.om-news-label--blog {
  background: #73b988;
}

.om-news-label--news {
  background: #ff9d11;
}

.om-news-label--photo {
  background: #55aee2;
}

.om-news-label--default {
  background: #9e8bff;
}

.om-news-archive-card h3 {
  margin: 0 0 12px;
  color: #4b372e;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 900;
  letter-spacing: .03em;
}

.om-news-archive-card p {
  margin: 0 0 18px;
  color: #5b4b42;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

.om-news-archive-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff9d11;
  font-size: 14px;
  font-weight: 900;
}

.om-news-archive-card__more span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #ffffff;
  background: #ff9d11;
  font-size: 16px;
  line-height: 1;
}

@media (hover: hover) {
  .om-news-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(116, 88, 63, .12);
  }

  .om-news-archive-card:hover .om-news-archive-card__thumb img {
    transform: scale(1.045);
  }
}

.om-news-pagination {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}

.om-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 4px;
  padding: 0 13px;
  border-radius: 999px;
  color: #5b4b42;
  background: #ffffff;
  border: 1px solid #f0e8df;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 5px 12px rgba(116, 88, 63, .05);
}

.om-news-pagination .page-numbers.current,
.om-news-pagination .page-numbers:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #ffb13b 0%, #ff9d11 100%);
  border-color: transparent;
}

.om-news-empty {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  max-width: 680px;
  padding: 42px 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 18%, rgba(245, 138, 173, .12), transparent 24%),
    linear-gradient(120deg, #ffffff 0%, #f0fbff 100%);
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: var(--shadow);
  text-align: center;
}

.om-news-empty span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  color: #55aee2;
  background: #eaf8ff;
  font-size: 36px;
  font-weight: 900;
}

.om-news-empty h3 {
  margin: 0 0 10px;
  color: #4b372e;
  font-size: 24px;
  font-weight: 900;
}

.om-news-empty p {
  margin: 0;
  color: #5b4b42;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .om-news-archive-hero__inner {
    grid-template-columns: 1fr;
  }

  .om-news-archive-hero__deco {
    display: none;
  }

  .om-news-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .om-news-archive-hero {
    padding: 34px 0 24px;
  }

  .om-news-archive-hero__inner {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .om-news-archive-hero h1 {
    font-size: 32px;
  }

  .om-news-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 14px;
    border-radius: 22px;
    -webkit-overflow-scrolling: touch;
  }

  .om-news-filter__item {
    flex: 0 0 auto;
  }

  .om-news-archive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .om-news-archive-card {
    border-radius: 24px;
  }

  .om-news-archive-card__thumb {
    border-radius: 24px 24px 0 0;
  }

  .om-news-archive-card__body {
    padding: 20px 18px 22px;
  }

  .om-news-archive-card h3 {
    font-size: 18px;
  }

  .om-news-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
}


/* ========================================
   News archive force layout 2026052247
   /news/ が投稿ページとして表示される場合の崩れ対策
======================================== */
.om-news-page img {
  max-width: 100%;
  height: auto;
}

.om-news-page .om-news-archive-card__thumb img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* 旧テーマ由来の本文幅・画像幅指定が混ざった場合の保険 */
.om-news-page #container,
.om-news-page .width,
.om-news-page .entry-content,
.om-news-page article {
  max-width: none;
}

.om-news-page .om-container {
  max-width: var(--container, 1120px) !important;
  width: min(1120px, calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ========================================
   News first content image fallback 2026052248
   アイキャッチ未設定時、本文内の最初の画像を一覧に表示
======================================== */
.om-news-archive-card__thumb > img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}


/* ========================================
   News filter link fix 2026052259
   カテゴリフィルターのリンク先を /news/ 基準に固定
======================================== */
.om-news-filter {
  isolation: isolate;
}

.om-news-filter__item {
  position: relative;
  z-index: 20;
}

.om-news-archive-card__link {
  position: relative;
  z-index: 2;
}

/* ========================================
   News filter tab alignment / text color fix 20260523
   ・「すべて」タブが上にずれないよう、active時の持ち上げを解除
   ・カテゴリタブの文字色を白に固定
======================================== */
.om-news-filter {
  align-items: center;
}

.om-news-filter__item {
  align-self: center;
  line-height: 1;
}

/* active / hover でタブが上に移動しないようにする */
.om-news-filter__item.is-active,
.om-news-filter__item:hover {
  transform: none !important;
}

/* お知らせ・ブログ・フォトアルバムの文字を白にする */
.om-news-filter__item.om-news-label--notice,
.om-news-filter__item.om-news-label--blog,
.om-news-filter__item.om-news-label--photo {
  color: #ffffff !important;
}

.om-news-filter__item.om-news-label--notice span:not(.om-news-filter__icon),
.om-news-filter__item.om-news-label--blog span:not(.om-news-filter__icon),
.om-news-filter__item.om-news-label--photo span:not(.om-news-filter__icon) {
  color: #ffffff !important;
}

