/* =========================
   フォント
========================= */

*{
    box-sizing:border-box;
}

body{
  background-image:url("img/bg.png");
  background-repeat:repeat;
  background-size:auto;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.news{
    background:#888;
    padding:30px;
    border-radius:20px;
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
}


/* =========================
   全体幅（中央揃え）
========================= */
.main-layout{
  max-width:1200px;
  margin:0 auto;
}


/* =========================
   ▼ ヘッダーメニュー（これが本体）
========================= */
.header-menu{
  max-width:1200px;
  margin:10px 0 5px 0;
  padding:20px 0;
  font-size: 24px;

  display:flex;
  justify-content:flex-start; /* NEWSと左端揃え */
  gap:30px;
  padding-bottom :0px;
  border-bottom:1px solid #000; /* 全体下線 */
  width:100%;
  max-width:1200px;
  margin:30px auto;
  line-height: 1.2;
}

/* リンク装飾 */
.header-menu a{
  text-decoration:none !important; /* 個別下線消す */
  color:#000;
  font-weight: bold;

  text-shadow:
    -2px -2px 0 #fff,
     2px -2px 0 #fff,
    -2px  2px 0 #fff,
     2px  2px 0 #fff;
}

.header-menu a:hover{
  color:#2a7;
}


/* =========================
   NEWS
========================= */
.news{

  width:100%;
  max-width:1200px;
  margin:30px auto;
  background:#888;
  color:#fff;
  text-align:center;
  padding:20px;
  border-radius:10px;
}


/* =========================
   ▼ 3カラム（安定）
========================= */
.content-area{
  display:flex;
  align-items:flex-start;
  gap:30px;
  width:100%;
}


/* =========================
   左：ロゴ
========================= */
.side-logos{
  width:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:30px;
  flex-shrink:0;
}

.side-logos img{
  width:110px;
  height:110px;
  object-fit:contain;
}


/* =========================
   中央：YouTube
========================= */
.youtube-grid{
  flex:1;
  min-width:0; /* ←崩れ防止 */
  display:grid;
  grid-template-columns:repeat(3, 280px);
  gap:15px;
}

.youtube-grid iframe{
  width:100%;
  max-height: 160px;
  aspect-ratio:16/9;
  border:none;
}

.youtube-grid video:first-child,
.youtube-grid iframe:first-child{
  grid-column: span 3;
}

/* =========================
   右：X
========================= */

.x-box{
  width:320px;
  height: 690px;
  max-width:500px;
  min-width:200px;  /* ←これ追加 */
  min-height:600px;

  border:3px solid #888;
  border-radius:10px;
  background:#f5f5f5;

  padding:20px;
}

.x-inner{
  border:2px dashed #aaa;
  padding:10px;
  border-radius:10px;

  min-height:300px;   /* ←追加 */
}


/* =========================
   既存UI（維持）
========================= */
.team-row{
  display:flex;
  gap:60px;
  margin-left:70px;
}

.team-row img{
  width:204px;
  border-radius:50%;
  cursor:pointer;
}


/* =========================
   ポップアップ（維持）
========================= */
#team-popup{
  display:none;
  position:absolute;
  background:#fff;
  border:3px solid #333;
  border-radius:12px;
  padding:20px;
  width:300px;
  z-index:9999;
}

.popup-close{
  position:absolute;
  top:5px;
  right:10px;
  cursor:pointer;
}

#team-popup::after{
  content:"";
  position:absolute;
  bottom:-20px;
  left:50%;
  transform:translateX(-50%);
  border-width:10px;
  border-style:solid;
  border-color:#fff transparent transparent transparent;
}

#team-popup::before{
  content:"";
  position:absolute;
  bottom:-24px;
  left:50%;
  transform:translateX(-50%);
  border-width:12px;
  border-style:solid;
  border-color:#333 transparent transparent transparent;
}


/* =========================
   footer
========================= */
footer{
  margin-top:40px;
  text-align:center;
}

/* =========================
   ハンバーガー（デフォルト非表示）
========================= */
.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
    text-align:center;
    padding:10px 0;
}

.league-side-logo{
    display:none;
}

.wp-block-image{
  text-align:center;
}

/* =========================
   リンクページ
========================= */

.link-wrap{
  width:1000px;
  margin:50px auto;
  text-align:center;
}

/* タイトル */
.link-wrap h1{
  font-size:32px;
  margin-bottom:30px;
}

