.page-top main{
  margin-block-start: calc( var(--height-header) * -1 );
  position: relative;
  z-index: 0;
}

.container-header{
  z-index: 1;
}

.container-fv{
  z-index: 0;
  background: #8EE4FC;
  background: linear-gradient(97deg,rgba(255, 255, 255, 1) 0%, rgba(142, 228, 252, 1) 37%, rgba(100, 194, 255, 1) 58%, rgba(180, 225, 255, 1) 80%, rgba(255, 255, 255, 1) 100%);
  height: auto;
  padding-block: var(--height-header) 64px;
  display: grid;
  position: relative;
}
.block-fv{
  position: relative;
  grid-area: 1/1;
  z-index: 0;
  width: 100%;
  overflow: hidden;
}
.block-fv-cover{
  position: relative;
  grid-area: 1/1;
  z-index: 1;
  background: #8EE4FC;
  background: linear-gradient(97deg,rgba(255, 255, 255, 1) 0%, rgba(142, 228, 252, 1) 37%, rgba(100, 194, 255, 1) 58%, rgba(180, 225, 255, 1) 80%, rgba(255, 255, 255, 1) 100%);
  width: 100%;
  height: 100%;
  background-clip: padding-box; /* パディング領域まで適用 */
  clip-path: polygon(
    calc(100% - 20px - 136px) 0%, 
    calc(100% - 20px) 0%, 
    calc(100% - 20px) 700px, 
    calc(100% - 20px - 136px) 700px
  );
  width: 100%;
  overflow: hidden;
}
.block-fv-cover .fv-message-wrapper{
  background: transparent;
  margin-inline: auto 20px;
  width: 136px;
  height: 700px;
  display: grid;
  justify-content: center;
  align-items: flex-start;
  margin-block: 26px;
}

.block-fv-cover .fv-message{
  color: var(--color-on-primary);
  writing-mode: vertical-rl;
  font-size: 32px;
  grid-area: 1 / 1;
  letter-spacing: 9px;
  line-height: 1.5;
}

.block-fv-cover .fv-message .accent{
  color: var(--color-subtitle);
}

.block-fv .slide-images img{
  border-radius: 18px;
  box-shadow: 2px 2px 20px rgb(46 108 137/.2);
  margin: 18px;
}

.block-fv-text{
  position: absolute;
  top: 590px;
  z-index: 0;
  grid-area: 1/1;
  font-size: 64px;
  font-family: var(--font-en);
  line-height: 1.5;
  color: rgb(255 255 255/ .53);
  word-break: keep-all;
  text-wrap: nowrap;
  width: 100%;
  overflow: hidden;
}
.splide{
  margin-block: 78px 0;
}
.splide__slide__row{
  height: auto!important;
}
.splide__slide--col{
  text-align: right;
}

/* セクションタイトル */
.section__header{
  display: flex;
  flex-direction: column;
  row-gap: 48px;
}

.section__header subtitle{
  font-size: 16px;
  font-family: var(--font-en);
  color: var(--color-subtitle);
}

.section__header h2{
  font-size: 32px;
  font-family: var(--font-ja);
  color: var(--color-primary-600);
  font-weight: 400;
}

@media screen and (min-width: 768px) {
  .section__header h2{
    font-size: 40px;
  }
}

/* 毎日の強み */
.section-advantage{
  grid-area: 1/1;
  margin-block: 750.5px 0;
  z-index: 1;
}
.container-advantage{
  border-radius: 48px;
  background-color: rgb(255 255 255/ .9);
  padding-inline: 20px;
  padding-block: 80px 64px;
  display: flex;
  flex-direction: column;
  row-gap: 48px;
}

.container-advantage img{
  width: 100%;
  height: auto;
}


.block-advantage-wrapper{
  display: flex;
  flex-direction: column;
  row-gap: 48px;
}

.container-advantage p{
  line-height: 2;
  letter-spacing: 0.03em;
}

.block-advantage__button{
  display: block;
  width: 100%;
  text-align: right;
}

