@charset "UTF-8";

/* グローバルメニュー */
header #global{
  width: 100%;
}
header #global #global-menu {
  position: relative;
  color: #345F9F;
  display: flex;
}
@media screen and (min-width: 769px) {
  header #global #global-menu {
    margin-top: 10px;
  }
}
header #global #global-menu .menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 36px;
  vertical-align: middle;
  cursor: pointer;
  text-align: center;
  font-size: 1.5rem;
  width: 50%;
  font-weight: bold;
}
@media screen and (min-width: 769px) {
  header #global #global-menu .menu-item {
    height: 45px;
    font-size: 1.8rem;
  }
}
.header_small #global #global-menu .menu-item {
  height: 38px;
  vertical-align: middle;
  cursor: pointer;
  text-align: center;
  font-size: 1.5rem;
  width: 50%;
  font-weight: bold;
}
header #global #global-menu .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
header #global #global-menu .menu-item:hover{
  transition : 0.5s;
}
header #global #global-menu .menu-item:first-child {
  background: #DEE4F5;
}
header #global #global-menu .menu-item:first-child:hover{
  background-color: #ebeef9;
}
header #global #global-menu .menu-item:last-child {
  background: #FFEEB2;
}
header #global #global-menu .menu-item:last-child:hover{
  background-color: #fff6d8;
}
header #global #global-menu .menu-item > a > img {
  height: 34px;
  margin-right: 6px;
}
@media screen and (min-width: 769px) {
  header #global #global-menu .menu-item > a > img {
    height: 31px;
  }
}
@media screen and (min-width: 769px) {
  header #global #global-menu .menu-item > a > img {
    height: 41px;
    margin-right: 11px;
  }
  header.header_new {
    padding: 10px 0 0;
  }
}

/**/
header #global #global-menu .menu-item .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  color: black;
  width: 100%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
header #global #global-menu .menu-item .sub-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
}
header #global #global-menu .menu-item .sub-menu li {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  width: calc(50% - 20px);
}
header #global #global-menu .menu-item .sub-menu li img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
header #global #global-menu .menu-item .sub-menu li a {
  text-decoration: none;
  color: black;
}
header #global #global-menu .menu-item:hover .sub-menu,
header #global #global-menu .menu-item:focus-within .sub-menu {
  display: block;
}
@media (max-width: 767px) {
  header #global #global-menu .menu-item{ display: block; }
  header #global #global-menu .menu-item .sub-menu { position: static; display: none; }
  header #global #global-menu .menu-item:focus-within .sub-menu { display: block; }
}
/*1400px以上のサイドバーの位置*/
@media screen and (min-width:1400px){
  .sidebar-ad {
      top: 175px;
  }
}
@media screen and (min-width: 769px) {
    body {
        padding-top: 153px;
    }
}
/*ヘッダー右上の電話番号箇所*/
/*@media screen and (min-width:768px){*/
/*    a[href^="tel:"]{*/
/*        pointer-events: none;*/
/*    }*/
/*}*/
#header__phone{
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#header__phone--sp{
  max-width: 140px;
}
@media screen and (max-width: 360px) {
  #header__phone--sp{
    max-width: 120px;
  }
}
@media screen and (min-width: 400px) {
  #header__phone--sp{
    max-width: 160px;
  }
}
@media screen and (max-width: 767px) {
  #header__phone{
    display: none;
  }
}
@media screen and (min-width: 768px) {
  #header__phone--sp{
    display: none;
  }
}
.header__phone--hidden {
  /*opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;*/
  /* クリックを無効にする */
}
.header__phone--none {
  /*display: none !important;*/
  max-width: 180px;
}
/*その他スクロール時の処理*/
.header_logo.logo_new img {
    transition: width 0.5s ease;
}
@media screen and (min-width: 769px) {
    header.header_new {
        transition: padding 0.5s ease;
    }
    header #global #global-menu {
        transition: margin-top 0.5s ease;
    }
    header #global #global-menu .menu-item > a > img {
        transition: height 0.5s ease;
    }
}
/* スクロール時に適用するスタイル */
.header_small .header_logo.logo_new img {
  width: 120px;
}

@media screen and (min-width: 769px) {
    .header_small .header_logo.logo_new img {
      width: 190px;
    }
    .header_small {
        padding: 5px 0 0;
    }

    .header_small #global #global-menu {
        margin-top: 5px;
    }

    .header_small #global #global-menu .menu-item > a > img {
        height: 30px;
    }
}

.page_main{
    margin-top: 42px;
}
@media screen and (min-width: 769px) {
    .page_main {
        margin-top: 22px;
        margin-right: 0;
        margin-left: 0;
    }
}
.header_nav .header_btn_main li.parent:hover:before{
  z-index: 9999;  
}
.parent_child{
  z-index: 9998;
}
