:root {
  --bg: #F9F9F6;
  --text: #2B2B2B;
  --main: #4C6B5C;
  --accent: #A3C9A8;
  --danger: #e11d48;
  --hi: #D6EADF;
  --white: #fff;
  --border:#828282;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* 星評価 SVG アイコン */
.star-svg { vertical-align: middle; }
.star-svg--filled { color: #f59e0b; }
.star-svg--empty { color: #d1d5db; }

html,
body {
  background: var(--bg);
  color: var(--text)
}

* {
  box-sizing: border-box
}

.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 1rem 2rem
}

/* ===== Top ===== */
.top {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
  padding: .8rem 0;
}

@media(min-width:960px) {
  .top {
    grid-template-columns: 1.1fr 1fr
  }
}

.gallery {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .8rem;
  overflow: hidden;
}

.gallery__main {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f3f2
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbs-wrap {
  display: grid;
  /* ボタン左右 + 中央レールをきれいに配置 */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .4rem;
  margin-top: .6rem;
  min-width: 0;
  /* ← これが無いと子が横に広がりページが伸びる */
  overflow: hidden;
  /* ← レール外のオーバーフローを切る */
}

/* 横並びスクロールレーン */
.thumbs {
  display: flex;
  gap: .5rem;
  padding: .6rem 0 .2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable both-edges;
  max-width: 100%;
  min-width: 0;
}

/* カードは縮まず・折り返さずに横へ */
.thumb {
  flex: 0 0 auto;
  /* ←これが重要 */
  border: none;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  scroll-snap-align: start;
}

.thumb img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.thumb.is-active {
  outline: 2px solid var(--accent);
}

/* 端が見切れていることを示すフェード（任意） */
.thumbs-wrap::before,
.thumbs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.thumbs-wrap::before {
  left: 0%;
}

.thumbs-wrap::after {
  right: 0%;
  transform: scaleX(-1);
}

/* ナビボタン（任意、必要なら表示） */
.thumbs__nav {
  border: none;
  background: #fff;
  opacity: .8;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  user-select: none;
}

.thumbs__prev {
  left: 5%;
}

.thumbs__next {
  right: 5%;
}

/* スクロールバーを細めに（任意） */
.thumbs {
  scrollbar-width: thin;
}

.thumbs::-webkit-scrollbar {
  height: 8px;
}

.thumbs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.info {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem
}

.title {
  margin: .2rem 0 .6rem;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  line-height: 1.3
}

/* 対象ユーザーバッジ（商品詳細） */
.badge--audience {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  padding: .2rem .6rem;
  border-radius: 6px;
  color: #fff;
  margin-bottom: .4rem;
}
.badge--all {
  background: #10b981;
}
.badge--individual {
  background: #3b82f6;
}
.badge--corporate {
  background: #8b5cf6;
}

.rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #374151;
  margin: .2rem 0 .6rem
}

.stars {
  letter-spacing: 1px;
  color: #f59e0b
}

.rating__num {
  font-weight: 800
}

.rating__count {
  color: var(--main);
  text-decoration: none
}

.rating__count:hover {
  text-decoration: underline
}

/* ★ バリエーションセレクタ */
.variant-selector {
  margin: .6rem 0 .8rem;
}
.variant-selector__label {
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 .4rem;
}
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.variant-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem .9rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
  min-width: 80px;
  text-align: center;
}
.variant-pill:hover {
  border-color: var(--main, #4caf50);
  background: #f0fdf4;
}
.variant-pill.is-active {
  border-color: var(--main, #4caf50);
  background: #f0fdf4;
  box-shadow: 0 0 0 1px var(--main, #4caf50);
}
.variant-pill__label {
  font-weight: 700;
  font-size: .95rem;
  color: #1a1a1a;
}
.variant-pill__price {
  font-size: .85rem;
  color: var(--main, #4caf50);
  font-weight: 600;
}
.variant-pill__unit {
  font-size: .75rem;
  color: #666;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: .2rem 0 .6rem
}

.price {
  font-weight: 900;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem)
}

.unit {
  color: #374151
}

.stock {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .2rem 0 .8rem
}

/* バリエーション切替後も在庫行が消えないようにする */
#stockRow.stock {
  visibility: visible;
  display: flex;
}

.badge {
  background: var(--hi);
  color: var(--main);
  padding: .2rem .6rem;
  border-radius: 999px;
  font-weight: 700
}

.badge--low {
  background: #fde68a;
  color: #92400e
}

.badge--out {
  background: #fecaca;
  color: #7f1d1d
}

.ship {
  color: var(--muted);
  font-size: .95rem
}

.buy {
  margin: .8rem 0 0
}

.qty {
  display: block;
  margin: 0 0 .6rem
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden
}

.stepper__btn {
  background: #f3f4f6;
  border: none;
  padding: .55rem .7rem;
  cursor: pointer
}

.stepper input {
  width: 64px;
  border: none;
  text-align: center;
  padding: .55rem 0;
  outline: none
}

.cta {
  display: flex;
  gap: .6rem;
  align-items: center
}

.btn {
  border: none;
  border-radius: 10px;
  padding: .7rem 1rem;
  cursor: pointer
}

.btn--buy {
  background: var(--main);
  color: #fff;
  font-weight: 800;
  transition: background .15s, transform .1s
}
.btn--buy:hover:not(:disabled) {
  background: #3d5a4b;
  transform: translateY(-1px)
}
.btn--buy:active:not(:disabled) {
  transform: translateY(0)
}

.btn--buy:disabled {
  opacity: .5;
  cursor: not-allowed
}

.btn--wish {
  background: #f3f4f6;
  color: #111827;
  transition: background .15s
}
.btn--wish:hover {
  background: #e5e7eb
}

/* 安心表記 */
.assurance {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none
}

.assurance li {
  background: var(--hi);
  color: #224;
  padding: .4rem .6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem
}

/* ===== Tabs / Panes ===== */
.details {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0;
  margin: 1rem 0 1.2rem;
  overflow: hidden;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1rem;
  background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
  border-bottom: 1px solid rgba(76, 107, 92, 0.12);
  position: relative;
}

.tab {
  color: var(--muted);
  border: none;
  padding: 1rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  background: transparent;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
  flex: 1;
  min-width: 0;
}

.tab:hover {
  color: var(--main);
}

.tab.is-active {
  color: var(--main);
}

.tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--main));
  border-radius: 2px 2px 0 0;
}

