/* =========================
   ヘッダー
========================= */

.navbar {
    position: static !important;
    background-color: #0a1a3a !important;
    margin: 0 !important;
}

.navbar .navbar-nav > li > a {
    color: #ffffff !important;
}

.navbar .navbar-nav > li > a:hover {
    color: #ffcccc !important;
}

.navbar-brand,
.navbar-brand a {
    color: #ffffff !important;
}

.navbar-collapse {
    background-color: #0a1a3a !important;
}

/* =========================
   背景
========================= */

html {
    background-color: #0a1a3a !important;
}

body {
    background-color: #0a1a3a !important;
}

.wrapper {
    background-color: #0a1a3a !important;
}

.main,
.section,
.container {
    background-color: #5a0000 !important;
}

/* =========================
   共通セクション
========================= */
.wp-block-group {
    padding: 60px 20px;
}


/* =========================
   NEWS（トップ）
========================= */
.home .wp-block-latest-posts {
    max-width: 650px;
    margin: 0 auto;
}

.home .wp-block-latest-posts li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-left: 4px solid #0a1a3a;
    padding-left: 15px;
}

.home .wp-block-latest-posts time {
    min-width: 110px;
    color: #cccccc;
    font-size: 13px;
}

.home .wp-block-latest-posts a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
}

.home .wp-block-latest-posts a:hover {
    color: #dddddd;
}


/* =========================
   NEWSページ
========================= */
.page-id-91 .wp-block-latest-posts {
    max-width: 650px;
    margin: 0 auto;
    background: transparent;
}

.page-id-91 .wp-block-latest-posts li {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-left: 4px solid #0a1a3a;
    padding-left: 15px;
}

.page-id-91 .wp-block-latest-posts a {
    color: #ffffff;
}

.page-id-91 .wp-block-latest-posts a:hover {
    color: #dddddd;
}


/* =========================
   GOODS（ID:92）
========================= */

.page-id-92 {
    color: #ffffff;
}

