/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif; font-weight: 400;
  text-decoration: none;
  list-style: none;

}

/* Google Fonts */
/* 使用例: .noto-sans-jp-400 { font-family: "Noto Sans JP", sans-serif; font-weight: 400; } */
/* 使用例: .noto-serif-jp-500 { font-family: "Noto Serif JP", serif; font-weight: 500; } */

.shippori-mincho-regular {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

/* ベーススタイル */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  width: 100%;
}

section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* コモンスタイル */

.sp{
  display: none;
}

.pc{
  display: block;
}

/* anchor-linkクラスのaタグにanchor.svgを追加 */
a.anchor-link::after {
  content: '';
  display: inline-block;
  width: 19px;
  height: 19px;
  background-image: url('../images/anchor.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 10px;
  margin-bottom: 5px;
  vertical-align: middle;
}

a.anchor-link-white::after {
  content: '';
  display: inline-block;
  width: 19px;
  height: 19px;
  background-image: url('../images/anchor_white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 10px;
  margin-bottom: 5px;
  vertical-align: middle;
}

.flex-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

/* ヘッダースタイル */
.hero {
  position: relative;
  height: 90vh; /* 画面全体の高さ */
  overflow: hidden;
  background: #000;
  transform: translateZ(0); /* ハードウェアアクセラレーション */
}

.hero__video,.hero__slides{
  position:absolute; inset:0;
  width:100%; height:100%;
  transition: opacity 2s cubic-bezier(.4,0,.2,1);
  will-change: opacity;          /* 合成レイヤー化 */
  backface-visibility: hidden;
}

.hero__video{
  object-fit:cover;
  opacity:1;
  pointer-events:none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform; /* スクロール時のパフォーマンス最適化 */
}

.hero__slides{
  display:grid;
  place-items:center;
  opacity:0;
  z-index: 2;
}
.hero__slides img{
  position:absolute;
  inset:0;width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity 2s ease-in-out;
  transform: scale(1);
  animation: zoomIn 6s ease-in-out;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}
.hero__logo{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  width:  50%; /* ★ パーセント指定でレスポンシブ対応 */
  max-width: 660px;
  transition: opacity 2.5s ease-in-out;
}

.hero__slides img.is-active{
  opacity:1;
  animation: zoomIn 8s ease-in-out;
}

.hero__logo.is-active{
  opacity:1
}

/* 切替後の状態 */
.hero.is-slideshow .hero__video{
  opacity:0.3;  /* 薄く表示してスライドの背景に */
}
.hero.is-slideshow .hero__slides{
  opacity:1;
}

/* 動きを抑えたいユーザーには最初からスライド静止画に */
@media (prefers-reduced-motion: reduce){
  .hero__video{display:none}
  .hero__slides{opacity:1}
  .hero__logo{opacity:1}  /* ロゴも表示 */
  .hero__video,.hero__slides{
    transition: none;  /* アニメーションを無効化 */
  }
}



header {
  background-color: rgba(255, 255, 255, 0);
  color: black;
  padding: 0.2rem 0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
  opacity: 1;
}

header.sticky {
  position: fixed;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: black;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transform: translateY(0);
  opacity: 1;
}

header nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header h1 img{
    width: 100%;
    max-width: 300px;
    margin-top: 17px;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

header nav a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header.sticky nav a {
  color: black;
}

header nav #menu-item-1985 a {
	color: white;
	font-size: 14px;
	padding: 10px 15px;
	background-color: orange;
	border-radius: 5px;
}

header.sticky nav a.member-login {
	color: white;
}

header nav a:hover {
  color: #3498db;
}

/* 固定ハンバーガーメニュー */
.fixed-hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1002;
  display: none;
}

/* header-under.php使用時は常時スティッキー */
.header-under .fixed-hamburger {
  display: block;
}

.fixed-hamburger .hamburger-menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.fixed-hamburger .hamburger-menu span {
  width: 25px;
  height: 1px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ヘッダーがスティッキーになった時のハンバーガーメニュー */
header.sticky ~ .fixed-hamburger .hamburger-menu span {
  background-color: #333;
}

.fixed-hamburger .hamburger-menu.active span {
  background-color: #000;
}


.fixed-hamburger .hamburger-menu.active span:nth-child(1) {
  transform: rotate(-35deg) translate(-4px, 4.6px);
}

.fixed-hamburger .hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.fixed-hamburger .hamburger-menu.active span:nth-child(3) {
  transform: rotate(35deg) translate(-5px, -6.2px);
}

/* スライドアウトナビゲーション */
.slide-out-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.slide-out-nav.active {
  opacity: 1;
  visibility: visible;
}

.nav-content {
  padding: 30px 30px 30px;
  height: 100%;
  overflow-y: auto;
}

.slide-out-nav .nav-content > div.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.nav-header img{
  width: 70%;
}

.nav-header h2 {
  font-size: 1.1rem;
}

.slide-out-nav .flex-box {
    justify-content: flex-start;
    align-items: center;
    gap: 1.3rem;
    padding-bottom: 0.8rem;
    
}

.slide-out-nav .nav-menu {
  list-style: none;
  padding: 0.7rem 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.slide-out-nav .nav-menu h2{
  font-size: 1rem;
}

.slide-out-nav .nav-menu p{
  font-size: 0.8rem;
  padding-top: 0.5rem;
}

.slide-out-nav .nav-menu > p{
  font-size: 1rem;
}


.slide-out-nav .nav-menu li {
  margin: 0;
}

.slide-out-nav .nav-menu li::before {
  content: '-';
  margin-right: 8px;
  color: #333;
}

.slide-out-nav .nav-menu a {
  display: inline-block;
  padding: 5px 0;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.slide-out-nav .nav-content > div > a:first-of-type {
  padding: 0;
  border: none;
}



.slide-out-nav .nav-menu a:hover {
  color: #3498db;
}

.slide-out-nav .nav-content > div{
  padding: 0 0 0.7rem;
}

.slide-out-nav .nav-content > div > a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.slide-out-nav .nav-content a.member-login {
  width: 50%;
  font-size: 1rem;
  background-color: #eda202;
  color: white;
  padding: 3px 15px;
  text-align: center;
  border-radius: 3px;
  margin-top: 10px;
  border: none;
}

.slide-out-nav .nav-content a.member-login:hover {
  background-color: #2980b9;
  color: white;
}

.slide-out-nav .nav-content a.kifu-button {
  width: 70%;
  position: static;
  margin-top: 9px;
  margin-left: 0;
  border: none;
  transform: none;
}

.slide-out-nav .nav-content .sns-box {
  padding-top: 10px;
}

.slide-out-nav .nav-content .sns-box .sns-icon {
  width: 30px;
  height: 30px;
  margin-left: 0;
  margin-right: 0;
  border: none;
}

/* スライドアウトナビゲーションの要素を順次表示 */
.slide-out-nav .nav-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-out-nav.active .nav-content > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.slide-out-nav.active .nav-content > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.slide-out-nav.active .nav-content > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.slide-out-nav.active .nav-content > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.slide-out-nav.active .nav-content > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.slide-out-nav.active .nav-content > *:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* オーバーレイ */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* メインコンテンツスタイル */
main {
  margin-top: 0; /* ヘッダーが相対位置なので調整不要 */
  position: relative;
  overflow: hidden;
  z-index: 10; /* ヒーローセクションより前面に */
  padding-top: 0; /* JavaScriptで動的に調整 */
  transition: padding-top 0.3s ease; /* スムーズな切り替え */
}

/* メイン背景動画 */
.main-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7; /* 動画を薄く表示 */
  pointer-events: none;
}

/* 背景動画 */
.scroll-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5; /* 動画を薄く表示 */
  pointer-events: none;
}

section {
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.7); /* セクション背景を半透明に */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

section {
  background-color: rgba(248, 249, 250, 0); /* 偶数セクションも半透明に */
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #2c3e50;
  text-align: center;
}

section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ホームセクション */
#home {
	width: 80%;
  text-align: center;
	margin: auto;
  padding: 6rem 0;
}

#home h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#home p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.inner-home{
	width: 100%;
	margin: auto;
	position: relative;
	overflow: clip;
	min-height: 55vh;
}

