@charset "UTF-8";

/****** header ******/
header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 50px;
  position: relative;
}
header ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
}
header ul li {
  font-size: 1.8rem;
}

.header-inner {
  position: relative;
}

.sp-logo-area {
  display: none;
}
.sp-navi {
  display: none;
}

@media only screen and (max-width: 768px) {
  .header-content {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  .nav {
    position: fixed;
    right: -320px; /* 右から出てくる */
    top: 0;
    width: 300px; /* スマホに収まるサイズ */
    height: 100vh;
    padding-top: 60px;
    background: url(../images/background.png) repeat top left;
    transition: all .6s;
    z-index: 400;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
  }
  .hamburger {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px; /* クリックしやすい幅 */
    height: 40px; /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 500;
  }
  header ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    box-sizing: border-box;
  }
  .sp-logo-area {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0 0 40px 20px;
  }
  .sp-logo-area img {
    width: auto;
    height: 20px;
  }
  .sp-navi {
    padding: 40px 0 0 20px;
    list-style: none;
    display: block;
  }
  .sp-navi li {
    font-size: 1.4rem;
    padding-bottom: 20px;
  }
  .sp-navili:last-child {
    font-size: 1.4rem;
    padding-bottom: 0;
  }
  .sp-navi li::before {
    content: "";
    width: 12px;
    height: 12px;
    display: inline-block;
    background: linear-gradient(to left top, #F5A6D5, #BDAFFD, #75FFCD);
    border-radius: 50%;
    position: relative;
    top: 0;
    margin-right: 5px;
  }
  .nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
  }
  .nav-item {
    text-align: left;
    padding: 0 14px 20px 14px;
  }
  .nav-item:last-child {
    text-align: left;
    padding: 0 14px 0 14px;
  }
  .nav-item a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
  }
  .nav-item a:hover {
    text-decoration: underline;
  }
  .hamburger-border {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background-color: #333;
    transition: all .6s;
  }
  .hamburger-border-top {
    top: 14px;
  }
  .hamburger-border-center {
    top: 20px;
  }
  .hamburger-border-bottom {
    top: 26px;
  }
  .black-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 300;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all .6s;
    cursor: pointer;
  }

  /* 表示された時用のCSS */
  .nav-open .nav {
    right: 0;
  }
  .nav-open .black-bg {
    opacity: .8;
    visibility: visible;
  }
  .nav-open .hamburger-border-top {
    transform: rotate(45deg);
    top: 20px;
    color: #121212;
  }
  .nav-open .hamburger-border-center {
    width: 0;
    left: 50%;
  }
  .nav-open .hamburger-border-bottom {
    transform: rotate(-45deg);
    top: 20px;
    color: #121212;
  }
}

@media only screen and (min-width: 769px) {
  .header-inner {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .nav-list{
    text-align: right;
  }
  .nav-list .nav-item {
    display: inline-block;
    text-align: right;
    margin-right: 30px;
  }
  .nav-list .nav-item:last-child {
    display: inline-block;
    text-align: right;
    margin-right: 0;
  }
  .nav-list .nav-item a {
    color: #121212;
    font-weight: 600;
  }
}