main {
  text-align: center;
}
.fv {
  position: relative;
  color: #333;
  width: 100%;
  height: 105vh;
  /* max-height: 1500px; */
  background-image: url("../images/top_fv.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* @media (max-width: 550px) {
  .fv {
    background-image: url("../images/top_fv_sp.webp");
  }
} */
@media (max-width: 500px) {
  .fv {
    background-position: -30vh 0;
  }
}
@media (max-height: 450px) {
  .fv {
    background-position: center !important;
  }
}
.fv .text-box {
  position: absolute;
  top: min(50vw, 150px);
  right: max(0px, var(--pc-content-width));
}
.fv .text-box .fv-text {
  /* max-width: 350px; */
  color: #fff;
  text-shadow: #333 min(1vw, 2px) min(1vw, 2px) 10px;
  font-size: min(10vw, 55px);
  font-weight: bold;
  line-height: 1.2;
  /* background-color: #000; */
  /* backdrop-filter: blur(10px); */
  padding: 1.5vh 0;
  margin: 0 auto;
}
.fv .text-box .fv-text .blue {
  color: #0b5cc6;
  text-shadow: #fff min(1vw, 2px) min(1vw, 2px) 10px;
}
@media (min-width: 851px) {
  .fv {
    margin: 0;
  }
  .fv h1 img.logo {
    display: none;
  }
  .fv .text-box .fv-text {
    font-size: min(7vw, 70px);
    padding: 2.5vh 15px;
  }
  .fv .text-box .fv-text .br {
    display: none;
  }
}
@media (min-width: 1441px) {
  .fv .text-box .fv-text {
    font-size: min(20vw, 90px);
  }
}
/*--------------------------------------
スクロールアニメーション
https://b-risk.jp/blog/2021/01/anim-reference/
「ゆったりスクロールボタン」    
--------------------------------------*/
.scroll {
  display: inline-block;
  padding-top: 70px;
  position: absolute;
  right: calc(50% - min(5vw, 20px));
  bottom: calc(5vh + min(5vh, 20px));
  color: #fff;
  font-size: min(4vw, 16px);
  /* margin-top: 25px; */
}
.scroll::before {
  animation: scroll 3.5s infinite;
  border: solid #fff;
  border-width: 0 0 1px 1px;
  content: "";
  display: inline-block;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transform: rotate(-45deg);
  width: min(10vw, 20px);
  aspect-ratio: 1;
}
@keyframes scroll {
  0% {
    transform: rotate(-45deg) translate(0, 0);
  }
  80% {
    transform: rotate(-45deg) translate(-30px, 30px);
  }
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

/*--------------------------------------
スクロールアニメーションここまで
--------------------------------------*/
.section__content {
  position: relative;
  background: linear-gradient(90deg, #1035a1, #5cb3e4);
}
.section__content.service {
  background: linear-gradient(-90deg, #1035a1, #5cb3e4);
}
.section__content.recruit {
  background: linear-gradient(90deg, #febf00, #ffedb6);
}
.section__content__image-box {
  position: absolute;
  top: 0;
  width: 60%;
  max-width: 300px;
  aspect-ratio: 1;
  padding: min(3vw, 15px);
}
.section__content__image-box:not(
  .section__content.service .section__content__image-box
) {
  right: max(0px, var(--pc-max-width));
}
.section__content.service .section__content__image-box {
  left: 0;
}
.section__content__image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section__content .section__content-inner {
  position: relative;
  max-width: var(--content-max-width);
  /* padding: min(15vw, 45px) min(5vw, 15px); */
  padding: min(20vw, 75px) min(5vw, 15px);
  margin: 0 auto;
}
@media (min-width: 1441px) {
  .section__content__image-box {
    max-width: 600px;
  }
}
.section__content .section__content-inner .code__text {
  display: block;
  width: 100%;
  color: #fff;
  font-family: monospace;
  font-size: min(10vw, 50px);
  line-height: 1;
  font-weight: normal;
  opacity: 0.2;
}
.section__content .section__content-inner .code__text.right {
  text-align: right;
}
.section__content .section__content-inner .code__text.left {
  text-align: left;
}
.section__content.recruit .section__content-inner .code__text {
  opacity: 0.6;
}
.section__content .section__content-inner h2 {
  position: absolute;
  top: max(-10vw, -60px);
  text-align: left;
  color: #fff;
  font-size: min(15vw, 80px);
  font-weight: bold;
  line-height: 1.3;
  padding: 0 10px;
}
.section__content.about .section__content-inner h2,
.section__content.recruit .section__content-inner h2 {
  left: 0;
}
.section__content.service .section__content-inner h2 {
  right: 0;
}
.section__content-inner .content__text {
  text-align: left;
  font-size: min(5vw, 15px);
  line-height: 1.5;
  background-color: #fff;
  /* 方眼紙模様のスタイルここから */
  background-image:
    linear-gradient(
      0deg,
      transparent calc(100% - 1px),
      #f0f0f0 calc(100% - 1px)
    ),
    linear-gradient(
      90deg,
      transparent calc(100% - 1px),
      #f0f0f0 calc(100% - 1px)
    );
  background-size: 15px 15px;
  background-repeat: repeat;
  background-position: center center;
  /* 方眼紙模様のスタイルここまで */
  border: 0.5px solid #333;
  border-radius: min(10px, 5vw);
  padding: min(5vw, 10px);
}
.section__content-inner .content__text h3 {
  font-size: min(7.5vw, 20px);
  margin-bottom: min(5vw, 10px);
}
.section__content.service .content__text h3,
.section__content.service .content__text p {
  text-align: right;
}
.section__content-inner .content__text button {
  display: block;
  width: 100%;
  max-width: 200px;
  border: 0.5px solid #333;
  border-radius: min(20vw, 100px);
  background-color: #a2deff;
  padding: 0;
  margin-top: min(15vw, 25px);
}
.section__content.recruit .content__text button {
  background-color: #ffedb6;
}
.section__content.about .content__text button,
.section__content.recruit .content__text button {
  margin-left: auto;
}
.section__content-inner .content__text button a {
  display: block;
  width: 100%;
  padding: min(2vw, 10px) min(5vw, 15px);
}

.top-contact {
  max-width: 350px;
  font-size: 12px;
  line-height: 1.3;
  background-color: #0c1f38;
  padding: 10px;
  margin: 0 auto;
}

@media (min-width: 851px) {
  .scroll,
  .content,
  .top-contact {
    display: none;
  }
}
@media (min-width: 1441px) {
  .section__content__bg-image-box {
    position: absolute;
    width: 45%;
    height: 100%;
    background-image: url("../images/lower-page-bg-bottom.webp");
    background-size: cover;
  }
  #about .section__content__bg-image-box {
    bottom: 0;
    right: 0;
    background-position: right;

    /* 画像を透過させる魔法の指定 */
    -webkit-mask-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 100%
    );

    /* マスクの繰り返しを防ぐ */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  #service .section__content__bg-image-box {
    top: 0;
    left: 0;
    background-position: left;

    /* 画像を透過させる魔法の指定 */
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 100%
    );

    /* マスクの繰り返しを防ぐ */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .section__content .section__content-inner .code__text {
    font-size: min(15vw, 75px);
  }
  .section__content-inner .content__text {
    padding: min(10vw, 20px);
  }
  .section__content-inner .content__text h3 {
    font-size: min(7.5vw, 35px);
  }
  .section__content-inner .content__text,
  .section__content-inner .content__text button {
    font-size: min(5vw, 17.5px);
  }
  .section__content-inner .content__text button {
    max-width: 300px;
  }
}
