
#footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
  }
  
  #footer-ad .ad-content {
    position: relative;
    width: 100%;
    text-align: center;
  }
  #footer-ad .ad-content div{
    position: relative !important;
  }
  .ma-close-button-accessory{
    display: none !important;
  }
  #footer-ad .ad-content div iframe{
   /*transform: none !important;*/
  }
  
  #footer-ad .close-btn {
    position: absolute;
    top: -25px;
    right: 5px;
    background: none;
    color: #000;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
  }
  
  #footer-ad .close-btn:hover {
    color: #ff6b6b;
  }
  
  #footer-ad .ad-placeholder {
    margin-top: 10px;
    background: rgba(0,0,0,0.5);
    font-size: 14px;
  }
  
  .main__contents__aside{
    overflow: hidden;
  }

  .footer__copyright{
    margin-bottom: 110px;
  }

  @media screen and (min-width: 1001px) {
    .footer__copyright {
        margin-bottom: 70px;
    }
}

  html{
    overflow-x:hidden;
  }

  .ad-sp-header{
    height: 300px;
  }

  .ad-pc-header{
    height: 250px;
  }

iframe.youtube-16-9 {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
}

/* Easy Table of Contents 開閉ボタンのスタイル */
main.articlesDtl #ez-toc-container {
  position: relative !important;
}

main.articlesDtl #ez-toc-container .ez-toc-title {
  position: relative !important;
  margin: 0 !important;
  padding-right: 50px !important;
  text-align: center !important;
  cursor: pointer !important;
}

/* 開閉ボタンの位置調整 - 固定値で黒帯の中に配置 */
main.articlesDtl #ez-toc-container .ez-toc-cssicon-toggle-label,
main.articlesDtl #ez-toc-container .ez-toc-title-toggle {
  position: absolute !important;
  top: 12px !important;
  right: 15px !important;
  transform: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

/* SP版 */
@media screen and (max-width: 1000px) {
  main.articlesDtl #ez-toc-container .ez-toc-cssicon-toggle-label,
  main.articlesDtl #ez-toc-container .ez-toc-title-toggle {
    top: 2px !important;
  }
}

main.articlesDtl #ez-toc-container.ez-toc-visibility-hide-by-default .ez-toc-list {
  display: none !important;
}

/* rakurakuyutabi-tv 用のスタイル */
.wrap #ez-toc-container {
  position: relative !important;
}

.wrap #ez-toc-container .ez-toc-title {
  position: relative !important;
  margin: 0 !important;
  padding-right: 50px !important;
  text-align: center !important;
  cursor: pointer !important;
}

/* 開閉ボタンの位置調整 - 固定値で黒帯の中に配置 */
.wrap #ez-toc-container .ez-toc-cssicon-toggle-label,
.wrap #ez-toc-container .ez-toc-title-toggle {
  position: absolute !important;
  top: 12px !important;
  right: 15px !important;
  transform: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

/* SP版 */
@media screen and (max-width: 1000px) {
  .wrap #ez-toc-container .ez-toc-cssicon-toggle-label,
  .wrap #ez-toc-container .ez-toc-title-toggle {
    top: 2px !important;
  }
}

.wrap #ez-toc-container.ez-toc-visibility-hide-by-default .ez-toc-list {
  display: none !important;
}
