@charset "utf-8";

.base_w {
  width: 100%;
  background-color: #fff !important;
  color: #333;
}
.page_title {
  padding: 30px 0;
}
.mt80 {
  margin-top: 80px !important;
}
.bg_black {
  /*  background-image: url("../images/bg.webp");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: cover; */
  background-color: #000;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0 50px 0;
  color: #fff;
}

.mainph01 {
  text-align: center;
  width: 100%;
  max-width: 1920px;
}
.mainph01 img {
  width: 100%;
  height: auto;
}

.contwakubox {
  width: 980px;
  margin: 0 auto;
}
.titimg {
  text-align: center;
  width: 100%;
  margin: 50px 0;
}
.titimg img {
  width: 100%;
}
.cont01 {
  width: 100%;
  margin: 0 0 80px 0;
}
.cont01inn {
  width: 100%;
  padding: 0 0 0 30px;
}
.cont01 h2.cattit {
  text-align: center;
  width: 100%;
  margin: 0 0 20px 0;
}
.cont01 h2.cattit img {
  width: 99%;
}
.cont01 .copy {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cont01 .copy02 {
  font-size: 1.5rem;
  margin: 5px 0 5px 10px;
}
.cont01 .copy03 {
  font-size: 1.5rem;
  margin: 5px 10px 10px 10px;
}
.cont01 .flexbox01 {
  display: grid;
  grid-template-columns: 6fr 4fr;
  width: 100%;
  margin-bottom: 10px;
  gap: 20px;
  box-sizing: border-box;
}
.cont01 .flexbox01 .cont_copy {
}
.cont01 .lilist {
  list-style-type: disc;
  font-size: 1.5rem;
  margin: 0 0 5px 30px;
}

.cont01 .lilist li {
  margin-bottom: 5px;
}

.cont01 .flexbox01 .cont_ph img {
  width: 100%;
}
.cont01 .memo {
  font-size: 1.5rem;
  margin: 5px 0 5px 10px;
}
.cont01 .bnr_linkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 「1fr 1fr」と書いても同じです */
  width: 100%;
  margin: 20px 0 5px 0;
  padding: 10px 20px;
  gap: 50px;
  box-sizing: border-box;
}
.cont01 .bnr_linkbox img {
  width: 100%;
}
.cont01 .bnr_linkbox .more {
  font-size: 1.4rem;
  text-align: right;
}
.cont01 .bnr_linkbox02 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 「1fr 1fr」と書いても同じです */
  width: 100%;
  margin: 30px 0 30px 0;
  padding: 10px 20px;
  gap: 50px;
  box-sizing: border-box;
}
.cont01 .bnr_linkbox02 img {
  width: 100%;
}
.alp50 {
  opacity: 0.5;
}

.notes {
  text-align: center;
  margin: 50px 0;
  font-size: 1.6rem;
}

.ranking-container {
  background: #000;
  color: #fff;
  font-family: sans-serif;
  max-width: 1000px;
  margin: 0 auto;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 15px 0px 5px 0px;
  border-bottom: 1px solid #fff;
}

/* 各列の幅指定（PC基準） */
.col-rank {
  flex: 0 0 10%;
  text-align: left;
}
.col-time {
  flex: 0 0 15%;
  text-align: center;
}
.col-name {
  flex: 0 0 25%;
  text-align: center;
}
.col-date {
  flex: 0 0 20%;
  text-align: center;
}
.col-venue {
  flex: 1;
  text-align: center;
}

/* 上位3位の背景色（画像のデザインを再現） */
.rank-1,
.rank-2,
.rank-3 {
  background-color: rgba(255, 255, 255, 0.1); /* 1-3位の薄い背景 */
}
.rank-3 {
  border-bottom: 2px solid #a00;
} /* 3位の下の赤いライン */

.comingsoon {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 50px 0;
}
.more-link {
  text-align: right;
}

.beadriver {
  text-align: center;
  width: 100%;
}
.beadriver img {
  width: 100%;
}

.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: 0 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: #999;
  color: #fff;
  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 (max-width: 768px) {
  .ranking-item {
    font-size: 1.0rem; /* 全体的にフォントを小さく */
    padding: 10px 2px;
    flex-wrap: wrap; /* 必要に応じて折り返しを許可 */
    letter-spacing: 0.005em;
  }

  /* スマホで「参加会場名」が長すぎる場合は100%幅にして2行目へ送るのもアリ */
  /* もしくは横スクロールを許容するなら親要素に overflow-x: auto; */
}

/* =========================================================
   スマホ用：不足分のレスポンシブ設定 (max-width: 768px)
   ========================================================= */
@media screen and (max-width: 768px) {
  /* 1. 全体コンテナの固定幅解除 */
  .contwakubox {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 2. メインコンテンツ（画像とテキスト）の縦積み化 */
  .cont01 .flexbox01 {
    grid-template-columns: 1fr; /* 6:4を1列に変更 */
    gap: 15px;
  }

  .cont01inn {
    padding: 0; /* 左余白をリセット */
  }

  

  /* 4. リンクバナーの調整 */
  .cont01 .bnr_linkbox,
  .cont01 .bnr_linkbox02 {
    grid-template-columns: 1fr; /* 2列から1列へ */
    gap: 20px;
    padding: 10px 0;
  }

  /* 5. アクションボタン（3カラム → 1カラム） */
  .action-buttons {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 15px;
    margin: 30px auto;
  }

  .action-buttons a {
    font-size: 1.6rem;
    padding: 15px 0;
  }

  /* 6. その他テキストサイズ調整 */
  .notes {
    font-size: 1.4rem;
    padding: 0 10px;
  }

  .comingsoon {
    font-size: 1.6rem;
    margin: 30px 0;
  }

  .cont01 .copy,
  .cont01 .copy02,
  .cont01 .copy03,
  .cont01 .lilist {
    font-size: 1.4rem;
  }
}
