/* =========================================
  共通
========================================= */

/* カテゴリタグ */
.c-categoryList__link {
    background-color: #ffffff;
    border: solid 1px #000;
    color: #000;
}

/* =========================================
   お知らせ一覧ページ
========================================= */

/* お知らせアーカイブ：一覧全体 */
.category-news .p-postList {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px !important;
  width: min(100%, 900px);
  margin: 0 auto;
}
/* お知らせアーカイブ：ホバー時のフェードをすべて解除 */
.category-news .p-postList__item:hover .p-postList__body,
.category-news .p-postList__item:hover .p-postList__thumb,
.category-news .p-postList__item:hover .p-postList__thumb img {
  opacity: 1 !important;
}

/* サムネイルに重なる半透明レイヤーも非表示 */
.category-news .p-postList__item:hover .p-postList__thumb::before {
  opacity: 0 !important;
}


/* 各記事 */
.category-news .p-postList__item {
  width: 100% !important;
  margin: 0 !important;
  border: 0;
}

/* カード全体 */
.category-news .p-postList__link {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;

  padding: 22px;
  color: #111;
  text-decoration: none;

  background-color: #fff;
  border: 2px solid #111;
  border-radius: 16px;
  box-shadow: 5px 5px 0 #111;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* カードのホバー */
.category-news .p-postList__link:hover {
  color: #111;
  opacity: 1;
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #111;
}

/* サムネイル */
.category-news .p-postList__thumb {
  height: stretch;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  overflow: hidden;

  background-color: #f8d3d7;
  border: 1px solid #111;
  border-radius: 10px;
}

/* サムネイル画像の囲み */
.category-news .c-postThumb__figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* サムネイル画像 */
.category-news .c-postThumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* サムネイル上のカテゴリーラベル */
.category-news .c-postThumb__cat {
  display: none;
}

/* 本文側 */
.category-news .p-postList__body {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding-top: 0;
}

/* 日付をタイトルより上に配置 */
.category-news .p-postList__meta {
  order: -1;
  width: fit-content;
  margin: 0;
}

/* 日付ラベル */
.category-news .c-postTimes {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 4px 11px;

  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;

  background-color: #ffd21f;
  border: 1.5px solid #111;
  border-radius: 999px;
}

/* タイトル */
.category-news .p-postList__title {
  margin: 0;
  color: #111;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.5;

  transition: color 0.2s ease;
}

/* 抜粋 */
.category-news .p-postList__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;

  color: #555;
  font-size: 14px;
  line-height: 1.8;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* タイトルのホバー */
.category-news .p-postList__link:hover .p-postList__title {
  color: #1dd0da;
}

/* =========================================
   スマホ
========================================= */
@media screen and (max-width: 768px) {
  .category-news .p-postList {
    gap: 20px !important;
    max-width: none;
  }

  .category-news .p-postList__link {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;

    border-radius: 13px;
    box-shadow: 4px 4px 0 #111;
  }

  .category-news .p-postList__thumb {
    width: 100px;
    border-radius: 8px;
  }

  .category-news .p-postList__title {
    font-size: 16px;
  }

  .category-news .c-postTimes {
    padding: 3px 8px;
    font-size: 11px;
  }

  .category-news .p-postList__excerpt {
    display: none;
  }
}

/* かなり狭いスマホ */
@media screen and (max-width: 390px) {
  .category-news .p-postList__link {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .category-news .p-postList__thumb {
    width: 84px;
  }
}

/* =====================================
   お知らせ個別ページ
===================================== */

#body_wrap.single-post #main_content {
  width: 100%;
  max-width: 800px !important;
  margin-inline: auto;
}


#body_wrap.single-post .p-articleThumb {
    border: solid 1px #000;
    border-radius: 8px;
}
/* =====================================
   お知らせ一覧に戻るボタン
===================================== */
#body_wrap.single-post .jl-news-back {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

#body_wrap.single-post .jl-news-back__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding: 14px 28px;

  color: #111;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;

  background-color: #fff;
  border: 2px solid #111;
  border-radius: 100px;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

#body_wrap.single-post .jl-news-back__link:hover {
  background-color: var(--yellow);
  color: #111;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  #body_wrap.single-post .jl-news-back {
    margin-top: 48px;
  }

  #body_wrap.single-post .jl-news-back__link {
    width: 100%;
    min-width: 0;
  }
}