/* ====== ベース設定 ====== */
body {
  background-color: #1c1c1c;       /* 最後の指定に統一 */
  color: #f0f0f0;
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.8;
  max-width: 800px;                /* 横幅を制限 */
  margin: 0 auto;                  /* 左右中央揃え */
  padding: 20px;                   /* 余白 */
  text-align: center;              /* テキスト中央揃え */
}

/* ====== ヘッダー ====== */
header {
  background-color: #1a1a1a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
}

/* ====== メイン ====== */
main {
  padding: 40px 20px;
}

h2 {
  color: #f4c430;
  font-size: 1.5rem;
}

/* ====== ボタン ====== */
a.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}
a.btn:hover {
  background: #666;
}

/* ====== メニュー ====== */
.menu ul {
  list-style: none;       /* リストの丸ポチを非表示に */
  padding: 0;
  text-align: center;
}
.menu ul li a {
  display: inline-block;
  background-color: #333;
  padding: 10px 16px;
  margin: 8px 0;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: 0.2s;
}
.menu ul li a:hover {
  background-color: #666;
}

/* ====== フッター ====== */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ====== ギャラリー ====== */
.gallery {
  display: flex;
  flex-wrap: wrap;             /* 折り返し許可 */
  justify-content: center;     /* 中央揃え */
  align-items: flex-end;     /* 下揃え */
  gap: 20px;                   /* 画像間隔 */
  padding: 20px 0;
  margin-top: 2em;
  text-align: center;          /* figure内テキスト中央 */
}

.gallery figure {
  margin: 0;
  width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

img {
  border-radius: 10px;
  box-shadow: 0 0 5px #aaa;
}

/* ====== バナー ====== */
.banner {
  background-image: url("yuta801-14_TP_V.webp");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px;
  text-align: center;
  font-size: 2.5em;
}

.news {
  margin-top: 2em;
  padding-left: 1em;
}

.news-item {
  margin-bottom: 1.5em;
}

.news-date {
  font-size: 0.9em;
  color: #aaa;
}

.news-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 0.2em;
}

.news-body {
  margin-top: 0.5em;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #ff5e5e;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}
.close-btn:hover {
  color: #ff9999;
}

/* ニュース欄スクロール対応（ダークテーマ調整済み） */
.news {
  max-height: 200px;                 /* スクロール発生条件 */
  overflow-y: auto;                  /* 縦スクロール許可 */
  padding-right: 1em;               /* スクロールバー余白 */
  border: 1px solid #444;           /* 暗めの枠線でなじませる */
  background-color: #2a2a2a;        /* 本体より少し明るいダーク */
  border-radius: 8px;               /* 見た目整える */
  padding: 1em;
}
