@charset "utf-8";

.base_w {
  width: 100%;
  background-color: #fff !important;
  color: #333;
  font-family:
    MazdaTypeMedium,
    MazdaTypeRegular,
    Noto Sans JP,
    Hiragino Kaku Gothic ProN,
    HiraKakuProN-W3,
    Meiryo,
    Yu Gothic Medium,
    sans-serif !important;
}
.page_title {
  padding: 30px 0;
}
.mt80 {
  margin-top: 80px !important;
}
.bg_blue {
  background-image: url("../images/bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-color: #fff !important;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 0 0;
}
.white50box {
  background-color: rgba(255, 255, 255, 0.5) !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 0 0;
}
.whitebox {
  background-color: #fff !important;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px;
}
.mainph01 {
  text-align: center;
  width: 100%;
  max-width: 1920px;
}
.mainph01 img {
  width: 100%;
  height: auto;
}
.copybox .copy {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.cont00 {
  margin: 30px 0;
}
.cont00 .ph {
  text-align: center;
}
.cont00 .ph img {
  width: 100%;
}
/* =========================================================
   上下に入れる
   ========================================================= */
.cont01,
.cont02,
.cont03,
.cont04 {
  position: relative;
  padding: 20px 0;
  text-align: center;
}
.cont01::before,
.cont01::after, 
.cont02::before,
.cont02::after, 
.cont03::before,
.cont03::after, 
.cont04::before,
.cont04::after {
  content: "";
  display: block;
  width: 100%;
  height: 70px; /* 画像の高さに合わせて調整 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}
.cont01::before {
  background-image: url("../images/top01.webp");
  margin-bottom: 0%;
}
.cont02::before {
  background-image: url("../images/top02.webp");
  margin-bottom: 0%;
}
.cont03::before {
  background-image: url("../images/top03.webp");
  margin-bottom: 0%;
}
.cont04::before {
  background-image: url("../images/top04.webp");
  margin-bottom: 0%;
}
.cont01::after,
.cont02::after,
.cont03::after,
.cont04::after {
  background-image: url("../images/under.webp");
  margin-top: -20px;
}
.cont02 .txt, 
.cont03 .txt, 
.cont04 .txt {
  margin: 0;
  font-size: 1.6rem;
  text-align: center;
  font-weight: 700;
}


.cont01 .flexbox00 {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.cont01 .flexbox00 .flexbox00_inn {
  width: 50%;
  text-align: center;
}
.cont01 .flexbox00 .flexbox00_inn .btnlink a {
  display: block;
  margin: 25px auto 0 auto;
  width: 60%;
  padding: 3px 0;
  text-align: center;
  background-color: #5994cf;
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
}
.cont01 .flexbox00 .flexbox00_inn img {
  width: 60%;
}

.moviebox{
  text-align: center;
  margin: 30px 0;
}
.moviebox img{
  width: 50%;
}
.ohhicialbox{
  text-align: center;
  margin: 30px 0;
}
.ohhicialbox img{
  width: 50%;
}
.moviebox a,
.ohhicialbox a {
  display: block;
}
/* ホバー時のふんわり透明化 */
.moviebox a:hover,
.ohhicialbox a:hover {
  opacity: 0.7;
  transition: 0.3s;
}


/* =========================================================
   バナーリンク（PC用：980px）
   ========================================================= */
.linkbox {
  padding: 50px 0;
  background-color: #fff !important;
}
/* =========================================================
   ソーシャルリンク（PC用：980px）
   ========================================================= */
.social-links {
  display: grid;
  /* 全体を「4つの均等な枠」として設定 */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 980px; /* 980px以上には広がらない */
  margin: 50px auto 50px auto;
  box-sizing: border-box;
}

/* 小さいバナー（LINE, Instagram）：それぞれ「1枠分」を使う */
.social-links .ssp2 {
  grid-column: span 1; /* ★ここが消えていました */
  display: block;
  height: 100%;
}

/* 大きいバナー（YouTube）：1つで「2枠分」をぶち抜いて使う */
.social-links .ssp1 {
  grid-column: span 2; /* ★ここが消えていました */
  display: block;
  height: 100%;
}

/* 画像の縦横比のズレを吸収して、高さを完璧に揃える */
.social-links img {
  width: 100%;
  height: 100%; /* 修正：auto から 100% に変更 */
  object-fit: cover; /* 追加：比率を保ったまま枠を完全に埋める */
  display: block;
}

/* ホバー時のふんわり透明化 */
.social-links a:hover {
  opacity: 0.7;
  transition: 0.3s;
}

/* =========================================================
     ソーシャルリンク（スマホ用：768px以下）
     ※既存の @media の中に入れてください
     ========================================================= */
@media screen and (max-width: 768px) {
  .social-links {
    /* スマホではベースを「2分割」に変更するだけ！ */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px; /* スマホ時の左右の余白 */
  }
  /* 各列の幅指定（PC基準） */
  .col-rank {
    flex: 0 0 10%;
    text-align: left;
  }
  .col-time {
    flex: 0 0 20%;
    text-align: center;
  }
  .col-name {
    flex: 0 0 20%;
    text-align: center;
  }
  .col-date {
    flex: 0 0 15%;
    text-align: center;
  }
  .col-venue {
    flex: 1;
    text-align: center;
  }
  /* LINEとInstaは自動で1枠ずつ（横並び）になります */
  /* YouTubeバナー（ssp1）はスマホでも「2枠分（全幅）」を使います */
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px auto;
  width: 980px;
}
.action-buttons a {
  display: block;
  background-color: #e5e5e5;
  color: #333;
  text-align: center;
  padding: 10px 0;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;
}
.action-buttons a:hover {
  opacity: 0.5;
}

@media screen and (max-width: 768px) {

  .copybox .copy {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }



  .action-buttons {
    display: block;
    margin: 30px auto;
    width: 100%;
  }
  .action-buttons a {
    display: block;
    margin: 10px auto;
    width: 94%;
  }
}


/* =========================================================
   スマホ用：レスポンシブ設定 (max-width: 768px)
   ========================================================= */
   @media screen and (max-width: 768px) {

    /* 1. 白枠の余白を狭くして、画面幅を有効活用する */
    .whitebox {
      padding: 20px 15px; /* 上下20px、左右15pxに縮小 */
    }
  
    /* 2. テキストサイズの最適化 */
    .copybox .copy {
      font-size: 1.5rem; /* 1.8remから少し縮小 */
      line-height: 1.6;
    }
    .cont02 .txt, 
    .cont03 .txt, 
    .cont04 .txt {
      font-size: 1.4rem;
    }
  
    /* 3. 上下の飾り画像（疑似要素）の高さ調整
       ※画像がスマホ幅に縮むのに合わせて、高さを70pxから縮小します。
       ※実際の画像サイズ（縦横比）に合わせて「30px〜50px」の間で微調整してください。 */
    .cont01::before, .cont01::after, 
    .cont02::before, .cont02::after, 
    .cont03::before, .cont03::after, 
    .cont04::before, .cont04::after {
      height: 40px; 
      margin-top: -10px; /* ::afterのめり込み具合もスマホ用に調整 */
    }
  
    /* 4. Flexboxの縦積み化（横2カラム → 縦1カラム） */
    .cont01 .flexbox00 {
      -webkit-flex-direction: column;
      flex-direction: column;
      gap: 30px; /* 縦に並べた際の要素間の余白 */
    }
    .cont01 .flexbox00 .flexbox00_inn {
      width: 100%; /* 50% → 100%に広げる */
    }
  
    /* 5. 画像・ボタンサイズの拡大とタップ領域の確保 */
    .cont01 .flexbox00 .flexbox00_inn img {
      width: 80%; /* 1カラムになったので画像を少し大きく見せる */
    }
    .cont01 .flexbox00 .flexbox00_inn .btnlink a {
      width: 80%;
      padding: 12px 0; /* 3pxから拡大。スマホで指でタップしやすい高さにする */
      font-size: 1.6rem;
    }
  
    /* 6. 動画・オフィシャルバナーの拡大 */
    .moviebox img,
    .ohhicialbox img {
      width: 90%; /* PC版の50%のままだとスマホでは小さすぎるため拡大 */
    }
    .linkbox {
      padding: 20px 0;
      background-color: #fff !important;
    }
  }