*{
  padding: 0;
  margin: 0;
  text-align: center;
}
p,a{
  font-family: yu-gothic-pr6n, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 2vw, 26px);
}
body{
  overflow-x: hidden;
}
.pc{
  display: inline;
}
.sp{
  display: none;
}
.small{
  font-size: 22px;
}
.main_message p,#section5 p{
  padding-bottom: 50px;
  font-size: clamp(15px, 2vw, 24px);
}
#section6 p{
  padding-bottom: 40px;
  font-size: 24px;
}
.tittle p,.subtittle p{
  margin-bottom: 40px;
  position: relative;
  z-index: 4;
}
.top {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  padding-left: 2.5%;
  padding-right: 2.5%;
  z-index: 10;
}
header{
  background-image: url("img/header_bg.jpg");
  background-size:cover;
  background-repeat: no-repeat;
  background-position: top;
}
#section1{
  background-color: #f2f2ee;
  padding-top: 100px;
}
#section2{
  background-color: #eae5da;
	text-align: center;
}
#section3{
  background-color: #fff8cc;
  text-align: center;
}
#section4{
  background-color: #daf0fc;
  text-align: center;
  padding-bottom: 100px;
}
#section5{
  background: no-repeat top/100% url("img/section5_bg.jpg");
  padding-top: 200px;
  padding-bottom: 40px;
}
#section6{
  background-color: #fff2b2;
  padding: 40px 0;
}
.wave img{
  width: 100%;
}
footer{
  background-color: #f2f2ee;
  padding: 30px 0;
}
.logo {
  font-size: 24px;
}
.header_left{
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 12;
}
/*-----ハンバーガーメニュー⬇︎-----*/
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 12;
}
body.nav_open {
  overflow: hidden;
  height: 100%;
}
/* チェックボックスを非表示にする */
.drawer_hidden {
  display: none;
}
/* ハンバーガーアイコンの設置スペース */
.drawer_open {
  display: flex;
  justify-content: center;
  align-items: center;
	width: 60px;
  height: 60px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 11;
  cursor: pointer;
}
/* ボタン背景画像*/
.drawer_open::before {
  content: "";
  position: absolute;
  inset: 0; /* 親要素いっぱいに広げる */
  background-image: url("img/icon_bg.png");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  z-index: -1; /* ハンバーガー線の後ろに配置 */
}
/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}
/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 9px;
}
/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 9px;
}
/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}
/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(30deg);
}
#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-30deg);
}
/* メニューのデザイン*/
.nav_content {
  width: 100%;
  height: 100%;
  position: fixed;
  bottom: 100%;
  left: 0%;
  z-index: 10;
  background-image: url("img/hamburger_bg.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
  transition: .5s;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /*スクロールバー非表示（IE・Edge）*/
  -ms-overflow-style: none;
  /*スクロールバー非表示（Firefox）*/
  scrollbar-width: none;
}
/*スクロールバー非表示（Chrome・Safari）*/
.nav_content::-webkit-scrollbar{
  display:none;
}
.nav_list {
  list-style: none;
	margin-top: 100px;
}
.nav_item a {
  color: #000000;
  font-size: clamp(15px, 2vw, 24px);
  text-decoration: none;
}
.nav_list li {
	margin-bottom: 30px;
}
/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav_content {
  bottom: 0;/* メニューを画面に入れる */
}
/*-----シャッター⬇︎-----*/
/* 親コンテナ */
.shutter-container {
  position: relative;
  width: 100%;
  max-width: 40%;
  margin: 0 auto;
  padding-top: 70px;
  z-index: 1;
}
/* シャッターの円形フレーム */
.animate-shutter-frame {
  width: 55%;
  padding-bottom: 55%;
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 22%;
  margin-left: 31%;
  background-image: url("img/_MG_0747_h.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}
/* シャッターの羽（beforeで三角形を作成） */
.animate-shutter-frame .inner-frame {
  position: absolute;
  width: 100%;
  height: 100%;
}
.animate-shutter-frame .shutter-parts {
  position: absolute;
  width: 100%;
  height: 50%;
  transform-origin: 50% 100%;
}
.animate-shutter-frame .shutter-parts:before {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-width: 300px;
  border-style: none solid solid;
  border-color: transparent transparent #fff transparent;
  left: 0;
  top: 230%;
  transform-origin: 0 100%;
  filter: drop-shadow(0 0 4px #00000044);
}
/* 羽の色（8枚） */
.animate-shutter-frame .shutter-parts:nth-of-type(1):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(2):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(3):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(4):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(5):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(6):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(7):before { border-bottom-color: #e2d8c1; }
.animate-shutter-frame .shutter-parts:nth-of-type(8):before { border-bottom-color: #e2d8c1; }
/* アニメーション用クラス */
.animate-shutter-frame.shutter-in .inner-frame { animation: rotate 0.5s forwards ease-out; }
.animate-shutter-frame.shutter-out .inner-frame { animation: rotate-out 0.5s forwards ease-in; }
.animate-shutter-frame.shutter-in .shutter-parts:before { animation: shutter 0.5s forwards ease-out; }
.animate-shutter-frame.shutter-out .shutter-parts:before { animation: shutter-out 0.5s forwards ease-in; }
/* シャッター開閉アニメーション */
@keyframes rotate { 0% {transform: rotate(0);} 100% {transform: rotate(-22.5deg);} }
@keyframes rotate-out { 0% {transform: rotate(-22.5deg);} 100% {transform: rotate(0);} }
@keyframes shutter { 0% {left:0; top:-230%;} 100% {left:50%; top:0;} }
@keyframes shutter-out { 0% {left:50%; top:0;} 100% {left:0; top:-230%;} }
/* main.png を中央に重ねる */
.shutter-logo {
  position: relative;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 735px;
  pointer-events: none;
}
.shutter-logo img {
  width: 100%;
  height: auto;
  display: block;
}
/*-----------------------------------*/
.main_text{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 5% auto 0;
  align-items: flex-end
}
.text1{
  width: 35%;
}
.text1 img{
  width: 100%;
}
.text2{
  width: 25%;
}
.text2 img{
  width: 100%;
}
.main_message{
  margin-top: 50px;
  padding-bottom: 200px;
}
/*-----ふわふわ浮くハート⬇︎-----*/
.floating-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 13;
  pointer-events: auto; /* クリック可能に戻す */
  animation: floatY 2.5s ease-in-out infinite alternate; /* 常にゆらゆら */
}

/* フェードイン */
.floating-icon.active {
  opacity: 1;
}

/* フェードアウト */
.floating-icon.hide {
  opacity: 0;
}

/* ゆらゆら浮遊アニメーション */
@keyframes floatY {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); } /* ふんわり上に動く */
}

/*-----テキストと吹き出しふわっと⬇︎------*/
.fade-block {
  margin-top: 80px;  /* 吹き出し上との間を少し狭める */
  margin-bottom: 0;
}
.fade-block:first-of-type {
  margin-top: 100px;
}
.fade-block .line {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-block .line.visible {
  opacity: 1;
  transform: scale(1);
}
.image-block {
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-width: 500px;
  margin: 0 auto;
}
.image-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
  width: 80%;
  max-width: 600px;
}
/* 吹き出し全体 */
.image-block .bubble {
  width: 50%;
  position: relative;
  margin-top: -50px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}
/* 吹き出し画像 */
.image-block .bubble img {
  width: 100%;
  height: auto;
  display: block;
}
.image-block .bubble:last-child {
  margin-bottom: -40px;
}
/* 交互配置（左→右→左…） */
.image-block .bubble:nth-child(odd) {
  align-self: flex-start;
  transform-origin: left bottom;
}
.image-block .bubble:nth-child(even) {
  align-self: flex-end;
  transform-origin: right bottom;
}
/* 表示アニメーション */
.image-block .bubble.visible {
  animation: popIn 0.7s cubic-bezier(.25,1.3,.5,1) forwards;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
/*-----------------------------------*/
ul {
  list-style: none;
  padding-left: 0;
}
.alt_text{
  position: absolute;
  left: -3000px;
  width: 300px;
}
.tittle img{
  width: 50%;
  margin: 0 auto;
}
/*-------ベネッセこども基金 ビジョンと活動テーマ⬇︎--------*/
#section1{
  margin: 0 auto;
  padding-top: 50px;
}
.vision_theme {
  display: flex;
  justify-content: center; /* 左右カラム中央揃え */
  align-items:flex-end;
  padding-top: 15px;
  padding-bottom: 70px;
  gap: 60px; /* 左右の間隔 */
}
.vision {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
}
.theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}
/* 右カラムの上下のグループ */
.theme .two, .theme .three {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
}
.theme .three {
  margin-top: 8px;
}
.vision img {
  max-width: 150px;
  width: 100%;
  height: auto;
  padding-top: 50px;
  padding-bottom: 20px;
}
.theme img {
  max-width: 187px;
  height: auto;
}
.vision p {
  font-size: clamp(15px, 2vw, 20px);
  text-align: center;
  max-width: 300px;
}
/*-----ポップアップ-----*/
:root {
  --overlay-bg: rgba(254, 244, 204, 0.7); /* 薄い透過黄色 */
  --gap: 16px;
}
#openBtn {
  font-size: 16px;
  cursor: pointer;
}
/* モーダル全体 */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  z-index: 1000;
  flex-direction: column;
}
.modal.open {
  display: flex;
}
/* 閉じるボタン */
.close-btn1 {
  position: fixed;
  top: 20px;
  right: 23px;
  width: 60px;
  height: 60px;
  border: none;
  color: #fff;
  background: #595455;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 1100;
}
.close-btn1:hover {
  background: #787172;
}
  /* 画像グリッド */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  max-width: 1200px;
  justify-items: center;
  align-items: center;
  margin: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /*スクロールバー非表示（IE・Edge）*/
  -ms-overflow-style: none;
  /*スクロールバー非表示（Firefox）*/
  scrollbar-width: none;
}
/*スクロールバー非表示（Chrome・Safari）*/
.modal-grid::-webkit-scrollbar{
  display:none;
}
/* メニューが開いている間は背景スクロールを止める */
.modal-grid:checked ~ body {
  overflow: hidden;
}
/* 画像の基本スタイル */
.modal-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  }
/* 要素3と5を1列目（左側）に固定配置 */
.modal-grid img:nth-child(3),
.modal-grid img:nth-child(5) {
  grid-column: 1;
}
/*-------10年間の軌跡⬇︎--------*/
.history img{
  width: 73%;
  height: auto;
  text-align: center;
  margin-bottom: 70px;
}
/*-------深まり・広がる「まなび支援」⬇︎--------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1300px; /* 400px × 3列 + gap程度 → 3列以上にならない */
  padding: 0 10%;
  margin: 0 auto 70px;
}

