@charset "UTF-8";

/* ==================================================
   HIGOYA PRODUCT DETAIL
   商品詳細ページ専用CSS

   PC / Smartphone 共通
================================================== */


/* ==================================================
   01. 商品詳細 共通
================================================== */

/* パンくずの最後（商品名）を非表示 */
.fs-body-product .fs-c-breadcrumb__list li:last-child {
  display: none;
}


/* ==================================================
   02. 商品レビュー
================================================== */

/* 並び替え・絞り込みを非表示 */
.frv-c-reviewCards__ctrl {
  display: none !important;
}


/* レビュー読み込み完了まで非表示 */
.frv-c-averageRating,
#frv-review-area {
  visibility: hidden;
}


/* レビューが1件以上ある場合だけ表示 */
.frv-c-averageRating.frv-review-visible,
#frv-review-area.frv-review-visible {
  visibility: visible;
}


/* レビュー0件の場合は完全に非表示 */
.frv-review-hidden {
  display: none !important;
}


/* レビュー件数に連動する要素 */
.frv-review-dependent {
  display: none;
}

.frv-review-dependent.frv-review-visible {
  display: block;
}


/* ==================================================
   03. レビュー投稿導線
================================================== */

.review-write-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 10px 18px;

  border: 1px solid #bbb;
  border-radius: 4px;

  background: #fff;
  color: #333;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;

  text-decoration: none;
}


.review-write-button:hover {
  background: #f7f7f7;
}


.review-write-button .review-write-icon {
  display: block;

  width: 16px !important;
  height: 16px !important;
  min-width: 16px;

  flex: 0 0 16px;

  fill: currentColor;
}


.review-write-point {
  margin: 10px 0 0;

  font-size: 14px;
  line-height: 1.6;
}


.review-write-point strong {
  font-weight: 700;
}


.review-write-note {
  margin: 5px 0 0;

  font-size: 12px;
  line-height: 1.6;

  color: #888;
}


.product-review-action {
  margin: 18px 0 24px;

  padding-top: 0;

  border-top: none;
}


/* ==================================================
   04. レビュー評価エリア
================================================== */

#frv-review-area .frv-l-reviewArea__averageRating {
  padding-bottom: 20px;

  border-bottom: 1px solid #eee;
}


/* ==================================================
   05. 個別レビュー
================================================== */

#frv-review-area .frv-c-reviewCard {
  box-sizing: border-box;

  padding: 16px 18px;

  border: 1px solid #e5e5e5;
  border-radius: 6px;

  background: #fff;

  box-shadow: none;
}


/* レビュー同士の間隔 */
#frv-review-area .frv-c-reviewCard + .frv-c-reviewCard {
  margin-top: 16px;
}


/* 星・名前・日付 */
#frv-review-area .frv-c-reviewCard__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 12px;

  margin-bottom: 10px;
}


/* 星＋投稿者名 */
#frv-review-area .frv-c-reviewCard__userInfo {
  display: flex;
  align-items: center;

  gap: 10px;
}


/* 星 */
#frv-review-area .frv-c-reviewCard .frv-c-starRating {
  font-size: 18px;
}


/* 投稿者名 */
#frv-review-area .frv-c-reviewCard__userName {
  font-size: 14px;
  font-weight: 600;

  color: #333;
}


/* 投稿日 */
#frv-review-area .frv-c-reviewCard__date {
  font-size: 12px;

  color: #888;

  white-space: nowrap;
}


/* レビュー本文 */
#frv-review-area .frv-c-reviewCard__text {
  font-size: 14px;
  line-height: 1.75;

  color: #333;
}


/* ページ送り */
#frv-review-area .frv-c-reviewCards__pagination {
  margin-top: 20px;
}


/* ==================================================
   06. Smartphone：レビュー
================================================== */

@media screen and (max-width: 767px) {

  #frv-review-area {
    margin-bottom: 28px;
  }


  #frv-review-area .frv-c-reviewCard {
    padding: 14px;
  }


  #frv-review-area .frv-c-reviewCard__header {
    gap: 8px;
  }


  #frv-review-area .frv-c-reviewCard__userInfo {
    flex-wrap: wrap;

    gap: 6px 8px;
  }


  .review-write-button {
    min-height: 44px;
  }


  .review-write-point {
    margin-top: 8px;

    font-size: 13px;
    line-height: 1.6;
  }


  .review-write-note {
    margin-top: 4px;

    font-size: 11px;
    line-height: 1.6;
  }

}


/* ==================================================
   07. Smartphone：購入エリア
================================================== */

@media screen and (max-width: 767px) {

  /* ------------------------------------------
     在庫
  ------------------------------------------ */

  .fs-c-productStock {
    margin: 10px 0 12px;

    font-size: 14px;
    line-height: 1.5;

    color: #555;
  }


  .fs-c-productStock__label::after {
    content: "：";
  }


  /* ------------------------------------------
     数量＋お気に入り
  ------------------------------------------ */

  .fs-c-productQuantityAndWishlist {
    display: grid !important;

    grid-template-columns: 104px minmax(0, 1fr) !important;

    column-gap: 8px !important;

    align-items: end !important;

    width: 100% !important;

    margin: 0 0 14px !important;
  }


  /* 数量 */
  .fs-c-productQuantityAndWishlist__quantity {
    grid-column: 1 !important;
    grid-row: 1 !important;

    display: flex !important;
    flex-direction: column !important;

    width: 104px !important;

    margin: 0 !important;
  }


  .fs-c-productQuantityAndWishlist__quantity::before {
    content: "数量";

    display: block;

    margin: 0 0 6px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    color: #333;
  }


  .fs-c-quantity__select {
    box-sizing: border-box;

    width: 104px !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 12px;

    border: 1px solid #bbb;
    border-radius: 4px;

    background-color: #fff;

    font-size: 16px;
    font-weight: 600;

    color: #333;
  }


  /* お気に入り */
  .fs-c-productQuantityAndWishlist__wishlist {
    grid-column: 2 !important;
    grid-row: 1 !important;

    align-self: end !important;
    justify-self: end !important;

    display: block !important;

    width: 100% !important;
    max-width: 165px !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  .fs-c-productQuantityAndWishlist
  .fs-c-button--addToWishList--detail {
    box-sizing: border-box;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 8px !important;

    border: 1px solid #ccc;
    border-radius: 4px;

    background: #fff;

    font-size: 12px;
    font-weight: 400;

    color: #555;
  }


  /* ------------------------------------------
     カートに入れる
  ------------------------------------------ */

  .fs-c-productActionButton {
    width: 100%;

    margin: 0 0 20px;
  }


  .fs-c-button--addToCart--detail {
    box-sizing: border-box;

    width: 100%;
    min-height: 52px;

    padding: 12px 20px;

    border-radius: 5px;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
  }

}