@charset "utf-8";

/* 共通背景オーバーレイ（koukyouzi.css と同様） */
.funeral-backimage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/hasu-kuro.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -1;
}

/* ヒーローセクション */
.hero {
  height: 400px;
  background-image: url(../img/index/004.jpg); /* 年間行事専用の背景画像。実際の画像に合わせてください */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 1px 1px 10px rgb(17, 17, 17);
}

.hero h1 {
  font-size: 45px;
  font-weight: bold;
}

.hero p {
  font-size: 16px;
  margin-top: 15px;
}

.midashi p {
  font-size: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 3rem auto;
}

/* イベント一覧セクション */
.funeral-events {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.event {
  background-color: #fff;
  border: 1px solid #e6b422;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.event:hover {
  transform: scale(1.02);
}

.event img {
  width: 100%;
  height: auto;
  display: block;
}

.event h2 {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  margin: 0;
  color: #333;
}

/* モーダルスタイル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: center;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  font-size: 28px;
  margin-bottom: 1rem;
  color: #333;
}

.modal-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

#modalDescription {
  white-space: pre-wrap;
  text-align: left;
}


/* レスポンシブ */
@media (max-width: 800px) {
  .hero {
    height: 200px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 14px;
  }
  .funeral-events {
    grid-template-columns: 1fr;
    margin: 2rem auto;
  }

  .midashi p {
    font-size: 14px;
  }
}
