@charset "UTF-8";
body {
  font-family: "Inter", sans-serif;
}

.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url("../img/mv.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
  /* 拡大アニメーションの適用 */
  -webkit-animation: zoomOut 20s infinite alternate ease-in-out;
          animation: zoomOut 20s infinite alternate ease-in-out;
}

#service .hero-section::before {
  background: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url("../img/service/mv.jpg");
  background-size: cover;
  background-position: center;
}
@media all and (max-width: 1240px) and (min-width: 768px) {
  #service #top_blocks .height_block {
    min-height: 120px;
  }
  #service #top_blocks .height_block h3 {
    line-height: 1.2;
  }
}

#faq {
  /* アコーディオンの開閉アニメーション用 */
}
#faq .hero-section::before {
  background: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url("../img/faq/mv.jpg");
  background-size: cover;
  background-position: center;
}
#faq .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
#faq .faq-item.active .faq-content {
  max-height: 100%;
}
#faq .faq-item.active .faq-icon {
  transform: rotate(180deg);
}
#faq .cate_btn {
  transition: 0.3s;
  padding: 1rem 2rem;
}
#faq .cate_btn.active {
  transform: scale(1.1);
  border: 1px solid #00a8e8;
  border-radius: 5px;
}
#faq .cate_btn.active h3 {
  font-size: 1rem;
}
#faq .line {
  background-color: #ffeb3b; /* 黄色のマーカー風 */
  font-weight: bold;
  color: #333;
  border-radius: 2px;
}

#contacts .hero-section::before {
  background: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url("../img/contact/mv.jpg");
  background-size: cover;
  background-position: center;
}

#news .bg-gradient-s-agent {
  background: linear-gradient(135deg, #005BAC 0%, #0099D9 100%);
}
#news .text-s-agent-blue {
  color: #005BAC;
}
#news .border-s-agent-blue {
  border-color: #005BAC;
}

.reset-css * {
  all: revert;
}
.reset-css * img {
  max-width: 100%;
  height: auto;
  display: block;
}
.reset-css * a {
  color: #005bac;
  text-decoration: underline;
}

.backbluebox {
  position: relative;
}
.backbluebox:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #005a88;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 1.5rem;
  transition: 0.3s;
}
.backbluebox.active:before {
  left: -1.5rem;
  top: -1.5rem;
}
@media all and (max-width: 768px) {
  .backbluebox.active:before {
    left: -0.5rem;
    top: -0.5rem;
  }
}

@-webkit-keyframes zoomOut {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

@keyframes zoomOut {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
/* タイトルの左から右へのスライドアニメーション */
.hero-title-animation {
  opacity: 0;
  -webkit-animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
          animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; /* 少し遅らせて開始 */
}

@-webkit-keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.blue-gradient {
  background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
}

.speech-bubble-tail::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 20%;
  transform: translateX(-50%);
  border-width: 15px 15px 0 15px;
  border-style: solid;
  border-color: #00c2ff transparent transparent transparent;
}

.blue-gradient {
  background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
}

.speech-bubble-tail::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 20%;
  transform: translateX(-50%);
  border-width: 15px 15px 0 15px;
  border-style: solid;
  border-color: #00c2ff transparent transparent transparent;
}

/* コンテンツ幅制限用の共通クラス */
.container-custom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ふわっと表示させるためのアニメーション用スタイル */
.fuwatto {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fuwatto.active {
  opacity: 1;
  transform: translateY(0);
}

.tel {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
}
.tel.lg {
  width: 2rem;
  height: 2rem;
}
.tel:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0;
  background-image: url("../img/tel.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mail {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
}
.mail.lg {
  width: 2rem;
  height: 2rem;
}
.mail:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0;
  background-image: url("../img/mail.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mark {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
}
.mark.lg {
  width: 2rem;
  height: 2rem;
}
.mark:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0;
  background-image: url("../img/badge-check.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pin {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
}
.pin.lg {
  width: 2rem;
  height: 2rem;
}
.pin:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0;
  background-image: url("../img/pin.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.facebook {
  transition: 0.3s;
}
.facebook i {
  background-image: url("../img/facebook.png");
  background-size: contain;
}
.facebook:hover {
  transform: scale(1.15);
}

.instagram {
  transition: 0.3s;
}
.instagram i {
  background-image: url("../img/instagram.png");
  background-size: contain;
}
.instagram:hover {
  transform: scale(1.15);
}

nav {
  transition: all 0.3s ease-in-out;
}
nav.nav-scrolled {
  padding: 0.5rem 0;
}
nav.nav-scrolled #head_icon {
  width: 4rem;
  height: 4rem;
}

