:root {
  --primary-color: #1a3b5c;
  --secondary-color: #2d5a87;
  --accent-color: #4a7ba7;
  --accent-blue: #6ba3d6;
  --sake-blue: #a2c4e0;
  --background-color: #fafbfc;
  --text-color: #2c3e50;
  --light-blue: #f0f7ff;
  --border-color: #e1ecf7;
  --shadow-color: rgba(26, 59, 92, 0.15);
  --shadow-soft: rgba(26, 59, 92, 0.08);
  --gradient-primary: linear-gradient(135deg, #1a3b5c 0%, #2d5a87 100%);
  --gradient-accent: linear-gradient(135deg, #4a7ba7 0%, #6ba3d6 100%);
  --gradient-bg: linear-gradient(180deg, #fafbfc 0%, #f0f7ff 100%);
  --sake-wave: linear-gradient(45deg, #a2c4e0 0%, #6ba3d6 50%, #4a7ba7 100%);
  --font-japanese: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-modern: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  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(162, 196, 224, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(107, 163, 214, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(162, 196, 224, 0.03) 3px,
      rgba(162, 196, 224, 0.03) 6px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(107, 163, 214, 0.02) 8px,
      rgba(107, 163, 214, 0.02) 16px
    );
  pointer-events: none;
  z-index: -1;
}

/* ヘッダー */
.header {
  background: rgba(255, 255, 255, 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(107, 163, 214, 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);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(201, 149, 93, 0.2) 0%, transparent 50%),
    url('../assets/images/yoshigen-hero.jpg');
  background-size: cover;
  background-position: center;
  filter: sepia(40%) brightness(1.1);
}

.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 4px rgba(0,0,0,0.3);
}

.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(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

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

.product-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-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(162, 196, 224, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image svg {
  width: 150px;
  height: 150px;
}

.product-info {
  padding: 2rem;
}

.product-name {
  font-family: var(--font-japanese);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-type {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gradient-accent);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.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(139, 107, 71, 0.4);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: white;
}

/* フッター */
.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(162, 196, 224, 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: 1fr;
    gap: 1.5rem;
  }
}

/* アニメーション */
@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: 1.2em;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

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

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

/* チャットボット用のスタイル */
.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;
}