@media screen and (min-width: 768px) {
  .sp {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }
}

body.sub-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}
body.sub-page main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media screen and (min-width: 768px) {
  body.sub-page main {
    min-height: calc(100vh - 154px);
    padding: 0 50px;
  }
}
@media screen and (max-width: 767px) {
  body.sub-page main {
    min-height: 70vh;
    padding: 21.3333333333vw 6.4102564103vw 0;
  }
}
body.sub-page main div.inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body.sub-page main div.inner div.contents h2 {
  text-align: center;
}
@media screen and (min-width: 768px) {
  body.sub-page main div.inner div.contents h2 {
    display: flex;
    justify-content: center;
    gap: 0 25px;
    font-size: 72px;
  }
}
@media screen and (max-width: 767px) {
  body.sub-page main div.inner div.contents h2 {
    text-align: center;
    font-size: 12.2222222222vw;
  }
}
@media screen and (max-width: 767px) {
  body.sub-page main div.inner div.contents h2 span {
    display: block;
    line-height: 1;
  }
}
body.sub-page main div.inner div.contents p {
  font-weight: 600;
  line-height: 2;
}
@media screen and (min-width: 768px) {
  body.sub-page main div.inner div.contents p {
    text-align: center;
    margin: 50px 0 0;
    font-size: 17px;
  }
}
@media screen and (max-width: 767px) {
  body.sub-page main div.inner div.contents p {
    margin: 10.6666666667vw 0 0;
    font-size: 3.0379746835vw;
  }
}