#service {
  background-color: #f2f6f9;
  margin-top: -150px;
  padding-top: 219px;
  padding-bottom: 75px;
  position: relative;
}

@media screen and (max-width: 999px) {
  #service {
    padding-bottom: 30px;
  }
}

#service::before {
  content: "";
  display: block;
  width: 18.612%;
  height: 13.937%;
  background: url(../img/service-charm.svg) no-repeat center center / contain;
  position: absolute;
  top: 9.1%;
  right: 8.7%;
  z-index: 0;
}

.service__top {
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding-bottom: 78px;
  padding-top: 50px;
}

@media screen and (max-width: 999px) {
  .service__top {
    padding-bottom: 30px;
  padding-top: 0px;
  }
}

.service__topContainer {
  max-width: 1014px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 999px) {
  .service__topContainer {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }
}

.service__topItems {
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 999px) {
  .service__topItems {
    flex-direction: column-reverse;
  }
}

.service__topImage {
  width: 42.2%;
  margin-top: 17px;
}

.service__topImage img {
	width:100%;
}

@media screen and (max-width: 999px) {
  .service__topImage {
    width: 100%;
  }
}

.service__topText {
  width: 53.9%;
}

@media screen and (max-width: 999px) {
  .service__topText {
    width: 100%;
  }
}

.service__topTitle {
  display: flex;
  flex-direction: column;
  width: 53.156%;
}

@media screen and (max-width: 999px) {
  .service__topTitle {
    width: 100%;
  }
}

.service__topTitle--ja {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.2em;
  padding-left: 11px;
}

@media screen and (max-width: 999px) {
  .service__topTitle--ja {
    padding-left: 0;
    font-size: 13px;
    margin-bottom: 5px;
  }
}

.service__topTitle--en {
  font-weight: 500;
  font-size: 78px;
  letter-spacing: 0.06em;
  font-family: "Outfit", sans-serif;
  margin-left: 8px;
  margin-top: -14px;
}

@media screen and (max-width: 999px) {
  .service__topTitle--en {
    font-size: 32px;
    margin-left: 0;
  }
}

.service__topTitle--en span {
  color: #0fcede;
}

.service__topHead {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.66666666667;
  margin-left: 12px;
  margin-top: 12px;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .service__topHead {
    font-size: 14px;
    margin-left: 0;
    margin-top: 5px;
    white-space: wrap;
  }
}

.service__topContent {
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 2.42857142857;
  margin-left: 8px;
  margin-top: 19px;
}

@media screen and (max-width: 767px) {
  .service__topContent {
    margin-top: 5px;
    margin-left: 0;
  }
}

.service__topButtonWrapper {
  text-align: center;
  margin-top: 36px;
}

.service__topButton {
  width: 269px;
}

.service__topBorder {
  max-width: 1000px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  height: 1px;
  background-color: #0fcede;
  margin-top: 62px;
}

.service__contents {
  padding-top: 68px;
}

@media screen and (max-width: 999px) {
  .service__contents {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    padding-top: 30px;
  }
}

.service__heads {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

@media screen and (max-width: 999px) {
  .service__heads {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
}

.service__head {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: bold;
  color: #ffffff;
  padding: 7px 0px 8px;
  max-width: 335px;
  width: 23.3%;
  transform: translateX(-2px);
  position: relative;
  background-color: #0fcede;
  border-radius: 5px;
}

@media screen and (max-width: 999px) {
  .service__head {
    width: 100%;
  }
}

.service__head::before {
  border: 1px solid #0fcede;
  border-radius: 5px;
  position: absolute;
  display: block;
  content: "";
  top: 6px;
  right: -6px;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.service__detail {
  margin-top: 27px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 2.14285714286;
  text-align: center;
}
.service__detail span {
  color: #ff7600;
  font-weight: bold;
}

.service__contentsContainer {
  max-width: 902.21px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.service_itemsWrapper {
  margin-top: 32px;
}

.service__itemsMain {
  display: flex;
  justify-content: center;
  gap: 25px;
}

@media screen and (max-width: 999px) {
  .service__itemsMain {
    gap: 20px;
    flex-wrap: wrap;
  }
}

.service__itemMain {
  width: 38.4%;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.05);
  border-radius: 28px 28px 0 0;
}

@media screen and (max-width: 999px) {
  .service__itemMain {
    width: 100%;
  }
}

.service__itemMainImage {
  width: 100%;
}

.service__itemMainText {
  background-color: #ffffff;
  padding-top: 17px;
  padding-left: 23px;
  padding-right: 19px;
  padding-bottom: 24px;
}

.service__itemMainTitle {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 4px;
  margin-bottom: 13px;
}

.service__itemMainContent {
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.71428571429;
}

.service__itemMainLink {
  margin-top: 19px;
  margin-right: 6px;
  text-align: right;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: bold;
  text-align: right;
}
.service__itemMainLink p {
  display: inline-block;
  border-bottom: 1px solid #0fcede;
  color: #0fcede;
  padding-right: 15px;
  padding-bottom: 2px;
  position: relative;
}

.service__itemMainLink p::before {
  position: absolute;
  display: block;
  content: "";
  background: url(../img/chevron-right.svg) no-repeat center center / contain;
  width: 11px;
  height: 13.63px;
  top: 48%;
  right: 0;
  transform: translateY(-50%);
}

.service__itemsSub {
  margin-top: 31px;
  display: flex;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
  align-items: stretch;
  flex-wrap: wrap;
  row-gap: 26px;
}

@media screen and (max-width: 999px) {
  .service__itemsSub {
    margin-top: 20px;
    flex-wrap: wrap;
    row-gap: 20px;
  }
}

.service__itemSub {
  width: 48.77%;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 999px) {
  .service__itemSub {
    width: 48%;
  }
}

.service__itemSub a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service__itemSubInfo {
  border-radius: 20px 20px 0 0;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service__itemSubImage {
  flex-grow: 1;
}
.service__itemSubImage img {
  border-radius: 20px 20px 0 0;
}

.service__itemSubText {
  background-color: #fff;
  position: relative;
  text-align: center;
  padding-top: 19px;
  padding-bottom: 21px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 999px) {
  .service__itemSubText {
    padding-top: 10px;
    padding-bottom: 30px;
  }
}

.service__itemSubText::before {
  position: absolute;
  display: block;
  content: "";
  border-right: 17px solid #0fcede;
  border-top: 17px solid transparent;
  bottom: -2px;
  right: 7px;
  transform: translateY(-50%);
}

.service__itemSubTitle {
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.75;
  font-weight: bold;
  flex-grow: 1;
}

@media screen and (max-width: 999px) {
  .service__itemSubTitle {
    font-size: 14px;
  }
}

.service__itemSubTitle--last {
  font-size: 16px;
  padding-top: 13px;
}

.service__itemSubContent {
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 2.28571428571;
  margin-top: -3px;
  font-weight: bold;
  color: #b7b7b7;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex-grow: 1;
}

@media screen and (max-width: 999px) {
  .service__itemSubContent {
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.5;
  }
}

.service__contentsHead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.service__contentsHead p {
  position: relative;
  z-index: 16;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: #0fcede;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.service__contentsHead p::before {
  position: absolute;
  display: block;
  content: "";
  height: 1px;
  width: 46px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0fcede;
}

.service__contentsHead h2 {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 32px;
  letter-spacing: 0.08em;
  font-weight: bold;
  color: #222222;
}

@media screen and (max-width: 999px) {
  .service__contentsHead h2 {
    font-size: 24px;
  }
}