/* 止めておきたい四角（動かさない） */
.bg-square{
  position: absolute;
  inset: 0;                /* 親の中央に配置 */
  margin-left: 20%;
  width: 80%;
  aspect-ratio: 1 / 1;
  background: #f0f0e8;        
  z-index: 1; 
}

.txt-area {
  position: absolute;
  left: 40%;
  margin-top: 6%;
  margin-left: 0;
  margin-right: 4%;
  text-align: left;
  z-index: 1;
}

#home .txt-area p {
  font-family: "Noto Serif JP", serif;
  text-align: justify;
}

#home .txt-area p.txt-area-title {
  font-family: "Noto sans JP", sans-serif;
  font-size: 2rem;
  margin-bottom: 6%;
}

.txt-area div.theme-box {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  width: 450px;
  max-width: 100%;
  margin-top: 5%;
  position: relative;
  padding-top: 15px;
}

.txt-area div.theme-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #000 0%, #000 5%, transparent 5%, transparent 95%, #000 95%, #000 100%);
}

.txt-area div.theme-box::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #000 0%, #000 5%, transparent 5%, transparent 95%, #000 95%, #000 100%);
}

#home .txt-area .theme-box p {
  font-family: "Noto Serif JP", serif;
  text-align: center;
}

#home .txt-area .theme-box p.theme-title {
  font-size: 0.9rem;
}

