.sub-header-brand {
  height: 100px;
  background: #212A3F;
  display: flex;
  align-items: center;
  padding-left: 24px;
}

.sub-logo {
  display: block;
  width: auto;
  height: 85px;
  margin: 5px;
}

.sub-mobile-logo {
  display: block;
  width: auto;
  height: 40px;
  margin: 5px;
}

.sub-main {
  width: min(1100px, 92%);
  margin: 42px auto 70px;
}

ul.nav_pc {
    z-index: 10;
    display: table;
    margin-bottom: 3px;
    padding-bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 40px;
}

/* -------------------------- */
/* ▼メインメニュー項目の装飾 */
/* -------------------------- */
ul.nav_pc li {
	z-index: 10;
	width: 150px;
   min-width: 50px;          /* メニュー項目の横幅(125px) */
   display: inline-block;  /* ★1:横並びに配置する */
   list-style-type: none;  /* ★2:リストの先頭記号を消す */
   position: relative;     /* ★3:サブメニュー表示の基準位置にする */
border-left: 1px solid #ccc;
}

ul.nav_pc li:first-child{
border-left: none;
}

ul.nav_pc a {
	z-index: 10;
   display: block;
width: 100%;
text-decoration: none;
color: #555;
padding-bottom: 0;
}

ul.nav_pc a:hover {
  color: #87ceeb;
	margin-bottom: -3px;
border-bottom: 3px solid #87ceeb;}

/* ▼サブメニューの装飾 */
/* -------------------- */
ul.nav_pc ul {
	z-index: 10;
   display: none;       /* ★1:標準では非表示にする */
   margin: 0px;         /* ★2:サブメニュー外側の余白(ゼロ) */
   padding: 0px;        /* ★3:サブメニュー内側の余白(ゼロ) */
    background-color: #f0f8ff; /* メニュー項目の背景色(濃い赤色) */
   line-height: 40px;         /* メニュー項目のリンクの高さ(40px) */
   text-align: center;        /* メインメニューの文字列の配置(中央寄せ) */
   text-decoration: none;     /* メニュー項目の装飾(下線を消す) */
   font-weight: bold;   
   position: absolute;  /* ★4:絶対配置にする */
   min-width: 100%;
   border-right: none;
   border-bottom: none;
   border-left: none;
}

/* ---------------------------------- */
/* ▼サブメニューがある場合に開く処理 */   /* ※サブメニューが1階層しか存在しない場合の記述 */
/* ---------------------------------- */
ul.nav_pc li:hover ul {
   display: block;      /* ★5:マウスポインタが載っている項目の内部にあるリストを表示する */
}
@media (min-width: 800px) {
.only_mo{
		display: none;
}
}

@media (max-width: 799px) {
.only_PC{
	display: none;
	}
}
#back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  margin: 0;
}

#back-top a,
#back-top img {
  display: block;
}

@media (max-width: 767px) {
  .sub-main {
    width: 92%;
    /* モバイル用の固定ヘッダーに本文が隠れないよう、上部に余白を確保 */
    margin: 88px auto 48px;
  }
}
/* モバイル用ハンバーガーメニュー */
.sub-mobile-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

#mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sub-menu-toggle {
  display: none;
}

.sub-mobile-nav[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .sub-menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    margin: 5px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d6d9df;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }

  .sub-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #212A3F;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .sub-menu-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .sub-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .sub-menu-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sub-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #212A3F;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  }

  .sub-mobile-nav ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
  }

  .sub-mobile-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sub-mobile-nav li:last-child {
    border-bottom: 0;
  }

  .sub-mobile-nav a {
    display: block;
    padding: 12px 22px;
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
  }

  .sub-mobile-nav a:hover,
  .sub-mobile-nav a:focus {
    background: rgba(255, 255, 255, 0.12);
  }

  #top-head {
    position: relative;
  }

  #top-head.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
  }
}
/* =====================================
   活動報告 詳細ページ
===================================== */

.activity-article-page {
  padding: 40px 0 80px;
  color: #333;
}

.activity-article-inner {
  width: min(1000px, 92%);
  margin: 0 auto;
}

/* パンくずリスト */
.activity-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 13px;
  color: #888;
}

.activity-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.activity-breadcrumb a:hover {
  text-decoration: underline;
}

/* 記事全体 */
.activity-article {
  width: 100%;
  min-width: 0;
}

/* タイトル部分 */
.activity-article-header {
  margin-bottom: 50px;
  text-align: center;
}

