/* =======================================================
.page-template-teaser-page
======================================================= */
@media screen and (min-width: 601px) {
  body.page-template-teaser-page {
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    line-height: 2em;
  }
}

@media screen and (max-width: 600px) {
  body.page-template-teaser-page {
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    line-height: 2.1em;
  }
}

.page-template-teaser-page section {
  padding-top: 0;
  padding-bottom: 0;
}

.page-template-teaser-page .kv-block {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  z-index: 20;
}

body.opening-finished.page-template-teaser-page .kv-block .kv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeLoop 30s infinite;
}

/* 3枚を3秒ずつずらす */
body.opening-finished.page-template-teaser-page .kv-block .kv-img.img1 {
  animation-delay: 0s;
}

body.opening-finished.page-template-teaser-page .kv-block .kv-img.img2 {
  animation-delay: 10s;
}

body.opening-finished.page-template-teaser-page .kv-block .kv-img.img3 {
  animation-delay: 20s;
}

@keyframes fadeLoop {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  40% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media screen and (min-width: 601px) {
  .page-template-teaser-page #kv .word-block {
    position: absolute;
    display: block;
    width: 26px;
    aspect-ratio: 26 / 372;
    background-image: url(../image/teaserpage/pc/top-word.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 30;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
  }

}

@media screen and (max-width: 600px) {
  .page-template-teaser-page #kv .word-block {
    position: absolute;
    display: block;
    width: 16px;
    aspect-ratio: 16 / 240;
    background-image: url(../image/teaserpage/sp/top-word.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 20;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
  }

  .page-template-teaser-page #kv .word-block::before {
    content: "";
    position: absolute;
    display: block;
    width: 110px;
    aspect-ratio: 110 / 130;
    background-image: url(../image/logo.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 30;
    bottom: 285px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* スクロール誘導 */
.page-template-teaser-page .scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 70px;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 30;
}

/* 流れる白線 */
.page-template-teaser-page .scroll-indicator span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 2.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.page-template-teaser-page .section-inner {
  max-width: 1920px;
  margin: 0 auto;
}

.page-template-teaser-page .background-gray {
  background-color: #EFEDED;
}

/* --------------------------------
#first-section
---------------------------------*/

@media screen and (min-width: 1371px) {}

@media screen and (max-width: 1370px) and (min-width: 601px) {}

@media screen and (max-width: 600px) {}

@media screen and (min-width: 1920px) {
  .page-template-teaser-page #first-section {
    background: linear-gradient(to right,
        transparent 0%,
        transparent 50%,
        #EFEDED 50%,
        #EFEDED 100%);
    margin-bottom: 560px;
  }
}

@media screen and (min-width: 601px) {
  .page-template-teaser-page #first-section {
    margin-bottom: 560px;
  }

  .page-template-teaser-page #first-section .section-contents {
    max-width: 1370px;
    margin-left: auto;
    padding-top: 325px;
  }

  .page-template-teaser-page #first-section .h2-tag .img {
    top: -220px;
  }

  .page-template-teaser-page #first-section .h2-tag {
    flex: 0 0 107px;
  }


  .page-template-teaser-page #first-section .p-tag {
    flex: 0 0 224px;
  }
}

@media screen and (min-width: 901px) {
  .page-template-teaser-page #first-section .flex-container {
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-right: 140px;
    column-gap: 2em;
  }

  .page-template-teaser-page #first-section .img-block {
    height: 598px;
  }

  .page-template-teaser-page #first-section .img-block .img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
  }
}

@media screen and (max-width: 1370px) and (min-width: 901px) {
  .page-template-teaser-page #first-section .flex-container {
    margin-right: clamp(20px, -73.79px + 15.6vw, 140px);
  }
}

@media screen and (max-width: 900px) and (min-width: 601px) {
  .page-template-teaser-page #first-section .flex-container {
    flex-direction: row-reverse;
    justify-content: center;
    column-gap: 2em;
  }

  .page-template-teaser-page #first-section .flex-container {
    flex-wrap: wrap;
  }

  .page-template-teaser-page #first-section .img-block {
    height: 598px;
    margin-top: -180px;
  }

  .page-template-teaser-page #first-section .img-block .img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
    position: relative;
    bottom: -110px;
  }
}

