@charset "UTF-8";

/*共通*/
img {
  image-rendering: -webkit-optimize-contrast;
}
body {
  font-family:
    Verdana, Roboto, "Droid Sans", "メイリオ", Meiryo, "ＭＳ Ｐゴシック",
    "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  padding: 0;
}

/*背景設定*/
.title_container {
  background-image: url("../images/R8omujo_bg.png");
  background-size: cover;
  background-repeat: repeat-y;
}
.wrap {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .wrap .brand {
    height: 10vw;
  }

  .title_container {
    background-image: url("../images/R8omujo_bg_sp.png");
  }
}

/**ヘッダー マイルクラブ大村24ロゴ**/
header {
  position: absolute;
  top: 0;
  z-index: 1;
  padding: 10px;
}
/*ホバー　エフェクト　少し薄くなる*/
header:hover {
  opacity: 0.7; /* ホバー時に透明度を下げる */
}
@media screen and (max-width: 768px) {
  header .brand {
    height: 7vw;
  }
}
#omujo_top {
  padding: 0;
  margin: 0;
}

/**見出しタイトル**/
.title_container {
  padding-top: 40px;
  height: auto;
  text-align: center;
}
.title_img1,
.title_img2,
.title_img3 {
  display: inline-block;
  max-width: 100%; /* 親要素の幅に合わせる */
  margin: 0 auto; /* 中央寄せ */
}
.title_img1_sp,
.title_img2_sp,
.title_img3_sp {
  display: none;
}
.title_img2 {
  animation: fuwafuwa 5s infinite;
}
.title_img3,
.title_img3_sp {
  padding-top: 0;
}
/*PC版アニメーション　上下にふわふわ動く*/
@keyframes fuwafuwa {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media screen and (max-width: 768px) {
  .title_container .brand {
    height: 10vw;
  }
  .title_img1_sp,
  .title_img2_sp,
  .title_img3_sp {
    display: initial;
    max-width: 100%; /* 親要素の幅に合わせる */
  }
  .title_img2_sp,
  .title_img3_sp {
    animation: fuwafuwa_sp 5s infinite;
    margin-bottom: 0;
  }
  .title_img1,
  .title_img2,
  .title_img3 {
    display: none;
  }
}
/*スマホ版アニメーション　上下にふわふわ動く*/
@keyframes fuwafuwa_sp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/**メニュー部**/
.menu_container {
  background: white;
  max-width: 100%; /* 親要素の幅に合わせる */
  margin: 10px auto; /* 中央寄せ */
}
/*PC版*/
.link_flexbox {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.link_flexbox_sp {
  display: none;
}
.link_present,
.link_joken,
.link_taisyou,
.link_kaikinsyou {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%; /* 親要素の幅に合わせる */
  margin: 0 auto; /* 中央寄せ */
  margin-left: 2px;
  margin-right: 2px;
  width: 96%;
}
/*スマホ版*/
@media screen and (max-width: 768px) {
  .link_flexbox {
    display: none;
  }
  .link_flexbox_sp {
    display: initial;
    justify-content: center;
    align-items: center;
    margin: 0;
  }
  .m_item1_sp,
  .m_item2_sp {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* パディングやボーダーを含めた幅を計算 */
  }
  .link_present_sp,
  .link_joken_sp,
  .link_taisyou_sp,
  .link_kaikinsyou_sp {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* パディングやボーダーを含めた幅を計算 */
    max-width: 100; /* 親要素の幅に合わせる */
    height: auto; /* 高さを自動調整 */
    margin: 3px;
  }
}

/**メインコンテンツ**/
.contents_container {
  background-image: url("../images/R8omujo_bg.png"); /*画像を背景とする*/
  text-align: center;
}
@media screen and (max-width: 768px) {
  .contents_container .brand {
    height: 10vw;
  }
  .contents_container {
    background-image: none;
    background-image: url("../images/R8omujo_bg_sp.png"); /*画像を背景とする*/
  }
}

/*各コンテンツのマージン設定*/
.present,
.tokusanhin,
.joken,
.taisyou,
.kaikinsyou {
  margin: 10px 0px;
  max-width: 100vw; /* 親要素の幅に合わせる */
  height: auto; /* 高さを自動調整 */
}
.present_sp,
.tokusanhin_sp,
.joken_sp,
.taisyou_sp,
.kaikinsyou_sp {
  display: none;
}
@media screen and (max-width: 768px) {
  .present,
  .tokusanhin,
  .joken,
  .taisyou,
  .kaikinsyou {
    display: none;
  }
  /*SP版各コンテンツのマージン設定*/
  .present_sp,
  .tokusanhin_sp,
  .joken_sp,
  .taisyou_sp,
  .kaikinsyou_sp {
    display: initial;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10px;
    max-width: 100%; /* 親要素の幅に合わせる */
    height: auto; /* 高さを自動調整 */
  }
  /*皆勤賞のみマージン下の設定*/
  .taisyou_sp {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .kaikinsyou_sp {
    margin-top: 0;
    margin-bottom: 15px;
  }
}

/**キャンペーン対象レースとオム女皆勤賞の詳細画像共通**/
#contents_taisyou,
#contents_joken {
  display: flex;
  justify-content: center; /* 横方向の中央揃え */
  align-items: center; /* 縦方向の中央揃え */
  position: relative;
  flex-direction: column;
}

/*エントリーボタン*/
.contents_entry {
  position: absolute; /* 絶対位置に変更 */
  bottom: 11%; /* 下部からの% */
  left: 50%; /* 横位置中央 */
  transform: translateX(-50%); /* 中央揃え */
  z-index: 900;
  display: flex;
  justify-content: center;
  width: auto; /* 幅を自動に変更 */
}
.to_entry {
  animation: poyopoyo 2.5s infinite;
}
.to_entry_sp {
  display: none;
}
@media screen and (max-width: 768px) {
  .contents_entry {
    bottom: 10%; /* 下部からの% */
  }

  .to_entry {
    display: none;
  }
  .to_entry_sp {
    display: initial;
    animation: poyopoyo 2.5s infinite;
    max-width: 100%; /* 親要素の幅に合わせる */
    height: auto; /* 高さを自動調整 */
  }
}

/*開催日程へボタン*/
.btn_kaisainittei {
  position: absolute; /* 絶対位置に変更 */
  bottom: 10%; /* 下部から10% */
  left: 50%; /* 横位置中央 */
  transform: translateX(-50%); /* 中央揃え */
  z-index: 900;
  display: flex;
  justify-content: center;
  width: auto; /* 幅を自動に変更 */
}
.kaisainittei {
  animation: poyopoyo 2.5s infinite;
}
.kaisainittei_sp {
  display: none;
}
@media screen and (max-width: 768px) {
  .kaisainittei {
    display: none;
  }
  .kaisainittei_sp {
    display: initial;
    z-index: 900;
    animation: poyopoyo 2.5s infinite;
    max-width: 100%; /* 親要素の幅に合わせる */
    height: auto; /* 高さを自動調整 */
  }

  .btn_kaisainittei {
    bottom: 12% /* 下部から10% */
  }
}

/*ぽよぽよ動くアニメーション*/
@keyframes poyopoyo {
  00%,
  40%,
  60%,
  80% {
    transform: scale(1);
  }
  50%,
  70% {
    transform: scale(0.95);
  }
}

/*フッター*/
.footer {
  background-color: rgb(198, 233, 246);
  padding: 2rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  bottom: 0;
}
