/* ベーススタイル */
body {
  background-color: #e6f4e5; /* パステル緑 */
  font-family: "Rounded Mplus 1c", "Yu Gothic Rounded", "Yu Gothic Rounded",
    sans-serif;
  line-height: 1.8;
  padding-top: 80px; /* ヘッダーの高さ分余白を確保 */
}

/* セクション本文の読みやすさ向上 */
section p {
  padding: 20px 20px;
  border-radius: 12px;
  line-height: 2;
  font-size: 23px;
  color: #574223;
  margin-top: 10px;
  margin-bottom: 10px;
}

.float-left-image {
  float: left;
  width: 30%;
  margin: 0 20px 20px 0;
}

.float-right-image {
  float: right;
  width: 30%;
  margin: 0 0 10px 10px;
}

.float-left-image img,
.float-right-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* セクションタイトル直下の段落に余白を調整 */
section h2 + p {
  margin-top: 10px;
}

/* セクション内の改行のスタイル */
section p br {
  display: block;
  content: "";
  margin-top: 1em;
}

.logo img {
  width: 200px; /* 必要に応じてサイズを変更してください */
  height: auto;
  display: block;
}

/* ヘッダー */
header .logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-link {
  color: #007b5e;
  font-weight: 500;
  font-size: 18px;
}

.nav-link:hover {
  text-decoration: underline;
  color: #005c3b;
}

.top-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e6f4e5; /* パステル緑のままでもOK */
  padding: 20px 0;
}

.top-illustration {
  width: 60%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 1 / 1;
  background-image: url("top/newtop.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.section-heading {
  position: relative;
  background-size: cover; /* cover で全体を覆う */
  background-repeat: no-repeat;
  background-position: center;
  height: 250px; /* 画像の縦サイズに応じて調整（例：300pxでもOK） */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: 12px;
  text-align: center;
}

.section-heading h2 {
  color: white;
  font-weight: bold;
  font-size: 32px;
  margin: 0;
  padding: 10px 20px;
  border-radius: 8px;
}

.overlay-text {
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* トップに戻るボタン */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  z-index: 999;
  background-color: #629475;
  color: white;
  border: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
  background-color: #4ca67c;
}

/* フッターリンク */
footer a {
  color: #574223;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

/* 全体背景 */
.site-bg {
  background-color: #e6f4e5; /* パステルグリーン */
}

.past-button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 常に2列 */
  gap: 20px;
  justify-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.btn-dark-green {
  background-color: #629475;
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  min-width: 220px;
  transition: background-color 0.3s ease;
}

.btn-dark-green:hover {
  background-color: #36634f;
  color: white !important;
}

.past-button-single{
  text-align: center;
}

.btn-mint-green {
  background-color: #784c16;
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  min-width: 220px;
  transition: background-color 0.3s ease;
}

.btn-mint-green:hover {
  background-color: #563711;
  color: white !important;
}

.this-year-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.this-year-button {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  color: #574223;
  font-weight: bold;
  font-size: 24px;
  text-decoration: none;
  text-align: center;
  line-height: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

.this-year-button:hover {
  opacity: 0.8;
  scale: 1.05;
}

.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

.menu {
  display: flex;
  gap: 15px;
}

.menu ul {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0;
  gap: 15px;
}

.menu a {
  text-decoration: none;
  color: #574223;
  font-weight: 500;
}

.btn-contact-green {
  background-color: #629475; /* パステル緑 */
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-contact-green:hover {
  background-color: #36634f;
  color: #fff;
}

.calendar-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 20px;
}

/* カレンダー画像表示エリア */
.calendar-image-wrapper {
  position: relative;
  width: 90%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  background-color: #e0e0e0;
  overflow: hidden;
  border-radius: 12px;
}

/* 画像切り替えのアニメーション */
.calendar-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 0;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; /* 時間を短縮 */
}

/* 表示中の画像 */
.calendar-image.show {
  opacity: 1;
  z-index: 2;
}

/* 左右のボタン */
.calendar-nav {
  background-color: #cfead1;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav:hover {
  background-color: #b6d9bd;
}

/* コンテナを中央揃え */
.slide-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  font-family: "Rounded Mplus 1c", sans-serif;
}

/* 見出しデザイン */
.slide-title {
  color: #574223;
  font-size: 24px;
  margin-bottom: 16px;
  text-align: center;
}

/* スライドの外枠（フレーム） */
.slide-frame {
  background-color: #629475;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* iframe自体のデザイン */
.slide-frame iframe {
  width: 593px;
  height: 480px; /* 正方形に設定 */
  border-radius: 16px;
  border: none;
}

/* スマホ・タブレット対応（画面幅768px以下） */
@media screen and (max-width: 768px) {
  .section-heading h2 {
    font-size: 20px;
    padding: 8px 12px;
  }

  .section-heading {
    height: 180px; /* 高さも少し小さくしてバランスをとる */
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .menu.show {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 10px;
  }

  .menu a {
    color: #333;
  }

  .past-button-grid {
    grid-template-columns: 1fr; /* 1列にする */
  }

  .slide-container {
    margin: 20px 10px; /* スマートフォンでは左右の余白を調整 */
  }

  .slide-title {
    font-size: 20px; /* スマートフォンでは見出しのフォントサイズを少し小さく */
  }

  .slide-frame {
    padding: 10px; /* フレームのパディングも調整 */
  }

  .slide-frame iframe {
    width: 100%;
    height: calc(100vw * (480/593));
    border-radius: 16px;
    border: none;
  }
}
