/* ========================================
   index.css - トップページ専用CSS
   ======================================== */

/* トップページ */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   ヒーロースライドショー
   ======================================== */
.hero-wrapper {
  margin-top: 80px;
}

.hero {
  height: 65vh;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 3s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  animation: zoomOut 10s ease-out forwards;
  transform: scale(1);
}

@keyframes zoomOut {
  0% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.hero-content {
  color: white;
  text-align: center;
  z-index: 5;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 300;
  font-family: "游明朝体", Yu Mincho, YuMincho, "ヒラギノ明朝 Pro", Hiragino Mincho Pro, "MS P明朝", MS PMincho, serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
               0 0 20px rgba(255, 255, 255, 0.6),
               0 0 30px rgba(255, 255, 255, 0.4);
}

.hero-content h1 .char,
.hero-content h1 .char-static {
  display: inline-block;
}

.hero-content h1 .char {
  opacity: 0;
  animation: charFadeIn 0.5s ease-in forwards;
}

.hero-content h1 .char-static {
  opacity: 0;
}

@keyframes charFadeIn {
  to {
    opacity: 1;
  }
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ========================================
   スライドインジケーター
   ======================================== */
.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  background: white;
}

.indicator {
  width: 40px;
  height: 2px;
  background: var(--color-border-medium);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #fbcbb3;
}

.indicator:hover {
  background: #aaa;
}

/* ========================================
   サービスセクション
   ======================================== */
.services-main,
.services-sub {
  padding: 4rem 0;
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* サービスカード */
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  padding: 1rem;
  margin: 0;
}

.service-title .icon {
  width: 20px;
  height: 20px;
}

.service-image {
  margin: 0;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-description {
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* ========================================
   バナーセクション
   ======================================== */
.banner-section {
  padding: 3rem 0;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.banner-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s;
}

.banner-item:hover {
  transform: translateY(-5px);
}

.banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   CTAセクション
   ======================================== */
.cta-section {
  padding: 3rem 0;
}

.cta-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.cta-button.orange {
  background: linear-gradient(135deg, #ffefe1 0%, #ffefe1 100%);
  color: #555;
  box-shadow: 0 4px 0 #fbceb6;
}

.cta-button.orange:hover {
  background: linear-gradient(135deg, #ffefe1 0%, #ffefe1 100%);
  color: #555;
  box-shadow: 0 6px 0 #fbceb6;
}

.cta-contact {
  margin-bottom: 1.5rem;
}

.index-contact-button {
  display: block;
  padding: 1.5rem 2rem;
  border: 2px solid #ffefe1;
  background: #FFF;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
}

.index-contact-button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #fbceb6;
}

.cta-assist {
  margin-top: 1.5rem;
}

.assist-button {
  display: block;
  padding: 1rem 2rem;
  border: 2px solid #999;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  width: 50%;
  margin-left: auto;
  margin-right: 0;
}

.assist-button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #bbb;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 1024px) {
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    margin-top: 70px;
  }
/* ===　スマホスライドショーの高さ　===*/
  .hero {
    height: 40vh;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .services-main,
  .services-sub {
    padding: 2rem 0;
  }

  .services-grid-3,
  .services-grid-4 {
    grid-template-columns: 1fr;
  }

  .banner-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-buttons {
    grid-template-columns: 1fr;
  }

  .assist-button {
    width: 100%;
  }
}
