/* ==========================================================================
   Restar Theme - top.css
   トップページ
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(620px, calc(100vh - var(--header-h)));
  padding: 90px 0;
  color: var(--white);
  background: var(--navy-800);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #04174a 0%, #06225e 30%, rgba(6, 34, 94, .7) 45%, rgba(6, 34, 94, 0) 70%),
    linear-gradient(0deg, rgba(3, 18, 52, .35), rgba(3, 18, 52, 0) 40%);
}

.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__deco span {
  position: absolute;
  left: -120px;
  bottom: -60px;
  width: 520px;
  height: 70px;
  background: linear-gradient(90deg, rgba(26, 109, 255, 0), rgba(26, 109, 255, .55), rgba(26, 109, 255, 0));
  transform: rotate(-38deg);
}

.hero__deco span+span {
  left: -40px;
  bottom: -110px;
  height: 26px;
  opacity: .6;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__lead {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--sky-300);
  margin-bottom: 18px;
}

.hero__lead::after {
  content: "";
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--sky-300), rgba(140, 194, 255, 0));
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  margin-bottom: 28px;
  text-shadow: 0 4px 24px rgba(0, 20, 60, .35);
}

.hero__text {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 2.05;
  margin-bottom: 40px;
}

.hero .btn--primary {
  border: 1px solid rgba(140, 194, 255, .6);
  transition-delay: 0s;
}

.hero__inner .js-fade:nth-child(2) {
  transition-delay: .15s;
}

.hero__inner .js-fade:nth-child(3) {
  transition-delay: .3s;
}

.hero__inner .js-fade:nth-child(4) {
  transition-delay: .45s;
}

.hero__scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .8);
  padding-bottom: 76px;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, .5);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ==========================================================================
   Business
   ========================================================================== */
.business {
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
}

.business__inner {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: start;
}

.business__head {
  padding-top: 10px;
}

.business__head .section-text {
  margin-bottom: 36px;
}

.business__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card a {
  position: relative;
  display: block;
  height: 100%;
  padding: 28px 24px 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.service-card a:hover {
  transform: translateY(-4px);
  border-color: var(--blue-400);
  box-shadow: 0 14px 34px rgba(16, 80, 200, .14);
}

.service-card__icon {
  display: block;
  font-size: 34px;
  color: var(--blue-600);
  margin-bottom: 18px;
}

.service-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-sub);
}

.service-card__arrow {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 14px;
  color: var(--blue-600);
  transition: transform .3s;
}

.service-card a:hover .service-card__arrow {
  transform: translateX(4px);
}

.business__list .js-fade:nth-child(2) {
  transition-delay: .08s;
}

.business__list .js-fade:nth-child(3) {
  transition-delay: .16s;
}

.business__list .js-fade:nth-child(4) {
  transition-delay: .24s;
}

.business__list .js-fade:nth-child(5) {
  transition-delay: .32s;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  overflow: hidden;
}

.about__img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  background-size: cover;
  background-position: center;
}

.about__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 42, 107, 0) 55%, rgba(10, 42, 107, .85) 88%, var(--navy-700) 100%);
}

.about__inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-top: 100px;
  padding-bottom: 100px;
}

.about__body {
  width: 48%;
  padding-left: 40px;
}

.about__body .section-title {
  margin-bottom: 24px;
}

.about__text {
  font-size: 14.5px;
  line-height: 2.1;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .92);
}

.about__body .btn {
  margin-top: 18px;
}

/* ==========================================================================
   Strength
   ========================================================================== */
.strength {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.strength__inner {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 50px;
  align-items: start;
}

.strength__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strength-item {
  position: relative;
  padding: 0 34px 10px;
  border-left: 1px solid var(--line);
}

.strength-item:first-child {
  border-left: 0;
}

.strength-item__num {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.strength-item__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 38px;
  color: var(--blue-600);
  background: radial-gradient(circle, #fff 0%, #eef4ff 70%);
  box-shadow: 0 8px 24px rgba(16, 80, 200, .08);
  margin-bottom: 20px;
}

.strength-item__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.strength-item__text {
  font-size: 13px;
  line-height: 2;
  color: var(--text-sub);
}

.strength__list .js-fade:nth-child(2) {
  transition-delay: .12s;
}

.strength__list .js-fade:nth-child(3) {
  transition-delay: .24s;
}

/* ==========================================================================
   Technology
   ========================================================================== */
.tech {
  position: relative;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}

.tech__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.05);
}

.tech::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 22, 70, .96) 0%, rgba(6, 30, 85, .82) 40%, rgba(6, 30, 85, .55) 100%);
}

.tech__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.tech__text {
  font-size: 14.5px;
  line-height: 2.1;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .92);
}

