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

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: 30px;
}

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

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

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

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

.link-box {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  margin: 10px 0;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  color: #00adfc;
}

.link-list img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 8px;
}

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

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

@media screen and (max-width: 768px) {
  /* 1. ヘッダー：ロゴとタイトルを縦並び・中央寄せに */
  .header-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 10px;
  }

  .header-title {
    font-size: 1.6rem; /* スマホで見やすいサイズに縮小 */
  }

  /* 2. ナビゲーション：中央寄せにして、リンクの間隔を調整 */
  nav {
    text-align: center;
    padding: 15px 10px;
  }

  nav a {
    display: inline-block;
    margin: 5px 10px;
    font-size: 1rem;
  }

  /* 3. 動画：画面幅いっぱいにフィットさせる */
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 比率を維持 */
  }

  /* 4. リンクボックス：余白をスマホ用に最適化 */
  .link-box {
    padding: 20px 15px;
  }

  .link-list a {
    font-size: 1.1rem; /* 文字がはみ出さないよう微調整 */
  }
}
