/* =====================================================
   全体のベーススタイル
===================================================== */
html {
  scroll-behavior: smooth;
}

#contact::before,
#supporters::before,
#events::before,
#facilities::before,
#news::before {
  content: "";
  display: block;
  height: 100px;      /* 上からの余白分 */
  margin-top: -100px; /* アンカー位置をずらす */
  visibility: hidden;
}

/* =====================================================
   セクション共通スタイル
===================================================== */
.section-back {
  width: 100%;
  background: #5559;
  padding: 18px 0;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 70px;
}

.section-back small {
  font-size: 0.7em;
  font-weight: 300;
}



/* =====================================================
   ナビゲーション
===================================================== */
nav.side-menu {
  position: fixed;
  top: 35%;
  right: 2.5%;
  width: 170px;
  line-height: 2.5;
  height: auto;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(100, 120, 140, 0.7), rgba(69, 91, 114, 0.7));
  border-radius: 5px;
  padding: 20px 10px;
}

/* ハンバーガーボタン */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 20px;
  right: 15px;
  z-index: 1400;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* =====================================================
   プロジェクト・サポーターリスト
===================================================== */

.project-list,
.supporters-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  list-style: none;
  padding: 0;
  padding: 15px 0;
}

.project-list li {
  position: relative;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.supporters-list li {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 245, 0.7));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 20px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

.supporters-list li .info-box2 {
  flex: 1;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.image-box {
  position: relative;
  flex: 0 0 300px;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.image-box .blue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(100, 99, 255, 0.3);
  pointer-events: none;
  z-index: 1;
}

.image-box2 {
  position: relative;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
}

.info-box {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.description {
  font-size: 16px;
  color: #3A5270;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.supporter-column {
  color: #3A5270;
}

.supporter-text {
  font-weight: bold;
  font-size: 22px;
}

.supporter-text-en {
  font-size: 14px;
}

.description2 {
  margin-top: 22px;
  font-size: 15px;
}

/* =====================================================
   ボタン
===================================================== */
.form-link a {
  color: #fff;
  text-decoration: none !important;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 20px 35px;
  border-radius: 35px;
  display: inline-block;
}

.learn-more-btn img {
  width: 180px;
  margin-top: 20px;
  transition: opacity 0.3s, transform 0.3s;
}

.learn-more-btn img:hover {
  opacity: 0.7;
  transform: scale(1.05);
  cursor: pointer;
}

.more-btn {
  background-image: url('/wp202508/wp-content/uploads/2025/08/learn-more.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  width: 180px;
  height: 60px;
  cursor: pointer;
  align-self: flex-end;
}

.more-btn:hover {
  opacity: 0.5;
}

#supporters-toggle {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #3A5270;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

#supporters-toggle:hover {
  background-color: #55668c;
}

.more-supporters {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  transition: max-height 0.5s ease;
}

.more-supporters.active {
  display: grid;
}

/* =====================================================
   モーダル
===================================================== */
/* モーダル全体 */


.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* 背景の半透明黒 */
  transition: opacity 0.3s ease;
}

/* モーダル表示時 */
.modal.show {
  display: block;
  opacity: 1;
}

/* モーダルの中身 */
.modal-content {
  background-color: #fff;
  margin: 50px auto;
  padding: 30px !important;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
  animation: slideDown 0.3s ease;
}

/* スライドダウンアニメーション */
@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 上の×ボタン用 */
.modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #000; /* 必要に応じて変更 */
  cursor: pointer;
}