/* リンクボタン */
.member-profile{
  display:block;
  width:500px;
  margin:10px auto;
  padding:12px;

  background:#fff;
  border:2px solid #333;
  border-radius:10px;

  text-decoration:none;
  color:#000;
  font-weight:bold;

  transition:0.2s;
}

/* ホバー */
.member-profile:hover{
  background:#f0f0f0;
  transform:scale(1.03);
}

.container h2{
  text-align:center;
  font-size: 32px !important;
   margin-top:40px !important;
}


.link-row{
  display:flex;
  align-items:center;
  border:1px solid #333;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:12px;
  background:#fff;
}

.link-name{
  flex:1;
  padding:12px;
  background:#eee;
  font-weight:bold;
}

.link-btn{
  width:60px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-left:1px solid #333;
  text-decoration:none;
  color:#000;
}

.link-btn i{
  font-size:18px;
}

/* 色分け（これが気持ちいい） */
.link-btn.x{
  color:#000;
}

.link-btn.youtube{
  color:#ff0000;
}

.link-btn.hp{
  color:#333;
}

.link-btn:hover{
  background:#ddd;
}
/* =========================
   スマホ（520px以下）
========================= */
@media (max-width: 520px){

    .menu-toggle{
        display:block;
    }

    .header-menu{
        display:none; /* ←最初は閉じる */
        flex-direction:column;
        align-items:center;
        gap:10px;
        font-size:18px;
        border-bottom:none;
    }

    .header-menu.active{
        display:flex; /* ←開いた状態 */
    }

    .header-menu a{
        transition:none !important; /* ←ここに入れる */
        display:block;
        width:100%;
        text-align:center;
        padding:10px 0;
        border-bottom:1px solid #ccc;
    }

    .news-area{
        width:100%;
        max-width:520px;
        margin:0 auto;
        padding:0 10px; /* ←左右の余白 */
        box-sizing:border-box;
    }

    /* 中の要素もはみ出させない */
    .news-area *{
        max-width:100%;
    }

    /* iframe対策（YouTubeやX） */
    iframe{
        width:100% !important;
        height:auto;
    }

        .league-side-logo{
        display:flex;
        position:absolute;
        left:5px;
        top:180px;
        flex-direction:column;
        gap:15px;
    }

        .league-side-logo{
        display:flex;
        position:absolute;
        left:5px;
        top:310px;
        flex-direction:column;
        gap:12px;
    }

    .league-side-logo img{
        width:60px;
    }

    .side-logos {
        display:none; /* ←大きいロゴを消す */
    }

        /* 親を縦並びにする */

        /* 親を縦並びにする */

    .content-area{
        display:flex;
        flex-direction:column;
    }

    /* 順番 */
    .x-box{
        order:1; /* Xを一番上（NEWSの下） */
    }

    .youtube-grid{
        order:2; /* YouTubeをその下 */
    }

    .x-box{
      width:100%;
      margin:0 auto;     /* ←中央にする */
      padding:0 10px;    /* ←左右余白で調整 */
      /* min-height:140px; 
      max-height:160px;   */
      height: 150px;
      box-sizing:border-box;
    }

    .youtube-grid{
        display:flex !important;
        flex-direction:column;
        gap:10px;
        margin-left:50px; /* ←ロゴ回避（重要） */
        width:95%;
        margin:0 auto;
        margin-bottom: 20px;
    }

   
    .youtube-grid iframe{
        width:100% !important;
        height:180px; /* ←見やすいサイズ */
        margin-bottom: 10px;
    }

    .content-area{
        width:100%;
        padding:0 10px;
        box-sizing:border-box;
    }

    /* 見出し */
    .content-area h1{
        font-size:20px;
        line-height:1.4;
    }

    /* 本文 */
    .content-area p{
        font-size:14px;
        line-height:1.6;
    }

    /* 各ボックス */
    .note-style-yellow,
    .note-style-red,
    .note-style-blue{
        padding:15px;
        margin-bottom:15px;
        border-radius:10px;
    }

    .league-row{
        display:block; /* 横並び解除 */
        margin:20px 0;
    }

    .league-logo{
        text-align:center;
        margin-bottom:15px;
    }

    .league-logo img{
        width:80px;
    }

      .link-wrap{
    width:100%;
    padding:0 10px;
    text-align:center;
  }

  .member-profile{
    width:100%;
    max-width:320px;
    margin:10px auto;
  }

}
  