/*
Theme Name: Newsup Child
Template: newsup
*/


/* メインコンテナのグリッ定 */

body{
    font-family:'BIZ UDPゴシック',-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
}

.wrapper{
    display: flex;
    height: 100vh;
}
  .mg-menu-sidebar {
    position: fixed;
    width: 26%;
    background-color: #ffffff;
    padding: 16px 12px 26px 44px ;
    font-weight: 700;
    height: 100%;
    min-height: 100vh;
  }
  
  #content {
    position: absolute;
    top: 40px;
    right: 1%;
    width: 72%;
    height: 100%;
    padding: 0;
  }

  .home #content{
    display: flex;
    justify-content: center;  /* 左右中央 */
    align-items: center; 
  }
  .home #content .site-branding-text {
    margin: auto;
    margin-bottom: 100px;
  }
  .mg-headwidget .site-title a{
    font-size: 2rem!important;
    text-decoration: none;
  }

  .up-side{
    font-size: 1.2rem;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: baseline;
    height: 55vh;
  }
  #content .site-title a{
    text-decoration: none;
  }
  #content .site-description {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
  }
  .footer {
    display: none;
  }

  .site-title{
    white-space: nowrap;
    font-weight: 700;
    font-family: 'BIZ UDPゴシック','Montserrat', sans-serif;
  }

  .mg-headwidget{
    margin-bottom: 44px;
  }
  .mg-headwidget .site-description{
    display: none;
  }

  .mg-blog-post-box{
    border: 2px solid black;

  }

  .bottom-side{
    position: absolute;
    bottom: 10px;
  }

  .searchbox{
    padding: 4px 6px 4px 6px;
    max-width: 350px;
    width: 100%;

  }
  .searchbox input{
    border: 2px solid #5a5a5a;
    border-radius: 7px !important;
    margin-right: 4px;
    height: 40px;
  }
  .searchbox button{
    background: none;
    border: 2px solid #5a5a5a;
    border-radius: 7px;
    color: #000000;
    font-weight: 500;
    box-shadow:none;
  }

  .menu-item-object-category > a::before {
    content: '\25B6'; /* 三角のアイコン */
    font-size: 14px;
    margin-left: 5px;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.menu-item-object-category{
  line-height: 1.8;
}
.menu-item-has-children.open > a::before {
    transform: rotate(90deg); /* クリックで三角が回転 */
}


.menu-item-has-children {

}
.menu-item-object-category > a{

}

.sub-menu {
    display: none; /* 初期状態では非表示 */
    padding-left: 20px!important;
    font-size: 1.1rem;
    line-height: 1.6;
}


.main-navigation .sub-menu a{
    text-decoration: underline;
}

.menu-item-has-children.open .sub-menu {
    display: block; /* open クラスがついたときに表示 */
}

.main-navigation ul, .main-navigation li{
    list-style: none; /* ドットマーク（リストのマーカー）を消す */
    padding-left: 0;  /* 左側の余白も調整 */
}

.main-navigation a{
    color: inherit;
    text-decoration: none;
}
.menu-item > a:focus,
.menu-item > a:active {
    outline: none; /* フォーカス時の枠線を非表示 */
    border: none;  /* クリック時の枠線を非表示 */
}

.sidebar #menu-main_navi .home{
  display: none;
} 

.sm-content{
  display: none;
}

.sm-tl{
  padding-top: 15px;
  padding-bottom: 30px;
  text-align: center;
}

.sm-tl .site-title h1{
  font-size: 20px;
  text-align: center;

}

.mg-breadcrumb-section {
  display: none;

}

.full-height {
  min-height: 90vh; /* ビューポート全体の高さ */
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.3;
}
.footer-bt{
  display: none;
}

input[type="submit"]:hover, input[type="reset"]:hover, button:hover, input[type="submit"]:focus, input[type="reset"]:focus, button:focus {
  background: #000000 !important;
  border-color: #000000!important;
  color: #fff!important;
}
.footer-bt{
  z-index: 100;
}

.row .mg-posts-sec {
  margin: 0 0 10px 0;

}

