/* ==========================================================================
   Service Page — 事業紹介リデザイン
   ========================================================================== */

.service-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

/* -------------------------------------------------------------------
   イントロ
   ------------------------------------------------------------------- */
.service-intro {
  text-align: center;
  padding: 60px 0 80px;
  border-bottom: 1px solid #e9ecef;
}

.service-intro-lead {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a2333;
  line-height: 1.8;
  margin: 0 0 20px;
}

.service-intro-desc {
  font-size: 1rem;
  line-height: 2;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------
   ページ内ナビ
   ------------------------------------------------------------------- */
.service-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 48px 0;
  border-bottom: 1px solid #e9ecef;
}

.service-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  color: #1a2333;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.service-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(26, 35, 51, 0.12);
}

.service-nav-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.service-nav-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

/* -------------------------------------------------------------------
   サービスブロック共通
   ------------------------------------------------------------------- */
.service-block {
  padding: 80px 0;
  border-bottom: 1px solid #e9ecef;
}

.service-block:last-child {
  border-bottom: none;
}

.service-block-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.service-block:nth-child(even) .service-block-inner {
  flex-direction: row-reverse;
}

/* 番号 + テキスト */
.service-block-text {
  flex: 1;
  min-width: 0;
}

.service-block-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(26, 35, 51, 0.05);
  line-height: 1;
  margin-bottom: 8px;
}

.service-block-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #6c757d;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-block-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1a2333;
  margin: 0 0 24px;
  line-height: 1.4;
}

.service-block-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: #6c757d;
  margin: 0 0 24px;
}

/* キーワードタグ */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #f8f9fb;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a2333;
  border: 1px solid #e9ecef;
}

/* 画像 */
.service-block-visual {
  flex-shrink: 0;
  width: 420px;
}

.service-block-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-block-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-block:hover .service-block-image img {
  transform: scale(1.05);
}

/* 画像上のオーバーレイ番号 */
.service-block-image::after {
  content: attr(data-num);
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  pointer-events: none;
}

/* -------------------------------------------------------------------
   CTAバナー
   ------------------------------------------------------------------- */
.service-cta {
  margin-top: 80px;
  background: linear-gradient(135deg, #1a2333 0%, #2d3a4f 100%);
  border-radius: 24px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
}

.service-cta-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.service-cta-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.8;
}

.service-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: #fff;
  color: #1a2333;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.service-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-cta-arrow {
  transition: transform 0.3s ease;
}

.service-cta-button:hover .service-cta-arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .service-page {
    padding: 0 20px 60px;
  }

  .service-intro {
    padding: 40px 0 50px;
  }

  .service-intro-lead {
    font-size: 1.2rem;
  }

  .service-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 32px 0;
  }

  .service-nav-item {
    padding: 14px 8px;
  }

  .service-nav-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .service-nav-label {
    font-size: 0.7rem;
  }

  .service-block {
    padding: 50px 0;
  }

  .service-block-inner {
    flex-direction: column !important;
    gap: 28px;
  }

  .service-block-visual {
    width: 100%;
  }

  .service-block-image img {
    height: 220px;
  }

  .service-block-number {
    font-size: 2.8rem;
  }

  .service-block-title {
    font-size: 1.5rem;
  }

  .service-cta {
    flex-direction: column;
    padding: 40px 28px;
    text-align: center;
  }

  .service-cta-text h3 {
    font-size: 1.2rem;
  }
}