.button-next{
  display: inline-block;
  width: 240px;
  margin-inline: auto 0;
  padding: 14px 1em;
  font-size: 14px;
  text-align: left;
  color: var(--color-primary-600);
  border: 1px solid var(--color-primary-600);
  border-radius: 999px;
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3333 14.1667L15.5 10L11.3333 5.83337M5.5 14.1667L9.66667 10L5.5 5.83337" stroke="%233B7DD6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 18px auto;
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (any-hover: hover) {
  .button-next:hover{
    background-color: var(--color-primary-600);
    background-image: url('data:image/svg+xml,<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3333 14.1667L15.5 10L11.3333 5.83337M5.5 14.1667L9.66667 10L5.5 5.83337" stroke="%23FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    color: var(--color-on-primary);
  }
}


@media screen and (min-width: 960px) {
  .container-fv{
    z-index: 0;
    background: #8EE4FC;
    background: linear-gradient(119deg,rgba(255, 255, 255, 1) 0%, rgba(142, 228, 252, 1) 37%, rgba(100, 194, 255, 1) 50%, rgba(180, 225, 255, 1) 80%, rgba(255, 255, 255, 1) 100%);
    padding-block: var(--height-header);
    display: grid;
  }
  .container-fv::before{
    content: '';
    display: block;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(/assets/images/top/bg-circle.webp);
    background-repeat: no-repeat;
    background-position: 80% 50%;
    z-index: 0;
  }
  .block-fv{
    position: relative;
    grid-area: 1/1;
    z-index: 0;
    width: 100%;
    overflow: hidden;
  }

  .block-fv-cover{
    position: relative;
    grid-area: 1/1;
    z-index: 1;
    background: #8EE4FC;
    background: linear-gradient(119deg,rgba(255, 255, 255, 1) 0%, rgba(142, 228, 252, 1) 37%, rgba(100, 194, 255, 1) 50%, rgba(180, 225, 255, 1) 80%, rgba(255, 255, 255, 1) 100%);
    width: 100%;
    height: 100%;
    background-clip: padding-box; /* パディング領域まで適用 */
    clip-path: polygon(
      calc(50%) 0%, 
      calc(50% + 277px) 0%, 
      calc(50% + 277px) 860px, 
      calc(50%) 860px
    );
    overflow: hidden;
  }
  .block-fv-cover::after{
    content: '';
    display: block;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(/assets/images/top/bg-circle.webp);
    background-repeat: no-repeat;
    background-position: 80% 50%;
    z-index: 0;
    background-clip: padding-box; /* パディング領域まで適用 */
    clip-path: polygon(
      calc(50%) 0%, 
      calc(50% + 277px) 0%, 
      calc(50% + 277px) 860px, 
      calc(50%) 860px
    );
    overflow: hidden;
  }

  .block-fv-cover .fv-message-wrapper{
    background: transparent;
    margin-inline: 50%;
    width: 277px;
    height: 780px;
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .block-fv-cover .fv-message{
    color: var(--color-on-primary);
    writing-mode: vertical-rl;
    font-size: 32px;
    grid-area: 1 / 1;
    letter-spacing: 9px;
    line-height: 1.5;
  }

  .block-fv-cover .fv-message .accent{
    color: var(--color-subtitle);
  }

  .block-fv .slide-images img{
    border-radius: 48px;
    box-shadow: 2px 2px 40px rgb(46 108 137/.2);
    margin: 40px;
  }
  .block-fv .slide-images li:nth-of-type(odd) img{
    width: 768.75px;
    height: 568.5px;
  }
  .block-fv .slide-images li:nth-of-type(even) img{
    width: 480px;
    height: 780px;
  }

  .block-fv-text{
    position: absolute;
    top: 740px;
    z-index: 0;
    grid-area: 1/1;
    font-size: 64px;
    font-family: var(--font-en);
    line-height: 1.5;
    color: rgb(255 255 255/ .53);
    word-break: keep-all;
    text-wrap: nowrap;
    width: 100%;
    overflow: hidden;
  }
  .splide{
    margin-block: 0;
  }
  .splide__list{
    align-items: center;
    display: block;
  }

  /* 毎日の強み */
  .section-advantage{
    margin-block: calc( 1036px - var(--height-header)) 0;
  }
  .container-advantage{
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 64px;
    display: grid;
    grid-template-columns: 43% 1fr;
  }
  .block-advantage-wrapper{
    display: grid;
    grid-template-rows: auto auto 1fr;
  }

  .block-advantage__button{
    text-align: left;
    align-self: flex-end;
  }
}

/* サービス */
.section-service{
}
.container-service{
  width: 100%;
  padding-inline: 20px;
  padding-block: 96px;
  max-width: 1200px;
  margin-inline: auto;
}
.block-service{
  display: flex;
  flex-direction: column;
  row-gap: 48px;
}
.block-service__card-wrapper{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.container-service-card{
  container: service-card / inline-size;
}
.block-service__card{
  display: grid;
  aspect-ratio: 335/480;
  width: 100%;
  height: auto;
  border-radius: 48px;
  overflow: hidden;
}
.block-service__card::after{
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  grid-area: 1/1;
  background: linear-gradient(0deg,rgba(6, 147, 227, 1) 0%, rgba(6, 147, 227, 0) 50%, rgba(6, 147, 227, 0) 100%);
}

.block-service__card > *{
  grid-area: 1/1;
}
.block-service__card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-service__card .card-label{
  position: relative;
  z-index: 1;
  padding: 24px 26px;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.block-service__card .card-label h3{
  color: var(--color-on-primary);
  font-size: 24px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  font-weight: 400;
}
.block-service__card .card-label h3::after{
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml,<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3333 14.1667L15.5 10L11.3333 5.83337M5.5 14.1667L9.66667 10L5.5 5.83337" stroke="%23FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  justify-self: flex-end;
}
.block-service__card .card-label p{
  color: var(--color-on-primary);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  padding-block-end: 8px;
}

@media screen and (min-width: 768px) {
  .block-service__card-wrapper{
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }
  .block-service__card .card-label p{
    min-height: calc(calc(1em * 1.5 * 2) + 8px);
  }
}

@media (any-hover: hover) {
  .block-service__card:hover::after {
      background: linear-gradient(0deg,rgb(59, 125, 214) 0%, rgba(6, 147, 227, 0) 50%, rgba(6, 147, 227, 0) 100%);
  }
}

@container service-card (max-width: 320px){
  .block-service__card .card-label h3{
    font-size: 9cqi;
  }
}



/* 会社概要 */
.section-company{
}
.container-company{
  container: company / inline-size;
}
.block-company-wrapper{
  position: relative;
}
.block-company{
  width: 100%;
  padding-block: 64px 0;
  background: #eeeeee;
  border-radius: 0 80px 8px 0;
  display: flex;
  flex-direction: column;
  row-gap: 0px;
}
.block-company .section__header{
  padding-inline: 20px;
}
.block-company__list{
  padding-inline: 20px;
  padding-block: 48px 24px;
}
.block-company__list-item{
  border-bottom: 1px solid var(--color-primary-200);
}
.block-company__list-item a{
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 24px;
  padding: 1em;
  color: var(--color-subtitle);
}

.block-company__list-item a::after{
  content: '';
  width: 36px;
  height: 36px;
  display: inline-block;
  background-image: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.9001 15.5L16.4001 11L11.9001 6.5M5.6001 15.5L10.1001 11L5.6001 6.5" stroke="%233B7DD6" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 21.6px auto;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  background-color: rgb(0 140 231 / 0.2);
  border-radius: 9999px;
  padding: 7.2px;
  transition: background-color 0.3s ease;
}
.company-deco{
  font-size: 76px;
  font-weight: 600;
  font-family: var(--font-en);
  width: 100%;
  text-wrap: nowrap;
  overflow: hidden;
  color: rgb(255 255 255/ .99);
}
.block-company__image{
  background-color: #fff;
  text-align: center;
}

@container company (min-width: 800px){
  .block-company-wrapper{
    position: relative;
  }
  .block-company-wrapper::before{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 138px);
    height: 100%;
    /* margin-inline-end: max(138px, calc( calc(100% - 1200px) /2 )); */
    background-color: #eeeeee;
    border-radius: 0 80px 8px 0;
    margin-inline-end: 138px;
    z-index: 0;
  }
  .block-company{
    display: grid;
    grid-template-columns: 1fr min(50%,515px);
    grid-template-rows: auto auto auto;
    grid-template-areas: "c-title c-image" "c-list c-image" "c-deco c-deco";
    background-color: unset;
    z-index: 0;
  }
  .block-company .section__header{
    grid-area: c-title;
    position: relative;
  }
  .block-company__list{
    grid-area: c-list;
    position: relative;
    width: 100%;
    justify-self: flex-end;
  }
  .company-deco{
    grid-area: c-deco;
    position: relative;
  }
  .block-company__image{
    grid-area: c-image;
    position: relative;
    background-color: unset;
    text-align: right;
  }
}
@container company (min-width: 1200px){
  .block-company .section__header{
    grid-area: c-title;
    position: relative;
    width: calc(100% - calc( calc(100vw - 1200px) / 2 ));
    justify-self: flex-end;
    padding-inline-end: 120px;
  }
  .block-company__list{
    grid-area: c-list;
    position: relative;
    width: calc(100% - calc( calc(100vw - 1200px) / 2 ));
    justify-self: flex-end;
    padding-inline-end: 120px;
  }
}

@media (any-hover: hover) {
  .block-company__list-item a:hover::after {
    background-color: var(--color-link-hover);
    background-image: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.9001 15.5L16.4001 11L11.9001 6.5M5.6001 15.5L10.1001 11L5.6001 6.5" stroke="%23FFFFFF" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  }
}
/* ヘッダーの背景色切り替え */
.trigger{
  position: relative;
  top: var(--height-header);
  left: 0;
  height: 1px;
  width: 100%;
}
.container-header{
  background-color: transparent;
}
.container-header.scrolled{
  background-color: rgb(255 255 255 / .9);
}