/* 下の閉じるボタン */
.modal-close-btn {
  display: block;           /* ブロックにして中央揃え */
  margin: 20px auto 0 auto; /* 上20px、左右自動、下0 */
  padding: 10px 20px;      /* 内側余白 */
  background-color: #3A5270; /* 青背景 */
  color: #ffffff;           /* 白文字 */
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.modal-close-btn:hover {
  background-color: #2c3a59; /* ホバー時少し濃い青 */
}

/* モーダル画像 */
.modal-image {
  width: 170px;
  height: 170px;
  margin: 0 auto 15px;
  border-radius: 50%; /* 丸くする */
  background-size: cover;
  background-position: center;
}

/* 日本語名 */
.modal-content h3 {
  font-size: 20px;
  font-weight:bold;
  margin-bottom: 5px;
  color: #3A5270; /* 好きな色に調整 */
}

/* 英語名 */
.modal-content p.modal-english {
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 15px;
  color: #3A5270; /* 少し濃くしてもOK */
}

/* 段落全体 */
.modal-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #3A5270;
}

/* =====================================================
   3カラム横並び
===================================================== */
/* .three-columns {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.three-columns .column {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.three-columns .title {
  font-size: 22px;
  color: #3A5270;
  margin-bottom: 16px;
  font-weight: 700;
}

.three-columns .image {
  width: 100%;
  height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 20px;
}

.three-columns .description {
  font-size: 14px;
  color: #3A5270;
  line-height: 1.5;
  white-space: pre-line;
}
 */


/* =====================================================
  4カラム横並び・スクロール 
===================================================== */

.contact-flow {
  display: flex;
  justify-content: center; /* 真ん中寄せ */
  padding: 0;
}

.flow-wrapper {
  display: flex;
  gap: 15px; /* カラム間の間隔 */
  justify-content: center; /* 真ん中に揃える */
  overflow-x: auto; /* 横スクロール */
  padding-bottom: 10px; /* スクロールバー分の余白 */
  scrollbar-width: thin; /* Firefox: 細いスクロールバー */
  scrollbar-color: rgba(0,0,0,0.3) transparent; /* Firefox: 色 */
}

.flow-column {
  flex: 0 0 230px; /* 横幅固定 */
  display: flex;
  justify-content: center;
}

.flow-image {
  width: 230px;
  height: 230px;
  background-size: cover;
  background-position: center;
}

/* スマホ（幅767px以下）では縦並び */
@media (max-width: 767px) {
  .flow-wrapper {
    flex-direction: column;
    gap: 10px; 
    align-items: center;
  }
  .flow-column {
    flex: 0 0 auto;
  }
}


/* =====================================================
   イベントマガジン
===================================================== */




/* =====================================================
   連携施設
===================================================== */
.facilities-list {
  display: grid;
  padding: 70px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 80px;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 50px;
  justify-items: center;
  margin-top: 50px;
}

