@charset "utf-8";

/* ===============================
   ロード画面（他アニメに干渉しない・完全ブロック）
   =============================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease;
}

#loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.gjs-dashed .loading{
  opacity: 1 !important;
  position: relative!important;
  visibility: visible !important;
}

.gjs-dashed .loading__logo {
  opacity:1 !important;
}

.loading {
    background-color: #FFF;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
}

.loading-img-wrap {
    position: relative;
    padding: 5rem;
    width: fit-content;
    height: fit-content;
}

.loading-img{
  	position: relative;
    width: 250px;
  	height: auto;
  	z-index: 2;
}

.loading-img-back{
  	position: absolute;
  	top: 0;
    left: 0;
    width: 100%;
  	height: 100%;
  	object-fit: fill;
  	z-index: 0;
  	animation: spin 1.2s linear infinite;
}

.loading-img-logo{
  margin: 0 auto;
  max-width: 480px;
  height: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 960px) {
  .loading {
    background-color: #FFF;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
  }
  .loading-img-wrap {
      position: relative;
      padding: 3rem;
      width: fit-content;
      height: fit-content;
  }
  .loading-img{
      position: relative;
      width: 120px;
      height: auto;
      z-index: 2;
  }
  .loading-img-logo{
      margin: 0 auto;
      max-width: 60%;
      height: auto;
    }
}


/* ===============================
   FV
   =============================== */

.fv{
  position: relative;
}

.fv-back{
  position: relative;
  max-width: 45%;
  height: 100%;
  margin: 0 0 0 auto;
  z-index: 1;
  object-fit: cover;
}

.fv-text{
  position: absolute;
  display: flex;
  top: 12rem;
  left: 0;
  width: 80%;
  height: 375px;
  z-index: 0;
}

.fv-text-item{
  position: relative;
  width: 50%;
  min-width: 640px;
  margin: auto 0;
  padding: 0 0 3rem 5%;
  border-bottom: 3px solid #1E5790;
  height: 50%;
  z-index: 0;
}

