@charset "utf-8";

body {
  margin: 0;
  width: 100vw;
  min-height: 100vh;
  background-image: url("haikei.png");
  background-position: center top;
  background-size: contain;
	background-repeat: no-repeat;


  /* 中央寄せの設定 */
  display: flex;
  flex-direction: column;   /* 中身を縦に並べる */
  justify-content: center;  /* 上下の中央 */
  align-items: center;      /* 左右の中央 */
  
  text-align: center;       /* テキスト自体もセンター揃え */
}

/* position: absolute と top / left はすべて削除しました */

.block {
  width: 160px;
  height: 160px;
  margin-bottom: 20px; /* 下の要素との隙間 */
}

h1 {
  /* scale(0.3) の代わりに、表示したい横幅を直接指定する */
  width: 150px;      /* 固定で小さくしたい場合 */
  /* width: 20%; */  /* 画面幅に合わせて伸縮させたい場合（こちらがおすすめ） */
  margin-top: auto;   /* ← これがポイント */
  height: 300px;      /* これで元の画像の比率が絶対に崩れません */
  
  margin: 0 auto;    /* 中央寄せを維持 */
  display: block;    /* 幅の指定を有効にする */
}

h1 img {
  width: 100%;       /* 親のh1の幅(150pxなど)に画像を合わせる */
	height: auto;      /* 画像自体の比率を維持 */
	transform: translateX(-190px) translateY(140px);
	  margin: 0 ;   /* 上下の間隔を少し空ける */
}

h1 a img {
  cursor: pointer;
  transition: filter 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

@keyframes hoverBounce {
  0%   { transform: translateX(-190px) translateY(140px); }
  50%  { transform: translateX(-190px) translateY(130px); }
  100% { transform: translateX(-190px) translateY(140px); }
}

h1 a:hover img {
  animation: hoverBounce 0.4s ease;
}


h3, h5 {
  font-size: 0.8em;
  width: 100%;       /* 幅をいっぱいにして中央揃えを有効に */
  max-width: 516px;
	transform: translateX(-190px) translateY(140px);
	  margin-top: 400px;
  margin: 0.2em ;   /* 上下の間隔を少し空ける */
}

h2 {
  font-size: 3.0em;
  width: 100%;
  max-width: 516px;
  transform: translateX(-70px); /* マイナスで左へ */
  margin-top: 220px;   /* ← ここが位置調整の肝 */
  margin-bottom: 0.1em;
}

h12 {  font-size: 2.5em;}

h8 {  font-size: 0.4em;
  width: 100%;
  max-width: 516px;
  transform: translateX(-50px); /* マイナスで左へ */
	margin-bottom: 0.1em;
}



h4 {
  font-size: 3.0em;
  width: 100%;
  max-width: 516px;
  transform: translateX(-160px);
  margin-top: 140px;    /* h2 との間隔 */
  margin-bottom: 0.1em;
}

h14 {  font-size: 2.5em;
  width: 100%;
  max-width: 516px;
  transform: translateX(-220px);
  margin-bottom: 0.1em;}

h10 {  font-size: 0.4em;
  width: 100%;
  max-width: 516px;
  transform: translateX(-180px);
	margin-bottom: 0.1em;
}

h11 {  font-size: 0.8em;
  width: 100%;
  max-width: 516px;
  transform: translateX(-190px) translateY(-90px);
	margin-bottom: 0.1em;
}

h11 a {
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  color: #000;
}

@keyframes smallBounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

h11 a:hover {
  animation: smallBounce 0.35s ease;
}


h6 {
  font-size: 1.0em;
  width: 100%;       /* 幅をいっぱいにして中央揃えを有効に */
  max-width: 516px;
  margin: 0.1em ;   /* 上下の間隔を少し空ける */
}

@keyframes fadeInOnce {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h2, h3, h4, h5, h6,
h8, h10, h11, h12, h14 {
  opacity: 0;
  animation: fadeInOnce 1.2s ease-out 1 forwards;
}



