/* 全体のリセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* 高級感のある背景エフェクト */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(201, 179, 114, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 179, 114, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 26, 46, 0) 80%, rgba(26, 26, 46, 0.8) 100%);
  pointer-events: none;
  z-index: -1;
}

/* アプリヘッダー */
.app-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9b372, transparent);
}

.app-header h1 {
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(90deg, #c9b372, #e6d399, #c9b372);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(201, 179, 114, 0.2);
  animation: titleGlow 3s infinite alternate;
  font-weight: 300;
  letter-spacing: 2px;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(201, 179, 114, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(201, 179, 114, 0.8),
      0 0 30px rgba(201, 179, 114, 0.6);
  }
}

.app-header .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* アプリフッター */
.app-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  width: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  position: relative;
}

.app-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 179, 114, 0.3), transparent);
}

/* スライダーコンテナ */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(30, 30, 45, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 179, 114, 0.1);
}

.slider-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c9b372, #e6d399, #c9b372);
  z-index: 10;
}

/* スライダー */
.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* スライド */
.slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(20, 20, 30, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  cursor: pointer;
  padding: 20px;
  max-height: 100%;
  max-width: 100%;
  filter: brightness(1.1) contrast(1.05);
}

.slide:hover img {
  transform: scale(1.05);
}

.slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.slide::before {
  content: 'クリックして会話を始める';
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #e6d399;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 1px;
}

.slide:hover::before {
  opacity: 1;
}

/* スライダー矢印 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(201, 179, 114, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
  background: rgba(201, 179, 114, 0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* スライダーインジケーター */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: #c9b372;
  box-shadow: 0 0 10px rgba(201, 179, 114, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 179, 114, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(201, 179, 114, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 179, 114, 0);
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .app-header h1 {
    font-size: 1.8rem;
  }

  .app-header .subtitle {
    font-size: 1rem;
  }

  .slider-container,
  .chat-container {
    max-width: 600px;
    height: 450px;
  }

  .slider {
    height: 100%;
  }

  .slide {
    width: 33.333%;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .slider-arrow.prev {
    left: 10px;
  }

  .slider-arrow.next {
    right: 10px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .slide::before {
    font-size: 16px;
    bottom: 20px;
  }

  .app-footer {
    margin-top: 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .app-header h1 {
    font-size: 1.5rem;
  }

  .app-header .subtitle {
    font-size: 0.9rem;
  }

  .slider-container,
  .chat-container {
    height: 400px;
  }

  .slider {
    height: 100%;
  }

  .slide {
    width: 33.333%;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .slider-indicators {
    bottom: 15px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}