.tech__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(140, 194, 255, .45);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(20, 60, 150, .55), rgba(6, 25, 75, .55));
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .3s, background-color .3s, transform .3s;
}

.tech-card .icon {
  font-size: 30px;
  color: var(--white);
}

.tech-card:hover {
  border-color: var(--sky-300);
  transform: translateY(-3px);
}

.tech__list .js-fade:nth-child(2) {
  transition-delay: .08s;
}

.tech__list .js-fade:nth-child(3) {
  transition-delay: .16s;
}

.tech__list .js-fade:nth-child(4) {
  transition-delay: .24s;
}

.tech__list .js-fade:nth-child(5) {
  transition-delay: .32s;
}

/* ==========================================================================
   News / Recruit
   ========================================================================== */
.info {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
}

.info__news {
  display: flex;
  justify-content: flex-end;
  padding: 70px 50px 70px var(--gutter);
  border-right: 1px solid var(--line);
}

.info__recruit {
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px var(--gutter) 60px 50px;
  overflow: hidden;
  background:
    linear-gradient(115deg, #fff 0%, #fff 38%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #7fb3f0 0%, #b9d8fb 55%, #e7f1fd 100%);
}

.info__recruit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(-55deg, transparent 18%, rgba(255, 255, 255, .5) 18%, rgba(255, 255, 255, .5) 22%, transparent 22%),
    linear-gradient(-55deg, transparent 30%, rgba(255, 255, 255, .3) 30%, rgba(255, 255, 255, .3) 32%, transparent 32%);
}

.recruit__img {
  position: absolute;
  top: 0;
  right: 15%;
  bottom: 0;
  width: 40%;
  background-size: cover;
  background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.recruit__catch {
  position: absolute;
  top: 30px;
  right: 28px;
  z-index: 2;
  font-family: var(--font-hand);
  font-size: 30px;
  line-height: 1.1;
  color: #3c7fe0;
  transform: rotate(-12deg);
}

.recruit__body {
  position: relative;
  z-index: 2;
  max-width: 300px;
}

.recruit__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.recruit__text {
  font-size: 13px;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.recruit__body .btn {
  min-width: 220px;
  padding: 14px 26px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {

  .business__inner,
  .strength__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .info {
    grid-template-columns: 1fr;
  }

  .info__news {
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: var(--gutter);
  }

  .info__recruit {
    min-height: 340px;
    padding-left: var(--gutter);
  }
}

@media (max-width: 1024px) {
  .about__img {
    position: relative;
    width: 100%;
    height: 360px;
  }

  .about__img::after {
    background: linear-gradient(180deg, rgba(10, 42, 107, 0) 60%, var(--navy-700) 100%);
  }

  .about__inner {
    padding-top: 50px;
    padding-bottom: 80px;
  }

  .about__body {
    width: 100%;
    padding-left: 0;
  }

  .tech__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 540px;
    padding: 70px 0 90px;
    align-items: flex-end;
  }

  .hero__bg {
    width: 100%;
  }

  .hero::before {
    background: linear-gradient(0deg, #04174a 0%, rgba(6, 34, 94, .85) 50%, rgba(6, 34, 94, .35) 100%);
  }

  .hero__lead {
    font-size: 13px;
  }

  .hero__lead::after {
    width: 60px;
  }

  .hero__text {
    font-size: 14px;
  }

  .hero__scroll {
    right: 14px;
    bottom: 20px;
  }

  .business__list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .service-card a {
    padding: 22px 16px 40px;
  }

  .service-card__icon {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .service-card__title {
    font-size: 15px;
  }

  .service-card__text br {
    display: none;
  }

  .strength__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .strength-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 18px;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .strength-item:first-child {
    border-top: 0;
  }

  .strength-item__num {
    grid-column: 1 / -1;
  }

  .strength-item__icon {
    grid-row: span 2;
    width: 76px;
    height: 76px;
    font-size: 30px;
    margin-bottom: 0;
  }

  .strength-item__title {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .strength-item__text br {
    display: none;
  }

  .about__img {
    height: 260px;
  }

  .tech__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .tech__list {
    grid-template-columns: 1fr 1fr;
  }

  .tech-card {
    min-height: 100px;
  }

  .info__news {
    padding: 60px var(--gutter);
  }

  .info__recruit {
    min-height: 0;
    padding: 60px var(--gutter) 280px;
  }

  .info__recruit {
    background: linear-gradient(180deg, #fff 0%, #fff 45%, #b9d8fb 75%, #7fb3f0 100%);
  }

  .recruit__img {
    top: auto;
    right: 50%;
    transform: translateX(50%);
    width: 240px;
    height: 260px;
  }

  .recruit__catch {
    top: auto;
    bottom: 170px;
    right: 20px;
    font-size: 26px;
  }

  .recruit__body {
    max-width: none;
  }
}