/* ============================================================
   reviews.css — レビューページ専用スタイル
   旧 React 版 (jeff/src/styles/econnect/components/_reviews.scss
   と _cards.scss) からの最小移植
============================================================ */

/* ── レビューカードのカード枠 ───────────────────────────── */
.card {
  position: relative;
  padding: 20px;
  background-color: #ffffff;
  box-sizing: border-box;
}
.card.bordered {
  border: 1px solid #e8ebee;
  border-radius: 6px;
}
@media screen and (min-width: 640px) {
  .card { padding: 30px; }
}
@media screen and (min-width: 920px) {
  .card { padding: 40px; }
}

/* ── 星評価・スコアの並び ───────────────────────────────── */
.review-mini {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.review-mini .review-score {
  margin: 0 8px;
}
.review-mini picture,
.review-mini img {
  display: inline-block;
  vertical-align: middle;
}

/* ── 星アイコン (Font Awesome) ──────────────────────────── */
.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f7d631;             /* サイト既存の金色 */
  font-size: 16px;
  line-height: 1;
}
.review-stars .far {
  color: #e0e0e0;             /* 空星はうすいグレー */
}

/* ── タイトル・本文 ─────────────────────────────────────── */
.review-title {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.review-content {
  margin-bottom: 1.5em;
  line-height: 1.5;
  font-size: 15px;
}

/* ── 投稿者情報 ─────────────────────────────────────────── */
.review-author {
  display: flex;
  align-items: center;
  font-size: 15px;
  margin-top: auto;          /* カード下端に貼り付ける */
}
.review-author-flag {
  flex: 0 0 40px;
  width: 40px;
  height: 30px;
  margin-right: 12px;
  object-fit: cover;
}
.review-author-info {
  line-height: 1.4;
}
.review-author-name-date span {
  font-weight: 600;
}
.review-author-product {
  color: #888;
  font-size: 13px;
}
.review-date {
  display: inline-block;
}
.ts-quiet {
  color: #888;
}

/* ============================================================
   ── 3列メイソンリーグリッド (旧 react-masonry-css 互換) ──
   - 列ごとに width を JS が style="width: ..." で指定するため
     ここでは flex のみ
   - gutter は左に -36px のネガティブマージン、列に paddingLeft 36px
============================================================ */
.my-masonry-grid {
  display: flex;
  margin-left: -36px;
  width: auto;
}
.my-masonry-grid_column {
  padding-left: 36px;            /* gutter */
  background-clip: padding-box;
}

/* レビュー1件 (メイソンリー内) ─────────────────────────── */
.my-masonry-grid_column .reviews-wall-item {
  width: 100%;
  margin: 0 0 24px;
}
.my-masonry-grid_column .reviews-wall-item .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* ============================================================
   Thank You Notes のグリッド (CSSカラム式)
============================================================ */
.reviews-wall {
  column-gap: 2em;
  column-count: 1;
}
@media screen and (min-width: 640px) {
  .reviews-wall { column-count: 2; }
}
@media screen and (min-width: 920px) {
  .reviews-wall { column-count: 3; }
}
.reviews-wall > .reviews-wall-item {
  width: 100%;
  display: inline-block;
  min-width: 280px;
  margin: 0;
  padding: 0 0 2em;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.reviews-wall > .reviews-wall-item .card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

/* ============================================================
   ボタン ("Show more reviews") の最小スタイル
   既に Bootstrap が読み込まれているため、それに寄せる
============================================================ */
.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.15s ease;
}
.button-primary {
  background: #2563eb;
  color: #fff;
}
.button-primary:hover {
  opacity: 0.85;
}
.button-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.block-large {
  margin: 40px 0;
}
.ts-align-center { text-align: center; }
.ts-measure-center { max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── スマホ画面ではメイソンリーのガターを狭く ─────────── */
@media screen and (max-width: 639px) {
  .my-masonry-grid {
    margin-left: -16px;
  }
  .my-masonry-grid_column {
    padding-left: 16px;
  }
  .my-masonry-grid_column .reviews-wall-item {
    margin-bottom: 16px;
  }
}