@charset "UTF-8";
/* CSS Document */
:root {
  --primary-color: #b7e2ff;
  --secondary-color: #2ecc71;
  --text-color: #043586;
  --background-color: #ffffff;
  --primary-font-size: 16px;
  --secondary-font-size: 14px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
h3,
p {
  margin: 0;
}
body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: right;
}
header .header__title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
  width: 90%;
  position: fixed;
  top: 0;
  z-index: 100;
}
header .header__title h1 {
  width: 140px;
  padding-top: 3px;
}

.header__title .contact {
  color: #ffffff;
  width: 70px;
  height: 50px;
  border-radius: 5px;
  background-color: #f19dbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.header__title .contact p img {
  margin-top: 4px;
}

/* ===== キービジュアル ===== */
.kv {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.kv img {
  padding-top: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.animated-text {
  text-align: right;
  position: absolute;
  top: 200px;
  font-size: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  z-index: 10;
  padding: 20px;
}

.animated-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 下のコンテンツ ===== */
main {
  background: #ffffff;
}
.animated-text p {
}
.animated-text .text__title {
  font-size: 40px;
  color: var(--text-color);
  margin-bottom: 8px;
}
.animated-text .text__sub {
  font-size: 16px;
  letter-spacing: 1.8px;
  font-weight: bold;
  margin-bottom: 16px;
}
.animated-text .text__lead {
  font-size: 16px;
  line-height: 1.5;
}
.eg__news {
  background-color: #f0f0f0;
  padding: 20px 10px 20px;
  margin-bottom: 40px;
}
.eg__news div p {
  font-size: 36px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.eg__news .swiper-slide {
  background: none;
  border: none;
  padding: 0;
}
.swiper {
  padding: 0;
}
.swiper-slide a {
  text-decoration: none;
  color: inherit;
}
.slide-meta {
  font-size: 0.9em;
  color: #043586;
  font-weight: bold;
  margin: 0.5em 0;
}
.slide-thumbnail img {
  border-radius: 10px;
}
h3.slide-title {
  font-size: 1em;
  margin: 0;
  color: #043586;
  padding-bottom: 20px;
  margin-bottom: 16px;
}
.eg__services {
  background-color: #ffffff;
}
.eg__services__title {
  text-align: right;
  padding: 24px;
  color: var(--text-color);
  margin-bottom: 16px;
}
.eg__services__title h2 {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #f0f0f0;
  font-size: 28px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.eg__services__title p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.eg__services ul {
  padding: 24px;
  background-color: #f0f0f0;
}
.eg__services li {
  list-style: none;
  margin-top: 32px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.eg__services li img {
  height: auto;
  display: block;
  margin-bottom: 24px;
  padding: 48px;
  background-color: #ffffff;
  border: #f0f0f0;
  border-radius: 10px;
}
.eg__services li p {
  font-size: 14px;
  line-height: 1.85;
}
.eg__services li p.inner_title {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.85;
}
.eg__location {
  background-color: #ffffff;
  padding: 48px 24px;
  color: #abb1bb;
}
footer {
  background-color: #162450;
  padding: 24px;
  text-align: right;
  color: #636c8a;
}
footer div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer div p {
  font-size: 12px;
  margin: 0;
}
.pc {
  display: none;
}
@media screen and (min-width: 768px) {
  header .header__title {
    max-width: 960px;
    right: 0;
    left: 0;
    top: 40px;
    margin: auto;
  }
  .kv {
    height: 72vh;
    z-index: 85;
  }
  .kv img {
    padding-top: 0;
  }
  .animated-text {
    width: 70%;
    right: 0;
    left: 0;
    top: 250px;
    margin: auto;
  }
  .eg__news {
    width: 1072px;
    margin: 0 auto;
    margin-top: -40px;
    border-radius: 10px;
    position: relative;
    padding: 32px 40px 40px 40px;
    z-index: 90;
  }
  .eg__services {
    margin-top: 40px;
  }
  .eg__services__title {
    width: 1072px;
    margin: 0 auto;
  }
  .eg__services__inner {
    width: 100%;
    margin: 0 auto;
    background-color: #f0f0f0;
  }
  .eg__services__inner ul {
    width: 1072px;
    margin: 0 auto;
  }
  .header__title {
    flex-direction: column;
    align-items: center;
  }
  .header__title h1 {
    width: auto;
  }

  .eg__services li img {
    padding: 24px;
  }
  .slide-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .eg__news div p {
    margin-bottom: 16px;
  }
  .pc {
    display: block;
  }
  .header__title .contact {
    width: 90px;
    height: 70px;
  }
  .contact p {
    text-align: center;
  }
  .contact a {
    color: #ffffff;
    text-decoration: none;
  }
  .animated-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
  .animated-text .text__title {
    font-size: 50px;
    margin-bottom: 16px;
  }
  .animated-text .text__sub {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .animated-text .text__lead {
    font-size: 18px;
    width: 500px;
  }
  .eg__services li {
    flex-direction: row;
    gap: 48px;
  }
  .eg__services li img {
    width: 320px;
    height: 144px;
    padding: 40px;
  }
  .eg__services li p.inner_title {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .eg__services li p.inner_desc {
    font-size: 16px;
    line-height: 1.85;
  }
  .eg__location p {
    text-align: center;
  }
  footer div {
    width: 1072px;
    margin: 0 auto;
  }
}
.eg__news-article {
  max-width: 848px;
  margin: 0 auto;
}
.eg__container {
  max-width: 1024px;
  margin: 90px auto 40px;
  padding: 24px;
  font-size: 0.875rem;
  line-height: 1.85;
}
@media screen and (max-width: 767px) {
  .eg__container {
    margin-top: 40px;
  }
}
.eg__single-footer {
  text-align: center;
  margin-top: 60px;
  font-size: 1.2rem;
}
.eg__single-footer a {
  color: #abb1bb;
  text-decoration: none;
}
.slide-thumbnail {
  position: relative;
}
.left_btn {
  width: 9px;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 14px 18px;
  background-color: #f19dbb;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
.header__title .contact:hover {
  cursor: pointer;
}
