@charset "utf-8";

#header {
  position: fixed;
  top: 0;
  left: 0;
  transition: .5s;
  width: 100%;
  z-index: 9999;
  background: rgba(244,247,248,0.8);
  padding: 0 15px;
  box-shadow: -1px -5px 20px 0px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(53px);
}

.h_main_frame {
  display: flex;
  gap: 0 20px;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  height: 80px;
}

.head_h1 h1 {
  font-size: 12px;
  font-size: 1.2rem;
}

.h_left_area {
  width: fit-content;
  flex: 2;
}
.logo{
  display: block;
  max-width: 330px;
}
.h_right_area{
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}
  
.h_btn01_sub_menu a:hover,.h_btn01_sub_menu .active a {
  color: rgba(85,85,85,0.4);
}
  
@media (any-hover: hover){
  .h_contact a:hover .h_mail{opacity: 0.4;}
  .h_btn01 a:hover .h_icon01{opacity: 0.4;}
  .h_btn01:hover::before {
    opacity: 0.7;
  }
}
@media (any-hover: none){
  .h_contact a:active .h_mail {opacity: 0.4;}
  .h_btn01 a:active .h_icon01{opacity: 0.4;}
  .h_btn01:active::before {
    opacity: 0.7;
  }
}

@media(max-width:1200px){
  .menu {
    gap: 20px !important;
  }
}

@media(max-width:1100px){
  .logo {
    max-width: 190px;
  }
}

