/* ========================================
   外来魚バスターズ - Content Styles
   活動レポート・研究分析ページ専用スタイル
   ======================================== */

/* ===== セクションヘッダー内 author ===== */
.SectionHeaderAuthor {
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== セクションフッター ===== */
.SectionFooter {
  text-align: right;
  margin-top: 16px;
}

/* ===== 結果タイトル ===== */
.ResultTitle {
  background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 16px;
  letter-spacing: 2px;
  text-align: left;
}

/* ===== 結果テーブル（2004年以降の駆除成果表） ===== */
.ResultTable {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

/* ===== 結果テーブル内セル整列（2003年以前の駆除成果表） ===== */
.SectionBody table table td[align="left"] {
  text-align: left;
}
.SectionBody table table td[align="right"] {
  text-align: right;
}

/* ===== 活動紹介画像（発展スタイル） ===== */
.ActivityIntro IMG {
  margin: 0.6em auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border: none;
}

.ActivityIntro IMG:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* ===== 画像ギャラリー（2枚横並び） ===== */
.ImageGallery {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  margin: 1em 0;
}

.ImageGallery .GalleryItem {
  flex: 1;
  text-align: center;
}

.ImageGallery IMG {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: block;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ImageGallery IMG:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.ImageGallery .Caption {
  font-size: 11px;
  color: #6a9ab0;
  margin-top: 8px;
  line-height: 1.4;
}

/* ===== フロート配置 ===== */
.FloatRight {
  float: right;
  margin: 0 0 1em 1em;
}

.FloatLeft {
  float: left;
  margin: 4px 1em 1em 0.5em;
}

/* ===== フロート内キャプション ===== */
.FloatLeft .Caption,
.FloatRight .Caption {
  font-size: 11px;
  color: #6a9ab0;
  margin-top: 6px;
  line-height: 1.4;
  text-align: center;
}

/* ========================================
   前へ/次へナビゲーション
   ======================================== */
.PageNav {
  margin-top: 32px;
  padding: 0 4px;
}

.PageNavInner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
}

.PageNavPrev, .PageNavNext {
  flex: 1;
}

.PageNavPrev a, .PageNavNext a {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #b8d8e8;
  border-radius: 8px;
  text-decoration: none;
  color: #0066a0;
  transition: all 0.2s;
  height: 100%;
  box-sizing: border-box;
}

.PageNavPrev a:hover, .PageNavNext a:hover {
  background: linear-gradient(180deg, #0077b6 0%, #00b4d8 100%);
  color: #fff;
  border-color: #0077b6;
  box-shadow: 0 2px 8px rgba(0,100,150,0.3);
}

.PageNavPrev a { text-align: left; }
.PageNavNext a { text-align: right; }

.PageNavArrow {
  font-size: 18px;
  line-height: 1;
}

.PageNavLabel {
  font-size: 11px;
  color: #6a9ab0;
  display: block;
  margin: 2px 0;
}

.PageNavPrev a:hover .PageNavLabel,
.PageNavNext a:hover .PageNavLabel {
  color: #caf0f8;
}

.PageNavTitle {
  font-size: 14px;
  font-weight: bold;
  display: block;
  line-height: 1.4;
}

.PageNavIndex {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.PageNavIndex a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  background: linear-gradient(180deg, #e8f4f8 0%, #d8eef5 100%);
  border: 1px solid #b8d8e8;
  border-radius: 8px;
  text-decoration: none;
  color: #0066a0;
  transition: all 0.2s;
  min-width: 60px;
  height: 100%;
  box-sizing: border-box;
}

.PageNavIndex a:hover {
  background: linear-gradient(180deg, #0077b6 0%, #00b4d8 100%);
  color: #fff;
  border-color: #0077b6;
}

.PageNavPrev.Disabled,
.PageNavNext.Disabled {
  display: none;
}

/* ========================================
   コンテンツページ用 レスポンシブ対応
   ======================================== */

/* タブレット (768px 以下) */
@media screen and (max-width: 768px) {
  .ActivityIntro P {
    line-height: 1.7;
  }
}

/* スマートフォン (480px 以下) */
@media screen and (max-width: 480px) {
  .SectionHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .SectionHeaderAuthor {
    align-self: flex-end;
    font-size: 13px;
  }

  .ActivityIntro P {
    line-height: 1.6;
  }

  /* ページナビゲーション */
  .PageNavInner {
    flex-direction: column;
    gap: 6px;
  }

  .PageNavIndex {
    order: -1;
  }

  .PageNavIndex a {
    flex-direction: row;
    gap: 4px;
    padding: 8px 12px;
  }

  .PageNavPrev a, .PageNavNext a {
    padding: 10px 12px;
  }

  .PageNavTitle {
    font-size: 13px;
  }

  /* 画像ギャラリー：スマホで縦積み */
  .ImageGallery {
    flex-direction: column;
  }

  .ImageGallery .GalleryItem {
    width: 100%;
  }
}