.gallery picture {
  width: 100%;
  transition: width 0.3s ease; /* スムーズに可変 */
}

.gallery img {
  width: 100%;
  height: auto;
}

/* --- レスポンシブ制御 --- */
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .gallery picture {
    width: 85%;
  }
/* 基本設定 */
.clickable-image {
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
/* ホバー時の動き（角丸のまま浮き上がる） */
.clickable-image:hover {
  transform: scale(1.05);
}
/* ポップアップ */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 14;
}
/* ポップアップ表示中に背景スクロールを止める */
body.popup-open {
  overflow: hidden;
  height: 100%; /* iOS Safari対応 */
}
/* 表示時 */
.popup.active {
  display: flex;
}
/* 拡大画像と×ボタンの親 */
.popup-inner {
  position: relative;
  display: flex;
  width: auto;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* 拡大画像 */
.popup-img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
}
/* ×ボタン */
.close-btn2 {
  position: absolute; /* 親を基準に配置 */
  top: 30px;
  right: 40px;
  width: 52px;
  height: 52px;
  border: none;
  color: #fff;
  background: #595455;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
  z-index: 1100;
}
.close-btn2:hover {
  background: #787172;
}
/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/*-------Special Contents⬇︎--------*/
.special{
  width: 50%;
  text-align: center;
  margin: 0 auto;
  margin-top: -130px;
  margin-bottom: 100px;
}
.special img{
  width: 100%;
}
.voice_content {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
}
.voice_content img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 50px;
}
/* 透明クリックエリア */
.voice_content a.btn {
  position: absolute;
  bottom: 2.7%;
  right: 5.3%;
  width: 29%;
  aspect-ratio: 227 / 30;
  display: block;
  z-index: 10;
  cursor: pointer;
}
.talk{
  margin-top: 100px;
}
.talk_picture{
  margin: 30px auto 150px;
  width: 498px;
}
.talk_picture img{
  width: 100%;
}
.talk_img{
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translate(-50%,-50%);
  margin-top: -50px;
  width: 800px;
}
.talk_img img{
  width: 100%;
}
/* セクション全体 */
.talk_section {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  display: block;
}
/* 白いボックス */
.talk_box {
  position: relative;
  z-index: 3;
  background: #fff;
  padding: 50px;
  width: min(80%, 900px);
  margin: 0 auto;
  line-height: 1.8;
  margin-bottom: 100px;
}
/* 画像を右下に固定 */
.talk_box img {
  position: absolute;
  bottom: 10px;
  right: 10px;
  height: auto;
  z-index: 2;
}
/* テキスト */
.talk_box p {
  font-size: clamp(16px, 2vw, 24px);
  margin: 0;
  text-align: left;
}
.talk_tittle {
  font-size: 24px;
  font-family: yu-gothic-pr6n, sans-serif;
  font-style: normal;
  font-weight: 600;
  text-shadow: 0px 0px 0px rgb(0, 0, 0);
  text-align: center;
  text-decoration: underline;
  padding-bottom: 20px;
}
/* 模様コンテナ */
.talk_patterns {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* 黄色い模様（左上） */
.pattern_yellow {
  position: absolute;
  top: -100px;
  left: -150px;
  width: clamp(150px, 20vw, 320px);
}
/* 緑の模様（右下） */
.pattern_green {
  position: absolute;
  bottom: -140px;
  right: -180px;
  width: clamp(150px, 25vw, 350px);
}
.marker-bold {
  background: linear-gradient(transparent 60%, #ffee80 60%);
  font-weight: 600;
  text-shadow: 0px 0px 0px rgb(0, 0, 0);
}
/* 透明クリックエリア */
.talk_box a.btn {
  position: absolute;
  bottom: 2.7%;
  right: 6.63%;
  width: 23.9%;
  aspect-ratio: 227 / 45;
  display: block;
  z-index: 10;
  cursor: pointer;
}
.movie{
  padding-bottom: 150px;
}
.movie_text{
  padding-bottom: 30px;
}
.xxx {
  position: relative;
  width: 60%;
  padding-bottom: 33.75%;
  margin: 0 auto;
}
.iii {
  position: absolute;
  width: 100%;
  height: 100%;
  top:0;
  left:0;
}
.movie_tittle{
  text-decoration-line: underline;
  font-weight: 600;
  text-shadow: 0px 0px 0px rgb(0, 0, 0);
}
#section5 img{
  margin-bottom: 10px;
}

footer p{
  font-size: small;
}
@media (max-width: 768px) {
  .p_wrap{
    width: 100%;
  }
  picture img {
    width: 100%;
    height: auto;
  }
.pc{
  display: none;
}
.sp{
  display: block;
}
.tittle p,.subtittle p{
  font-size: 12px;
  position: relative;
  z-index: 0;
  margin-bottom: 10px;
}
.small,.small span{
  font-size: 12px;
  white-space: nowrap;
  display: inline-block;
}
.main_message{
  padding-top: 0px;
  padding-bottom: 60px;
}
.main_message p,#section5 p{
  padding-bottom: 30px;
}
#section6 p{
  padding-bottom: 20px;
  font-size: 12px;
}
header{
  background-image: url("img/header_bg_sp.jpg");
}
.top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  box-sizing: border-box;
  overflow: hidden;
  backdrop-filter: none;
}

