@charset "UTF-8";

/* 要素リセット */
body{
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif, 'ヒラギノ角ゴ Pro W3' , 'Hiragino Kaku Gothic Pro' , 'ＭＳ Ｐゴシック' , 'Osaka';
  color: #292929; /* 標準文字色 */
}
/* Safari用ハック 文字サイズ調整 */
/*\*/
html:first-child body{
    font-size: 16px;
}

html {
  scroll-behavior: smooth; 
  scroll-padding-top: 200px; 
}

/* end */

img{
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

/*--------------------------------------------------------
  レイアウト設定
--------------------------------------------------------*/
#hpb-container
{
}

#hpb-header{
	width: 90%;
  padding: 0 5%;
  height: 90px;
  position: fixed;
  top: 0;
  z-index: 999;
  background-color: #fafad280;
  display: flex;
  align-items: center;
}

.header-box{
	display:flex;
	width: 100%;
	margin: 0;
  padding: 0;
  justify-content: space-between; 
  align-items: center;           
}
.header-box-logo{
	width:150px;
}

.header-box-nav {
  margin-left: auto; /* ロゴとナビの間に空間を作る */
  margin-right: 20px; /* ナビと右側リンクの間の余白 */
}

.header-box-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-box-nav li {
  margin: 0 15px;
  text-align: center;
}

.header-box-nav a {
  text-decoration: none;
  color: #333; /* 文字色は適宜変更してください */
  line-height: 1.2;
  display: block;
}
.pc-nav ul {
  display: flex;
  list-style: none;
}
.pc-nav li { margin: 0 15px; text-align: center; }
.pc-nav a { text-decoration: none; color: #333; }
.pc-nav .ja { font-weight: bold; font-size: 14px; }
.pc-nav .nav-j { font-size: 10px; }


.sp-img, .sp-nav-toggle, .sp-nav-content 
{ display: none; }

.header-box-nav .ja {
  font-weight: bold;
  font-size: 14px;
}

.header-box-nav .nav-j {
  font-size: 10px;
}

.header-box-links a img{
  height: 50px;      
}

  .pc-img { display: inline-block; }
  .sp-img { display: none; }

 
  .header-box-links {
    position: static;
    width: auto;
    display: block;   
  }

  .header-box-links a img.pc-img {
    height: 50px;
  }


#hpb-inner{
  clear: both;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

#hpb-inner::after{
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

#hpb-wrapper{
  width: 100%;
  margin: 0;
  margin-top: 90px;
}

*:first-child + html #hpb-wrapper{
    /*for IE7*/
  margin-top: 20px;
}


#hpb-main{
  width: 100%;
  margin: 0;
  float: left;
  text-align: left;
  background-color: #fff;
}

.backbutton {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 6px 0px;
  z-index: 999;
}


/*--------------------------------------------------------
  デザイン設定
--------------------------------------------------------*/

/* ヘッダー領域 */

#hpb-headerLogo{
  width: 330px;
  float: left;
}

* html #hpb-headerLogo{
   /* for IE6 */
  padding-bottom: 0;
}

#hpb-headerLogo a{
  display: block;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  text-indent: -9999px;
  overflow: hidden;
  height: 70px;
  background-image : url(logo.png);
  background-position: top left;
  background-repeat: no-repeat;
}

* html #hpb-headerLogo a{
  /* for IE6 */
  margin-top: 0;
}

.hpb-layoutset-01 #hpb-title {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; 
  background-size: cover;
  background-position: center;
  animation: slideShowPC 15s infinite;
}

/* 画像切り替えのアニメーション設定 */
@keyframes slideShow {
  0% { background-image: url(top.jpg); }
  30% { background-image: url(top.jpg); }
  33% { background-image: url(top-2.jpg); }
  63% { background-image: url(top-2.jpg); }
  66% { background-image: url(top-3.jpg); }
  96% { background-image: url(top-3.jpg); }
  100% { background-image: url(top.jpg); }
}

/* 黒い透過レイヤー（既存のまま） */
.hpb-layoutset-01 #hpb-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1; /* z-indexを調整（文字より下に） */
}

.hpb-layoutset-01 #hpb-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 100;
}

