@charset "UTF-8";

/* ==========================================================================
   News & Activity Combined Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Common Elements (共通パーツ：タグ・日付)
   -------------------------------------------------------------------------- */

/* カテゴリタグ（詳細ページ・カード用） */
.c-tag,
.article-cat {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 2px;
  letter-spacing: 0.05em;
  background-color: #999; /* デフォルト */
}

/* 色バリエーション */
.c-tag--navy,
.article-cat.cat-navy {
  background-color: var(--jilaf);
}

.c-tag--gray,
.article-cat.cat-gray {
  background-color: var(--gray);
}

.c-tag--orange,
.article-cat.cat-orange {
  background-color: var(--orange);
}

.c-tag--jilaf,
.article-cat.cat-jilaf {
  background-color: var(--jilaf2);
}

/* ニュースリスト用カテゴリーラベル（フルハイトの列スタイル） */
.news-cat {
  background: var(--emerald);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 6px 20px;
  min-width: 150px;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* 日付（共通） */
.c-date,
.article-date {
  font-family: var(--font-en);
  font-weight: 700;
  color: #888;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   2. News List View (リスト表示：トップページ等)
   -------------------------------------------------------------------------- */
.news-section {
  background-color: #fff;
  padding-bottom: 80px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.news-item {
  background: var(--bg-gray, #f9f9f9);
  transition: 0.3s;
}

.news-item:hover {
  background: #eefbf9;
  transform: translateX(5px);
}

.news-link {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  text-decoration: none;
  color: #333;
  min-height: 60px;
}

.news-content {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 20px;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.news-arrow {
  background: var(--emerald, #00a0e9);
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: 0.3s;
}

.news-item:hover .news-arrow i {
  transform: translateX(3px);
}

/* スマホ対応（リスト表示） */
@media (max-width: 768px) {
  .news-section {
    padding-bottom: 60px;
  }

  .news-link {
    flex-direction: column;
    position: relative;
  }

  .news-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    padding-right: 60px;
  }

  .news-cat {
    min-width: auto;
    height: auto;
    border-radius: 4px;
    font-size: 0.75rem;
  }

  .news-arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
  }

  .news-item:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   3. Activity Grid View (カードグリッド表示：一覧ページ)
   -------------------------------------------------------------------------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  padding-top: 50px;
}

.c-card {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm); /* common.cssの薄い影 */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 10px;
  color: var(--text-main);
  height: 100%; /* 高さを揃える */
}

.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.c-card:hover .c-card__title {
  color: var(--jilaf);
  text-decoration: underline;
}

.c-card:hover .c-card__img {
  transform: scale(1.05);
}

.c-card__img-wrapper {
  overflow: hidden;
  position: relative;
  padding-top: 60%;
}

.c-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.c-card__body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.c-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.c-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 15px;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.c-card__location {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}
.c-card__location i {
  color: #ccc;
}
/* ==========================================================
   追加：カード内の個別リンク（画像・タイトル・カテゴリ・国）用スタイル
   ========================================================== */

/* 画像ラッパー（aタグになったためブロック要素にする） */
a.c-card__img-wrapper {
  display: block;
  text-decoration: none;
}

/* タイトルのリンク設定 */
.c-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

/* カード全体にマウスを乗せた時、またはタイトル自体にマウスを乗せた時に色を変える */
.c-card:hover .c-card__title a,
.c-card__title a:hover {
  color: var(--jilaf) !important;
  text-decoration: underline !important;
}

/* カテゴリタグのホバー効果（フワッと浮く） */
a.c-tag,
a.article-cat {
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
}
a.c-tag:hover,
a.article-cat:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #fff !important;
  text-decoration: none;
}

/* 詳細ページの国名リンク */
.article-country-link {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.article-country-link:hover {
  color: var(--jilaf);
  text-decoration: none;
}

/* 国名リンクのホバー効果 */
.c-card__country-link {
  transition: color 0.3s;
}
.c-card__country-link:hover {
  color: var(--jilaf) !important;
}
/* レスポンシブ（グリッド表示） */
@media (max-width: 1024px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   4. Detail Page (詳細ページ)
   -------------------------------------------------------------------------- */

/* ヘッダーエリア */
.article-header {
  background-color: #f4f8fb;
  padding: 140px 0 60px;
  border-bottom: 1px solid #eef2f5;
}

.article-header__inner {
  /* max-width: 880px; */
  margin: 0 auto;
}

/* 詳細ページ用メタ情報（上部） */
.article-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.meta-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 補足タグ（詳細ページ用） */
.article-tag {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.article-tag i {
  color: var(--orange);
  margin-right: 4px;
}
/* --------------------------------------------------------------------------
   4. Detail Page (詳細ページ) の修正
   -------------------------------------------------------------------------- */

/* --- ヘッダー内のメタ情報レイアウト --- */
.article-meta-top {
  display: flex;
  justify-content: flex-start; /* 左寄せに変更 */
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px; /* 要素間の隙間 */
}

/* --- カテゴリタグ（一覧の .c-tag を継承） --- */
/* news.css上部で .c-tag, .article-cat を共通化しているのでそのままでOK */
/* 追加で詳細ページ用に少しサイズ調整したい場合のみ記述 */
.article-cat {
  font-size: 0.8rem;
  padding: 4px 14px;
}

/* --- ロケーション表示（一覧の .c-card__location と同じデザインに） --- */
.article-location {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* アイコンと文字の間隔 */
  font-size: 0.9rem; /* 少し読みやすく */
  color: #888; /* 一覧と同じグレー */
  font-weight: 500;
}

.article-location i {
  color: #ccc; /* 一覧と同じアイコン色（薄いグレー） */
  font-size: 1rem;
}

/* --- 日付（右側に配置したい場合） --- */
.article-date-wrap {
  margin-left: auto; /* 日付だけ右端に寄せる */
}
/* スマホでは左寄せに戻す */
@media (max-width: 768px) {
  .article-date-wrap {
    margin-left: 0;
    width: 100%;
    margin-top: 5px;
  }
}

/* 開催期間バッジ */
.article-period {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 5px 15px;
  border-radius: 50px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.article-period .label {
  background: #666;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 10px;
  font-weight: 700;
}

.article-period .date {
  font-family: var(--font-en);
  font-weight: 700;
  color: #333;
}

/* タイトル */
.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

/* 本文エリア */
.article-content-width {
  max-width: 800px;
  margin: 0 auto;
}

.article-thumbnail {
  margin: 0 auto 50px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 80%;
  text-align: center;
}
.article-thumbnail img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.content-box figure {
  /* margin: 40px 0; */
  text-align: center;
}
.content-box figcaption {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  margin-top: 10px;
}
.content-box img {
  max-height: 400px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 40px auto;
}

@media screen and (max-width: 1024px) {
  .content-box img {
    max-height: 320px;
    margin: 30px auto;
  }
}

@media screen and (max-width: 768px) {
  .content-box img {
    max-height: 260px;
    margin: 20px auto;
  }
}

/* 添付ファイルエリア */
.article-files {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-top: 60px;
  border: 1px solid #eee;
}
.file-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
}
.file-title::before {
  content: "\f0c6";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #999;
  margin-right: 10px;
}

/* フォトギャラリー */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery-item {
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s;
  margin: 0;
}
.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.gallery-caption {
  font-size: 0.82rem;
  color: #555;
  text-align: center;
  padding: 6px 8px 8px;
  line-height: 1.4;
  background: #f5f5f5;
}

/* PDFボタン上書き */
.c-btn--pdf .btn-icon {
  color: #d32f2f !important;
}
.c-btn--pdf:hover {
  border-color: #d32f2f;
  background: #fff5f5;
  color: #d32f2f;
}

/* スマホ対応（詳細ページ） */
@media (max-width: 768px) {
  /* ヘッダー高さ52px + 余白23px = 75px */
  .article-header {
    padding: 75px 0 25px;
  }

  .article-title {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .article-thumbnail {
    margin-bottom: 25px;
    max-width: 100%;
  }
  .gallery-item img {
    height: 200px;
  }

  .article-period {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 8px;
    padding: 10px;
    gap: 5px;
    font-size: 0.82rem;
  }

  .article-gallery {
    grid-template-columns: 1fr;
  }

  /* カード本文の余白削減 */
  .c-card__body {
    padding: 15px;
  }

  .c-card__title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .c-card__meta {
    margin-bottom: 8px;
  }

  /* 記事ナビ・添付ファイルの余白削減 */
  .article-nav {
    margin-top: 40px;
    padding-top: 20px;
  }

  .article-files {
    padding: 20px;
    margin-top: 30px;
  }

  .file-title {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
}

/* --------------------------------------------------------------------------
   5. Navigation & Pagination (ページ送り)
   -------------------------------------------------------------------------- */

/* 前後の記事ナビ（詳細ページ用） */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.article-nav a {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.article-nav a:hover {
  color: var(--orange);
}

.article-nav a.center {
  font-weight: 700;
  border: 1px solid #ddd;
  padding: 10px 30px;
  border-radius: 50px;
}
.article-nav a.center:hover {
  background: var(--jilaf);
  color: #fff;
  border-color: var(--jilaf);
}
.article-nav i {
  margin: 0 10px;
  font-size: 0.8rem;
}

/* ページネーション（一覧ページ用） */
.pagination-area {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.pagination-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  border: 1px solid transparent;
}
a.page-link:hover {
  background: #f0f4f8;
  color: var(--jilaf);
  transform: translateY(-2px);
}
.page-link.active {
  background: var(--jilaf);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(22, 88, 160, 0.3);
}
.page-link.prev,
.page-link.next {
  border: 1px solid #ddd;
  color: var(--jilaf);
  font-size: 0.9rem;
}
.page-link.prev:hover,
.page-link.next:hover {
  border-color: var(--jilaf);
  background: var(--jilaf);
  color: #fff;
}
.page-item.dot {
  color: #999;
  font-family: var(--font-en);
  letter-spacing: 2px;
  padding: 0 5px;
}

/* スマホ対応（ナビ・ページネーション） */
@media (max-width: 768px) {
  .article-nav {
    flex-direction: column;
    gap: 20px;
  }
  .article-nav a.center {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .pagination-area {
    margin-top: 40px;
  }
  .pagination-list {
    gap: 6px;
  }
  .page-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
/* ==========================================================
   タイトルと国名リンクのホバーエフェクト（カテゴリと統一）
   ========================================================== */

/* 1. タイトルのホバー設定 */
.c-card__title a {
  display: inline-block; /* 動きをつけるために必要 */
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.c-card__title a:hover {
  color: var(--jilaf) !important;
  transform: translateY(-2px); /* カテゴリと同じ浮き上がり */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影で浮遊感を出す */
}

/* 2. 国名リンクのホバー設定 */
.c-card__country-link {
  display: inline-flex; /* アイコンと文字を並べる */
  align-items: center;
  transition: all 0.3s ease;
  /* 下線はホバー前はあってもなくてもOK（お好みで） */
  text-decoration: none !important;
}

.c-card__country-link:hover {
  color: var(--jilaf) !important;
  transform: translateY(-2px); /* カテゴリと同じ浮き上がり */
  opacity: 0.8;
}

/* スマホでは動きを無効化（誤操作防止のため推奨） */
@media (max-width: 768px) {
  .c-card__title a:hover,
  .c-card__country-link:hover {
    transform: none;
  }
}
