/* リセット */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; background: #ffffff; color: #03396c; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  background: url('images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10%;
}
.hero-text {
  max-width: 40%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
}
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; color: #011f4b; margin-bottom: 10px; }
.hero-text p { font-size: 1.6rem; font-weight: bold; color: #034f84; }

/* 説明文セクション */
.intro { padding: 40px 20px; background-color: #f5f9fc; }
.intro-inner { max-width: 800px; margin: 0 auto; }
.intro p {
  font-size: 1.75rem;
  line-height: 1.8;
  color: #034f84;
  text-align: center;
}

/* メインコンテナ */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 60px 0; }
.service-card { background: #f8fcff; border-radius: 8px; padding: 20px; text-align: left; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.service-card img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; }
.service-card h2 { font-size: 1.6rem; margin-bottom: 10px; text-align: center; color: #03396c; }
.service-card p { font-size: 1.2rem; line-height: 1.5em; margin-bottom:5px; color: #034f84; }
.button { display: inline-block; padding: 10px 20px; background: #0288d1; color: #fff; border-radius: 4px; transition: background 0.3s; }
.button:hover { background: #026fa4; }
.button-navy { display: inline-block; padding: 10px 20px; background: #284a7d; color: #fff; border-radius: 4px; transition: background 0.3s; }
.button-navy:hover { background: #233f69; }
.button-org { display: inline-block; padding: 10px 20px; background: #F7671D; color: #fff; border-radius: 4px; transition: background 0.3s; }
.button-org:hover { background: #d64d06; }

/* フッター */
footer { background: #f0f8ff; padding: 40px 20px; }
footer h3 { font-size: 1.5rem; margin-bottom: 15px; text-align: center; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.footer-grid div { font-size: 1.1rem; color: #03396c; }

/* レスポンシブ */
@media (max-width: 900px) {
  .hero { padding-right: 5%; }
  .hero-text { max-width: 60%; }
  .intro p { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .hero { flex-direction: column; justify-content: center; height: auto; padding: 20px; }
  .hero-text { width: 100%; max-width: none; background-color: rgba(255,255,255,0.9); }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text p { font-size: 1rem; }
  .intro p { font-size: 1.25rem; }
  .services { grid-template-columns: 1fr; }
  
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

}

/* Carousel Styles */
.service-carousel { position: relative; width: 100%; overflow: hidden; margin-bottom: 1rem; }
.carousel-container { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; padding: 0.5rem; cursor: pointer; }
.prev { left: 1rem; }
.next { right: 1rem; }

/* Service Description Styles */
.service-desc-1 { font-weight: bold; margin-bottom: 0.5rem; }
.service-desc-2 { margin-bottom: 1rem; }

.service-desc-3 { margin-bottom: 1rem; }

/* Adjusted line spacing for service descriptions */
.service-desc-2, .service-desc-3 { margin: 0; line-height: 1.4; }

/* Added: Reduced paragraph spacing in service cards */
.service-card p { margin-bottom: 5px; }

/* Added: Spacing above service buttons */
.service-card .button { margin-top: 50px; }
