@charset 'UTF-8';

/*
COMMON
================================================ */
body {
  font-size: 15px;
  font-family: Georgia, '游明朝', YuMincho, 'Hiragino Mincho ProN', Meiryo, serif;
  line-height: 1.8;
}

a{
  text-decoration: none;
  color: #444444;
}

ul{
  list-style:none;
}

html {
  scroll-behavior: smooth;
}

.container{
  max-width:1800px;
  width:90%;
  margin: 0 auto;
}

.fadein{
  opacity: 0;
}

.fadeleft{
  opacity:0;
}

.faderight{
  opacity:0;
}

/* スクロールロック用 */
body.is-locked {
  overflow: hidden;
}

/*
header
================================================ */
header{
  background-image: url(../image/topimag.png);
  background-repeat: no-repeat;   /* ← 重要 */
  background-size: cover;         /* 全体を覆う */
  background-position: center;    /* 中央寄せ */
  height: 100vh;                  /* 高さを明示 */
  position: relative;
}

.header-container{
  max-width: 95%;
}

.header-container ul{
  display: flex;
  justify-content: flex-end;
}

.header-container ul li{
  margin-top: 30px;
  margin-right: 50px;
}

.header-container ul li a{
  color:#FFFFFF;
  transition:all 0.3s;
}

.header-container ul li a:hover{
  color:#ff9933;
}

.header-item{
  width:auto;
  position: absolute;   /* ← 通常フローから外す */
  left: 8vw;            /* 左から */ 
  bottom: 25vh;         /* 下から */
}

.header-title{
  color:#FFF86F
}

.header-title h1{
  font-size: 40px
}

.header-title h3{
  font-size: clamp(16px, 2.5vw, 24px);
}

.header-btn a{
  display: inline-block;
  width: 250px;
  height: 60px;
  background-color: #FFF86F;
  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
  font-weight: bold;
  font-size:20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 2px 2px 4px #111;
}

.header-btn a:hover{
  filter: brightness(0.9);
}

.header-btn a:active{
  box-shadow: none;
  transform:translate(2px, 4px);
}

/*
top-wrapper
================================================ */
.top-wrapper{
  background-color: rgba(255, 251, 233, 0.5);
}

.bg-images{
  position: relative;
}

.bg-images img{
  position: absolute;
  width: 200px;
}

.bg-images img:nth-child(1){
  top: 5%;
  left: 5%;
}

.bg-images img:nth-child(2){
  top: 10px;
  left: 1000px;
}

.bg-images img:nth-child(3){
  top: 250px;
  left: 700px;
}

.bg-images img:nth-child(4){
  top: 300px;
  left: 50px;
}

.bg-images img:nth-child(5){
  top: 700px;
  left: 500px;
}

.bg-images img:nth-child(6){
  top: 700px;
  left:  1200px;
}


.top-contents{
  padding-top: 150px;
  display: flex;
  align-items: stretch;
}

.top-text{
  margin-top: 130px;
  max-width:95%;
  width: min(90%, 500px);
  margin-left: 5vw;
}

.top-text h1{
  margin-bottom: 50px;
  color:#0339FF;
}

.top-text h2{
  margin-bottom: 50px;
  color:#0339FF;
}

.top-text a{
  display: inline-block;
  width: 250px;
  height: 60px;
  background-color: #0339FF;
  color:#ffffff;
  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
  font-weight: bold;
  font-size:20px;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 2px 2px 4px #111;
}

.top-text a:hover{
  filter: brightness(0.8);
}

.top-text a:active{
  box-shadow: none;
  transform:translate(2px, 4px);
}

.top-right-image{
  position: relative;
  width: 50%;
  height: 800px;
}

/* 共通 */
.image-box{
  position: absolute;
}

.image1,.image2{
  width: min(45vw, 500px);
}


/* 個別配置 */
.image-box1{
  top: -50px;
  left: 100px;
}

.image-box2{
  top: 350px;
  right: 0px;
}