@media screen and (max-width: 600px) {
  .page-template-teaser-page #first-section {
    padding-bottom: 190px;
  }

  .page-template-teaser-page #first-section .section-contents {
    max-width: 600px;
    width: 100%;
    padding-top: 190px;
    padding-left: 35px;
    padding-right: 35px;
  }

  .page-template-teaser-page #first-section .flex-container {
    flex-wrap: wrap;
    max-width: 321px;
    width: 100%;
    flex-direction: row-reverse;
    justify-content: end;
    margin: 0 auto;
  }

  .page-template-teaser-page #first-section .h2-tag .img {
    top: -145px;
  }

  .page-template-teaser-page #first-section .h2-tag {
    flex: 0 0 73px;
  }

  .page-template-teaser-page #first-section .p-tag {
    flex: 0 0 218px;
  }

  .page-template-teaser-page #first-section .img-block {
    height: 410px;
    margin-top: -244px;
  }

  .page-template-teaser-page #first-section .img-block .img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
    position: relative;
    transform: translateY(100%);
    bottom: 130px;
  }
}

@media screen and (max-width: 600px) and (min-width: 386px) {
  .page-template-teaser-page #first-section .flex-container {
    column-gap: 25px;
  }
}

@media screen and (max-width: 385px) {
  .page-template-teaser-page #first-section .flex-container {
    column-gap: 10px;
  }
}

/* --------------------------------
#second-section
---------------------------------*/
.page-template-teaser-page #second-section {
  background-color: #EFEDED;
}

@media screen and (min-width: 1371px) {
  .page-template-teaser-page #second-section .grid-container {
    margin-right: 140px;
  }
}

@media screen and (max-width: 1370px) and (min-width: 601px) {
  .page-template-teaser-page #second-section .grid-container {
    margin-right: clamp(20px, -73.79px + 15.6vw, 140px);
  }
}

@media screen and (min-width: 601px) {
  .page-template-teaser-page #second-section .section-contents {
    padding-bottom: 110px;
  }

  .page-template-teaser-page #second-section .img-block img {
    position: relative;
    top: -265px;
    object-fit: cover;
    object-position: center center;
    height: 100%;
  }

  .page-template-teaser-page #second-section .grid-container {
    grid-template-columns: 1fr 73px;
    column-gap: 10%;
  }

  .page-template-teaser-page #second-section .grid-container .img-block {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    height: 940px;
  }

  .page-template-teaser-page #second-section .grid-container .word-block {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-top: 70px;
  }

  .page-template-teaser-page #second-section .grid-container .text-block {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    margin-top: -136px;
  }

  .page-template-teaser-page #second-section .text {
    max-width: 535px;
    width: 100%;
    margin-left: auto;
  }

  .page-template-teaser-page #second-section .word-block picture {
    display: inline-block;
  }

  .page-template-teaser-page #second-section .word-block::after {
    content: "";
    width: 1px;
    height: 240px;
    background-color: #000000;
    display: block;
    position: relative;
    bottom: -25px;
    left: 13px;
  }

}

@media screen and (max-width: 600px) {
  .page-template-teaser-page #second-section {
    margin-top: 190px;
    padding-top: 80px;
    margin-bottom: 100px;
  }

  .page-template-teaser-page #second-section .grid-container {
    grid-template-columns: 1fr 105px;
    column-gap: 35px;
    align-self: end;
    row-gap: 80px;
  }

  .page-template-teaser-page #second-section .grid-container .img-block {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    width: 100%;
  }

  .page-template-teaser-page #second-section .img-block img {
    position: relative;
    object-fit: cover;
    object-position: center center;
  }

  .page-template-teaser-page #second-section .grid-container .word-block {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-right: 35px;
  }

  .page-template-teaser-page #second-section .word-block picture {
    display: block;
  }

  .page-template-teaser-page #second-section .grid-container .text-block {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-left: 35px;
    align-self: end;
  }
}