/* 背景ぼかし用のレイヤー */
.top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* ← ヘッダー部分だけを覆う */
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1; /* コンテンツの背面に */
  pointer-events: none;
}
#section4{
  padding-bottom: 50px;
}
#section5{
  background-image: url("img/section5_bg_sp.jpg");
  padding-top: 75px;
}
.header_left{
  top: 10px;
  left: 10px;
}
.header_left img{
  width: 150px;
}
.drawer_open {
	width: 47px;
  height: 47px;
  top: 10px;
  right: 10px;
}
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  height: 2px;
  width: 20px;
}
.drawer_open span:before {
  bottom: 7px;
}
.drawer_open span:after {
  top: 7px;
}
#drawer_input:checked ~ .drawer_open span::before {
  top: 0;
  transform: rotate(30deg);
}
.shutter-container {
  max-width: 90%;
  padding-top: 30%;
}
.main_text{
  margin-top: 65px;
  gap: 10px;
}
.fade-block {
  margin-bottom: 10px;
}
.fade-block:first-of-type {
  margin-top: 60px;
}
  .image-block {
  max-width: 400px;
  }
  .image-block .bubble {
    margin-top: -20px;
  }
  .image-block .bubble:nth-child(odd),
  .image-block .bubble:nth-child(even) {
    width: 55%;
  }
