@keyframes scrollbarLineFlow {
  0% {
    transform: translateX(-50%) translateY(-120px);
    height: 15px;
    opacity: 1;
  }
  80% {
    transform: translateX(-50%) translateY(0);
    height: 15px;
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    height: 0;
    opacity: 0;
  }
}
@keyframes scrollbarLineFlow-sp {
  0% {
    transform: translateX(-50%) translateY(-75px);
    height: 15px;
    opacity: 1;
  }
  80% {
    transform: translateX(-50%) translateY(0);
    height: 15px;
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(10px);
    height: 0;
    opacity: 0;
  }
}
.sitewrap {
  --sitewrap-before-top:863px;
}
@media screen and (max-width: 767px) {
  .sitewrap {
    --sitewrap-before-top:3075px;
  }
}

.main .detail-sec {
  margin-top: 152px;
}
.main .detail-box {
  grid-template-columns: 1fr 43.5%;
  gap: 64px;
}
.main .detail-box .link-btn a {
  margin: 0 auto 0 0;
}
.main .detail-ttl {
  width: -moz-max-content;
  width: max-content;
  position: relative;
  padding-bottom: 20px;
}
.main .detail-ttl .en {
  display: block;
  font-size: 8rem;
  line-height: 1.2;
  font-weight: 600;
  color: #8f9fb8;
}
.main .detail-ttl .txt {
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  font-size: 2.8rem;
  line-height: 1;
  color: #4180b1;
}
.main .detail-ttl .inline {
  position: relative;
  padding: 0 56px;
}
.main .detail-ttl .inline:before, .main .detail-ttl .inline:after {
  content: "";
  display: block;
  width: 68px;
  height: 2px;
  background: #4180b1;
  position: absolute;
  bottom: 26px;
  z-index: 1;
}
.main .detail-ttl .inline:before {
  left: 0;
  transform: rotate(-45deg);
}
.main .detail-ttl .inline:after {
  right: 0;
  transform: rotate(-45deg);
}
.main .lead {
  margin-top: 72px;
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.5;
}
.main .lead + p {
  margin-top: 48px;
}

#indexMainvisual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}
#indexMainvisual:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(31, 43, 51, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
#indexMainvisual .wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  z-index: 10;
}
#indexMainvisual .main-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
}
#indexMainvisual .main-ttl {
  position: absolute;
  bottom: 80px;
}
#indexMainvisual .main-ttl span {
  display: block;
  color: #fff;
}
#indexMainvisual .main-ttl-1 {
  font-size: 6rem;
  line-height: 1.5;
}
#indexMainvisual .main-ttl-2 {
  margin-top: 18px;
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  padding-left: 158px;
  position: relative;
}
#indexMainvisual .main-ttl-2:before {
  content: "";
  display: block;
  width: 146px;
  height: 1px;
  background: #fff;
  position: absolute;
  left: 0;
  top: 20px;
}
#indexMainvisual .scrollbar {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 99;
  width: 80px;
  height: 280px;
  color: #fff;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}
#indexMainvisual .scrollbar span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}
#indexMainvisual .scrollbar:before, #indexMainvisual .scrollbar:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: #fff;
}
#indexMainvisual .scrollbar:before {
  bottom: 80px;
  height: 120px;
}
#indexMainvisual .scrollbar:after {
  width: 2px;
  bottom: 80px;
  height: 15px;
  background: #1f2b33;
  animation: scrollbarLineFlow 2.8s ease-in-out infinite;
}

#indexNews {
  background: #4180b1;
  padding: 120px 0;
}
#indexNews .newsbox {
  grid-template-columns: 200px 1fr;
  gap: 80px;
}
#indexNews .ttlbox .ttl {
  line-height: 1.2;
  font-size: 6.4rem;
  color: #fff;
}
#indexNews .link-btn {
  margin-top: 40px;
}
#indexNews .link-btn a {
  width: 200px;
  padding: 16px 16px 11px;
}
#indexNews .newslist a {
  color: #fff;
}
#indexNews .newslist a:hover .ttl {
  color: #fff;
}
#indexNews .newslist .date {
  color: #fff;
}
#indexNews .newslist .cat {
  border: 1px solid #fff;
  line-height: 22px;
}

#indexRecruit {
  padding: 152px 0;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