.facilities-list img {
  width: 270px;
  height: 270px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.facilities-list img:nth-child(odd) {
  justify-self: end;
}

.facilities-list img:nth-child(even) {
  justify-self: start;
}

/* =====================================================
   フッター
===================================================== */
.footer {
  background: linear-gradient(90deg, #68735D, #40566E);
  color: #fff;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
  font-family: 'Yu Gothic', 'ヒラギノ角ゴシック', 'Hiragino Kaku Gothic Pro', sans-serif;
  border: none;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 0;
  background: linear-gradient(90deg, rgba(165, 159, 109, 0.8), rgba(65, 87, 109, 0.8));
}

.footer-kyomaf-logo {
  width: 160px !important;
  height: 160px !important;
  display: block;
  margin-left: 22%;
  margin-right: auto;
}

.footer-main {
  display: flex;
  justify-content: space-around;
  max-width: 1024px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  flex: 1;
  text-align: left;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 11px;
  padding-top: 12px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

/* =====================================================
   個人情報保護方針
===================================================== */


/* privacypolicy 用スタイル */
.privacy-policy-page .container {
    background-color: rgba(255, 255, 255, 0.6); /* 白0.6透明 */
    color: #3A5270; /* 文字色 */
    padding: 50px; /* 内側余白 */
    border-radius: 8px; /* 角丸 */
    line-height: 1.8; /* 行間 */
    margin-bottom: 30px;
}

/* 見出しの余白調整 */
.privacy-policy-page h1{
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: bold;
}

.privacy-policy-page h2,
.privacy-policy-page h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* 段落の余白 */
.privacy-policy-page p {
    margin-bottom: 20px;
}

/* リストの余白 */
.privacy-policy-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* リストアイテムの余白 */
.privacy-policy-page ul li {
    margin-bottom: 10px;
}



/* =====================================================
   メディアクエリ
===================================================== */
@media (max-width: 1500px) {
  nav.side-menu {
    top: 35%;
    right: 0;
    width: 170px;
    border-radius: 5px 0 0 5px;
  }
}

@media (max-width: 1200px) {
  nav.side-menu {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .footer-right {
    margin-left: 100px;
  }

  .project-list li {
    height: 500px;
  }

  /* スクロールバー */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 900px) {
  .project-list li {
    height: 540px;
  }
}

@media (max-width: 600px) {
  .three-columns {
    justify-content: flex-start;
    gap: 12px;
  }

  .three-columns .column {
    padding: 10px 7px;
    flex: 0 0 200px;
  }

  .three-columns .column .description {
    font-size: 0.8em;
  }

  h3.title {
    font-size: 0.98em !important;
  }

  .three-columns .image {
    width: 100%;
    height: 60px;
    margin-bottom: 0 !important;
  }

  .footer-main {
    display: block !important;
    width: 100%;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .footer-left .footer-kyomaf-logo {
    display: block;
    margin: 0 auto 20px;
  }

  .facilities-list {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    padding: 10px;
    margin-top: 20px;
  }

  .facilities-list img {
    width: 150px;
    height: 150px;
  }

  .description {
    line-height: 1.5;
    margin: 0;
    font-size: 13px;
  }


  .more-btn {
    width: 132px;
    height: 40px;
  }


  .info-box {
    padding: 12px;
  }

  .project-list {
    grid-gap: 10px;
  }

  .image-box {
    flex: 0 0 100px;
  }

  h2 {
    font-size: 18px !important;
  }

  h3 {
    font-size: 16px !important;
  }

  .footer-logos {
    padding-left: 10px!important;
    padding-right: 10px!important;
    gap: 15px!important;
  }


  /* =====================================================
   プロジェクト・サポーターリスト
===================================================== */

.supporters-list,
.more-supporters {
  display: block;
  grid-gap: 20px;
  list-style: none;
  padding: 0;
  padding:0;
}

.supporters-list li{
  margin-bottom: 10px!important;
  padding: 10px;
  font-size: 0.8em;;
}


.image-box2 {
  position: relative;
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
}

.learn-more-btn img{
  width: 120px;
}

.supporter-column {
  color: #3A5270;
}

.supporter-text {
  font-weight: bold;
  font-size: 18px;
}

.supporter-text-en {
  font-size: 12px;
}

.description2{
  margin-top: 10px;
  font-size:13px;
}


.more-supporters {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  transition: max-height 0.5s ease;
}

.more-supporters.active {
  display: block!important;
}

/* =====================================================
   個人情報保護方針
===================================================== */


/* privacypolicy 用スタイル */
.privacy-policy-page .container {
    background-color: rgba(255, 255, 255, 0.6); /* 白0.6透明 */
    color: #3A5270; /* 文字色 */
    padding: 10px; /* 内側余白 */
    border-radius: 8px; /* 角丸 */
    line-height: 1.5; /* 行間 */
    margin-bottom: 30px;
    width: 95%;
}

/* 見出しの余白調整 */
.privacy-policy-page h1{
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.privacy-policy-page h2,
.privacy-policy-page h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size:15px!important;
}

/* 段落の余白 */
.privacy-policy-page p {
    margin-bottom: 20px;
}

/* リストの余白 */
.privacy-policy-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* リストアイテムの余白 */
.privacy-policy-page ul li {
    margin-bottom: 10px;
}
	
div.flow-section h3{
	margin-top:30px!important;
}
	
.section-back{
	padding:10px 0px;
}
	
.event-page,
.magazine-page,
.news-page{
	margin-top:20px;
}
	
div.modal-content {
 	width: 92%;
	margin:30px auto;

}


}