.activity-category {
  margin: 0 0 12px;
  color: #72849c;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.activity-article-header h1 {
  margin: 0 0 30px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  font-weight: 700;
}

/* 開催情報 */
.activity-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  background: #f5f6f8;
  text-align: left;
}
.activity-info3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  background: #f5f6f8;
  text-align: left;
}
.activity-info div {
  padding: 5px 20px;
  border-right: 1px solid #ddd;
}

.activity-info div:last-child {
  border-right: none;
}

.activity-info dt {
  margin-bottom: 5px;
  color: #777;
  font-size: 13px;
}

.activity-info dd {
  margin: 0;
  font-size: 15px;
}

/* 本文・写真 共通 */
.activity-report,
.activity-pictures,
.activity-related {
  margin-top: 50px;
}

.activity-report h2,
.activity-pictures h2,
.activity-related h2 {
  margin: 0 0 25px;
  padding: 0 0 12px;
  border-bottom: 2px solid #212A3F;
  font-size: 22px;
  color: #666;
  line-height: 1.5;
}

.activity-report p {
  margin: 0 0 1.5em;
  font-size: 16px;
  line-height: 2;
}

/* 写真一覧 */
.activity-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.activity-gallery-item {
  display: block;
  overflow: hidden;
  background: #f3f3f3;
  cursor: zoom-in;
}

.activity-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity-gallery-item:hover img {
  transform: scale(1.04);
}

/* 関連情報 */
.activity-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.activity-related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.activity-related-link:hover {
  background: #f5f6f8;
}

/* 一覧へ戻る */
.activity-back {
  margin-top: 60px;
  text-align: center;
}

.activity-back a {
  display: inline-block;
  min-width: 240px;
  padding: 14px 25px;
  border: 1px solid #212A3F;
  color: #212A3F;
  text-decoration: none;
  transition: all 0.2s ease;
}

.activity-back a:hover {
  background: #212A3F;
  color: #fff;
}

/* =====================================
   画像拡大表示
===================================== */

.activity-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.88);
}

.activity-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.activity-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  border: none;
  background: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
/* フッター全体 */
.footer {
    margin-top: auto;
    padding-top: 30px;
    background: #666;
    color: #fff;
}

.footer-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ロゴ・お問い合わせ */
.footer-brand {
    padding: 35px 0 20px;
    text-align: center;
}

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* ロゴとお問い合わせを横並び */
.footer-brand.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 35px 0 20px;
    border-top: 0;
    text-align: center;
}

.footer-brand.footer-contact .footer-logo {
    min-width: 0;
}

.footer-brand.footer-contact .footer-contact-button {
    flex-shrink: 0;
}

/* SNSリンク */
.footer-social {
    padding: 0 0 30px;
    text-align: center;
}

.footer-social-title {
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-social-button:hover {
    background: #fff;
    color: #212A3F;
}

/* 名簿システムへのリンク */
.footer-member {
    max-width: 300px;
    margin: 0;
}

.footer-member a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s, color 0.2s;
}

.footer-member a:hover {
    background: #fff;
    color: #212A3F;
    text-decoration: none;
}

.footer-member i {
    flex-shrink: 0;
    font-size: 28px;
}

.footer-member a .fa-address-book {
    font-size: 30px !important;
}

.footer-member strong,
.footer-member small {
    display: block;
}

.footer-member strong {
    font-size: 15px;
}

.footer-member small {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.footer-member-arrow {
    margin-left: auto;
    font-size: 20px;
}

/* フッターメニュー */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    padding: 30px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav-group h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.footer-nav-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-group li {
    font-size: 14px;
    line-height: 1.6;
}

/* メール問い合わせボタン */
.footer-contact {
    padding: 25px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 240px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.footer-contact-button:hover {
    background: #fff;
    color: #212A3F;
    text-decoration: none;
}

/* コピーライト */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.footer-copyright {
    margin: 0;
}

.footer-home {
    white-space: nowrap;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .footer-brand {
        padding-top: 28px;
    }

    .footer-brand.footer-contact {
        flex-direction: column;
        gap: 20px;
        padding: 28px 0;
    }

    .footer-brand.footer-contact .footer-logo img {
        max-width: 320px;
    }

    .footer-social-links {
        gap: 10px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }

    .footer-nav-group ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-contact {
        padding: 25px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-member {
        margin: 0;
        padding-top: 5px;
    }

    .footer-member a {
        gap: 12px;
        padding: 15px;
    }

    .footer-member strong {
        font-size: 16px;
    }

    .footer-member small {
        font-size: 11px;
    }
}