/* --------------------------------
#third-section
---------------------------------*/
@media screen and (min-width: 1821px) {
  .page-template-teaser-page #third-section {
    padding-top: 455px;
    padding-bottom: 50px;
  }

  .page-template-teaser-page #third-section .flex-container {
    justify-content: space-between;
    margin: 0 140px;
    gap: 50px;
  }

  .page-template-teaser-page #third-section .flex-container .img-block:first-of-type {
    padding-left: 140px;
    position: relative;
    top: -540px;
  }
}

@media screen and (max-width: 1820px) and (min-width: 601px) {
  .page-template-teaser-page #third-section {
    padding-top: clamp(60px, -134.75px + 32.4vw, 455px);
    padding-bottom: 50px;
  }

  .page-template-teaser-page #third-section .flex-container {
    justify-content: space-between;
    margin-left: clamp(20px, -39.15px + 9.84vw, 140px);
    margin-right: clamp(20px, -39.15px + 9.84vw, 140px);
    gap: clamp(20px, 5.21px + 2.46vw, 50px);
  }

  .page-template-teaser-page #third-section .flex-container .img-block:first-of-type {
    padding-left: clamp(20px, -39.15px + 9.84vw, 140px);
    position: relative;
    top: clamp(-540px, 116.93px - 36.1vw, -100px);
  }
}

@media screen and (max-width: 600px) {
  .page-template-teaser-page section#third-section {
    padding-bottom: 150px;
  }

  .page-template-teaser-page #third-section .flex-container {
    flex-direction: column;
    row-gap: 90px;
  }

  #third-section .flex-container .img-block:first-of-type {
    margin-right: 120px;
  }

  #third-section .flex-container .img-block:nth-of-type(2) {
    margin-left: 35px;
  }

}

/* --------------------------------
#fourth-section
---------------------------------*/
@media screen and (min-width: 901px) {
  .page-template-teaser-page #fourth-section {
    background: linear-gradient(to left, transparent 0%, transparent 50%, #EFEDED 50%, #EFEDED 100%);
    margin-top: 50px;
  }

  .page-template-teaser-page #fourth-section .text-block {
    max-width: 350px;
    width: 100%;
    padding-bottom: 80px;
    margin-left: auto;
  }

  .page-template-teaser-page #fourth-section .h2-tag {
    position: absolute;
    display: block;
    width: 74px;
    aspect-ratio: 74 / 194;
    background-image: url(../image/teaserpage/pc/section-word4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: -160px;
  }

  .page-template-teaser-page #fourth-section .container {
    max-width: 1460px;
    width: 100%;
    padding-right: 370px;
  }
}


@media screen and (min-width: 601px) {
  .page-template-teaser-page #fourth-section .text+.text {
    padding-top: 40px;
    font-size: 1.4rem;
    line-height: 1.7em;
  }

  .page-template-teaser-page #fourth-section .img-block.map-img {
    /* height: 723px; */
  }

  .page-template-teaser-page #fourth-section .img-block.map-img .img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
  }
}

@media screen and (min-width: 1801px) {
  .page-template-teaser-page #fourth-section .section-contents {
    padding-top: 120px;
    margin-right: 400px;
  }

  .page-template-teaser-page #fourth-section .img-block.absolute-img {
    top: 120px;
    right: -260px;
  }

  .page-template-teaser-page #fourth-section .h2-tag {
    position: absolute;
    display: block;
    width: 74px;
    aspect-ratio: 74 / 194;
    background-image: url(../image/teaserpage/pc/section-word4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: -160px;
  }
}

@media screen and (max-width: 1800px) and (min-width: 901px) {
  .page-template-teaser-page #fourth-section .section-contents {
    padding-top: 120px;
    margin-right: clamp(0px, -400.89px + 44.49vw, 400px);
  }

  .page-template-teaser-page #fourth-section .img-block.absolute-img {
    top: 120px;
    right: clamp(-260px, 350.84px - 33.93vw, 45px);
    width: clamp(300px, 63.6px + 26.25vw, 536px);
  }

  .page-template-teaser-page #fourth-section .h2-tag {
    position: absolute;
    display: block;
    width: 74px;
    aspect-ratio: 74 / 194;
    background-image: url(../image/teaserpage/pc/section-word4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: clamp(-160px, -59.89px - 5.56vw, -110px);
  }
}

