/* -----------------------------
  一覧から探す
----------------------------- */
.service-list__headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "headline image"
  ;
}
@media screen and (max-width: 767px) {
  .service-list__headline {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "headline"
    ;
    gap: 20px;
    padding: 20px 30px;
  }
}
.service-list__headline img {
  grid-area: image;
  justify-self: left;
  width: 456px;
}
@media screen and (max-width: 767px) {
  .service-list__headline img {
    width: 242px;
    justify-self: center;
  }
}
.service-list__headline_left {
  display: grid;
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "headline"
    "description"
    "button1"
    "button2"
  ;
  gap: 24px;
  justify-content: right;
}
@media screen and (max-width: 767px) {
  .service-list__headline_left {
    justify-content: center;
    place-items: center;
  }
}

.service-list__headline_left h2 {
  grid-area: headline;
  color: var(--main-color);
  font-size: 36px;
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .service-list__headline_left h2 {
    font-size: 26px;
  }
}
.service-list__headline_left p {
  grid-area: description;
  color: --var(text-color);
  font-size: 16px;
  font-weight: 700;
  width: 541px;
}
@media screen and (max-width: 767px) {
  .service-list__headline_left p {
    font-size: 15px;
    width: auto;
  }
}
.service-list__headline--button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 420px;
  height: 80px;
  padding: 12px 40px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}
@media screen and (max-width: 767px) {
  .service-list__headline--button {
    width: 315px;
    height: 72px;
    padding: 12px 20px;
  }
}
.service-list__headline--button a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .service-list__headline--button a {
    font-size: 18px;
  }
}
.service-list__headline--button span {
  display: block;
  font-size: 14px;
  color: white;
}
@media screen and (max-width: 767px) {
  .service-list__headline--button span {
    font-size: 12px;
  }
}

.service-list__headline--blue {
  grid-area: button1;
  background: linear-gradient(90deg, var(--main-color) 0%, var(--spot-color) 100%);
}
.service-list__headline--blue:hover {
  background: linear-gradient(90deg, var(--main-color) 0%, var(--spot-color) 80%);
}
.service-list__headline--orange {
  grid-area: button2;
  background: linear-gradient(90deg, var(--accent-color) 0%, #FFB42D 100%);
}
.service-list__headline--orange:hover {
  background: linear-gradient(90deg, var(--accent-color) 0%, #FFB42D 80%);
}

.service-list__search {
  text-align: center;
  margin-top: 50px;
  background-image: url(../../img/services/bg_search_service.webp);
  background-size: cover;
  padding: 30px 0 30px 0;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 50vw;
  padding-right: 50vw;
}

.service-list__search h3 {
  font-size: 28px;
  color: white;
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .service-list__search h3 {
    font-size: 22px;
  }
}

.service-list__search::before {
  content: '';
  display: block;
  width: 46px; /* アイコンの幅 */
  height: 46px; /* アイコンの高さ */
  background-image: url(../../img/services/icon_search.webp);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0px auto 8px;
}
@media screen and (max-width: 767px) {
  .service-list__search::before {
    width: 30px;
    height: 30px;
  }
}

.service-list__search ul {
  display: grid;
  grid-template-columns : repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
  padding-top: 30px;
  width: 862px;
  margin: 0 auto;
}
@media screen and (max-width: 767px) {
  .service-list__search ul {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    padding: 10px;
    width: 98%;
  }
}

.service-list__search a li {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 47px;
}
.service-list__search a {
  text-decoration: none;
  color: var(--main-color);
  font-size: 18px;
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .service-list__search li a {
    font-size: 15px;
  }
}

.service-list__search a:hover {
  filter: brightness(1.1);
}

.service-list {
  padding-top: 84px;
}

.service-list-area {
  background: linear-gradient(65.18deg, #D1E9FF 13.82%, #F1FDFF 64.72%);
  padding-top: 60px;
  padding-bottom: 60px;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 50vw;
  padding-right: 50vw;
}

.service-list h3 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--main-color);
  margin-bottom: 16px;
  position: relative
}
@media screen and (max-width: 767px) {
  .service-list h3 {
    font-size: 26px;
    line-height: 34px;
  }
}

/* h3文字の上に水平線をつける */
.service-list h3::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 100px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--spot-color) 50%, var(--main-color) 50%);
  transform: translateX(-50%);
}

