html{
	background-color: #272727
}

body{
	margin: 0;
	padding: 0;
}

a {
  text-decoration: none;
}



/* ヘッダーアニメーション */
.header {
  transform: translateY(-100px); /* 初期位置：上に隠す */
  opacity: 0;                    /* 初期は非表示 */
  animation: headerSlideDown 0.8s ease-out forwards;
  animation-delay: 3.6s;         /* 少し遅れて出る演出 */
}

/* キーフレーム定義 */
@keyframes headerSlideDown {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header {
  /*height: 200px;
  background-color: #272727;
  position: sticky;*/
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #272727;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
	
  display: flex;
  align-items: center;   /* 縦方向の中央揃え */
  justify-content: space-between; /* 左右に配置 */
  padding: 0 50px;       /* 左右の余白を確保 */
}

.header.scrolled {
  background-color: rgba(200, 200, 200, 0.2); /* 薄い白 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);      /* 下に影をつけて浮かせる */
}


/* Logo styling */
.logo {
  position: absolute;
  width: 205px; 
  height: auto;
  top: 45px; 
  left: 50px; 
  object-fit: cover;
  transition: all 0.3s ease; /* スムーズに */
}

.logo.scrolled {
  width: 150px; /* 縮小サイズ */
  height: auto;
}

/* Contact button styling */
.contact-button {
  position: absolute;
  width: 156px;
  height: 56px;
  top: 60px;
  right: 148px;
  border-radius: 34px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
/*  background: linear-gradient(270deg, rgba(255, 166, 0, 1) 0%, rgba(255, 217, 0, 1) 100%);*/
  background: linear-gradient(270deg, rgba(249, 255, 139, 1) 0%, rgba(255, 228, 77, 1) 100%);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-button:hover {
  background: linear-gradient(270deg, rgba(249, 255, 139, 0.9) 0%, rgba(249, 255, 139, 0.9) 100%);
}

.contact-button:focus {
  outline: 2px solid rgba(255, 166, 0, 0.5);
  outline-offset: 2px;
}

.contact-text {
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 400;
  color: black;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
}

/* overlay-styles.css */
.hamburger-overlay {
  position: fixed;
  top: 65px;
  right: 50px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger-overlay__line {
  position: absolute;
  left: 11px;
  width: 40px;
  height: 4px;
  background-color: #FFFFFF;
  transition: all .6s;
  border-radius: 50px;
}

.hamburger-overlay__line:nth-of-type(1) { top: 14px; }
.hamburger-overlay__line:nth-of-type(2) { top: 23px; }
.hamburger-overlay__line:nth-of-type(3) { top: 32px; }

.hamburger-overlay.active .hamburger-overlay__line {
  background-color: #fff;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  visibility: hidden;
  opacity: 0;
  transition: all .6s;
  z-index: 900;
  font-family: 'Anton', Helvetica, sans-serif;
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
}

.nav-overlay__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.nav-overlay__list {
  margin: 0;
  padding: 0;
  list-style: none;
}


.nav-overlay__item {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s;
}

.nav-overlay.active .nav-overlay__item {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .nav-overlay__item:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-overlay__item:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active .nav-overlay__item:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active .nav-overlay__item:nth-child(4) { transition-delay: 0.4s; }

.nav-overlay__link {
  display: inline-block;
  padding: 20px;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color .3s;
}

.nav-overlay__item a:hover {
    color: #aaa;
}

/*レスポンシブ後に 三 の中に出てくるお問い合わせボタン⇩*/

.pc-only {
  display: inline-block;
}
.sp-only {
  display: none;
  padding: 20px;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color .3s;
}

.nav-overlay__link:hover {
  color: #4a90e2;
}


/* タブレットサイズ */
@media (max-width: 1024px) {
	
  .logo {
    width: 160px;
    height: auto;
    top: 40px;
    left: 40px;
  }
	
	.logo.scrolled {
	  width: 120px; /* 縮小サイズ */
	  height: auto;
	}

  .contact-button {
    width: 130px;
    height: 48px;
    top: 50px;
    right: 120px;
  }

  .contact-text {
    font-size: 14px;
  }

  .hamburger-overlay {
    top: 50px;
    right: 30px;
    width: 40px;
    height: 40px;
  }

  .hamburger-overlay__line {
    width: 28px;
    height: 3px;
  }
}

@media (min-width: 1025px){
	.logo{
    width: 180px;
    height: auto;
}
}

/* スマホサイズ */
@media (max-width: 600px) {
	
  .nav-overlay__content{
	top: 45%;
	}
	
  .nav-overlay__link{ 
	padding: 10px;
	font-size: 18px;
	}
	
  .contact-button {
    display: none;
  }

  .logo {
    width: 120px;
    top: 20px;
    left: 20px;
  }

  .contact-button {
    width: 110px;
    height: 40px;
    top: 40px;
    right: 100px;
  }

  .contact-text {
    font-size: 13px;
  }

  .hamburger-overlay {
    top: 40px;
    right: 20px;
    width: 36px;
    height: 36px;
  }

  .hamburger-overlay__line {
    width: 24px;
    height: 3px;
  }
	
/*ハンバーガーメニュー内にお問い合わせをスマホの時のみ表示する*/
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
	padding: 10px;
	font-size: 18px;
  }
}

  

.oioi{
	height: 800px;
	background-color: #272727; /*テスト用*/
}


/* footer.css */
.site-footer {
  background-color: #272727;
  color: #fff;
  padding: 40px 20px;
  font-family: "Noto Sans JP", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 40px; /* 列間の余白 */
  border-bottom: 1px solid #c3c3c3;
　padding-bottom: 20px;
}

.footer-links ul, .footer-links-sub ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.footer-links li, .footer-links-sub li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #aaa;
}

.footer-links-sub a:hover {
  color: #aaa;
}

.footer-links-sub a {
  color: #c3c3c3;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 13px;
}

.footer-info {
  font-size: 14px;
  line-height: 1.6;
}

.footer-info p {
  margin: 4px 0;
}

.copyright {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

.footer-info {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-info-text p:first-child {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}

.footer-info-text p:first-child::before {
  content: "";
  position: absolute;
  left: 1%;  /* 会社名の左端から開始 */
  top: 100%;   /* テキストの下に配置 */
  height: 2px;
  width: calc(45vw - 100%); /* 画面右端まで伸ばす */
  background-color: #ffcc00;
}

.footer-info-logo{
  width: 160px;
}

.footer-info-logo img{
  width: 120px;
  height: 120px;
}
	

#toTop {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: #f0c929;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
	
  /* ▼この3行で▲を中央に配置 */
  display: flex;
  align-items: center;
  justify-content: center;	
	
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

#toTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#toTop:hover {
  background-color: #ffd84d;
}

/* スマホ用（小さく＆位置を調整） */
@media screen and (max-width: 768px) {
  #toTop {
    right: 15px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
	display: flex !important;
  }
}

/* ------------------ レスポンシブ対応 ------------------ */
/*@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ------------------ レスポンシブ対応 ------------------ */
@media (max-width: 857px) {
	.footer-info p:first-child {
	border-bottom: 2px solid #ffcc00;
}
}



@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  /* 横並びを維持しつつ、折り返しOKに */
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* 2列の間隔 */
  }

  .footer-links ul {
    min-width: 120px; /* それぞれの列の幅 */
  }

  .footer-info {
    margin-top: 20px;
  }
  .footer-info p:first-child {
	border-bottom: 2px solid #ffcc00;
}
  .footer-links-sub { 
	text-align: center !important;/*重要なものに対して優先でCSSをつける*/
}
}

  .footer-info-logo img{
	margin: auto;
    display: block;
	padding-bottom: 40px;
}

	

@media (max-width: 480px) {
  .footer-links ul{
	margin: 0 auto;
	min-width: 100px;
	}
	
  .footer-links {
    display: block;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0px; /* 2列の間隔 */
	padding-bottom: 20px;
  }
}
