html.tk-gallery-view .page-head {
  background-color: #1b1b1b;
  background-image: linear-gradient(rgba(27, 27, 27, .9), rgba(27, 27, 27, .9)), url('https://kuzasakougei.jp/system_panel/uploads/images/pattern.png')
}

.page-gallery-detail .gallery-reference {
  background: #1b1b1b;
  color: #ffffff;
  padding: 0
}

.page-gallery-detail .tk-gallery-wrap.detail-wrap {
  width: 100%;
  max-width: none;
  padding: 130px 30px
}

.page-gallery-detail .product-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center
}

.page-gallery-detail .product-detail>.category {
  font-family: var(--english);
  font-size: 18px;
  letter-spacing: .14em;
  font-weight: 700;
  color: #66943f;
  margin-bottom: 15px
}

.page-gallery-detail .product-detail>.detail-title {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 30px
}

.page-gallery-detail .product-photo {
  width: 800px;
  max-width: 100%;
  padding: 15px;
  background: #ffffff;
  margin: 0 auto 35px
}

.page-gallery-detail .product-photo>img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: cover
}

.page-gallery-detail .product-detail>div:not(.product-photo):not(.button-row) {
  width: 800px;
  max-width: 100%
}

.page-gallery-detail .product-detail>div:not(.product-photo):not(.button-row)>p {
  font-size: 16px;
  text-align: center;
  line-height: 1.9
}

.page-gallery-detail .product-detail .plan-price {
  font-family: var(--serif);
  font-size: 26px !important;
  line-height: 1.6;
  margin: 35px 0 0
}

.page-gallery-detail .button-row {
  gap: 20px;
  margin-top: 70px;
  justify-content: center
}

.page-gallery-detail .button-row>.more {
  background-color: #f3f3f3;
  color: #333333;
  margin: 0
}

.page-gallery-detail .button-row>.purchase-link {
  outline: 1px solid #d9a518;
  outline-offset: -1px
}

@media(max-width:1100px) {
  .page-gallery-detail .tk-gallery-wrap.detail-wrap {
    padding-block: 90px
  }

  .page-gallery-detail .product-photo {
    width: 700px
  }

  .page-gallery-detail .product-detail>.detail-title {
    font-size: 31px
  }
}

@media(max-width:768px) {
  .page-gallery-detail .tk-gallery-wrap.detail-wrap {
    padding: 70px 25px
  }

  .page-gallery-detail .button-row {
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px
  }

  .page-gallery-detail .product-detail>div:not(.product-photo):not(.button-row)>p {
    text-align: left
  }
}

@media(max-width:576px) {
  .page-gallery-detail .tk-gallery-wrap.detail-wrap {
    padding: 55px 20px 70px
  }

  .page-gallery-detail .product-detail>.detail-title {
    font-size: 28px
  }

  .page-gallery-detail .product-photo {
    padding: 10px
  }

  .page-gallery-detail .product-detail>div:not(.product-photo):not(.button-row)>p {
    font-size: 14px
  }

  .page-gallery-detail .product-detail .plan-price {
    font-size: 22px !important;
    text-align: center !important
  }

  .page-gallery-detail .button-row {
    flex-direction: column;
    align-items: center;
    gap: 22px
  }
}

