/* --- 元のデザイン設定（変更なし） --- */

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #333;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #ffffff;
  padding: 20px;
  border-bottom: 2px solid #ccc;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.channel-logo {
  height: 80px;
  width: 80px;
  border-radius: 50%;
}

.header-title {
  font-size: 2.5rem;
  margin: 0;
}

nav {
  background-color: #ffffff;
  text-align: left;
  padding: 10px 20px;
  border-bottom: 4px solid #00adfc;
  margin-bottom: 20px;
}

nav a {
  color: #00adfc;
  text-decoration: none;
  margin-right: 20px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #007bbd;
  text-decoration: underline;
}

.video-section {
  margin: 40px 0;
}

iframe {
  width: 80%;
  max-width: 800px;
  height: 450px;
  border: none;
}

.past-videos-link {
  margin-bottom: 40px;
}

footer {
  background-color: #f0f0f0;
  color: #666;
  padding: 20px;
  font-size: 0.9rem;
}

.twitter-tweet {
  margin: 0 auto !important;
}

.video-section a {
  color: #007bbd;
}

.wbc {
  height: 225px;
  width: 1000px;
}

/* --- ここからスマホ・タブレット用の調整（デザイン維持） --- */

@media screen and (max-width: 768px) {
  /* ロゴとタイトルが横に並びきらない場合、縦に並べて中央揃えにする */
  .header-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  /* スマホ画面からはみ出さないよう文字サイズを自動調整 */
  .header-title {
    font-size: 1.8rem;
  }

  /* YouTubeが画面を突き破らないように横幅をフィットさせる */
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 動画の比率を維持 */
  }

  /* 横幅1000px固定の要素を画面幅に合わせる */
  .wbc {
    width: 100%;
    height: auto;
  }

  /* ナビゲーションのリンクが重ならないよう調整 */
  nav a {
    display: inline-block;
    margin-bottom: 5px;
  }
}
