/* ========================================
   外来魚バスターズ - Base Styles
   全ページ共通の基本スタイル
   ======================================== */

/* ===== 基本設定 ===== */
BODY {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Meiryo UI", "メイリオ", "Osaka", "MS PGothic", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #e8f4f8 0%, #f0f9ff 30%, #ffffff 100%);
  color: #333;
}

A:link { color: #0066a0; text-decoration: none; }
A:visited { color: #5b3a8a; text-decoration: none; }
A:hover { color: #0099cc; text-decoration: underline; }

/* ===== ページ全体のラッパー ===== */
.PageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ===== ヘッダー ===== */
.HeaderBanner {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #48cae4 100%);
  border-radius: 0 0 16px 16px;
  padding: 20px 30px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,100,150,0.25);
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.HeaderLogoImg {
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.3);
  padding-right: 16px;
}

.HeaderLogoImg img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 180px;
  height: 100px;
  object-fit: cover;
  display: block;
}

.HeaderText {
  flex: 1;
  text-align: center;
}

.HeaderTitle {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 4px;
}

.HeaderSubtitle {
  font-size: 13px;
  color: #caf0f8;
  letter-spacing: 2px;
}

.HeaderLogo {
  margin-top: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== メインコンテナ ===== */
.MainContainer {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

/* ===== ウェルカムバナー ===== */
.WelcomeBanner {
  background: linear-gradient(135deg, #90e0ef 0%, #ade8f4 100%);
  border-radius: 12px;
  padding: 16px 24px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,150,200,0.15);
}

.WelcomeBanner JP {
  font-size: 18px;
  font-weight: bold;
  color: #023e8a;
  letter-spacing: 2px;
}

.WelcomeBanner EN {
  display: block;
  font-size: 12px;
  color: #0077b6;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ===== セクション ===== */
.Section {
  margin-top: 24px;
}

.SectionHeader {
  background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px 10px 0 0;
  letter-spacing: 3px;
  box-shadow: 0 2px 6px rgba(0,100,150,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.SectionHeaderTitle {
  flex: 1 1 auto;
}

.SectionBody {
  background: #fff;
  border: 1px solid #d0e8f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,100,150,0.08);
}

/* ===== セクション共通テキスト ===== */
.SectionBody P, .ActivityIntro P {
  text-indent: 1em;
  margin: 0.8em 0;
  line-height: 1.8;
  color: #444;
}

.SectionBody P:first-child, .ActivityIntro P:first-child {
  margin-top: 0;
}

.SectionBody, .SectionBody td, .SectionBody div {
  line-height: 1.8;
  color: #444;
}

.SectionBody table {
  border-collapse: collapse;
  border: none;
}

.SectionBody table td {
  border: none;
  padding: 4px;
  vertical-align: top;
}

/* ===== 画像 ===== */
img {
  border: none !important;
}

.ActivityIntro IMG {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ActivityIntro IMG[float="right"],
.ActivityIntro IMG[align="right"] {
  float: right;
  margin: 0 0 0.5em 1em;
  display: inline;
}

/* ===== 駆除成果グリッド ===== */
.ResultGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
}

.ResultBtn {
  flex: 1 1 calc(20% - 6px);
  min-width: 55px;
  box-sizing: border-box;
  display: block;
  text-align: center;
  padding: 8px 4px;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #b8d8e8;
  border-radius: 6px;
  color: #0066a0;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s;
}

.ResultBtn:hover {
  background: linear-gradient(180deg, #0077b6 0%, #00b4d8 100%);
  color: #fff;
  border-color: #0077b6;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,100,150,0.3);
}

.ResultTotal {
  background: linear-gradient(180deg, #00b4d8 0%, #48cae4 100%);
  color: #fff;
  border-color: #0096c7;
}

.ResultTotal:hover {
  background: linear-gradient(180deg, #0096c7 0%, #00b4d8 100%);
}

/* ===== 活動リスト ===== */
.ActivityList TR {
  border-bottom: 1px solid #eef5f8;
}

.ActivityList TR:last-child {
  border-bottom: none;
}

.ActivityList TD {
  padding: 8px 10px;
  vertical-align: top;
}

.ActivityDate {
  color: #6a9ab0;
  font-size: 12px;
  white-space: nowrap;
  width: 80px;
}

.ActivityTitle {
  font-size: 14px;
  line-height: 1.6;
}

.ActivityList TR:hover {
  background-color: #f0f9ff;
}

/* ===== Collapsible ===== */
.CollapseToggle {
  background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid #b8d8e8;
  border-radius: 6px;
  padding: 8px 16px;
  margin-top: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  color: #0066a0;
  user-select: none;
  transition: all 0.2s;
}

.CollapseToggle:hover {
  background: linear-gradient(90deg, #caf0f8 0%, #e0f2fe 100%);
  border-color: #0077b6;
}

.CollapseContent {
  display: none;
}

.CollapseContent.Open {
  display: block;
}

/* ===== 活動紹介 要約ポイント ===== */
.SummaryPoints {
  list-style: none;
  margin: 0.4em 0 0 0;
  padding: 0;
}

.SummaryPoints LI {
  position: relative;
  padding: 0.6em 0 0.6em 1.8em;
  margin: 0.5em 0;
  line-height: 1.7;
  color: #444;
  border-left: 3px solid #00b4d8;
  padding-left: 16px;
}

.SummaryPoints LI:first-child {
  margin-top: 0;
}

.SummaryPoints LI:last-child {
  margin-bottom: 0;
}

.SummaryPoints LI STRONG {
  color: #0077b6;
}

/* ===== フッター ===== */
.Footer {
  text-align: center;
  padding: 24px 0 16px 0;
  font-size: 11px;
  color: #a0b8c0;
  letter-spacing: 1px;
  width: 100%;
}

.FooterBar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #48cae4, transparent);
  margin-bottom: 16px;
}

/* ===== ライトボックス ===== */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#lightbox-close:hover {
  opacity: 1;
}

/* ===== 三点リーダーメニュー (Three-dot menu) ===== */
.MenuToggle {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(26, 60, 120, 0.92);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  user-select: none;
  -webkit-user-select: none;
}

.MenuToggle:active {
  background: rgba(26, 60, 120, 0.98);
}

/* オーバーレイ（メニュー背面の半透明カバー） */
.NavOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: rgba(0, 0, 0, 0.45);
}

.NavOverlay.Open {
  display: block;
}

/* ナビゲーションメニュー本体 */
.NavMenu {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  z-index: 999;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.25);
  overflow-y: auto;
  transition: right 0.3s ease;
}

.NavMenu.Open {
  display: block;
  right: 0;
}

.NavMenuHeader {
  padding: 16px 20px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #1a3c78;
  border-bottom: 2px solid #2a5ca8;
}

.NavMenuSection {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.NavMenuLink {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  touch-action: manipulation;
}

.NavMenuLink:hover,
.NavMenuLink:focus {
  background: #f0f4ff;
  color: #1a3c78;
}

.NavMenuLink.NavMenuSub {
  padding-left: 36px;
  font-size: 13px;
  color: #666;
}

/* メニューを開いている間は body スクロール禁止 */
body.NavOpen {
  overflow: hidden;
}

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

/* タブレット (768px 以下) */
@media screen and (max-width: 768px) {
  .HeaderBanner {
    border-radius: 0 0 12px 12px;
    padding: 16px 20px;
    gap: 16px;
  }

  .HeaderLogoImg img {
    width: 140px;
    height: 80px;
  }

  .HeaderTitle {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .HeaderSubtitle {
    font-size: 12px;
  }

  .WelcomeBanner {
    margin-top: 16px;
    padding: 12px 16px;
  }

  .WelcomeBanner JP {
    font-size: 16px;
  }

  .WelcomeBanner EN {
    font-size: 11px;
  }

  .Section {
    margin-top: 20px;
  }

  .SectionHeader {
    font-size: 16px;
    padding: 8px 16px;
    letter-spacing: 2px;
  }

  .SectionBody {
    padding: 12px 14px;
  }

  /* 駆除成果グリッドを3列へ */
  .ResultBtn {
    flex: 1 1 calc(33.333% - 6px);
    padding: 10px 4px;
    font-size: 13px;
  }

  .ActivityDate {
    font-size: 11px;
    width: 65px;
  }

  .ActivityTitle {
    font-size: 13px;
  }

  .ActivityList TD {
    padding: 6px 8px;
  }

  /* 三点リーダーメニュー */
  .MenuToggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .NavMenu {
    width: 280px;
  }
}

/* スマートフォン (480px 以下) */
@media screen and (max-width: 480px) {
  BODY {
    font-size: 14px;
  }

  .HeaderBanner {
    border-radius: 0;
    padding: 12px 16px;
    gap: 0;
  }

  /* SP時：琵琶湖写真を非表示 */
  .HeaderLogoImg {
    display: none;
  }

  /* SP時：ロゴ画像を非表示 */
  .HeaderLogo {
    display: none;
  }

  .HeaderTitle {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .HeaderSubtitle {
    font-size: 11px;
  }

  .WelcomeBanner {
    margin-top: 12px;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 8px;
    padding: 10px 12px;
  }

  .WelcomeBanner JP {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .WelcomeBanner EN {
    font-size: 10px;
  }

  .Section {
    margin-top: 16px;
    margin-left: 4px;
    margin-right: 4px;
  }

  .SectionHeader {
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    letter-spacing: 1px;
  }

  .SectionBody {
    padding: 10px;
    border-radius: 0 0 8px 8px;
  }

  /* 駆除成果グリッドを2列へ */
  .ResultBtn {
    flex: 1 1 calc(50% - 6px);
    padding: 10px 2px;
    font-size: 12px;
    border-radius: 4px;
  }

  .ActivityList {
    width: 100%;
  }

  .ActivityDate {
    font-size: 11px;
    width: 55px;
    padding: 4px 6px;
  }

  .ActivityTitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .ActivityList TD {
    padding: 6px;
  }

  .Footer {
    font-size: 10px;
    padding: 20px 0 12px 0;
  }

  /* 三点リーダーメニュー */
  .NavMenu {
    width: 100%;
    right: -100%;
  }

  /* ライトボックス */
  #lightbox-overlay img {
    max-width: 95%;
    max-height: 85%;
  }

  #lightbox-close {
    top: 10px;
    right: 16px;
    font-size: 32px;
  }
}