h3{
	font-size: 35px;
  font-weight: 600;
  color: #0d3f6d;
  text-align: center;
  line-height: 1.2;
}
.hpb-layoutset-02 h3{
	font-size: 20px;
  font-weight: 600;
  color: #0d3f6d;
  text-align: center;
  line-height: 1.2;
}

/******************************
 * フェードイン設定
 ******************************/
.effect {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 1s, visibility 1s, transform 1s;
}
.is-fadein {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.effect-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: opacity 1s, visibility 1s, transform 1s;
}
.is-fadein-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.effect-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-30px);
  transition: opacity 1s, visibility 1s, transform 1s;
}
.is-fadein-left {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 画像スライド */
.slider {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding-bottom: 80px;
}

.slider-track {
  display: flex;
  animation: scroll-left 30s linear infinite;
}

.slider-track img {
  height: 300px;
  width: auto;
  max-width: 300px; 
}


@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

#top{
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 10%;
}

.point{
  padding: 5% 0;
  background-image: url(back1.png);
  background-size: cover;
}

.point-box{
  display:flex;
  flex-wrap:wrap;
  max-width:1000px;
  margin:auto;
  padding: 0;
}

.point-box1,.point-box2,.point-box3{
  width: 30%;
  margin: 1%;
  flex-grow: 1;
}

.point-box-2{
  display:flex;
  flex-wrap:wrap;
  max-width:1000px;
  margin:auto;
  padding: 30px;
}
.point-box-p{
  width: 32%;
  margin: 0.5%;
  flex-grow: 1;
}

.point-title {
  font-size: 20px;
  font-weight: 600;
  position: relative; 
  padding-left: 65px; 
  line-height: 1.4;
}

.point-box1 .point-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px; 
  height: 60px;
  background-image: url('sub/icon1.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.point-box2 .point-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px; 
  height: 60px;
  background-image: url('sub/icon2.png'); 
  background-size: contain;
  background-repeat: no-repeat;
}

.point-box3 .point-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px; 
  height: 60px;
  background-image: url('sub/icon3.png'); 
  background-size: contain;
  background-repeat: no-repeat;
}

.greeting-box{
  display:flex;
  flex-wrap:wrap;
  max-width:1000px;
  margin:auto;
  padding: 5% 0;
}
.greeting-box-mini{
  width: 48%;
  margin: 1%;
  flex-grow: 1;
}

.work{
  background-image: url(work/haikei.jpg);
  background-size: cover;
  padding: 5% 0;
}

.work-box{
  display:flex;
  flex-wrap:wrap;
  max-width:1200px;
  margin:auto;
  padding: 0;
}
.work-box-p{
  width: 48%;
  margin: 1%;
  flex-grow: 1;
}

.flow{
  padding: 5% 0;
}

.flow-box{
  display:flex;
  flex-wrap:wrap;
  max-width:1000px;
  margin: 1% auto;
}

.flow-box-mini{
  width: 50%;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}
