/* ====== 基本設定 ====== */
* {
  box-sizing: border-box;
}

body {
  background: #f7f7f7;
  color: #333;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  margin: 0;
}

img {
  display: block;  
  height: auto;
  max-width: 100%;
}

.container {
  margin: 0 auto;
  max-width: 1000px;
  width: 90%;  
}

@media (max-width: 768px) {
  .section,
  .section-alt {
    padding-left: 0;
    padding-right: 0;
  }
}
/* =============================================================================== */



/* ====== Header部 ====== */
.site-header {
  backdrop-filter: blur(6px);   /* ぼかし効果 */
  background: rgba(255,255,255,0.8); 
  border-bottom: 1px solid #e5e5e5;
  left: 0;
  /* position: absolute;/sticky;/fixed; */ 
  position: fixed;  
  top: 0;
  width: 100%; 
  z-index: 1000;    
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.logo {
  align-items: center;   /* 画像と文字の高さを揃える */
  color: #009944;
  display: flex;
  font-size: 1.2rem;
  font-weight: 700;
  gap: 20px;             /* 画像と文字の間の余白 */
  padding-left: 10px;
  padding-right: 10px;
  text-decoration: none;
}

.logo-img img {
  height: 32px; /* ロゴ画像の高さを固定（） */
  width: auto;
}

.logo-title a { /* 名前の高さを抑える */
  display: block;
  font-size: 24px; 
  line-height: 1;  /* ← 余白をなくす */
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;  
}

.site-nav a:hover {
  color: #009944;
}

@media (max-width: 768px) {
  .logo {
    gap: 6px;
  }

  /* ロゴ画像を小さく、縦横比を維持 */
  .logo img,
  .logo-img img {
    height: 18px;   /* ← スマホ用に小さくする */
    width: auto;    /* ← 絶対に必要！ */
  }

  /* 名前のフォントサイズを縮める */
  .logo-title a {
    font-size: 14px;   /* ← スマホ用 */
    line-height: 0.8;
  }

  /* メニューアイコンの縦位置を揃える */
  .menu-toggle {
    font-size: 22px;
    line-height: 1;  
    margin: 0;
    padding: 0;
  }
}
/* ------------------------------------------------------------------------------ */

/* ====== ハンバーガー ====== */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer; 
  display: none;   
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  .site-nav ul {
    flex-direction: column;
    padding: 10px 0;
    text-align: center; 
  }

  .site-nav li {
    padding: 8px 20px;
  }
}
/* =============================================================================== */






/* ====== Hero部 ====== */
.hero-slider {
  height: 85vh; /* 画面の半分の高さ */
  min-height: 350px; /* スマホ対策 */
  position: relative;
  overflow: hidden;
  padding-top: 70px; /* header の高さ分だけ余白を作る */
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* background-position: top center; */
  background-position: 50% 10%;
  opacity: 0;
  transition: opacity 1s ease;
}


/* スライドショーの左右ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px 15px;
  z-index: 10;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}


@media (max-width: 768px) {
  .hero-slider {
    padding-top: 70px;
  }


  .hero-slider .slide {
    background-position: 50% -10%; /* ← スマホは頭を絶対に切らない */
  }
}
/*-------------------------------------------------------------------------*/




.hero {
  background: url("../yujikishimoto/img/photo_26-04-21_179.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 320px;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  min-height: 320px;
}

.hero-content {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
}

.hero-full {
  height: 100vh;
  background: url("../yujikishimoto/img/photo_26-04-21_179.jpg") center/cover no-repeat;
  position: relative;
}

.hero-full .hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px #000;
}

/* 見切れ対策方法③  */
.hero-slider img {
  object-fit: contain;
  background-color: #000; /* 余白が出るので背景色を設定 */
}

.slider-btn:hover {
  background: rgba(0,0,0,0.5);
}

.hero-band {
  height: 320px;
  background: url("../yujikishimoto/img/hero1.jpg") center/cover no-repeat;
  position: relative;
}

.hero-band-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 350px;
}

.hero-photo {
  background: url("../yujikishimoto/img/hero1.jpg") center/cover no-repeat;
}

.hero-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: #f0f5f2;
}

.hero-video {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video .hero-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 0 10px #000;
}
/* =============================================================================== */