.search .container-fluid ,.archive .container-fluid{
  background-color: white;
}
.search .mg-footer-bottom-area .container-fluid{
  background-color: unset;
}

.search .mg-posts-sec-inner ,.archive .mg-posts-sec-inner{
  display: flex;
  flex-wrap: wrap;     
}

.search .mg-posts-sec-inner div ,.archive .mg-posts-sec-inner div{
  padding: 0; 
  max-width: 100%;
}

.search .mg-posts-sec-post ,.archive .mg-posts-sec-post{
  max-width: calc(50% - 100px);
  flex: 1 1 calc(50% - 100px); /* 幅を2列分の50%にする (gap考慮) */
  box-sizing: border-box;   /* パディングやボーダーを幅に含める */
  text-align: center;       /* 中央揃え (任意) */
  border:none;
  box-shadow:none;
  margin: 0 50px;
  flex-direction: column; /* 要素を縦方向に並べる */
  align-items: center; 
}

.search .mg-posts-sec-post .mg-post-thumb.md,.archive .mg-posts-sec-post .mg-post-thumb.md {
  aspect-ratio: 3 / 2;
  height: auto;
}

.search .mg-posts-sec-post .mg-blog-category ,.archive .mg-posts-sec-post .mg-blog-category ,.search .mg-posts-sec-post .mg-blog-meta ,.archive .mg-posts-sec-post .mg-blog-meta,.search .mg-posts-sec-post .mg-content ,.archive .mg-posts-sec-post .mg-content{
  display: none;
}  

.archive .mg-posts-sec{
  background-color: white;
}

.archive #content h1{
  padding-top: 10px;
  padding-left: 20px;
}

.search .mg-card-box {
  box-shadow: none;
}

