﻿@charset "utf-8";

/* ================PC版メニュー================== */
/*下層メニュー
-------------------------------------------------------------------------*/
nav {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #fd9b9c;
  border-bottom: 1px solid #b196b7;
}
nav ul {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
}
nav ul li {
  width: 100%;
  padding: 0 25px;
  border-right: 1px dotted #fff;
}
nav ul li:last-of-type {
  border-right: none;
}

nav ul li a {
  display: block;
  text-align: center;
  color: #000;
  letter-spacing: 1px;
  border-radius: 10px;
  position: relative;
  padding-top: 60px;
  padding-bottom: 10px;
  background-repeat: no-repeat;
  background-position: center 10px;
  font-size: 1.3rem;
}
nav ul li a:hover {
  background: #fff;
  color: #fb9b9c;
  background-repeat: no-repeat;
  background-position: center 10px;
  /*transition: all .2s ease-in;*/
}
nav ul li:nth-of-type(1) a {
  background-image: url(../img/nav_facility.png);
}
nav ul li:nth-of-type(1) a:hover {
  background-image: url(../img/nav_facility_hover.png);
}
nav ul li:nth-of-type(2) a {
  background-image: url(../img/nav_service.png);
}
nav ul li:nth-of-type(2) a:hover {
  background-image: url(../img/nav_service_hover.png);
}
nav ul li:nth-of-type(3) a {
  background-image: url("../img/nav_price.png");
}
nav ul li:nth-of-type(3) a:hover {
  background-image: url("../img/nav_price_hover.png");
}
nav ul li:nth-of-type(4) a {
  background-image: url(../img/nav_dept.png);
}
nav ul li:nth-of-type(4) a:hover {
  background-image: url(../img/nav_dept_hover.png);
}
nav ul li:nth-of-type(5) a {
  background-image: url(../img/nav_recruit.png);
}
nav ul li:nth-of-type(5) a:hover {
  background-image: url(../img/nav_recruit_hover.png);
}
nav ul li:nth-of-type(6) a {
  background-image: url(../img/nav_access.png);
}
nav ul li:nth-of-type(6) a:hover {
  background-image: url(../img/nav_access_hover.png);
}
nav ul li:nth-of-type(7) a {
  background-image: url("../img/nav_participants.png");
}
nav ul li:nth-of-type(7) a:hover {
  background-image: url("../img/nav_participants_hover.png");
}

/*ハンバーガーアイコン
-------------------------------------------------------------------------*/
.navToggle {
  display: none;
}

/* ================スマホ関連================== */
@media screen and (max-width: 767px) {
  nav ul {
    flex-direction: column;
  }
  nav ul li a {
    height: 66px;
  }

  /*スマホ版メニュー用
-------------------------------------------------------------------------*/
  nav.globalMenuSp {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    transition: all 0.6s;
    width: 100%;
    height: 100%;
    overflow: scroll;
    padding-bottom: 80px;
  }

  nav.globalMenuSp ul {
    margin-top: 0;
    width: 100%;
  }

  nav.globalMenuSp ul li {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 最後はラインを描かない */
  nav.globalMenuSp ul li:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  nav.globalMenuSp ul li a {
    display: block;
    /*padding: 1em 0;*/
  }

  /* このクラスを、jQueryで付与・削除する */
  nav.globalMenuSp.active {
    transform: translateY(0%);
    top: 80px;
  }

  nav ul li a {
    letter-spacing: 3px;
    padding-top: 60px;
    padding-bottom: 22px;
    background-repeat: no-repeat;
    background-position: center 10px;
  }

  /*ハンバーガーアイコン
-------------------------------------------------------------------------*/
  .navToggle {
    display: block;
    position: fixed; /* bodyに対しての絶対位置指定 */
    right: 5px;
    top: 12px;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 50;
    background: #fd9b9c;
    text-align: center;
  }

  .navToggle span {
    display: block;
    position: absolute; /* .navToggleに対して */
    width: 50px;
    border-bottom: solid 5px #fff;
    -webkit-transition: 0.35s ease-in-out;
    -moz-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
    left: 8px;
  }

  .navToggle span:nth-child(1) {
    top: 12px;
  }

  .navToggle span:nth-child(2) {
    top: 24px;
  }

  .navToggle span:nth-child(3) {
    top: 38px;
  }

  .navToggle span:nth-child(4) {
    border: none;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    top: 45px;
  }

  /* 最初のspanをマイナス45度に */
  .navToggle.active span:nth-child(1) {
    top: 25px;
    left: 8px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  /* 2番目と3番目のspanを45度に */
  .navToggle.active span:nth-child(2),
  .navToggle.active span:nth-child(3) {
    top: 25px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}
