/* ヒーローセクション */
.hero {
  height: 100vh;
  background-image: url('../img/bk-cat.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: #2563eb;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* セクション共通 */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1f2937;
}

/* アバウトセクション */
.about>.container p {
  margin-bottom: 24px;
}

/* サービスセクション */
.services {
  background: #f8fafc;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.service-text {
  max-width: 60%;
  text-align: left;
}

.service-text h3 span{
  font-size: 1.2rem;
  margin: 0 8px 0 8px;
}

.service-image {
  max-width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* 会社概要セクション */
.about {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.about-text p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image {
  background-image: url(../img/nyanta.png);
  background-size: contain;
  background-repeat: no-repeat;
  height: 400px;
  width: 100%;
}

/* お問い合わせセクション */
.contact {
  background: #1f2937;
  color: white;
}

.contact-content {
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #374151;
  border-radius: 8px;
  background: #374151;
  color: white;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.submit-btn {
  background: #2563eb;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* --- スライドショー カルーセル --- */
.slideshow-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0;
}
.slides-wrapper {
  display: flex;
  align-items: center;
  transition: none;
  will-change: transform;
}
.slides-wrapper img {
  width: 300px;
  height: auto;
  margin: 0;
  padding: 0 12px 0 12px;
  opacity: 1;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  flex-shrink: 0;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .header-container {
    padding: 1rem;
  }
}

@media (max-width: 900px) {
  .service-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .service-text{
    max-width: 100%;
  }

  .service-image {
    align-self: flex-start;
    max-width: 100%;
  }

  .slideshow{
    padding: 2rem 0;
  }

  .about-text h2{
    font-size: 2rem;
  }

  .about-image{
    height: 240px;
    width: 100%;
  }
}

/* スクロールアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}