/* =========================================
   service.css
   サービス内容ページ専用
========================================= */

.service-page {
  background: #fff;
}

/* -----------------------------------------
   hero
----------------------------------------- */
.service-hero {
  position: relative;
  background: linear-gradient(180deg, #f8fcfa 0%, #f4f9f6 100%);
  border-bottom: 1px solid #e7efe9;
}

.service-hero .inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.service-hero__eyebrow {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eaf4ee;
  color: #4e7d60;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-hero .page-title {
  margin-bottom: 22px;
}

.service-hero__lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.03rem;
  line-height: 2;
  color: #445149;
}

/* -----------------------------------------
   section common
----------------------------------------- */
.service-section {
  position: relative;
}

.service-section .inner.narrow,
.service-contact-section .inner.narrow {
  max-width: 860px;
}

.service-block,
.contact-message {
  position: relative;
  padding: 12px 0 12px 28px;
}

.service-block::before,
.contact-message::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: calc(100% - 24px);
  border-radius: 999px;
  background: linear-gradient(180deg, #82b89a 0%, #d7eadf 100%);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.service-head__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7fbf9 0%, #eef6f1 100%);
  border: 1px solid #e1ebe4;
  box-shadow: 0 10px 24px rgba(56, 77, 64, 0.06);
}

.service-head__icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.service-head__icon--soft {
  background: linear-gradient(180deg, #f8fbfa 0%, #f1f7f4 100%);
}

.service-head__icon-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ed;
  border: 1px solid #d9e9df;
}

.service-head__icon-symbol {
  color: #4f8968;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.service-head__text {
  min-width: 0;
}

.service-label,
.contact-message__sub,
.consult-heading__sub {
  display: inline-block;
  margin: 0 0 8px;
  color: #5b9170;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-section .section-title,
.service-contact-section .section-title {
  margin: 0;
  text-align: left;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.45;
}

.service-section .page-paragraph,
.service-contact-section .page-paragraph {
  margin: 0;
  color: #4c5952;
  font-size: 1rem;
  line-height: 2;
}

.service-section .page-paragraph + .page-paragraph,
.service-contact-section .page-paragraph + .page-paragraph {
  margin-top: 16px;
}

.section.section-bg {
  background: #f8fbf9;
  border-top: 1px solid #eef3f0;
  border-bottom: 1px solid #eef3f0;
}

/* -----------------------------------------
   consultation cards
----------------------------------------- */
.service-consult-section .inner {
  max-width: 1120px;
}

.consult-heading {
  margin-bottom: 30px;
  text-align: center;
}

.consult-heading .section-title {
  margin-bottom: 0;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  height: 100%;
  padding: 30px 24px;
  border: 1px solid #e3ece6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(56, 77, 64, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(56, 77, 64, 0.1);
}

.service-card h3 {
  margin: 0 0 14px;
  color: #24382d;
  font-size: 1.15rem;
  line-height: 1.6;
}

.service-card p {
  margin: 0;
  color: #58655f;
  line-height: 1.9;
  font-size: 0.96rem;
}

/* -----------------------------------------
   contact section
----------------------------------------- */
.service-contact-section {
  background: #fff;
}

.contact-message {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* -----------------------------------------
   responsive
----------------------------------------- */
@media (max-width: 900px) {
  .service-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .service-hero .inner {
    padding-top: 2px;
  }

  .service-hero__eyebrow {
    margin: 10px 0 14px;
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .service-hero__lead,
  .service-section .page-paragraph,
  .service-contact-section .page-paragraph,
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .service-block,
  .contact-message {
    padding-left: 18px;
  }

  .service-block::before,
  .contact-message::before {
    width: 4px;
    top: 8px;
    height: calc(100% - 16px);
  }

  .service-head {
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
  }

  .service-head__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .service-head__icon img {
    width: 34px;
    height: 34px;
  }

  .service-head__icon-circle {
    width: 34px;
    height: 34px;
  }

  .service-head__icon-symbol {
    font-size: 1.2rem;
  }

  .consult-heading {
    margin-bottom: 22px;
  }

  .service-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .service-card h3 {
    font-size: 1.02rem;
  }

  .service-label,
  .contact-message__sub,
  .consult-heading__sub {
    margin-bottom: 8px;
    font-size: 0.74rem;
  }
}

/* =========================================
サービスページ：CTA直前の見え方調整
========================================= */

.service-consult-section {
  position: relative;
  padding-bottom: 120px;
  background: linear-gradient(180deg, #f6faf8 0%, #eef5f2 68%, #ffffff 100%);
  border-bottom: none;
}

.service-consult-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(44, 122, 123, 0) 0%,
    rgba(44, 122, 123, 0.14) 20%,
    rgba(44, 122, 123, 0.14) 80%,
    rgba(44, 122, 123, 0) 100%
  );
}

.service-consult-section .consult-heading {
  margin-bottom: 34px;
}

.service-consult-section .service-card-grid {
  margin-top: 0;
}

.service-consult-section .service-card {
  border: 1px solid #e2ece7;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(44, 122, 123, 0.05);
}

.service-consult-section .service-card h3 {
  color: #1f2d2a;
}

.service-consult-section .service-card p {
  color: #596866;
}

@media screen and (max-width: 767px) {
  .service-consult-section {
    padding-bottom: 88px;
  }

  .service-consult-section::after {
    bottom: 38px;
    width: calc(100% - 24px);
  }

  .service-consult-section .consult-heading {
    margin-bottom: 24px;
  }
}

/* CTAとの距離を少し広げる */
.service-consult-section {
  padding-bottom: 140px;
}

@media screen and (max-width: 767px) {
  .service-consult-section {
    padding-bottom: 100px;
  }
}

/* =========================================
アンカーずれ防止
========================================= */

#homecare,
#disability,
#heavycare,
#mobility,
#private {
  scroll-margin-top: 120px;
}

/* =========================================
追加：具体例リスト（今回の改善）
========================================= */

.service-list {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-left: 18px;
}

.service-list li {
  margin-bottom: 6px;
  line-height: 1.7;
  color: #444;
  position: relative;
  padding-left: 14px;
}

.service-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #2c7a7b;
}

.service-note {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}
