:root {
  --primary-color: #2a1810;
  --secondary-color: #3d2518;
  --accent-color: #d4af37;
  --accent-gold: #f4d03f;
  --sake-gold: #fdeaa7;
  --background-color: #f8f6f0;
  --text-color: #2a1810;
  --light-gold: #fef9e7;
  --border-color: #e8dcc6;
  --shadow-color: rgba(42, 24, 16, 0.15);
  --shadow-soft: rgba(42, 24, 16, 0.08);
  --gradient-primary: linear-gradient(135deg, #2a1810 0%, #3d2518 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  --gradient-bg: linear-gradient(180deg, #f8f6f0 0%, #fef9e7 100%);
  --sake-wave: linear-gradient(45deg, #fdeaa7 0%, #f4d03f 50%, #d4af37 100%);
  --font-japanese: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-modern: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --star-color: #ffa726;
  --star-empty: #e0e0e0;
  --wood-brown: #5d4e37;
  --deep-brown: #4a3c2a;
  --elegant-cream: #faf7f2;
  --sake-silver: #e8e8e8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-modern);
  background: var(--gradient-bg);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* 日本酒らしい和風パターン背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(244, 208, 63, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(212, 175, 55, 0.03) 3px,
      rgba(212, 175, 55, 0.03) 6px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(244, 208, 63, 0.02) 8px,
      rgba(244, 208, 63, 0.02) 16px
    );
  pointer-events: none;
  z-index: -1;
}

/* ヘッダー */
.header {
  background: rgba(250, 247, 242, 0.95);
  box-shadow: 0 4px 30px var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-japanese);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 0.1em;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  top: 50%;
  left: -15px;
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::before {
  transform: translateY(-50%) scale(1);
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-primary);
  border-bottom: 4px solid var(--accent-color);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: 
    /* 山形の山々をイメージしたグラデーション */
    linear-gradient(180deg, 
      rgba(42, 24, 16, 0.9) 0%, 
      rgba(61, 37, 24, 0.7) 30%, 
      rgba(212, 175, 55, 0.3) 70%, 
      rgba(244, 208, 63, 0.2) 100%
    ),
    /* 和風パターン（麻の葉模様風） */
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 20px,
      rgba(212, 175, 55, 0.1) 20px,
      rgba(212, 175, 55, 0.1) 21px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 20px,
      rgba(212, 175, 55, 0.1) 20px,
      rgba(212, 175, 55, 0.1) 21px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(212, 175, 55, 0.1) 20px,
      rgba(212, 175, 55, 0.1) 21px
    ),
    /* 基本背景 */
    radial-gradient(ellipse at center top, rgba(42, 24, 16, 0.8) 0%, rgba(42, 24, 16, 1) 100%);
  background-size: cover, 40px 40px, 40px 40px, 40px 40px, cover;
  background-position: center;
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-japanese);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  background: linear-gradient(45deg, #fff, #f4d03f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* セクション共通 */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-japanese);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

/* カード */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-soft);
  border: 1px solid rgba(107, 163, 214, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow-color);
  border-color: rgba(107, 163, 214, 0.3);
}

/* 商品グリッド */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 0 1rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 24px 24px 0 0;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 150px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 4rem;
}

.product-image svg {
  width: 70px;
  height: 90px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.product-card:hover .product-image svg {
  transform: scale(1.05);
}

/* 商品SVGコンテナ */
.product-svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
  }
  33% { 
    transform: translateY(-8px) scale(1.02); 
  }
  66% { 
    transform: translateY(-3px) scale(0.98); 
  }
}

/* 商品カードの段階的表示アニメーション */

/* アニメーション遅延は削除してすぐ表示 */

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

.product-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: white;
  min-height: 220px;
}

.product-content {
  flex: 1;
  margin-bottom: 1rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.3;
}

.product-name::after {
  content: '';
  position: absolute;
  bottom: -0.3rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.product-card:hover .product-name::after {
  width: 80px;
}

.product-type {
  background: #d4af37;
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.product-brewery {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-rating .stars {
  color: var(--star-color);
  font-size: 1rem;
}

.product-rating .rating-value {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.product-description {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 400;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-accent);
  color: white;
  text-decoration: none;
  border-radius: 35px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(42, 24, 16, 0.4);
}

.btn:hover::before {
  left: 100%;
}

.btn-outline {
  background: white;
  color: #d4af37;
  border: 1px solid #d4af37;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-outline:hover {
  background: #d4af37;
  color: white;
}

.btn-outline:hover::before {
  left: 0;
}

/* フッター */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: var(--font-japanese);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
  }
  
  .product-card {
    min-height: 300px;
    margin: 0;
  }
  
  .product-image {
    height: 100px;
  }
  
  .product-image svg {
    width: 60px;
    height: 80px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-name {
    font-size: 0.95rem;
  }
  
  .products-header h2 {
    font-size: 2.5rem !important;
  }
  
  .products-header p {
    font-size: 1.1rem !important;
  }
  
  .products-header span {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card {
    min-height: 280px;
  }
  
  .product-image {
    height: 100px;
  }
  
  .product-image svg {
    width: 60px;
    height: 80px;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* スクロールアニメーション */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 和風装飾要素 */
.japanese-decoration {
  position: relative;
  display: inline-block;
}

.japanese-decoration::before,
.japanese-decoration::after {
  content: '◆';
  color: var(--accent-color);
  font-size: 0.8em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.japanese-decoration::before {
  left: -1.5em;
}

.japanese-decoration::after {
  right: -1.5em;
}

/* 高級感のある装飾ライン */
.elegant-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  margin: 2rem 0;
  position: relative;
}

.elegant-divider::before {
  content: '◆';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--background-color);
  color: var(--accent-color);
  padding: 0 1rem;
  font-size: 0.8rem;
}

/* 日本酒ボトル風アニメーション */
@keyframes sake-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.floating-sake {
  animation: sake-float 4s ease-in-out infinite;
}

/* 高級感のあるテキストエフェクト */
.premium-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* チャットボット用のスタイル */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.chatbot-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chatbot-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.chatbot-button:hover::before {
  opacity: 1;
}