
*{
  padding: 0;
  margin: 0;
}
img{
  width: 100%;
}
/* index用 header */
/* header{
  background-color:#004496;
  -webkit-transform: skew(0deg, -2deg);
  padding: 3vh 0;
  height: 15vh;
  position: relative;
}
header .container{
  -webkit-transform: skew(0deg, 2deg);
}
.blue-bg{
  background-color: #004496;
  height: 3vh;
} */
header{
    position: relative;
    padding: 20px 0 0px 0;
    background-color: #004496;
    overflow: hidden;
    backface-visibility: hidden;
}
/* header::before{
  content:"";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width:  0 0 40px   100vw;
 
  border-color:  transparent  transparent #fff transparent   ;
  backface-visibility: hidden;
} */
.nav-sp{
  display: none;
}
/* .header-bg1{
  background-color: #004496;
}
.header-bg2{
  background-color: #004496;
} */
.header-logo{
  display: flex;
  text-align: center;
  justify-content: space-evenly;
  padding: 4vh 10%;
  width: 50%;
  height: 15vh;
}
.header-logo p {
  display: flex;
  align-items: center;
}
.header-logo .logo{
  width: 10vw;
  height: auto;
}
.header-logo .logotype{
  width: 35vw;
}
.header_box1 {
  -webkit-clip-path: polygon(0 5%, 100% 0%, 100% 90%, 0% 100%);
  clip-path: polygon(0 5%, 100% 0%, 100% 90%, 0% 100%);
  background-color:#fff;
  color:#ccc;
}

.header_bg{
  width: 100%;
  height: 69vh;
  background: url(../image/index_bg.png);
  text-align: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 100;
  position: relative;
  background-position: center center;
}




/* header */
.index-nav{
  padding: 0 10%;
  background-color:#004496;
  height: 15vh;
}
nav ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 3vh;
}
nav ul  li{
  list-style: none;
  width: auto;
  padding: 1% 0;
  display: inline;
}
nav ul li  a,.header-botton{
  text-decoration: none;
  color: #FFF8E9;
  /* 保留 */
  font-size: 1.2em;
  display: inline;
}
nav ul li  a img{
  width: 100%;
}
.button{
  background-color: #48B6FF;
  border-radius: 50vh;
  padding: 1% 1.5%;
}

.button{
  background-color: #48B6FF;
  border-radius: 50vh;
  padding: 1% 1.5%;
}
.sns-icon{
  width: 7%;
  padding-left: 1%;
}
/* footer */
footer{
  background-color: #313131;
  color: #FFF8E9;
  padding:  5% 10%;
}
.footer-flex{
  justify-content: space-between;
}
.contents-flex{
  justify-content: center;
  padding: 3vh 0 1.5vh;
}

.flex{
  display: flex;
  align-items: center;
  text-align: center;
}
.flex .logo{
  width: 16vw;
}
.sns-buttom{
  background-color: #FAFAFA;
  text-decoration: none;
  display: inline;
  border-radius: 30vh;
  padding: 1% 2%;
  color: #313131;
}
.footer-nav{
  justify-content: flex-start;
  /* text-align: left; */
  padding-top:  2%;
  /* width: 50%; */
  overflow: hidden;
}
.footer-nav h2{
  font-weight: normal;
}
.footer-nav a{
  color: #FAFAFA;
  text-decoration: none;
  padding-right: 3vw;
}

.small-flex1,.small-flex2{
  display: inline;
  /* justify-content: space-evenly;
  text-align: left; */
}

.footer-menu a{
  padding-right: 1.5vw;
}
.footer-url a{
  padding-right: 3vw;
}
/* nav */
.openbtn{
  display: none;
}

/* 個別ページ用 header */
/* .header-bg2{
  background-color: #F6F4EE;
}
.header_box2 {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  background-color: #004496;
  color:#ccc;
  padding: 2% 0;
}
.header_box3 {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
  background-color: #004496;
  color:#ccc;
} */
footer .flex{
  margin-bottom: 3vh;
}
@media screen and (max-width: 820px){
  .nav-sp{
    display: block;
    background-color: #004496;
  }
  .nav-sp ul{
    display: flex;
    align-items: center;
    padding: 2vh 10vw;
    justify-content:baseline;
  }
  .nav-sp ul .logo{
    width: 20%;
    list-style: none;
    padding-right: 3vw;
  }
  .nav-sp ul .type{
    width: 60%;
    list-style: none;
    padding-right: 3vw;
  }
  header{
    background-color: unset;
  }
  /* header::before{
    content:"";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
   
    border-width:  0 0 20px   100vw;
   
    border-color:  transparent  transparent #fff transparent   ;
  } */
  .header-title{
      text-align: center;
      background: url(../img/mobile-bg.png);
      height: 100vh;
      background-repeat: no-repeat;
  }
  .header-logo .logo{
    width: 15vw;
    height: auto;
  }
  nav{
      padding: 0;
  }
  .sns-icon {
    width: 12%;
  }
  nav ul{
      flex-direction: column;
  }
/* 3本線の移動のためのcss */
  .openbtn{
      display: inline;
      position:fixed;
      z-index: 9999;/*ボタンを最前面に*/
      top: 5vh;
      right: 5vw;
      cursor: pointer;
      width: 50px;
      height:50px;
  }

/*×に変化*/	
  .openbtn span{
      display: inline-block;
      transition: all .4s;
      position: absolute;
      left: 14px;
      height: 3px;
      border-radius: 2px;
      background-color: #666;
      width: 45%;
  }

  .openbtn span:nth-of-type(1) {
      top:15px;	
  }

  .openbtn span:nth-of-type(2) {
      top:23px;
  }

  .openbtn span:nth-of-type(3) {
      top:31px;
  }

  .openbtn.active span:nth-of-type(1) {
      top: 18px;
      left: 18px;
      transform: translateY(6px) rotate(-45deg);
      width: 30%;
  }

  .openbtn.active span:nth-of-type(2) {
      opacity: 0;
  }

  .openbtn.active span:nth-of-type(3){
      top: 30px;
      left: 18px;
      transform: translateY(-6px) rotate(45deg);
      width: 30%;
  }

  
/*========= ナビゲーションのためのCSS ===============*/

  #g-nav{
      /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
      position:fixed;
      z-index: 999;
      /*ナビのスタート位置と形状*/
      top: 0vh;
      right: -120%;
      width: 100%;
      height: 100vh;/*ナビの高さ*/
      background:#CEDBE9;
      /*動き*/
      transition: all 0.6s;
      /* border-radius: 1.2em; */
  }

  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive{
      right: 0%;
  }

  /*ナビゲーション*/
  #g-nav ul {
      /*ナビゲーション天地中央揃え*/
      position: absolute;
      z-index: 999;
      top:50%;
      left:50%;
      transform: translate(-50%,-50%);
      width: 80%;
  }

  /*リストのレイアウト設定*/

  #g-nav li{
      list-style: none;
      text-align: center;
  }

  #g-nav li a{
      text-decoration: none;
      padding:10px;
      display: block;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: bold;
  }
  .index-nav{
    padding: 0;
  }
  .footer-flex{
    flex-direction: column;
    text-align: center;
  }
    .flex .logo {
      width: 40%;
  }
  .footer-nav{
    flex-direction: column;
    width: 100%;
  }
  .header_bg{
    height: 84vh;
  }
  .header-logo{
    width: 70%;
  }
  .header-logo .logotype{
    width: 70%;
  }
  footer article{
    text-align: center;
  }

  .small-flex1,.small-flex2{
    display: flex;
    justify-content: space-evenly;
    text-align: left;
    width: 100%;
  }
  /* .small-flex1{
    width: 30%;
  }
  .small-flex2{
    width: 10%;
  } */
  footer .flex{
    margin-bottom: 1vh;
  }
}

