@charset "utf-8";

/* 全体の設定 */
main {
  background-color: rgb(159, 159, 160);
}

main p,
main h2 {
  color: rgb(146, 202, 237);
}
.content {
  display: flex;
  width: 80%;
  margin: 0 auto;
  padding-bottom: 200px;
}
.image,
.detail {
  width: 50%;
  padding-top: 250px;
}
/* 商品詳細部分の設定（右側） */

.detail {
  margin-left: 100px;
  max-width: 400px;
}

.category .new {
  background-color: rgb(57, 17, 9);
  color: rgb(146, 202, 237);
  padding: 5px;
  width: 45px;
  font-size: 0.6rem;
  text-align: center;
  margin-bottom: 10px;
}

.name h2 {
  font-size: 1.8rem;
}

.jp-name {
  font-size: 1rem;
  padding-bottom: 15px;
}
.description p {
  font-size: 0.8rem;
  padding-bottom: 20px;
  color: #fff;
}

.price {
  text-align: end;
  font-size: 1.2rem;
  padding: 20px 0;
}

.price-tax {
  font-size: 0.8rem;
}

.color-title {
  margin-bottom: 15px;
  font-size: 1rem;
}
.color-list {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 60px;
  margin-top: 20px;
}

.color-item {
    margin-top: 15px;
}
.color-item img {
  width: 50%;
  max-width: 30px;
  position: relative;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.color-name {
  font-family: serif;
  font-size: 0.8rem;
  text-align: center;
  color: rgb(255, 255, 255);
}

/* BUY NOW のボタンの設定 */
.body a {
  text-decoration: none;
}

.body button {
  padding: 0;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  border: none;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ボタンのスタイル */
.buynow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  color: rgb(146, 202, 237);
  font-size: 1.2rem;
  background-color: rgb(159, 159, 160);
  box-shadow: -4px -4px 8px rgb(205, 204, 204), 4px 4px 8px rgb(0 0 0 / 24%);
}

@media (any-hover: hover) {
  .buynow {
    transition: box-shadow 0.2s;
  }

  .buynow:hover {
    box-shadow: -2px -2px 4px #fff, 2px 2px 4px rgb(0 0 0 / 24%);
  }

  .buynow:active {
    background-color: #ebebeb;
    box-shadow: inset 4px 4px 8px rgb(0 0 0 / 16%);
  }
}

/* 写真の設定（左側） */
.slider-container {
  width: 80%;
  margin: 0 auto;
  max-width: 350px;
}
.slick-slide {
  padding: 2px;
}
#thumbs .slick-current img {
  border: 3px solid rgb(134, 209, 244);
}

.slick-prev,
.slick-next {
  z-index: 2;
}
.slick-prev {
  left: 0;
}
.slick-next {
  right: 0;
}

.image img{
    object-fit: cover;
    aspect-ratio: 1;
}
