/*---------------------------------

function

---------------------------------*/
/*---------------------------------

base

---------------------------------*/
* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #ffffff;
  max-width: 100%;
  margin: auto;
  color: #524e4d;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: #524e4d;
  text-decoration: none;
}

input[type=text] {
  border: #524e4d 1px solid;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  padding: 0 4vw;
}
@media screen and (min-width: 768px) {
  .container {
    margin: auto;
    max-width: 80rem;
    padding: 0 0.9375rem;
  }
}

/*---------------------------------

header

---------------------------------*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 8vw 0;
}
@media screen and (min-width: 768px) {
  .logo {
    margin: 1.875rem 0;
  }
}
.logo__img {
  width: 48vw;
  vertical-align: middle;
}
@media screen and (min-width: 768px) {
  .logo__img {
    width: 11.25rem;
  }
}

.modal-open {
  position: fixed;
  width: 100%;
  height: 100vh;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.toggle-btn {
  cursor: pointer;
  z-index: 1100;
  width: 8vw;
  height: 8vw;
  position: relative;
}
@media screen and (min-width: 768px) {
  .toggle-btn {
    width: 1.875rem;
    height: 1.875rem;
  }
}
.toggle-btn__border {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.0666666667vw;
  background-color: #524e4d;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media screen and (min-width: 768px) {
  .toggle-btn__border {
    height: 0.25rem;
  }
}
.toggle-btn .toggle-btn__border:nth-child(1) {
  top: 0;
}
.toggle-btn .toggle-btn__border:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.toggle-btn .toggle-btn__border:nth-child(3) {
  bottom: 0;
}
.toggle-btn.active .toggle-btn__border {
  background-color: #ffffff;
}
@media screen and (min-width: 768px) {
  .toggle-btn.active .toggle-btn__border:nth-child(1) {
    transform: rotate(45deg) translate(6px, 12px);
  }
}
@media screen and (min-width: 768px) {
  .toggle-btn.active .toggle-btn__border:nth-child(2) {
    opacity: 0;
  }
}
@media screen and (min-width: 768px) {
  .toggle-btn.active .toggle-btn__border:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -12px);
  }
}
.toggle-btn.active + .modal {
  display: block;
}

.menu-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-modal.show {
  display: block;
  opacity: 1;
  visibility: visible;
}
.menu-modal__content {
  font-size: 3.7333333333vw;
  color: #ffffff;
  margin: 21.3333333333vw 8vw;
  width: 90%;
}
@media screen and (min-width: 768px) {
  .menu-modal__content {
    font-size: 0.875rem;
    margin: 3.75rem;
  }
}
.menu-modal__list {
  margin-bottom: 3.7333333333vw;
}
@media screen and (min-width: 768px) {
  .menu-modal__list {
    margin-bottom: 0.875rem;
  }
}

/*---------------------------------

common

---------------------------------*/
.main {
  margin-bottom: 16vw;
}
@media screen and (min-width: 768px) {
  .main {
    margin-bottom: 3.75rem;
  }
}

.page-title {
  font-weight: normal;
  font-size: 5.3333333333vw;
  margin: 8vw 0;
}
@media screen and (min-width: 768px) {
  .page-title {
    font-size: 0.875rem;
    margin: 1.875rem 0;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5.3333333333vw;
  gap: 10.6666666667vw;
}
@media screen and (min-width: 768px) {
  .pagination {
    font-size: 0.875rem;
    gap: 2.5rem;
  }
}

/*---------------------------------

products

---------------------------------*/
.products-wrapper {
  margin-bottom: 10.6666666667vw;
}
@media screen and (min-width: 768px) {
  .products-wrapper {
    margin-bottom: 2.5rem;
  }
}

.products {
  display: grid;
  gap: 9.3333333333vw;
}
@media screen and (min-width: 768px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.1875rem;
  }
}
.products__img {
  margin-bottom: 2.6666666667vw;
}
@media screen and (min-width: 768px) {
  .products__img {
    margin-bottom: 0.625rem;
  }
}
.products__p {
  display: block;
  font-size: 4vw;
}
@media screen and (min-width: 768px) {
  .products__p {
    font-size: 0.75rem;
  }
}

/*---------------------------------

footer

---------------------------------*/
.footer {
  display: flex;
  font-size: 3.7333333333vw;
  margin-bottom: 8vw;
  flex-direction: column;
  align-items: center;
  gap: 4vw;
}
@media screen and (min-width: 768px) {
  .footer {
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.9375rem;
  }
}

.footer-nav {
  display: flex;
  justify-content: flex-start;
  gap: 8vw;
}
@media screen and (min-width: 768px) {
  .footer-nav {
    gap: 1.875rem;
  }
}