.hp-fv {
  aspect-ratio: 1920 / 884;
  position: relative;
  overflow: hidden; /* マスクで切り取るため */
}

.hp-fv-bg {
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 と同義 */
  background: url(../../img/hp/top-fv.webp) center center / cover no-repeat;
  clip-path: inset(0 100% 0 0); /* 初期状態：右100%カット */
  animation: revealFromLeft 1s ease-out forwards;
}

@keyframes revealFromLeft {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.hp-fv-title {
  position: absolute;
  bottom: 18%;
  left: 2.5%;
  color: #0eaed0;
  font-size: 2.5vw;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.7;
  white-space: nowrap;
}


.hp-fv-title > span:not(.char) {
  font-size: 2vw;
}

.hp-fv-title > span:not(.char):nth-of-type(2) {
  color: #272727;
  font-size: 1.3vw;
}

.hp-fv-title > span:not(.char):nth-of-type(3) {
  font-size: 2.3vw;
  color: #272727;
}

.hp-fv-title > span:not(.char):nth-of-type(3) > span {
  background: linear-gradient(
    to right,
    rgb(1, 163, 218) 0%,
    rgb(1, 187, 246) 100%
  );
  padding-left: 1%;
  padding-right: 1%;
  color: #fff;
}


@media screen and (max-width: 768px){
	.hp-fv-title{
        bottom: 22%;
        font-size: 2.8vw;
	}
	.hp-fv-title > span:not(.char):nth-of-type(2) {
    font-size: 1.8vw;
}
	.hp-fv-title > span:not(.char):nth-of-type(3) {
    font-size: 2.6vw;
}
}

.hp-fv-title2{
	    position: absolute;
    bottom: 0;
    left: 2.5%;
    letter-spacing: 0.05em;
    font-size: 0.8vw;
    line-height: 1.5;
    color: #074350;
}

@media screen and (max-width: 768px){
	.hp-fv-title2{
		    font-size: 0.5rem;
	}
}

.hp-top-service {
  padding: 2.94% 0 0;
}

.hp-top-service-container {
  width: 100%;
  padding-bottom: 8.662%;
  position: relative;
}

.hp-top-service-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.65;
  text-align: center;
  margin-bottom: 4.252%;
  color: #0eaed0;
}

.hp-top-service-text > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  text-align: center;
  color: #272727;
}

@media (min-width: 769px) {
  .scrolling-bg-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: auto;
    position: absolute;
    width: 100%;
    top: 14%;
  }

  .scrolling-bg-wrapper {
    display: flex;
    gap: 2rem; /* ← 画像間のスペース */
    animation: scroll-left 20s linear infinite;
  }

  .scrolling-bg-wrapper img {
    flex-shrink: 0;
    width: 100vw;
    height: auto;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100vw - 2rem));
    }
  }
}

.hp-top-service-bg2 {
  position: absolute;
  width: 32.704%;
  bottom: -2%;
}

.fill-fade {
  fill: #e7f5f3;
  opacity: 0;
  animation: fadeFill 2s ease-out forwards;
}

@keyframes fadeFill {
  to {
    opacity: 1;
  }
}

.hp-top-service-about-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.hp-top-service-about-item {
  width: 50%;
  background-color: #eef8fa;
}

.hp-top-service-about-item:last-of-type {
  background-color: #daf3f8;
}

.hp-top-service-about-item-text {
  width: fit-content;
  margin: 0 auto;
  padding: 0 3%;
}

.hp-top-service-about-item-text > h4 {
  font-size: 65px;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.23;
  color: #0eaed0;
  margin: -4% auto 6.93%;
}

.hp-top-service-about-item-text > h5 {
  font-size: 32px;
  font-weight: 900;
  color: #272727;
  letter-spacing: 0.1em;
  margin-bottom: 13.7%;
}

.hp-top-service-about-item:last-of-type .hp-top-service-about-item-text > h5 {
  margin-bottom: 11.7%;
}

.hp-top-service-about-item-text > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  color: #272727;
  margin-bottom: 12.5%;
}

.hp-top-service-about-item:last-of-type .hp-top-service-about-item-text > p {
  margin-bottom: 24.7%;
}

