.header {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: clamp(20px, 4vw, 32px) 20px clamp(16px, 3vw, 24px);
  box-sizing: border-box;
  text-align: center;
}

body {
  margin: 0;
}

/* ロゴ：ヘッダー上部に中央配置 */
.logo {
  margin: 0 0 clamp(14px, 3vw, 24px);
}

.logo img {
  height: clamp(50px, 7vw, 90px);
}

.line{
  border: none;        /* デフォルトの線を消す */
  height: 1.5px;         /* 太さ */
  background-color: #333; /* 線の色 */
  width: calc(100% + 40px); /* .headerの左右padding(20px)分をはみ出させて端まで届かせる */
  margin-left: -20px;
  margin-right: -20px;
}

/* ハンバーガーボタン（モバイル用） */
.menu-btn,
.menu-close {
  display: none;
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
}

/* ナビ全体：ロゴ下に横並びで中央配置 */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各リンク */
nav a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* HOMEページ：どのリンクも虹色のグラデーションで表示 */
nav a:hover {
  background-image: linear-gradient(90deg, #e5484d, #c9a179, #e0b400, #7fad8f, #3f7fd1, #4a4e9e, #8e5fc4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 区切り線 */
nav .separator {
  color: #ccc;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

/* モバイル：ハンバーガーメニューに切り替え */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: absolute;
    top: clamp(20px, 4vw, 32px);
    right: 24px;
  }

  .menu-body {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .menu-body.is-open {
    transform: translateX(0);
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
  }

  nav ul {
    flex-direction: column;
    gap: 28px;
  }

  .separator {
    display: none;
  }
}


/* 全体 */
.slider {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 12px auto 50px; /* ←上を詰めて画像を上寄せに */
  text-align: center;
}

/* 画像：矢印ボタンはこの要素基準で画像の高さの中央・左右端に配置される */
.slides {
  position: relative;
  width: 100%;
  height: clamp(250px, 50vw, 400px);       /* ← 好きな高さに固定 */
  overflow: hidden;     /* はみ出し防止 */
}

.slide {
  width: 100%;
  height: clamp(250px, 50vw, 400px);
  object-fit: cover;    /* ← 重要：比率を保ってトリミング */
  display: none;
  border-radius: 10px;
}

/* 表示中の画像 */
.slide.active {
  display: block;
}

/* ボタン */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  width: clamp(30px, 5vw, 50px);
  height: clamp(30px, 5vw, 50px);
  border-radius: 50%;        /* ←丸くする */
  
  background: rgba(128, 127, 127, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: clamp(14px, 2vw, 20px);

}

.prev { left: 10px; }
.next { right: 10px; }

/* ホバー */
.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

/* ドット */
.dots {
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 7.5px;
  height: 7.5px;
  margin: 5px;
  background: gray;
  border-radius: 50%;
  cursor: pointer;
}

/* 今の位置 */
.dot.active {
  background: black;
}

/* ==== news ==== */
.news-section {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.news-section h2 {
  text-align: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.1em;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  box-sizing: border-box;
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.news-date {
  color: #666;
  font-size: 13px;
}

.news-title {
  font-weight: 600;
}

.news-body {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: #444;
}

.news-loading,
.news-error,
.news-empty {
  text-align: center;
  color: #666;
  padding: 20px 0;
}

/* ==== フッター ==== */
.footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
}

.footer p {
  margin: 0;
}