@media screen and (max-width: 900px) and (min-width: 601px) {
  .page-template-teaser-page #fourth-section {}

  .page-template-teaser-page #fourth-section .container {
    max-width: 1460px;
    width: 100%;
    display: grid;
    padding-top: 180px;
  }

  .page-template-teaser-page #fourth-section .text-block {
    max-width: 350px;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    grid-row: 2 / 3;
  }

  .page-template-teaser-page #fourth-section .h2-tag {
    position: absolute;
    display: block;
    width: 74px;
    aspect-ratio: 74 / 194;
    background-image: url(../image/teaserpage/pc/section-word4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: -590px;
    left: -65px;
  }

  .page-template-teaser-page #fourth-section .absolute-img {
    grid-row: 1 / 2;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    left: 50px;
  }

  .page-template-teaser-page #fourth-section .img-block.map-img {
    grid-row: 3 / 4;
  }
}

@media screen and (max-width: 600px) {
  .page-template-teaser-page #fourth-section {
    padding-bottom: 130px;
  }

  .page-template-teaser-page #fourth-section .background-gray {
    background-color: unset;
  }

  .page-template-teaser-page #fourth-section .container {
    width: 100%;
    display: grid;
    padding-top: 180px;
  }

  .page-template-teaser-page #fourth-section .background-gray {
    background-color: unset;
  }

  .page-template-teaser-page #fourth-section .text+.text {
    padding-top: 20px;
  }

  .page-template-teaser-page #fourth-section .text-block {
    max-width: 470px;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 60px;
    padding-left: 35px;
    padding-right: 35px;
    margin-left: auto;
    margin-right: auto;
    grid-row: 2 / 3;
  }

  .page-template-teaser-page #fourth-section .h2-tag {
    position: absolute;
    display: block;
    width: 73px;
    aspect-ratio: 73 / 174;
    background-image: url(../image/teaserpage/sp/section-word4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: -500px;
    left: 0;
  }

  .page-template-teaser-page #fourth-section .text-block .first-text p {
    letter-spacing: 0.07em;
  }

  .page-template-teaser-page #fourth-section .text-block .second-text p {
    letter-spacing: 0.1em;
  }

  .page-template-teaser-page #fourth-section .text p {
    line-height: 1.8em;
  }

  .page-template-teaser-page #fourth-section .absolute-img {
    grid-row: 1 / 2;
    max-width: 240px;
    margin: 0 auto;
    position: relative;
    left: 42px;
  }

  .page-template-teaser-page #fourth-section .img-block.map-img {
    grid-row: 3 / 4;
  }
}

.page-template-teaser-page #fourth-section .img-block.map-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1090 / 723;
}

.page-template-teaser-page #fourth-section .map-img iframe {
  filter: grayscale(100%);
}

.page-template-teaser-page #fourth-section .img-block.map-img iframe {
  position: relative;
  object-fit: cover;
  object-position: center center;
  display: block;
  width: 100%;
  height: 100%;
}

/* =======================================================
.page-template-company-terms
======================================================= */
.page-template-company-terms {
  --company-th-color: #F0F0F0;
  --company-td-color: #FAFAFA;
  --terms-main-color: #F5F5F5;
  --terms-td-color: #D9D9D9;
  --font-size-small: 1.3rem;
}

.page-template-company-terms section {
  padding-top: 0;
  padding-bottom: 0;
}

.page-template-company-terms th,
.page-template-company-terms td {
  vertical-align: middle
}

.page-template-company-terms .content-area {
  margin: 0 auto;
  color: #000000;
  font-family: var(--font-yumincho);
  line-height: 2em;
  letter-spacing: 0.08em;
}

