@charset "UTF-8";

/* 全体 */
.horizontal-scroll{
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  white-space: nowrap;
  width: 100vw;
  height: 100vh;
}
header{
  z-index: 2;
}
#top-logo{
  width: 250px;
}
/* パララックス */
#particles-js{
	position:fixed;
	top:0;
	left:0;
  width:100vw;
	height: 100vh;
  object-fit:cover;
  z-index: 0;
  opacity: 1;
} 
#wrapper{
  position: relative;
  width: 70vw;
	height: 100vh;
} 
.parallax2 {
  width: 1500px;
  background-image: url('../img/sea.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* ページ内ナビゲーション */
.frontpage-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #65acc1;
  padding: 15px 40px;
  z-index: 3;
  border-bottom-left-radius: 50px; /* 左下の角を丸く */
  border-bottom-right-radius: 50px; /* 右下の角を丸く */
}
.frontpage-nav ul {
  display: flex;
  gap: 20px;
}
.frontpage-nav li {
  margin: 0;
  padding-right: 20px;
  border-right: 1px solid #fff;
}
.frontpage-nav li:last-child {
  border-right: none;
  padding-right: 0;
}
.frontpage-nav a {
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
}
.frontpage-nav a:hover {
  color: #a0d8ef;
}
/* メイン */
main{
  display: flex;
  flex-direction: row;
  height: 100vh;
  background-color: #778899;
}
/* 共通 */
.top-about-container h1,.service-container h1,.step-container h1,.top-portfolio-container h1,.top-blog-container h1,.contact-container h1,.faq-container h1{
  font-size: 17px;
}
.top-portfolio-container,.top-blog-container{
  width: 1000px;
}
.portfolio-items,.blog-items{
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
  margin-top: calc(100vh - 200px - 65%); 
}
.portfolio-item,.blog-item{
  margin: auto;
}
.portfolio-item,.blog-item{
  padding: 20px 40px;
  border-radius: 2px;
  background-color: #fff;
}
.button{
  position: relative;
  width: 150px;
  height: calc(100vh - 40px);
  flex: 0 0 auto;
  background-color: #fff;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: color 0.5s ease;
  overflow: hidden;

}
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #65acc1;
  transition: left 0.5s ease;
  z-index: 0;
}
.button:hover::before {
  left: 0;
}
.button span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}
.button:hover span {
  color: #fff;
}
.small-button{
  font-size: 13px;
  margin-top: 10px;
  padding-top: 10px;
  cursor: pointer;
  transition: font-size 0.3s ease;
}
.s-button1{
  border-top: 1px solid #f0ebe5;
}
.s-button2{
  border-top: 1px solid #9cb2af;
}
.small-button:hover{
  font-size: 14px;
}
.number{
  color: #c0c0c0;
  font-size: 12px;
  margin-right: 20px;
}
/* about */
.top-about-container{
  height: calc(100vh - 200px);
  padding: 100px;
  background-color: #fff;
  z-index: 1;
}
.about{
  margin-top: calc(100vh - 200px - 35%); 
}
.name{
  font-size: 20px;
}
.top-about-container p{
  font-size: 13px;
}
/* service */
.service-container{
  height: calc(100vh - 200px);
  padding: 100px;
  z-index: 1;
  background-color: #e0eaec;
}
.service-items{
  display: flex;
  flex-direction: row;
  gap: 100px;
  margin-top: calc(100vh - 200px - 45%); 
}
.service-item{
  width: 300px;
  margin-left: 100px;
}
.service-items img{
  display: block;
  width: 200px;
  margin: auto;
}
.small-font{
  font-size: 10px;
  color: #c0c0c0;
}
.text{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #9cb2af;
  font-size: 13px;
  white-space: normal;
}
/* step */
.step-container{
  height: calc(100vh - 200px);
  padding: 100px;
  z-index: 1;
  background-color: #e0eaec;
}
.step-items{
  display: flex;
  flex-direction: row;
  gap: 100px;
  margin-top: calc(100vh - 200px - 38%); 
}
.step-items img{
  width: 180px;
}
/* モーダル開いた後 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.modal-content {
  background-color: #fff;
  padding: 50px;
  width: 80%;
  max-width: 600px; 
  margin: auto;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  overflow: auto;
  max-height: 90vh;
}
.modal-content p {
  width: 80%; 
  margin: 20px auto; 
  text-align: left; /* 左寄せ */
  font-size: 1rem;
  word-wrap: break-word; /* 長い単語を折り返す */
  word-break: break-word; /* 文字単位で折り返す */
  white-space: normal; /* テキストが折り返されるようにする */
}
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-content .close:hover {
  color: #ff0000;
}
/* スワイパー */
.swiper {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.swiper-slide img {
  width: 40%;
  height: auto;
  margin-bottom: 15px;
}
.openModal {
  opacity: 0;
  transform: translateY(50px); /* 初期状態で要素を少し下に移動 */
  transition: opacity 0.3s ease-out, transform 0.6s ease-in-out;
}

.openModal.show {
  opacity: 1;
  transform: translateY(0); /* 元の位置に戻す */
}
.openModal:nth-child(1) {
  transition-delay: 0s;
}

.openModal:nth-child(2) {
  transition-delay: 0.2s;
}

.openModal:nth-child(3) {
  transition-delay: 0.4s;
}
.openModal:nth-child(4) {
  transition-delay: 0.6s;
}
.openmodal-titles {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
}
.modal-title-number1 {
  color: #666;
  font-size: 20px;
}
.modal-title-container {
  color: #333;
  font-size: 18px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.swiper-button-prev,
.swiper-button-next {
  color: #333;
}
.post-title{
  margin-top: 3px;
  font-size: 1rem;
  word-wrap: break-word; 
  word-break: break-all; 
  white-space: normal; 
}
.post-category{
  font-size: 0.9rem;
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  background-color: #e0eae0;
}
.post-date{
  font-size: 0.8rem;
}
/* portfolio */
.top-portfolio-container{
  height: calc(100vh - 200px);
  padding: 100px;
  background-color: #fff;
  z-index: 1;
  background-color: #e0eaec;
}
/* blog */
.top-blog-container{
  height: calc(100vh - 200px);
  padding: 100px;
  z-index: 1;
  background-color: #e0eaec;
}
/* フッター */
footer{
  display: flex;
  height: 100vh;
}
/* FAQ */
.faq-container {
  height: calc(100vh - 200px);
  padding: 100px;
  z-index: 1;
  background-color: #e0eaec;
}
.accordion-area{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: calc(100vh - 200px - 45%); 
}
.accordion-area li{
  width: 400px;
  height: 90px;
  margin-top: 5px;
}
.accordion-area section {
	border: 1px solid #d3d3d3;
}
.title {
  position: relative;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: normal;
  padding: 3% 3% 3% 50px;
  transition: all .5s ease;
}
.title::before,
.title::after{
  position: absolute;
  content:'';
  width: 15px;
  height: 2px;
  background-color: #333; 
}
.title::before{
  top: 48%;
  left: 15px;
  transform: rotate(0deg);
}
.title::after{    
  top: 48%;
  left: 15px;
  transform: rotate(90deg);
}
.title.close::before{
	transform: rotate(45deg);
}
.title.close::after{
	transform: rotate(-45deg);
}
.box {
  max-height: 0;
  overflow: hidden;
  background: #e0eaec;
  margin: 0 3% 3% 3%;
  padding: 0 3%;
  font-size: 0.75rem;
  white-space: normal;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
.box.open {
  padding: 3%;
}
/* contact */
.contact-container{
  height: calc(100vh - 200px);
  padding: 100px;
  background-color: #e0eaec;
  z-index: 1;
  background-color: #e0eaec;
}
.contact-items{
  margin-top: calc(100vh - 200px - 80%); 
}
.contact-items > p{
  margin: 3rem 0;
  font-size: 13px;
  white-space: normal;
}
.contact-button {
  position: relative;
  width: 18rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto;
  border: 1px solid #fff;
  cursor: pointer;
  transition: color 0.5s ease, border-color 0.5s ease;
  overflow: hidden;
  color: #333; 
  text-decoration: none;  
  font-size: 1rem;
  z-index: 1; 
}
.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #65acc1;
  transition: left 0.5s ease;
  z-index: -1; 
}
.contact-button:hover::before {
  left: 0;
}
.contact-button:hover {
  color: #fff;
  border-color: #65acc1; 
}


@media screen and (max-width: 768px) {
  #top-logo{
    width: 120px;
  }
  /* 横スクロールを解除して縦スクロールに */
  .horizontal-scroll {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    height: auto;
  }
  /* その他の要素のレイアウト調整 */
  .about-items, .service-items, .step-items {
    flex-direction: column;
    gap: 20px;
  }
  /* モーダルなどの他の要素に必要なレスポンシブスタイル */
  .modal-content {
    width: 100%;
    max-width: none;
  }
  /* サイドバーやメニューのレイアウト調整が必要であればここに追加 */
  .overlay {
    height: auto;
  }
  .parallax2{
    height: 100vw;
    width: 100vw;
    position: relative;
  }
  main{
    display: block;
    height: auto;
  }
  .top-about-container{
    height: auto;
    padding: 60px 35px;
  }
  .top-about-container h1{
    margin-bottom: 5px;
    font-size: 1rem;
  }
  .name{
    font-size: 0.8rem;
  }
  .top-about-container p{
    font-size: 0.5rem;
  }
  .about{
    margin: 0;
    white-space: normal; 
  }
  .parallax4{
    height: 150vw;
    width: 100vw;
  }  
  .service-container{
    height: auto;
    padding: 60px 35px;
  }
  .service-container h1{
    font-size: 1rem;
  }
  .service-items{
    margin: 0;
  }
  .service-item{
    margin: 0 auto;
  }
  .parallax6{
    height: 150vw;
    width: 100vw;
  }  
  .step-container{
    height: auto;
    padding: 60px 35px;
  }
  .step-container h1{
    margin-bottom: 30px;
  }
  .step-items{
    margin: 0;
  }
  .openModal{
    margin: 0 auto;
  }
  .parallax8{
    height: 150vw;
    width: 100vw;
  }
  .top-portfolio-container,.top-blog-container,.contact-container{
    padding: 60px 0;
    height: auto;
    width: 100vw;
  }
  .top-portfolio-container h1,.top-blog-container h1,.contact-container h1{
    margin-left: 35px;
  }
  .faq-container{
    padding: 60px 35px;
    height: auto;
    width: 100vw;
  }
  .faq-container h1{
    margin-bottom: 30px;
  }
  .portfolio-items,.blog-items ,.accordion-area{
    width: 80%;
    margin: 0 auto;
    display: block;
  }
  .accordion-area li{
    width: 95%;
  }
  .accordion-area .title{
    font-size: 0.6rem;
  }
  .top-about-container p{
    font-size: 0.6rem;
  }
  .portfolio-item ,.blog-item,.contact-items{
    width: 80%;
    padding: 10px;
    margin: 30px auto;
    text-align: center;
  }
  .portfolio-item a,.blog-item a{
    display: flex;
    justify-content: center; /* 水平方向に中央揃え */
  }
  .button{
    width: 100vw;
    height: 30px;
    writing-mode: horizontal-tb;
  }
  .parallax10{
    height: 150vw;
    width: 100vw;
  }
  .parallax12{
    height: 150vw;
    width: 100vw;
  }
  footer{
    display: block;
  }
  .accordion-area{
  display: flex;
  flex-direction: column; /* 縦並びにする */
  justify-content: center; /* 垂直方向の中央揃え */
  align-items: center;     /* 水平方向に中央揃え */
  list-style: none;        /* リストマーカーを削除 */
  padding: 0;
  margin: 0;
  }
}




