@charset "utf-8";

/*================================================
  #mainImage
================================================*/
#mainImage {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1500 / 653;
  min-height: 340px;
  overflow: hidden;
  background: url("../img/index/mainImageBg01.jpg") no-repeat center center;
  background-size: cover;
  box-sizing: border-box;
}
@media only screen and (max-width: 1080px) {
  #mainImage {
    aspect-ratio: 25 / 12;
    min-height: 380px;
  }
}
@media only screen and (max-width: 560px) {
  #mainImage {
    aspect-ratio: auto;
    height: 58vh;
    min-height: 380px;
    max-height: 540px;
    background-position: 68% center;
  }
}

#mainImage:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(30, 34, 82, 0.65) 0%, rgba(30, 34, 82, 0.5) 35%, rgba(30, 34, 82, 0.18) 65%, rgba(30, 34, 82, 0) 90%);
}
@media only screen and (max-width: 1080px) {
  #mainImage:before {
    background: linear-gradient(90deg, rgba(30, 34, 82, 0.7) 0%, rgba(30, 34, 82, 0.55) 45%, rgba(30, 34, 82, 0.22) 75%, rgba(30, 34, 82, 0) 100%);
  }
}
@media only screen and (max-width: 560px) {
  #mainImage:before {
    background: linear-gradient(90deg, rgba(30, 34, 82, 0.75) 0%, rgba(30, 34, 82, 0.55) 60%, rgba(30, 34, 82, 0.25) 100%);
  }
}

#mainImageSlide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  list-style: none;
}

#mainImageSlide li {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity, transform;
}
@media only screen and (max-width: 560px) {
  #mainImageSlide li {
    background-position: 68% center;
  }
}

#mainImageSlide li.isActive {
  opacity: 1;
  animation: mainImageZoom 5s ease-out forwards;
}

@keyframes mainImageZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

#mainImageSlide li:nth-child(1) {
  background-image: url("../img/index/mainImageBg01.jpg");
}

#mainImageSlide li:nth-child(2) {
  background-image: url("../img/index/mainImageBg02.jpg");
}

#mainImageSlide li:nth-child(3) {
  background-image: url("../img/index/mainImageBg03.jpg");
}

#mainImageSlide li:nth-child(4) {
  background-image: url("../img/index/mainImageBg04.jpg");
}

#mainImageSlide li:nth-child(5) {
  background-image: url("../img/index/mainImageBg05.jpg");
}

@media (prefers-reduced-motion: reduce) {
  #mainImageSlide li.isActive {
    animation: none;
  }
}

#mainImageInner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 5% 0 9.85%;
  color: #FFF;
  box-sizing: border-box;
}
@media only screen and (max-width: 560px) {
  #mainImageInner {
    padding: 0 6%;
  }
}

#mainImageInner h1 {
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.55vw, 4.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

#mainImageInner .mainImageLead {
  margin: 0.7em 0 0 0;
  padding: 0;
  font-size: clamp(0.95rem, 1.85vw, 1.75rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#mainImageInner .mainImageText {
  margin: 0.7em 0 0 0;
  padding: 0;
  font-size: clamp(0.8rem, 1.4vw, 1.3rem);
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/*================================================
  #advantage
================================================*/
#advantage {
  background: #FFF;
}

.advantageList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}
@media only screen and (max-width: 560px) {
  .advantageList {
    display: block;
  }
}

.advantageList li {
  margin: 0;
  padding: 0 3%;
  width: 33.33%;
  border-left: 1px solid #DCE4EC;
  box-sizing: border-box;
}
@media only screen and (max-width: 560px) {
  .advantageList li {
    width: auto;
    padding: 2em 0;
    border-left: none;
    border-top: 1px solid #DCE4EC;
  }
}

.advantageList li:first-child {
  border-left: none;
}
@media only screen and (max-width: 560px) {
  .advantageList li:first-child {
    padding-top: 0;
    border-top: none;
  }
}

.advantageList li:nth-child(2) {
  transition-delay: 0.15s;
}

.advantageList li:nth-child(3) {
  transition-delay: 0.3s;
}

.advantageList dl {
  margin: 0;
  padding: 0;
  text-align: center;
}

.advantageList dt {
  margin: 0 auto 1.5em auto;
  padding: 0;
  width: 100%;
  max-width: 190px;
}
@media only screen and (max-width: 1080px) {
  .advantageList dt {
    max-width: 150px;
  }
}
@media only screen and (max-width: 560px) {
  .advantageList dt {
    max-width: 140px;
    margin-bottom: 1em;
  }
}

.advantageList dt img {
  display: block;
  width: 100%;
}

.advantageList dd {
  margin: 0;
  padding: 0;
  color: #333A90;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.8;
}

/*================================================
  #service
================================================*/
#service {
  background: #DCE6FD;
}

/*================================================
  #company
================================================*/
#company {
  background: #333A90;
  color: #FFF;
}

#company h2 {
  color: #FFF;
}

#companyInner {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
}
@media only screen and (max-width: 560px) {
  #companyInner {
    display: block;
  }
}

#companyText {
  width: 48%;
}
@media only screen and (max-width: 560px) {
  #companyText {
    width: auto;
  }
}

#companyText h3 {
  margin: 0 0 1.2em 0;
  padding: 0;
  border: none;
  color: #FFF;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
@media only screen and (max-width: 560px) {
  #companyText h3 {
    font-size: 1.15rem;
  }
}

#companyText p {
  margin: 0;
  padding: 0;
  font-size: 1.05em;
  line-height: 2;
}
@media only screen and (max-width: 560px) {
  #companyText p {
    font-size: 0.85em;
    line-height: 1.9;
  }
}

#companyText .moreInformation {
  margin: 2.5em 0 0 0;
  text-align: left;
}
@media only screen and (max-width: 560px) {
  #companyText .moreInformation {
    margin: 1.8em 0 2.5em 0;
    text-align: center;
  }
}
#companyText .moreInformation a:hover {
  border-color: #FFF;
}

#companyImage {
  width: 46%;
}
@media only screen and (max-width: 560px) {
  #companyImage {
    width: auto;
  }
}

#companyImage img {
  display: block;
  width: 100%;
}