#home .txt-area a {
  display: block;
  text-decoration: none;
  margin-top: 4%;
  font-size: 1.1rem;
}

#home .txt-area .theme-box p.theme-text {
  font-family: shippori-mincho;
  font-size: 1.8rem;
  padding-bottom: 1rem;
}

/* 動かす写真（このレイヤーだけ transform する） */
.photo-layer{
  position: relative;
  z-index: 2;
  will-change: transform;  /* パフォーマンス */
}
.photo-layer img{
  display:block;
  width: 35%;
	max-width: 500px;
  height: auto;
  /* box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); */
}

/* プログラムテーブル */
.program-table {
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;
  border-collapse: collapse;
  border: 1px solid #000;
  background-color: #fff;
  overflow: hidden;
}


.program-table th {
  padding: 2rem 3rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid #000;
}

.program-table td {
  padding: 2rem 3rem;
  border: 1px solid #000;
  vertical-align: top;
  white-space: pre-line;
  line-height: 1.2;
}

.program-table tbody tr:last-child td {
  border-bottom: none;
}

.program-table th:first-child,
.program-table td:first-child {
  width: 30%;
  font-weight: 500;
  background: #f6f6f6;
}

.program-table th:last-child,
.program-table td:last-child {
  width: 70%;
}

#access .container {
  width: 530px
}

#access .container p {
  font-family: Noto serif JP, serif;
  text-align: left;
}

#access .container a {
  font-size: 1.2rem;
  display: block;
  text-align: center;
  margin-top: 2rem;
}

/* Instagram画像表示エリア */
.insta-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  min-height: 200px;
}

.insta-item {
  width: 10vw;
  height: 10vw;
  border: 1px solid #000;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.insta-item:hover {
  transform: scale(1.05);
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insta-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 1.1rem;
  color: #666;
}

/* 4つの問いについて */

#question {
  background: url('../images/question_bg.webp') no-repeat center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  color: white;
}

#question .container {
  margin: 5rem auto;
}

#question h2 {
  color: #f7a81b;
  margin-bottom: 2rem;
}

#question .sholder {
  color: #f7a81b;
  font-size: 1.5rem;
}

#question .question-box p{
  font-family: Noto Serif JP, serif;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

#question .question-list {
  width: 320px;
  margin: 2rem auto;
}

#question .question-list li {
  font-family: Noto Serif JP, serif;
  font-size: 1.4rem;
  line-height: 2;
}

#question .question-box-item {
  background-color: #f0f0e8;
  border-radius: 8px;
  height: 280px;
  width: 400px;
  color: black;
}

#question .question-box-item h3{
  font-family: Noto serif JP, serif;
  text-align: center;
  margin: 1rem 0 0 0;
}

#question .question-box-item p{
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

#question span.pc{
  display: inline;
}

