/* =============================================================
 * Shop item detail
 * =========================================================== */

.p-shopItem {
  width: 100%;
  margin: 0;
  padding: 72px 0 0;
  color: #151112;
  background-color: #fde9e7;
}

.p-shopItem,
.p-shopItem * {
  box-sizing: border-box;
}

.p-shopItem__inner {
  width: min(100%, 500px);
  margin-inline: auto;
  padding: 16px 16px 80px 16px;
  background-color: #fff;
}

.p-shopItem__movie {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 24px;
  background: #f5f3f3;
}

.p-shopItem__gallery {
  width: 100%;
  margin: 0;
}

.p-shopItem__mainImage,
.p-shopItem__mainCarousel {
  position: relative;
  overflow: visible;
  width: 100%;
  margin: 0;
  background: #f3f2f2;
}

.p-shopItem__mainImage,
.p-shopItem__mainCarousel .splide__slide {
  aspect-ratio: 1 / 1;
}

.p-shopItem__mainImage img,
.p-shopItem__mainCarousel .splide__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
}

.p-shopItem__mainCarousel::after,
.p-shopItem__mainImage::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.p-shopItem__mainCarousel::before,
.p-shopItem__mainImage::before {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  width: 7px;
  height: 2px;
  background: #fff;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: center;
}

.p-shopItem__thumbnails {
  margin-top: 16px;
}

.p-shopItem__thumbnails .splide__track {
  overflow: visible;
}

.p-shopItem__thumbnails .splide__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  transform: none !important;
}

.p-shopItem__thumbnails .splide__slide {
  position: relative;
  overflow: hidden;
  width: auto !important;
  aspect-ratio: 1 / 1;
  border: none !important;
  border-color: transparent !important;
  background: #f3f2f2;
  cursor: pointer;
  opacity: 1;
}

.p-shopItem__thumbnails .splide__slide.is-active {
  border: 4px solid #dcb3b7 !important;
  border-radius: 2px;
}

.p-shopItem__thumbnails .splide__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-shopItem__thumbnails .splide__slide:hover img {
    transform: scale(1.055);
    filter: brightness(0.88);
  }
}

.p-shopItem__summary {
  padding-top: 29px;
  text-align: left;
}

.p-shopItem__titleRow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 11px;
}

.p-shopItem__name {
  margin: 0;
  color: #151112;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.p-shopItem__englishName {
  margin: 0;
  color: #151112;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-shopItem__favorite {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.p-shopItem__favorite .p-favoriteBtn,
.p-shopItem__favorite button,
.p-shopItem__favorite a {
  gap: 8px;
  min-height: 31px;
  padding: 6px 16px;
  border: 1px solid #d8d3d3;
  border-radius: 0;
  background: #fff;
  color: #aaa5a5;
  font-size: 14px;
  line-height: 1.4;
}

.p-shopItem__favorite .p-favoriteBtn::before {
  position: static;
  transform: none;
}

.p-shopItem__purchase {
  margin-top: 27px;
  text-align: left;
}

.p-shopItem__purchase form {
  margin: 0;
}

.p-shopItem__skuSingle,
.p-shopItem__skuMulti {
  display: grid;
  gap: 18px;
}

.p-shopItem__sku {
  padding: 0;
  border: 0;
  background: transparent;
}

.p-shopItem__skuName {
  margin: 0 0 16px;
  color: #151112;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.p-shopItem .p-options {
  margin-bottom: 20px;
}

.p-shopItem .p-options__item {
  margin: 0;
}

.p-shopItem .p-options__name {
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.5;
}

.p-shopItem .p-price {
  text-align: left;
}

.p-shopItem .p-price__cprice {
  display: block;
  margin-bottom: 7px;
  color: #9d9898;
  font-family: 'Oswald',"Arial Narrow", sans-serif;;
  font-size: 12px;
  text-decoration: line-through;
}

.p-shopItem .p-price__price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 3px;
  color: #151112;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.p-shopItem .p-price__amount {
  color: inherit;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
}

.p-shopItem .p-price__price .tax {
  margin-left: 7px;
  font-size: 11px;
  font-weight: 400;
}

.p-shopItem .p-skuform {
  gap: 20px;
}

