/* =====================================
   共通
===================================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  overflow-x: hidden;
  position: relative;
}

/* =====================================
   ヘッダー
===================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255,255,255,1.0);
  z-index: 1100;
  left: 0; /* 左に寄せる */
  margin: 0; /* 余白をなくす */
}

.header-top {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
}

.header-top .logo {
  height: 70px;
  margin-left: 20px; /* 左側のマージンをなくす */
}

.header-top .button {
  height: 40px;
  margin-right: 20px; /* 右側のマージンを調整 */
  margin-top: 15px; 
}

.header-bottom {
  background-color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px 0;
}

.header-bottom ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.header-bottom ul li {
  margin: 0 15px;
}

.header-bottom ul li a {
  text-decoration: none;
  color: #333;
}

/* =====================================
   メイン　エリア
===================================== */
main {
  padding-top: 35px; /* Adjust based on header height */
  max-width: 1000px;
  margin: 80px 0px auto; /* Center horizontally */
  transform: translateY(120vh); /* Initially hide main content */
  transition: transform 1s ease-in-out;
  position: relative;
  z-index: 1000; /* Ensure main content is in the front */
  opacity: 0; /* Initially hide content */
}

subs {
  padding-top: 120px; /* Adjust based on header height */
  max-width: 1000px;
  margin: 0 auto; /* Center horizontally */
  transform: translateY(120vh); /* Initially hide main content */
  transition: transform 1s ease-in-out;
  position: relative;
  z-index: 1000; /* Ensure main content is in the front */
  opacity: 1; /* Initially hide content */
}





/* コンテンツ エリア */
.content {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px;
  /*text-align: center;*/
}

/* =====================================
   フッター
===================================== */
footer {
  background-color: rgba(255,217,00,0.7);
  color: #fff;
  padding: 10px 0;
  transform: translateY(100vh); /* Initially hide footer content */
  transition: transform 1s ease-in-out;
  position: relative;
  z-index: 1000; /* Ensure footer content is in the front */
  opacity: 1; /* Initially hide content */
  max-width: 1000px; /*  フッターの最大幅を1000pxに */
  margin: 0 auto; /*  中央に配置 */
  box-sizing: border-box; /*  ボックスサイズを調整 */
  border-top-left-radius: 20px; /*  左上の角を丸める */
  border-top-right-radius: 20px; /*  右上の角を丸める */
}



.footer-bottom {
  text-align: center;
  /*padding-top: 10px;
  border-top: 1px solid #444;*/
}


/* =====================================
   バック　トップ
===================================== */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001; /* Ensure the button is in the front */
}

/* =====================================
   メディアクエリ
===================================== */
@media (max-width: 768px) {
  .header-top .logo {
    /*display: none;*/
    width: 260px;
  }
  
  .header-top .button {
    /*display: none;*/
    width: 110px;
  }

  .header-bottom {
    /*display: none;*/
    font-size: 0.9em;

  }
}

@media (max-width: 632px) {
  .header-top .logo {
    width: 220px;
  }
  
  .header-top .button {
    width: 80px;
  }
  
  .footer {
	max-width: 600px;
	width: auto;
  }
	
  .header-bottom {
    font-size: 0.8em;
  }
  
  .footer-bottom {
	font-size: 0.85em;  
  }
}

@media (max-width: 412px) {
  .header, .footer {
  	max-width: 352px;
	  width: auto;
	  margin-right: -10px;
  }
	

  .footer-bottom {
	font-size: 0.75em;  
  }
	.footer .footer-bottom p {
	
	}
  
	.main {
		max-width: 352px;
	}
	
  /*.header-top {
	max-width: 352px;
	width: auto;
  }*/
	
  .header-top .logo {
   	/*display: none;*/
   	width: 200px;
	margin-left: 10px; 
  }
  
  .header-top .button {
    /*display: none;*/
    width: 90px;
	margin: 15px 20px 0px 10px;
  }
	
  .header-bottom {
    /*display: none;*/
    font-size: 0.9em;
	width: auto;
	margin:　auto;
  }
  
  .content {
	width: 340px;
  }
	
}

  .background-image {
    position: absolute;
  	width: 20%;
  	opacity: 0;
  	animation: zoomIn 3s forwards;
  }

/* =====================================
   
===================================== */
@keyframes zoomIn {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
