body {
  margin: 0;
  font-family: sans-serif;
}

.section {
  padding: 60px 0;
}
.section2 {
  padding: 0 0 30px 0;
}

/* 中央に固定幅のコンテンツを作る */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 背景ごとのブロック */
.section-light {
  background-color: #f5f5f5;
}
.section-white {
  background-color: #ffffff;
}

/* メイン */
main {
  padding: 2rem 0;
}
.top-image {
  text-align: center; 
}

.top-image img {
  display: inline-block;
  max-width: 100%;       
  height: auto;
  object-fit: cover;     /* 必要に応じてトリミング */
}
.top-text {
	width: 450px;
	font-size: 0.9em;
	text-align: left;
}
.section-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 0.4em;
  border-bottom: 3px solid #01b9ee; /* 下線の色 */
  color: #333;
  gap: 1.5em; /* アイコンとの余白 */
}
.section-title .icon {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
}


/* フッター */
footer {
  background: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 0rem;
}
/* ページトップ */
#toTopBtn {
  display: none; /* 初期は非表示 */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 1.5rem;
  background-color: #fff;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}
#toTopBtn:hover {
  background-color: #ccc;
}
/* お知らせ */
.news {
  margin-top: 2rem;
}

.news h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
text-align: center;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap; /* スマホ対応 */
}

.news-list .date {
  font-weight: bold;
  color: #666;
  min-width: 100px;
  flex-shrink: 0;
}

.news-list p {
  margin: 0;
  color: #333;
  flex: 1;
}



.toggle-wrapper {
  margin: 0;
}
.toggle-button {
  color: #1976D2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.toggle-button:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* チェックボックスは非表示 */
#toggle-text {
  display: none;
}

/* 隠れているとき */
.toggle-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top: 0;
  padding: 0;
}

/* 表示されたとき */
#toggle-text:checked + .toggle-button + .toggle-content {
  max-height: 1000px; /* 内容に合わせて調整 */
  opacity: 1;
  margin: 0;
  padding-bottom: 1rem;
}




/* ボタン */
.archive-button {
  display: block;
  width: 100%;
	height: 200px;
   background-image: url('img/i_01-01-01.png'); 
  text-align: center;
  text-decoration: none;
  border-radius: 20px;
  margin: 2rem 0;
  box-sizing: border-box; /* padding込みでも100%を超えないように */
}

.flexa {
  display: flex; /*横並び*/
}
.flexa .image {
  width: 10%; 
  margin: 2.5em 0 0 20%;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.flexa .text {
  margin: 2.5em 0 0 1em;
  padding: 2em;
	background-color: rgba(255,255,255,0.90);
}

.buttontext1{
  color: #4b4b4b;
  font-size: 1.5rem;
  font-weight: bold;
	
}
.buttontext2{
  color: #666666;
  font-size: 0.9rem;
  font-weight: bold;
	padding: 0 2em;
	
}
.text2 {
  margin: 8em auto;
  padding: 1em;
	background-color: rgba(255,255,255,0.90);
	}

.text3 {
  margin: 12em auto;
  padding: 0.5em;
	background-color: rgba(255,255,255,0.90);
	}
.sub-archive-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8rem; /* ← ここを変更 */
  max-width: 1000px;
  margin: 2rem auto;
}

.sub-button {
  flex: 0 0 calc((100% - 16rem) / 3); /* ← gap 3rem × 2 = 6rem を引く */
  min-width: 200px;
	height: 320px;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

/* 写真ごとの設定 */
.btn-kouda {
   background-image: url('img/i_02-01-01.png'); 
	background-size: cover;
}
.btn-kouda:hover, .btn-shinsei:hover, .btn-kougen:hover, .btn-seisyou:hover, .btn-arakawa:hover, .btn-saikawa:hover, .btn-ishihara:hover, .btn-mitsuda:hover, .btn-hayashi:hover, .btn-ohara:hover, .btn-okada:hover, .btn-ooshima:hover, .archive-button:hover {
  
  filter: brightness(1.1); 
}

.btn-shinsei {
   background-image: url('img/i_02-02-01.png'); 
	background-size: cover;
}
.btn-kougen {
   background-image: url('img/i_02-03-01.png');  
	background-size: cover;
}
.btn-seisyou {
   background-image: url('img/i_02-04-01.png');  
	background-size: cover;
}

.btn-arakawa {
   background-image: url('img/i_03-01.png'); 
	background-size: cover;
}
.btn-saikawa {
   background-image: url('img/i_03-02.png'); 
	background-size: cover;
}
.btn-ishihara {
   background-image: url('img/i_03-03.png'); 
	background-size: cover;
}
.btn-mitsuda {
   background-image: url('img/i_03-04.png'); 
	background-size: cover;
}
.btn-hayashi {
   background-image: url('img/i_03-05.png'); 
	background-size: cover;
}
.btn-ohara {
   background-image: url('img/i_03-06.png'); 
	background-size: cover;
}
.btn-okada {
   background-image: url('img/i_03-07.png'); 
	background-size: cover;
}
.btn-ooshima {
   background-image: url('img/i_03-08.png'); 
	background-size: cover;
}

.password-notice {
  display: flex;
  align-items: center;
  justify-content: center; 
  background-color: #e31836;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  width: 100%; 
  box-sizing: border-box;
}

.password-notice .icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.password-notice .text {
  text-align: center;
}


/* フェードイン */
.fadein-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  will-change: opacity, transform;
}
.fadein-block.visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 1000px) {

	.flexa .image {
		display: none !important;
	}
	.flexa .text {
  margin: 3em auto;
  padding: 1.5em;
	background-color: rgba(255,255,255,0.90);
	}

.sub-archive-buttons {
  gap: 3rem; /* ← ここを変更 */
}

.sub-button {
  flex: 0 0 calc((100% - 6rem) / 3); /* ← gap 3rem × 2 = 6rem を引く */
}

}
/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 1rem 0;
  }
	

  .sub-button {
    flex: 1 1 100%;
	  height: auto; 
}
	.text2, .text3 {
		margin: auto;
	}

}