/* ヘッダーロゴ */
.el_header-logo{
  max-width: 230px;
  width: 100%;
  padding-top: 10px;
}
.el_header-logo__link:hover{
  opacity: .5;
}
/* メニューボタン */
.el_header-button{
  position: relative;
  display: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.el_header-button-line{
  width: 24px;
  height: 3px;
  background: var(--primary-700);
  display: block;
  position: absolute;
  left: 13px;
  transition: all 0.3s ease 0s;
  transform: rotate(0deg);
}
.el_header-button-line:first-of-type{
  top: 15px;
}
.el_header-button-line:nth-of-type(2){
  top: 24px;
}
.el_header-button-line:last-of-type{
  top: 33px;
}
.el_header-button.js_active .el_header-button-line:first-of-type{
  transform: rotate(-45deg);
  transform-origin: center center;
  top: 23px;
}
.el_header-button.js_active .el_header-button-line:nth-of-type(2){
  display: none;
}
.el_header-button.js_active .el_header-button-line:last-of-type{
  transform: rotate(45deg);
  transform-origin: center center;
  top: 23px;
}
/* サイドメニュー */
.m_side-menu{
  position: fixed;
  z-index: var(--z-index-hamburger-menu);
  display: none;
  width: 100%;
  background: #fff;
  left: 0;
  top: 0;
  height: auto;
  margin-top: 0;
  padding: 110px 10px 20px;
  height: 100vh;
  overflow-y: scroll;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.3);
}
.m_side-menu__item{
  position: relative;
  border-bottom: 2px solid var(--gray-line-300);
}
.m_side-menu__item:last-of-type{
  border-bottom: none;
}
.m_side-menu__link{
  position: relative;
  display: block;
  font-weight: bold;
  margin-bottom: 0;
  padding: 15px 20px;
  text-align: left;
  width: 100%;
}
.m_side-menu__link:after{
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  width: 13px;
  height: 15px;
  mask: url(/asset/image/new_design/icon_cta-arrow-white.svg) no-repeat center / contain;
  -webkit-mask: url(/asset/image/new_design/icon_cta-arrow-white.svg) no-repeat center / contain;
  background-color: var(--primary-700);
}
.m_side-menu__link:hover:after{
  transform: translateY(-50%) translateX(5px);
}

.ly_side-menu-cta{
  margin: 15px auto 0;
}
/* SPサブメニュー */
.m_side-menu__submenu{
  display: none;
}
.m_side-menu__link.js_side-submenu:after{
  content: "";
  position: absolute;
  display: block;
  width: 14px;
  height: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 10px;
  mask: url(/asset/image/new_design/icon_arrow-kunoji_100-65.svg) no-repeat center / contain;
  -webkit-mask: url(/asset/image/new_design/icon_arrow-kunoji_100-65.svg) no-repeat center / contain;
  background-color: var(--primary-700);
  transition: all .3s;
}
.m_side-menu__link.js_side-submenu.js_side-submenu--active:after{
  transform: translateY(-50%) rotate(-180deg);
}
.m_side-menu__submenu li{
  padding-left: 1em;
}
.m_side-menu__submenu li:last-of-type{
  padding-bottom: 10px;
}
.m_side-menu__sublist a{
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-feature-settings: "palt";
  line-height: 2;
}
.m_side-menu__sublist .m_side-menu__subitem{
  padding-left: calc(1em + 20px);
}
.m_side-menu__sublist a:before{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  width: 8px;
  height: 1px;
  border: solid 1px var(--sub-500);
}

