/* ===== 共通 ===== */
body {
  margin: 0;
  font-family: "Meiryo", sans-serif;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== トップ画像切り替わり ===== */
body{margin:0}
.slider{position:relative;height:40vh;overflow:hidden}
.slide{position:absolute;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity 1s}
.slide.active{opacity:1}
.arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.5);color:#fff;border:none;font-size:32px;padding:10px;cursor:pointer;z-index:10}
.prev{left:20px}.next{right:20px}
.dots{position:absolute;bottom:20px;left:50%;transform:translateX(-50%)}
.dot{display:inline-block;width:12px;height:12px;margin:0 5px;background:rgba(255,255,255,.5);border-radius:50%;cursor:pointer}
.dot.active{background:#fff}


/* ===== ヘッダー ===== */
.site-header {
  background: #0075ea;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

/* ===== ナビ ===== */
.global-nav {
  background: #005fc4;
}
.global-nav ul {
  margin: 0;
  padding: 10px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.global-nav a {
  color: #fff;
  text-decoration: none;
}

/* ===== 新着 ===== */
.news-list, .snow-list {
  list-style: none;
  padding: 0;
}
.news-list li,
.snow-list li {
  padding: 6px 0;
}


.news-list li {
  display: flex;
  gap: 10px;
}

.news-list time {
  display: inline-block;
  width: 110px;
  flex-shrink: 0;
}

.news-more {
  margin-top: 8px;
}

.news-more summary {
  cursor: pointer;
  font-weight: bold;
  color: #0075ea;
}

.news-more summary:hover {
  text-decoration: underline;
}


/* ===== 雪情報 ===== */
.snow {
  margin-top: 24px;
  background: #f0f6ff;
  padding: 16px;
  border-left: 6px solid #0075ea;
}

/* ===== ライブカメラ（6×2） ===== */
.camera {
  background: #eef3f8;
  margin-top: 40px;
  padding: 32px 0;
}

.camera-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
}

.camera-grid-6x2 {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ✅ 常に6列 */
  gap: 12px;
}

.camera-grid-6x2 li {
  background: #fff;
  border: 1px solid #ccc;
  text-align: center;
}

.camera-grid-6x2 img {
  width: 100%;
  height: auto;
  display: block;
}

.camera-grid-6x2 span {
  display: block;
  padding: 6px;
  font-size: 0.85rem;
  background: #f8f8f8;
}

.camera-grid-6x2 li {
  background: #000;
  overflow: hidden;
}

.camera-grid-6x2 img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
``

/* ===== お役立ちバナー ===== */
.useful {
  margin-top: 40px;
}
/* ===== お役立ちバナー：6枚×2段 ===== */
.banner-grid {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ✅ 6列 */
  gap: 16px;
}

/* 枠とバナー */
.banner-grid li {
  text-align: center;
}

.banner-grid a {
  display: inline-block;
  border: 1px solid #ccc;
  background: #fff;
}

.banner-grid img {
  display: block;
  max-width: 160px;   /* ← バナーの大きさ（調整OK） */
  height: auto;
}

/* ===== タブレット ===== */
@media (max-width: 1024px) {
  .banner-grid {
    grid-template-columns: repeat(3, 1fr); /* 3列×複数段 */
  }
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
  }
}
``
/* ===== スマホ ===== */
@media (max-width: 768px) {
  .camera-grid-6x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== フッター ===== */
.site-footer {
  margin-top: 48px;
  padding: 24px 16px;
  background-color: #eeeeee;
  color: #333;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid #0075ea;
}

/* フッター内テキスト */
.site-footer p {
  margin: 6px 0;
}

/* コピーライト */
.site-footer small {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #555;
}


/* ===== バックナンバー ===== */
.backnumber {
  margin: 24px 0;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #ddd;
}

.backnumber h2 {
  margin-top: 0;
}

.backnumber-link {
  margin: 0;
}

.backnumber a {
  font-weight: bold;
  text-decoration: none;
  color: #0075ea;
}

.backnumber a:hover {
  text-decoration: underline;
}


/* 雪ブロック */
.snow {
  margin-top: 24px;
  background: #f0f6ff;
  padding: 16px;
  border-left: 6px solid #0075ea;
}

/* 重要リンク */
.snow-links {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.snow-links a {
  flex: 1;
  display: block;
  padding: 10px;
  background: #0075ea;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}

.snow-links a:hover {
  background: #005fc4;
}

/* サブタイトル */
.snow h3 {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* リスト */
.snow-list li {
  padding: 6px 0;
}

.snow-list li {
  display: flex;
  gap: 10px;
}

.snow-list time {
  display: inline-block;
  width: 110px;
  flex-shrink: 0;
}

/* ===== 年度タブ（共通） ===== */

.yearTabs {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.yearTabs button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: 0.2s;
}

.yearTabs button:hover {
  background: #ddd;
}

.yearTabs button.active {
  background: #1e73be;
  color: #fff;
  border-color: #1e73be;
}

.moreBtn {
  padding: 8px 16px;
  background: #1e73be;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.moreBtn:hover {
  background: #155a96;

}