@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;
  }

}



/* 商品詳細：レビュータグを控えめに */

#frv-review-area .frv-c-reviewCard__tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin: 10px 0 12px;
}

#frv-review-area .frv-c-reviewCard__tag {
  display: inline-block;
  padding: 3px 8px;

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

  background: #fafafa;

  color: #777;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}


/* ==================================================
   商品詳細：レビュータグ折りたたみ
================================================== */

/* 2行を超えるタグを非表示 */
#frv-review-area .higoya-review-tag-hidden {
  display: none !important;
}

/* 展開・折りたたみボタン */
#frv-review-area .higoya-review-tags-toggle {
  display: inline-flex;
  align-items: center;

  margin: 0 0 12px;
  padding: 4px 0;

  border: none;
  background: transparent;

  color: #777;
  font-size: 12px;
  line-height: 1.5;

  text-decoration: underline;
  text-underline-offset: 3px;

  cursor: pointer;
}

/* ホバー */
#frv-review-area .higoya-review-tags-toggle:hover {
  color: #333;
}

/* キーボード操作時 */
#frv-review-area .higoya-review-tags-toggle:focus-visible {
  outline: 2px solid #777;
  outline-offset: 3px;
}

/* ボタン非表示時 */
#frv-review-area .higoya-review-tags-toggle[hidden] {
  display: none !important;
}


#frv-review-area .frv-c-reviewCard__tagList {
  margin-bottom: 6px;
}

#frv-review-area .higoya-review-tags-toggle {
  margin-bottom: 8px;
}



/* ==================================================
   futureReview：店舗からの返信
   レビュー一覧 / 商品詳細 共通
================================================== */

/* 返信エリア全体 */
.frv-l-reviewArea__reviews .frv-c-reviewCard__reply,
#frv-review-area .frv-c-reviewCard__reply {
  box-sizing: border-box;

  margin-top: 16px;
  padding: 14px 16px;

  border: none;
  border-left: 3px solid #d5dee3;
  border-radius: 4px;

  background: #f7f9fa;
}


/* 返信ヘッダー */
.frv-l-reviewArea__reviews .frv-c-reviewCard__replyHeader,
#frv-review-area .frv-c-reviewCard__replyHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 6px 12px;

  margin-bottom: 10px;
}


/* 店舗アイコン・名前 */
.frv-l-reviewArea__reviews .frv-c-reviewCard__replyUser,
#frv-review-area .frv-c-reviewCard__replyUser {
  display: flex;
  align-items: center;

  gap: 8px;
  min-width: 0;
}


/* 店舗アイコン */
.frv-l-reviewArea__reviews .frv-c-reviewCard__replyIcon,
#frv-review-area .frv-c-reviewCard__replyIcon {
  display: block;

  width: 26px;
  height: 26px;

  flex: 0 0 26px;

  border-radius: 50%;

  object-fit: contain;
}


/* 店舗名 */
.frv-l-reviewArea__reviews .frv-c-reviewCard__replyUserName,
#frv-review-area .frv-c-reviewCard__replyUserName {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;

  color: #333;
}


/* 返信日 */
.frv-l-reviewArea__reviews .frv-c-reviewCard__replyDate,
#frv-review-area .frv-c-reviewCard__replyDate {
  flex-shrink: 0;

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

  color: #999;
}


/* 返信本文 */
.frv-l-reviewArea__reviews .frv-c-reviewCard__replyText,
#frv-review-area .frv-c-reviewCard__replyText {
  margin: 0;

  padding: 0;

  font-size: 13px;
  line-height: 1.75;
  font-weight: 400;

  color: #444;

  white-space: pre-line;
  overflow-wrap: anywhere;
}


/* ==================================================
   Smartphone
================================================== */

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

  .frv-l-reviewArea__reviews .frv-c-reviewCard__reply,
  #frv-review-area .frv-c-reviewCard__reply {
    margin-top: 14px;
    padding: 12px;
  }

  .frv-l-reviewArea__reviews .frv-c-reviewCard__replyHeader,
  #frv-review-area .frv-c-reviewCard__replyHeader {
    gap: 6px 10px;
    margin-bottom: 8px;
  }

  .frv-l-reviewArea__reviews .frv-c-reviewCard__replyIcon,
  #frv-review-area .frv-c-reviewCard__replyIcon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .frv-l-reviewArea__reviews .frv-c-reviewCard__replyUserName,
  #frv-review-area .frv-c-reviewCard__replyUserName {
    font-size: 12px;
  }

  .frv-l-reviewArea__reviews .frv-c-reviewCard__replyText,
  #frv-review-area .frv-c-reviewCard__replyText {
    font-size: 13px;
    line-height: 1.8;
  }

}


/* 商品詳細：店舗返信ヘッダーの調整 */
@media screen and (min-width: 768px) {

  #frv-review-area .frv-c-reviewCard__replyHeader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  #frv-review-area .frv-c-reviewCard__replyUser {
    min-width: 0;
  }

  #frv-review-area .frv-c-reviewCard__replyUserName {
    font-size: 12px;
  }

  #frv-review-area .frv-c-reviewCard__replyDate {
    font-size: 11px;
    white-space: nowrap;
  }

}