@charset "UTF-8";

#page-product {
  background-color: #edebeb;
  padding: 0px 0 80px;
}

.product-head {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.product-item {
  padding-top: 80px;
}

.product-head .product-cat {
  margin-bottom: 0;
  color: #fff;
}

#sauna-product {
  background-image: url(../img/product-head-sauna.png);
  background-position: center;
  background-size: cover;
}

#cladding-product {
  background-image: url(../img/product-head-cladding.png);
  background-position: center;
  background-size: cover;
}

#decking-product {
  background-image: url(../img/product-head-decking.png);
  background-position: center;
  background-size: cover;
}

.product-head .product-cat .product-jp {
  color: #fff;
}

.product-head .product-cat .product-en {
  color: #fff;
}

.product-wrap {
  max-width: 1080px;
  width: 90%;
  padding: 150px 0 0;
  margin: 0 auto;
}

.product-cat {
  text-align: center;
  margin-bottom: 50px;
}

.product-cat .product-en {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  display: block;
}

.product-cat .product-jp {
  font-size: 31px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 10px;
  display: block;
}

h3.term-name {
  display: block;
  width: 100%;
  font-size: 18px;
  letter-spacing: 0.2em;
  background-color: #fff;
  padding: 10px 15px;
}

.a-product-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 5%;
  margin-top: 50px;
  margin-bottom: 60px;
}

.a-product-wrap:last-child {
  margin-bottom: 0;
}

.a-product {
  width: 30%;
  display: block;
}

.a-product-img {
  max-width: 480px;
  max-height: 300px;
  height: 22.3vw;
  overflow: hidden;
  position: relative;
}

.a-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #fff;
}

.a-product-img .main-img01 {
  position: relative;
  z-index: 1;
}

.a-product-img .main-img02 {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  opacity: 0;
  scale: 0.8;
  transition: 0.3s;
  transform-origin: center;
}

.a-product:hover .a-product-img .main-img02 {
  opacity: 1;
  scale: 1;
  transform-origin: center;
}

.a-product-bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a-product-bottom .a-product-bottom-left {
  padding-right: 10px;
  width: calc(100% - 50px);
}

.a-product-btn {
  width: 50px;
}

.a-product-wrap .a-product-name {
  font-size: 18px;
  letter-spacing: 0.2em;
}

.a-product-wrap .a-product-size {
  font-size: 14px;
  letter-spacing: 0.2em;
  line-height: 1.8;
}

.btn04 {
  width: 50px;
  height: 50px;
  border: 1px solid #da291c;
  border-radius: 50%;
  transition: 0.3s;
  position: relative;
}

.btn04::after {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 1px solid #da291c;
  border-right: 1px solid #da291c;
  position: absolute;
  left: 8px;
  top: 45%;
  transform: translateY(-50%);
  rotate: 45deg;
  transition: 0.3s;
}

.a-product:hover .btn04 {
  background-color: #da291c;
}

.a-product:hover .btn04::after {
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  left: 13px;
}

.btn04::before {
  position: absolute;
  content: "";
  width: 0px;
  height: 1px;
  background-color: #da291c;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
}

.a-product:hover .btn04::before {
  width: 18px;
  height: 1px;
  background-color: #fff;
}

.a-cat-product + .a-cat-product {
  margin-top: 80px;
}

@media screen and (max-width: 780px) {
  #page-product {
    padding: 0px 0 100px;
  }

  .product-wrap {
    padding: 100px auto 0;
  }

  .product-item {
    padding-top: 80px;
  }

  .product-cat .product-en {
    font-size: 16px;
  }

  .product-cat .product-jp {
    font-size: 26px;
    margin-top: 5px;
  }

  .a-product-wrap {
    gap: 30px 8%;
    margin-top: 40px;
  }

  .a-product {
    width: 46%;
  }

  .a-product-img {
    max-width: 500px;
    max-height: 420px;
    height: 32.3vw;
  }

  .a-product-bottom .a-product-bottom-left {
    padding-right: 5px;
    width: calc(100% - 40px);
  }

  .a-product-wrap .a-product-name {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .a-product-wrap .a-product-size {
    font-size: 14px;
    letter-spacing: 0.1em;
    line-height: 1.6;
  }

  .btn04 {
    scale: 0.8;
    transform-origin: top right;
  }

  .a-product-bottom {
    margin-top: 10px;
  }

  .a-product-wrap .btn04 {
    transform-origin: right;
  }

  .a-cat-product + .a-cat-product {
    margin-top: 50px;
  }
}