.fv-text-item h1{
  	font-size: 2.25rem;
	background: linear-gradient(125deg, #1E5790 0%, #0094B7 30%, #0016BE 60%, #0087C3 100%);
  	-webkit-background-clip: text;
  	-webkit-text-fill-color: transparent;
 	 line-height: 1.75;
  	letter-spacing: .1rem;
}

.fv-text-item p{
background: linear-gradient(125deg, #1E5790 0%, #0094B7 30%, #0016BE 60%, #0087C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fv-text-back{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.fv-crow{
  position: absolute;
  bottom: 10%;
  left: 5%;
  display: flex;
  gap: 3rem;
  width: 80%;
  z-index: 5;
}

.fv-crow img:nth-child(1){
  position: relative;
  max-width: 130px;
  height: auto;
  animation-delay: 3.5s;
}

.fv-crow img:nth-child(2){
  position: relative;
  top: 2rem;
  max-width: 320px;
  height: auto;
  animation-delay: 4s;
}

.fv-crow img:nth-child(3){
  position: relative;
  top: -2rem;
  max-width: 160px;
  height: auto;
  animation-delay: 4.5s;
}

.fv-crow img:nth-child(4){
  position: relative;
  top: -6rem;
  max-width: 300px;
  height: auto;
  animation-delay: 5s;
}

.fv-crow img:nth-child(5){
  position: relative;
  top: -10rem;
  max-width: 200px;
  height: auto;
  animation-delay: 5.5s;
}

@media screen and (max-width: 1200px) {
  .fv-text{
    top: 8rem;
  }
  .fv-text-item h1{
      font-size: 2rem;
  }
  .fv-crow{
    bottom: 0%;
  }
  .fv-crow img:nth-child(1){
    position: relative;
    max-width: 10%;
  }

  .fv-crow img:nth-child(2){
    top: 1rem;
    max-width: 25%;
  }

  .fv-crow img:nth-child(3){
    top: -1rem;
    max-width: 15%;
  }

  .fv-crow img:nth-child(4){
    top: -3rem;
    max-width: 20%;
  }

  .fv-crow img:nth-child(5){
    top: -5rem;
    max-width: 15%;
  }
}

@media screen and (max-width: 960px) {
  .fv-back{
    position: relative;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    margin: 0 0 0 auto;
    z-index: 1;
    object-fit: cover;
  }
  .fv-text{
    position: relative;
    display: flex;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 100%;
    height: 240px;
    z-index: 0;
  }
  .fv-crow{
    position: relative;
    bottom: auto;
    left: auto;
    display: flex;
    gap: 1rem;
    width: 90%;
    margin: 1rem auto;
  }
}

@media screen and (max-width: 960px) {
  .fv-text-item{
    height: 60%;
  }
}

@media screen and (max-width: 414px) {
  	.fv-text-item h1{
      font-size: 1.25rem;
    }
  .fv-text-item{
    height: 50%;
  }
}

/* ===============================
   ABOUT
   =============================== */

.about{
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  width: 90%;
  margin: 5rem 0 5rem auto;
}

.about-img{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 40%;
}

.about-img img:nth-child(1){
  width: 40%;
  height: auto;
}

.about-img img:nth-child(2){
  width: 80%;
  height: auto;
  margin: 0 0 0 auto;
}

.about-text{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 50%;
}

.about-text-title{
  position: relative;
  padding: 3rem 1rem 5rem 0; 
  border-bottom: 3px solid #1E5790;
}

.about-text-title-back{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
}

.about-text-title h2{
  font-size: 2rem;
  text-align: right;
  padding-right: 5%;
  background: linear-gradient(125deg, #1E5790 0%, #0094B7 30%, #0016BE 60%, #0087C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
   line-height: 1.75;
  letter-spacing: .1rem;
}

.about-text p{
  font-size: 1rem;
  text-align: right;
  padding-right: 5%;
}

.about-text-st{
  font-size: 1.25rem!important;
  text-align: right;
  padding-right: 5%;
}

.about-btn{
  margin: 2rem 5% 0 auto;
}

.about-deco{
  position: absolute;
  bottom: 2rem;
  left: 5%;
  height: auto;
  z-index: 0;
  max-width: 40%;
}

@media screen and (max-width: 960px) {
  .about{
    flex-direction: column;
    width: 90%;
    margin: 3rem auto;
  }
  .about-img{
    gap: 2rem;
    width: 100%;
  }
  .about-text-title{
    position: relative;
    padding: 1rem 1rem 2rem 0; 
  }
  .about-text-title h2{
    font-size: 1.25rem;
    text-align: center;
    padding-right: 0;
     line-height: 1.75;
  }
  .about-text p{
    text-align: center;
    padding-right: 0;
    font-size: 14px;
  }
  .about-text-st{
    font-size: 16px!important;
    text-align: center;
  }
  .about-btn{
    margin: 2rem auto;
  }
  .about-deco{
    position: relative;
    bottom: auto;
    left: auto;
    height: auto;
    z-index: 0;
    max-width: 90%;
    margin: 1rem auto;
    animation-delay: 1s;
  }
}

@media screen and (max-width: 414px) {
  .about-text-title{
    padding: 1rem 0; 
  }
  .about-text-title h2{
    font-size: 18px;
  }
  .about-text p{
    font-size: 12px;
  }
  .about-text-st{
    font-size: 14px!important;
  }
}
  
/* ===============================
   GREETING
   =============================== */

.greeting{
  position: relative;
  margin: 5rem auto;
}

.greeting-back{
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
}

.greeting-back-sp{
  display: none;
}

.greeting-desc{
  position: relative;
  margin: 0 auto;
  padding: 3rem 0;
  width: 80%;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.greeting-desc-img{
  max-width: 300px;
  height: auto;
}

.greeting-desc-item{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 60%;
  max-width: 700px;
}

.greeting-desc-item h2{
  	position: relative;
 	font-size: 1rem;
  	width: 90%;
  	text-align: right;
}

.greeting-desc-item h2:before{
    content: "";
    width: 80%;
    height: 1px;
    background-color: #000;
  	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto 0;
}

.greeting-desc-item h3{
 	font-size: 1.5rem;
}

@media screen and (max-width: 960px) {
  .greeting{
    margin: 3rem auto;
  }
  .greeting-back{
    display: none;
  }
  .greeting-back-sp{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: -1;
  }
  .greeting-desc{
    position: relative;
    margin: 0 auto;
    padding: 2rem 0;
    width: 90%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
  }
  .greeting-desc-item{
    width: 100%;
  }
  .greeting-desc-item h3{
      font-size: 1.25rem;
  }
  .greeting-btn{
      margin: 1rem auto;
  }
}

@media screen and (max-width: 414px) {
  .greeting-desc-item h2{
      position: relative;
      font-size: 1rem;
      width: fit-content;
      text-align: left;
  }

  .greeting-desc-item h2:before{
      display: none;
  }
}
/* ===============================
   SERVICE
   =============================== */

.service{
  position: relative;
  margin: 5rem auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.service-title{
  position: relative;
  padding-bottom: 5rem;
}

.service-title-text{
  position: relative;
  width: 65%;
  min-width: 960px;
  margin: 0 0 0 auto;
  padding: 0 10% 2rem 0;
  border-bottom: 3px solid #1E5790;
}

.service-title-text h2{
  font-size: 2rem;
  width: fit-content;
  text-align: center;
  background: linear-gradient(125deg, #1E5790 0%, #0094B7 30%, #0016BE 60%, #0087C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
   line-height: 1.75;
  letter-spacing: .1rem;
}

.service-title-back{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  height: auto;
  z-index: -1;
}

.service-title-deco{
  position: absolute;
  top: 2rem;
  right: 3%;
  max-width: 240px;
  height: auto;
  z-index: 1;
  animation-delay: 1s;
}

.service-item{
  position: relative;
  margin: 5rem auto 0 0;
  width: 80%;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.service-item-02{
  position: relative;
  margin: 5rem 0 0 auto;
  width: 80%;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.service-item-title{
  position: relative;
  margin: 0 auto;
  display: flex;
  gap: .5rem;
  justify-content: center;
}

.service-item-title h3{
  font-size: 2rem;
  position: relative;
  writing-mode: vertical-rl;
  text-orientation: upcenter;
}

.service-item-title p{
  position: relative;
  text-align: left!important;
  writing-mode: vertical-rl;
  text-orientation: upcenter;
}

.service-item-text{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.service-item-img{
  width: 60%;
  height: auto;
}

.service-item-text p{
  text-align: center;
  line-height: 2;
}

.service-btn{
  position: relative;
  margin: 0 auto;
}

.service-deco{
  position: absolute;
  top: 50%;
  left: 5%;
  width: 100px;
  height: auto;
  animation-delay: 1s;
}

@media screen and (max-width: 1024px) {
   .service-item{
    margin: 3rem auto;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }
  .service-item-02{
    margin: 3rem auto;
    width: 100%;
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

@media screen and (max-width: 960px) {
  .service{
    margin: 3rem auto;
    gap: 2rem;
  }
  .service-title{
    padding-bottom: 5rem;
  }
  .service-title-text{
    position: relative;
    width: 90%;
    min-width: auto;
    margin: 0 auto;
    padding: 0 3% 1.5rem 0;
    border-bottom: 3px solid #1E5790;
  }

  .service-title-text h2{
    font-size: 1rem;
    width: 100%;
  }

  .service-title-back{
    width: 100%;
  }
  .service-title-deco{
    top: auto;
    bottom: 2rem;
    right: 3%;
    max-width: 100px;
  }
  .service-item{
    margin: 3rem auto;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }
  .service-item-02{
    margin: 3rem auto;
    width: 100%;
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .service-item-title{
    position: relative;
    margin: 0 auto;
    display: flex;
    gap: .5rem;
    justify-content: center;
  }
  .service-item-title h3{
    font-size: 1.25rem;
  }
  .service-item-text{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 90%;
    margin: 0 auto;
  }
  .service-item-img{
    width: 100%;
    height: auto;
  }
  .service-deco{
    display: none;
  }
}
@media screen and (max-width: 768px) {
.service-title-text{
    width: 95%;
    padding: 0 0 1rem 0;
  }
}
/* ===============================
   OTHERS
   =============================== */
.others{
  margin: 5rem auto;
  width: 70%;
  max-width: 960px;
  padding: 2rem;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.others-desc{
  font-size: 1rem;
  text-align: center;
}
.others h2{
  font-size: 1.5rem;
  text-align: center;
}
.others-item{
  position: relative;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  justify-content: center;
}
.others-item-img{
  width: 40%;
  height: auto;
}
.others-item-list{
  position: relative;
  margin: 1rem 0 1.5rem;
  padding-left: 2.5rem;
  font-size: 1.25rem;
}
.others-item-list:before{
  content: "○";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto 0;
  font-size: 1.25rem;
}

@media screen and (max-width: 960px) {
  .others{
    margin: 3rem auto;
    width: 90%;
    padding: 2rem 1rem;
  }
  .others h2{
    font-size: 1.25rem;
  }
  .others-item{
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .others-item-img{
    width: 90%;
    margin: 0 auto;
  }
  .others-item-list{
    padding-left: 2rem;
    font-size: 1rem;
  }
  .others-item-list:before{
    font-size: 1rem;
  }
}


/* ===== ページ遷移オーバーレイ ===== */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.5s ease;
}

#page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}