/* ==========================================================================
  メインビジュアル：全体コンテナ ＆ 器
   ========================================================================== */
.main-visual {
  position: relative;
  width: 100%;
  height: 650px;
  max-height: 65vh;
  overflow: hidden;
  background-color: #fdfaf7;
}
.mv-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 各スライドの共通設定 */
.mv-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* 初期状態（隠れているとき） */
  opacity: 0;
  visibility: hidden;

  /* 切り替わるときのフェードアウト（2秒） */
  transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
  will-change: transform, opacity;
}

/* ==========================================================================
  表示されたスライド（active）の設定
   ========================================================================== */
.mv-slideshow .slide.active {
  opacity: 1;
  visibility: visible;
  /* 表示されるときのフェードイン（1.5秒） */
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

/* --- 1枚目：静止 --- */
.mv-slideshow .slide:nth-child(1).active {
  transform: scale(1);
}

/* --- 2〜4枚目：activeがついたら6秒かけて1.06倍まで拡大 --- */
.mv-slideshow .slide:nth-child(2).active,
.mv-slideshow .slide:nth-child(3).active,
.mv-slideshow .slide:nth-child(4).active {
  animation: singleZoomIn 6s linear forwards;
}

/* ==========================================================================
  アニメーション定義
   ========================================================================== */
@keyframes singleZoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); } 
}

/* スマホ対応 */
@media (max-width: 768px) {
  .main-visual { height: 450px; }
}

/* ==========================================================================
  section 共通
   ========================================================================== */
.section-inner {
    max-width: 800px;
      margin: 0 auto;
}

.info-section,
.about-section,
.calendar-section {
  padding: 5rem 2rem;
}

/* ==========================================================================
  section 個別 お知らせ
   ========================================================================== */

.info-section .section-inner {
  background: #fff;
  padding:20px 50px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .info-section .section-inner{
      padding:20px 30px;
  }
}

/* ==========================================================================
  section 個別　About us
   ========================================================================== */
.about-section {
  position: relative;
  background-color: #ffffff;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0),
    radial-gradient(rgba(0, 0, 0, 0.02) 2px, transparent 0),
    linear-gradient(45deg, rgba(0, 0, 0, 0.015) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.015) 75%, rgba(0, 0, 0, 0.015)),
    linear-gradient(45deg, rgba(0, 0, 0, 0.015) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.015) 75%, rgba(0, 0, 0, 0.015));
  background-size: 40px 40px, 60px 60px, 30px 30px, 30px 30px;
  background-position: 0 0, 20px 20px, 0 0, 15px 15px;
  padding: 60px 0;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    #ffffff 20%,
    #ffffff 80%,
    transparent 100%
  );
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.catch-phrase {
  font-family: "Shippori Mincho", Georgia, serif;
  font-size: 1.5rem;
  color: #0b0b0b;
  line-height: 1.6;
  margin: 0 0 25px 0;
  font-weight: bold;
  text-align: center;
}

.more-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-more {
  min-width: 180px;
}

.btn-more.btn-song {
  background-color: #594639;
  border-color: #594639;
}

.btn-more.btn-song:hover {
  background-color: #b5724c;
  border-color: #b5724c;
}

@media (max-width: 768px) {
  .about-section {
    background-image: none;
    padding: 40px 20px;
  }
  .section-inner {
    padding: 0;
  }

  .more-btn-wrap {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 0 20px;
  }

  .btn-more {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================================================
  行事予定（スケジュール表）
   ========================================================================== */

/* 年ごとの見出し */
.schedule-year-title {
  font-size: 20px;
  padding-left: 12px;
  border-left: 4px solid #d99b78;
  margin: 40px auto 15px auto;
  max-width: 800px;
  font-weight: bold;
}

/* 表全体のベース設定 */
.schedule-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px auto;
  border-collapse: collapse;
  background-color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
}

/* 表のヘッダー（一番上の項目名） */
.schedule-table th {
  background-color: #594639;
  color: #ffffff;
  font-weight: bold;
  padding: 12px 16px;
  border-top: 1px solid #594639;
  border-bottom: 2px solid #d99b78;
  text-align: left;
}

/* 表のデータセル（中身の行） */
.schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ece8e3;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: #f5eee4;
}

.col-date {
  width: 30%;
}
.col-event {
  width: 70%;
}

.txt-date {
  font-weight: 600;
  white-space: nowrap;
}

/* スマホ対応（画面が狭いときの調整） */
@media (max-width: 600px) {
  .calendar-section {
    padding: 40px 15px;
  }
  .schedule-year-title {
    margin: 30px 15px 10px 15px;
    font-size: 18px;
  }
  .schedule-table {
    width: calc(100% - 30px);
    margin: 0 15px 30px 15px;
    font-size: 14px;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 10px 12px;
  }
  .col-date {
    width: 40%;
  }
  .col-event {
    width: 60%;
  }
}

/* ==========================================================================
   HOME：各種お申し込み・手続きエリア
   ========================================================================== */
.home-procedures-section {
  background-color: #ffffff;
  padding: 5rem 2rem;
}

.procedures-container {
  max-width: 1100px;
  margin: 0 auto;
}

.procedures-title {
  font-size: 1.8rem;
  color: #9e2a2b;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.procedures-lead {
  font-size: 15px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.procedures-grid {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.procedure-card {
  flex: 1;
  background-color: #f5eee4;
  border: 1px solid #e5dfd8;
  border-radius: 8px;
  padding: 35px 25px;
  text-decoration: none !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.procedure-card:hover {
  transform: translateY(-4px);
  border-color: #9e2a2b;
  box-shadow: 0 8px 24px rgba(89, 70, 57, 0.12);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1;
}

.card-title {
  font-size: 1.25rem;
  color: #9e2a2b;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.card-text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 25px 0;
  flex-grow: 1;
  text-align: left;
}

.card-btn-text {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #1d3557;
  padding: 10px 35px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.procedure-card:hover .card-btn-text {
  background-color: #b03a3b;
}

@media (max-width: 768px) {
  .home-procedures-section {
    padding: 40px 15px;
  }
  .procedures-lead {
    text-align: left;
  }

  .procedures-grid {
    flex-direction: column;
    gap: 20px;
  }

  .procedure-card {
    padding: 30px 20px;
  }

  .card-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .card-btn-text {
    width: 100%;
    box-sizing: border-box;
  }
}
