@charset "utf-8";

/* --- 共通 --- */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  height: 100%;
  counter-reset: q-counter 0;
  max-width: 3000px
}



*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- セクションレイアウト --- */
.content {
  max-width: 1500;
  margin: 0 auto;
  padding: 24px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
}

h1, h2, h3, h4 {
  text-align: center;
  margin: 0 0 20px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  color: #1a73e8;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
}


.bu {
  display: block;
  width: fit-content;       /* 内容に合わせる */
  margin: 32px auto;        /* 自動で左右中央寄せ */
  text-align: center;
  font-size: 75px;
  font-weight: 600;
  background: linear-gradient(90deg, #1a73e8 0%, #0073ff 100%);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
}



/* --- フッター --- */
.footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
}

.footer a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 1rem;
  margin: 0 8px;
}

.footer img {
  margin: 12px;
  border-radius: 8px;
}


.nav-left .logo img {
  height: 50px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- SNSアイコン --- */
.social-icons {
  display: flex;
  gap: 10px;
}

.icon-circle img {
  width: 20px;
  height: 20px;
}

.icon-circle:hover {
  background-color: #ddd;
}

.menu a:hover {
  color: #1a73e8;
}

/* --- コンテンツとの重なり対策 --- */
body {
  padding-top: 80px; /* ナビバー分の余白を上にとる */
}

/* --- メニュー（初期非表示） --- */
/*.menu {
  display: block;
  position: static;
  top: 70px; 
  right: 40px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 15px;
}*/

.menu ul {
  display: flex;
  flex-direction: row;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}
/* --- 固定ナビゲーションバー --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #ffffff;
  border-bottom: 2px solid #ffffff; /* 白枠 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-left .logo img {
  height: 50px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* --- SNSアイコン --- */
.social-icons {
  display: flex;
  gap: 10px;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #ffffff; /* 白枠 */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.icon-circle img {
  width: 100%;
  height: 100%;
}

.icon-circle:hover {
  background-color: #f0f0f0;
}

.title{
  font-size: 64px;
  color: #1a73e8;
  font-weight: bold;
}

.menu a:hover {
  color: #1a73e8;
}

.honbun {
  font-size: 24px;
  text-align: center;
}

.rinnku {
  display: block;          /* これ重要！ */
  width: fit-content;      /* テキストに合わせる */
  margin: 0 auto;          /* 中央寄せ */
  font-size: 64px;
  text-align: center;
  color: red;
}


.komi{
  font-size: 40px;
  text-align: center;
  color: #1a73e8;
}

.kako{
  text-align: center;
  font-size: 48px;
}

.fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 3s, transform 3s;
}

.fade.active {
    opacity: 1;
    transform: translateY(0px);
}

.confetti {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  overflow: hidden;
  /* ↓これを追加 */
  pointer-events: none;
}

.fami::before{
  content: "Q" counter(q-counter);
  counter-increment: q-counter;
  color: red;
  padding-right: 8px;
}

.right{
list-style-position: inside; /* ●を文字の内側に */
  text-align: left;           /* 各行を右揃え */
  padding: 0;
  margin: 0;
}

.dive{
  display: flex;
  justify-content: center;
}

.honbu{
  font-size: 42px;
}

iframe{
  display: flex;
  margin: auto;
}

.guest-card {
  display: flex;
  background: #000;       /* 黒背景 */
  padding: 40px;
  border-left: 10px solid #005eff;   /* アクセントカラー */
  align-items: center;
  gap: 40px;
  color: #fff;
  max-width: 1100px;
  margin: 40px auto;
}

.guest-photo img {
  width: 280px;   /* 写真サイズ調整 */
  border-radius: 8px;
}

.guest-info {
  flex: 1;
}

.guest-name {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ffe100;  /* タイトル色（画像のピンクに近い） */
}

.accent-line {
  width: 650px;
  height: 4px;
  background: #005eff;
  margin-bottom: 20px;
}

.guest-text {
  line-height: 1.8;
  font-size: 18px;
}