.tab1, .tab2, .tab3, .tab4 {
  width: auto;
  flex: 1;
  min-width: 0;
}

.panes {
  padding: 1.25rem 1rem 1rem;
}

.pane {
  display: none;
  animation: paneFade 0.25s ease;
}

.pane.is-active {
  display: block;
}

@keyframes paneFade {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* 本文（読みやすさ強化） */
.prose {
  line-height: 1.9;
  font-size: 1.02rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prose p {
  margin: 0 0 0.8rem;
}
.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.4rem 0 .5rem;
  position: relative;
  padding-left: .75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .2rem;
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--accent), var(--main));
  border-radius: 4px;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.2rem 0 .4rem;
}
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: .4rem 0 .8rem 0;
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.25rem;
  line-height: 1.75;
}
.prose li:last-child {
  margin-bottom: 0;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  background: #f3faf5;
  padding: .6rem .9rem;
  border-radius: 8px;
  color: #234;
  margin: .6rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .6rem 0;
}

.prose a {
  color: var(--main);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: #3a5548;
}

/* 出品者 */
.seller {
  display: flex;
  gap: .9rem;
  align-items: flex-start
}

.seller__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover
}

.seller__meta h3 {
  margin: .2rem 0
}

.muted {
  color: var(--muted)
}

.link {
  color: var(--main);
  text-decoration: none
}

.link:hover {
  text-decoration: underline
}

