﻿@charset "UTF-8";
/* ================================================================
   お客様の声 / Product User Voice
   既存 .p-page-gift-howtouse の CSS に影響しない専用スタイル
   ================================================================ */

.p-page-product-uservoice {
  --uservoice-preview-height: 115px;
  --uservoice-text: #302522;
  --uservoice-border: #dedede;
  --uservoice-star: #f0df00;
  width: 100%;
  margin: 0;
  padding: 0 0 10px;
  background: #fff;
  color: var(--uservoice-text);
  box-sizing: border-box;
  font-family: inherit;
}

.p-page-product-uservoice *,
.p-page-product-uservoice *::before,
.p-page-product-uservoice *::after { box-sizing: border-box; }

.p-page-product-uservoice__inner { width: 100%; margin: 0 auto; }

.p-page-product-uservoice__title {
  margin: 70px 0 0;
  text-align: center;
  color: #2c1d19;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
}

.p-page-product-uservoice__note {
  margin: 18px 0 0;
  padding: 0 0 25px;
  border-bottom: 2px solid var(--uservoice-border);
  color: #3c2d2a;
  font-size: 15px;
  line-height: 1.8;
}

.p-page-product-uservoice__item { margin: 0 0 10px; padding: 0; }

/* 2件目以降のレビュー区切り。見出し・注釈は共通。 */
.p-page-product-uservoice__item + .p-page-product-uservoice__item {
  border-top: 2px solid var(--uservoice-border);
}

/* 最後のレビュー下部の区切り線。開閉ボタンとの余白は10px。 */
.p-page-product-uservoice__item:last-of-type {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uservoice-border);
}

.p-page-product-uservoice__summary {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 38px 0 20px;
}

.p-page-product-uservoice__thumbnail {
  flex: 0 0 100px;
  width: 100px;
  margin: 0;
}

.p-page-product-uservoice__thumbnail-image,
.p-page-product-uservoice .p-page-product-uservoice__thumbnail-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  margin: 0;
}

.p-page-product-uservoice__summary-body { min-width: 0; flex: 1; }
.p-page-product-uservoice__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 17px;
  font-size: 15px;
  line-height: 1.5;
}
.p-page-product-uservoice__profile { display: flex; flex-wrap: wrap; gap: 0 14px; }
.p-page-product-uservoice__date { flex-shrink: 0; white-space: nowrap; }

.p-page-product-uservoice__review-title {
  margin: 0 0 12px;
  color: #24100d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}

.p-page-product-uservoice__overall-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 11px;
  line-height: 1.3;
}
.p-page-product-uservoice__overall-label { font-size: 15px; font-weight: 700; }
.p-page-product-uservoice__stars {
  font-size: 27px;
  letter-spacing: -2px;
  color: var(--uservoice-star);
  white-space: nowrap;
  line-height: 1;
}
.p-page-product-uservoice__score { font-size: 22px; font-weight: 700; }


/* 評価星：0.5点に対応（黄色＝評価、グレー＝未評価） */
.p-page-product-uservoice__stars,
.p-page-product-uservoice__chart-stars {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.p-page-product-uservoice__star {
  position: relative;
  display: inline-block;
  color: #d6d6d6;
  line-height: 1;
  letter-spacing: 0;
}
.p-page-product-uservoice__star--full { color: var(--uservoice-star); }
.p-page-product-uservoice__star--half::after {
  content: "★";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--uservoice-star);
  white-space: nowrap;
}

/* JSが有効になるまでは全文表示（プログレッシブエンハンスメント） */
.p-page-product-uservoice__panel {
  position: relative;
  height: auto;
  overflow: visible;
}
.p-page-product-uservoice.is-ready .p-page-product-uservoice__panel {
  height: var(--uservoice-preview-height);
  overflow: hidden;
  transition: height .32s ease;
}
.p-page-product-uservoice.is-ready .p-page-product-uservoice__item:not(.is-open) .p-page-product-uservoice__panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 100%);
  pointer-events: none;
}
.p-page-product-uservoice__panel-inner { padding: 0; }
.p-page-product-uservoice__review-text { margin: 0; color: #392a26; font-size: 16px; line-height: 2.2; }
.p-page-product-uservoice__review-text p { margin: 0; padding: 0; }

.p-page-product-uservoice__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: #f5f3f0;
  color: #444;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease;
}
.p-page-product-uservoice__toggle:hover { background: #ece8e3; }
.p-page-product-uservoice__toggle:focus-visible { outline: 2px solid #c35f35; outline-offset: 3px; }
.p-page-product-uservoice__toggle-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #555;
  transform: rotate(0deg);
  transition: transform .32s ease;
}
.p-page-product-uservoice__item.is-open .p-page-product-uservoice__toggle-icon { transform: rotate(180deg); }

/* レーダーチャート（六角形とグリッドはCanvasに描画） */
.p-page-product-uservoice__chart-section {
  margin-top: 25px;
  border: 1px solid var(--uservoice-border);
}
.p-page-product-uservoice__chart {
  position: relative;
  width: 100%;
  max-width: 660px;
  height: 417px;
  margin: 0 auto;
}
.p-page-product-uservoice__canvas {
  position: absolute;
  top: 100px;
  left: 50%;
  display: block;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
}
.p-page-product-uservoice__chart-rating {
  position: absolute;
  width: 142px;
  text-align: center;
  color: #2e2e2e;
  font-size: 14px;
  line-height: 1.3;
}
.p-page-product-uservoice__chart-label {
  display: block;
  min-height: 26px;
  padding: 3px 3px 2px;
  border: 1px solid #bdbdbd;
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.p-page-product-uservoice__chart-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  white-space: nowrap;
}
.p-page-product-uservoice__chart-stars { color: var(--uservoice-star); letter-spacing: 0; font-size: 20px; line-height: 1; }
.p-page-product-uservoice__chart-score strong { font-size: 17px; }
.p-page-product-uservoice__chart-rating--taste { top: 28px; left: 50%; transform: translateX(-50%); }
.p-page-product-uservoice__chart-rating--package { top: 117px; right: 13%; }
.p-page-product-uservoice__chart-rating--appearance { top: 238px; right: 13%; }
.p-page-product-uservoice__chart-rating--value { bottom: 27px; left: 50%; transform: translateX(-50%); }
.p-page-product-uservoice__chart-rating--gift { top: 238px; left: 10%; }
.p-page-product-uservoice__chart-rating--repeat { top: 117px; left: 10%; }

/* 写真と文章 */
.p-page-product-uservoice__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  padding-top: 30px;
}
.p-page-product-uservoice__gallery-item { margin: 0; min-width: 0; }
.p-page-product-uservoice__gallery-image,
.p-page-product-uservoice .p-page-product-uservoice__gallery-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
}
.p-page-product-uservoice__gallery-caption {
  margin: 10px 0 0;
  color: #382c2a;
  font-size: 16px;
  line-height: 2.2;
}
.p-page-product-uservoice__gallery-caption p { margin: 0; }