.flow-box-s-1{
  width: 28%;
  margin: 0;
  padding: 1%;
  flex-grow: 1;
  background-color: rgb(240, 238, 124);
}
.flow-box-s-2{
  width: 28%;
  margin: 0;
  padding: 1%;
  flex-grow: 1;
  background-color: rgb(228, 130, 3);
  color: #fff;
}
.flow-box-t{
  width: 60%;
  margin: 0;
  padding: 0 5%;
  flex-grow: 1;
  border-bottom: solid 1px #292929;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-step{
  font-size: 20px;
  font-weight: 900;
}
.flow-no{
  font-size: 18px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.q-a{
  padding: 5% 0;
}

.q-a-box {
  display: block; 
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.q-a-item {
  width: 100%;
  margin-bottom: 15px; 
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
}


summary.q-t {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  list-style: none; 
}
summary.q-t::-webkit-details-marker { display: none; } 

/* アイコン */
.icon {
  font-size: 20px;
  transition: transform 0.3s;
}
details[open] .icon {
  transform: rotate(45deg); 
}

/* 回答部分 */
.a-t-wrapper {
  background-color: #ffffff; 
  border-top: 1px solid #eee;
}

.a-t {
  padding: 20px 30px;
  line-height: 1.6;
  text-align: left; 
  margin: 0;
}
.footer-box{
  display:flex;
  flex-wrap:wrap;
  max-width:1280px;
  margin: 1% auto;
}
.footer-box-add{
  width: 35%;
  margin: 0;
  padding: 0 0 0 5%;
  flex-grow: 1;
}
.footer-box-add p{
  font-size: 16px;
  padding-left: 5%;
  line-height: 1.8;
}

.footer-box-add img{
  width: 80%;
  margin: 20px 20% 20px 0;
}


.tel-rink a{
  font-size: 30px;
  font-weight: bold;
  padding-left: 5%;
}
.footer-box-map{
  width: 50%;
  margin: 0;
  padding: 0 5%;
  flex-grow: 1;
}

.top-privacy{
  text-align: right;
  padding-right: 10%;
  padding-bottom: 10px;
  padding-top: 30px;
}
.copy{
  font-size: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  background-color: #ED6231;
  color: #fff;
}

.c-s{
  max-width: 700px;
  margin: 0 auto;
  padding: 0 5%;
  font-weight: 500;
}

.shinkogyo{
  max-width: 900px;
  margin: 5% auto;
  font-size: 16px;
}

.btn {
  width: 200px;
  height: 50px;
  font-size: 18px;
  background-color: #fff;
  font-weight: 100;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0 5%;
  border: 2px solid #ED6231;
  font-weight: 500;
  border-radius: 6px;
}

.sp-only {
    display: none;
}

#privacy{
  max-width: 800px;
  margin: 5% auto;
}


/* =======================================================
  レスポンシブル設定
======================================================= */
@media screen and (max-width: 999px) {
  .pc-nav { display: none; } 
  .header-box {
    display: flex;
    justify-content: space-between; /* ロゴは左、残りは右 */
    align-items: center;
  }

  .header-box-links {
    display: flex;
    align-items: center;
    margin-left: auto; 
    margin-right: 35px;
  }

  .sp-nav-toggle {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
  }
  .sp-nav-toggle span {
    display: block; 
    position: absolute; 
    width: 100%; 
    height: 2px;
    background-color: #333; 
    transition: .3s;
  }
  .sp-nav-toggle span:nth-child(1) { top: 0; }
  .sp-nav-toggle span:nth-child(2) { top: 11px; }
  .sp-nav-toggle span:nth-child(3) { top: 22px; }
  
  /* ボタンopen時 */
  .sp-nav-toggle.open span:nth-child(1) { transform: translateY(11px) rotate(-45deg); }
  .sp-nav-toggle.open span:nth-child(2) { opacity: 0; }
  .sp-nav-toggle.open span:nth-child(3) { transform: translateY(-11px) rotate(45deg); }

  .sp-nav-content {
    display: block; 
    position: fixed; 
    top: 0; 
    right: -100%;
    width: 100%; 
    height: 100vh; 
    background: #fafad2;
    transition: .4s; 
    padding-top: 100px; 
    z-index: 1000;
  }

  .sp-nav-content.open { 
    right: 0; 
  }
  .sp-nav-content li { 
    text-align: center; 
    padding: 20px 0; 
    border-bottom: 1px solid #ddd; 
    list-style: none; 
  }


  .sp-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }

  .sp-nav-close span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    top: 14px;
  }

  /* ×印を作る */
  .sp-nav-close span:nth-child(1) { transform: rotate(45deg); }
  .sp-nav-close span:nth-child(2) { transform: rotate(-45deg); }

  /* 背景を暗くする設定 */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* メニューより一つ下の重なり */
  }

  .nav-overlay.open {
    display: block;
  }

  .flow,.q-a,.shinkogyo{
    padding: 5%;
  }

  .contact-box {
    margin: 40px 5% !important;
  }

}