.no-thum{
  background-image: url(https://jay-blue.com/wp-content/uploads/2024/11/no-image.jpg);
}
.post-form{
  display: none;
}




/* スマホとタブレット用メディアクエリ */
@media only screen and (min-width: 540px) and (max-width: 810px) {
    .home .site-branding-text .site-title a {
      font-size: 3.8rem;
  }

}


@media only screen and (max-width: 1024px) {
  .wrapper{
    display: block;
  }
  #content{
    display: block;
    padding: 0;
    width: 100%;
    top: 0;
    right: 0;
  }
  #content .site-description {
    font-size: 1rem;
  }

  .home #content .row{
    text-align: center;
    justify-content: center;
    padding-bottom: 120px;

  }
  .home #content .site-branding-text {
    margin-bottom: 0;
  }

  .home #content .searchbox .input-group{
    display: block;
  }
  .home .searchbox input{
    margin-bottom: 10px;
  }

  .searchbox{
    margin: auto;
  }

  .container-fluid{
    padding: 0;
    overflow-x: hidden;
  }
  .mg-blog-post-box {
      border: none;
  }

  .sm-content .site-branding-text .site-title a{
    font-size: 2rem !important;
  }

  .sm-content{
    display: block;
    position: fixed;
    width: 100%;
    z-index: 100;
  }
  .wrapper > .sm-content{
    z-index: 110;
  }

  .content > .container-fluid, #content > .container-fluid, .archive #content > h1{
    margin-top: 112px;
  }

  .mg-nav-widget-area-back {
    display: none;
  }

  .mg-menu-sidebar .searchbox{
    max-width: 220px;
    margin: 0;

  }
  .mg-headwidget{
    margin-bottom: 8px;
  }

  .mg-header h1{
    font-size: 2rem; 
  }
  .mg-menu-sidebar {
    position: fixed;
    top: 10%;
    left: -360px;
    width: auto;
    margin: 0 auto; 
    height: auto;
    min-height: auto;
    background-color: #fff;
    color: #000;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: left 0.3s ease; /* スライドのアニメーション */
    z-index: 1000;
    max-width: 350px;
    font-size: 1.3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    border:2px solid #838383;
    padding: 16px 12px 26px 20px ;
  }
  .up-side{
    padding: 0;
    height: auto;
    max-height: 70vh;
  }
  .sub-menu{
    font-size: 1rem;
  }
  .bottom-side{
    display: none;
  }

  .menu-btn {
    border-radius: 50px;
    position: fixed;
    top: 32px;
    left: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 45px;
    padding: 6px;
    z-index: 1100;
    align-items: center;
    background-color: #000;
  }
  .menu-btn .bar {
    transform-origin: center;
    width: 80%;
    height: 5px;
    background-color: #fff;
    transition: 0.3s ease;
  }
  /* メニューが開いたときのボタンの変化 */
  .menu-btn.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  .menu-btn.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
  /* メニュー項目のスタイル */
  .accordion-content a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #fff;
  }
  .accordion-content a:hover {
    background-color: #555;
  }
  /* メニューが開いたときのスタイル */
  .mg-menu-sidebar.open {
    left: -5px; /* メニューがスライドイン */
    
  }


  .archive #content h1{
    font-size: 1.7rem;
    font-weight: 700;
    background-color: #fff;
    padding: 12px 20px;
    margin-bottom: 0;
  }

  .full-height {
    font-size: 1.5rem !important;
    min-height: 80vh;
  }

  .footer{
    display: block;
    /* */
    /*padding-bottom: 100px;*/
    padding-bottom: 50px;
  }

  .footer-bt {
    margin-top: 10px;
    display: block;
    font-weight: 700;
    position: relative;
    text-align: center;
  }
  .footer-bt ul{
    margin-bottom: 0;
  }
  .footer .site-branding-text{
    width: 100vw;
    text-align: center;
    /*padding: 6px 0;*/
    padding: 50px 0 0 0;
    border-top: 8px solid #fff;
  }
  .footer .mg-footer-bottom-area{
    padding-bottom: 0;
  }
  .footer .site-description-footer{
    display: none;
  }
  footer .overlay {
    padding:0;
  }
  footer .site-title-footer {
    /*font-size: 1.6rem;*/
    
    font-size: 1.4rem;
  }
  .mg-blog-post-box {
    padding: 0 8px;
    margin-bottom: 10px;
  }

  .home .footer-bt{
      z-index: 100;
      position: absolute;
      /*bottom: 3.5rem;*/
      bottom: 137px;
      width: -webkit-fill-available;

  }

  .home .footer{
      position: absolute;
      /*bottom: 0;*/
      bottom:0px;
  }

  .home #content .footer .row,
  .archive #content .footer .row {
      padding-bottom: 0;
  }

  .home .searchbox,
  .archive .searchbox {
      max-width: 300px;
  }

  .sm-tl .site-description{
    margin-bottom: 0;
  }
  .content .mg-card-box {
    padding: 20px 80px;
  }

  .archive .container-fluid{
    background-color: unset;
  }


}


@media only screen and (min-width: 1025px) and (max-width: 1320px) {
  .mg-menu-sidebar .site-branding-text .site-title a {
    font-size: 1.7rem!important;
  }
  .mg-menu-sidebar {
  padding: 16px 12px 26px 24px;
  }
}

@media only screen and (max-width: 539px) {
  .menu-btn {
    left: 8px;
   /* width: 40px;
    height: 40px;*/
  }
/*
  .menu-btn .bar {
    height: 4px;
  }

  .menu-btn.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .menu-btn.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }*/
  .mg-blog-post-box .mg-header h1 {
    font-size: 2rem;
  }
  .content .mg-card-box {
    padding: 20px 50px;
  }
  .search .mg-posts-sec-post .py-3 ,.archive .mg-posts-sec-post .py-3 {
    padding-top: 0!important;
    padding-bottom: 0!important;
  } 
  .search .mg-posts-sec-post .mg-post-thumb.md,.archive .mg-posts-sec-post .mg-post-thumb.md {
    aspect-ratio: 5 / 4;
  }

  .search .mg-posts-sec-post ,.archive .mg-posts-sec-post{
    padding: 10px 0;
    max-width: calc(50% - 40px);
    flex: 1 1 calc(50% - 40px);
    margin: 0 20px;
  }

  .search .mg-posts-modul-6 .mg-sec-top-post .title ,.archive .mg-posts-modul-6 .mg-sec-top-post .title{
    font-size: 1.2rem;
    line-height: 28px;
  }
}