/* ====== セクション ====== */
/* linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%), */ 
.message-section {
  position: relative;
  padding: 60px 0;
    background:
      linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%),
      
      url("../yujikishimoto/img/photo_26-04-21_109.jpg") no-repeat right center;
   /*  background-size: 70%, 70%;  contain: 右側にちょうどよく収める */
  background-size: 100% 100%, 1000px 100%;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 25px;
  border-left: 5px solid #009944;
  padding-left: 10px;
}

.message-section::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: url("../yujikishimoto/img/photo_26-04-21_060.jpg") no-repeat center;
  background-size: cover;
  opacity: 0.25; /* ← 透明度で調整 */
  pointer-events: none;
}

@media (min-width: 1024px) {
  .message-section {
    background-size: 45%; /* 右側に画像を置くイメージ */
    background-position: right center;
    background-repeat: no-repeat;
  }
}
/*-------------------------------------------------------------------------*/


.section {
  padding: 60px 0;
  background: #ffffff;

  padding-left: 20px;
  padding-right: 20px;
}



.message-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ← これで文字と重ならない */
/*
@media (max-width: 768px) {
  .message-section {
    background: none; 
  }
}
*/
/* =============================================================================== */







/* ====== プロフィール ====== */
.section-alt {
  background: #f0f5f2;

  padding-left: 20px;
  padding-right: 20px;
}

.profile-grid {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.sub-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list li {
  margin-bottom: 8px;
}
/* =============================================================================== */









/* ====== News部 ====== */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.news-item {
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

/*-------------------------------------------------------------------------*/


.news-title {
  margin-top: 0;
  margin-bottom: 10px;
}
/* =============================================================================== */














/* 活動報告 */
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.activity-item {
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.activity-title {
  margin-top: 0;
  margin-bottom: 10px;
}




/* ギャラリー */
.gallery-grid {
  position: relative; /* ← 削除！ */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* 画像が4枚以上ある場合だけ、4列固定にする */
.gallery-grid:has(figure:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}


/* ← これで tooltip が figure の幅に引っ張られなくなる */

.gallery-grid figure {

 margin: 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
    position: relative;
  aspect-ratio: 4 / 3; /* ← 画像の比率を統一（4:3） */
}
/*
   display: inline-block;   
  position: relative;
  */


.gallery-grid figcaption {
  padding: 10px;
  font-size: 0.9rem;
}

.gallery-grid img {
  transition: opacity 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← 枠に合わせてトリミング */
  display: block;

}

.gallery-grid img:hover {
  opacity: 0.7;
}


/* スマホは1列にして画像を大きく見せる */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;   /* ← スマホは1列 */
  }
}


/* ツールチップ（画像の上に重ねる） */
/*
.gallery-grid .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: 10px;          
  
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;   
  transition: opacity 0.3s;
  font-size: 13px;
  z-index: 10;
  pointer-events: none;


  display: inline-block !important;   

  width: auto !important;             
  max-width: none !important;         
} 
*/


/* ホバーで表示 */
/*
.gallery-grid figure:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
*/




/* youtube */
.youtube-box {
  max-width: 800px;
  margin: 0 auto;
}

.youtube-box iframe {
  width: 100%;
  height: 450px;
}



/* 各項目を縦に並べる */
.tooltip {
  position: relative;   /* ← これが必須！ */
  display: block;
  margin-bottom: 20px;
}

/* ラベルを上に配置 */
.tooltip label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* 入力欄を100%幅にして縦並びを強調 */
.tooltip input,
.tooltip textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

/* ツールチップの位置調整（上に表示） */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  position: absolute;
  top: -30px;
  left: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
  font-size: 14px;
  z-index: 10;
}

/* ホバーで表示 */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}







/* Lightbox（画像拡大） */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 6px;
  box-shadow: 0 0 20px #000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Lightbox ナビゲーションボタン */
.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

.lightbox .nav-btn:hover {
  color: #00ff99;
}













/* 寄付 */
.donation-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}







/* フォーム */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  font-size: 0.95rem;
}


/* ボタン */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: #009944;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  /*font-size: 0.95rem; */

  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #007a36;
}



/* レスポンシブ */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  /*
  .site-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  */

  .site-nav li {
    padding: 8px 20px;
  }

  .menu-toggle {
    display: block;
  }
}


/* フッター */
.site-footer {
  padding: 20px 0;
  text-align: center;
  background: #009944;
  color: #fff;
  font-size: 0.85rem;
}

/* フッターリンク */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #00ff99;
}




