/* 
─────────────────────────────────────────────────────────────────
Ｓ：サービス
───────────────────────────────────────────────────────────────── */
.main_service {
  width: 100%;
  background-color: #eef0f3;
}

.main_service_frame {
  max-width: 648px;
  margin: 0 auto;
}

.main_service_contents {
  max-width: 600px;
  padding: 40px 0 56px;
  margin: 0 24px;
}

/* 
───────────────────────────────────────────────────────────────── */
.main_service_headline {
  max-width: 720px;
  padding: 0 0 16px;
  margin: 0 auto 24px;
  text-align: center;
}

.main_service_headline_catch {
  font-size: 1.5rem;
  color: #7f7ff1;
}

.main_service_headline_title {
  font-size: 2rem;
}

/* 
───────────────────────────────────────────────────────────────── */
.main_service_area {
  width: 100%;
}

.main_service_item {
  display: flex;
  flex-flow: column;
  gap: 40px;
  align-content: stretch;
  align-items: flex-start;
  width: 100%;
}

.main_service_list {
  flex: 1 1 100%;
  max-width: 100%;
}

/* 
───────────────────────────────────────────────────────────────── */
.main_service_button {
  width: 100%;
  height: auto;
  cursor: pointer;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main_service_button_consulting {
  position: relative;
  background-image: url("../../img/service_consulting.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.main_service_button_web_support {
  position: relative;
  background-image: url("../../img/service_web_support.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.main_service_button_contact_center {
  position: relative;
  background-image: url("../../img/service_contact_center.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.main_service_button_outsourcing {
  position: relative;
  background-image: url("../../img/service_outsourcing.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.main_service_button::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  content: "";
  background: hsl(240deg 100% 31% / 60%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main_service_button_frame {
  position: relative; /* main_service_button_titleとmain_service_button_button_signの起点 */
  display: block;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.main_service_button_icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 32px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.main_service_button_title {
  width: auto;
  padding: 2px 0 0;
  color: #fff;
  text-align: center;
}

.main_service_button_title_sub {
  font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 888px) / (1248 - 888))), 18px);
  font-weight: 500;
}

.main_service_button_title_main {
  font-size: clamp(24px, calc(24px + (28 - 24) * ((100vw - 888px) / (1248 - 888))), 28px);
  font-weight: 600;
}

.main_service_button_sign {
  position: absolute;
  top: 50%;
  right: 16px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.main_service_button_sign_frame {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.main_service_button_sign_line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 56%;
  height: 56%;
  margin: -28% 0 0 -38%;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* 
───────────────────────────────────────────────────────────────── */
.main_service_summary {
  margin: 16px 0 0;
}

/* 
─────────────────────────────────────────────────────────────────
横幅800px～
───────────────────────────────────────────────────────────────── */
@media screen and (width >= 888px) {
  /* 
  ─────────────────────────────────────────────────────────────────
  Ｌ：サービス
  ───────────────────────────────────────────────────────────────── */
  .main_service {
    width: 100%;
  }

  .main_service_frame {
    max-width: 1248px;
  }

  .main_service_contents {
    max-width: 1200px;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .main_service_item {
    flex-flow: row wrap;
  }

  .main_service_list {
    flex: 1 1 calc(50% - 20px); /* .main_service_itemのgapの半分の値 */
    max-width: calc(50% - 20px);
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .main_service_button {
    height: auto;
    aspect-ratio: 16 / 7;
  }

  .main_service_button:hover {
    background-color: #4c4cec;
  }

  .main_service_button:hover::before {
    background: hsl(240deg 100% 31% / 40%);
  }

  .main_service_button_frame {
    padding: 0;
  }

  .main_service_button_icon {
    position: static;
    top: auto;
    left: auto;
    display: block;
    width: 12%;
    transform: none;
  }

  .main_service_button_title {
    margin: 8px 0 0;
  }

  .main_service_button:hover .main_service_button_sign {
    transform: translateY(-50%) translateX(4px);
  }

  /*
  ─────────────────────────────────────────────────────────────────
  ここまで
  ───────────────────────────────────────────────────────────────── */
}
