/* ================================
   Stores Template Global Variables
================================ */
:root {
  --stores-green: #00873c;
  --stores-green-dark: #006b2f;
  --stores-yellow: #ffd700;
  --stores-yellow-light: #fff3b0;
  --stores-red: #e52d27;
  --stores-bg-cream: #fefcf6;
  --stores-bg-green-light: #f0f7f2;
  --stores-text-dark: #1a1a1a;
  --stores-text-gray: #666666;
  --stores-border-light: #e8e8e8;
  --stores-shadow-soft: 0 4px 20px rgba(0, 135, 60, 0.08);
  --stores-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
}
/* =========================================
   stores.css — 業務スーパー店舗ページ 用
   すべて stores- クラス名で競合ゼロ設計
   ========================================= */

/* --------------------
    基本リセット
-------------------- */
.stores-container * {
  box-sizing: border-box;
}

.stores-container {
  max-width: 1100px;
  margin: 0 auto;
  /* padding: 0 20px 60px; */
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

/* --------------------
    パンくず
-------------------- */
.stores-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: #666;
}

.stores-breadcrumb a {
  text-decoration: none;
  color: #00873c;
}

.stores-breadcrumb a:hover {
  text-decoration: underline;
}

.stores-breadcrumb-separator {
  margin: 0 6px;
  color: #ccc;
}

/* --------------------
    ヘッダー
-------------------- */
.stores-header {
  background: linear-gradient(135deg, #00873c 0%, #006b2f 100%);
  border-radius: 20px;
  margin-bottom: 30px;
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 135, 60, 0.1);
}

.stores-header-inner {
  padding: 35px 40px;
}

.stores-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffd700;
  color: #006b2f;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.stores-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stores-header-address {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.stores-header-address-text {
  font-size: 15px;
}

/* --------------------
    メイン2カラム
-------------------- */

.stores-main {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.stores-main-content {
  flex: 1;
}

.stores-sidebar {
  width: 300px;
  flex-shrink: 0;
}


@media (max-width: 900px) {
  .stores-main {
    display: block; /* ← 正しい指定 */
  }

  .stores-sidebar {
    width: 100%;
    margin-top: 30px;
  }
}

/* --------------------
    カード共通
-------------------- */

.stores-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 28px;
}

.stores-card-header {
  background: #f0f7f2;
  padding: 16px 24px;
  border-bottom: 2px solid #00873c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stores-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #006b2f;
}

.stores-card-body {
  padding: 24px;
}

/* --------------------
    基本情報テーブル
-------------------- */

.stores-info-table {}

.stores-info-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px dashed #e8e8e8;
}

.stores-info-row:last-child {
  border-bottom: none;
}

.stores-info-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stores-info-value {
  flex: 1;
  font-size: 15px;
}

.stores-info-value a {
  color: #00873c;
  text-decoration: none;
}

.stores-info-value a:hover {
  text-decoration: underline;
}

/* 駐車場バッジ */
.stores-parking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.stores-parking-yes {
  background: #e8f5e9;
  color: #00873c;
}

.stores-parking-no {
  background: #ffeaea;
  color: #d30000;
}

/* --------------------
    取扱い品目
-------------------- */
.stores-category-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stores-category-icon {
  background: #f0f7f2;
  padding: 12px 16px;
  border-radius: 12px;
  min-width: 70px;
  text-align: center;
  transition: 0.2s;
}

.stores-category-icon-active {
  opacity: 1;
}

.stores-category-icon-inactive {
  opacity: 0.35;
  background: #eee;
}

.stores-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: #666;
  margin-top: 22px;
  margin-bottom: 10px;
}

/* --------------------
    決済アイコン
-------------------- */

.stores-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stores-payment-icon {
  padding: 10px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}

