@charset "UTF-8";
/* review-widget.css */
/* トップページのセクション毎レビュー表示 */
/* 2025/08/08 update - okada sachi */

.review-widget {
  margin: 40px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.review-widget.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.review-widget__title {
  text-align: center;
  font-size: 20px;
  color: #4f4c4c;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.review-widget__title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #73c6c4;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.review-widget .swiper-container {
  width: 100%;
  overflow: hidden;
  padding: 0 40px;
  position: relative;
}

.review-widget .swiper-slide {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: center;
  height: auto;
}

.review-widget__product-link {
  display: flex;
  justify-content: center;
}

.review-widget .swiper-slide img {
  display: block;
  margin-bottom: 6px;
  max-width: 80%;
  height: 120px;
  object-fit: contain;
}

.review-widget__product-name {
  font-weight: bold;
  font-size: 14px;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px;
}

.review-widget__star-rating {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}

.review-widget__star-rating svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  animation: starFade 0.4s ease forwards;
}

@keyframes starFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.review-widget__review-body {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-widget__read-more {
  display: block;
  width: fit-content;
  color: #73c6c4;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  margin: 0 auto 8px;
  cursor: pointer;
  position: relative;
}

.review-widget__read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #73c6c4;
  transition: width 0.3s ease;
}

.review-widget__read-more:hover {
  color: #5fb1b0;
}

.review-widget__read-more:hover::after {
  width: 100%;
}

.review-widget__buy-button {
  display: block;
  width: 100%;
  background: #73c6c4;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  margin-top: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.review-widget__buy-button:hover {
  opacity: 1;
  background: #5fb1b0;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.review-widget .swiper-button-next,
.review-widget .swiper-button-prev {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid #73c6c4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition: color 0.3s ease, background 0.3s ease;
}

.review-widget .swiper-button-next {
  right: 6px;
}

.review-widget .swiper-button-prev {
  left: 6px;
}

.review-widget .swiper-button-next::after,
.review-widget .swiper-button-prev::after {
  font-size: 14px;
  color: #73c6c4;
}

.review-widget .swiper-button-next:hover,
.review-widget .swiper-button-prev:hover {
  background: #73c6c4;
  transform: translateY(-50%) scale(1.05);
}

.review-widget .swiper-button-next:hover::after,
.review-widget .swiper-button-prev:hover::after {
  color: #fff;
}

.review-widget .swiper-pagination {
  position: static;
  text-align: center;
  margin-top: 10px;
}

.review-widget .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  margin: 0 4px;
}

.review-widget .swiper-pagination-bullet-active {
  background: #73c6c4;
}

@media screen and (min-width: 768px) {
  .review-widget .swiper-slide {
    height: 320px;
  }
}

@media screen and (max-width: 767px) {
  .review-widget .swiper-slide img {
    max-width: 85%;
    height: 140px;
  }
}

#review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

#review-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  max-width: 500px;
  margin: 80px auto;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

#review-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.modal-inner img {
  max-width: 80px;
  margin: 0 auto 10px;
  display: block;
}

#modal-name {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

#modal-stars {
  text-align: center;
  margin-bottom: 10px;
}

#modal-review {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.modal-inner .buy-button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
