
.page-service section{
  width: 100%;
}
.page-service :where(.container-main) p{
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .03em;
}
.page-service :where(.container-main) :where(p,h2,h3,h4) span{
  display: inline-block;
}
.page-service .section-kv{
  position: relative;
  max-height: 400px;
  overflow: hidden;
  overflow: clip;
  display: grid;
  z-index: 0;
}

.page-service .kv__content{
  grid-area: 1/1;
  z-index: 1;
  padding-inline: 20px 0;
  padding-block: 48px 0;
}
.page-service .kv__image{
  grid-area: 1/1;
  z-index: 0;
}
.page-service .page-title{
}

.page-service .page-title .subtitle{
  font-size: 20px;
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: .03em;
  color: #fff;
}
.page-service .page-title p.subtitle{
  font-size: 20px;
  font-family: var(--font-ja);
  font-weight: 500;
  letter-spacing: .03em;
  color: #fff;
  padding-block: 24px;
}
.page-service .page-title h1{
  font-size: 28px;
  font-family: var(--font-ja);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  padding: 0;
}
.page-service .page-title h1 span{
  display: block;
}
.page-title .block-cta__button{
  padding-block-start: 48px;
}
.page-title .block-cta__button a.button{
  margin-inline: 0;
}
.page-service .kv__image img{
  width: 100%;
  height: min(400px,100%);
  object-fit: cover;
  object-position: center;
}

@media screen and (min-width: 768px) {
  .page-service .section-kv{
    max-height: unset;
  }
  .page-service .kv__content{
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 20px;
    padding-block: 0;
    align-self: center;
  }
  .page-service .page-title p.subtitle{
    font-size: 24px;
    padding-block: 48px 24px;
  }
  .page-service .page-title h1{
    font-size: 32px;
    margin: 0;
  }
  .page-service .page-title h1 span{
    display: inline-block;
  }
  .page-service .section-kv{
    position: relative;
  }
  .page-service .kv__image img{
    height: auto;
    aspect-ratio: 1440 / 600;
    min-height: 400px;
  }
}