@media screen and (max-width: 480px) {
  .product-cat .product-en {
    font-size: 14px;
  }

  .product-cat .product-jp {
    font-size: 22px;
    margin-top: 0px;
  }

  .a-product-wrap {
    display: block;
  }

  .a-product {
    width: 100%;
  }

  .a-product + .a-product {
    margin-top: 20px;
  }

  .a-product-img {
    max-width: 500px;
    max-height: 420px;
    height: 56vw;
    overflow: hidden;
  }

  .a-product-bottom .a-product-bottom-left {
    padding-right: 5px;
    width: calc(100% - 40px);
  }

  .a-product-wrap .a-product-name {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .a-product-wrap .a-product-size {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .a-cat-product + .a-cat-product {
    margin-top: 40px;
  }
}

/* シングル商品ページ */

#page-single-product {
  padding-top: 100px;
  padding-bottom: 150px;
  background-color: #edebeb;
}

.single-product-content {
  display: flex;
  width: 90%;
  margin-left: 5%;
  gap: 60px;
}

.single-product-left {
  width: 750px;
}

.single-product-right {
  width: 30%;
}

.single-product-head,
.single-product-right .dl {
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.single-product-explain {
  width: 100%;
  padding: 15px 0;
}

.single-product-head {
  padding-top: 0;
}

.single-product-icon {
  width: 30%;
}

.single-product-icon img {
  height: auto;
}

@media screen and (max-width: 1300px) {
  .single-product-content {
    gap: 4.6vw;
  }
}

.single-product-explain p {
  font-size: 16px;
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.1em;
}

.single-product-head .a-product-name {
  font-size: 18px;
  letter-spacing: 0.2em;
}

.single-product-head .a-product-size {
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-top: 10px;
}

.single-product-right .dl {
  display: flex;
  align-items: flex-start;
}

.single-product-right .dl dt {
  font-size: 16px;
  letter-spacing: 0.1em;
  width: 75px;
  line-height: 1.7;
}

.single-product-right .dl dd {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.7;
  width: calc(100% - 75px);
}

.price.single-product {
  font-weight: 300;
  font-size: 15px;
  margin-top: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: 5%;
}

.pricenow {
  font-weight: 400;
  font-size: 20px;
}

@media screen and (max-width: 780px) {
  #page-single-product {
    padding-bottom: 100px;
  }

  .single-product-content {
    flex-direction: column-reverse;
    margin: 0 auto;
  }

  .single-product-left {
    width: 100%;
  }

  .single-product-right {
    width: 100%;
  }

  .single-product-explain p {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.08em;
  }

  .single-product-head {
    margin-top: 30px;
  }
  .single-product-head .a-product-name {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .single-product-head .a-product-size {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .btn01.single-product {
    margin-top: 30px;
  }
}

@media screen and (max-width: 480px) {
  #page-single-product {
    padding: 50px 0;
  }

  .single-product-content {
    gap: 10px;
  }

  .single-product-explain p {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.06em;
  }

  .single-product-head {
    margin-top: 20px;
  }
  .single-product-head .a-product-name {
    font-size: 16px;
  }

  .price.single-product {
    margin-top: 20px;
    scale: 0.8;
    transform-origin: right top;
    margin-right: 0;
  }
}

/* サイズ表 */
.size-table .a-row,
.size-table .a-row .table02 {
  display: flex;
  align-items: center;
}

.size-table .a-row .table00 {
  width: 30%;
}

.size-table .a-row .table01 {
  width: 56%;
}

.table02 {
  width: 44%;
}

.size-table {
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  margin-top: 45px;
}

.size-table .a-row.dt .small {
  font-size: 10px;
  display: block;
  margin-top: -1px;
}

.size-table .a-row.dd {
  font-weight: 300;
  text-align: left;
  line-height: 1.5;
}

.size-table .table02 dt,
.size-table .table02 dd {
  width: 22%;
}

.size-table .a-row.dd {
  padding: 15px 0;
}

.size-table .a-row.dt {
  margin-bottom: 15px;
}

.size-table .a-row.dd:last-of-type {
  padding-bottom: 30px; /* 最初の行の上に30pxのパディング */
}

.size-table .a-row.dt {
  padding: 15px 0;
  border-top: 1px solid rgba(51, 51, 51, 0.5);
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.size-table .a-row.dt dt {
  line-height: 1.5;
  text-align: left;
}

@media screen and (max-width: 480px) {
  .size-table .a-row .table01 {
    width: 50%;
  }

  .table02 {
    width: 50%;
  }
  .size-table .table02 dt,
  .size-table .table02 dd {
    width: 25%;
  }
}

/* ギャラリー */
.a-product-gallery {
  width: 100%;
}

.a-product-main-photo {
  width: 750px;
  height: 630px;
  position: relative; /* 相対位置を設定 */
  background-color: #fff;
}

.a-product-mainImage {
  width: 100%;
  height: 100%;
  position: absolute; /* 重ねて表示 */
  top: 0;
  left: 0;
  opacity: 0; /* デフォルトは非表示 */
  transition: opacity 0.3s; /* フェード効果 */
  object-fit: cover;
  object-position: center;
}

.a-product-mainImage.active {
  opacity: 1; /* アクティブな画像は表示 */
}

.a-product-thumbnail-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
}

.a-product-thumbnail-wrapper {
  display: flex;
  overflow-x: auto; /* 見えるのは4枚のみ */
  overflow-y: hidden;
  gap: 10px; /* サブ画像間のギャップ */
  width: fit-content;
}

.a-product-thumbnail {
  width: 180px;
  height: 180px;
  cursor: pointer;
  transition: 0.3s;
  object-fit: cover;
  object-position: center;
}

.a-product-img-box {
  width: 180px;
  height: 180px;
  background-color: #fff;
}

@media screen and (max-width: 1300px) {
  .a-product-gallery {
    max-width: 750px;
    width: 57.6vw;
  }

  .a-product-main-photo {
    max-width: 750px;
    max-height: 630px;
    width: 57.6vw;
    height: 48.5vw;
  }

  .a-product-thumbnail-wrapper {
    display: flex;
    overflow-x: auto; /* 見えるのは4枚のみ */
    gap: 0.7vw; /* サブ画像間のギャップ */
  }

  .a-product-thumbnail {
    max-width: 180px;
    max-height: 180px;
    width: 13.8vw;
    height: 13.8vw;
  }

  .a-product-img-box {
    max-width: 180px;
    max-height: 180px;
    width: 13.8vw;
    height: 13.8vw;
  }
}

@media screen and (max-width: 780px) {
  .a-product-gallery {
    max-width: 1000px;
    width: 100%;
  }

  .a-product-main-photo {
    max-width: 1000px;
    max-height: 1000px;
    width: 100%;
    height: 58vw;
  }

  .a-product-thumbnail-wrapper {
    display: flex;
    overflow-x: auto; /* 見えるのは4枚のみ */
    gap: 0.6vw; /* サブ画像間のギャップ */
  }

  .a-product-thumbnail {
    max-width: 3000px;
    max-height: 3000px;
    width: 21.6vw;
    height: 21.6vw;
  }

  .a-product-img-box {
    max-width: 3000px;
    max-height: 3000px;
    width: 21.6vw;
    height: 21.6vw;
  }
}

.single-product-bottom {
  width: 100%;
  margin: 0 auto;
  margin-top: 50px;
}

.single-product-btn-list {
  display: flex;
  justify-content: space-between;
}

.single-product-bottom p {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.6;
}

.single-product-bottom .btn03 {
  padding: 20px 40px;
  background-color: #da291c;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.1em;
  display: block;
  width: fit-content;
  /* margin: 0 auto; */
  margin-top: 40px;
  position: relative;
  transition: 0.3s;
  width: 50%;
  text-align: center;
}

.single-product-bottom .btn03 + .btn03 {
  margin-left: 30px;
  background-color: #333;
}

.single-product-bottom .btn03::after {
  content: "";
  width: 12px;
  height: 12px;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;
  position: absolute;
  rotate: -45deg;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  transition: 0.3s;
}

.single-product-bottom .btn03:hover {
  background-color: #333;
}

.single-product-bottom .btn03 + .btn03:hover {
  background-color: #da291c;
}

@media screen and (max-width: 780px) {
  .single-product-bottom {
    margin-top: 50px;
    width: 90%;
  }

  .single-product-bottom p {
    font-size: 16px;
  }

  .single-product-btn-list {
    display: block;
  }

  .single-product-bottom .btn03 + .btn03 {
    margin-left: 0;
  }

  .single-product-bottom .btn03 {
    padding: 20px 40px;
    font-size: 16px;
    margin-top: 30px;
    width: auto;
  }

  .single-product-bottom .btn03::after {
    width: 10px;
    height: 10px;
    right: 15px;
  }
}

@media screen and (max-width: 480px) {
  .single-product-bottom {
    margin-top: 50px;
  }

  .single-product-bottom .btn03 {
    margin-top: 20px;
  }
}