/* モバイルメニュー用 */
#menu-toggle {
  z-index: 10;
}

#mobile-menu.hidden {
  display: none;
}

.hamburger-menu {
  display: block;
  position: absolute;
  transition: all 0.5s;
  z-index: 100;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-menu p {
  position: absolute;
  font-size: 60%;
  top: 0;
}
.hamburger-menu .menu-btn.on span {
  background-color: rgba(255, 255, 255, 0) !important; /*メニューオープン時は真ん中の線を透明にする*/
  box-shadow: none;
  width: 40px;
}
.hamburger-menu .menu-btn.on span::before {
  bottom: 0;
  transform: rotate(45deg);
  transition: all 0.5s;
  width: 40px;
}
.hamburger-menu .menu-btn.on span::after {
  top: 0;
  transform: rotate(-45deg);
  transition: all 0.5s;
  width: 40px;
}
.hamburger-menu .menu-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  display: flex;
  height: 40px;
  width: 40px;
  justify-content: center;
  align-items: center;
  z-index: 90;
  transition: all 0.5s;
}
.hamburger-menu .menu-btn span, .hamburger-menu .menu-btn span:before, .hamburger-menu .menu-btn span:after {
  content: "";
  display: block;
  height: 3px;
  width: 30px;
  border-radius: 3px;
  background-color: #005a88;
  position: absolute;
  transition: all 0.5s;
  box-shadow: 1px 1px 4px white;
}
.hamburger-menu .menu-btn span:before {
  bottom: 10px;
  right: 0;
}
.hamburger-menu .menu-btn span:after {
  top: 10px;
  right: 0;
}
@media all and (min-width: 768px) {
  .hamburger-menu .menu-btn {
    display: none;
  }
}

@media all and (max-width: 767px) {
  #head_menu {
    transition: 0.3s;
    position: absolute;
    background: white;
    width: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    top: 100%;
    display: none;
  }
  #head_menu.on {
    display: flex;
    transition: 0.3s;
    -webkit-animation: fadeIn 0.5s ease-out;
            animation: fadeIn 0.5s ease-out; /* 0.5秒かけてアニメーション実行 */
  }
  #head_menu a {
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    border-bottom: 1px solid #ccc;
  }
  #head_menu a:first-child {
    border-top: 1px solid #ccc;
  }
  #head_menu a.joinnow {
    width: calc(100% - 4rem);
  }
  @-webkit-keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px); /* 少し上から降りてくる動き（お好みで） */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px); /* 少し上から降りてくる動き（お好みで） */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
/*****page navigation******************************************************/
.navigation.pagination {
  padding: 5% 0;
}

.navigation.post {
  position: relative;
}

.navigation.post .nav-links {
  text-align: center;
}

.navigation.post .nav-links a {
  text-decoration: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.page-numbers li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px;
  width: 60px;
  height: 60px;
}
.page-numbers a, .page-numbers span {
  font-size: 130%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: 0.3s;
  border-bottom: 2px solid #ccc;
  position: relative;
}
.page-numbers a.current, .page-numbers span.current {
  color: white;
  border-color: #005BAC;
  position: relative;
  background-color: #005BAC;
}
.page-numbers a.current:after, .page-numbers span.current:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 2px solid #005BAC;
}
.page-numbers a:hover, .page-numbers span:hover {
  color: white;
  border-color: #005BAC;
  position: relative;
  background-color: #005BAC;
}
.page-numbers .prev, .page-numbers .next {
  background-color: none;
  padding: 0 5px;
  font-size: 100%;
  font-weight: normal;
}
.page-numbers .prev img {
  transform: scaleX(-1);
}

.navigation.post .nav-links a:hover {
  color: #999;
}

.navigation.post .nav-links a[rel=prev] {
  position: absolute;
  left: 0;
}

.navigation.post .nav-links a[rel=next] {
  position: absolute;
  right: 0;
}

@media all and (max-width: 1200px) {
  .page-numbers li {
    width: 4vw;
    height: 4vw;
  }
  .page-numbers li a.current, .page-numbers li span.current {
    border: none;
  }
  .page-numbers li a.current:after, .page-numbers li span.current:after {
    display: none;
  }
}
@media all and (max-width: 768px) and (orientation: portrait) {
  .page-numbers li {
    width: 10vw;
    height: 10vw;
  }
  .page-numbers li a, .page-numbers li span {
    padding: 1vw;
  }
  .page-numbers li .prev, .page-numbers li .next {
    padding: 1vw;
    font-size: 70%;
  }
}