/* モダンスタイル */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-50: #eff6ff;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --secondary-500: #a855f7;
  --secondary-600: #9333ea;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* グラデーション背景 */
.gradient-bg {
  background: linear-gradient(135deg, #fef7ed 0%, #ffffff 50%, #f5f5dc 100%);
}

/* ヘッダー */
.header-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* カード */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ガラス効果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* いいねボタン */
.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 2px solid #fed7d7;
  color: #e53e3e;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.like-button:hover {
  background: #fef5e7;
  border-color: #f6ad55;
}

.like-button.liked {
  background: #e53e3e;
  border-color: #e53e3e;
  color: white;
}

/* モダンスライダー */
.modern-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: #000;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
}

@media (min-width: 1024px) {
  .slider-container {
    height: 700px;
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slider-image {
  display: none;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.slide-content {
  color: white;
  max-width: 600px;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.nav-dot:hover {
  border-color: white;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .modern-slider {
    border-radius: 12px;
    margin: 0 -16px;
  }
  
  .slider-container {
    height: 250px;
  }
  
  .slide-overlay {
    padding: 16px;
  }
  
  .slide-content {
    margin-bottom: 20px;
  }
  
  .slide-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .slide-subtitle {
    font-size: 0.875rem;
  }
  
  .slider-nav {
    bottom: 12px;
    gap: 8px;
  }
  
  .nav-dot {
    width: 10px;
    height: 10px;
  }
}

/* アートグリッド */
.art-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .art-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .art-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* フッター */
.footer-modern {
  background: #111827;
  color: #d1d5db;
}

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

.fade-in-up {
  animation: fadeInUp 0.3s ease-out;
}

/* ユーティリティクラス */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ボタンスタイル */
.btn-primary {
  background: linear-gradient(135deg, #92400e 0%, #a16207 100%);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  transform: translateY(0);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .header-modern h1 {
    font-size: 1.5rem;
  }
  
  .art-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .modern-slider {
    margin: 0 -8px;
    border-radius: 8px;
  }
  
  .slider-container {
    height: 200px;
  }
  
  .slide-overlay {
    padding: 12px;
  }
  
  .slide-title {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  
  .slide-subtitle {
    font-size: 0.75rem;
  }
  
  .nav-dot {
    width: 8px;
    height: 8px;
  }
}