.stores-payment-gyomuca {
  background: linear-gradient(135deg, #00873c 0%, #006b2f 100%);
  color: #fff;
  border-color: #00873c;
}

.stores-payment-visa { color:#1a1f71; }
.stores-payment-mastercard { color:#eb001b; }
.stores-payment-jcb { color:#0066b3; }

.stores-payment-icon-inactive {
  opacity: 0.3;
}

/* --------------------
    店舗紹介文
-------------------- */

.stores-description p {
  margin-bottom: 16px;
}

.stores-description p:last-child {
  margin-bottom: 0;
}

/* --------------------
    地図
-------------------- */

.stores-map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ← 16:9枠を作る */
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;   /* ← グレー背景 */
}
.stores-map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.stores-map-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,#e8f5e9,#c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stores-map-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00873c;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.stores-map-link:hover {
  background: #006b2f;
}

/* --------------------
    サイドバー
-------------------- */

.stores-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stores-hours-highlight {
  text-align: center;
  padding: 22px;
  background: linear-gradient(135deg, #fff7c2, #ffffff);
  border: 2px dashed #ffd700;
  border-radius: 12px;
}

.stores-hours-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.stores-hours-time {
  font-size: 26px;
  font-weight: 800;
  color: #006b2f;
}

.stores-hours-note {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

.stores-call-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: #00873c;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.2s;
}

.stores-call-button:hover {
  background: #006b2f;
}

/* --------------------
    おすすめ商品
-------------------- */

.stores-recommend-section {
  margin-top: 50px;
}

.stores-recommend-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stores-recommend-title {
  font-size: 22px;
  font-weight: 800;
  color: #006b2f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stores-recommend-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00873c;
  font-size: 14px;
  text-decoration: none;
}

.stores-product-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .stores-product-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

.stores-product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stores-product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f5;
}

.stores-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  background: #d30000;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
}

.stores-product-info {
  padding: 14px;
}

.stores-product-name {
  font-size: 14px;
  margin-bottom: 8px;
}

.stores-product-price {
  font-size: 20px;
  font-weight: 800;
  color: #d30000;
}

.stores-product-price span {
  font-size: 12px;
  font-weight: 500;
}

/* --------------------
    近隣店舗
-------------------- */

.stores-nearby-section {
  margin-top: 50px;
}

.stores-nearby-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stores-nearby-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stores-nearby-link {
  display: inline-flex;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
}

.stores-nearby-link:hover {
  border-color: #00873c;
  color: #00873c;
  background: #f0f7f2;
}

/* Placeholder empty text */
.stores-nearby-empty {
  font-size: 14px;
  color: #999;
}


/* --------------------
    レスポンシブ改善
-------------------- */

@media (max-width: 768px) {
  .stores-header-inner {
    padding: 24px;
  }
  .stores-title {
    font-size: 26px;
  }
  .stores-card-body {
    padding: 18px;
  }
  .stores-info-row {
    flex-direction: column;
    gap: 4px;
  }
  .stores-info-label {
    width: auto;
  }
  .stores-hours-time {
    font-size: 22px;
  }
}


/* =========================================================
   stores-product-card 専用デザイン（TOPページ準拠）
   ※ 既存の product-card / review-card などには絶対干渉しない
========================================================= */

.stores-product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.stores-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* クリック範囲 */
.stores-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* 画像 */
.stores-product-image {
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.stores-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.stores-product-card:hover .stores-product-image img {
  transform: scale(1.1);
}

.stores-product-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2f2f2, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* コンテンツ */
.stores-product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* 商品名 */
.stores-product-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.4;

  /* 2行制限 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* サマリー */
.stores-product-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 8px 0 12px;

  /* 3行制限 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 星評価 */
.stores-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto; /* 下揃え */
  font-size: 13px;
}

/* 既存CSSの星カラーを流用 */
.stores-product-rating .rating-stars {
  color: #ff9800;
  letter-spacing: 1px;
}

.stores-product-rating .rating-avg {
  font-weight: bold;
  color: #2e7d32;
}

.stores-product-rating .rating-count {
  color: #777;
  font-size: 12px;
}

/* ストアタグ（TOPページと同じ） */
.stores-product-info .product-store-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* 業務スーパー */
.product-store-tag.gyomusuper {
  background: #d4f5b2;
  color: #336600;
}

/* 他ストア追加可能 */
.product-store-tag.donquijote {
  background: #ffe4b5;
  color: #ff6b00;
}

/* =========================================================
   グリッド
========================================================= */

.stores-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* タブレット */
@media (max-width: 1024px) {
  .stores-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* スマホ横 */
@media (max-width: 768px) {
  .stores-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stores-product-image {
    height: 160px;
  }
}

/* スマホ縦 */
@media (max-width: 480px) {
  .stores-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stores-product-image {
    height: 200px;
  }
  .stores-product-info {
    padding: 12px;
  }
}


/* 「もっと見る」が折り返されないように */
.stores-recommend-more {
  display: inline-flex;      /* ← アイコンと横並び安定 */
  align-items: center;
  gap: 6px;
  white-space: nowrap;        /* ← 折り返し禁止（必須） */
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
}

.stores-recommend-more svg {
  width: 16px;
  height: 16px;
}



/* 取扱品目アイコンの白丸背景 */
.stores-category-icon-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  flex-shrink: 0;
}

/* アイコン画像 */
.stores-category-icon-img img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

/* アクティブ時（色を濃くしたい場合） */
.stores-category-icon-active .stores-category-icon-img {
  /* border-color: #4caf50; */
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
}

/* 非アクティブ時（薄いグレーで表示） */
.stores-category-icon-inactive .stores-category-icon-img {
  opacity: 0.4;
}
