/* ========================================
   スマート無人販売所 - リデザインCSS
   ブランドカラー: #dc1e37
   コンセプト: モダン、ミニマル、温かみのある親しみやすさ
   ======================================== */

/* Webフォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* カラーパレット */
:root {
  /* ブランドカラー */
  --brand-red: #dc1e37;
  --brand-red-dark: #b91829;
  --brand-red-light: #f87171;
  
  /* 農作物の温かみ */
  --fresh-green: #22c55e;
  --fresh-green-light: #86efac;
  --warm-orange: #f59e0b;
  --warm-orange-light: #fbbf24;
  --earth-brown: #92400e;
  
  /* ニュートラルカラー */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-white: #ffffff;
  --bg-cream: #fef3c7;
  --bg-light: #f9fafb;
  --border-light: #e5e7eb;
  
  /* シャドウ */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 0.05), 0 8px 16px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.06), 0 12px 24px rgb(0 0 0 / 0.1);
  
  /* 角丸 */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  
  /* スペーシング（統一） */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* ========================================
   基本スタイル
   ======================================== */
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-light);
}

/* テキストカラー */
.text-brand {
  color: var(--brand-red) !important;
}

.text-fresh {
  color: var(--fresh-green) !important;
}

/* ========================================
   統一されたスペーシング
   ======================================== */
.container {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

/* セクション間のマージンを統一 */
.container > .modern-card,
.container > div > .modern-card {
  margin-bottom: var(--spacing-md);
}

/* ========================================
   セクション間のマージン統一
   ======================================== */
section {
  margin-bottom: var(--spacing-lg) !important;
}

section:last-of-type {
  margin-bottom: 0 !important;
}

/* セクション内のパディング */
section > div:first-child {
  padding: 0 var(--spacing-md);
}

/* 店舗ヘッダーのみ小さいパディング */
section#store-header > div:first-child {
  padding: 0 var(--spacing-sm);
}

/* ========================================
   シンプルなセクションスタイル
   ======================================== */
.realtime-section {
  /* リアルタイムセクション用の内部div */
}

.nearby-stores-section {
  /* 近くの店舗セクション用の内部div */
}

/* 近くの店舗の評価表示 */
.nearby-store-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.rating-score-small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-orange);
}

.rating-stars-small {
  display: inline-flex;
  gap: 0.05rem;
  color: var(--warm-orange);
}

.rating-stars-small i {
  font-size: 0.75rem;
}

.rating-stars-small .star-empty {
  color: #d1d5db;
}

.rating-count-small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* 近くの店舗のボタン */
.btn-modern-sm {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-modern-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* 近くの店舗の横スクロール表示 */
.nearby-stores-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg-light);
}

.nearby-stores-scroll::-webkit-scrollbar {
  height: 8px;
}

.nearby-stores-scroll::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}

.nearby-stores-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.nearby-store-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.nearby-store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nearby-store-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.nearby-store-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  height: 100px;
}

.nearby-store-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-store-rating-compact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  margin-bottom: auto;
}

.rating-score-tiny {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-orange);
}

.rating-stars-tiny {
  display: inline-flex;
  gap: 0.05rem;
  color: var(--warm-orange);
}

.rating-stars-tiny i {
  font-size: 0.7rem;
}

.rating-stars-tiny .star-empty {
  color: #d1d5db;
}

