/* 全体共通設定 */
body {
  margin: 0;
  background-color: #fff8f0; /* 柔らかいベージュ背景 */
  font-family: 'Noto Sans JP', sans-serif;
}

/* =============================
   ▼ スライドショー表示エリア
============================= */
.slideshow {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: #f4e6ff; /* ラベンダー背景 */
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

/* ===========================
   ▼ ギャラリー一覧（サムネイル）
=========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* 自動レスポンシブ配置 */
  gap: 15px;
  padding: 30px;
  background-color: #fffaf5; /* やわらかい背景色 */
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s; /* ホバー拡大アニメーション */
}

.gallery-img:hover {
  transform: scale(1.03); /* 少し拡大 */
}

/* ===============================
   ▼ モーダル（拡大表示領域）
=============================== */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 99;
  padding-top: 30px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8); /* 黒い背景・半透明 */
}

/* 拡大表示される画像 */
.modal-content {
  margin: 60px auto 0; /* 上部にバツボタンスペース確保 */
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain; /* 縦横比を維持しつつフィット */
}

/* 閉じる（×）ボタン */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
}

/* ← → 矢印ボタン共通 */
.arrow {
  position: absolute;
  top: 80%; /* 通常（PC）は中央 */
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 0 15px;
  z-index: 100;
  user-select: none;
}

/* 左矢印（戻る） */
#prev {
  left: 20px;
}

/* 右矢印（進む） */
#next {
  right: 20px;
}

/* ==============================
   ▼ スマホ用メディアクエリ対応
============================== */
@media screen and (max-width: 768px) {
  /* モーダル画像を少し下へ */
  .modal-content {
    margin-top: 80px;
  }

  /* 閉じるボタンを大きくする */
  .close {
    font-size: 60px; /* タップしやすく拡大 */
    right: 20px;
    top: 15px;
  }

  /* 矢印の位置を下に（中央より80%） */
  .arrow {
    top: 80%;
    font-size: 48px;
  }
}

/* ==========================
   ▼ その他補助スタイル
========================== */
.gallery-item {
  text-align: center;
}

.caption {
  margin-top: 8px;
  font-size: 0.95em;
  color: #444;
  font-family: 'Noto Sans JP', sans-serif;
}

.title {
  font-size: 3em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #333;
  font-family: 'Noto Serif JP', serif;
}

.gallery-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.2em;
  color: #555;
  line-height: 1.8;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===========================
   ▼ フッター（下部情報欄）
=========================== */
.footer {
  background-color: #fef4f4;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  margin-top: 60px;
  border-top: 1px solid #e0dcdc;
}

.footer-content h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-family: 'Noto Serif JP', serif;
}

.footer-content p {
  font-size: 1em;
  line-height: 1.7;
  margin: 10px 0;
}

.footer-contact a {
  color: #9b59b6;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}
