/* タブレット・スマホ向け（900px以下） */
@media screen and (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;

    background-image: url("haikei.png");
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding-top: 60px;
  }

  /* ===== 時刻表示 ===== */
  h2 {
    font-size: 3.5em;
    transform: translateX(-60px);
    margin-top: 130px;
  }

  h6 {
    font-size: 0.5em;
  }

  h4 {
    font-size: 3.5em;
    transform: translateX(-160px);
    margin-top: 90px;
  }

  h8 {
    font-size: 0.5em;
  }

  /* ===== ロゴ周り ===== */
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(-170px) translateY(100px);
}
  /* ===== 日付・説明文 ===== */
h3, h5 {
    font-size: 0.75em;
    max-width: 90%;
   transform: translateX(-170px) translateY(100px);
    margin: 0.2em 0;
	}
	
	h11 {
    font-size: 0.75em;
    max-width: 90%;
   transform: translateX(-170px) translateY(-140px);
    margin: 0.2em 0;
  }

  /* 円テキスト */
  .block {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
}

/* 小さなスマホ（480px以下） */
@media screen and (max-width: 480px) {
  h2,
  h4 {
    font-size: 1.9em;
  }

  h1 {
    width: 75%;
  }

  h1 img {
    transform: translateX(-60px) translateY(70px);
  }

  h3,
  h5 {
    transform: translateX(-60px) translateY(70px);
  }
}
