.p-gallery {
  padding-bottom: 10rem;
  position: relative;
}
.p-gallery-head {
  background: #000;
  padding: 9rem 0;
}
@media screen and (max-width: 767px) {
  .p-gallery-head {
    padding: 21.3333333333vw 0 5.3333333333vw;
  }
}
.p-gallery-headline {
  text-align: center;
  color: #fff;
  font-size: 8rem;
}
@media screen and (max-width: 767px) {
  .p-gallery-headline {
    font-size: 8vw;
  }
}
.p-gallery-fv {
  margin: 5rem 0 10rem;
}
@media screen and (max-width: 767px) {
  .p-gallery-fv {
    margin: 2.6666666667vw 0 6.6666666667vw;
  }
}
@media screen and (max-width: 767px) {
  .p-gallery-fv .c-inner {
    padding: 0;
  }
}
@media screen and (max-width: 767px) {
  .p-gallery-body .c-inner {
    padding: 0;
  }
}
.p-gallery-tabs {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 3rem 1fr 3rem 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 0 auto 15rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  width: 66rem;
}
@media screen and (max-width: 767px) {
  .p-gallery-tabs {
    display: -ms-inline-grid;
    display: inline-grid;
    -ms-grid-columns: 1fr 0 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 8vw;
    width: 100%;
  }
}
.p-gallery-tabs li {
  border: 1px solid #000;
  border-radius: 0.4rem;
  width: 20rem;
  height: 4rem;
  background: #000;
  color: #fff;
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -ms-flex-pack: center;
  -webkit-box-pack: center;
          justify-content: center;
  -ms-flex-align: center;
  -webkit-box-align: center;
          align-items: center;
  text-align: center;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .p-gallery-tabs li {
    height: 10.6666666667vw;
    width: 100%;
    border-bottom: 1px solid #fff;
  }
  .p-gallery-tabs li:nth-of-type(2n) {
    border-left: 1px solid #fff;
  }
}
.p-gallery-tabs li:hover {
  background: #999;
}
.p-gallery-tabs li.is-on {
  background: white;
  color: #000;
  pointer-events: none;
}
@media screen and (max-width: 767px) {
  .p-gallery-tabs li.is-on {
    border: 1px solid #000;
  }
  .p-gallery-tabs li.is-on + li {
    border-left: none;
  }
}
@media screen and (max-width: 767px) {
  .p-gallery-tabs li:nth-of-type(n + 3).is-on {
    border-top: none;
  }
}
.p-gallery-items {
  opacity: 0;
  overflow: hidden;
  height: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.p-gallery-items.is-current {
  height: auto;
  opacity: 1;
}
@media screen and (max-width: 767px) {
  .p-gallery-items.is-current {
    min-height: 50vh;
  }
}
.p-gallery-items-list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 6.6rem 1fr 6.6rem 1fr 6.6rem 1fr;
  grid-template-columns: repeat(4, 1fr);
  gap: 6rem 6.6rem;
}
@media screen and (max-width: 767px) {
  .p-gallery-items-list {
    -ms-grid-columns: 1fr 0 1fr 0 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}
.p-gallery-morebtn {
  margin-top: 9.8rem;
}

:root {
  --scroll-y: 0;
}

.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: opacity 0.2s ease-out;
  transition: opacity 0.2s ease-out;
  opacity: 1;
  visibility: visible;
  z-index: 100;
}

.dialog.__hidden {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.dialog__bglayer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

.dialog__container {
  background-color: #fff;
  max-width: min(800px, 80vw);
  width: 100%;
  max-height: 100vh;
  padding: 66px 20px;
  border-radius: 5px;
  overflow-y: auto;
  position: relative;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .dialog__container {
    padding: 48px 20px;
    max-width: min(800px, 86vw);
  }
}

.product-image-wrapper {
  width: 30%;
  margin: 0 auto;
  position: relative;
  -webkit-transform: translateX(4%);
          transform: translateX(4%);
}
@media screen and (max-width: 767px) {
  .product-image-wrapper {
    width: 60%;
  }
}

.product-code {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 8px 0 0;
}
@media screen and (max-width: 767px) {
  .product-code {
    font-size: 6rem;
  }
}

.product-price-1 {
  font-size: 1.5rem;
}
@media screen and (max-width: 767px) {
  .product-price-1 {
    font-size: 3.5rem;
  }
}

.product-price-2 {
  font-size: 1.3rem;
}
@media screen and (max-width: 767px) {
  .product-price-2 {
    font-size: 3rem;
  }
}

.dialog-detail-button {
  margin: 16px auto 0;
}

.product-detail-link {
  background-color: #000;
  color: #fff;
  padding: 8px 24px;
  font-size: 1.3rem;
  font-weight: 300;
  display: inline-block;
}
@media screen and (max-width: 767px) {
  .product-detail-link {
    font-size: 4rem;
    padding: 10px 36px;
  }
}

.dialog__description {
  font-size: 1rem;
}

.dialog__action {
  position: absolute;
  right: 16px;
  top: 16px;
}

.dialog-close-button {
  aspect-ratio: 1/1;
  width: 50px;
}
@media screen and (max-width: 767px) {
  .dialog-close-button {
    width: 10vw;
  }
}
.dialog-close-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
  width: 100%;
  height: 2px;
  background-color: #000;
}
.dialog-close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
          transform: translate(-50%, -50%) rotate(-45deg);
  width: 100%;
  height: 2px;
  background-color: #000;
}

.fixed {
  position: fixed;
  top: var(--scroll-y);
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.user-select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
}