/*PCヘッダー*/
@media (min-width : 1061px) {

  .sp_menu {
    display: none;
  } 

  .sp_nav {
    display: none;
  }

  .h_contact {
    width: 60px;
  }
  .h_contact a {
    display: block;
    box-sizing: border-box;
    border: solid #ACACAC;
    border-width: 0 1px;
    height: 100%;
    padding: 2px 0;
  }
  .h_contact a span{
    content: '';
    display: block;
    -webkit-mask-image: url(../img/common/h_mail_icon.svg);
    mask-image: url(../img/common/h_mail_icon.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 20px;
    height: 15px;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: all .3s ease;
    background-color: var(--sub-color);
    margin: 0 auto;
  }
  .h_contact a:hover {
    text-decoration: none;
  }
  
  .menu {
    display: flex;
    gap: 30px;
    padding: 0 20px 0 0;
    margin: 30px 0 0;
  }

  .menu>ul {
    display: flex;
    justify-content: flex-end;
  }

  .menu>li>a {
    display: block;
    position: relative;
    text-decoration: none;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    letter-spacing: 0.05em;
    padding: 0 0 22px;
    letter-spacing: 0.2rem;
    font-weight: 500;
    font-size: 14px;
    font-size: 1.4rem;
    text-transform: capitalize;
  }
  .menu>li>a:before {
    content: '';
    position: absolute;
    bottom: 6px;
    background-color: #D34325;
    transition: 0.3s all;
    width: 35px;
    height: 1px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all .3s ease;
    bottom: 25px;
  }
  .menu>li.menu-item-has-children a{
    margin: 0 15px 0 0;
  }
  .menu>li>a:hover:before, .menu>li.current-menu-item>a:before, .menu>li.current-menu-parent a:before {
    width: 100%;
    opacity: 1;
  }
  .menu>li>a>strong.nav_main {
    display: block;
  }

  .menu>li>a>span.nav_sub {
    display: block;
    font-size: 12px;
    font-size: 1.2rem;
  }

  .menu>li.menu-item-has-children>a:after {
    content: '';
    display: inline-block;
    transform: rotate(135deg);
    width: 6px;
    height: 6px;
    border-top: solid 1px #444444;
    border-right: solid 1px #444444;
    transition: 0.3s all;
    vertical-align: 3px;
    margin: 0px 0 0 6px;
    position: absolute;
    right: -13px;
    top: 8px;
  }

  .menu>li>a:hover:before,
  .menu>li.current-menu-item>a:before,
  .menu>li.current-category-ancestor>a:before,
  .menu>li.current-post-ancestor>a:before,
  .menu>li.current-menu-parent a:before {
    background: #D34325;
  }

  /*プルダウン*/
  .menu-item {
    position: relative;
  }

  .menu-item .sub_menu_wrapper {
    position: absolute;
    width: 400px;
    top: 100%;
    opacity: 0;
    overflow: hidden;
    transition: 0.3s all;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .menu-item:nth-last-child(-n+1) .sub_menu_wrapper {
    left: inherit;
    right: 0;
    transform: none;
  }

  .menu-item:hover .sub_menu_wrapper {
    overflow: visible;
    opacity: 1;
    z-index: 9999;
    pointer-events: inherit;
  }

  .menu-item .sub-menu li a {
    width: 100%;
    display: block;
    margin: 0;
    font-weight: normal;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    padding: 15px 10px !important;
    position: relative;
    text-align: center;
    z-index: 1;
    background: #fff;
    border-top: 1px solid #D34325;
  }

  .menu-item .sub-menu li:last-child a {
    border-bottom: 1px solid #D34325;
  }

  .menu-item .sub-menu li a:hover {
    color: #fff;
    text-decoration: none;
  }

  .menu-item .sub-menu li a:after {
    content: '';
    border-top: 1px solid #D34325; 
    background: #D34325;         
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: all .3s ease;
    opacity: 0;
    z-index: -1;
  }

  .menu-item .sub-menu li a:hover:after {
    transform-origin: center bottom;
    transform: scaleX(1);
    opacity: 1;
  }

  .menu-item .sub-menu li:last-child a:hover:after {
    border-bottom: 1px solid #D34325; 
  }

  .top_page #header.reverse_h:not(.fixed) {
    background: transparent;
    box-shadow: none;
  }

  .top_page #header.reverse_h:not(.fixed) +#wrap {
    margin: 0 auto !important;
  }

  .top_page #header.reverse_h:not(.fixed) .head_h1 h1 {
    color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .logo img {
    filter: brightness(0) invert(1);
  }

  .top_page #header.reverse_h:not(.fixed) .menu>li>a {
    color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .h_hour {
    color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .h_tel_area .h_tel {
    color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .h_tel_area .h_tel_icon::before {
    background-color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .menu>li>a:after {
    background: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .menu>li.menu-item-has-children>a:before {
    border-top-color: #fff;
    border-right-color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .menu>li.current-menu-item>a:after,
  .top_page #header.reverse_h:not(.fixed) .menu>li.current-category-ancestor>a:after,
  .top_page #header.reverse_h:not(.fixed) .menu>li.current-post-ancestor>a:after,
  .top_page #header.reverse_h:not(.fixed) .menu>li.current-menu-parent>a:after {
    background: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .menu-item .sub-menu li a,
  .top_page #header.reverse_h:not(.fixed) .menu-item .sub-menu li:last-child a {
    border: none;
  }

  .top_page #header.reverse_h:not(.fixed) .h_btn01 a {
    color: #fff;
    border-color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .h_btn01 a:hover {
    background-color: #D34325;
    border-color: #D34325;
  }

  .top_page #header.reverse_h:not(.fixed) .h_btn01 a:after {
    background-color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .h_btn01 a:hover:after {
    background-color: #fff;
  }

  .top_page #header.reverse_h:not(.fixed) .h_btn01 a .h_icon01:after {
    background-color: #fff;
  }
}

/* スマホ表示 */
@media (max-width : 1060px) {
  .sp_nav {
    display: none;
  }
  .h_fax_area{
    display: none;
  }
  .sp_nav.sp_nav_on {
    display: block;
  }

  #header {
    padding: 0 0 0 15px;
  }
  .h_main_frame {
    height: 60px;
  }
  .head_h1 {
    display: none;
  }

  .h_right_area {
    display: flex;
    flex-direction: row;
    gap: 5px;
  }

  .h_hour {
    display: none;
  }

  .contact_area {
    margin: 0;
    gap: 5px;
    z-index: 0;
  }
  .h_contact {
    width: 50px;
    height: 50px;
  }
  .h_btn01 {
    width: 50px;
    height: 50px;
    padding: 0;
  }
  .h_btn01.pc_view767 {
    display: none;
  }
  .h_btn01.sp_view767 {
    display: block;
  }
  .h_btn01 a {
    border: 1px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  .h_btn01:hover a {
    height: 100%;
  }
  .sp_menu {
    width: 50px;
    height: 50px;
  }

  .h_contact a {
    display: block;
    height: 100%;
    background: #D34325;
    border: 1px solid #D34325;
  }

  .h_mail {
    display: inline-block;
    text-indent: -9999px;
    padding: 0;
    width: 100%;
    height: 100%;
  }

  .h_mail_icon {
    position: relative;
    z-index: 40;
  }

  .h_mail_icon::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 21px;
    height: 16px;
    -webkit-mask-image: url(../img/common/h_mail_icon.svg);
    mask-image: url(../img/common/h_mail_icon.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% auto;
    mask-size: 100% auto;
    background-color: #fff;
  }

  .pc_nav_off {
    display: none;
  }
  .sub-menu{
    display: none;
  }
  .nav_wrapper {
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    background: #D34325;
    transition: 0.5s;
    overflow-y: scroll;
    padding: 50px 20px 150px;
  }

  .menu li a {
    color: #fff;
  }

  .menu li a:hover {
    text-decoration: none;
  }

  .menu>li {
    position: relative;
    border-bottom: 1px solid #fff;
  }

  .menu>li>a {
    display: inline-block;
    font-size: 18px;
    font-size: 1.8rem;
    padding: 15px 30px 15px 10px;
  }

  .menu>li>a:hover {
    color: #fff;
    text-decoration: none;
  }

  .menu>li>a:after {
    display: none;
  }

  .menu>li.current-menu-item>a {
    color: #fff;
  }

  .menu>li.current-menu-item>a:after {
    display: none;
  }

  .nav_main {
    display: block;
  }

  .sub_menu_wrapper {
    display: none;
  }

  .menu-item .sub-menu li a {
    display: inline-block;
    font-size: 16px;
    font-size: 1.6rem;
    padding: 10px 10px 10px 30px;
  }

  .sub_menu_toggle {
    position: absolute;
    top: 33px;
    right: 10px;
    transform: translateY(-50%);
    display: block;
    width: 30px;
    height: 30px;
    white-space: nowrap;
    z-index: 100;
  }

  .sub_menu_toggle:before {
    display: block;
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transition: .2s;
    transform: translate(-50%, -50%) rotate(135deg);
    -webkit-transform: translate(-50%, -50%) rotate(135deg);
    border: solid #fff;
    border-width: 2px 2px 0 0;
  }
  .sub_menu_toggle.selected:before {
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  }

  .sub_menu_toggle.selected:after {
    background-color: transparent;
  }

  .sp_menu_tigger {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 40;
  }

  .sp_menu_tigger span,
  .sp_menu_tigger span:before,
  .sp_menu_tigger span:after {
    width: 30px;
    height: 2px;
    background-color: #D34325;
    position: relative;
    transition: 0.3s all;
  }

  .sp_menu_tigger span:before,
  .sp_menu_tigger span:after {
    content: '';
    position: absolute;
  }

  .sp_menu_tigger span:before {
    top: 10px;
  }

  .sp_menu_tigger span:after {
    bottom: 10px;
  }

  .sp_menu_area {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0;
    transition: 0.3s all;
  }

  .nav_area {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 30;
    visibility: hidden;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.5s, visibility 0s 0.5s;
    transition: transform 0.5s, visibility 0s 0.5s;
  }

  .nav_area.active {
    visibility: visible;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
  }

  .sp_menu_tigger.open span {
    background: transparent;
  }

  .sp_menu_tigger.open span:before {
    top: 0;
    transform: rotate(-45deg);
    background: #ffff;
  }

  .sp_menu_tigger.open span:after {
    bottom: 0;
    transform: rotate(45deg);
    background: #fff;
  }

  .sp_menu_area.active {
    opacity: 1;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
  }

  #header.scroll .nav_wrapper {
    opacity: 0;
  }
}

@media (max-width : 960px) {
  .head_h1 {
    display: none;
  }
}

@media (max-width: 1060px) {
  .sp_nav .menu-item-has-children {
    position: relative !important;
  }

  .sp_nav .menu-item-has-children > a {
    pointer-events: none !important;
    display: block !important;
    width: 100% !important;
    padding-right: 50px !important;
  }

  .sp_nav .sub_menu_toggle {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 52px !important;
    transform: none !important;
    z-index: 10 !important;
    cursor: pointer !important;
  }

  .sp_nav .sub_menu_toggle::before {
    top: 26px !important;
    left: auto !important;
    right: 15px !important;
    transform: translateY(-50%) rotate(135deg) !important;
    -webkit-transform: translateY(-50%) rotate(135deg) !important;
  }

  .sp_nav .sub_menu_toggle.selected::before {
    transform: translateY(-50%) rotate(-45deg) !important;
    -webkit-transform: translateY(-50%) rotate(-45deg) !important;
  }

  .sp_nav .sub-menu {
    position: relative !important;
    z-index: 20 !important;
  }

  .sp_nav .sub-menu li a {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 21 !important;
  }
}