/* レイアウトは幅100%のまま、端末幅に応じて文字・余白を調整 */
@media screen and (max-width: 767px) {
  .p-page-product-uservoice { --uservoice-preview-height: 116px; }
  .p-page-product-uservoice__title { font-size: 27px; }
  .p-page-product-uservoice__note { margin-top: 16px; padding-bottom: 20px; font-size: 13px; }
  .p-page-product-uservoice__summary { gap: 24px; padding: 30px 0 17px; }
  .p-page-product-uservoice__thumbnail { flex-basis: 80px; width: 80px; }
  .p-page-product-uservoice__meta { margin-bottom: 13px; font-size: 13px; gap: 6px 10px; }
  .p-page-product-uservoice__profile { gap: 0 12px; }
  .p-page-product-uservoice__review-title { margin-bottom: 12px; font-size: 19px; }
  .p-page-product-uservoice__overall-label { font-size: 13px; }
  .p-page-product-uservoice__stars { font-size: 22px; }
  .p-page-product-uservoice__score { font-size: 18px; }
  .p-page-product-uservoice__review-text { font-size: 13px; line-height: 1.95; }
  .p-page-product-uservoice__chart-rating--package,
  .p-page-product-uservoice__chart-rating--appearance { right: 13%; }
  .p-page-product-uservoice__chart-rating--gift,
  .p-page-product-uservoice__chart-rating--repeat { left: 10%; }
  .p-page-product-uservoice__gallery { gap: 24px 28px; }
  .p-page-product-uservoice__gallery-caption { font-size: 13px; line-height: 1.95; }
  .p-page-product-uservoice__toggle { font-size: 13px; min-height: 39px; }
}

@media screen and (max-width: 600px) {
  .p-page-product-uservoice { --uservoice-preview-height: 116px; }
  .p-page-product-uservoice__title { font-size: 25px; }
  .p-page-product-uservoice__summary { gap: 13px; padding: 20px 0 15px; }
  .p-page-product-uservoice__thumbnail { flex: 0 0 73px; width: 73px; }
  .p-page-product-uservoice__meta { font-size: 12px; margin-bottom: 7px; }
  .p-page-product-uservoice__date { flex-basis: 100%; }
  .p-page-product-uservoice__review-title { font-size: 16px; margin-bottom: 7px; }
  .p-page-product-uservoice__overall-rating { gap: 0 5px; }
  .p-page-product-uservoice__overall-label { font-size: 12px; }
  .p-page-product-uservoice__stars { font-size: 17px; letter-spacing: -1px; }
  .p-page-product-uservoice__score { font-size: 15px; }
  .p-page-product-uservoice__review-text { font-size: 14px; line-height: 1.85; }
  .p-page-product-uservoice__chart { height: 328px; }
  .p-page-product-uservoice__canvas { top: 89px; width: 154px; height: 154px; }
  .p-page-product-uservoice__chart-rating { width: 102px; font-size: 10px; margin:0 5px; }
  .p-page-product-uservoice__chart-label { min-height: 22px; padding: 3px 1px 2px; }
  .p-page-product-uservoice__chart-stars { font-size: 12px; }
  .p-page-product-uservoice__chart-score strong { font-size: 12px; }
  .p-page-product-uservoice__chart-rating--taste { top: 18px; }
  .p-page-product-uservoice__chart-rating--package { top: 91px; right: 0; }
  .p-page-product-uservoice__chart-rating--appearance { top: 196px; right: 0; }
  .p-page-product-uservoice__chart-rating--value { bottom: 11px; }
  .p-page-product-uservoice__chart-rating--gift { top: 196px; left: 0; }
  .p-page-product-uservoice__chart-rating--repeat { top: 91px; left: 0; }
  .p-page-product-uservoice__gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .p-page-product-uservoice__gallery-caption { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-page-product-uservoice.is-ready .p-page-product-uservoice__panel,
  .p-page-product-uservoice__toggle-icon,
  .p-page-product-uservoice__toggle { transition: none !important; }
}