body {
  margin: 0;
  font-family: "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  background: #f7f5f0;
  color: #222;
  line-height: 1.9;
}

/* ===== 共通レイアウト ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* ===== タイトル ===== */
.site-title {
  text-align: center;
  line-height: 1.3;
  font-size: 40px;
}

.site-title span {
  display: inline;
}

/* ===== ナビ ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 60px;
}

nav a {
  background: #eee;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
}

/* ===== セクション ===== */
section h2 {
  font-size: 30px;
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 3px solid #bfa36a;
  text-align: center;
}

/* ===== メイン祝辞（3人） ===== */
.big-message {
  display: flex;
  gap: 30px;
  padding: 40px 0;
}

.big-info {
  width: 260px;
  text-align: center;
}

.big-info img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.big-info .title,
.big-info .name {
  font-weight: bold;
}

.big-info .name {
  font-size: 20px;
}

.big-text {
  flex: 1;
}

/* ===== その他祝辞 ===== */
.message-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.message-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 14px;
  text-align: center;
}

.message-box .title{
  font-size:14px;
  line-height:1.4;
  margin-bottom:6px;
  
}

.message-box .name{
  font-weight:bold;
  margin-top:2px;
}

.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 10px;
}


.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-box .title {
  font-size: 14px;
}

.message-box .name {
  font-weight: bold;
}

.message-box button {
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #bfa36a;
  background: transparent;
  cursor: pointer;
}


.slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;   /* ←これ超大事 */
  overflow: hidden;
}

#slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ボタン */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.25);  /* ←薄くする */
  backdrop-filter: blur(4px);          /* ←少し弱く */

  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);

  opacity: 0.6;                        /* ←さらに薄く */
}

.slider button:hover{
  opacity: 1;
  background: rgba(255,255,255,0.6);
}

.prev { left: 10px; }
.next { right: 10px; }

.dots {
  text-align: center;
  margin-top: 14px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
  margin: 0 4px;
}

.dots .active {
  background: #666;
}

/* ===== モーダル ===== */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  position: relative;

  max-height: 90vh;      /* ← 画面の高さ以内にする */
  overflow-y: auto;      /* ← はみ出したらスクロール */
}

#close {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
}

.en{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease;
}

.en.open{
  max-height:2000px;
  margin-top:20px;
}

.accordion-btn{
  display: block;
  margin: 36px auto;       /* 真ん中 */
  padding: 18px 42px;      /* 大きく */
  font-size: 20px;         /* 文字も大きく */

  background: #bfa36a;
  color: white;

  border: none;
  border-radius: 40px;     /* 丸いボタン */

  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: all 0.2s ease;
}

.accordion-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.accordion-btn:active{
  transform: translateY(1px);
}

#modal-message{
  white-space: pre-line;
}

.video-link{
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #bfa36a;
  background: transparent;
  cursor: pointer;
    text-decoration:none;
  color:#333;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .slider button {
    width: 70px;
    height: 70px;
    font-size: 24px;
}

  /* タイトル折り返し */
  .site-title {
    font-size: 28px;
  }

  .site-title span {
    display: block;
  }

  .site-title .line1 {
    font-size: 26px;
  }

  .site-title .line2 {
    font-size: 22px;
    margin-top: 4px;
  }

  .site-title .line3 {
    font-size: 20px;
    margin-top: 6px;
  }

  /* メイン祝辞中央寄せ */
  .big-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .big-info {
    width: 100%;
  }

  /* その他祝辞：3×3表示 */
  .message-grid {
    grid-template-columns: repeat(3, 1fr);
  }


  .event {
    width: 100%;
  }

.accordion-btn{
  width: 90%;          /* 横広く */
  max-width: 360px;

  padding: 20px 0;     /* 高さを大きく */
  font-size: 22px;     /* 文字大きく */

  border-radius: 40px;
}