/* --- レスポンシブ（スマホ・タブレット） --- */
@media (max-width: 768px) {

  /* 全体の調整 */
  html, body {
    width: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
  }

  body {
    padding-top: 60px; /* ナビバーの高さに合わせて調整 */
  }

  .content, section {
    padding: 16px; /* 余白を狭くする */
  }

  /* --- ヘッダー（ナビバー） --- */
  .navbar {
    padding: 0 15px; /* 左右の余白を詰める */
    height: 60px;
  }

  .nav-left .logo img {
    height: 40px; /* ロゴを少し小さく */
  }

  .nav-right {
    gap: 10px; /* アイコン間の隙間を詰める */
  }

  .icon-circle {
    width: 32px;
    height: 32px;
  }

  /* --- フォントサイズの劇的な縮小 --- */
  /* スマホでは75pxなどは大きすぎてはみ出るため調整します */

  h1 {
    font-size: 1.5rem; /* 約24px */
  }

  h2 {
    font-size: 1.25rem; /* 約20px */
  }

  /* グラデーション背景のタイトル (.bu) */
  .bu {
    font-size: 24px;       /* 75px -> 24px */
    padding: 8px 16px;     /* パディングも縮小 */
    width: 90%;            /* 画面幅に収まるように */
    margin: 24px auto;
    border-radius: 8px;
    line-height: 1.4;
  }

  /* メインタイトル (.title) */
  .title {
    font-size: 32px; /* 64px -> 32px */
  }

  /* 本文 (.honbun, .honbu) */
  .honbun, .honbu {
    font-size: 16px; /* 24px/42px -> 16px */
    line-height: 1.6;
    text-align: left; /* スマホは左揃えの方が読みやすい場合が多い（お好みでcenterでも可） */
    padding: 0 10px;
  }

  /* 小見出し (.komi) */
  .komi {
    font-size: 20px; /* 40px -> 20px */
    margin-top: 24px;
    margin-bottom: 12px;
  }

  /* 過去大会 (.kako) */
  .kako {
    font-size: 20px; /* 48px -> 20px */
    word-break: break-all; /* 長いURL等の改行 */
  }

  .menu{
  display: none;
}

  /* リンク (.rinnku) */
  .rinnku {
    font-size: 24px; /* 64px -> 24px */
    width: 100%;
  }

  /* FAQ (.fami, .fan) */
  .fami {
    font-size: 1.2rem;
    text-align: left;
    padding-left: 10px;
    border-left: 5px solid #1a73e8; /* アクセントをつけて見やすく */
    margin-top: 30px;
  }

  .fan {
    font-size: 15px;
    text-align: left;
    padding: 0 10px;
  }

  /* --- YouTube埋め込みのレスポンシブ化 --- */
  iframe {
    width: 100% !important; /* 強制的に幅を100%に */
    height: auto !important;
    aspect-ratio: 16 / 9;   /* アスペクト比を維持 */
  }

  /* --- レイアウト調整 --- */
  .dive {
    flex-direction: column; /* 縦並びにする */
    align-items: center;
  }

  .right {
    text-align: left;
    width: 100%;
    padding: 0 10px;
  }

  .right p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* 画像の調整 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* エペ風ロゴのリンク画像周り */
  div[style="text-align: center;"] img {
    width: 80% !important; /* 50%だと小さすぎるので広げる */
  }

  /* フッター調整 */
  .footer {
    padding: 20px 0;
  }
  
  .footer img {
    width: 100px; /* ロゴサイズ調整 */
    height: auto;
  }

  .guest-card {
    flex-direction: column;   /* 縦並びにする */
    text-align: center;        /* 中央寄せ */
    padding: 20px;
  }

  .guest-photo img {
    width: 60%;               /* 画面に合わせて縮小 */
    max-width: 260px;
  }

  .guest-name {
    font-size: 26px;
  }

  .accent-line {
    margin: 10px auto 20px;   /* 中央に配置 */
    width: 100px;
  }

  .guest-text {
    font-size: 16px;
  }
}


/* ===== さらに小さいスマホ（480px以下） ===== */
@media (max-width: 480px) {
  .guest-photo img {
    width: 80%;
  }

  .guest-name {
    font-size: 22px;
  }

  .guest-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .guest-card {
    padding: 15px;
    gap: 20px;
  }
  }
