/* トップページ: メインビジュアル、各案内セクション、ニュース */
.main {
  font-size: 20px;
  line-height: 1.5;
}
.main-visual__img {
  background-image: url(../images/top/hero_fallback.webp?v=20260819-nocache);
}
#toppage .main-visual__video {
  object-position: center center;
  height: clamp(380px, 34vw, 500px);
  max-height: 500px;
}
.top-hero-media {
  position: relative;
}
#toppage .scroll {
  display: none;
}
.main-title {
  position: absolute;
  inset: 0;
  padding: 0 5%;
  pointer-events: none;
}
.main-title__heading {
  position: absolute;
  color: #001E55;
  text-shadow: 0 6px 5px rgb(0 0 0 / 75%);
  letter-spacing: -5%;
  font-size: 48px;
  font-weight: bolder;
  top: 50%;
  bottom: auto;
  left: 15%;
  transform: translateY(-50%);
}
@media (min-width: 1536px) {
  .main-title__heading {
    font-size: 64px;
  }
}
@media (max-width: 1024px) {
  .main-title__heading {
    left: 5%;
  }
}
@media (max-width: 768px) {
  .main-title__heading {
    font-size: 36px;
  }
}
@media (max-width: 599px) {
  .main-title__heading {
    font-size: 24px;
    top: 50%;
  }
}
.content-bg {
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 130px;
  padding: 87px 5% 124px;
}
@media (max-width: 768px) {
  .content-bg {
    text-align: center;
    margin-top: 85px;
  }
}
.banner-area {
  margin-top: 70px;
}
.banner_container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner_container::-webkit-scrollbar {
  display: none;
}
.banner-area__link {
  display: block;
  max-width: 300px;
  width: 100%;
  scroll-snap-align: start;
}
.banner-area__link:not(:last-child) {
  margin-right: 30px;
}
.banner-area__link:hover {
  opacity: 0.7;
  transition: 0.2s ease-in-out;
}
@media (max-width: 1024px) {
  .banner-area__link:not(:last-child) {
    margin-right: 20px;
  }
}
@media (max-width: 768px) {
  .banner-area {
    margin-top: 40px;
  }
  .banner_container {
    justify-content: flex-start;
  }
  .banner-area__link {
    min-width: 300px;
  }
}
@media (max-width: 599px) {
  .banner-area__link {
    min-width: 250px;
  }
}
.about {
  background-position: right;
}
.about {
  background-image: url(../images/top/about_bg.webp?v=20260819-nocache);
}
.about__container-l {
  margin-left: 66px;
}
.about .title {
  font-size: 33px;
}
.title {
  display: inline-block;
  position: relative;
  color: #0d1668;
  font-size: 40px;
  margin-bottom: 81px;
}
.title-center {
  color: #0d1668;
  font-size: 40px;
  border-bottom: solid 1px #0d1668;
  padding-bottom: 6px;
  max-width: 582px;
  margin: 0 auto 81px;
  padding-bottom: 6px;
}
.border-r::after {
  position: absolute;
  content: '';
  border-bottom: solid 1px #0d1668;
  top: 64px;
  width: 500%;
  right: 0;
}
.border-l::after {
  position: absolute;
  content: '';
  border-bottom: solid 1px #0d1668;
  top: 64px;
  width: 500%;
  left: 2px;
}
.border-WH {
  border-bottom: solid 1px #fff;
}
.title-WH {
  color: #fff;
}
.about-lead-container {
  margin-left: 95px;
}
.about-lead-container__text:not(:last-child),
.service-lead-container__text:not(:last-child) {
  margin-bottom: 40px;
}
.lead-container p:last-of-type {
  margin-bottom: 35px;
}
@media (max-width: 768px) {
  .about__container-l {
    margin-left: 0;
  }
  .title {
    border-bottom: solid 1px #0d1668;
    margin: 0 auto 45px;
    padding-bottom: 6px;
    width: 100%;
    max-width: 582px;
  }
  .about .title {
    font-size: 28px;
  }
  .about-wrapper {
    text-align: center;
  }
  .about-lead-container {
    margin-left: 0;
  }
  .border-r::after {
    content: none;
  }
  .lead-container {
    margin: 0;
  }
  .lead-container p:last-of-type {
    margin-bottom: 35px;
  }
}
@media (max-width: 599px) {
  .about {
    padding: 18px 16px 93px;
    margin-top: 50px;
  }
  .title,
  .title-center {
    width: 100%;
    font-size: 24px;
    padding: 18px 5% 0;
    margin-bottom: 45px;
  }
  .about .title {
    font-size: 20px;
  }
  .lead-container p {
    font-size: 14px;
  }
  .about-lead-container__text:not(:last-child),
  .service-lead-container__text:not(:last-child) {
    margin-bottom: 24px;
  }
}
.service {
  background-position: left;
  overflow: hidden;
}
.service {
  background-image: url(../images/top/service_bg.webp?v=20260819-nocache);
}
.service__wrapper {
  display: flex;
}
.service__container-l {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 50%;
}
.service__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(50% - 20px);
  background-color: rgba(248, 248, 249, 0.65);
  border-radius: 17px;
  padding: 112px 42px 92px;
}
.service__icon {
  max-width: 60%;
  height: auto;
}
.service__icon img {
  width: 100%;
}
.service__item p {
  font-size: clamp(14px, 2vw, 32px);
  color: #0d1668;
  margin-top: 12px;
}
.service__container-r {
  width: 50%;
  padding-left: 10%;
}
@media (max-width: 910px) {
  .service {
    background-color: #0d1668;
    background-image: none;
    margin-top: 0;
  }
  .service__wrapper {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .service__container-l {
    width: 80%;
    gap: 20px;
  }
  .service__item {
    width: calc(50% - 10px);
    padding: 49px 25px 49px;
  }
  .border-l::after {
    content: none;
  }
  .service__container-r {
    color: #fff;
    width: 100%;
    padding-left: 0;
  }
  .service__container-r h2 {
    max-width: 582px;
    color: #fff;
    border-bottom: solid 1px#fff;
  }
  .lead-container {
    margin: 0;
  }
  .lead-container p:last-of-type {
    margin-bottom: 35px;
  }
}
@media (max-width: 599px) {
  .service__container-l {
    max-width: 254px;
    width: 100%;
  }
  .service {
    padding: 57px 16px 30px;
  }
}
.news__wrapper {
  display: flex;
  padding: 193px 0 155px 16px;
}
.news__container-l {
  width: 20%;
  text-align: right;
  margin-right: 53px;
}
.border-news::after {
  position: absolute;
  content: '';
  border-bottom: solid 1px #0d1668;
  top: 64px;
  width: 1980px;
  right: 0;
}
.news__container-r {
  display: flex;
  justify-content: space-between;
  width: 80%;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 20px;
  scrollbar-width: none;
}
.news__container-r::-webkit-scrollbar {
  display: none;
}
.news__item {
  display: flex;
  flex-direction: column;
  width: 243px;
  flex-shrink: 0;
}
.news__image {
  width: 100%;
  height: 166px;
  object-fit: cover;
  border-radius: 17px 17px 0 0;
}
.news__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f8f8f9;
  border-radius: 0 0 17px 17px;
  padding: 16px 22px;
  font-size: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-grow: 1;
  text-align: left;
}
.news__lead {
  display: flex;
  flex-direction: column;
}
.news__lead p {
  margin-bottom: 30px;
  flex-grow: 1;
}
@media (max-width: 900px) {
  .title-news-tab {
    border-bottom: none;
  }
}
@media (max-width: 599px) {
  .news__wrapper {
    display: block;
    text-align: center;
    padding: 31px 0 42px;
  }
  .news__container-l {
    width: 100%;
    text-align: center;
    padding: 0 16px;
  }
  .border-news::after {
    content: none;
  }
  .title-news-tab {
    border-bottom: solid 1px #0d1668;
  }
  .news__container-r {
    gap: 0;
    width: 100%;
    margin: 0 auto 23px;
  }
  .news__item {
    padding: 0 8px 0 16px;
  }
}
.recruit {
  background-image: url(../images/top/recruit_bg.webp?v=20260819-nocache);
  background-position: right;
  padding: 30px 0 72px;
}
.recruit__wrapper {
  text-align: center;
}
.text-WH {
  color: #fff;
}
.business-partner__wrapper {
  text-align: center;
}
.business-partner {
  background-color: #f8f8f9;
  padding: 51px 0 70px;
}
.contact {
  padding: 34px 0 70px;
}
.contact__wrapper {
  text-align: center;
}
.contact-lead-container__text:first-child {
  margin-bottom: 20px;
  font-size: 18px;
}
.contact-lead-container__tel {
  position: relative;
  color: #0d1668;
  font-size: 30px;
  padding-bottom: 10px;
  font-weight: 400;
}
.contact-lead-container__reception-time {
  font-size: 16px;
}
@media (max-width: 599px) {
  .contact-lead-container__tel {
    font-size: 24px;
  }
}

/* モバイルでは静止画を元の比率で表示する */
@media (max-width: 599px) {
  #toppage .main-visual__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background-image: none;
  }
  #toppage .main-visual__media-area,
  #toppage .mv-container {
    background: #fff;
  }
}