.page-id-92 .wp-block-columns {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.page-id-92 .wp-block-column {
    flex: 0 0 280px;
    text-align: center;
}

.page-id-92 .wp-block-button__link {
    background-color: #0a1a3a;
    color: #ffffff;
}


/* =========================
   メンバー（ID:1001）
========================= */

.page-id-1001 .wp-block-columns {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-id-1001 .wp-block-column {
    background-color: #ffffff;
    border: 3px solid #0a1a3a;
    border-radius: 16px;
    padding: 20px;
    flex: 0 0 280px;
    height: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-id-1001 .wp-block-column img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 18px;
}

.page-id-1001 .wp-block-column h1,
.page-id-1001 .wp-block-column h2,
.page-id-1001 .wp-block-column h3 {
    color: #0a1a3a;
    font-size: 18px;
    margin: 0 0 6px;
}

.page-id-1001 .wp-block-column p {
    color: #555;
    font-size: 13px;
    margin: 0;
}
/* ページの一番外側まで紺にする（最終解決） */
html {
    background-color: #0a1a3a !important;
}

.navbar .container,.nav.navbar .container-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* ヘッダーを一番上に固定（空白の原因を消す） */
header,
.navbar-wrapper,
.site-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ヘッダーと次の要素の隙間も消す */
.navbar {
    margin-bottom: 0 !important;
}
/* タイトルブロックの上の余白を消す（本命） */
.page-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* タイトル系すべての上余白を消す */
.page-header,
.page-title,
section.page-header,
section.page-title,
.hero,
.hero-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* すべてのタイトルエリアの上余白を潰す */
.page-header,
.page-title,
.entry-header,
.hero,
.hero-wrap,
.title-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================
   共通セクション
========================= */
.wp-block-group {
    padding: 60px 20px;
}


/* =========================
   NEWS（トップ）
========================= */
.home .wp-block-latest-posts {
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
}

.home .wp-block-latest-posts li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-left: 4px solid #0a1a3a;
    padding-left: 15px;
}

.home .wp-block-latest-posts time {
    min-width: 110px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
}

.home .wp-block-latest-posts a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.home .wp-block-latest-posts a:hover {
    color: #dddddd;
}

.home h2 {
    color: #ffffff;
    letter-spacing: 3px;
    font-weight: 700;
}


/* =========================
   NEWSページ（ID:91）
========================= */
.page-id-91 .wp-block-latest-posts {
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 10px;
}

.page-id-91 .wp-block-latest-posts li {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.page-id-91 .wp-block-latest-posts time {
    min-width: 120px;
    font-weight: bold;
}

.page-id-91 .wp-block-latest-posts a {
    color: #000;
}

.page-id-91 .wp-block-latest-posts a:hover {
    color: #5a0000;
}



/* =========================
   GOODS（ID:92）
========================= */

.page-id-92 .main,
.page-id-92 .section,
.page-id-92 .container {
    background-color: transparent !important;
}

.page-id-92 {
    color: #ffffff;
}

.page-id-92 h1,
.page-id-92 h2,
.page-id-92 h3 {
    text-align: center;
}

.page-id-92 img {
    max-width: 300px;
    border-radius: 12px;
}

/* カラム */
.page-id-92 .wp-block-columns.is-layout-flex {
    display: flex !important;
    justify-content: center;
    gap: 30px !important;
    max-width: 1200px;
    margin: 40px auto;
}

.page-id-92 .wp-block-column {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    text-align: center;
}

/* ボタン */
.page-id-92 .wp-block-buttons {
    display: flex;
    justify-content: center;
  
}
.page-id-92 .wp-block-button__link {
    background-color: #0a1a3a;  /* 紺 */
    color: #ffffff;             /* 白文字 */
}
``

/* 説明文 */
.page-id-92 .goods-section {
    max-width: 700px;
    margin: 60px auto;
}

.page-id-92 .goods-section p {
    text-align: left;
    line-height: 1.9;
}

/* =========================
   メンバー（ID:1001）
========================= */

/* 背景そのまま */
.page-id-1001 .main,
.page-id-1001 .section,
.page-id-1001 .container {
    background-color: transparent !important;
}

/* 学年タイトル */
.page-id-1001 h2,
.page-id-1001 h3 {
    color: #ffffff !important;
}

/* ===== カラム（横幅広げる） ===== */
.page-id-1001 .wp-block-columns {
    display: flex !important;
    justify-content: center !important;
    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
}
.page-id-1001 h2 {
    position: relative;
    left: -60px;
}
/* =========================
   カード（正方形＆安定版）
========================= */
.page-id-1001 .wp-block-column {
    background-color: #ffffff !important;
    border: 3px solid #0a1a3a !important;
    border-radius: 16px !important;
    padding: 20px !important;
    text-align: center !important;

    flex: 0 0 280px !important;   /* ←幅の支配 */
    max-width: 280px !important;

    height: 280px !important;     /* ←高さ固定で正方形 */

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* =========================
   写真（丸＋間隔）
========================= */
.page-id-1001 .wp-block-column img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 12px !important;  /* ←ここ変更（四角にする） */
    object-fit: cover !important;

    margin-bottom: 18px !important;  /* ←これが今回の本命 */
}

/* =========================
   名前
========================= */
.page-id-1001 .wp-block-column h1,
.page-id-1001 .wp-block-column h2,
.page-id-1001 .wp-block-column h3 {
    color: #0a1a3a !important;
    font-size: 18px !important;

    margin: 0 0 6px 0 !important;  /* ←ここも微調整 */
}

/* =========================
   テキスト
========================= */
.page-id-1001 .wp-block-column p {
    color: #555555 !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.page-id-1001 .wp-block-columns {
    margin-bottom: 20px;  /* ←これで縦の間隔を横と揃える */
}

/* =========================
   全ページ共通（背景＆文字）
========================= */

/* 背景えんじ */
body,
.wrapper {
    background-color: #5a0000 !important;
}

/* 白いコンテナを透明に */
.main,
.section,
.container {
    background-color: transparent !important;
}

/* 文字を白に */
body,
h1, h2, h3, p {
    color: #ffffff;
}


/* =========================
   NEWSページ（トップと同じデザイン）
========================= */

/* 全体 */
.page-id-91 .wp-block-latest-posts {
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
    background: transparent; /* ←白消す */
}

/* 各行 */
.page-id-91 .wp-block-latest-posts li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 12px 0;
    margin-bottom: 10px;

    border-bottom: 1px solid rgba(255,255,255,0.3);
    border-left: 4px solid #0a1a3a; /* ←これが左の線 */
    padding-left: 15px;
}

/* 日付 */
.page-id-91 .wp-block-latest-posts time {
    min-width: 110px;
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
}

/* タイトル */
.page-id-91 .wp-block-latest-posts a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* ホバー */
.page-id-91 .wp-block-latest-posts a:hover {
    color: #dddddd;
}


/* スライダーを中央＋幅制限 */
.n2-ss-slider {
    max-width: 1000px;  /* ←ここでサイズ調整 */
    margin: 0 auto;     /* ←中央 */
}

/* スライダー下の余白 */
.n2-ss-slider {
    margin-bottom: 50px;  /* ←ここ調整ポイント */
}
``

/* ページタイトル（HOME部分）の下に余白 */
.page .section {
    margin-bottom: 40px;
}

/* タイトルエリアの下余白 */
.page-header {
    margin-bottom: 50px;
}

.n2-ss-slider {
    margin-top: 20px;
}

/* コンテンツのズレ修正 */
.main,
.section,
.container {
    margin-top: 0 !important;
    transform: none !important;
}

/* フッター下の変な余白防止（背景だけ） */
body {
    background-color: #0a1a3a !important;
}

/* タイトルエリアを一番前に出す */
.page-header {
    position: relative;
    z-index: 5;
}

/* 上の余計な背景を消す */
.page-header::before {
    display: none !important;
}

/* =========================/* =========================り完全解除（最重要）
========================= */

/* メインコンテンツの持ち上げを完全解除 */
.main,
.section,
.container {
    margin-top: 0 !important;
    transform: none !important;
}

/* タイトルとコンテンツを普通の流れに戻す */
.page-header {
    position: relative !important;
    z-index: 10;
}

/* スライダーも通常フローに */
.n2-ss-slider {
    position: relative !important;
    z-index: 1 !important;
}
``
/* タイトルのパララックス無効化 */
.page-header {
    background-attachment: scroll !important;
}
.page-header,
.page-header * {
    transform: none !important;
}
.n2-ss-slider {
    transition: 0.3s;
}

.page-header {
    min-height: 500px !important;
}
.page-header .title,
.page-header h1 {
    position: relative;
    top: 40px;
}

/* =========================
   CONTACT
========================= */

/* フォーム全体 */
.wpcf7 {
    max-width: 800px;
    margin: 70px auto 0 !important;
}

/* 説明文 */
.contact-message {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
    color: #ffffff;
}

/* ラベル */
.wpcf7 label {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 入力欄共通 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;

    background-color: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;

    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;

    padding: 15px !important;

    margin-top: 10px;
    margin-bottom: 25px;

    font-size: 16px;
    transition: 0.3s;
}

/* 入力中 */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    background-color: #0a1a3a !important;
    color: #ffffff !important;

    border: 1px solid #ffffff !important;
    outline: none !important;
}