.rating-count-tiny {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.btn-modern-xs {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.btn-modern-xs:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: white;
}

/* ========================================
   モダンカード（統一デザイン）
   ======================================== */
.modern-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* カード内の見出しスタイル統一 */
.modern-card h3,
.modern-card .h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-card h3 i,
.modern-card .h5 i {
  color: var(--brand-red);
}

/* セクションタイトルのアイコン */
section h3 i,
section h4 i,
section .h5 i,
section .h6 i {
  color: var(--brand-red);
}

/* ========================================
   ナビゲーション
   ======================================== */
.navbar-modern {
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  padding: var(--spacing-sm) 0;
  min-height: 60px;
  pointer-events: none;
}

.navbar-modern.navbar-hidden {
  opacity: 0;
  transform: translateY(-100%);
}

.navbar-modern * {
  pointer-events: auto;
}

.navbar-modern .navbar-toggler {
  border: none;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block !important;
}

.navbar-modern .navbar-toggler:hover {
  background: rgba(0, 0, 0, 0.7);
}

.navbar-modern.scrolled .navbar-toggler {
  background: rgba(0, 0, 0, 0.3);
}

.navbar-modern .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvasメニューのスタイル */
.offcanvas {
  background: var(--bg-white);
}

.offcanvas-header {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  padding: var(--spacing-md);
  border-bottom: none;
}

.offcanvas-title {
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offcanvas-title::before {
  content: '\f54e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.5rem;
}

.offcanvas-header .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

.offcanvas-header .btn-close:hover {
  opacity: 1;
}

.offcanvas-body {
  padding: var(--spacing-sm);
  background: var(--bg-light);
  overflow-y: auto;
  flex-grow: 1;
  min-height: 200px;
}

.offcanvas-body .navbar-nav {
  gap: 0.5rem;
}

.offcanvas-body .nav-item {
  margin: 0;
}

.offcanvas-body .nav-link {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.offcanvas-body .nav-link:hover {
  background: var(--bg-white);
  border-left-color: var(--brand-red);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.offcanvas-body .nav-link i {
  color: var(--brand-red);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  flex-shrink: 0;
  background: #dcfce7;
  color: #166534;
  visibility: hidden;
}

.nav-status-badge.closed {
  background: #fee2e2;
  color: #991b1b;
}

.nav-status-badge.irregular {
  background: #fef3c7;
  color: #92400e;
}

/* ========================================
   ヒーロー画像セクション
   ======================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: auto;
}

.hero-image-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-image-container:hover {
  transform: scale(1.01);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-lg);
  pointer-events: none;
}

.hero-content {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

.hero-comment {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: none;
}

.hero-expand-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-image-container:hover .hero-expand-hint {
  opacity: 1;
}

/* ========================================
   アラート（お知らせ）
   ======================================== */
.modern-alert {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.modern-alert .alert-heading {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.modern-alert i {
  font-size: 1.5rem;
}

.alert-warning {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fde68a 100%);
  color: var(--earth-brown);
  border-left: 4px solid var(--warm-orange);
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid var(--fresh-green);
}

.alert-info {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: var(--brand-red-dark);
  border-left: 4px solid var(--brand-red);
}

/* ========================================
   店舗ヘッダー
   ======================================== */
/* ========================================
   店舗ヘッダー
   ======================================== */
.store-rating-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

/* 口コミ見るリンク */
.review-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.review-link:hover {
  color: var(--text-primary);
  gap: 0.5rem;
}

.review-link i {
  font-size: 0.75rem;
}

/* 口コミスクロール表示 */
.recent-reviews-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg-light);
  width: 100%;
}

.recent-reviews-scroll::-webkit-scrollbar {
  height: 6px;
}

.recent-reviews-scroll::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 3px;
}

.recent-reviews-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.review-snippet {
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: normal;
  flex-shrink: 0;
  width: 60%;
  line-height: 1.5;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.rating-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--warm-orange);
}

.rating-stars-inline {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--warm-orange);
}

.rating-count {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem var(--spacing-sm);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-open {
  background: #d1fae5;
  color: #065f46;
}

.status-closed {
  background: #fee2e2;
  color: var(--brand-red-dark);
}

.status-irregular {
  background: var(--bg-cream);
  color: var(--earth-brown);
}

/* ========================================
   リアルタイム売り場映像（強調）
   ======================================== */
.carousel-counter {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 10;
}

.camera-row {
  margin-bottom: var(--spacing-sm);
}

.image-gallery {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg-light);
  align-items: flex-start;
}

.image-gallery::-webkit-scrollbar {
  height: 8px;
}

.image-gallery::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}

.image-gallery::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.gallery-item {
  flex-shrink: 0;
  width: 80%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   出品スケジュール（強調）
   ======================================== */
.schedule-image-container {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-sm);
}

.schedule-image-container:hover {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
}

.schedule-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   お客様の声（口コミ）- 強調表示
   ======================================== */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.review-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.12);
}

.review-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  padding: var(--spacing-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.review-avatar {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--warm-orange);
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.rating-stars .fa-star {
  color: var(--warm-orange);
  font-size: 1.5rem;
}

.rating-stars .fa-star.star-empty {
  color: #d1d5db;
}

.review-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.review-detail-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.detail-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--text-primary);
}

.detail-rating {
  font-weight: 700;
  color: var(--warm-orange);
  min-width: 24px;
}

.detail-stars {
  display: flex;
  gap: 0.15rem;
}

.detail-stars .fa-star {
  color: var(--warm-orange);
  font-size: 1rem;
}

