/* ========================================
   ヒーローバナースライダー CSS
   ======================================== */

/* スライダーコンテナ */
.richill-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #F5F5F5;
}

.richill-hero-slides {
  position: relative;
  width: 100%;
}

/* スライドアイテム */
.richill-hero-slide {
  display: none;
}

.richill-hero-slide.active {
  display: block;
}


/* スライドコンテンツ */
.richill-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}

/* テキストエリア */
.richill-hero-text {
  padding: 20px;
}

.richill-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1A1A1A;
  line-height: 1.3;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

.richill-hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 40px;
}

.richill-hero-button {
  display: inline-block;
  padding: 16px 48px;
  background-color: #1A1A1A;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.richill-hero-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* 画像エリア */
.richill-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.richill-hero-image-link {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.richill-hero-image-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.richill-hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* ドットナビゲーション */
.richill-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.richill-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CCCCCC;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 0;
}

.richill-hero-dot.active {
  background-color: #1A1A1A;
  transform: scale(1.2);
}

.richill-hero-dot:hover {
  background-color: #999999;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット・スマホ対応 */
@media (max-width: 768px) {
  .richill-hero-slider {
    height: 650px;
    overflow: hidden;
  }

  .richill-hero-slides {
    height: 100%;
  }

  .richill-hero-slide {
    height: 650px !important;
    min-height: 650px !important;
    max-height: 650px !important;
  }

  .richill-hero-content {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 20px 20px;
    gap: 0;
    height: 100%;
    align-items: flex-start;
  }

  .richill-hero-text {
    order: 2 !important;
    width: 100%;
    padding: 0;
    margin-top: 16px;
    flex-shrink: 0;
  }

  .richill-hero-image {
    order: 1 !important;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .richill-hero-image:first-child {
    margin-top: 0 !important;
  }

  .richill-hero-title {
    font-size: 1.5rem;
    text-align: left;
  }

  .richill-hero-description {
    font-size: 0.95rem;
    text-align: left;
  }

  .richill-hero-button {
    margin: 0 0 40px 0;
  }

  .richill-hero-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
  }

  .richill-hero-dots {
    bottom: 10px;
  }
}
