/*
Name: 口コミパート 共通CSS
Path: /ext/review/css/review.css
Note: 全商品共通。カルーセルの見た目・挙動はこのファイルを直せば全商品に反映されます。

色指定:
- メイングリーン: #457456
- ゴールド(星など): #EBC172
- ライトグリーン: #DDE9D5
- グレー・黒は既存CSS(style.css)の慣例に合わせて #272727 / #999 を使用

フォント: 既存サイト(style.css)の指定に合わせる
フォントサイズ: 商品詳細v6テンプレート(#item_detail / #item_feature-wrap.v6)の基準16pxに合わせる
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: kozuka-gothic-pr6n, "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, "Osaka", "ＭＳ Ｐゴシック", sans-serif;
  color: #272727;
  font-size: 16px;
  line-height: 1.5;
}

.review-box {
  background: #F4F5F3;
  border-radius: 8px;
  padding: 24px 20px 20px;
}

.review-box__title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #457456;
  text-align: center;
  margin: 0 0 20px;
}

.review-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.review-card__arrows {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.review-box__arrow {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: #DDE9D5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.review-box__arrow:hover {
  opacity: 0.8;
}

.review-box__arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #457456;
  border-right: 2px solid #457456;
  display: block;
}

.review-box__arrow--prev::before {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.review-box__arrow--next::before {
  transform: rotate(45deg);
  margin-right: 2px;
}

.review-slider {
  position: relative;
  overflow: hidden;
}

.review-slide {
  display: none;
}

.review-slide.is-active {
  display: block;
}

.review-slide__stars {
  display: flex;
  align-items: center;
  padding-right: 70px; /* 矢印ボタンと重なるのはこの行だけなのでここだけに余白を確保 */
  gap: 8px;
  margin-bottom: 14px;
}

.review-slide__stars .star {
  font-size: 18px;
  letter-spacing: 1px;
}

.review-slide__stars .star--filled {
  color: #EBC172;
}

.review-slide__stars .star--empty {
  color: #ddd;
}

.review-slide__score {
  font-size: 16px;
  font-weight: bold;
  color: #272727;
}

.review-slide__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.review-slide__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DDE9D5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-slide__avatar svg {
  width: 20px;
  height: 20px;
  fill: #457456;
}

.review-slide__name {
  font-size: 16px;
  font-weight: bold;
  color: #457456;
}

.review-slide__body {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #272727;
  white-space: pre-wrap;
}

.review-slide__ellipsis {
  display: none;
  font-size: 16px;
  line-height: 1.8;
  color: #272727;
  margin: 0;
}

.review-slide__ellipsis.is-visible {
  display: block;
}

.review-box__source {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 12px;
  color: #999;
  text-align: left;
}

/* PC / SP 共通レスポンシブ */
@media screen and (max-width: 1000px) {
  .review-box {
    padding: 20px 16px 16px;
  }
  .review-box__title {
    font-size: 18px;
  }
  .review-card {
    padding: 16px;
  }
  .review-slide__stars {
    padding-right: 60px;
  }
  .review-slide__body,
  .review-slide__name,
  body {
    font-size: 14px;
  }
}
