.subpagelinks {
  padding: 0 1rem;
  margin-top: 8rem;
}
@media (990px <= width) {
  .subpagelinks {
    margin-top: 16rem;
    padding: 0;
    overflow: hidden;
  }
}
.subpagelinks__inner {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 0 1rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.subpagelinks__inner::before {
  content: "";
  width: 100%;
  height: 1px;
  background: #000;
  position: absolute;
  left: 0;
  bottom: 0;
}
@media (width < 768px) {
  .subpagelinks__inner {
    gap: 0 0.5rem;
    padding: 0 0.5rem;
  }
}
@media (990px <= width) {
  .subpagelinks__inner {
    padding: 0 3rem;
    gap: 0 2.5rem;
    width: 100%;
  }
}
.subpagelinks a {
  border-width: 1px 1px 0;
  border-color: #eee;
  border-style: solid;
  border-radius: 1rem 1rem 0 0;
  background-color: #eee;
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
  line-height: 5rem;
}
@media (width < 768px) {
  .subpagelinks a {
    font-size: 1.4rem;
  }
}
@media (990px <= width) {
  .subpagelinks a {
    line-height: 6rem;
  }
}
@media (hover: hover) and (width >= 900px) {
  .subpagelinks a {
    transition: all var(--speed) ease-in-out;
  }
  .subpagelinks a:hover {
    color: #999;
  }
}
.subpagelinks a.current {
  border-color: #000;
  background-color: #fff;
  position: relative;
}

.pagesubtitle {
  text-align: center;
  padding-top: 8rem;
}
@media (990px <= width) {
  .pagesubtitle {
    padding-top: 16rem;
  }
}
.pagesubtitle .sub {
  font-size: 1.4rem;
  background: var(--clr-main);
  display: inline-block;
  padding: 0.7rem 4rem;
  border-radius: 1rem;
}
@media (990px <= width) {
  .pagesubtitle .sub {
    font-size: 1.6rem;
    padding: 0.7rem 4.5rem;
  }
}
.pagesubtitle .title {
  font-size: 3.2rem;
  margin-top: 2rem;
}
@media (990px <= width) {
  .pagesubtitle .title {
    font-size: 4.8rem;
    margin-top: 4rem;
  }
}

.pagediscription {
  padding: 4rem 1.5rem 0;
}
@media (990px <= width) {
  .pagediscription {
    padding: 8rem 5rem 0;
    text-align: center;
    font-size: 1.8rem;
  }
}

em {
  background-color: var(--clr-main);
}

.section__header {
  position: relative;
  padding-bottom: calc(20 / var(--spSize) * 100vw);
  margin-bottom: calc(20 / var(--spSize) * 100vw);
  font-size: 2.4rem;
}
@media (990px <= width) {
  .section__header {
    font-size: 3.2rem;
    gap: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
  }
}
.section__header::after {
  content: "";
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, #000 2px, transparent 2px);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: left top;
  position: absolute;
  left: 0;
  bottom: 0;
}
@media (990px <= width) {
  .section__header::after {
    width: auto;
    left: 0;
    right: 0;
  }
}

hr.separate {
  position: relative;
  height: 2px;
  border: none;
}
@media (width < 990px) {
  hr.separate {
    margin: 0;
  }
}
hr.separate::after {
  content: "";
  height: 2px;
  background-image: linear-gradient(to right, #000 2px, transparent 2px);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: left top;
  position: absolute;
  left: calc(15 / var(--spSize) * 100vw);
  right: calc(15 / var(--spSize) * 100vw);
  bottom: 0;
}
@media (990px <= width) {
  hr.separate::after {
    left: 0;
    right: 0;
  }
}

.tabfile__title {
  position: relative;
}
.tabfile__title .label {
  background-color: #fff;
  border-radius: 1rem 1rem 0 0;
  border-width: 1px 1px 0;
  border-style: solid;
  border-color: #000;
  display: inline-block;
  padding: 1.1rem 1.9rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
}
@media (990px <= width) {
  .tabfile__title .label {
    font-size: 1.8rem;
  }
}
.tabfile__title .label::after {
  content: "";
  width: 5px;
  height: 50%;
  background-color: #fff;
  position: absolute;
  right: -3px;
  bottom: 0;
}
.tabfile__title::before {
  content: "";
  width: 100%;
  height: 50%;
  background-color: #fff;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 0 1rem 0 0;
}
.tabfile__title .dec {
  position: absolute;
  right: 10px;
  top: 10px;
  aspect-ratio: 1;
  height: calc(50% + 1px);
  transform: translateX(100%);
  -webkit-mask-image: url(../images/service/sikaku.svg), url(../images/service/circle.svg);
          mask-image: url(../images/service/sikaku.svg), url(../images/service/circle.svg);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  background-color: #fff;
  -webkit-mask-position: bottom 0px left 0px, bottom 11px left 11px;
          mask-position: bottom 0px left 0px, bottom 11px left 11px;
  -webkit-mask-repeat: no-repeat, no-repeat;
          mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: 200%, 100%;
          mask-size: 200%, 100%;
}
.tabfile__title .dec2 {
  aspect-ratio: 1;
  height: calc(50% + 1px);
  border-radius: 100%;
  border: 1px solid #000;
  position: absolute;
  right: 0px;
  top: -0.5px;
  transform: translateX(100%);
  clip-path: polygon(0 50%, 50% 50%, 50% 100%, 0 100%);
}
.tabfile__body {
  border-width: 0 1px 1px;
  border-style: solid;
  border-color: #000;
  border-radius: 0 0 1rem 1rem;
  background-color: #fff;
}

.serviceList {
  padding: calc(80 / var(--spSize) * 100vw) calc(15 / var(--spSize) * 100vw) 0;
  padding: 8rem 1.5rem 0;
}
@media (990px <= width) {
  .serviceList {
    padding: 16rem 0 0;
  }
}
@media (990px >= width >= 768px) {
  .serviceList__header br {
    display: none;
  }
}
.serviceList__columns {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}
@media (990px <= width) {
  .serviceList__columns {
    margin-top: 6rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
  }
}
.serviceList__columns .box {
  border: 1px solid #000;
  border-radius: 2rem;
  padding: 2rem;
  background-image: repeating-linear-gradient(to right, #ededed, #ededed 0.1rem, transparent 0.1rem, transparent 3rem), repeating-linear-gradient(to bottom, #ededed, #ededed 0.1rem, #fff 0.1rem, #fff 3rem);
}
@media (width >= 768px) {
  .serviceList__columns .box {
    padding: 4rem;
    display: grid;
    grid-template-columns: 35.8208955224% auto;
    gap: 4rem;
  }
}
.serviceList__columns .box__img {
  overflow: hidden;
}
.serviceList__columns .box__img img {
  border-radius: 2rem;
}
.serviceList__columns .box__contents__label {
  background-color: var(--clr-main);
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 1rem;
  margin-top: 2rem;
}
@media (width >= 768px) {
  .serviceList__columns .box__contents__label {
    margin-top: 0;
  }
}
.serviceList__columns .box__contents__links {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}
.serviceList__columns .box__contents__links a {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 700;
}
.serviceList__columns .box__contents__links a::before {
  content: "";
  width: 3rem;
  height: 3rem;
  border-radius: 100%;
  background: #000 url(../images/common/arrow-right_white.svg) center/1.4rem auto no-repeat;
  display: inline-block;
}
@media (hover: hover) and (width >= 900px) {
  .serviceList__columns .box__contents__links a {
    transition: all var(--speed) ease-in-out;
  }
  .serviceList__columns .box__contents__links a:hover {
    transform: translateX(0.5rem);
  }
}