@media screen and (min-width: 601px) {
  .page-template-company-terms .content-area {
    max-width: 1160px;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 1.6rem;
  }

  .page-template-company-terms h2 {
    font-size: 3.2rem;
    position: relative;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 50px;
  }

  .page-template-company-terms h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 165px;
    height: 4px;
    background-color: #000000;
  }
}

@media screen and (max-width: 600px) {
  .page-template-company-terms .content-area {
    max-width: 600px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.3rem;
  }

  .page-template-company-terms h2 {
    font-size: 2.4rem;
    position: relative;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 50px;
  }

  .page-template-company-terms h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 125px;
    height: 3px;
    background-color: #000000;
  }

}

/* --------------------------------
.company-section
---------------------------------*/
@media screen and (min-width: 851px) {
  .page-template-company-terms .company-block .company-table {
    font-size: 2rem;
    font-weight: 400;
    border-collapse: separate;
    border-spacing: 5px 5px;
  }

  .page-template-company-terms .company-block th {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    text-align: left;
    background-color: var(--company-th-color);
    font-weight: 500;
    width: 390px;
  }

  .page-template-company-terms .company-block td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    background-color: var(--company-td-color);
    width: 705px;
  }
}

@media screen and (max-width: 850px) and (min-width: 601px) {
  .page-template-company-terms .company-block .company-table {
    font-size: 2rem;
    font-weight: 400;
    border-collapse: separate;
    border-spacing: 5px 5px;
    width: 540px;
    margin: 0 auto;

  }

  .page-template-company-terms .company-block th {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    text-align: left;
    background-color: var(--company-th-color);
    font-weight: 500;
    display: block;
  }

  .page-template-company-terms .company-block td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    background-color: var(--company-td-color);
    display: block;
  }
}

@media screen and (min-width: 601px) {
  .page-template-company-terms .company-block {
    padding-top: 35px;
    padding-bottom: 110px;
  }
}

@media screen and (max-width: 600px) {
  .page-template-company-terms .company-block {
    padding-top: 35px;
    padding-bottom: 75px;
  }

  .page-template-company-terms .company-block .company-table {
    font-weight: 400;
    border-collapse: separate;
    border-spacing: 5px 5px;
    width: 100%;
    margin: 0 auto;

  }

  .page-template-company-terms .company-block th {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    text-align: left;
    background-color: var(--company-th-color);
    font-weight: 500;
    display: block;
  }

  .page-template-company-terms .company-block td {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: var(--company-td-color);
    display: block;
    word-break: auto-phrase;
  }
}

/* --------------------------------
.terms-section
---------------------------------*/
@media screen and (min-width: 601px) {
  .page-template-company-terms .terms-block {
    line-height: 1.6em;
    font-weight: 500;
  }

  .page-template-company-terms .terms-section:first-of-type {
    padding-top: 35px;
  }

  .page-template-company-terms .terms-section+.terms-section {
    padding-top: 50px;
  }

  .page-template-company-terms .terms-heading {
    margin-bottom: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    background: var(--terms-main-color);
    font-size: 2.0rem;
  }

  .page-template-company-terms .li-container>ol {
    padding-top: 25px;
    margin-left: 51px;
  }
}

@media screen and (max-width: 600px) {
  .page-template-company-terms .terms-block {
    font-weight: 500;
  }

  .page-template-company-terms .terms-section+.terms-section {
    padding-top: 30px;
  }

  .page-template-company-terms .terms-heading {
    margin-bottom: 30px;
    padding-top: 25px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    background: var(--terms-main-color);
    word-break: auto-phrase;
    font-size: 1.3rem;
  }

  .page-template-company-terms .li-container>ol {
    padding-top: 30px;
  }
}

.page-template-company-terms .terms-list {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: justify;
}

.page-template-company-terms .li-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.page-template-company-terms ol {
  list-style: none;
  counter-reset: number var(--start, 0);
  padding-left: 0;
  margin-left: 0;
}

.page-template-company-terms ol li {
  counter-increment: number;
  display: flex;
  align-items: flex-start;
  margin-left: 0;
}

.page-template-company-terms ol li::before {
  content: counter(number) ".";
  min-width: 1.2em;
}