#question .question-box-item p.question-box-messe{
  font-family: Noto sans JP, sans-serif;
  font-size: 2.3rem;
  font-weight: bold;
  color: #0060b0;
  text-align: left;
  line-height: 1.1;
  font-feature-settings: "palt";
  margin-top: 1.6rem;
  margin-left: 2.2rem;
}

#question .question-box-item:last-of-type p{
  font-size: 1rem;
  padding-top: 1rem;
}

#question .question-box-item:last-of-type p.question-box-messe{
  font-family: Noto serif JP, serif;
  font-size: 2.3rem;
  font-weight: bold;
  color: #0060b0;
  text-align: center;
  margin: 3.5rem 0;
}

#question .question-box-item a{
  color: #000;
  display: block;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 1rem;
}

#question a{
  display: block;
  color: white;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 3rem;
}

/* 会員企業一覧 */

#member-list {
  background-color: #fff;
  padding: 5rem 0;
}

#member-list a{
  display: block;
  color: #000;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 3rem;
}

/* 無限スクロール */
.member-list-box {
  overflow: hidden;
  margin: 3rem 0;
}

.member-scroll-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  width: fit-content;
}

.member-scroll-right {
  animation-name: scroll-right;
}

.member-scroll-left {
  animation-name: scroll-left;
}

.member-logo {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: none;
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}