.top-background{
  height: 300px;

  /* 半円の周囲の色 */
  background-color: rgba(3, 57, 255, 0.1);

  /* 半円画像 */
  background-image: url(../image/backgroundimage1.svg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/*
middle-wrapper
================================================ */
.middle-wrapper{
  background-color:rgba(3, 57, 255, 0.1);
}

.middle-title{
  display: flex;
  justify-content: center;
  padding-top: 70px;
  color:#FF0004;
}

.middle-comment{
  margin-top: 150px;
  position: relative;
  height: 1000px;
}

.comment1{
  display: flex;
  margin-left: 20px;
  margin-bottom: 170px;
  position: absolute;
  right:27%;

}

.comment2{
  display: flex;
  margin-bottom: 170px;
  position: absolute;
  right:15%;
  top:30%;
}

.comment3{
  display: flex;
  margin-bottom: 170px;
  position: absolute;
  right:27%;
  bottom:0;
}

.comment-text{
  width:435px;
  margin-left: 90px;
  margin-right: 90px;
  display: flex;
  align-items: center;
  background-color:#ffffff;
  padding-left:20px;
  padding-right:20px;
  border-radius: 20px;
  position: relative;
  font-weight:bold;
}

.comment-text:nth-child(0)::before,
.comment-text:nth-child(2)::before{
  content: "";
  position: absolute;
  bottom: 12px;
  left: -30px;
  border: 15px solid transparent;
  border-right: 15px solid #ffffff;
}

.comment-text:nth-child(1)::after{
  content: "";
  position: absolute;
  bottom: 12px;
  right:-30px;
  border: 15px solid transparent;
  border-left: 15px solid #ffffff;
}

.middle-background{
  height: 300px;
  background-color: #ffffff;
  background-image: url(../image/backgroundimage2.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/*
inquiry
================================================ */
.inquiry{
  background-color: rgba(255, 251, 233, 0.5);
  padding-bottom: 150px;
}

.inquiry-title{
  display: flex;
  justify-content: center;
  color:#0339FF;
}

.inquiry-btn{
  display: flex;
  justify-content: center;
  margin-top: 150px;
}

.inquiry-btn1{
  display: inline-block;
  width: 300px;
  height: 100px;
  background-color: rgb(255, 0, 4, 0.5);
  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
  font-weight: bold;
  font-size:20px;
  border-radius: 10px;
  margin-top: 30px;
  margin-right: 400px;
  box-shadow: 2px 2px 4px #111;
}

.inquiry-btn2{
  display: inline-block;
  width: 300px;
  height: 100px;
  background-color: #FFF86F;
  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
  font-weight: bold;
  font-size:20px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 2px 2px 4px #111;
}

.inquiry-btn a:hover{
  opacity:0.8;
}

.inquiry-btn a:active{
  box-shadow: none;
  transform:translate(2px, 4px);
}

/*
footer
================================================ */
footer{
  background-color: rgb(38, 39, 40); 
  color:#ffffff
}

.footer-list{
  display: flex;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.list-title{
  margin-bottom: 30px;
}

.footer-list1,
.footer-list2,
.footer-list3,
.footer-list4{
  padding-right: 100px;
}

.footer-list1 ul li,
.footer-list2 ul li,
.footer-list3 ul li,
.footer-list4 ul li{
  margin-bottom: 10px;
}

.footer-list1 ul li a,
.footer-list2 ul li a,
.footer-list3 ul li a,
.footer-list4 ul li a{
  color:#ffffff
}

.footer-list a{
  transition:all 0.3s;
}

.footer-list a:hover{
  color:#ff9933;
}

@media(max-width:1280px){
  .header-item{
    width:40%;
    right:80%;
  }
  
  /*
  top-wrapper
  ================================================ */
  .top-right-image{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width:50%;
    padding-left: 20px;
  }

  .image-box{
    position:static;
    width: 100%;
    max-width: 500px;
  }

  .image1,.image2{
    width: 100%;
    height: auto;
    display: block;

  }

  /*
  middle-wrapper
  ================================================ */
  .middle-comment{
    position: static;
    height: auto;
  }

  .comment1,
  .comment3{
    position: static;
    justify-content: start;
  }

  .comment2{
    position: static;
    justify-content: flex-end;
  }

  .comment-text{
    width: min(90%, 435px);
  }

  /*
  inquiry
  ================================================ */
  .inquiry-btn{
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
  }

  .inquiry-btn1{
    margin-right: 0px;
  }

  .inquiry-btn2{
    margin-top: 75px;
  }

  /*
  footer
  ================================================ */
  .footer-list1,
  .footer-list2,
  .footer-list3,
  .footer-list4{
    padding-right: 5vw;
  }
}

@media(max-width:768px){
    /* ハンバーガーメニュー */

   /*ハンバーガーメニュー 開閉ボタン */
.btn-menu{
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: .5rem 1rem;
  height: 4rem;
  width: 4rem;
  transition: 1.0s;
}

  /*ハンバーガーメニュー 非アクティブ */
  .btn-menu span{
    width: 50%;
    height: 3px;
    display: block;
    background-color: #111;
    border-radius: 2px;
    position: absolute;
    transition:
      top 0.5s ease,            /* 上下に動く速度 */
      transform 0.5s, /* 回転の開始を0.3秒遅らせる */
      opacity 0.5s ease;        /* 真ん中の線のフェード用 */
  }

  .btn-menu span:first-child{
    top:33%;
  }
  
  .btn-menu span:nth-child(2){
    top:48%;
  }
  
  .btn-menu span:last-child{
    top:65%;
  }

  /* メニューの位置を中心に */
.banner {
  position: fixed;        /* スクロールしても固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;           /* 全画面に広げる */
  background-color: rgba(0, 0, 0, 0.7); /* 半透明の背景（任意） */
  display: flex;           /* フレックスボックスにする */
  justify-content: center; /* 水平方向中央寄せ */
  align-items: center;     /* 垂直方向中央寄せ */
  z-index: 999;            /* 最前面に表示 */
  opacity: 0;             /* 透明にする */
  visibility: hidden;     /* クリックを無効にする */
  transition: opacity 0.4s ease, visibility 0.4s ease; /* フェードアニメーション */
}

.banner.show {
  opacity: 1;
  visibility: visible;
}

.banner ul {
  list-style: none;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;     /* 縦並びにする */
  justify-content: space-around; /* 均等配置 */
  height: 50%;                 /* 均等配置のための高さ（調整可） */
  text-align: center;
}

.banner ul li{
  padding: 0;
}

.banner li a {
  color: white;             /* テキストカラー（任意） */
  font-size: 24px;          /* 大きめの文字（任意） */
  text-decoration: none;
}

/* li を初期状態で非表示にする */
.banner li {
  opacity: 0;
  transform: translateY(20px);
}

/* show クラスがついたらアニメーション開始 */
.banner.show li {
  animation: fadeUp 1.5s ease forwards;
}

/* フェードアップの定義 */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 順番にディレイをかける（重要！） */
.banner li:nth-child(1) {
  animation-delay: 0.1s;
}
.banner li:nth-child(2) {
  animation-delay: 0.3s;
}
.banner li:nth-child(3) {
  animation-delay: 0.5s;
}
.banner li:nth-child(4) {
  animation-delay: 0.7s;
}

.banner li:nth-child(5) {
  animation-delay: 0.9s;
}

/* 中央に集まる動き（closing中） */
#btn-menu.closing span:nth-child(1),
#btn-menu.closing span:nth-child(3) {
  top: 48%; /* 真ん中に寄る */
  transform: none;
}

/* バツ（active中） */
#btn-menu.active span:nth-child(1) {
  top:48%;
  transform: rotate(45deg);
  background-color: #ffffff;
}

#btn-menu.active span:nth-child(2) {
  opacity: 0;
}

#btn-menu.active span:nth-child(3) {
  top:48%;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

#btn-menu.active:hover{
  background-color: #ff9933;
}

  /*
  header
  ================================================ */
  header {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-item{
    position: static;          /* absolute解除 */
    display: flex;
    flex-direction: column;
    align-items: center;       /* 横中央 */
    justify-content: center;   /* 縦方向の中身中央 */
    text-align: center;
    margin: 0 auto; 
    width: 100%;
    height:100%;  
  }

  .header-title h3{
    font-size:28px;
  }

  /*
  top-wrapper
  ================================================ */
  .top-contents{
    padding-top: 75px;
    display: flex;
    flex-direction: column-reverse;
    width:100%;
  }

  .top-right-image{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height:auto;
    width: 100%;
  }

  .top-text{
    display: flex;
    flex-direction: column;
    align-items: center;       /* 横中央 */
    justify-content: center;   /* 縦方向の中身中央 */
    text-align: center;
    margin: 0 auto; 
    margin-top: 75px;
    margin-bottom: 100px;
    width: 100%;
    margin-left: 0px;
  }

  .top-text h2{
    font-size: clamp(20px, 2.5vw, 24px);
  }

  .top-text a{
    width:100%;
    height: 100px;
  }

  /*
  middle-wrapper
  ================================================ */
  .comment1,
  .comment3{
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .comment2{
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .comment-text:nth-child(0)::before,
  .comment-text:nth-child(1)::before,
  .comment-text:nth-child(2)::before{
  content: "";
  position: absolute;
  bottom: -28px;
  left: 205px;
  border: 15px solid transparent;
  border-top: 15px solid #ffffff;
}

.comment-text:nth-child(1)::after{
  content: none;
}

  .comment-text{
    padding-top: 30px;
    padding-bottom: 30px;
    margin-left: 0px;
    margin-right: 0px;
  }

  .middle-icon{
    display: flex;
    justify-content: center;
    margin-top: 50px;
  }

  /*
  inquiry
  ================================================ */
  .inquiry-btn1,
  .inquiry-btn2{
    width:100%;
  }

  /*
  footer
  ================================================ */
  .footer-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .list-title{
    margin-bottom: 20px;
    border-bottom: 1px solid #ffffff;
  }

  .footer-list1,
  .footer-list2,
  .footer-list3,
  .footer-list4{
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .footer-list1 ul li,
  .footer-list2 ul li,
  .footer-list3 ul li,
  .footer-list4 ul li{
    margin-bottom: 5px;
  }
}