/* =========================================
   top.css
   - トップページ
   ========================================= */

/* -----------------------------------------
   1. ヒーロースライダー
   ----------------------------------------- */

/* ヒーロー全体 */
.hero {
  padding: 24px 0 16px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* メインスライダー */
.hero-main-swiper {
  width: 100%;
  padding: 8px 0 16px;
  overflow: visible; /* 前後スライドを少し見せる */
}

/* 各スライド（中央が1000px程度・周りがチラ見え） */
.hero-main-swiper .swiper-slide {
  width: min(750px, 85vw); /* 1000px か 85vw の小さい方 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  opacity: 0.6;
}

.hero-main-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* アクティブスライドを強調 */
.hero-main-swiper .swiper-slide.swiper-slide-active {
  transform: scale(1.03);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* サムネイルスライダー */
.hero-thumbs-swiper {
  margin-top: 8px;
  padding-bottom: 4px;
  width: 100%;
}

.hero-thumbs-swiper .swiper-wrapper {
  align-items: center;
}

.hero-thumbs-swiper .swiper-slide {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* アクティブサムネ（Swiper が自動で付与） */
.hero-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-main-swiper .swiper-slide a {
  display: block;
}
.hero-main-swiper .swiper-slide a img {
  display: block;
}
.hero-main-swiper .swiper-slide a {
  cursor: pointer;
}


/* -----------------------------------------
   1-1. ヒーロースライダー：レスポンシブ
   ----------------------------------------- */

@media (max-width: 768px) {
  .hero {
    padding: 0;
  }
}

/* -----------------------------------------
   2. 当協会について（ABOUT）
   ----------------------------------------- */

.about-section {
  margin-bottom: 40px;
  padding: 32px 24px;
  background-color: #f3f3f3;
}

/* タイトル「愛媛県博物館協会」を中央・太字に */
.about-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;

  /* common.css の section h2 の左線を打ち消す */
  border-left: none;
  padding-left: 0;
}

/* 本文部分 */
.about-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.about-lead {
  margin-bottom: 12px;
  font-weight: 500;
}

.about-body p + p {
  margin-top: 8px;
}

/* ABOUT：PDF リンクボタン */
.about-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.about-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #666;
  color: #333;
  background: #fff;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.about-link-btn:hover {
  background: #e9e9e9;
  border-color: #444;
  color: #111;
  text-decoration: none !important;
}

.about-link-btn:visited {
  text-decoration: none;
}

/* Material Symbols PDF アイコン（ABOUT内） */
.pdf-icon {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20;
  font-size: 20px;
  color: #b60000;
}


/* -----------------------------------------
   2-1. 当協会について：レスポンシブ
   ----------------------------------------- */

@media (max-width: 768px) {
  .about-section {
    padding: 24px 16px;
  }

  .about-title {
    font-size: 20px;
  }

  .about-body {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .about-link-btn {
    width: 100%;
    justify-content: center;
  }
}


/* -----------------------------------------
   3. 活動状況セクション
   ----------------------------------------- */

.activity-section {
  margin-bottom: 40px;
}

/* 見出しを太字・中央配置 */
.activity-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;

  /* common.css の左線スタイルを打ち消す */
  border-left: none;
  padding-left: 0;
}

/* 枠線（全体の上・下）＋中央寄せ */
.activity-list {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

/* 各号ブロック */
.activity-item {
  padding: 16px 4px;
  border-bottom: 1px solid #e0e0e0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-content {
  display: flex;
  gap: 12px;
}

.activity-date {
  flex: 0 0 130px;
}

/* タイトル部分 */
.activity-item-title {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.activity-item-title a {
  font-weight: inherit;
  text-decoration: none;
  color: #222;
}

.activity-item-title a:hover {
  text-decoration: underline;
}

/* -----------------------------------------
   3-1. 活動状況：レスポンシブ
   ----------------------------------------- */

@media (max-width: 600px) {
  .activity-content {
    display: block;
  }
}

/* -----------------------------------------
   3. 会報セクション
   ----------------------------------------- */

.bulletin-section {
  margin-bottom: 40px;
}

/* 見出しを太字・中央配置 */
.bulletin-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;

  /* common.css の左線スタイルを打ち消す */
  border-left: none;
  padding-left: 0;
}

/* 枠線（全体の上・下）＋中央寄せ */
.bulletin-list {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

/* 各号ブロック */
.bulletin-item {
  display: flex;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid #e0e0e0;
}

.bulletin-item:last-child {
  border-bottom: none;
}

/* 左側の PDF アイコン */
.bulletin-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: start;
  justify-content: center;
  width: 40px;
}

/* Material Symbols の PDF アイコン（会報用） */
.pdf-icon-small {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
  font-size: 50px;
  color: #b60000;
}

/* 右側テキスト部 */
.bulletin-content {
  flex: 1 1 auto;
}

/* タイトル部分 */
.bulletin-item-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bulletin-item-title a {
  font-weight: inherit;
  text-decoration: none;
  color: #222;
}

.bulletin-item-title a:hover {
  text-decoration: underline;
}

/* 概要テキスト */
.bulletin-item-summary {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

/* 会報一覧ボタン（中央配置・左右丸） */
.bulletin-more {
  margin-top: 16px;
  text-align: center;
}

.bulletin-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #444;
  background: #fff;
  color: #222;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

/* ページ遷移イメージのアイコン：arrow_forward */
.bulletin-more-icon {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20;
  font-size: 18px;
}

.bulletin-more-btn:hover {
  background: #f0f0f0;
  border-color: #111;
  color: #111;
  transform: translateY(-1px);
}


/* -----------------------------------------
   3-1. 会報セクション：レスポンシブ
   ----------------------------------------- */

@media (max-width: 768px) {
  .bulletin-item {
    padding: 12px 2px;
  }

  .bulletin-item-title {
    font-size: 15px;
  }

  .bulletin-item-summary {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .pdf-icon-small {
    font-size: 36px;
    font-variation-settings:
      'FILL' 1,
      'wght' 400,
      'GRAD' 0,
      'opsz' 36;
  }
}


/* -----------------------------------------
   4. 加盟館セクション（マイマップ枠）
   ----------------------------------------- */

.members-section {
  margin-bottom: 40px;
  padding: 32px 24px;
  background-color: #f3f3f3;
}

/* 見出し：太字・中央 */
.members-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;

  /* common.css の左線スタイルを打ち消す */
  border-left: none;
  padding-left: 0;
}

/* マップ枠全体 */
.members-map-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* マイマップのプレースホルダー */
.members-map-placeholder {
  width: 100%;
  height: 550px;
  background-color: #000;
  /*border-radius: 8px;*/
}

/* 補足テキスト */
.members-map-note {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

/* MEMBERS：PDF リンクボタン */
.members-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.members-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #666;
  color: #333;
  background: #fff;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.members-link-btn:hover {
  background: #e9e9e9;
  border-color: #444;
  color: #111;
  text-decoration: none !important;
}

.members-link-btn:visited {
  text-decoration: none;
}

/* Material Symbols PDF アイコン（ABOUT内） */
.pdf-icon {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20;
  font-size: 20px;
  color: #b60000;
}


/* -----------------------------------------
   4-1. 加盟館セクション：レスポンシブ
   ----------------------------------------- */

@media (max-width: 768px) {
  .members-section {
    padding: 24px 16px;
  }

  .members-map-placeholder {
    height: 280px;
  }
}


/* -----------------------------------------
   5. バナーリンク集
   ----------------------------------------- */

.banner-section {
  margin: 32px 0 40px;
  text-align: center;
}

.banner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  text-decoration: none;
}

.banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ホバーエフェクト（控えめ） */
.banner-item:hover img {
  opacity: 0.9;
}


/* -----------------------------------------
   5-1. バナーリンク集：レスポンシブ
   ----------------------------------------- */

@media (max-width: 600px) {
  .banner-wrapper {
    gap: 10px;
  }

  .banner-item {
    width: 160px;
  }
}
