@media screen and (max-width: 991px) {
  .navbar-toggler {
    position: absolute !important;
    left: 15px !important;
    right: auto !important;
    top: 50%;
    transform: translateY(-50%) !important; /* 縦位置だけ中央維持、横の中央寄せを解除 */
    margin: 0 !important;
  }
}

/* ハンバーガーメニューが開いたら×アイコンに切り替える */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
}

/* ×アイコンに切り替え時、少し回転させて滑らかに見せる（お好みで） */
.navbar-toggler-icon {
  transition: transform 0.2s ease-in-out;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  transform: rotate(90deg);
}



/* 現在地メニュー項目の四角い枠（フォーカスリング）を消す */
.navbar.navbar-dark .nav .menu-item .nav-link,
.navbar.navbar-dark .nav .menu-item .nav-link:focus,
.navbar.navbar-dark .nav .menu-item .nav-link:focus-visible,
.navbar.navbar-dark .nav .menu-item .nav-link:active,
.navbar.navbar-dark .nav .menu-item.active .nav-link,
.navbar.navbar-dark .nav .menu-item.active .nav-link:focus,
.navbar.navbar-dark .nav .menu-item.active .nav-link:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.single.custom-background {
  background-image: none !important;
  background-color: #ffffff !important;
}


.single .mg-blog-post-box,
.single article.post,
.single .entry-content {
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
}


/* タブレット（991px以下） */
@media (max-width: 991px) {
  .navbar-brand img,
  .site-logo img,
  .custom-logo {
    max-width: 150px !important;
    height: auto !important;
  }
}

/* スマートフォン（575px以下） */
@media (max-width: 575px) {
  .navbar-brand img,
  .site-logo img,
  .custom-logo {
    max-width: 100px !important;
    height: auto !important;
  }
}


.single .mg-blog-post-box,
.single .mg-blog-post-box p,
.single .mg-blog-post-box li,
.single .mg-blog-post-box h1,
.single .mg-blog-post-box h2,
.single .mg-blog-post-box h3,
.single .mg-blog-post-box h4,
.single .mg-blog-post-box h5,
.single .mg-blog-post-box h6,
.single .mg-blog-post-box blockquote,
.single .mg-blog-post-box td,
.single .mg-blog-post-box th,
.single .entry-content,
.single .entry-content p,
.single .entry-content li {
  color: #333333 !important;
}


body.single h1 { color: red !important; }

/* PC表示：サイドバー枠をなくし、記事を中央に配置 */
@media (min-width: 992px) {
  .single main#content .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .single main#content aside {
    display: none;
  }
  .single .mg-blog-post-box {
    max-width: 900px;   /* 記事の横幅。お好みで800〜1000px */
    margin-left: auto;
    margin-right: auto;
  }
}

/* アイキャッチ画像と本文中の画像を記事幅に合わせる */
.single .mg-blog-post-box img {
  max-width: 100%;
  height: auto;
}

/* 本文の文字サイズと行間 */
.single .mg-blog-post-box p,
.single .mg-blog-post-box li {
  font-size: 18px;
  line-height: 1.8;
}

/* スマホでは少し小さめに */
@media (max-width: 575px) {
  .single .mg-blog-post-box p,
  .single .mg-blog-post-box li {
    font-size: 16px;
  }
}


@media (max-width: 991px) {
  /* ラベルと流れる文字を横並びにする */
  .trending-news-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  /* ラベルを小さくして幅を確保 */
  .trending-news-col .news-highlights-title {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  .trending-news-col .news-highlights-title h5 {
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  /* 流れる部分を1行に固定 */
  .trending-news-col .news-marquee-wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .trending-news-col .news-headline-post-content,
  .trending-news-col .news-headline-post-content a,
  .trending-news-col .news-headline-post-title {
    white-space: nowrap !important;
  }
  .trending-news-col .news-headline-post-title {
    margin: 0 !important;
  }
}
@media (max-width: 991px) {
  /* IN CASE YOU MISSED THESE を TRENDING NEWS と同じサイズにする */
  .news-section-title {
    display: flex !important;
    align-items: center !important;
  }
  .news-section-title h5.f-heading {
    flex: 0 0 auto !important;
    width: auto !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
}


.entry-content .wp-block-image,
.entry-content .wp-block-image figure {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  float: none;
}
.entry-content .wp-block-image img {
  width: 100%;
  height: auto;
}
.entry-content .wp-block-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}