.before_bubble p{
  padding-bottom: 40px;
}
.image-block .bubble:last-child {
  margin-bottom: -30px;
}
  .floating-icon {
  width: 80px;
}
.button{
  padding-top: 30px;
}
.button img{
  height: 40px;
  width: auto;
}
.text1{
  width: 90%;
}
.text1 img{
  width: 100%;
}
.text2{
  width: 65%;
}
.text2 img{
  width: 100%;
}
.tittle img{
  width: 90%;
}
.subtittle{
  margin: 0 auto;
  margin-bottom: 10px;
  width: 90%;
}
.subtittle img{
  width: 100%;
}
/*-------ベネッセこども基金 ビジョンと活動テーマ⬇︎--------*/
.vision_theme {
  flex-direction: column; /* 左右カラム縦並び */
  align-items: center;
  gap: 30px; /* 左右カラム間の余白 */
  padding-bottom: 0px;
  }
  /* 左カラム */
  .vision {
  align-items: center;
  }
  /* 右カラム全体 */
  .theme {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px; /* 上下のグループ間の余白 */
  margin-top: 0px;
  }
  /* 上2つ・下3つの画像グループを中央揃えに */
  .theme .two,
  .theme .three {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  /* 左右カラム内の画像・テキストを幅に合わせてリサイズ */
  .vision img, .theme img, .vision p {
  width: 100%;
  height: auto;
  }
  .vision img {
  width: 100px;
  padding-top: 25px;
  padding-bottom: 14px;
  }
  .theme img {
    width: 100px;
  }
/* ポップアップ1 */
  :root {
  --gap: 20px;
  }
.modal {
  overflow: hidden;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 1fr);
  gap: var(--gap);
  padding: 20px 30px;
  margin-top: 30px;
  box-sizing: border-box;
  justify-items: center;
  align-items: center;
}
.modal-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  flex-shrink: 0;
}
/* 閉じるボタン */
.close-btn1 {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 45px;
  height: 45px;
  font-size: 20px;
}
/*-------10年間の軌跡⬇︎--------*/
  /* 横スクロール可能な枠 */
  .history-wrapper {
  width: 300px;
  height: 400px;
  overflow-x: auto;              /* 横スクロール可能 */
  overflow-y: hidden;
  margin: 0 auto;                /* 横中央寄せ */
  display: block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  }
  /* 内部コンテンツ */
  .history {
  display: inline-block;
  min-width: 100%;
  text-align: center;
  }
  .history picture {
  display: inline-block;
  }
  /* 画像を枠内に収める */
  .history img {
  max-height: 400px;
  width: auto;
  display: inline-block;
  object-fit: contain;
  }
  /* スクロールバーをカスタマイズ（任意） */
  .history-wrapper::-webkit-scrollbar {
  height: 8px;                     /* スクロールバーの高さ */
  }
  .history-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;             /* トラックの色 */
  }
  .history-wrapper::-webkit-scrollbar-thumb {
  background-color: #888;           /* つまみの色 */
  border-radius: 4px;
  }
  .history-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #555;           /* ホバー時の色 */
  }