/* フッタースタイル */
footer {
  background-color: #34495e;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

footer p {
  font-family: Noto serif JP, serif;
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-box.flex-box{
  gap: 4rem;
  width: 70%;
  margin-left: 24%;
  margin-bottom: 5rem;
}

footer .footer-box-item{
  text-align: left;
  flex: 1;
}

footer .footer-box-item h3{
  font-family: Noto serif JP, serif;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

footer .footer-box-item p{
  font-family: Noto serif JP, serif;
  margin-bottom: 1rem;
  line-height: 1.6;
}

footer .footer-box-item ul{
  margin: 0;
  padding: 0;
}

footer .footer-box-item li{
  margin-bottom: 0.8rem;
}

footer .footer-box-item a{
  font-family: Noto serif JP, serif;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-bottom: 1rem;
}

footer .footer-box-item a:hover{
  color: #f7a81b;
}

footer .footer-box-item:last-of-type a{
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

footer .footer-box-item > a > img{
  width: 28px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* GIAアイコン */
a.gia_icon::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../images/gia_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  vertical-align: middle;
}

/* Instagramアイコン */
a.insta_icon::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../images/insta_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  vertical-align: middle;
}

/* 寄付ボタン（固定表示） */
.kifu-button {
  position: fixed;
    bottom: 16%;
    right: -4%;
    width: 15%;
    height: 15%;
    z-index: 1000;
    text-decoration: none;
}


.kifu-button img {
  width: 100%;
  height: 100%;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {

  /* コモンスタイル */

  .container {
    padding: 0;
  }

  .sp{
    display: block;
  }
  
  .pc{
    display: none;
  }

  section p {
    font-size: 0.8rem;
  }

  /* anchor-linkクラスのaタグにanchor.svgを追加 */
  a.anchor-link::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('../images/anchor.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 7px;
    margin-bottom: 2px;
    vertical-align: middle;
  }

  a.anchor-link-white::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('../images/anchor_white.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 7px;
    margin-bottom: 2px;
    vertical-align: middle;
  }

  /* 固定ハンバーガーメニューを表示 */
  .fixed-hamburger {
    display: block;
  }
  
  /* ヘッダーのナビゲーションメニューを非表示 */
  header .nav-menu {
    display: none;
  }
  
  /* スマホ表示でトップスクロールボタンを非表示 */
  .scroll-top-btn {
    display: none !important;
  }

  /* ヘッダーのロゴ */
  header nav a{
    display: block;
    width: 80%;
    margin-left: 10%;
  }
  
  main {
    margin-top: 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  #home h2 {
    font-size: 2.5rem;
  }

  /* ヒーローセクション */

  .hero{
    height: 100vh;
  }

  .hero__logo{
    width: 80%;
  }

  /* 寄付ボタン（固定表示） */
  .kifu-button {
    position: fixed;
    bottom: 3%;
    right: 50%;
    transform:translateX(50%);
    width: 90%;
    height: auto;
    z-index: 1000;
    text-decoration: none;
  }


  .kifu-button img {
    width: 100%;
    height: 100%;
  }

  /* ホームセクション */

  #home {
    width: 85%;
  }

  .inner-home {
    min-height: 70vh;
  }

  .bg-square {
    margin-left: 20%;
    width: 80%;
    aspect-ratio: 1 / 3;
  }

.txt-area{
    position: absolute;
    left: 0;
    top: 45%;
    margin-right: 0;

  }

  #home .txt-area p{
    font-size: 0.8rem;
  }

  #home .txt-area p.txt-area-title {
    font-size: 1rem;
    margin-bottom: 6%;
    text-align: center;
  }

  .txt-area div.theme-box{
    width: 75%;
    margin: auto;
  }
  
  #home .txt-area .theme-box p.theme-title{
    font-size: 0.7rem;
  }

  #home .txt-area .theme-box p.theme-text {
    font-family: shippori-mincho;
    font-size: 1rem;
  }

  #home .txt-area a{
    font-size: 0.9rem;
    text-align: center;
  }

  .photo-layer{
    margin-top: -20%;
  }

  .photo-layer img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  /* 例会プログラム */

  #program .container {
    width: 85%;
  }

  .program-table td {
    padding: 0.7rem 1rem 0.7rem 1.5rem;
    border: 1px solid #000;
    vertical-align: top;
    font-size: 0.9rem;
  }

  .program-table th {
    padding: 0.5rem 1rem 0.5rem 1.7rem;
    border: 1px solid #000;
    vertical-align: top;
    font-size: 0.9rem;
  }

  /* アクセス */
  #access .container {
    width: 85%;
    margin: auto;
  }

  #access .container a{
    font-size: 0.9rem;
  }

  #access p {
    font-size: 0.7rem;
    line-height: 1;
  }

  /* Instagram表示をスマホで2×2に制限 */
  .insta-box {
    max-width: 100%;
    margin: 2rem auto;
    align-items: center;
  }

  .insta-item {
    width: 50vw;
    height:50vw;
    flex: 0 0 calc(50% - 5px);
  }

  /* 4つ以上のアイテムを非表示 */
  .insta-item:nth-child(n+5) {
    display: none;
  }

  /* 4つの問いについて */

  
  #question h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  #question .sholder {
    font-size: 1rem;
  }

  #question .question-box p{
    font-size: 0.7rem;
  }

  #question .question-list {
    width: 210px;
    margin: 2rem auto;
  }

  #question .question-list li {
    font-size: 0.9rem;
  }

  #question .flex-box{
    display: block;
  }

  #question .question-box-item {
    width: 85%;
    margin: auto;
    height: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }


  #question .question-box-item h3{
    font-size: 1rem;
    padding-top: 1rem;
  }

  #question .question-box-item p.question-box-messe{
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
  }

  #question .question-box-item:last-of-type p{
    margin-bottom: 0;
  }

  #question .question-box-item:last-of-type p.question-box-messe{
    margin: 1.0rem auto 1.5rem;
  }

  #question .question-box-item a{
    font-size: 0.9rem;
  }
  
  #question span.pc{
    display: none;
  }

  /* フッター */
  .footer-box.flex-box {
    display: block;
    width: 80%;
    margin: auto;
  }

  footer .footer-box-item h3 {
    font-size: 1.1rem;
  }

  footer .footer-box-item p {
    margin-bottom: 0.9rem;
  }

  footer .footer-box-item ul {
    margin-bottom: 0.9rem;
  }

  footer .footer-box-item:last-of-type a {
    margin-bottom: 0.3rem;
    font-size: 1rem;
  }

  footer .footer-box-item:last-of-type a img {
    width: 20px;
    height: 20px;
  }

  footer .copyright {
    font-size: 0.7rem;
    margin: 3rem auto;
  }

  /* 寄付ボタン（固定表示） */
.kifu-button {
    bottom: 1%;
  }

}
@media (max-width: 480px) {
  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  main {
    margin-top: 60px;
  }
  
  section {
    padding: 2rem 0;
  }
  
  section h2 {
    font-size: 1.4rem;
  }
  
  #home {
    padding: 4rem 0;
  }
  
  #home h2 {
    font-size: 2rem;
  }
}

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* アニメーションクラス */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}


