@charset "UTF-8";
/*---------------------------------------------------------------------------*/
/* 商品詳細
/*---------------------------------------------------------------------------*/
.product .product__list_column_main a {
  color: var(--main-color);
  font-weight: 500;
}
.product .product__title-area {
  margin-bottom: 3rem;
}
.product .product__title {
  text-align: left;
  margin: 3rem auto 0;
  padding-left: var(--space-medium);
  font-size: clamp(1.75rem, 1.645rem + 0.44vw, 2rem);
  font-weight: 600;
  position: relative;
}
.product .product__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background: var(--grad);
}
.product .product__title:after {
  content: none;
}
.product .product__status {
  color: var(--red);
  font-weight: 600;
}

/* ==========================
  カラム
========================== */
.product .product__columns {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.976rem + 2.22vw, 3.75rem);
}
.product .product__gallery {
  order: 1;
}
.product .product__list_column_side {
  order: 2;
  position: static;
  width: 100%;
}
.product .product__spec {
  order: 3;
}
.product .product__description {
  order: 4;
}
@media (min-width: 1024px) {
  .product .product__columns {
    flex-direction: row;
  }
  .product .product__list_column_main {
    width: 65%;
  }
  .product .product__gallery {
    order: 0;
  }
  .product .product__spec {
    order: 0;
  }
  .product .product__description {
    order: 0;
  }
  .product .product__list_column_side {
    order: 0;
    position: sticky;
    top: 5rem;
    width: 35%;
  }
}

/* ==========================
  メイン画像
========================== */
.product .product__gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 1.086rem + 1.77vw, 2.5rem);
  width: 100%;
  margin-bottom: 3rem;
}
.product .product__image-main {
  width: 100%;
  max-width: 520px;
}
.product .product__image-main img.product__item-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.product .product__thumbs {
  display: flex;
  gap: var(--space-medium);
}
.product .product__thumbs li {
  overflow: hidden;
  width: clamp(3.75rem, 2.966rem + 3.32vw, 5.62rem);
  height: clamp(3.75rem, 2.966rem + 3.32vw, 5.62rem);
}
.product .product__thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* ==========================
  スペック
========================== */
.product .product__spec {
  margin-bottom: var(--space-large);
}
.product .product__spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}
.product .product__spec-table th,
.product .product__spec-table td {
  padding: 0 var(--space-medium);
  text-align: left;
  vertical-align: top;
}
.product .product__spec-table th {
  font-weight: normal;
  background: var(--tblTH);
  white-space: nowrap;
}

.product .product__spec-table,
.product .product__spec-table thead,
.product .product__spec-table tbody,
.product .product__spec-table tr,
.product .product__spec-table th,
.product .product__spec-table td {
  display: block;
  width: 100%;
}
.product .product__spec-table th {
  border-bottom: none;
  padding: var(--space-small);
  font-weight: 500;
}
.product .product__spec-table td {
  padding: var(--space-small);
  border-bottom: none;
}

.product .product__spec-table td.link .text-item {
  flex-basis: 100%;
}
.product .product__spec-table td.link .link-wrap {
  display: flex;
  gap: 0 var(--space-small);
  flex-wrap: wrap;
}
.product .note {
  color: #666;
}
@media (min-width: 768px) {
  .product .product__spec-table {
    display: table;
  }
  .product .product__spec-table thead {
    display: table-header-group;
  }
  .product .product__spec-table tbody {
    display: table-row-group;
  }
  .product .product__spec-table tr {
    display: table-row;
  }
  .product .product__spec-table th {
    width: 30%;
  }
  .product .product__spec-table th,
  .product .product__spec-table td {
    display: table-cell;
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-small);
  }
}
@media (any-hover: hover) {
  .product .product__spec-table td.link a:hover {
    opacity: 0.7;
  }
}

/* ==========================
  画像グループ
========================== */
.product .image-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-medium);
  margin: var(--space-medium) 0 var(--space-large);
}
.product .image-item {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-medium);
}
.product .image-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}
@media (min-width: 768px) {
  .product .image-item {
    width: calc((100% - 2rem) / 3);
  }
}

/* ==========================
  youtube
========================== */
.product .video-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-medium);
  margin: var(--space-medium) 0;
}
.product .video-group iframe {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16/9;
  margin: 0 auto;
  height: auto;
}
@media (min-width: 768px) {
  .product .video-group iframe {
    width: calc((100% - 2rem) / 2);
  }
}

/* ==========================
  購入エリア
========================== */
.product .product__list_column_side {
  align-self: flex-start;
}
.product .product__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-large);
}
.product p.cart-error {
  color: var(--red);
  font-weight: bold;
}
.product .product__price-area {
  margin-bottom: var(--space-large);
}
.product .product__price-meta {
  display: flex;
  align-items: center;
  gap: var(--space-small);
  flex-wrap: wrap;
  margin-bottom: var(--space-medium);
}
.product .product__options {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-small);
  align-items: center;
}
.product .product__options select,
.product .product__options input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 0.75rem;
  box-sizing: border-box;
}
.product .product__price {
  font-size: 1.56rem;
  color: var(--red);
  font-weight: 600;
}
.product .product__button-wrap {
  display: flex;
  gap: var(--space-medium);
  flex-wrap: wrap;
  flex-direction: column;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .product .product__button-wrap {
    flex-wrap: nowrap;
    flex-direction: row;
  }
}
.product .product__button {
  display: flex;
  flex-direction: column;
  gap: var(--space-medium);
  width: 100%;
}
.product .product__button .product__cart {
  background: var(--text);
  color: var(--white);
  border: 2px solid var(--text);
  font-size: 1.12rem;
  padding: var(--space-medium);
}
.product .product__button .product__contact {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--text);
  padding: var(--space-medium);
  font-size: var(--space-medium);
}
.product .product__links,
.product .product__back {
  text-align: right;
}
@media (min-width: 1024px) {
  .product .product__options {
    grid-template-columns: 1fr auto;
    gap: var(--space-medium);
  }
  .product .product__options select,
  .product .product__options input {
    width: clamp(8rem, 5.905rem + 8.87vw, 13rem);
  }
  .product .product__price {
    font-size: clamp(1.3rem, 0.7rem + 1.25vw, 1.7rem);
  }
  .product .product__button .product__cart {
    font-size: clamp(1.12rem, 1.015rem + 0.44vw, 1.37rem);
  }
  .product .product__button .product__contact {
    font-size: clamp(1rem, 0.95rem + 0.21vw, 1.12rem);
  }
}

/* 商品説明(旧サイトHTMLをそのまま表示)の表示ガード:
   内容は無加工のまま、大きい画像・表が列幅からはみ出すのだけ防ぐ */
.product .desc-body {
  overflow-x: auto;
}
.product .desc-body img {
  max-width: 100%;
  height: auto;
}
/* 説明内のYouTube等(幅・高さ固定のiframe)を画面内に収める。
   比率は item_detail_block.php のスクリプトが width/height 属性から設定する */
.product .desc-body iframe {
  max-width: 100%;
  border: 0;
}
