/**
 * File: main.css
 * Usage: トップページのスタイルを定義します。
*/

.ly_fv {
  margin-bottom: calc(-1 * clamp(2.5rem, 1.6786rem + 4.1071vw, 5.375rem));
  position: relative;
  z-index: 2;
}

.bl_fv {
  position: relative;
}

.bl_fvImg {
  aspect-ratio: 34 / 57;
  overflow: hidden;
  margin-left: 35px;
  position: relative;
}

.bl_fvImg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  opacity: 0.7;
}

.bl_fvImg img {
  transform: scale(1.4);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.bl_fvText {
  color: #0a5195;
  text-align: center;
  position: absolute;
  bottom: 80px;
  left: 12px;
}

.bl_fvText h1 {
  font-family: 'NotoSerifJp', serif;
  font-weight: 500;
  font-size: clamp(1.5625rem, 1.1161rem + 2.2321vw, 3.125rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

.bl_fvText span {
  font-size: clamp(0.6875rem, 0.5982rem + 0.4464vw, 1rem);
}

.bl_serviceHeader {
  padding: clamp(5rem, 3.5714rem + 7.1429vw, 10rem) 15px
    clamp(7.5rem, 3.9286rem + 17.8571vw, 20rem);
}

.bl_secHeader {
  position: relative;
  z-index: 1;
}

.bl_serviceHeaderCont {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.bl_serviceHeaderCont h3 {
  font-weight: 700;
  font-size: clamp(2rem, 1.8571rem + 0.7143vw, 2.5rem);
  line-height: 50px;
  letter-spacing: 0.1em;
  margin-inline: auto 0;
  width: fit-content;
}

.bl_serviceHeaderText {
  display: contents;
}

.bl_serviceCategories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding-inline: 15px;
  margin-top: calc(-1 * clamp(5rem, 2.1429rem + 14.2857vw, 15rem));
  color: #fff;
  padding-bottom: 40px;
}

.bl_serviceCategories a {
  display: block;
  aspect-ratio: 172 / 230;
  position: relative;
  transition: transform 0.3s ease;
}

.bl_serviceCategories a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #333333;
  opacity: 80%;
  z-index: 1;
}

.bl_serviceCategories a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bl_serviceCategories a > p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.3;
  width: 95%;
  font-size: clamp(0.875rem, 0.5893rem + 1.4286vw, 1.875rem);
  z-index: 2;
  letter-spacing: 0.1em;
}

.el_serviceOnHover {
  display: none;
}

.ly_features {
  padding: 40px 15px;
}

.bl_featuresCont {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bl_featuresCont_txt {
  display: contents;
}

.bl_record {
  padding-block: 20px 60px;
}

.bl_record::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/top/bg-check.svg) repeat;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.bl_recordSlider {
  margin-top: 60px;
  --swiper-pagination-bullet-size: 10px;
  --swiper-pagination-bullet-horizontal-gap: 10px;
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-color: #065eb2;
}

.bl_recordSlider .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(0deg, #3893eb 100%, #065eb2 0%);
  box-shadow: 0px 10px 10px 0px #00000029;
  aspect-ratio: 1 / 1;
  max-width: 260px;
}

.bl_recordSlider .swiper-slide h3 {
  width: 194px;
  text-align: center;
  padding: 4px 12px;
  font-size: 16px;
  letter-spacing: 0.05em;
  border: 1px solid #fff;
}

.bl_recordSlider .swiper-slide p {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.1em;
}

.bl_recordSlider .swiper-slide p span {
  font-weight: 500;
  font-size: 70px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.bl_recordSlider .swiper-pagination {
  position: static;
  margin-top: 34px;
}

.bl_recordSlider .swiper-pagination-bullet {
  border: 2px solid #fff;
}

.bl_record .el_btn {
  margin-top: 60px;
}

.bl_company {
  padding-block: 25px 55px;
}

.bl_company h2 {
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  padding-inline: 15px;
}

.bl_companyCont {
  padding-inline: 15px;
}

.bl_companyCont_img {
  width: 100%;
  padding-left: 30px;
  margin: -30px -15px 0 0;
}

.bl_companyCont_txt {
  display: contents;
}

.bl_companyCont {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bl_companyCont h3 {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.0714rem + 0.8929vw, 1.875rem);
  letter-spacing: 0.1em;
  background: #333333;
  color: #fff;
  padding: 8px 18px;
  width: fit-content;
  margin: 0 auto;
}

.bl_companyCont p {
  font-weight: 500;
  font-size: 14px;
  line-height: 30px;
  letter-spacing: 0.05em;
}

.ly_news {
  background: #e5e5e5;
  padding: 52px 15px 80px;
}

.bl_newsList {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bl_newsList_item {
  padding-top: 15px;
  border-top: 1px solid #d3d3d3;
  cursor: pointer;
}

.bl_newsList_item:hover h3 {
  text-decoration: underline;
}

.bl_newsList_item_meta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bl_newsList_item_category {
  background: #086dcd;
  color: #fff;
  padding: 2px 8px;
}

.bl_newsList_item_title {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.bl_news .el_btn {
  margin-top: 48px;
}

@media screen and (min-width: 768px) {
  .bl_fvImg {
    aspect-ratio: 1368 / 744;
    max-width: 90%;
    margin-inline: auto 0;
  }

  .bl_fvText {
    text-align: left;
    left: clamp(0.75rem, -0.4643rem + 6.0714vw, 5rem);
    bottom: clamp(5rem, 2.8571rem + 10.7143vw, 12.5rem);
  }

  .bl_serviceHeader {
    padding-block: 160px 320px;
  }

  .bl_serviceHeaderCont {
    display: flex;
    margin-top: 35px;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin-inline: auto;
  }

  .bl_serviceHeaderCont_img {
    max-width: 460px;
    width: 50vw;
    aspect-ratio: 460 / 610;
  }

  .bl_serviceHeaderCont_img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .bl_serviceHeaderText {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .bl_serviceHeaderCont h3 {
    margin-inline: 0;
    text-align: left;
  }

  .bl_serviceCategories {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 1340px;
    margin-inline: auto;
  }

  .bl_serviceCategories a:hover::after {
    cursor: pointer;
    background: #086dcd;
  }

  .bl_serviceCategories a:hover > p {
    display: none;
  }

  .bl_serviceCategories a:hover .el_serviceOnHover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 4;
    height: 100%;
    padding: 40px 20px;
  }

  .el_serviceOnHover span {
    max-width: 200px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 20px;
    width: 100%;
  }

  .bl_serviceCategories a:hover .el_serviceOnHover p {
    font-size: 14px;
    display: none;
  }

  .ly_features {
    padding: 80px 0;
  }

  .bl_featuresCont {
    margin-top: 60px;
    gap: 50px;
    flex-direction: row-reverse;
    align-items: center;
    max-width: 88vw;
    margin-inline: auto 0;
  }

  .bl_featuresCont_txt {
    display: flex;
    flex-direction: column;
    max-width: 490px;
    gap: 68px;
    line-height: 30px;
  }

  .bl_featuresCont .el_btn {
    margin-left: 0;
  }

  .bl_record {
    padding-block: 80px;
  }

  .bl_recordSlider .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    max-width: 1000px;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
  }

  .bl_company {
    padding-block: 80px 160px;
    max-width: 1180px;
    margin-inline: auto;
  }

  .bl_company h2 {
    text-align: right;
    font-size: clamp(2.5rem, 1.0714rem + 7.1429vw, 7.5rem);
  }

  .bl_companyCont {
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 50px;
  }

  .bl_companyCont_img {
    max-width: 50vw;
    padding-inline: 0;
    margin-top: -80px;
  }

  .bl_companyCont_txt {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 380px;
  }

  .bl_companyCont h3,
  .bl_company .el_btn {
    margin-inline: 0 auto;
  }

  .bl_news {
    max-width: 1000px;
    margin-inline: auto;
    position: relative;
  }

  .bl_news .bl_secHeader {
    align-items: flex-start;
  }

  .bl_news .el_btn {
    position: absolute;
    right: 0;
    top: clamp(7.8125rem, -1.4978rem + 19.3966vw, 10.625rem);
    margin-top: 0;
    transform: translateY(-100%);
  }

  .bl_newsList_item_title {
    font-size: 16px;
  }
}

@media screen and (min-width: 1280px) {
  .bl_serviceCategories a:hover .el_serviceOnHover p {
    display: block;
  }
}