.page-template-company-terms .terms-list>li+li {
  margin-top: 20px;
}

.page-template-company-terms ol li .iroha-list li::before {
  content: attr(data-label) ".";
  margin-right: 0.5em;
}

.page-template-company-terms ol li .iroha-list.list-of-list {
  padding-top: 0;
  margin-left: 0;
}

.page-template-company-terms .long-text {
  padding-bottom: 15px;
}

.page-template-company-terms ol.none-number>li::before {
  content: "";
}

@media screen and (min-width: 810px) {
  .page-template-company-terms .li-container .terms-table-block {
    margin-left: 70px;
  }

  .page-template-company-terms .table-title {
    margin-left: -13px;
  }

  .page-template-company-terms .table-note {
    margin-left: -10px;
  }
}

.page-template-company-terms .li-container+.terms-list {
  margin-top: 30px;
}

.page-template-company-terms .terms-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  border: none;
  position: relative;
}

.page-template-company-terms .terms-table td,
.page-template-company-terms .terms-table th {
  border: none;
  border-left: 5px solid #fff;
  border-top: 5px solid #fff;
}

.page-template-company-terms .terms-table tr:first-child td,
.page-template-company-terms .terms-table tr:first-child th {
  border-top: none;
}

.page-template-company-terms .terms-table td:first-child,
.page-template-company-terms .terms-table th:first-child {
  border-left: none;
}

.page-template-company-terms .terms-table .custom-space+th {
  border-left: none !important;
}

@media screen and (min-width: 601px) {
  .page-template-company-terms .fee-table td {
    white-space: nowrap;
  }
}

.page-template-company-terms .terms-table th {
  background: var(--terms-main-color);
}

.page-template-company-terms .terms-table td {
  background: var(--terms-td-color);
}

@media screen and (min-width: 1001px) {

  .page-template-company-terms .time-list th,
  .page-template-company-terms .time-list td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
  }

  .page-template-company-terms .time-list tr:not(:first-child) th {
    width: 430px;
  }
}

@media screen and (max-width: 1000px) and (min-width: 601px) {

  .page-template-company-terms .time-list th,
  .page-template-company-terms .time-list td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .page-template-company-terms .time-list tr:not(:first-child) th {
    width: clamp(210px, -121.33px + 55.14vw, 430px);
  }
}

@media screen and (max-width: 600px) {

  .page-template-company-terms .time-list th,
  .page-template-company-terms .time-list td {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-template-company-terms .terms-table tr:first-child th {
    /* padding-left: 40px;
    padding-right: 40px; */
  }

  .page-template-company-terms .time-list td {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-template-company-terms .time-list tr:not(:first-child) th {
    width: 150px;
    white-space: nowrap;
  }
}

.page-template-company-terms .time-list .terms-table-wrap {
  padding-top: 50px;
}

.hide-cell {
  color: transparent !important;
  background: transparent !important;
  border: none !important;
}

@media screen and (min-width: 1001px) {

  .page-template-company-terms .fee-table th,
  .page-template-company-terms .fee-table td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
    line-height: 2em;
  }

  .page-template-company-terms .fee-table tr:not(:first-child) th {
    width: 215px;
  }
}

@media screen and (max-width: 1000px) and (min-width: 601px) {

  .page-template-company-terms .fee-table th,
  .page-template-company-terms .fee-table td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    line-height: 2em;
  }

  .page-template-company-terms .fee-table tr:not(:first-child) th {
    width: 180px;
  }
}

@media screen and (min-width: 600px) {

  .page-template-company-terms .fee-table th,
  .page-template-company-terms .fee-table td {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    line-height: 2em;
  }

  .page-template-company-terms .fee-table tr:not(:first-child) th {
    width: 180px;
  }
}

.page-template-company-terms .fee-table th.custom-space {
  letter-spacing: 0em;
}

@media screen and (max-width: 740px) {
  .page-template-company-terms .fee-table th.custom-space {
    writing-mode: tb;
    text-align: center;
  }

  .page-template-company-terms .fee-table th.custom-space .display-none {
    display: none;
  }
}

