/* =====================================
   共通
===================================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  background-image: url("../img/background_02.png");
  background-attachment: fixed; /* 背景画像を固定 */
  background-size: cover; /* 背景画像をカバーに設定 */
  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.9);
  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 */
  margin: 80px 0px auto; /* Center horizontally */
  max-width: 1000px;
  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;
  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-top {
  display: flex;
  justify-content: space-between;
  /*padding: 10px 20px;*/
}

.footer-top .left {
  flex: 3; /*  左側の比率を3に */
  display: flex;
  justify-content: flex-end; /*  右寄せ */
  align-items: center;
}

.footer-top .right {
  flex: 7; /*  右側の比率を7に */
  display: flex;
  justify-content: flex-start; /*  左寄せ */
  align-items: center;
}

.footer-top img {
  height: 40px;
}

.footer-top ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-top ul li {
  margin: 0 10px;
}

.footer-top ul li a {
  color: #fff;
  text-decoration: none;
}

.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: 412px) {
	.header {
		max-width: 352px;
	}
	
	.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 35px 0px 0px;
  }
	
  .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;
  }
}
