/* 共通のコンテナーブロックに関するスタイル */

.is-current {
  opacity: 0.4;
}
a {
  transition: 0.3s;
  width: 100%;
  height: 100%;
}
a:hover {
  transition: 0.3s;
  opacity: 0.4;
}

header {
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#products header,
#contact header {
  background-color: rgba(228,232,239,0.9);
  height: 4rem;
}
#products header .waves,
#contact header .waves {
  top: auto;
  bottom: -4rem;
  transform: scale(1,-1);
}
@media screen and (min-width: 960px) {
  #products header,
  #contact header {
    height: 8rem;
  }
  #products header .waves,
  #contact header .waves {
    bottom: -8rem;
  }
}

header .waves {
  z-index: -1;
}

.headerLogo {
  z-index: 1001;
}
#products .headerLogo, #contact .headerLogo {
  width: 9.6rem;
  position: absolute;
  top: 2.4rem;
  left: 1.6rem;
}
@media screen and (min-width: 960px) {
  .headerLogo {
    width: 13.3rem;
    position: absolute;
    top: 8rem;
    left: 8rem;
  }
  #products .headerLogo, #contact .headerLogo  {
    width: 13.3rem;
    top: 4rem;
    left: 8rem;
  }
}


.headerNav__btn {
  position: absolute;
  z-index: 1001;
  top: 1.6rem;
  right: 1.6rem;
  width: 4.8rem;
  height: 3.2rem;
  cursor: pointer;
}
@media screen and (min-width: 960px) {
  .headerNav__btn {
    top: 8rem;
    right: 8rem;
  }
}
#products .headerNav__btn, #contact .headerNav__btn  {
  top: 2.4rem;
}
@media screen and (min-width: 960px) {
  #products .headerNav__btn, #contact .headerNav__btn  {
    display: none;
  }
}

.headerNav__btnText {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.headerNav__btnIconBar {
  position: absolute;
  display: inline-block;
  left: 0;
  right: 0;
  margin: auto;
  width: 1.6rem;
  border: 0.1rem solid #222;
  background: #222;
  border-radius: 0.2rem;
  transition: 0.3s;
  -webkit-transition: 0.3s;
}
.headerNav__btnIconBar:nth-of-type(2) {
  top: 0.6rem;
}
.headerNav__btnIconBar:nth-of-type(3) {
  top: 1.2rem;
}
.headerNav__btn.is-active .headerNav__btnIconBar:nth-of-type(1) {
  top: 0.8rem;
  transform: rotate(45deg);
  transition: 0.3s;
  -webkit-transition: 0.3s;
}
.headerNav__btn.is-active .headerNav__btnIconBar:nth-of-type(2) {
  opacity: 0;
  transition: 0.3s;
  -webkit-transition: 0.3s;
}
.headerNav__btn.is-active .headerNav__btnIconBar:nth-of-type(3) {
  top: 0.8rem;
  transform: rotate(135deg);
  transition: 0.3s;
  -webkit-transition: 0.3s;
}
.headerNav__btn.is-active .headerNav__btnIconBar {
  border: 0.1rem solid #fff;
}
.headerNav__btn.is-active .headerNav__btnText {
  color: #fff;
}

.headerNav__unorderdList {
  position: fixed;
  background: #000;
  color: #fff;
  visibility: hidden;
  width: 24.6rem;
  height: 100vh;
  right: -32rem;
  padding: 8.8rem 1.6rem;
  text-align: right;
  transition: 0.3s;
  -webkit-transition: 0.3s;
}
.headerNav.is-active .headerNav__unorderdList {
  visibility: visible;
  transition: 0.3s;
  opacity: 0.9;
  right: 0;
  -webkit-transition: 0.3s;
}
@media screen and (min-width: 960px) {
  .headerNav__unorderdList {
    width: 32rem;
    text-align: left;
    padding: 16rem 4.8rem;
  }
  #products .headerNav__unorderdList, #contact .headerNav__unorderdList  {
    padding: 0;
    visibility: visible;
    opacity: 1;
    background: none;
    position: fixed;
    top: 6rem;
    right: 8rem;
    width: fit-content;
    height: fit-content;
    width: -moz-fit-content;
    height: -moz-fit-content;
    color: #000;
  }
  #products .headerNav__list, #contact .headerNav__list  {
    display: inline-block;
    position: relative;
    margin-right: 4.2rem;
  }
  #products .headerNav__list:last-of-type, #contact .headerNav__list:last-of-type {
    margin-right: 0;
  }
  #products .headerNav__list::before, #contact .headerNav__list::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: -0;
    left: -2.5rem;
    width: 0.1rem;
    height: 100%;
    background: #222;
  }
  #products .headerNav__list:first-of-type::before, #contact .headerNav__list:first-of-type::before {
    display: none;
  }
}

.headerNav__list {
  margin-bottom: 1.6rem;
}
.headerNav__list:last-of-type {
  margin-bottom: 0;
}
@media screen and (min-width: 960px) {
  .headerNav__list {
    margin-bottom: 4rem;
  }
}
.headerNav__languageIcon {
  width: 2.4rem;
  vertical-align: bottom;
  margin-top: 4rem;
}
.headerNav__language {
  display: inline-block;
  margin-left: 0.8rem;
}
.headerNav__languageList {
  margin-top: 2.4rem;
}

#top main {
  margin-bottom: 56.15vh;
}
@media screen and (min-width: 960px) {
  #top main {
    margin-bottom: 100vh;
  }
}

footer {
  position: relative;
  padding: 6rem 1.6rem 8rem;
  text-align: center;
  background-color: rgba(228,232,239,1);
  z-index: 100;
}
@media screen and (min-width: 960px) {
  footer {
    padding: 31.2rem 8rem 18.6rem;
  }
}

@media screen and (min-width: 960px) {
  .footer__contentContainer {
    max-width: 136rem;
    margin: 0 auto;
  }
}

.footerLogo {
  width: 70%;
}
@media screen and (min-width: 960px) {
  .footerLogo {
    width: 30%;
    margin-bottom: 22rem;
  }
}

.footerNav__unorderdList {
  display: none;
}
@media screen and (min-width: 960px) {
  .footerNav__unorderdList {
    display: block;
  }
  .footerNav__list {
    display: inline-block;
    position: relative;
    margin-right: 4.2rem;
  }
  .footerNav__list:last-of-type {
    margin-right: 0;
  }
  .footerNav__list::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: -2.5rem;
    width: 0.1rem;
    height: 100%;
    background: #222;
  }
  .footerNav__list:first-of-type::before {
    display: none;
  }

  .footer__copyright {
    position: absolute;
    bottom: 8rem;
    right: 8rem;
    animation: infinity-rotate 10s infinite linear 1s both;
  }
  @keyframes infinity-rotate {
    0% {
      transform: rotate(-5deg);
    }
    25% {
      transform: rotate(0);
    }
    50% {
      transform: rotate(5deg);
    }
    75% {
      transform: rotate(0);
    }
    100% {
      transform: rotate(-5deg);
    }
  }
}