.hp-top-service-about-item-text > a {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  text-align: center;
  color: #fff;
  letter-spacing: 0.1em;
  background-color: #2b74a1;
  display: block;
  width: 67.6%;
  margin: 0 auto 25.2%;
  padding: 5.6% 0;
  border-radius: 50px;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.hp-top-service-about-item-text > a:hover{
  color: #2b74a1;
  background-color: #fff;
  border: 1px solid #2b74a1;
  transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.hp-top-service-about-item:last-of-type .hp-top-service-about-item-text > a {
  color: #2b74a1;
  background-color: #fff;
}

.hp-top-service-about-item:last-of-type .hp-top-service-about-item-text > a:hover {
  color: #fff;
  background-color: #2b74a1;
}

.hp-top-service-about-item-text > a:after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 20px;
}

.hp-top-service-about-item:last-of-type
  .hp-top-service-about-item-text
  > a:after {
  color: #2b74a1;
}

.hp-top-about {
  padding: 10% 0 0;
  margin-bottom: 6%;
  position: relative;
}

.hp-top-company-about {
  background: linear-gradient(
    to right,
    rgb(2, 155, 212) 0%,
    rgb(2, 179, 230) 100%
  );
  width: 69.45%;
  position: relative;
  padding-top: 10.6%;
  padding-bottom: 7.3498%;
  position: relative;
  border-radius: 0 20px 20px 0;
}

.hp-top-company-about > h3 {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 91px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: #fff;
  position: absolute;
  top: -15%;
}

.hp-top-company-about > h3 > span {
  color: #029fd8;
}

.hp-top-company-text {
  width: fit-content;
  margin: 0 auto;
  color: #fff;
  padding: 0 4%;
}

.hp-top-company-text > h4 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8.323%;
}

.hp-top-company-text > h5 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4.1%;
}

.hp-top-company-text > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
}

.hp-top-company-img {
  width: 43.84%;
  position: absolute;
  bottom: -12%;
  right: -33%;
}

.hp-top-ceo {
  max-width: 1080px;
  width: 95%;
  margin: 9.6% auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.hp-top-ceo-img {
  width: 45.1%;
}

.hp-top-ceo-text {
  width: 48.995%;
}

.hp-top-ceo-text .hp-top-section-title {
  text-align: left;
  letter-spacing: 0.2em;
  margin-bottom: 7.5%;
}

.hp-top-ceo-text .hp-top-section-title > span:first-of-type {
  color: #0eaed0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.hp-top-ceo-text .hp-top-section-title > span:last-of-type {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 6%;
}

.hp-top-ceo-text > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
}

.hp-top-ceo-text > a {
  display: block;
  width: 75.6%;
  margin: 15.12% auto 0;
  background-color: #2b74a1;
  border-radius: 40px;
  padding: 5% 0;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  position: relative;
  border: 1px solid transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.hp-top-ceo-text > a:hover {
  color: #2b74a1;
  background-color: #fff;
  border: 1px solid #2b74a1;
  transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.hp-top-ceo-text > a::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 20px;
}

.hp-top-ceo-bg {
  width: 29.817%;
  position: absolute;
  bottom: 0;
  right: 0;
}

.hp-top-support {
  width: 100%;
  background: url(../../img/hp/support-bg.png) center center/cover no-repeat;
  position: relative;
  aspect-ratio: 1919 / 499;
  clip-path: inset(0 100% 0 0); /* ← 初期状態：右側100%隠す */
}

.hp-top-support-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.05em;
  text-align: center;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}



@media screen and (max-width: 1320px) {
  .hp-top-company-about > h3 {
    font-size: 59px;
  }
}

@media screen and (max-width: 1145px) {
  .hp-top-service-about-item-text > h4 {
    font-size: 42px;
  }

  .hp-top-service-about-item-text > h5 {
    font-size: 18px;
  }
}

@media screen and (max-width: 1080px) {
  .hp-top-company-img {
    right: -40%;
    bottom: -5%;
  }
}



