/* ページ全体の基本フォント */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif; /* Helvetica Neueを優先 */
  background-color: #fff;
  color: #fff;
  background:url("../img/ushiro.png") center/cover no-repeat;
}

/* メインコンテンツの余白を統一 */
main {
  padding: 2.5rem 5%;
}

/* h1共通スタイル */
h1 {
  margin: 0 0 0.75rem;                /* 上の余白はゼロ、下だけ少し */
  font-size: clamp(28px, 4vw, 40px);  /* スマホ〜PCで自動調整 */
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;                   /* 左寄せに固定 */
  font-family: "Helvetica Neue", Arial, sans-serif;
}

h1 {
  font-size: 2rem;        /* ← サイズを明示 */
  font-weight: 800;
  letter-spacing: 0.05em;
}

h3{
	color: black;
}
.live-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* auto-fill推し */
  gap: 1.5rem;
  justify-items: center; /* 各セル内で中央揃え */
}

.live-item{
  width: 100%;
  max-width: 420px; /* ← ここで巨大化ブレーキ。好みで調整(360–480px) */
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}

.live-item.hide{
  display: none !important;  
  opacity: 0;                 
  transform: scale(0.95);
  pointer-events: none;
}

    .live-item img {
      width: 100%;
      height: auto;
      display: block;
    }

    .live-info {
      padding: 1rem;
    }

    .date {
      font-size: 0.9rem;
      color: #777;
    }

.empty-state{
  margin: 2rem 0;
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

    .sns-icons img {
      width: 24px;
      margin: 0 0.5rem;
    }

a{
  color: gray;
  text-decoration: none;
}

a:visited{
	color: #fff;
}

a:hover{
	color:orangered;
}

/* 1) 画面高に広げて縦フレックス */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh; /* iOSでも安定 */
}

/* 2) main が余り高さを受け持つ */
main {
  flex: 1;              /* ←これだけでOK */
  padding: 2.5rem 5%;   /* 既存の共通余白はそのまま */
}

/* 3) footer は通常フローに（固定表示はしない） */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 3rem;
  font-size: 0.9rem;
}

/* ===== ハンバーガー（常に最前面） ===== */
.menu-btn{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3000; /* メニューより上 */
  /* flexは使わない：回転時のレイアウト暴走を防ぐ */
}

/* 三本線：絶対配置で中央基準に固定 */
.menu-btn span{
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  height: 4px;
  background: #000;        /* 閉じてる時の色（必要なら#fffに） */
  border-radius: 2px;
  transform-origin: center; /* 中心回転 */
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
/* 初期位置（上・中・下） */
.menu-btn span:nth-child(1){ top: 50%; transform: translateY(-9px); }
.menu-btn span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3){ top: 50%; transform: translateY(7px); }

/* 開いたとき「×」に変形＆白に */
.menu-btn.open span{ background:#fff; }
.menu-btn.open span:nth-child(1){ transform: translateY(-50%) rotate(45deg); }
.menu-btn.open span:nth-child(2){ opacity: 0; }
.menu-btn.open span:nth-child(3){ transform: translateY(-50%) rotate(-45deg); }

/* ===== スライドインメニュー（transform方式） ===== */
#menu{ /* nav じゃなく #menu に限定して衝突回避 */
  position: fixed;
  top: 0;
  right: 0;                 /* 右端基準に固定 */
  width: 250px;
  height: 100dvh;
  box-sizing: border-box;   /* パディングを幅に含める */
  padding: 2rem;
  background: rgba(0,0,0,.95);
  color: #fff;
  transform: translateX(100%);   /* ←完全に画面外へ */
  transition: transform .3s ease;
  z-index: 2000;
  /* iPhoneノッチ配慮（あれば吸収） */
  padding-right: calc(2rem + env(safe-area-inset-right));
}
#menu.active{
  transform: translateX(0);      /* ←スライドイン */
}
 



#menu ul{ list-style:none; margin:0; padding:0; }
#menu li{ margin:1rem 0; }
#menu a{ color:#fff; text-decoration:none; font-size:1.2rem; }
#menu a:hover{ color:orangered; }

/* はみ出しスクロール防止（保険） */
html, body { overflow-x: hidden; }
    /* タブボタン */
    .tab-buttons {
      display: flex;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .tab-buttons button {
      background: none;
      border: 1px solid #ccc;
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.3s;
    }

    .tab-buttons button.active {
      background: #000;
      color: #fff;
    }
/* ===== Footer: 完全固定レイアウト ===== */
:root{
  --footer-pad-y: 18px;
  --footer-gap: 28px;   /* アイコンの間隔 */
  --footer-icon: 28px;  /* アイコンのサイズ（高さ） */
}

/* 本体 */
body > footer{
  background:#000;
  color:#fff;
  text-align:center;
  padding: var(--footer-pad-y) 24px calc(env(safe-area-inset-bottom,0px) + var(--footer-pad-y));
}

/* 見出しやテキストの行間も統一（ページ差吸収） */
body > footer p{
  margin: 0 0 10px;
  line-height: 1.4;
}

/* アイコン行をflexで均一に並べる（marginではなくgapで制御） */
body > footer .sns-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: var(--footer-gap);
  margin-top: 10px;
  flex-wrap: nowrap;              /* 折り返し防止 */
}

/* 旧ルールの margin-right:10px を無効化 */
body > footer .sns-icons img{
  display:block;
  height: var(--footer-icon) !important;
  width: auto !important;
  margin: 0 !important;
  vertical-align: middle;
  /* もし白アイコンじゃないPNGなら、下で反転フィルタを外すか調整 */
  filter: none;                   /* 既に白の画像なら none。黒→白にしたい時は brightness(0) invert(1) */
}

/* スマホで少しだけコンパクトに */
@media (max-width: 600px){
  :root{
    --footer-gap: 24px;
    --footer-icon: 26px;
  }
}

/* 背景をうっすら暗くして文字を読みやすく（壊さない薄さ） */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1; /* 背景画像の直上、コンテンツの下 */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.30) 100%
  );
  pointer-events: none;
}