/* ページ内ナビゲーション */
.page-nav{
  margin-inline: 20px;
}
.page-nav ul{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-nav a{
  display: block;
  width: 180px;
  border-radius: 32px;
  border: 1px solid var(--color-primary-600);
  color: var(--color-primary-600);
  text-align: center;
  color: #1E2D4D;
  font-size: 14px;
  font-weight: 700;
  padding-block: 8px;
  line-height: 1;
  background-color: var(--color-on-primary);
  transition: background .2s ease, color .2s ease;
}

@media (any-hover: hover) {
  .page-nav a:hover{
    color: var(--color-primary-600);
  }
}

@media screen and (min-width: 800px) {
  .page-nav ul{
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
}
@media screen and (min-width: 920px) {
  .page-nav ul{
    justify-content: center;
    gap: 48px;
  }
}

.section-page-nav{
  margin-block: 24px;
  margin-inline: auto;
}

/* セクションタイトル */
.section__header hgroup{
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section__header .subtitle{
  font-size: 16px;
  font-family: var(--font-en);
  font-weight: 300;
  letter-spacing: .03em;
  color: var(--color-subtitle);
}
.section__header h2{
  font-size: 34px;
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--color-primary-600);
  line-height: 1.53;
  letter-spacing: .02em;
}

/* CTA */
.section-cta{
  width: 100%;
  padding-inline: 20px;
}
.container-cta{
  container: cta / inline-size;
}
.block-cta{
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  background-image: url(/assets/images/service/cta-sp.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-inline: 20px;
  padding-block: 64px;
  border-radius: 40px;
  aspect-ratio: 335/512;
  height: auto;
}

.block-cta .section__header{
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

@container cta (min-width: 375px){
  .block-cta{
    max-height: 512px;
    background-image: url(/assets/images/service/cta.webp);
    width: 100%;
  }
}
@container cta (min-width: 850px){
  .block-cta{
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto auto;
    background-image: url(/assets/images/service/cta.webp);
    aspect-ratio: 1200/296;
    height: auto;
    justify-content: space-evenly;
    align-items: center;
    margin-block: 96px;
  }

  .block-cta .section__header{
    row-gap: 16px;
  }
  .block-cta .section__header h2 {
    font-size: 40px;
    font-weight: 500;
  }
  .block-cta__button {
    margin-block: auto;
  }
  .block-cta__button a.button{
    width: 320px;
  }
}

/* サービスの特長 */
.section-features{
  padding-inline: 20px;
  padding-block: 96px 120px;
  background-color: var(--color-azure-radiance-50);
  border-radius: 48px;
}

.features__list{
  display: flex;
  flex-direction: column;
  row-gap: 48px;
  padding-block: 48px 0;
}
.features__item{
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}
.features__text{
  padding-inline: 16px;
  padding-block: 48px;
  background-color: #fff;
  border-radius: 48px;
}
.features__text h3{
  border-bottom: 1px solid var(--color-azure-radiance-200);
  padding-block: 0 16px;
  margin-block: 0 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .025em;
  color: var(--color-azure-radiance-600);
  display: flex;
  gap: 16px;
  white-space: pre-wrap;
}
.features__text h3 .number{
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 60px;
  background-color: var(--color-azure-radiance-50);
  text-align: center;
  display: grid;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-family: var(--font-en);
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--color-azure-radiance-600);
  align-self: flex-end;
  margin-block-end: 12px;
}

.features__image{
  text-align: center;
}
.features__image img{
  border-radius: 40px;
}
@media screen and (min-width: 820px) {
  .features__list{
    max-width: 1140px;
    margin-inline: auto;
    gap: 48px;
  }
  .features__item{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "feature-text feature-image";
    gap: 48px;
  }
  .features__item:nth-of-type(2){
    grid-template-columns: auto 1fr;
    grid-template-areas: "feature-image feature-text";
  }
  .features__text{
    grid-area: feature-text;
    align-items: center;
  }
  .features__text > :where(h3,p){
    max-width: 600px;
    margin-inline: auto;
  }
  .features__text h3{
    font-size: 24px;
    align-items: center;
  }
  .features__text h3 .number{
    margin: 0;
    width: 80px;
    font-size: 22px;
  }
  .features__text h3 br{
    display: none;
  }
  .features__image{
    grid-area: feature-image;
  }
}

/* 保有資格 */
.section-license{
  padding-inline: 20px;
  padding-block: 64px;
  background-color: #F7F7F7;
}
.block-license .section__header hgroup{
  text-align: left;
  border-bottom: 1px solid var(--color-azure-radiance-700);
  margin-block: 0 48px;
}
.license__list{
  background-color: #fff;
}
.license__list li{
  padding-block: 12px;
  padding-inline: 16px 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--color-azure-radiance-200);
  display: flex;
  align-items: baseline;
  column-gap: 8px;
}
.license__list li::before{
  content: '';
  display: inline-block;
  width: 16px;
  height: 10px;
  background-color: var(--color-azure-radiance-600);
  background-repeat: no-repeat;
  background-position: center center;
  clip-path: circle(3px);
}

@media screen and (min-width: 820px) {
  .block-license{
    max-width: 1140px;
    margin-inline: auto;
  }
  .block-license h2{
    font-size: 38px
  }
  .license__list{
    height: min-content;
  }
}

/* サービスの流れ */
.section-flow{
  padding-inline: 20px;
  padding-block: 64px 48px;
}
.flow__list{
  padding-block: 48px 24px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}
.flow__item{
  display: grid;
  grid-template-columns: 45% 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "f-step f-image" "f-text f-text";
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.flow__step{
  grid-area: f-step;
  justify-self: flex-end;
  text-align: center;
  font-size: 32px;
  font-family: var(--font-en);
  font-weight: 300;
  line-height: auto;
  letter-spacing: 0;
  color: var(--color-azure-radiance-600);
  width: 82px;
}
.flow__step::before{
  content: 'STEP';
  display: block;
  text-align: center;
  font-size: 14px;
  font-family: var(--font-en);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--color-azure-radiance-600);
}
.flow__image{
  grid-area: f-image;
}
.flow__image img{
  aspect-ratio: 1/1;
  width: 128px;
  border-radius: 12px;
}

.flow__text{
  grid-area: f-text;
  border-bottom: 1px solid var(--color-azure-radiance-200);
}
.flow__text h3{
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--color-azure-radiance-600);
  text-align: center;
}
.flow__text h3 span{
  display: block;
}
.flow__text p{
  padding-block: 16px 24px;
}

@media screen and (min-width: 768px) {
  .section-flow .section__header h2{
    font-size: 38px;
  }
  .section-flow{
    padding-block: 96px;
  }
  .flow__list{
    max-width: 1140px;
    margin-inline: auto;
    padding-block: 72px 24px;
  }
  .flow__item{
    display: grid;
    grid-template-columns: 82px 128px 1fr;
    grid-template-rows: auto;
    grid-template-areas: "f-step f-image f-text";
    align-items: center;
    gap: 40px;
  }
  .flow__text{
    height: 100%;
  }
  .flow__text h3{
    text-align: left;
  }
  .flow__text h3 span{
    display: inline-block;
  }
}