@charset "UTF-8";

/* ==================================================
  商品ページ共通テンプレート (style-product.css)
  PC: 画像(左) + タイトル/詳細(右) の2カラム
  SP: タイトル → 画像 → 詳細 の縦並び
================================================== */

.product-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "media title"
    "media info"
    "media purchase";
  align-content: start;
  column-gap: 40px;
  row-gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 60px;
}

.product-title{
  grid-area: title;
}

.product-title h1{
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  margin: 0;
}

.product-media{
  grid-area: media;
}

.product-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.product-thumbs{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.product-thumb{
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.product-thumb img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.product-thumb.is-active{
  border-color: var(--pink, #EC0C7C);
}

.product-info{
  grid-area: info;
}

.product-info .product-lead{
  font-size: 20px;
  font-weight: 700;
  color: var(--pink, #EC0C7C);
  line-height: 1.7;
  margin: 0 0 16px;
}

.product-info p{
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 16px;
}

.product-info .product-box{
  background: #fffdf2;
  border: 1px solid #333;
  border-radius: 2px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.product-info .product-box h2{
  font-size: 16px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px dashed #999;
  padding-bottom: 10px;
  margin: 0 0 12px;
}

.product-info .product-box p{
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.product-info .product-box p + p{
  margin-top: 10px;
}

.product-info .product-box .product-note{
  font-size: 12px;
  color: #555;
  text-decoration: underline;
}

.product-detail-link{
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--pink, #EC0C7C);
  text-decoration: none;
  margin-top: 8px;
}

.product-detail-link:hover{
  text-decoration: underline;
}

.product-purchase{
  grid-area: purchase;
  margin-top: 32px;
}

.product-price{
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.product-price .product-price-value{
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-left: 4px;
}

.product-variant{
  margin-top: 16px;
  max-width: 420px;
}

.product-variant label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.product-variant-select{
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 40px 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.product-variant-select:focus{
  outline: none;
  border-color: var(--pink, #EC0C7C);
}

.product-cta{
  display: block;
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity .2s ease;
}

.product-cta:hover{
  opacity: .85;
}

/* ==================== レスポンシブ（max-width: 767px） ==================== */
@media (max-width: 767px){

  .product-wrap{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "info"
      "purchase";
    column-gap: 0;
    row-gap: 16px;
    padding: 30px 15px;
  }

  .product-title h1{
    font-size: 24px;
  }

  .product-purchase{
    margin-top: 24px;
  }

  .product-cta{
    max-width: none;
  }

  .product-variant{
    max-width: none;
  }
}