@media screen and (max-width: 768px) {
  .hp-fv {
    /* background: url(img/sp/top-fv.png) center center / cover no-repeat; */
    aspect-ratio: 750 / 389;
    position: relative;
  }

  .hp-fv-bg {
    background: url(../../img/hp/sp/top-fv.png) center center / cover no-repeat;
    clip-path: inset(0 100% 0 0);
    animation: revealFromLeft 1s ease-out forwards;
  }

  .hp-fv-title {
    position: absolute;
    left: 2.5%;
    letter-spacing: 0.05em;
  }

  .hp-top-service {
    padding: 17% 0 0;
  }

  .hp-top-service-container {
    width: 100%;
    padding-bottom: 19.73%;
    position: relative;
  }

  .hp-top-service-title {
    width: 95%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 9.252%;
  }

  .hp-top-service-text > p {
    width: 95%;
    margin: 0 auto;

    font-size: 26px;
    line-height: 2.7;
  }

  .hp-top-service-bg {
    width: 69.477%;
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
  }

  .hp-top-service-bg2 {
    width: 65.988%;
    bottom: -2%;
  }

  .hp-top-service-about-container {
    width: 100%;
    flex-direction: column;
  }

  .hp-top-service-about-item {
    width: 100%;
  }

  .hp-top-service-about-item-text > h4 {
    margin: -5% auto 13.523%;
  }

  .hp-top-service-about-item-text > h5 {
    margin-bottom: 13.523%;
    font-size: 20px;
  }

  .hp-top-service-about-item:last-of-type .hp-top-service-about-item-text > h5 {
    margin-bottom: 11.7%;
  }

  .hp-top-service-about-item-text > p {
    font-size: 14px;
    line-height: 2.5;
    margin-bottom: 13.523%;
  }

  .hp-top-service-about-item:last-of-type .hp-top-service-about-item-text > p {
    margin-bottom: 12.708%;
  }

  .hp-top-service-about-item-text > a {
    font-size: 18px;
    text-align: center;
    width: 92.493%;
    margin: 0 auto 18.654%;
    position: relative;
  }

  .hp-top-about {
    padding: 25.035% 0 0;
    margin-bottom: 16.327%;
  }

  .hp-top-company-about {
    width: 88.436%;
    padding-top: 27.484%;
    padding-bottom: 16.328%;
  }

  .hp-top-company-about > h3 {
    position: absolute;
    top: -4%;
  }

  .hp-top-company-text {
    width: 100%;
    margin: 0 auto;
    color: #fff;
  }

  .hp-top-company-text > h4 {
    margin-bottom: 13.536%;
    width: 95%;
    font-size: 24px;
  }

  .hp-top-company-text > h5 {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 10%;
    width: 95%;
  }

  .hp-top-company-text > p {
    font-size: 13px;
    line-height: 2.5;
    width: 95%;
  }

  .hp-top-company-img {
    width: 51.6%;
    bottom: -3%;
    right: -8%;
  }

  .hp-top-ceo {
    max-width: 630px;
    width: 95%;
    margin: 26.396% auto 0;
    flex-direction: column;
  }

  .hp-top-ceo-img {
    width: 77.3%;
  }

  .hp-top-ceo-text {
    width: 100%;
    margin-top: 10.318%;
  }

  .hp-top-ceo-text .hp-top-section-title {
    letter-spacing: 0.05em;
    margin-bottom: 12%;
    font-size: 26px;
  }

  .hp-top-ceo-text .hp-top-section-title > span:first-of-type {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .hp-top-ceo-text .hp-top-section-title > span:last-of-type {
    font-weight: 500;
    font-size: 26px;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 6%;
  }

  .hp-top-ceo-text > p {
    font-size: 14px;
    line-height: 2.5;
  }

  .hp-top-ceo-text > a {
    width: 95.24%;
    margin: 12.6989% auto 0;
    padding: 5.715% 0;
    font-size: 18px;
  }

  .hp-top-ceo-bg {
    width: 59.817%;
    position: absolute;
    bottom: 6%;
    right: 0;
  }

  .hp-top-support {
    background: url(../../img/hp/sp/support-bg.png) center center/cover no-repeat;
    aspect-ratio: 750 / 400;
  }

  .hp-top-support-text {
    font-size: 14px;
    width: 95%;
  }
}


@media screen and (max-width: 625px) {
  .hp-top-service-bg {
    width: 69.477%;
    top: -1%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 600px) {
  .hp-top-service-text > p {
    width: 95%;
    margin: 0 auto;
    font-size: 14px;
    line-height: 2.7;
  }

  .hp-top-company-about > h3 {
    top: -8%;
  }
}

@media screen and (max-width: 480px) {
  .hp-top-company-about > h3 {
    top: -6%;
    font-size: 38px;
  }
}