.service-content {
  display: grid;
  grid-template-columns: 372px 1fr;
  grid-template-areas:
    "image category"
    "image title"
    "image description"
    "image benefits"
    "image link";
  gap: 16px;
  column-gap: 50px;
  padding: 20px;
  padding: 40px 50px 30px 50px;
  background-color: white;
  border-top: 3px solid var(--main-color);
  box-shadow: 0px 2px 12px 0px #00000026;
  width: 950px;
  margin: 0 auto 40px auto;
}
.service-content:last-child {
  margin-bottom: 0;
}
@media screen and (max-width: 767px) {
  .service-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "category"
      "title"
      "description"
      "benefits"
      "link";
    width: 90%;
    min-width: 336px;
    padding: 20px;
  }
}

.service-content .thumbnail {
  grid-area: image;
}
@media screen and (max-width: 767px) {
  .service-content .thumbnail {
    justify-self: center;
  }
}

.service-content .thumbnail img {
  width: 372px;
}
@media screen and (max-width: 767px) {
  .service-content .thumbnail img {
    width: 250px;
  }
}

.service-content .service-content__category {
  grid-area: category;
  display: flex;
}

.service-content .service-content__category span {
  font-size: 12px;
  background-color: var(--main-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
}

.service-content h4 {
  grid-area: title;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--main-color);
}

@media screen and (max-width: 767px) {
  .service-content h4 {
    font-size: 26px;
  }
}

.service-content p {
  grid-area: description;
  font-size: 14px;
  color: #68717A;
  line-height: 1.7;
}

.service-content ul {
  grid-area: benefits;
  list-style-type: disc;
  padding-left: 16px;
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.7;
}

.service-list__footer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 24px;
  justify-items: center;
  padding: 80px;
  background-color: #FFFADF;
  margin-top: 150px;
  position: relative;

  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 50vw;
  padding-right: 50vw;
}
@media screen and (max-width: 767px) {
  .service-list__footer {
    margin-top: 100px;
    padding: 50px 20px;
  }
}

.service-list__footer::before {
  content: "";
  background-image: url(../../img/services/icon_gear.webp);
  background-size: contain;
  background-repeat: no-repeat;
  width: 148px;
  height: 148px;
  position: absolute;
  top: -74px; /* アイコンを背景色にまたがせるために調整 */
}
@media screen and (max-width: 767px) {
  .service-list__footer::before {
    width: 100px;
    height: 100px;
    top: -50px;
  }
}

.service-list__footer h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--main-color);
  text-align: center;
  line-height: 57.6px;
}
@media screen and (max-width: 767px) {
  .service-list__footer h3 {
    font-size: 26px;
    line-height: 41.6px;
  }
}

.service-list__footer p {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  line-height: 41.6px;
}
@media screen and (max-width: 767px) {
  .service-list__footer p {
    font-size: 18px;
    line-height: 28.8px;
  }
}

.service-list__footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 17px 48px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #FFB42D 100%);
  color: white;
  border-radius: 42px;
  width: 278px;
  height: 70px;
  font-size: 26px;
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .service-list__footer a {
    height: 52px;
    font-size: 24px;
  }
}

.icon-container {
  display: flex;
  justify-content: center; /* 中央揃え */
}

.icon-container img {
  width: 50px; /* アイコンのサイズ */
}

.more-link{
  grid-area: link;
  justify-self: end;
  padding: 8px 48px;
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--main-color) 0%, var(--spot-color) 101.05%);
  box-shadow: 0px 2.57px 17.12px 0px #00000033;
  text-align: center;
  width: 200px;
  height: 52px;
}

.more-link:hover {
  opacity: 0.9;
}

@media screen and (max-width: 767px) {
  .more-link {
    justify-self: center;
  }
}

