/* ==========================================================================
   Restar Theme - service.css
   事業内容ページ
   ========================================================================== */

/* ---------- 事業内容：5つの事業領域 ---------- */
.svc {
  background: linear-gradient(180deg, #f7faff 0%, var(--bg-light) 100%);
  padding-top: 50px;
}

.svc__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: start;
}

.svc__head {
  padding-top: 34px;
}

.svc__head .section-title {
  font-size: clamp(24px, 2.2vw, 30px);
}

.svc__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.svc-card {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.svc-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.svc-card a:hover {
  transform: translateY(-4px);
  border-color: var(--blue-400);
  box-shadow: 0 14px 34px rgba(16, 80, 200, .14);
}

.svc-card__img {
  display: block;
  aspect-ratio: 5 / 2;
  background-size: cover;
  background-position: center;
  transition: transform .6s;
}

.svc-card__body {
  position: relative;
  flex: 1;
  display: block;
  padding: 18px 18px 24px 22px;
}

.svc-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.svc-card__num {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-600);
}

.svc-card__icon {
  font-size: 26px;
  color: var(--blue-600);
  display: flex;
}

.svc-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.svc-card__text {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-sub);
}

.svc-card__arrow {
  position: absolute;
  right: 20px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--white);
  background: var(--grad-primary);
  transition: transform .3s;
}

.svc-card a:hover .svc-card__arrow {
  transform: translateX(3px);
}

.svc__list .js-fade:nth-child(2) {
  transition-delay: .08s;
}

.svc__list .js-fade:nth-child(3) {
  transition-delay: .16s;
}

.svc__list .js-fade:nth-child(4) {
  transition-delay: .24s;
}

.svc__list .js-fade:nth-child(5) {
  transition-delay: .32s;
}

/* ---------- 事業内容：選ばれる理由 ---------- */
.why {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  overflow: hidden;
}

.why__img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.why__inner {
  position: relative;
  display: grid;
  gap: 0;
  margin-left: max(34%, 0px);
  max-width: none;
  width: auto;
  padding-top: 90px;
  padding-bottom: 90px;
  padding-left: 60px;
}

.why__body {
  padding-right: 50px;
  border-right: 1px solid rgba(140, 194, 255, .3);
}

.why__body .section-title {
  margin-bottom: 22px;
}

.why__text {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 32px;
}

.why__list {
  display: flex;
  gap: 26px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 22px;
}

.why-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(140, 194, 255, .6);
  border-radius: 50%;
  font-size: 28px;
  background: rgba(20, 70, 170, .35);
}

.why-item__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.why-item__text {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .85);
}

.why__list .js-fade:nth-child(2) {
  transition-delay: .12s;
}

.why__list .js-fade:nth-child(3) {
  transition-delay: .24s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .svc__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .svc__head {
    padding-top: 0;
  }

  .why__img {
    width: 30%;
  }

  .why__inner {
    margin-left: 30%;
    padding-left: 40px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why__body {
    padding-right: 0;
    border-right: 0;
  }

  .why__list {
    padding-left: 0;
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .why__img {
    position: relative;
    width: 100%;
    height: 320px;
    clip-path: none;
  }

  .why__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 42, 107, 0) 60%, var(--navy-700) 100%);
  }

  .why__inner {
    margin-left: auto;
    padding: 40px var(--gutter) 80px;
  }
}

@media (max-width: 767px) {
  .svc {
    padding-top: 40px;
  }

  .svc__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .svc-card__img {
    aspect-ratio: 3 / 1;
  }

  .why__img {
    height: 240px;
  }

  .why-item {
    align-items: flex-start;
    gap: 16px;
  }

  .why-item__icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .why-item__text br {
    display: none;
  }
}