/*=============================================*/
/*Reset CSS*/
/*=============================================*/
article, aside, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, main {
  display: block;
}

blockquote, body, dd, div, dl, dt, fieldset, figure, form, h1, h2, h3, h4, h5, h6, input, li, ol, p, pre, td, textarea, th, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

li {
  list-style: none;
}

a,
a:link {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  height: auto;
  vertical-align: bottom;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

i {
  font-style: normal;
}

textarea {
  resize: none;
  font-family: sans-serif;
}

* {
  box-sizing: border-box;
}

/********************************************/
/*  Sp-menu*/
/********************************************/
.sp_menu_trigger,
.sp_nav {
  display: none;
}

/*=============================================*/
/*media query    Tablet ipad 5.7inch */
/*=============================================*/
/********************************************/
/* body fixed*/
/********************************************/
body {
  width: 100%;
}

body.fixed {
  position: fixed;
  width: 100%;
}

/********************************************/
/*  Sp-menu btn*/
/********************************************/
.menu_box {
  position: fixed;
  top: 0;
  right: 20px;
  width: 75px;
  height: 115px;
  background-color: #fff;
  box-shadow: 3px 3px 15px -6px #000;
  border-radius: 0 0 14px 14px;
  transition: all 0.5s;
  z-index: 9999;
}

.sp_menu_trigger,
.sp_menu_trigger span {
  display: inline-block;
  transition: all 0.4s;
  box-sizing: border-box;
  cursor: pointer;
}

.sp_menu_trigger {
  position: absolute;
  width: 55px;
  height: 70px;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 9999;
  transition: all 0.5s;
}
.sp_menu_trigger span {
  position: absolute;
  background: #445EBD;
  width: 100%;
  height: 7px;
  left: 0;
  right: 0;
  margin: auto;
}
.sp_menu_trigger span:nth-of-type(1) {
  top: 5px;
}
.sp_menu_trigger span:nth-of-type(2) {
  top: 20px;
}
.sp_menu_trigger span:nth-of-type(3) {
  top: 35px;
}

.sp_menu_trigger.nogap {
  top: 0;
  right: 0;
}

.sp_menu_trigger.active span:nth-of-type(1) {
  transform: translateY(15px) rotate(-315deg);
}
.sp_menu_trigger.active span:nth-of-type(2) {
  opacity: 0;
}
.sp_menu_trigger.active span:nth-of-type(3) {
  transform: translateY(-15px) rotate(315deg);
}

.sp_menu_trigger:after {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  content: "MENU";
  font-size: 1.7rem;
  font-weight: 600;
  width: 4em;
  margin: auto;
}
.sp_menu_trigger.active:after {
  content: " CLOSE";
}

.sp_menu_trigger.active {
  right: calc(100% - 73px);
}

.menu_box.active {
  right: 40%;
}

/********************************************/
/*  Sp-menu list*/
/********************************************/
header .main_nav {
  position: fixed;
  top: 0;
  right: -100%;
  background-color: rgba(255, 255, 255, 0.9);
  width: 40%;
  height: 100vh;
  -webkit-overflow-scrolling: touch;
  z-index: 9998;
  overflow-y: scroll;
  padding: 40px 20px 60px;
  box-sizing: border-box;
  text-align: left;
  transition: all 0.5s;
}

header .main_nav.open {
  right: 0;
}

header .nav_list > li {
  display: block;
  border-bottom: solid 1px #ccc;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  text-align: left;
  color: #333;
}
header .nav_list > li a {
  display: block;
  padding: 1em 1em;
}
header .nav_list > li a:hover {
  background-color: #445ebd;
  color: #fff;
}
header .nav_list > li.close {
  margin-top: 30px;
  background-color: #ccc;
  border-bottom: none;
  padding: 1em;
  text-align: center;
  cursor: pointer;
}
header .nav_list > li.close::before {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-weight: bold;
  margin-right: 0.5em;
}

.nav_list {
  width: 100%;
  overflow: hidden;
}

/*=============================================*/
/*media query    SmartPhone */
/*=============================================*/
@media screen and (max-width: 767px) {
  .menu_box {
    right: 10px;
    width: 60px;
    height: 70px;
  }
  .sp_menu_trigger {
    width: 42px;
    height: 65px;
  }
  .sp_menu_trigger span {
    height: 5px;
  }
  .sp_menu_trigger span:nth-of-type(1) {
    top: 15px;
  }
  .sp_menu_trigger span:nth-of-type(2) {
    top: 25px;
  }
  .sp_menu_trigger.active span:nth-of-type(1) {
    transform: translateY(10px) rotate(-315deg);
  }
  .sp_menu_trigger.active span:nth-of-type(3) {
    transform: translateY(-10px) rotate(315deg);
  }
  .sp_menu_trigger:after {
    bottom: -1px;
    left: -1px;
    font-size: 1.4rem;
    width: 3em;
  }
  .sp_menu_trigger.active:after {
    bottom: -2.5px;
    left: -5px;
    font-size: 1.3rem;
  }
  .sp_menu_trigger.active {
    right: calc(100% - 62px);
  }
  .menu_box.active {
    right: 85%;
  }
  header .main_nav {
    width: 85%;
  }
}