.detail-stars .fa-star.star-empty {
  color: #d1d5db;
}

.review-comment {
  background: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  line-height: 1.7;
  color: var(--text-primary);
}

/* ========================================
   決済方法
   ======================================== */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.payment-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-category {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fresh-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-category i {
  color: var(--fresh-green);
}

.payment-details {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: var(--spacing-md);
}

.payment-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #d1fae5;
  border: 1px solid var(--fresh-green-light);
  border-radius: 16px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 500;
}

/* ========================================
   店舗情報
   ======================================== */
.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  width: 24px;
  height: 24px;
  margin-right: var(--spacing-sm);
  margin-top: 0.15rem;
  color: var(--brand-red);
  font-size: 1.1rem;
}

/* ========================================
   地図
   ======================================== */
.full-width-map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  height: 400px;
  width: 100%;
  position: relative;
}

.full-width-map-container #map {
  height: 100%;
  width: 100%;
}

/* ========================================
   ボタン
   ======================================== */
.btn-modern {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem var(--spacing-md);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* ========================================
   モーダル
   ======================================== */
.modal-content-modern {
  background: black;
  border: none;
  border-radius: 0;
}

.modal-content-modern .modal-header {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.modal-content-modern .modal-title {
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.modal-content-modern .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

.modal-content-modern .btn-close:hover {
  opacity: 1;
}

.zoomable-container {
  overflow: hidden;
  touch-action: pan-x pan-y pinch-zoom;
  position: relative;
  cursor: grab;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
}

.zoomable-container:active {
  cursor: grabbing;
}

.zoomable-image {
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット・PC表示の最適化 */
@media (min-width: 768px) {
  /* コンテナの最大幅設定 */
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ヒーロー画像を横並びで全表示 */
  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next {
    display: none;
  }
  
  .hero-section .carousel-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
  }
  
  .hero-section .carousel-item {
    position: static;
    display: block;
    opacity: 1;
    transition: none;
  }
  
  .hero-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  .hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
  }
  
  /* 収穫スケジュール画像のサイズ調整 */
  .schedule-image-container {
    max-width: 600px;
    margin: 0 auto var(--spacing-sm);
  }
  
  /* ギャラリー画像のサイズ調整 */
  .gallery-item {
    width: 300px;
  }
  
  /* 口コミカードを2カラム表示 */
  .reviews-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .review-card {
    margin-bottom: 0;
  }
  
  /* 近くの店舗を3カラム表示 */
  .nearby-stores-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    overflow-x: visible;
  }
  
  .nearby-store-card {
    width: 100%;
  }
  
  /* 地図の高さを大きく */
  .full-width-map-container {
    height: 500px;
  }
  
  .full-width-map-container #map {
    height: 100%;
  }
  
  /* 店舗ヘッダーの口コミスニペットを2行表示 */
  .review-snippet {
    max-width: 400px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 大画面PC表示の最適化 */
@media (min-width: 1024px) {
  /* 近くの店舗を4カラム表示 */
  .nearby-stores-scroll {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* モバイル表示 */
@media (max-width: 768px) {
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
  }
  
  .hero-comment {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  
  .hero-overlay {
    padding: 1.5rem;
  }
  
  .hero-expand-hint {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .gallery-item {
    width: 75%;
  }
  
  .modern-card {
    padding: var(--spacing-sm);
  }
  
  .rating-number {
    font-size: 1.8rem;
  }
  
  .review-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-comment {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  .hero-overlay {
    padding: 1rem;
  }
  
  .hero-expand-hint {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .gallery-item {
    width: 70%;
  }
  
  .payment-details {
    margin-left: 0;
  }
}

/* ========================================
   アニメーション
   ======================================== */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Message Preview */
.message-preview {
  max-height: 4.8em;
  overflow: hidden;
  line-height: 1.6em;
  position: relative;
  transition: max-height 0.3s ease;
}

.message-preview.expanded {
  max-height: none;
}

.read-more-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
}

.read-more-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-lg) var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.footer .container {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--brand-red-light);
  transform: translateX(4px);
}

.footer-link i {
  opacity: 0.7;
}

.footer-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-links {
    gap: var(--spacing-xl);
  }
  
  .footer-section {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .footer-label::after {
    content: ':';
  }
}

/* ========================================
   アクセシビリティ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* フォーカス表示 */
a:focus,
button:focus,
.gallery-item:focus,
.schedule-image-container:focus {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
}
