/* 
---------------------------------------------------------------------------- */
.p-viewer .m-service-deco-ttl {
  margin-top: 0;
}

.p-viewer-box01 {
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 5rem;
  border-radius: 2rem;
  background-color: #3E4547;
}
.p-viewer-box01 span {
  padding: 0 0.5rem;
}

.p-viewer-step-list {
  display: flex;
  gap: 2rem;
  width: 100rem;
  margin: 6rem auto 0;
  counter-reset: num;
}
.p-viewer-step-list li {
  flex: 1;
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.p-viewer-step-list li:nth-child(1) .p-viewer-step-item-ttl::before {
  background-color: #00D5BD;
}
.p-viewer-step-list li:nth-child(2) .p-viewer-step-item-ttl::before {
  background-color: #00BDCC;
}
.p-viewer-step-list li:nth-child(3) .p-viewer-step-item-ttl::before {
  background-color: #00A6DA;
}

.p-viewer-step-item-ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: "Zenkaku Gothic New";
  text-align: center;
  height: auto;
  aspect-ratio: 320/70;
  position: relative;
}
.p-viewer-step-item-ttl span {
  padding-left: 1rem;
  position: relative;
  z-index: 1;
}
.p-viewer-step-item-ttl span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 600;
  font-family: "Rajdhani";
  width: 4.4rem;
  height: 4.4rem;
  border: 0.2rem solid #fff;
  border-radius: 9999px;
  counter-increment: num;
  content: counter(num, decimal-leading-zero);
}
.p-viewer-step-item-ttl::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  aspect-ratio: 320/70;
  mask: url(../../../images/service/viewer/bg_step-ttl.svg) no-repeat center/contain;
}

.p-viewer-step-item-img {
  margin: 2rem 0 2.5rem;
}

.p-viewer-box02 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem 8rem;
  margin-top: 6rem;
}
.p-viewer-box02 iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 560/314;
  border-radius: 2rem;
}

.p-viewer-box02-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
}

.p-viewer-box02-ttl {
  align-self: center;
  color: #00C2C9;
  font-size: 2.2rem;
  line-height: 1.6363636364;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-align: center;
}

.p-viewer-txt-s {
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 400;
  margin-top: 1.5rem;
}

.p-viewer-box03-ttl {
  font-size: 3.2rem;
  line-height: 1.59375;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 6rem;
  border-radius: 2rem 2rem 0 0;
  background-color: #353535;
}

.p-viewer-box03 {
  padding: 5rem 8rem;
  border-radius: 0 0 2rem 2rem;
  background-color: #3E4547;
}
.p-viewer-box03 iframe {
  display: block;
  width: 89rem;
  height: auto;
  aspect-ratio: 890/437;
  margin: 2rem auto 0;
}

.p-viewer-box03-inner {
  display: flex;
  align-items: start;
  gap: 5rem;
  margin-bottom: 4rem;
}
.p-viewer-box03-inner img {
  width: 34rem;
}

.m-advantage-list {
  margin-bottom: 8rem;
}

.p-viewer-bnr {
  display: block;
  width: 82rem;
  margin: auto;
}

@media screen and (max-width: 767px) {
  .p-viewer-box01 {
    font-size: 4.8vw;
    padding: 8vw 5.3333333333vw;
    border-radius: 5.3333333333vw;
  }
  .p-viewer-box01 span {
    padding: 0 0.8vw;
  }
  .p-viewer-step-list {
    flex-direction: column;
    gap: 8vw;
    width: 100%;
    margin: 16vw auto 0;
  }
  .p-viewer-step-list li {
    display: flex;
    gap: 5.3333333333vw;
    font-size: 4.2666666667vw;
  }
  .p-viewer-step-item-ttl {
    align-items: start;
    font-size: 5.3333333333vw;
    text-align: center;
    width: 100%;
    height: auto;
    aspect-ratio: 50/199;
    padding-top: 14.6666666667vw;
  }
  .p-viewer-step-item-ttl span {
    width: 1em;
    padding-left: 0;
    padding-top: 1.3333333333vw;
  }
  .p-viewer-step-item-ttl span::before {
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 4.8vw;
    width: 8vw;
    height: 8vw;
    border: 0.5333333333vw solid #fff;
  }
  .p-viewer-step-item-ttl::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    transform: translate(0);
    width: 100%;
    height: 100%;
    aspect-ratio: 50/199;
    mask: url(../../../images/service/viewer/bg_step-ttl_sp.svg) no-repeat center top/contain;
  }
  .p-viewer-step-item-img {
    width: 70.6666666667vw;
    margin: 0 0 1.3333333333vw;
  }
  .p-viewer-box02 {
    grid-template-columns: 1fr;
    gap: 8vw;
    margin-top: 8vw;
  }
  .p-viewer-box02 iframe {
    border-radius: 4vw;
  }
  .p-viewer-box02-item {
    gap: 5.3333333333vw;
  }
  .p-viewer-box02-ttl {
    font-size: 4.8vw;
  }
  .p-viewer-txt-s {
    font-size: 3.7333333333vw;
    margin-top: 4vw;
  }
  .p-viewer-box03-ttl {
    font-size: 5.3333333333vw;
    padding: 5.3333333333vw 0;
    margin-top: 8vw;
    border-radius: 4vw 4vw 0 0;
  }
  .p-viewer-box03 {
    padding: 5.3333333333vw;
    border-radius: 0 0 4vw 4vw;
  }
  .p-viewer-box03 iframe {
    width: 100%;
    aspect-ratio: 295/200;
    margin: 2.6666666667vw auto 0;
  }
  .p-viewer-box03 .p-viewer-txt-s {
    font-size: 3.4666666667vw;
  }
  .p-viewer-box03-inner {
    flex-direction: column;
    gap: 5.3333333333vw;
    margin-bottom: 8vw;
  }
  .p-viewer-box03-inner img {
    width: 100%;
  }
  .m-advantage-list {
    margin-bottom: 21.3333333333vw;
  }
  .p-viewer-bnr {
    width: 100%;
  }
}
