@charset "UTF-8";

.for-top {
  z-index: 800;
}

.p-style-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
  gap: 100px 70px;
}

.p-style-gallery__image {
  border-radius: 0;
  height: 300px;
}

.p-style-gallery__item {
  width: 200px;
}

.p-style-gallery__item a {
  width: 100%;
}

.styling-name {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 400;
  color: #a88c55;
}

.p-style-gallery li {
  margin: 0 !important;
}

.p-style-gallery {
  background-image: none;
}

.p-style-gallery::after {
  display: none;
}

.p-products-section::before {
  display: none;
}

.p-products-section::after {
  display: none;
}

.c-pagination-list {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.c-pagination-list__item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #2e5545;
  color: #fff;
  transition: all 300ms ease 0s;
}

.c-pagination-list__item:hover {
  opacity: 0.8;
}

.c-pagination-list__item a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 100%;
  color: #fff;
}

.c-pagination-list__item:not(:has(a)) {
  /* padding: .25em .75em; */
}

.p-staff-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 30px;
}

.p-staff-list .p-staff {
  margin: 0;
  width: 520px;
}

.p-staff-list .p-staff:nth-child(even) {
  margin: 0;
}

.hair-style__modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: all .2s ease-in-out;
}

.hair-style__modal.open {
  visibility: visible;
  opacity: 1;
}

.hair-style__modal-close {
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%, -50%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #000;
  width: 40px;
  height: 40px;
  background-color: #fff;
}

.hair-style__modal-close::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #000;
  transform: rotate(45deg);
}

.hair-style__modal-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #000;
  transform: rotate(-45deg);
}

.hair-style__modal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0.7;
  z-index: -1;
}

.hair-style__modal img {
  width: 450px;
}

.p-staff__image.c-media__image {
  width: 200px;
}

.p-staff__detail .location {
  margin-top: 30.5px;
  font-size: 28px;
  color: #2e5545;
}

.p-staff__detail .location span {
  display: block;
  border: 1px solid #2E5545;
  padding: 1px 12px;
  width: fit-content;
  font-size: 14px;
  color: #2e5545;
}

.post-type-archive-products .p-products-item {
  cursor: pointer;
}

.post-type-archive-products {
  overflow-x: hidden;
}

.post-type-archive-products .modal-product {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10vh 10vw;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all .2s ease-in-out;
}

.post-type-archive-products .modal-product * {
  max-width: 100%;
}

.post-type-archive-products .modal-product > .p-products-item__image {
  margin-top: auto;
}

.post-type-archive-products .modal-product > *:last-child {
  margin-bottom: auto;
}

.post-type-archive-products .modal-product.active {
  visibility: visible;
  opacity: 1;
}

.post-type-archive-products .modal-product::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.6;
  z-index: -1;
}

.post-type-archive-products .modal-product .p-products-item__name {
  font-size: 20px;
}


.post-type-archive-products .modal-product__close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10000;
}

.post-type-archive-products .modal-product__close::before,
.post-type-archive-products .modal-product__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background-color: #fff;
}

.post-type-archive-products .modal-product__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.post-type-archive-products .modal-product__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.post-type-archive-products .p-products-item__wrap{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: auto;
      background: #fff;
      color: #000;
      padding: 20px;
}
.post-type-archive-products .p-products-item__wrap img{
  margin-bottom: 20px;
}

form table {
  margin-left: auto;
  margin-right: auto;
}

table td, table th{
    padding: 1.5em 1em;
}

/* form input {
  margin-top: 50px;
} */

.post-type-archive-staff .c-page-title,
.post-type-archive-products .c-page-title,
.post-type-archive-hair-style .c-page-title {
  padding-top: 50px;
}


@media(max-width:768px) {
  .styling-name {
    font-size: 16px;
  }

  .styling-artist {
    font-size: 12px;
  }

  .p-style-gallery {
    gap: 30px;
  }

  .hair-style__modal img {
    width: 80vw;
    max-width: initial;
  }

  .p-staff.c-media {
    width: 50%;
  }

  .p-staff__detail .location {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    font-size: 26px;
  }

  .p-staff__body.c-media__body a {
    display: flex;
    margin: 0 auto;
    width: fit-content;
  }

  .p-staff__detail .location span {
    font-size: 13px;
  }

  /* antigravityが追記 */
  .p-staff-list {
    gap: 20px 10px;
    padding: 0 10px;
  }

  .p-staff-list .p-staff.c-media {
    width: calc(50% - 5px);
    display: block;
  }

  .p-staff-list .p-staff__image.c-media__image {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .p-staff-list .p-staff__image.c-media__image img {
    width: 100%;
    height: auto;
  }

  .p-staff-list .p-staff__body.c-media__body {
    float: none;
    width: 100%;
  }

  .post-type-archive-products .modal-product {
    padding: 10vh 10vw;
  }

  .post-type-archive-products .modal-product .p-products-item__name {
    font-size: 18px;
  }

  .p-products-section .p-products-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .p-products-section .p-products-item__name {
    text-align: center;
  }

  .p-article__body:has(form) {
    margin: 0 auto;
    width: 90vw;
  }

  .p-style-gallery li {
    width: calc(50% - 30px);
  }

  form input {
    margin-top: 0px;
  }
  table td, table th{
    display: block;
  }

  .c-grid__cell--9{
    float: none;
    display: block;
    margin-right: 0;
    padding: 20px;
    width: 100%;
  }
  .c-grid__cell--3{
      float: none;
      display: block;
      margin-right: 0%;
      margin-top: 20px;
      padding: 20px;
      width: 100%;
  }
}