/* =======================================================
   NEWS 一覧ページ（.page-news）レスポンシブ列数
   ======================================================= */

/* ─── PC：3 列 ─── */
.page-news ul {
  width: 95%;
  margin: 80px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2%;                       /* 行・列の余白 */
  justify-content: space-around;
}
.page-news ul li,
.page-news .news_empty {
  width: 30%;                    /* 100-(2%×2)=96% → 30×3=90% */
  aspect-ratio: 1/1;
  transition: transform .25s, box-shadow .25s;
}

.page-news ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .page-news ul li:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  }
}

/* ─── タブレット：2 列 ─── */
@media (max-width: 1024px) {
  .page-news ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2%; /* 行・列の余白 */
    justify-content: space-between;
  }

  .page-news ul li,
  .page-news .news_empty {
    width: 48%;  /* 48×2=96% */
  }

  .page-news .news_empty {
    visibility: hidden; /* 空セルは可視化しない */
  }
}

/* ─── スマホ：1 列 カードレイアウト ─── */
@media (max-width: 768px) {
  .page-news ul {
    display: block; /* ブロック表示に変更 */
    margin: auto;
  }

  .page-news ul li,
  .page-news .news_empty {
    width: 100%;
    height: 250px;
  }

  .page-news ul li {
    display: flex;
    margin: 20px 0;
    background: #fff;
    border-radius: 20px;
    height: 250px;
  }

  /* 画像：左半分 */
  .page-news .news_img {
    width: 50%;
    height: 220px;
    position: relative;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
  }
  .page-news .news_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-news .news_img h3 {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #13564D;
    color: #fff;
    padding: 5px 20px;
    border-radius: 0 10px 0 20px;
  }

  /* テキスト：右半分 */
  .page-news .news_title {
    width: 50%;
    padding: 6% 6%;
    text-align: left;

  }
  .page-news .news_title a {
    font-size: 1rem;
    line-height: 1.4;
    display: inline-block;
    text-decoration-line: underline;
    text-decoration-style: dotted;

    /* フォールバック */
    text-decoration: none;
    border-bottom: 2px dotted currentColor;
    padding-bottom: 2px;
  }
  .page-news .news_title time {
    font-size: .8rem;
    color: #13564D;
  }
}












/* shingle *
/



/* ---------- 基本 ---------- */


.single-news .a_c {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin: 20px 0 0 0;
}

.single-news .a_c .cate {
  background: #13564D;
  color: #fff;
  padding: 2px 12px;
  border-radius: 5px;
}

.single-news .title {
  font-size: 30px;
  margin: 15px 0;
  color: #13564D;
  line-height: 1.3;
}

/* ---------- 画像４枚レイアウト ---------- */
.imgs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.imgs .left img {               /* 大画像 */
  width: 530px;
  height: 530px;
  object-fit: contain;
}

.imgs .right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.imgs .right .top {
  display: flex;
  gap: 10px;
}

.imgs .right .top img {          /* 右上２枚 */
  width: 260px;
  height: 260px;
  object-fit: contain;
}

.imgs .right .bottom img {       /* 右下１枚 */
  width: 530px;
  height: 260px;
  object-fit: contain;
}

/* ---------- 本文 ---------- */
.single-news .text {
  margin: 30px 0;
  line-height: 1.8;
}

/* ============================
   レスポンシブ
   ============================ */

/* --- 1024px 以下：縦２段構成 --- */
@media (max-width: 1024px) {
  .imgs {
    flex-direction: column;
  }

  .imgs .left img,
  .imgs .right .bottom img {
    width: 100%;
    height: 55vw;               /* ほぼ正方形 */
    max-height: 500px;
  }

  .imgs .right .top img {
    width: 50%;
    height: 50vw;
    max-height: 240px;
  }
}

/* --- 640px 以下：全て縦１列 --- */
@media (max-width: 640px) {
  .imgs .left img,
  .imgs .right .top img,
  .imgs .right .bottom img {
    width: 100%;
    height: 60vw;
    max-height: 360px;
  }

  .imgs .right .top {
    flex-direction: column;
  }
}