/* index以外 */
@media screen and (max-width: 820px){
  .header-title{
      text-align: center;
      background: url(../img/mobile-bg.png);
      height: 100vh;
      background-repeat: no-repeat;
  }
  nav{
      padding: 0;
  }
  .sns-icon {
    width: 20%;
  }
  nav ul{
      flex-direction: column;
  }
/* 3本線の移動のためのcss */
  .openbtn{
      display: inline;
      position:fixed;
      z-index: 9999;/*ボタンを最前面に*/
      top: 3vh;
      right: 5vw;
      cursor: pointer;
      width: 50px;
      height:50px;
  }

/*×に変化*/	
  .openbtn span{
      display: inline-block;
      transition: all .4s;
      position: absolute;
      left: 14px;
      height: 3px;
      border-radius: 2px;
      background-color: #666;
      width: 45%;
  }

  .openbtn span:nth-of-type(1) {
      top:15px;	
  }

  .openbtn span:nth-of-type(2) {
      top:23px;
  }

  .openbtn span:nth-of-type(3) {
      top:31px;
  }

  .openbtn.active span:nth-of-type(1) {
      top: 18px;
      left: 18px;
      transform: translateY(6px) rotate(-45deg);
      width: 30%;
  }

  .openbtn.active span:nth-of-type(2) {
      opacity: 0;
  }

  .openbtn.active span:nth-of-type(3){
      top: 30px;
      left: 18px;
      transform: translateY(-6px) rotate(45deg);
      width: 30%;
  }

  
/*========= ナビゲーションのためのCSS ===============*/

  #g-nav{
      /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
      position:fixed;
      z-index: 999;
      /*ナビのスタート位置と形状*/
      top: 0vh;
      right: -120%;
      width: 100%;
      height: 100vh;/*ナビの高さ*/
      background:#CEDBE9;
      /*動き*/
      transition: all 0.6s;
      /* border-radius: 1.2em; */
  }

  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive{
      right: 0%;
  }

  /*ナビゲーション*/
  #g-nav ul {
      /*ナビゲーション天地中央揃え*/
      position: absolute;
      z-index: 999;
      top:50%;
      left:50%;
      transform: translate(-50%,-50%);
      width: 80%;
  }

  /*リストのレイアウト設定*/

  #g-nav li{
      list-style: none;
      text-align: center;
  }

  #g-nav li a{
      text-decoration: none;
      padding:10px;
      display: block;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: bold;
      font-size: 2em;
  }
  .header-flex{
    justify-content: center;
    display: inline-flex;
    width: 60vw;
  }

  .index-nav{
    padding: 0;
  }
  .footer-flex{
    flex-direction: column;
    text-align: center;
  }
    .flex .logo {
      width: 40%;
  }
  .footer-nav{
    flex-direction: column;
    width: 100%;
  }
  .header_bg{
    height: 84vh;
  }
  .header-logo{
    width: 70%;
  }
  .header-logo .logotype{
    width: 70%;
  }
  footer article{
    text-align: center;
  }
  html{
    font-size: 17px;
  }
  article div {
    display: block;
  }
  .header_box1 {
    -webkit-clip-path: polygon(0 5%, 100% 0%, 100% 90%, 0% 100%);
    clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
    background-color:#fff;
    color:#ccc;
  }
  .contents-flex .sns-icon{
    width: 10vw;
  }
  .footer-nav a,.adress{
    font-size: 1em;
    
  }
  .adress{
    margin-bottom: 0.5vh;
  }
}
@media screen and (max-width: 560px){
  html{
    font-size: 10px;
  }
  .header_box1 {
    -webkit-clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
    background-color:#004496;
    color:#ccc;
  }
}