@charset "UTF-8";

/* -----------------------
 共通変数
------------------------*/
:root {
  --max-width: 1400px;
  --accent: #000000;
  --muted: #666;
  --bg: #f8f8f8;
  --card: #fff;
  --gap: 24px;
}

/* ===========================
お知らせ /news/
=========================== */
.news-hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
}

.news-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../news/img/news_header.jpg");
  /* ←画像を設定 */
  background-size: cover;
  background-position: center;
}

/* ===========================
タイトル（縦書き）
=========================== */
.news-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.news-hero-title h1 {
  position: relative;
  writing-mode: vertical-rl;
  font-size: 30px;
  color: white;
  right: -20%;
}

/* ===========================
3つの縦書きメニュー
=========================== */
.news-menu {
  display: flex;
  justify-content: center;
  gap: 120px;
  padding: 60px 0;
}

/* ===========================
スマホ対応
=========================== */
@media screen and (max-width: 768px) {
  .news-menu {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

/* ========================
 メインエリア
======================== */
.news_list-section {
  max-width: 1400px;
  margin: 0px auto;
  margin-bottom: 150px;
}

.news-header-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 70px;
}

/* コンテナ */
.news-container {
  width: min(var(--max-width), 94%);
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}

/* サイドバー */
.sidebar {
  width: 280px;
  /* height: 64px; */
  flex: 0 0 280px;
  align-self: stretch;
  font-size: 16px;
}

.sidebar ul {
  list-style: none;
  border: 1px solid #48525b;
  background: #fff;
  overflow: hidden;
}

.sidebar li {
  padding: 20px 8px;
  text-align: center;
  border-bottom: 1px solid #48525b;
  cursor: pointer;
}

.sidebar li:last-child {
  border-bottom: none;
}

.sidebar li.active {
  background: #111;
  color: #fff;
  font-weight: 600;
}
.sidebar li:hover {
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* ニュースカードエリア（グリッド） */
.news-content {
  flex: 1;
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /* gap: 45px; */
  gap: 40px;
}

/* カード */
.card {
  width: 100%;
  max-width: 333px;
  /* height: 369px; */
  height: auto;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  /* overflow: hidden; */
  position: relative;
  margin: 0 auto;
  /* transition: opacity 0.3s ease; */
  /* transition: transform .22s ease, box-shadow .22s ease; */
}

/* .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12)
} */

.card img {
  /* display: block; */
  width: 100%;
  max-width: 333px;
  height: 200px;
  object-fit: cover;
}

/* カード本文 */
.card-body {
  padding: 16px 16px 54px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 日付とラベルを左右端に配置 */
.card-body .date-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card .date {
  font-size: 12px;
  color: var(--accent);
}

.card .label {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  white-space: nowrap;
}

/* テキスト */
.card .text {
  font-size: 16px;
  margin-top: 4px;
  text-align: left;
  font-weight: 600;
}

/* 矢印 */
.card .news-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 20px;
  color: #000;
  transition: transform 0.2s ease;
}

.card:hover .news-arrow {
  transform: translateX(6px);
}

/* ページャーをグリッド横いっぱいに表示 */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 100px;
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 800;
}

.pager a,
.pager .current {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #48525b;
  text-decoration: none;
  color: #333;
}

.pager .current {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

@media (max-width: 1500px) {
  .news-content {
    /* flex-direction: column;
    width: 92%;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%; */
  }
}
@media (max-width: 1440px) {
  .news-content {
    /* flex-direction: column;
    flex-wrap: wrap;
    width: 92%;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr); */
    /* gap: 2%; */
  }
  .breadcrumb {
    /* padding: 40px 40px; */
  }
}

@media (max-width: 1024px) {
  .news_list-section {
    /* margin-bottom: 200px; */
  }

  .news-content {
    /* flex-direction: column;
    width: 92%;
    align-items: center;
    grid-template-columns: repeat(1, 1fr); */
    /* gap: 2%; */
  }
  .breadcrumb {
    /* padding: 40px 40px; */
  }
}

@media (max-width: 1200px) {
  .news-container {
    gap: 20px; /* 余白を少し狭める */
  }
  .sidebar {
    width: 240px;
    flex: 0 0 240px;
  }
}

@media (max-width: 1024px) {
  .news-container {
    flex-direction: column; /* ここで初めて縦並びにする */
    align-items: center;
  }
  .sidebar {
    width: 100%;
    flex: none;
    order: 2; /* コンテンツの後に表示 */
    margin-top: 50px;
  }
  .news-content {
    width: 100%;
    /* スマホ・タブレットでは1列または2列に自動調整 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-header-title {
    font-size: 30px;
  }

  .news-container {
    flex-direction: column;
    width: 92%;
    align-items: center;
  }

  .card {
    width: 100%;
    height: auto;
  }

  .sidebar {
    order: 2;
    width: 100%;
    flex-basis: auto;
  }

  .news-content {
    grid-template-columns: 1fr;
  }

  .news-hero-title .hero-icon {
    margin-top: -4px;
  }

  .news-hero-title h1 {
    font-size: 20px;
    right: -16%;
  }

  .card img {
    width: 100%;
  }

  .pager {
    /* margin-top: 215px; */
  }
}

/* ===========================
ニュース詳細
=========================== */

/* ===== メインコンテンツ ===== */

.article-container {
  max-width: var(--max-width);
  margin: 0 auto 100px auto;
  padding: 0 20px;
}

.article-header {
  background: var(--card);
  padding: 24px;
  border-radius: 6px;
  margin-bottom: var(--gap);
  text-align: center;
}

.article-header h1 {
  margin: 0 0 12px 0;
  font-size: 28px;
}

.article-meta {
  font-size: 15px;
  margin-bottom: 25px;
}

.article-meta time {
  font-weight: bold;
}

.article-label {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 25px;
  border: 2px solid #c2c2c2;
}

.article-line {
  margin: 0 auto;
  width: 1024px;
  border-top: 1px solid #eee;
}

/* ===========================
detail セクション
=========================== */
.detail-wrap {
  max-width: 1024px;
  margin: 5px auto;
  text-align: center;
  /*padding: 60px 20px*/
}

/* ---- 画像2枚 ---- */
.detail-images {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 35px;
  margin-bottom: 40px;
}

.img-box {
  width: 450px;
  height: 260px;
  background: #c2c2c2;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- テキスト ---- */
.detail-text {
  max-width: 1024px;
  margin: 0 auto 35px;
  line-height: 2.1;
  font-size: 16px;
  text-align: left;
}

/* ---- リンク ---- */
.detail-links {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  margin: 40px 40px 60px;
  text-align: left;
  font-size: 16px;
}

a.link-blue {
  color: #2a6bea;
  font-weight: bold;
  text-decoration: underline !important;
}

a.link-pdf {
  color: #b30000;
  font-weight: bold;
  text-decoration: underline !important;
}

/* ---- 戻るボタン ---- */
.detail-back {
  text-align: center;
}

.back-btn {
  display: inline-block;
  padding: 15px 60px;
  border: 1px solid #333;
  font-size: 16px;
  letter-spacing: 2px;
}

.link-icon {
  align-items: center;
  text-align: left;
}

.link-icon img.new_window {
  display: inline;
  vertical-align: middle;
  width: 14px;
  height: auto;
  margin-left: 4px;
  /* 文字との隙間 */
}

/* ===========================
レスポンシブ（スマホ対応）
=========================== */
@media (max-width: 768px) {
  .article-header h1 {
    margin: 0 0 0px 0;
    font-size: 20px;
    font-weight: 600;
  }

  .detail-images {
    flex-direction: column;
    gap: 20px;
  }

  .img-box {
    width: 100%;
    height: 220px;
  }

  .detail-text {
    text-align: left;
    font-size: 14px;
  }

  .back-btn {
    width: 100%;
    padding: 16px 0;
  }

  .detail-links {
    margin: 0 auto 60px;
    font-size: 15px;
  }
}