#indexRecruit::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(../img/index/index_recruit_bg_pc.webp) no-repeat center center/cover;
}
#indexRecruit .recruitbox {
  justify-content: center;
  text-align: center;
}
#indexRecruit .detail-ttl {
  width: 340px;
  margin: auto;
}
#indexRecruit .detail-ttl .en {
  color: rgba(255, 255, 255, 0.35);
}
#indexRecruit .detail-ttl .txt {
  left: 0;
  margin: auto;
  color: #fff;
}
#indexRecruit .detail-ttl .inline:before, #indexRecruit .detail-ttl .inline:after {
  background: #fff;
}
#indexRecruit .lead + p {
  margin-top: 28px;
}

@media screen and (min-width: 1024px) {
  .main .page-deco-svg {
    top: -88px;
  }
  .main .detail-sec .wrap {
    max-width: 1223px;
  }
  .main .detail-box.img-left {
    grid-template-columns: 43.5% 1fr;
  }
  .main .detail-box.img-left .txtbox {
    order: 2;
  }
  .main .detail-box.img-left .img {
    order: 1;
  }
  #indexMainvisual .wrap {
    max-width: 100%;
    padding-left: clamp(20px, 11.1607142857vw + -94.2857142857px, 120px);
  }
}
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .main .detail-ttl {
    padding-bottom: min(15 / 1023 * 100vw, 15px);
  }
  .main .detail-ttl .en {
    font-size: min(65 / 1023 * 100vw, 6.5rem);
  }
  .main .detail-ttl .txt {
    font-size: min(22 / 1023 * 100vw, 2.2rem);
  }
  .main .detail-ttl .inline {
    padding: 0 min(40 / 1023 * 100vw, 40px);
  }
  .main .detail-ttl .inline:before, .main .detail-ttl .inline:after {
    width: min(48 / 1023 * 100vw, 48px);
    bottom: min(15 / 1023 * 100vw, 15px);
  }
  .main .lead {
    font-size: 2.8rem;
  }
}
@media screen and (max-width: 767px) {
  .main .detail-sec {
    margin-top: 80px;
  }
  .main .detail-box {
    grid-template-columns: 1fr;
  }
  .main .detail-box .link-btn a {
    margin: 0 auto;
  }
  .main .detail-ttl {
    width: 290px;
    padding-bottom: 15px;
  }
  .main .detail-ttl .en {
    font-size: 5.6rem;
  }
  .main .detail-ttl .txt {
    font-size: 2rem;
  }
  .main .detail-ttl .inline {
    padding: 0 45px;
  }
  .main .detail-ttl .inline:before, .main .detail-ttl .inline:after {
    width: 45px;
    bottom: 18px;
  }
  .main .lead {
    font-size: 2.8rem;
  }
  #indexMainvisual .main-ttl {
    bottom: 48px;
  }
  #indexMainvisual .main-ttl-1 {
    font-size: 3.2rem;
  }
  #indexMainvisual .main-ttl-2 {
    margin-top: 12px;
    font-size: 1.6rem;
    padding-left: 72px;
  }
  #indexMainvisual .main-ttl-2:before {
    width: 60px;
    top: 10px;
  }
  #indexMainvisual .scrollbar {
    width: 44px;
    height: 190px;
  }
  #indexMainvisual .scrollbar span {
    font-size: 1rem;
  }
  #indexMainvisual .scrollbar:before {
    bottom: 48px;
    height: 80px;
  }
  #indexMainvisual .scrollbar:after {
    bottom: 48px;
    height: 10px;
    animation: scrollbarLineFlow-sp 2.8s ease-in-out infinite;
  }
  #serviceNav,
  #companyNav {
    margin-top: 80px;
  }
  #indexNews {
    padding: 80px 0;
  }
  #indexNews .newsbox {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  #indexNews .ttlbox .ttl {
    font-size: 4.8rem;
  }
  #indexNews .link-btn {
    margin-top: 0;
  }
  #indexNews .link-btn a {
    width: 100%;
  }
  #indexRecruit {
    padding: 80px 0;
  }
  #indexRecruit::before {
    background-image: url(../img/index/index_recruit_bg_sp.webp);
  }
  #indexRecruit .detail-ttl {
    width: 240px;
  }
}