/*-------深まり・広がる「まなび支援」⬇︎--------*/
.gallery {
  grid-template-columns: 1fr; /* 1列 */
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0 40px;
  }
/* ×ボタン */
.close-btn2 {
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  font-size: 15px;
}
/*-------Special Contents⬇︎--------*/
.special{
  width: 80%;
  text-align: center;
  margin-top: -15%;
  margin-bottom: 40px;
}
.voice_content {
  padding: 0 20px;
  width: 80%;
}
/* 透明クリックエリア */
.voice_content a.btn {
  bottom: 2.7%;
  right: 28%;
  width: 45%;
  aspect-ratio: 300 / 60;
}
.talk_picture{
  margin-bottom: 100px;
  width: 300px;
}
.talk_picture img{
  width: 100%;
}
.talk_img{
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translate(-50%,-50%);
  margin-top: -50px;
  width: 350px;
}
.talk_img img{
  width: 100%;
}
  .talk_section {
  margin: 0px auto;
  z-index: 5;
  }
  .talk_box {
  padding: 8%;
  padding-bottom: 15%;
  width: 65%;
  margin-bottom: 80px;
  }
  .pattern_yellow {
  top: -25px;
  left: -25px;
  width: clamp(50px, 20vw, 120px);
  }
  .pattern_green {
  bottom: -35px;
  right: -40px;
  width: clamp(50px, 20vw, 120px);
  }
.talk_box img {
  width: 100%;
  bottom: 20%;
}
  .talk_box p {
  font-size: 14px;
  }
.talk_tittle {
  font-size: 15px;
  padding-bottom: 10px;
}
/* 透明クリックエリア */
.talk_box a.btn {
  position: absolute;
  bottom: 2.5%;
  right: 50%;
  transform: translateX(50%);
  width: 50%;
  aspect-ratio: 227 / 45;
  display: block;
  z-index: 10;
  cursor: pointer;
}
.movie{
  padding-bottom: 40px;
}
.movie_text{
  font-size: 12px;
  padding-bottom: 10px;
}
.xxx {
  position: relative;
  width: 80%;
  padding-bottom: 45%;
}
  header img,#section5 img{
  width: 20%;
  }
  #section6 img{
  width: 80%;
  }
  footer img{
  width: 300px;
  }
  footer p{
  font-size: 10px;
  }
}