body {
  background-color: #f5e6ca; /* ページ全体の背景色 */
  color: #333; /* テキストの色 */
  margin: 0;
  padding: 0;
  font-weight: 400;
}
header,
footer {
  background-color: #b30000; /* メインカラーをレッドに変更 */
  font-family: "MS Gothic", sans-serif; /* ゴシック体に変更 */
  color: #fff;
  padding: 20px;
  text-align: center;
}
nav {
  margin-top: 20px;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  font-size: 17px;
}
a {
  text-decoration: none;
  color: #1558d6;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1920px; /*最大幅を設定 */
  margin: 20px auto 0;
  padding: 0 20px;
  display: flex; /* レイアウトを調整するためにフレックスボックスを使用 */
  justify-content: space-between; /* 要素間を均等に配置 */
  align-items: flex-start; /* 縦方向は上寄せ */
}
main {
  flex: 6; /* メインエリアの幅を6に */
}
aside {
  margin: 0 20px;
}
aside:first-of-type,
aside:last-of-type {
  flex: 2; /* サイドエリアの幅を2.5に */
}
main {
  margin-right: 0; /* メインエリアの右余白を削除 */
}
.post {
  background-color: #fff; /* 記事の背景色 */
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden; /* コンテンツがはみ出さないように */
  padding: 20px;
}
.post iframe {
  width: 100%; /* 幅を100%に */
}
/* ハンバーガーメニュー */
.menu-icon {
  display: none; /* デフォルトは非表示 */
  cursor: pointer;
  margin-top: 5px;
}
.menu-icon div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0 0 auto;
}
.menu-icon:hover div {
  background-color: #fff;
}
.menu-icon.active div {
  /* ハンバーガーメニューがアクティブ時はクロスに変更 */
  background-color: #fff;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin: -3px 0 0 auto;
}
.menu-icon.active div:nth-child(2) {
  opacity: 0;
}
.menu-icon.active div:nth-child(3) {
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
h2 {
  text-align: center;
}
footer {
  padding-bottom: 20px;
  font-family: "MS Gothic", sans-serif; /* ゴシック体に変更 */
  text-align: center; /* フッター内のテキストを中央揃え */
}
.sns {
  margin-top: 20px;
}
.sponsor-link {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}
.copyright {
  font-size: 12px;
  margin-top: 10px;
}
.ds_f {
  display: flex;
}
.profile_photo {
  margin-left: 20px;
}
.youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.youtube iframe {
  width: 100%;
  height: 100%;
}
/* レスポンシブデザイン */
@media (max-width: 768px) {
  h1 {
    margin: 0;
  }
  .container {
    flex-direction: column; /* レイアウトを縦方向に変更 */
    padding: 0 10px;
  }
  nav {
    display: none; /* メニューを非表示 */
  }
  .menu-icon {
    display: block; /* ハンバーガーメニューを表示 */
  }
  .menu-icon.active + nav {
    display: block; /* アクティブ時にメニューを表示 */
  }
  .ds_f {
    display: block;
  }
  aside,
  main,
  aside:last-of-type {
    width: 100%; /* レスポンシブビューでは幅を100%に */
    margin-right: 0; /* 余白を削除 */
  }
  aside {
    margin: 0;
  }
  .sns {
    margin-top: 0px;
  }
  .profile_photo {
    margin: 0 auto;
    text-align: center;
  }

  body {
    flex-direction: column;
  }

  main {
    order: -1; /* mainを最初に表示 */
  }

  .profile h3 {
    text-align: center;
  }
}
