/* すべての要素に box-sizing: border-box を適用 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fcf9e16d;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 見出し（h1）のスタイル */
h1 {
  font-size: 1.4em;
  padding: 10px 30px 10px 10px;
  border: 2px solid #333;
  border-radius: 15px;
  background-color: #f9f9f9;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  /* 横並びにするが、要素の幅に合わせる */
  align-items: center;
  /* 画像とテキストの縦方向中央揃え */
  max-width: fit-content;
  /* テキストと画像の幅に合わせる */
  margin: 20px auto 10px;
  /* 中央寄せ */
}

h1 .logo {
  width: 70px;
  /* 画像の幅を調整 */
  height: auto;
  /* 高さは自動調整 */
  margin-right: 15px;
  /* 画像とテキストの間に余白を設定 */
}

h1 .text {
  display: flex;
  flex-direction: column;
  /* テキストを縦に並べる */
  justify-content: center;
  /* テキストを縦方向の中央に配置 */
}

h1 .small-text {
  font-size: 0.8em;
  /* 必要に応じて調整 */
  color: #666;
  /* 任意のテキストカラー */
}

h2 {
  color: #444;
  text-align: center;
  margin: 20px 0;
}


p {
  line-height: 1.7;
  margin-bottom: 30px;
}

a {
  color: var(--link-text-color);
}

a:hover {
  color: blue;
  /* マウスオーバー時の色を青（または希望の色）に設定 */
  text-decoration: none;
}

.no-underline {
  text-decoration: none;
  /* 下線を消去 */
}

.small-text {
  font-size: 0.7em;
}

.right-small {
  font-size: 0.7em;
  align-self: flex-end;
  /* フレックスボックスで右寄せ */
  text-align: right;
  margin: 10px 20px;
}

/* 一般的なボタンのスタイル */
button {
  display: block;
  /* ボタンを縦に並べる */
  margin: 10px auto;
  max-width: 300px;
  width: 100%;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  transition: background-color 0.3s;
}

/* 動画ダウンロードボタンのスタイル */
.download-button-v {
  background-color: #520459;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* ホバー時のスタイル */
.download-button-v:hover {
  background-color: #520459b2;
}

/* 楽曲ダウンロードボタンのスタイル */
.download-button {
  background-color: #5a6268;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* ホバー時のスタイル */
.download-button:hover {
  background-color: #aaaeb3;
}

/* ボタンのスタイル */
.play-button {
  background-color: #007BFF;
  /* ブルー */
  color: white;
  transition: background-color 0.3s;
  /* スムーズな色の変化 */
}

/* 再生ボタンのホバー時の色 (より淡い青) */
.play-button:hover {
  background-color: #3399ffbc;
  /* 淡いブルー */
}

.play-button.stop {
  background-color: #FF0000;
  /* 赤 */
}

/* 停止ボタンのホバー時の色 (より淡い赤) */
.play-button.stop:hover {
  background-color: #ec4141dc;
  /* 淡い赤 */
}

.lyrics-button {
  background-color: #28A745;
  /* 緑 */
  color: white;
  transition: background-color 0.3s;
  /* スムーズな色の変化 */
}

/* 歌詞ボタンのホバー時の色 (より淡い緑) */
.lyrics-button:hover {
  background-color: #5ec75ee6;
  /* 淡い緑 */
}

.lyrics-button.close {
  background-color: #FFC107;
  /* 黄色 */
}

/* 歌詞を閉じるボタンのホバー時の色 (より淡い黄色) */
.lyrics-button.close:hover {
  background-color: #ffde67e6;
  /* 淡い黄色 */
}

/* 歌詞表示部分のスタイル */
.lyrics {
  display: none;
  background-color: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  margin: 20px 150px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 音楽プレイヤーのスタイル */
audio {
  display: block;
  margin: 0 auto;
  width: 60%;
}

/* 動画プレイヤーのスタイル */
video {
  display: block;
  margin: 0 auto 30px auto;
  width: 100%;
}

/* 全体を中央揃えにする */
.theme-song-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

/* h3タグのスタイル */
.theme-song-list h3 {
  font-size: 1.2em;
  padding: 10px 30px 10px 20px;
  border: 2px solid #333;
  border-radius: 15px;
  background-color: #f9f9f9;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  margin: 20px 0 10px 0;
  display: inline-block;
  text-align: center;
}

/* リスト全体を中央揃えにする */
.left-align-list {
  list-style: none;
  padding-left: 0;
  width: 50%;
  /* リスト全体の幅を調整 */
  max-width: 500px;
  /* 必要に応じて最大幅を設定 */
  text-align: left;
  /* リスト内の項目を左揃えに */
}

/* リスト項目のスタイル */
.left-align-list li {
  font-size: 1em;
  color: #666;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

/* 最後のリスト項目のボーダーを削除 */
.left-align-list li:last-child {
  border-bottom: none;
}

/* フッターのスタイル */
#footer-placeholder {
  width: 100%;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: auto;
  display: block;
  /* 幅100%を確実に適用 */
}

footer a {
  color: inherit;
  /* 通常時はフッターの文字色を引き継ぐ */
  text-decoration: none;
  /* アンダーラインを消す */
  transition: color 0.3s;
  /* 色がスムーズに変わるように設定 */
}

footer a:hover {
  color: #007BFF;
  /* ホバー時に青色に変える */
}

/* 追尾型広告の基本スタイル */
#scroll-ad {
  position: fixed;
  right: 5px;
  bottom: -150px;
  /* 初期位置（画面外） */
  width: 130px;
  transition: bottom 0.5s ease;
  /* アニメーション */
}

#scroll-ad img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* メディアクエリ: スマートフォン用 */
@media (max-width: 768px) {

  /* bodyのマージンをリセット */
  body {
    margin: 0;
  }

  /* コンテンツ全体にマージンを適用 */
  .container {
    margin: 0 20px;
  }

  h1 {
    max-width: 90%;
    /* 画面幅の90%に制限 */
    margin: 20px auto;
    /* 両サイドに自動で余白を追加 */
    padding: 10px 15px 10px 2px;
    /* スマホ向けにパディングを調整 */
    font-size: 1.1em;
  }

  h2 {
    font-size: 1.2em;
  }

  /* リスト全体を中央揃えにする */
  .left-align-list {
    width: 80%;
  }

  /* ボタンの幅とパディングを調整 */
  button {
    max-width: 250px;
    width: 100%;
    font-size: 1em;
  }

  /* 歌詞表示部分のスタイル */
  .lyrics {
    padding: 10px 20px;
    margin: 20px;
    font-size: 14px;
  }

  /* 音楽プレイヤーのスタイル */
  audio {
    width: 100%;
    /* 音楽プレイヤーの幅を100%に */
  }

  /* 動画プレイヤーのスタイル */
  video {
    width: 100%;
    /* 動画プレイヤーの幅を100%に */
    margin: 10px auto 25px auto;
  }

}