/* ---------------------------------------------
PC表示時：本文とサイドバーを横並び（75:25）＆高さ揃え
---------------------------------------------- */
@media screen and (min-width: 1024px) {
  #body-in {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  #main {
    width: 75%;
    box-sizing: border-box;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #sidebar {
    width: 25%;
    box-sizing: border-box;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: block;
    visibility: visible;
    opacity: 1;
  }
}

/* ---------------------------------------------
スマホ・タブレット時：1カラム縦並び＆上下余白ゼロ
---------------------------------------------- */
@media screen and (max-width: 1023px) {
  #body-in {
    display: block !important;
    margin: 0 10px !important;
    width: 100% !important;
  }

  #main,
  #sidebar {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
  }

  #sidebar {
    margin-top: 20px !important;
  }
}

/* ---------------------------------------------
フォーム関連：上下の余白を削除してサイドバーと揃える
---------------------------------------------- */
.wpcf7,
.page .main .wpcf7,
.main .wpcf7,
.main > .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ---------------------------------------------
本文のアイキャッチ画像：中央揃え・最大幅調整
---------------------------------------------- */
body.home .featured-image,
body.front-page .entry-content > .featured-image {
  max-width: 100%;
  margin: 0 auto 24px auto;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}

body.home .featured-image img,
body.front-page .entry-content > .featured-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

/* ---------------------------------------------
PC表示：本文とアイキャッチ画像の上下余白調整
---------------------------------------------- */
#main .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ---------------------------------------------
スマホ表示：フッターリンクを縦並びにする
---------------------------------------------- */
@media screen and (max-width: 767px) {
  .footer-bottom .footer-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-bottom .footer-menu li {
    display: block;
    margin: 0;
  }

  .footer-bottom .footer-menu li a {
    display: block;
    padding: 8px 0;
    text-align: center;
  }
}
