


header {
	width: auto;
	height: 120px;
}

.site-header {
  position: sticky;    /* スクロール時に追従 */
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;                   /* Flexboxで横並び */
  align-items: center;             /* 垂直中央揃え */
  justify-content: space-between;  /* 左右端に寄せる */
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
}

.header-left,
.header-center,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-center {
  justify-content: center;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.company-logo {
  height: 60px;
  width: auto;
}

.system-logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.home-btn {
  padding: 8px 16px;
  font-size: 1.5rem;
  border: 2px solid #3895A5;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition-duration: .4s;
  color: #3895A5;
  height: 94px;

}

.home-btn:hover {
	background-color: #3895A5;
	color: white;
}



body, header {
  margin: 0;
  padding: 0;
}

body {
  overflow-y: scroll;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}


@media print {
	header {
		display: none;
	}
	
	.no-print{
		display: none;
	}
	.font-min{
		font-size: 8px;
	}
	.font-ex-min{
		font-size: 7.5px;
	}
	.img-min{
		width: 79px;
		height: 79px;
	}
	img.shiji-min{
		width: 50px !important;
		height: 50px !important;
	}
	img.syoumouhin-img{
		width: 100px !important;
		height: 100px !important;
	}
}


@media screen and (max-width: 1400px) {
  .home-btn {
    -webkit-appearance: none;
    appearance: none;
    background-color: #F0F0F0 !important;
  }
  
  .home-btn:hover {
    -webkit-appearance: none;
    background-color: #3895A5 !important;
  }
  
  .apl-tanshi-menu {
    width: 155px !important;
  }
  
  .mitsumori-col {
    font-size: 0.8rem !important;
  }
  
  .kakou-kanri-col {
    font-size: 0.8rem !important;
  }
  
}

@media screen and (max-width: 1250px) {
  .header-right .home-btn {
    margin-right: 40px; /* スクロールバーの幅分だけ内側に */
  }
}





/* 見積依頼ローディングアニメーション */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.spinner {
  width: 64px;
  height: 64px;
  border: 8px solid #ddd;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  margin-bottom: 22px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#loadingOverlay span {
  background: #fff;
  padding: 24px 42px;
  border-radius: 7px;
  font-size: 1.5rem;
  color: #333;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}


/* CFMモードアニメーション */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none; /* 非表示スタート */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: flex;
}

.modal {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center; /* 横方向中央揃え */
  color: white;
  gap: 20px; /* 各要素の間の余白 */
  text-align: center;
}

.status-text {
  font-size: 1.5em;
}

.spinner {
  width: 110px;
  height: 110px;
  position: relative;
}

.circle {
  border: 5px solid white;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 0; left: 0;
  box-sizing: border-box;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