/* スペック表・配送表 共通 */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* スペック表（サイズ・選定基準） */
.specs {
  margin: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.spec-table tbody tr {
  transition: background 0.15s ease;
}

.spec-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.spec-table tbody tr:hover {
  background: rgba(163, 201, 168, 0.12);
}

.spec-table th,
.spec-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-table th {
  width: 36%;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.spec-table td {
  color: var(--text);
  font-weight: 500;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: none;
}

/* 選定基準 */
.criteria {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.criteria h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.criteria ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.criteria li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.criteria li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* 配送・送料タブ */
.shipping-info {
  margin: 0;
}

.shipping-info__intro {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(214, 234, 223, 0.5) 0%, rgba(163, 201, 168, 0.15) 100%);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.shipping-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.shipping-table thead {
  background: linear-gradient(135deg, var(--main) 0%, #5a7a6a 100%);
  color: var(--white);
}

.shipping-table thead th {
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.shipping-table tbody tr {
  transition: background 0.15s ease;
}

.shipping-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.shipping-table tbody tr:hover {
  background: rgba(163, 201, 168, 0.1);
}

.shipping-table tbody td {
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
}

.shipping-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

.shipping-table tbody td:nth-child(2) {
  font-weight: 600;
  color: var(--main);
}

.shipping-table tbody td:nth-child(3) {
  color: var(--muted);
  font-size: 0.88rem;
}

.shipping-table tbody tr:last-child td {
  border-bottom: none;
}

.shipping-table .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* レビュー */
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 8px 0 10px
}

.review-head h3 {
  margin: 0
}

.review-head .score {
  color: #6b7280
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px
}

.review {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .8rem 1rem
}

.review__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: .9rem;
  margin-bottom: .35rem
}

.review__stars {
  color: #f59e0b;
  font-weight: 700
}

.review__title {
  margin: .2rem 0 .35rem;
  font-size: 1rem
}

.review p {
  margin: .2rem 0
}

.review-form {
  margin-top: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .9rem
}

.review-form h4 {
  margin: .2rem 0 .6rem
}

/* モーダル汎用（既存のものがあればそれでOK） */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;padding:12px;z-index:60}
.modal.is-open{display:flex}
.modal__content{width:min(680px,100%);background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}
.modal__head{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1rem;border-bottom:1px solid #e5e7eb}
.modal__foot{display:flex;gap:.6rem;justify-content:flex-end;padding:.9rem 1rem;border-top:1px solid #e5e7eb}
.icon-btn{border:none;background:transparent;font-size:1.1rem;cursor:pointer}

#reviewForm{padding:1rem}
.field{display:grid;gap:.4rem;margin:.7rem 0}
.hint{font-size:.85rem;color:#6b7280;margin:0}
.error{color:#dc2626;margin:.25rem 0 0}

/* 星UI */
.stars__row{display:flex;gap:.25rem;font-size:28px;line-height:1}
.star{border:none;background:transparent;cursor:pointer;opacity:.45;transition:transform .1s ease, opacity .15s ease; font-weight: 700; font-size: 28px;}
.star.is-active{opacity:1;transform:scale(1.05);color: #f59e0b;}

/* レビュー本文の改行を保持（これがポイント！） */
.review__body{white-space:pre-wrap;}

/* “あなたのレビュー”徽章 */
.badge.mine{display:inline-block;margin-left:.5rem;padding:.1rem .4rem;border-radius:999px;background:#e0f2fe;color:#075985;font-weight:700;font-size:.75rem}

.rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px
}

.rating input {
  display: none
}

.rating label {
  font-size: 1.4rem;
  color: #d1d5db;
  cursor: pointer;
  line-height: 1
}

.rating input:checked~label,
.rating label:hover,
.rating label:hover~label {
  color: #f59e0b
}

.field {
  display: grid;
  gap: .4rem;
  margin: .6rem 0
}

.field input,
.field textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: .55rem .7rem;
  outline: none;
  background: #fff
}

.field textarea {
  resize: vertical
}

.actions {
  margin-top: .6rem
}

.error {
  color: #dc2626;
  margin: .4rem 0 0
}

/* 関連商品レール（既存スタイルに寄せる） */
.rail {
  margin: 1.6rem 0 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .6rem;
}

.rail__head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: .02em;
}

.rail__head .link {
  color: var(--main);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}

.rail__head .link::after {
  content: '→';
  transform: translateX(0);
  transition: transform .2s ease;
}

.rail__head .link:hover {
  opacity: 1;
}

.rail__head .link:hover::after {
  transform: translateX(2px);
}

/* トラック：スナップ＋慣性＋端のグラデーション */
.rail__track {
  position: relative;
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  padding: .4rem 0 .6rem;
  scroll-snap-type: x mandatory;
  scroll-padding: .4rem;
  -webkit-overflow-scrolling: touch;
}

/* 端グラデーション（続きヒント） */
.rail__track::before,
.rail__track::after {
  content: '';
  position: sticky;
  top: 0;
  width: 36px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.rail__track::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.rail__track::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

/* スクロールバー（控えめに） */
.rail__track::-webkit-scrollbar {
  height: 8px
}

.rail__track::-webkit-scrollbar-track {
  background: transparent
}

.rail__track::-webkit-scrollbar-thumb {
  background: #d7e4dd;
  border-radius: 999px;
}

.rail__track {
  scrollbar-color: #d7e4dd transparent;
  scrollbar-width: thin
}

/* ===== カードの見た目（既存 productCard を上書き強化） ===== */
.rail .card {
  flex: 0 0 auto;
  width: clamp(180px, 32vw, 240px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
  position: relative;
}

.rail .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
  filter: saturate(1.02);
}

/* 画像を美しく：比率固定＋淡い背景 */
.rail .card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0f3f2;
}

/* タイトル・説明の余白とバランス */
.card__body {
  padding: .6rem .8rem .8rem
}

.card__name {
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 .25rem
}

.rail .card h3 {
  font-size: .98rem;
  line-height: 1.35;
}

.rail .card p {
  font-size: .9rem;
  color: #555;
}

/* モバイル最適化：カード幅を少し広めにしてスワイプを心地よく */
@media (max-width: 768px) {
  .rail {
    padding: .8rem .8rem 1rem
  }

  .rail__head h2 {
    font-size: 1rem
  }

  .rail .card {
    width: clamp(200px, 70vw, 260px)
  }

  .details p, .spec-table th, .spec-table td {
    font-size: 0.9rem;
  }

  .panes {
    padding: 1rem 0.85rem;
  }

  .prose {
    font-size: 0.95rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.2em;
  }

  .prose h2 {
    font-size: 1.05rem;
  }

  .tabs {
    padding: 0 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    padding: 0.9rem 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .shipping-table thead th,
  .shipping-table tbody td {
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
  }

  .shipping-info__intro {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* ===== 出品者ハイライト ===== */
.seller-highlight {
  margin: 0 0 1.2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: grid;
  gap: .5rem;
}

.seller-highlight__head {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.seller-highlight__label {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.seller-highlight__name {
  margin: 0;
  font-size: 1.1rem;
}

.seller-highlight__summary {
  margin: .2rem 0 .4rem;
  line-height: 1.8;
  color: #374151;
  border-top: 1px solid var(--border);
}

/* タグ群 */
.seller-highlight__tags {
  margin-top: .2rem;
}
.seller-highlight__tags-label {
  margin: 0 0 .15rem;
  font-size: .9rem;
  color: var(--muted);
}
.seller-highlight__taglist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.seller-highlight__taglist li {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: .85rem;
  font-weight: 600;
}

/* アクション */
.seller-highlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-top: .3rem;
}

.btn.btn--seller {
  background: var(--main);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: .5rem 1rem;
  border: none;
  cursor: pointer;
}

.btn.btn--seller:hover {
  opacity: .9;
}

.seller-highlight__more {
  font-size: .9rem;
}

.seller-highlight-grid {
  display: flex;
  gap: 16px;
}

.seller-img {
  width: 40%;
  max-height: 300px;
  overflow: hidden;
}

.seller-img img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.seller-highlight-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp {
  display: none;
}

/* スマホで少し詰める */
@media (max-width: 768px) {
  .seller-highlight {
    padding: .8rem .8rem .9rem;
  }

  .btn {
    padding: .6rem;
    font-size: 14px;
  }

  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  .seller-img {
    width: 100%;
    padding: 3%;
    background: var(--color-background);
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  .seller-highlight-grid {
    flex-direction: column;
    gap: 6px;
  }

  .seller-highlight-detail {
    width: 100%;
  }
}

/* ===== 生産者紹介モーダル（商品ページ用） ===== */
.seller-modal .modal__content {
  width: min(960px, 100%);
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 80px;
}

.seller-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.seller-modal__title {
  margin: 0;
  font-size: 1rem;
}

.seller-modal__body {
  flex: 1;
  padding: 0;
}

#sellerProfileFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* スマホで少し余白を詰める */
@media (max-width: 768px) {
  .seller-modal .modal__content {
    width: 100%;
    height: 80vh;
    border-radius: 0;
  }
}

/* お気に入りボタン（商品詳細ページ） */
.favorite-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.favorite-btn:hover {
  background: #fef2f2;
  border-color: var(--danger);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.favorite-btn:active {
  transform: scale(0.95);
}

.favorite-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.favorite-icon {
  width: 28px;
  height: 28px;
  stroke: var(--muted);
  stroke-width: 1.5px;
  fill: none;
  transition: all 0.2s ease;
}

.favorite-btn.is-favorited {
  background: #fef2f2;
  border-color: var(--danger);
}

.favorite-btn.is-favorited .favorite-icon {
  fill: var(--danger);
  stroke: var(--danger);
}

.favorite-btn--guest {
  text-decoration: none;
  color: inherit;
}

.favorite-btn--guest:hover {
  background: #f9fafb;
}