/* -----------------------------
  課題から探す
----------------------------- */
.service-issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  width: 1120px;
  margin: 0 auto;
}
.service-issues__headline h2 {
  color: var(--main-color);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .service-issues__headline h2 {
    font-size: 26px;
    line-height: 33.8px;
    padding-top: 20px;
  }
}

.service-issues__headline p {
  color: var(--text-color);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 10px 0 20px 0;
}
@media screen and (max-width: 767px) {
  .service-issues__headline p {
    font-size: 16px;
    padding: 10px 30px 20px 30px;
  }
}

.service-issues__container .service-issues__bubble {
  display: grid;
  margin: 0 auto;
  width: 229px;
  height: 175px;
}
.service-issues__content {
  display: grid;
  grid-template-rows: subgrid;
  grid-template-areas:
    "title"
    "image"
    "tags"
    "description"
    "link"
  ;
  grid-row: span 5;
  box-shadow: 0px 2px 12px 0px #00000026;
  gap: 20px;
  height: 390px;
  width: 270px;
  position: relative;
}
.service-issues__content:hover {
  box-shadow: 0px 2px 12px 0px #00000013;
}

.service-issues__content .service-issues__content--title {
  grid-area: title;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background-color: var(--main-color);
  width: 100%;
  display: grid;
  place-items: center;
  height: 57px;
  line-height: 22px;
}
.service-issues__content .service-issues__content--thumbnail {
  grid-area: image;
  display: flex;
  justify-self: center;
  background-color: white;
  height: 82px;
}
.service-issues__content .service-issues__content--tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.service-issues__content .service-issues__content--tags span {
  display: flex;
  font-size: 12px;
  color: white;
  font-weight: 700;
  background-color: var(--main-color);
  padding: 4px 12px;
  border-radius: 4px;
}
.service-issues .service-issues__content p {
  grid-area: description;
  font-size: 14px;
  font-weight: 500;
  line-height: 22.4px;
  color: var(--text-color);
  padding: 0 20px 0;
  text-align: left;
}
.service-issues__content .service-issues__content--arrow {
  grid-area: link;
  justify-self: center;
  position: absolute;
  bottom: 6px;
}
.service-issues__content .service-issues__content--arrow::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(../../img/common/img_arrow_m_blue.svg);
  transform: rotate(90deg);
}

.service-issues__headline--buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  background-color: #F7F7F7;
  padding: 60px 0;
  margin-right: -50vw;
  margin-left: -50vw;
  padding-right: 50vw;
  padding-left: 50vw;
}
@media screen and (max-width: 767px) {
  .service-issues__headline--buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
  }
}

.service-issues-col {
  background-color: var(--main-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
}
.service-issues-col__item {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  background-color: white;
}
.service-issues-col__item p {
  font-size: 15px;
  font-weight: 700;
  line-height: 19.5px;
  padding: 0 15px;
  text-align: left;
}

/* -----------------------------
サービス一覧ページ タブ
----------------------------- */
.services__wrapper {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  position: relative;
}

.services__tab {
  display: flex;
  width: 1240px;
  margin: 30px auto 64px auto;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .services__tab {
    margin: 16px auto 0 auto;
    width: auto;
  }
}

.services__tab li a {
  width: 600px;
  display: flex;
  justify-content: center;
  background:#eef0f3;
  margin:0 8px;
  padding: 20px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #858585;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .services__tab li a {
    width: 160px;
    font-size: 16px;
    padding: 12px;
    margin: 0 4px;
    flex-direction: column;
    align-items: center;
  }
}

.services__tab li.active a {
  background:#fff;
  color: #333333;
  padding:16px 20px;
  border-left: 2px solid #C9C9C9;
  border-right: 2px solid #C9C9C9;
  border-top: 8px solid #1565C0;
}

@media screen and (max-width: 767px) {
  .services__tab li.active a {
    border-top: 6px solid #1565C0;
    padding: 10px;
  }
}

.services__tab li.active span {
  color: #1565C0;
}