.page-template-company-terms .table-title {
  padding-top: 10px;
  padding-bottom: 20px;
}

.page-template-company-terms .table-note {
  padding-top: 30px;
  padding-bottom: 0;
}

.page-template-company-terms .terms-table-wrap.fee-table {
  padding-bottom: 30px;
}

/* .page-template-company-terms .terms-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
} */

.page-template-company-terms .penalty-table tr:first-of-type th:not(:first-child),
.page-template-company-terms .penalty-table tr td {
  text-align: center;
}



@media screen and (min-width: 1001px) {
  .page-template-company-terms .penalty-table .font-size-normal {
    font-size: 1.6rem;
    white-space: nowrap;
  }

  .page-template-company-terms .penalty-table tr:first-of-type th {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-template-company-terms .penalty-table tr:first-of-type th:first-of-type,
  .page-template-company-terms .penalty-table tr:not(:first-child) th {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 50px;
    padding-right: 50px;
    line-height: 2em;
  }

  .page-template-company-terms .penalty-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 1000px) and (min-width: 601px) {
  .page-template-company-terms .penalty-table .font-size-normal {
    /* font-size: 1.6rem; */
    /* white-space: nowrap; */
  }

  .page-template-company-terms .penalty-table tr:first-of-type th {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .page-template-company-terms .penalty-table tr:first-of-type th:first-of-type,
  .page-template-company-terms .penalty-table tr:not(:first-child) th {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 30px;
    padding-right: 30px;
    line-height: 2em;
  }

  .page-template-company-terms .penalty-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media screen and (max-width: 600px) {
  .page-template-company-terms .penalty-table tr:not(:first-child) th {
    width: 95px !important;
  }

  .page-template-company-terms .terms-table-wrap.fee-table {
    line-height: 1.2em;
  }

  .page-template-company-terms .terms-table-wrap.fee-table .test {
    width: 45px;
    text-align: center;
  }

  .page-template-company-terms .fee-table th.custom-space {
    width: 55px;
  }

  .page-template-company-terms .fee-table td {
    padding-left: 20px;
    padding-right: 10px;
    height: 60px;
    white-space: nowrap;
  }

  .page-template-company-terms .fee-table tr:first-child th {
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
  }

  .page-template-company-terms .penalty-table .font-size-normal {}

  .page-template-company-terms .penalty-table tr:first-of-type th {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .page-template-company-terms .penalty-table tr:first-of-type th:first-of-type,
  .page-template-company-terms .penalty-table tr:not(:first-child) th {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 10px;
    line-height: 2em;
  }

  .page-template-company-terms .penalty-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    width: 50px;
  }

  .page-template-company-terms .penalty-table tr:first-of-type th:not(:first-child) {
    height: 80px;
  }

  .page-template-company-terms .list-note li+li {
    margin-top: 10px;
  }
}

.page-template-company-terms .penalty-table {
  font-size: 1.3rem;
}

/* .page-template-company-terms .penalty-table tr:first-of-type th:not(:first-child) {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.page-template-company-terms span.combine {
  text-combine-upright: all;
} */
@media screen and (max-width: 735px) {
  .page-template-company-terms .font-size-normal {
    color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-template-company-terms .penalty-table::before {
    content: "契約解除の通知を受けた日";
    position: relative;
    left: 38%;
  }

  .page-template-company-terms .penalty-table tr:not(:first-child) th {
    width: 125px;
  }

  .page-template-company-terms .penalty-table tr:first-of-type th:not(:first-child) {
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .page-template-company-terms span.combine {
    text-combine-upright: all;
  }

  /* .penalty-table {
    width: 100%;
    overflow-x: auto;
  }

  .penalty-table table {
    min-width: 630px;
    border-collapse: collapse;
  } */

}

@media screen and (max-width: 600px) {
  .page-template-company-terms .sp-hide {
    display: none;
  }

}






.page-template-company-terms .terms-text {
  margin: 0 0 18px;
}



.page-template-company-terms .terms-table .vertical {
  writing-mode: vertical-rl;
  text-align: center;
  white-space: nowrap;
}