/* =======================================================
  レスポンシブル設定
======================================================= */
@media screen and (max-width: 730px) {

	body{
		min-width: 100%;
		background-image : none;
	}

	/*--------------------------------------------------------
	  レイアウト設定
	--------------------------------------------------------*/
	#hpb-header{
		width: 100%;
		height: auto;
		padding: 0;
	}
	#hpb-headerMain{
		width: 100%;
		padding-left: 0;
		line-height: 1.4;
		height: auto;
	}
	#hpb-headerLogo{
		width: 98%;
		float: none;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 0;
		padding-left: 0;
	}
	.backbutton {
    position: fixed;
    bottom: 80px;
    right: 10px;
    padding: 6px 0px;
    z-index: 999;
}


	#hpb-inner{
		width: 100%;
	}
	#hpb-wrapper{
		width: 100%;
		margin-top: 87px;
	}
	#hpb-title{
		margin-top: 0;
	}
	#hpb-main{
		width: 100%;
		padding-left: 0;
		padding-top: 0;
		float: none;
		margin: 0;
		padding-bottom: 20px;
	}
	.hpb-layoutset-02 #hpb-main{
		padding-top: 2em;
	}
	#pagetop{
		padding-bottom: 0;
	}
	
	/*--------------------------------------------------------
	  デザイン設定
	--------------------------------------------------------*/
	/* ヘッダー領域 */
	#hpb-headerLogo{
		max-width: 100%;
		float: none;
	}
	#hpb-headerLogo a{
	  display: block;
		margin-top: 10px;
		margin-bottom: 10px;
		margin-left: auto;
		margin-right: auto;
		background-size: contain;
		background-position: top center;
    height: 55px;
    margin-top: 0;
	}
	.hpb-layoutset-01 #hpb-title{
		aspect-ratio: 16 / 13; 
    margin-top: 0;
	}
	
  .point-box1,.point-box2,.point-box3{
    width: 96%;
    margin: 2%;
    padding: 0 0 5%;
    flex-grow: 1;
  }
  .work-box-p,.flow-box-mini,.flow-box-s-1,.flow-box-s-2{
    width: 96%;
    margin: 2%;
    flex-grow: 1;
    padding: 0;
  }
  .footer-box-add,.footer-box-map,.shinkogyo,.flow-box-t,.greeting-box-mini{
    width: 90%;
    margin: 5%;
    flex-grow: 1;
    padding: 0;
  }
  .q-a-box-mini{
    width: 90%;
    margin: 5%;
    flex-grow: 1;
    padding: 0;
  }
  .q-a-box-mini p{
    padding: 0 3%;
  }

  .flow-step {
    padding-left: 20px;
}
	
 .btn {
    margin: 20px auto 0 ;
}

.point-box-2{
  padding: 1%;
}

.pc-img { display: none; }

.header-box-links {
  position: fixed;  
  bottom: 0;        
  left: 0;
  width: 100%;      
  display: flex; 
  z-index: 1000;
}

.header-box-links a {
  flex: 1;         
}

.header-box-links a img.sp-img {
  width: 100%;    
  height: auto;      
  display: block;  
  margin: 0;        
}

.header-box{
  width: 90%;
  padding: 0 5%;
  margin: 0;
}

.header-box-logo {
    width: 250px;
}

.sp-only {
    display: block;
}
.point{
  padding-bottom: 10%;
}

.pc-img { display: none; }
  .sp-img { display: block; }

  /* コンタクトリンクを画面下部に固定 */
  .header-box-links {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
  }
  .header-box-links a { flex: 1; }
  .header-box-links a img.sp-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
  }
  

  .slider {
   overflow: hidden;
   white-space: nowrap;
   width: 100%;
   padding-bottom: 80px;
}

.slider-track {
   display: flex;
   width: max-content; 
   animation: scroll-left 50s linear infinite;
}

.slider-track img {
   width: 200px;
   margin-right: 0;
   object-fit: contain; /* 追加 */
}


@keyframes scroll-left {
   0% {
     transform: translateX(0);
   }
   100% {
     transform: translateX(-50%);
   }
}

}


@keyframes slideShowPC {
  0%, 30% { background-image: url(top.jpg); }
  33%, 63% { background-image: url(top-2.jpg); }
  66%, 96% { background-image: url(top-3.jpg); }
  100% { background-image: url(top.jpg); }
}

@keyframes slideShowSP {
  0%, 30% { background-image: url(top-4.jpg); }
  33%, 63% { background-image: url(top-5.jpg); }
  66%, 96% { background-image: url(top-6.jpg); }
  100% { background-image: url(top-4.jpg); }
}

