@charset "utf=8";

.top-image {
  width: 70%;
  height: 520px;
  overflow: hidden;
}

.top-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.product-main {
  padding: 12% 7%;
}

.product-main .product-figure {
  background: #fff;
  width: 100%;
}

.product-main img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto;
}

/* 右：商品情報 */
.product-info .product-title {
  font-size: 1.5rem;
  line-height: 1.4;
  padding: 50px 0 24px;
  font-weight: 600;
}

.product-info .product-title dd {
  padding: 50px 100px 24px;
}

.product-info .product-price {
  padding: 0 0 48px;
  font-size: 1.25rem;
  text-align: right;
}

.product-info .price {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-info .tax {
  font-size: 0.875rem;
  color: #666;
  margin-left: 6px;
}

.product-info .product-lead {
  margin: 0 0 16px;
  line-height: 1.8;
  color: #333;
}

/* 仕様*/
.product-specs {
  padding: 60px 20px 34px;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 16px;
  row-gap: 8px;
}

.product-specs>div {
  display: contents;
}

/* dt/ddをグリッドに直置き */
.product-specs dt {
  font-weight: 600;
  color: #555;
}

.product-specs dd {
  margin: 0;
  color: #222;
}

/* 購入フォーム */
.purchase-box {
  position: relative;
}

.purchase {
  display: flex;
  gap: 12px;
  align-items: center;
  position: absolute;
  right: 5%;
}

.purchase .qty {
  padding: 8px 10px;
  border: 1px solid #ccc;
  background: #fff;
  min-width: 120px;
}

.purchase .add-to-cart {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-weight: 600;
}

.purchase .add-to-cart:hover {
  opacity: 0.9;
}

.product-notes p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #666;
}

/* おすすめ関連商品 */

.related-item-container {
  padding-top: 100px;
}

.items-container {
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  align-items: start;
}

.related-item-container h3 {
  font-size: 1.3em;
}

.related-item-container h3 span {
  padding-left: 8px;
  font-size: 18px;
}

.related-item-container h3 {
  position: relative;
  display: inline-block;
}

.related-item-container h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 99%;
  height: 1.2px;
  background-color: #000;
  left: 4px
}

.items img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border: 1px solid #eee;
  height: auto;
}

.items dl {
  position: relative;
}

.items dt {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.8;
}

.items .price {
  padding-top: 5px;
  font-weight: 600;
  position: absolute;
  right: 0;
}


@media (max-width: 800px) {
  .related-list {
    grid-template-columns: 1fr;
    /* 1カラムに */
    gap: 24px;
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-main {
    padding: 16px;
  }

  .product-info .product-title {
    font-size: 1.3rem;
  }
}