/* header */
.ly_header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: var(--z-index-header);
  transition: box-shadow 0.3s;
}
body:not(.top) .ly_header{
  border-bottom: 1px solid var(--gray-line-300);
}
body:not(.top) .ly_header.js_header-active{
  border-bottom: none;
} 
.ly_header.js_header-active{
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
}
.m_header{
  display: grid;
  grid-template: "logo upper" auto "logo nav" auto;
  padding: 0 25px 10px;
}
.m_header-logo{
  grid-area: logo;
  align-self: center;
}
.m_header__link{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 15px;
  grid-area: nav;
}
.m_header__menu{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 25px;
  padding-right: 15px;
}
.m_header__menu-item{
  position: relative;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.8;
}
.m_header__menu-item:after{
  opacity: 0;
  position: absolute;
  content: "";
  display: block;
  background-color: var(--primary-700);
  width: 30px;
  height: 3px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  transition: all .3s;
}
.m_header__menu-link{
  transition: .3s;
}
.m_header__menu-link:hover{
  opacity: .5;
}
.m_header__menu-item:hover:after{
  opacity: 1;
}
.m_header__menu-item.m_header__menu-item--sub:hover:after{
  opacity: 0;
}
/* upper メニュー */
.m_header-upper{
  padding: 5px 5px 5px 25px;
  grid-area: upper;
}
/* 電話番号 */
.m_header-upper__tel{
  font-size: 12px;
  color: var(--gray-font-line-500);
  font-weight: bold;
  font-feature-settings: "palt";
}
.m_header-upper__tel-link.m_header-upper__tel-link--sp{
  display: none;
}
.m_header-upper__tel-link{
  position: relative;
  font-size: 11px;
  font-weight: normal;
  background-color: var(--emphases-200);
  border-radius: 2px;
  border: 1px solid var(--emphases-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 15px 4px 40px;
  line-height: 1.1;
  pointer-events: none;
}
.m_header-upper__tel-link:hover{
  border: 1px solid var(--primary-700);
}
.m_header-upper__tel-link:before{
  position: absolute;
  content: "";
  display: block;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background: url(/asset/image/new_design/icon_tel_100-100.svg) no-repeat no-repeat center center;
  background-size: contain;
  transition: all .3s;
}
.m_header-upper__tel-number{
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-700);
}
.m_header-upper__list{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 30px;
}
.m_header-upper__list li{
  position: relative;
}
.m_header-upper__list li:after{
  position: absolute;
  content: "";
  width: 1px;
  height: 13px;
  background-color: var(--gray-line-300);
  display: block;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
}
.m_header-upper__list li:last-of-type::after{
  display: none;
}
.m_header-upper__link{
  color: var(--gray-font-line-500);
  font-size: 12px;
  font-weight: bold;
}
.m_header-upper__link:hover{
  border-bottom: 1px solid var(--gray-font-line-500);
}
/* サブメニュー */
.m_header__menu-item--sub{
  position: relative;
}
.m_header__menu-item.m_header__menu-item--sub button::before{
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  width: 10px;
  height: 5px;
  background: url(/asset/image/new_design/icon_arrow-kunoji_100-65.svg) no-repeat no-repeat center center;
  background-size: contain;
  transition: all .3s;
}
.m_header__menu-item.m_header__menu-item--sub:hover button::before
{
  transform: translateY(0%);
}
.m_header__menu-item.m_header__menu-item--sub button.js_header__submenu--active::before{
  transform: rotate(-180deg);
}
.m_header-submenu{
  position: fixed;
  top: 80px;
  left: 0;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  border-top: 2px solid var(--primary-700);
  background-color: #fff;
  padding: 30px 15px;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
  transition: all .3s;
  z-index: var(--z-index-overlay);
  overflow-y: auto;
  max-height: 70vh;
}
.m_header-submenu li{
  margin-bottom: 5px;
  line-height: 1.5;
}
.m_header-submenu__sublist a:hover{
  opacity: 1;
  color: var(--primary-700);
  border-bottom: 1px solid var(--primary-700);
}
.m_header-submenu li:last-child{
  margin-bottom: 0;
}
.m_header-submenu.js_header-submenu--active{
  opacity: 1;
  visibility: visible;
}
.m_header-submenu__wrap{
  display: grid;
  grid-template-columns: minmax(0, 18%) auto;
  max-width: 1400px;
  margin-inline: auto;
}
.m_header-submenu__ttl{
  font-size: var(--fz-m);
  font-weight: bold;
  text-align: right;
  border-right: 1px solid var(--gray-line-300);
  padding-right: 30px;
  line-height: 1.1;
}
.m_header-submenu__list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
  gap: 30px 2.5%;
  padding-left: 30px;
}
.m_header-submenu__link{
  position: relative;
}
.m_header-submenu__link:after{
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  width: 11px;
  height: 13px;
  background: url(/asset/image/new_design/icon_arrow-primary_100-100.svg) no-repeat no-repeat center center;
  background-size: contain;
}
.m_header-submenu__link:hover:after{
  transform: translateY(-50%) translateX(5px);
}
.m_header-submenu__sublist{
  padding-top: 10px;
}
.m_header-submenu__subitem{
  position: relative;
  font-size: 13px;
  font-weight: normal;
  padding-left: 15px;
}
.m_header-submenu__subitem:before{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  width: 7px;
  height: 1px;
  border: solid 1px var(--sub-500);
}
.m_header-submenu__text{
  font-size: 13px;
  color: var(--gray-font-line-500);
  font-weight: normal;
}
.m_overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-index-overlay);
}
.m_overlay.js_overlay--active{
  display: block;
}
/* 1230px 以下 グローバルメニュー調整*/
@media (max-width: 1350px) {
  /* ヘッダー */
  .m_header{
    grid-template: "logo upper" auto "nav nav" auto;
  }
  .m_header .el_header-logo{
    max-width: 150px;
  }
  .m_header__link{
    justify-content: flex-end;
    gap: 0 11px;
  }
  .m_header__menu-link{
    font-size: 11px;
  }
   .m_header__menu-item.m_header__menu-item--sub button::before{
    right: -10px;
  }
  .m_header__menu{
    gap: 0 15px;
    padding-right: 0;
  }
  .m_header__menu-item.m_header__menu-item--sub::before{
    right: -12px;
  }
  .m_header-submenu{
    top: 77px;
  }
  .m_header-submenu__ttl{
    font-size: 20px;
  }
  /* 電話番号 */
  .m_header-upper__tel-number{
    font-size: 12px;
  }
  .m_header-upper__tel-link{
    padding: 4px 5px;
    font-size: 10px;
  }
  .m_header-upper__tel-link:before{
    display: none;
  }
}
@media (max-width: 860px) {
  .m_header__trial-link{
    display: none;
  }
}
@media (max-width: 768px) {
  .m_header .el_header-logo{
    max-width: 120px;
    padding-top: 0;
  }
  /* 電話番号 */
  .m_header-upper__tel-link--pc{
    display: none;
  }
  .m_header-upper__tel-link.m_header-upper__tel-link--sp{
    display: block;
    margin-right: 10px;
    padding: 5px;
    border-radius: 20px;
    pointer-events: initial;
  }
  .m_header-upper__tel-link img{
    width: 20px;
    height: 20px;
  }
  /* メニューボタン */
  .el_header-button{
    display: block;
  }
  .ly_header{
    height: 50px;
  }
  .m_header{
    padding: 0 10px;
    grid-template: "logo nav";
  }
  .m_header__menu{
    display: none;
  }
  .m_header__link{
    gap: 0px;
  }
  .m_header__trial-link-sp{
    margin-top: 10px;
  }
  /* upper メニュー */
  .m_header-upper{
    display: none;
  }
  .m_side-menu{
    padding: 50px 10px 20px;
  }
}