@charset "utf-8";
/***** 全体 *****/
#wrapper {
  width: 960px;
  margin-inline: auto;
}
@media screen and (max-width: 768px) {
  #wrapper {
    width: 100%;
  }
}
/***** header *****/
.l-header {
  padding: 2rem 0;
}
.l-header__ttl {
  width: 88%;
  margin-inline: auto;
}
@media screen and (max-width:768px) {
  .l-header {
    width: 100%;
    height: 60px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: var(--base-color);
    border-bottom: 1px solid #fff;
  }
  .l-header__ttl {
    margin: 0;
  }
  .l-header__ttl img {
    max-height: 34px;
  }
}
/***** nav *****/
.l-gnav__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 0.3rem;
}
.l-gnav a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  color: var(--black-color);
  text-decoration: none;
  background-color: #fff;
  padding-block: 1.4rem;
  transition: .5s;
}
.l-gnav__item:first-child a {
  border-radius: 5px 0 0 0;
}
.l-gnav__item:nth-child(5) a {
  border-radius: 0 5px 0 0;
}
.l-gnav__item:nth-child(6) a {
  border-radius: 0 0 0 5px;
}
.l-gnav__item:last-child a {
  border-radius: 0 0 5px 0;
  background-color: var(--sub-color);
}
.l-gnav a:hover, .l-gnav__item.focus a {
  background-color: var(--base-color);
  color: #fff;
}
.l-gnav__item:last-child a:hover, .l-gnav__item.focus:last-child a {
  background-color: #f39f00;
}
.c-menu__txt {
  display: none;
}
@media screen and (max-width:768px) {
  .l-gnav {
    width: 100%;
    height: 100%;
    padding-top: 60px;
    overflow: auto;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    background-color: #fff;
    transform: translate(100%);
    transition: all .5s;
  }
  .l-gnav.open {
    transform: translateY(0);
  }
  .l-gnav__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .l-gnav a {
    padding: 1.5rem;
    justify-content: flex-start;
    border-bottom: 1px solid var(--base-color);
  }
  .l-gnav__item:first-child a, .l-gnav__item:nth-child(5) a, .l-gnav__item:nth-child(6) a, .l-gnav__item:last-child a {
    border-radius: 0;
  }
}
/* ハンバーガーボタン */
@media screen and (max-width:768px) {
  .c-menu__btn {
    position: sticky;
    z-index: 999;
    right: 0;
    transition: .3s;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .c-menu__btn .c-menu__line {
    display: inline-block;
    width: 100%;
    height: 1px;
    margin-bottom: 5px;
    background: #fff;
    transition: all .3s;
  }
  .c-menu__btn .c-menu__line:nth-child(3) {
    margin-bottom: 0;
  }
  .c-menu__txt {
    width: 100%;
    margin-top: auto;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    transition: all .3s;
    display: block;
  }
  .c-menu__btn.active .c-menu__txt {
    margin: 0;
  }
  .c-menu__txt-close {
    display: none;
  }
  .c-menu__btn.active .c-menu__line {
    margin-bottom: 0;
  }
  .c-menu__btn.active .c-menu__line:nth-child(1) {
    transform: translateY(7px) rotate(25deg);
  }
  .c-menu__btn.active .c-menu__line:nth-child(2) {
    opacity: 0;
  }
  .c-menu__btn.active .c-menu__line:nth-child(3) {
    transform: translateY(-3px) rotate(-25deg);
  }
  .c-menu__btn.active .c-menu__txt-menu {
    display: none;
  }
  .c-menu__btn.active .c-menu__txt-close {
    display: block;
  }
}
/***** footer *****/
.l-footer {
  min-width: 960px;
  background-color: var(--base-color);
}
.l-footer__copy {
  padding-block: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
}
@media screen and (max-width:768px) {
  .l-footer {
    min-width: 100%;
  }
}