.page-gallery-detail .button-row>.more {
  -webkit-mask-image: url("data:image/svg+xml,%3Cns0%3Asvg%20xmlns%3Ans0%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20overflow%3D%22visible%22%20style%3D%22display%3A%20block%3B%22%20width%3D%22276.9%22%20height%3D%2251.34%22%20viewBox%3D%220%200%20276.9%2051.34%22%20fill%3D%22none%22%3E%0A%3Cns0%3Apath%20id%3D%22Vector%22%20d%3D%22M261.69%208.66H259.88V7.02C259.88%203.97%20257.41%201.5%20254.36%201.5H22.54C19.49%201.5%2017.02%203.97%2017.02%207.02V8.66H15.21C7.64%208.66%201.5%2014.8%201.5%2022.37V28.97C1.5%2036.54%207.64%2042.68%2015.21%2042.68H17.02V44.32C17.02%2047.37%2019.49%2049.84%2022.54%2049.84H254.36C257.41%2049.84%20259.88%2047.37%20259.88%2044.32V42.68H261.69C269.26%2042.68%20275.4%2036.54%20275.4%2028.97V22.37C275.4%2014.8%20269.26%208.66%20261.69%208.66Z%22%20stroke-width%3D%223%22%20stroke-miterlimit%3D%2210%22%20stroke%3D%22%234F8033%22%20fill%3D%22%23ffffff%22%20%2F%3E%0A%3C%2Fns0%3Asvg%3E");
  mask-image: url("data:image/svg+xml,%3Cns0%3Asvg%20xmlns%3Ans0%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20overflow%3D%22visible%22%20style%3D%22display%3A%20block%3B%22%20width%3D%22276.9%22%20height%3D%2251.34%22%20viewBox%3D%220%200%20276.9%2051.34%22%20fill%3D%22none%22%3E%0A%3Cns0%3Apath%20id%3D%22Vector%22%20d%3D%22M261.69%208.66H259.88V7.02C259.88%203.97%20257.41%201.5%20254.36%201.5H22.54C19.49%201.5%2017.02%203.97%2017.02%207.02V8.66H15.21C7.64%208.66%201.5%2014.8%201.5%2022.37V28.97C1.5%2036.54%207.64%2042.68%2015.21%2042.68H17.02V44.32C17.02%2047.37%2019.49%2049.84%2022.54%2049.84H254.36C257.41%2049.84%20259.88%2047.37%20259.88%2044.32V42.68H261.69C269.26%2042.68%20275.4%2036.54%20275.4%2028.97V22.37C275.4%2014.8%20269.26%208.66%20261.69%208.66Z%22%20stroke-width%3D%223%22%20stroke-miterlimit%3D%2210%22%20stroke%3D%22%234F8033%22%20fill%3D%22%23ffffff%22%20%2F%3E%0A%3C%2Fns0%3Asvg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  border-radius: 0;
  outline: none
}

.page-gallery-detail .button-row>.purchase-link {
  filter: hue-rotate(-45deg)
}
.product-detail .plan-price > span {
  font-size: 12px;
  margin-left: 6px;
  white-space: nowrap;
}
/* 作品説明・仕様・詳細画像 */
html.page-gallery-detail .product-detail:has(> .work-details) {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

html.page-gallery-detail .product-detail > .product-photo {
  width: 100%;
  max-width: 800px;
  margin: 32px auto 20px;
}

html.page-gallery-detail .product-photo > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

html.page-gallery-detail .product-detail > .work-description,
html.page-gallery-detail .product-detail > .work-specs,
html.page-gallery-detail .product-detail > .work-purchase,
html.page-gallery-detail .product-detail > .work-details {
  width: 100%;
  max-width: 880px;
  margin: 40px auto 0;
  padding: 0;
  border: 0;
  color: inherit;
}

html.page-gallery-detail .product-detail > .work-description {
  text-align: left;
}

html.page-gallery-detail .product-detail > .work-description > p {
  margin: 0;
  color: inherit;
  text-align: left;
  line-height: 1.9;
}

html.page-gallery-detail .product-detail > .work-description > p + p {
  margin-top: 24px;
}

html.page-gallery-detail .work-description > .eyebrow,
html.page-gallery-detail .work-details > .eyebrow {
  margin-bottom: 12px;
  color: #86ac66;
  text-align: center;
}

html.page-gallery-detail .work-description > .lead-title,
html.page-gallery-detail .work-details > .lead-title {
  margin: 0 0 28px;
  color: inherit;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

/* 作品仕様 */
html.page-gallery-detail .work-spec-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #555555;
  text-align: left;
}

html.page-gallery-detail .work-spec-row > p {
  margin: 0;
  color: inherit;
}

html.page-gallery-detail .work-spec-row > p:first-child {
  color: #aaaaaa;
}

/* 価格・購入案内 */
html.page-gallery-detail .work-purchase > p {
  margin: 0;
  color: inherit;
}

html.page-gallery-detail .work-purchase > .plan-price {
  margin: 12px 0 24px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.6;
}

html.page-gallery-detail .work-purchase > .plan-price > span {
  margin-left: 6px;
  font-size: 12px;
  white-space: nowrap;
}

html.page-gallery-detail .work-purchase > .button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}

html.page-gallery-detail .work-purchase .more {
  max-width: 100%;
  margin: 0;
}

html.page-gallery-detail .work-purchase .more > p {
  white-space: nowrap;
}

/* 詳細写真 */
html.page-gallery-detail .work-details > p {
  margin: 0;
  color: inherit;
}

html.page-gallery-detail .work-detail-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

html.page-gallery-detail .work-detail-card {
  min-width: 0;
  text-align: left;
}

html.page-gallery-detail .work-detail-card > .img-tool {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #ffffff;
}

html.page-gallery-detail .work-detail-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  transform: scale(1.55);
}

html.page-gallery-detail .work-detail-card:nth-child(1) img {
  transform-origin: 30% 25%;
}

html.page-gallery-detail .work-detail-card:nth-child(2) img {
  transform-origin: 70% 45%;
}

html.page-gallery-detail .work-detail-card:nth-child(3) img {
  transform-origin: 45% 75%;
}

html.page-gallery-detail .work-detail-card > p {
  margin: 12px 0 0;
  color: inherit;
}

html.page-gallery-detail .work-detail-card > p:first-of-type {
  color: #86ac66;
}

html.page-gallery-detail .work-detail-card > .card-title {
  margin: 8px 0 0;
  color: inherit;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
}

/* タブレット */
@media (max-width: 900px) {
  html.page-gallery-detail .work-detail-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  html.page-gallery-detail .work-detail-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    justify-self: center;
  }

  html.page-gallery-detail .work-spec-row {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
  }
}

/* スマートフォン */
@media (max-width: 576px) {
  html.page-gallery-detail .product-detail > .work-description,
  html.page-gallery-detail .product-detail > .work-specs,
  html.page-gallery-detail .product-detail > .work-purchase,
  html.page-gallery-detail .product-detail > .work-details {
    margin-top: 32px;
  }

  html.page-gallery-detail .work-spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }

  html.page-gallery-detail .work-detail-images {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  html.page-gallery-detail .work-detail-card,
  html.page-gallery-detail .work-detail-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    max-width: 440px;
    justify-self: center;
  }

  html.page-gallery-detail .work-purchase > .button-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  html.page-gallery-detail .work-description > .lead-title,
  html.page-gallery-detail .work-details > .lead-title {
    margin-bottom: 20px;
  }
}