/* お問い合わせ内容 */
.wpcf7 textarea {
    min-height: 180px !important;
    resize: vertical;
}

/* フォーム本体 */
.wpcf7 form {
    text-align: left;
}

/* 送信ボタン */
.wpcf7 .wpcf7-submit {
    display: block;
    margin: 0 auto;

    background-color: #0a1a3a !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 999px !important;

    padding: 18px 50px !important;

    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;

    cursor: pointer;
    transition: 0.3s;
}

/* ホバー */
.wpcf7 .wpcf7-submit:hover {
    opacity: 0.9;
}
.single-post .author {
    display: none !important;
}
/* 投稿メタ情報 */
.entry-meta {
    text-align: center;
    color: #ffffff;
}

/* 日付だけ表示 */
.single-post .posted-on,
.single-post .entry-date,
.single-post time {
    display: block !important;
    color: #ffffff !important;
    font-size: 18px !important;
    text-align: center !important;
    margin-top: 15px;
}

.single-post .entry-meta {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.about-willaws .wp-block-buttons {
    justify-content: center;
}


/* =========================
   NEXT GAME
========================= */

.next-game-card {
    max-width: 700px;
    margin: 60px auto;

    padding: 50px 30px;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;

    text-align: center;

    color: #ffffff;
}

.next-game-card h2 {
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 2px;
}

.next-game-card .competition {
    font-size: 18px;
    margin-bottom: 25px;
}

.next-game-card .vs {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 25px;
}

.next-game-card .date {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.next-game-card .place {
    font-size: 18px;
    line-height: 1.8;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1024px) {

    /* 横スクロール防止 */
    html,
    body {
        overflow-x: hidden;
    }

    /* 画像 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* タイトル背景 */
    .page-header {
        min-height: 250px !important;
    }

    /* タイトル */
    .page-header h1 {
        font-size: 28px !important;
        text-align: center !important;
        margin-top: -55px !important;
    }

    /* ロゴ */
    .navbar-brand img {
        max-height: 30px !important;
        width: auto !important;
    }

    /* サイト名 */
    .navbar-brand {
        font-size: 14px !important;
    }

    /* ABOUT */
    .about-willaws {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* NEXT GAME */
    .next-game-card {
        margin: 40px 15px !important;
        padding: 30px 20px !important;
    }

    .next-game-card .vs {
        font-size: 24px !important;
    }

    /* MEMBERS */
    .page-id-1001 h2,
    .page-id-1001 h3 {
        text-align: center !important;
        left: 0 !important;
        position: static !important;
    }

    .page-id-1001 .wp-block-column {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}



@media (max-width: 1024px) {

    .navbar-toggle {
        display: block !important;
    }

    #main-navigation {
        display: none !important;
    }

    #main-navigation.in,
    #main-navigation.collapse.in {
        display: block !important;
    }

}
@media (max-width: 1024px) {

    .navbar-header {
        width: 100%;
;        display: flex;
        margin-left: auto !important;
        float: none !important;
    }

}
        justify-content: space-between;
        align-items: center;
    }

    .navbar-toggle {
