/* 全体のレイアウト */
html {
  font-size: 1em;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: メイリオ, Meiryo, ヒラギノ角ゴ ProN W3,
    "Hiragino Kaku Gothic ProN", MS Pゴシック, "MS PGothic", MS UI Gothic,
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

/* ヘッダーのスタイル */
header {
  padding: 10px;
}

.logo {
  width: 30%;
  padding: 1rem 0.25rem 0.25rem 1rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOPロゴ画像配置・装飾 */
.logomessage_setting {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logomessage_setting h2 {
  width: 95%;
}

/* 親要素が display: flex の場合、このクラスを持つ要素が余ったスペースを埋めるよう伸長する。*/
.flex-grow {
  flex: 1;
}

/* TOPロゴ画像装飾（回転） */
@keyframes spinIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}
.animate-spin-in {
  animation: spinIn 1.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) backwards;
}

/* フッターのスタイル */
footer {
  width: 100%;
  padding: 1em;
  text-align: center;
}

footer p {
  font-size: var(--font-size-base);
  line-height: 1.5;
  white-space: pre-line; /* スマホでは改行を有効にする */
}

footer a {
  text-decoration: none;
}

.bg_yellow {
  background: var(--secondary-bg-color);
}

.bg_white {
  background: var(--primary-bg-color);
}

.message {
  width: 90%;
  margin: 0 auto;
}

/* 埋め込み動画 */
.vid_contents {
  width: 100%;
  text-align: center;
  margin-inline: auto;
}

.vid_main {
  width: 95%;
  max-width: 920px;
}

/* 埋め込みYouTube動画 */
.youtube {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /*-16:9のアスペクト比-*/
  height: 0;
}

.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* ==========================================================================
  テキストアニメーション
   ========================================================================== */
.animated-text {
  /* 文字間のスペースを少し広げる */
  letter-spacing: 0.1em;
}

.animated-text span {
  display: inline-block;
  opacity: 0;
  /* 開始時の位置と状態 */
  transform: translateY(30px);
  /* アニメーションの定義 */
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
  /* 終了時の位置と状態 */
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* タブレット向けスタイル */
@media (min-width: 768px) {
  .logo {
    width: 20%;
    padding: 1rem 0.25rem 0.25rem 1.5rem;
  }
}

/* PC向けスタイル */
@media (min-width: 1024px) {
  .header-logo {
    width: 150px;
    padding: 0 20px;
  }

  .logo {
    width: 15%;
    padding: 1rem 0.25rem 0.25rem 2.5rem;
  }

  .logomessage_setting h2 {
    width: 60%; /* PCでのメッセージ画像の幅を調整 */
    max-width: 700px;
  }
}