.p-shopItem .p-skuform__cart {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.p-shopItem .p-skuform__price,
.p-shopItem .p-skuform__btn {
  grid-column: 1 / -1;
}

.p-shopItem .p-skuform__quantity,
.p-shopItem .p-skuform__zaiko {
  display: none;
}

.p-shopItem .p-skuform__btn {
  position: relative;
}

.p-shopItem .p-skuform__btn .skubutton {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 13px 24px 13px 58px;
  border: 1px solid #151112;
  border-radius: 6px;
  background: #151112;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

/* 指定SVGのショッピングバッグアイコン */
.p-shopItem .p-skuform__btn::before {
  position: absolute;
  top: 50%;
  left: calc(50% - 75px);
  z-index: 1;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  color: #fff;
  content: "";
  pointer-events: none;
  transform: translate(-100%, -50%);
  transition: color 0.25s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.667 24V5.333h4.666v-.666q0-1.944 1.362-3.306Q10.055.001 12 .001q1.944 0 3.305 1.36 1.362 1.362 1.362 3.306v.666h4.666V24zM4 22.667h16v-16h-3.333v4h-1.334v-4H8.667v4H7.333v-4H4zM8.667 5.333h6.666v-.666q0-1.41-.962-2.37-.963-.964-2.371-.964t-2.37.963q-.963.963-.963 2.37z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.667 24V5.333h4.666v-.666q0-1.944 1.362-3.306Q10.055.001 12 .001q1.944 0 3.305 1.36 1.362 1.362 1.362 3.306v.666h4.666V24zM4 22.667h16v-16h-3.333v4h-1.334v-4H8.667v4H7.333v-4H4zM8.667 5.333h6.666v-.666q0-1.41-.962-2.37-.963-.964-2.371-.964t-2.37.963q-.963.963-.963 2.37z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

/* 旧CSSで作っていた持ち手用の疑似要素を無効化 */
.p-shopItem .p-skuform__btn::after {
  display: none;
  content: none;
}

.p-shopItem .p-skuform__btn .skubutton:hover {
  background: #fff;
  color: #151112;
}

.p-shopItem .p-skuform__btn:hover::before {
  color: #151112;
}

.p-shopItem .p-skuform__btn-disabled {
  grid-column: 1 / -1;
  min-height: 56px;
  padding: 16px;
  border-radius: 6px;
  background: #d8d3d3;
  color: #fff;
  text-align: center;
}

.p-shopItem .error_message:empty {
  display: none;
}

.p-shopItem__content {
  margin-top: 64px;
  color: #4c4243;
  font-size: 14px;
  line-height: 2;
}

.p-shopItem__content > :first-child {
  margin-top: 0;
}

.p-shopItem__content > :last-child {
  margin-bottom: 0;
}

.p-shopItem__content img {
  display: block;
  width: 100%;
  height: auto;
}

.p-shopItem__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 48px;
}

.p-shopItem__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #151112;
  color: #151112;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.p-shopItem__action:hover {
  background: #151112;
  color: #fff;
}

.p-shopItem__action--sub {
  border-color: #d9c2c4;
  background: #f8eeee;
}

.p-shopItem__customField,
.p-shopItem__assistance {
  margin-top: 64px;
}

.p-shopItem__customField .item_custom_field {
  width: 100%;
}

.p-shopItem__assistanceTitle {
  margin: 0 0 24px;
  color: #151112;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
}

.p-shopItem__assistanceList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-shopItem__assistanceItem {
  min-width: 0;
}

.p-shopItem__assistanceLink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-shopItem__assistanceImage {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f2f2;
}

.p-shopItem__assistanceImage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.p-shopItem__assistanceName {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.p-shopItem__assistancePrice {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.p-shopItem__assistanceAmount {
  margin-right: 2px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.p-shopItem__assistanceStock {
  margin-top: 4px;
  color: #8b7779;
  font-size: 10px;
}

/* =============================================================
 * Item lightbox
 * =========================================================== */

.p-itemLightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.p-itemLightbox:not([open]) {
  display: none;
}

.p-itemLightbox::backdrop {
  background: rgba(21, 17, 18, 0.66);
}

.p-itemLightbox[open]::backdrop {
  animation: itemLightboxBackdropFade 0.35s ease both;
}

.p-itemLightbox__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px 96px 56px;
}

.p-itemLightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(72vw, 760px);
  max-height: calc(100dvh - 128px);
  margin: 0;
  padding: 12px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.p-itemLightbox[open] .p-itemLightbox__figure {
  animation: itemLightboxFigureFade 0.42s ease both;
}

.p-itemLightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 152px);
  object-fit: contain;
}

.p-itemLightbox__image.is-switching {
  animation: itemLightboxImageFade 0.36s ease both;
}

.p-itemLightbox__close,
.p-itemLightbox__arrow {
  position: absolute;
  z-index: 2;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.p-itemLightbox__close {
  top: 28px;
  right: max(28px, calc((100vw - min(72vw, 760px)) / 2));
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.p-itemLightbox__closeIcon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.p-itemLightbox__closeIcon::before,
.p-itemLightbox__closeIcon::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}

.p-itemLightbox__closeIcon::before {
  transform: rotate(45deg);
}

.p-itemLightbox__closeIcon::after {
  transform: rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
  .p-itemLightbox__close:hover .p-itemLightbox__closeIcon {
    transform: rotate(45deg);
  }
}

.p-itemLightbox__close:focus-visible .p-itemLightbox__closeIcon {
  transform: rotate(45deg);
}

.p-itemLightbox__arrow {
  top: 50%;
  width: 44px;
  height: 72px;
  transform: translateY(-50%);
}

.p-itemLightbox__arrow--prev {
  left: max(24px, calc((100vw - min(72vw, 760px)) / 2 - 72px));
}

.p-itemLightbox__arrow--next {
  right: max(24px, calc((100vw - min(72vw, 760px)) / 2 - 72px));
}

.p-itemLightbox__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.p-itemLightbox__arrow--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.p-itemLightbox__arrow--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.p-itemLightbox__close:focus-visible,
.p-itemLightbox__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

body.is-itemLightboxOpen {
  overflow: hidden;
}

@keyframes itemLightboxBackdropFade {
  from {
    background: rgba(21, 17, 18, 0);
  }

  to {
    background: rgba(21, 17, 18, 0.66);
  }
}

@keyframes itemLightboxFigureFade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes itemLightboxImageFade {
  from {
    opacity: 0;
    transform: scale(0.99);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =============================================================
 * Tablet
 * =========================================================== */

@media (max-width: 1032px) {
	.p-itemLightbox__close {
		top: 17%;
    	right: 13%;
  	}
}

@media (max-width: 1024px) {
  .p-shopItem {
    padding: 0 0 72px;
  }

  .p-shopItem__inner {
    width: min(100%, 500px);
    padding-inline: 11px;
  }

  .p-itemLightbox__inner {
    padding: 64px 64px 48px;
  }

  .p-itemLightbox__figure {
    width: min(78vw, 720px);
  }

  .p-itemLightbox__arrow--prev {
    left: 16px;
  }

  .p-itemLightbox__arrow--next {
    right: 16px;
  }
}

/* =============================================================
 * Smartphone
 * =========================================================== */

@media (max-width: 600px) {
  .p-shopItem {
    padding-top: 72px;
  }

  .p-shopItem__inner {
    width: 100%;
    padding-inline: 11px;
  }

  .p-shopItem__thumbnails {
    margin-top: 16px;
  }

  .p-shopItem__thumbnails .splide__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .p-shopItem__summary {
    padding-top: 25px;
  }

  .p-shopItem__name {
    font-size: 20px;
  }

  .p-shopItem .p-price__amount {
    font-size: 38px;
  }

  .p-shopItem__content {
    margin-top: 48px;
  }

  .p-shopItem__customField,
  .p-shopItem__assistance {
    margin-top: 48px;
  }

  .p-itemLightbox__inner {
    padding: 64px 14px 34px;
  }

  .p-itemLightbox__figure {
    width: 100%;
    max-height: calc(100dvh - 110px);
    padding: 7px;
  }

  .p-itemLightbox__image {
    max-height: calc(100dvh - 124px);
  }

  .p-itemLightbox__close {
    top: 20px;
    right: 16px;
  }

  .p-itemLightbox__arrow {
    top: auto;
    bottom: 8px;
    width: 52px;
    height: 44px;
    transform: none;
  }

  .p-itemLightbox__arrow--prev {
    left: calc(50% - 66px);
  }

  .p-itemLightbox__arrow--next {
    right: calc(50% - 66px);
  }

  .p-itemLightbox__arrow::before {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-shopItem__thumbnails .splide__slide img,
  .p-shopItem .p-skuform__btn .skubutton,
  .p-shopItem .p-skuform__btn::before,
  .p-shopItem__action,
  .p-itemLightbox__closeIcon {
    transition: none;
  }

  .p-itemLightbox[open]::backdrop,
  .p-itemLightbox[open] .p-itemLightbox__figure,
  .p-itemLightbox__image.is-switching {
    animation: none;
  }
}