/* ▼▼▼ 全体のベース（白背景＋ドット柄＋ポップなフォント） ▼▼▼ */
body {
    font-family: "Arial Black", Impact, "Hiragino Kaku Gothic StdN", "ヒラギノ角ゴ StdN W8", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff;
    background-image: radial-gradient(#ddd 2px, transparent 2px);
    background-size: 20px 20px;
    background-attachment: fixed;
    color: #333;
    margin: 0; padding: 0;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; }

/* ▼▼▼ ヘッダー ▼▼▼ */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 4px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.team-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ナビボタン */
.nav-btn {
    padding: 10px 20px; border-radius: 50px;
    font-weight: 900; font-size: 0.9rem; letter-spacing: 1px;
    text-transform: uppercase;
    background: #fff; color: #333;
    border: 3px solid #333; box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
.nav-btn:hover {
    transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    background: #fcd116;
}

/* ▼▼▼ ヒーローエリア ▼▼▼ */
.hero { padding: 40px 15px; text-align: center; }
.top-banner {
    max-width: 800px; width: 100%; margin: 0 auto 40px;
    border-radius: 20px; overflow: hidden;
    border: 5px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.top-banner img { width: 100%; display: block; }

/* チーム選択ボタン */
.team-selector { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding-bottom: 40px; }
.big-btn {
    width: 160px; height: 65px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900; border-radius: 15px;
    color: #fff !important;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 4px 4px 0 rgba(0,0,0,0.3);
    box-shadow: 5px 5px 0 #000; border: 3px solid #000; transition: 0.1s;
}
.big-btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #000; }

/* ▼▼▼ 各チーム設定 ▼▼▼ */
.bg-red, .btn-red { background: #ff0000; }
.bg-blue, .btn-blue { background: #00BFFF; }
.bg-yellow, .btn-yellow { background: #FFFF00; }
.bg-green, .btn-green { background: #00FF00; }

.section-red h2, .section-red .team-leader-title { color: #ff0000; }
.border-red { border-color: #ff0000 !important; }
.section-blue h2, .section-blue .team-leader-title { color: #00BFFF; }
.border-blue { border-color: #00BFFF !important; }
.section-yellow h2, .section-yellow .team-leader-title { color: #e6b800; }
.border-yellow { border-color: #FFFF00 !important; }
.section-green h2, .section-green .team-leader-title { color: #00FF00; }
.border-green { border-color: #00FF00 !important; }

/* ▼▼▼ 共通セクション ▼▼▼ */
.team-section {
    padding: 60px 15px; min-height: 100vh;
    background: transparent;
}
.team-header { text-align: center; margin-bottom: 50px; }
.team-header h2 {
    font-size: 3.5rem; font-weight: 900; margin: 0;
    font-style: italic; text-transform: uppercase;
    text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 6px 6px 0 #000;
}
.team-header p { font-size: 1.1rem; color: #333; font-weight: bold; margin-top: 10px; }

/* 団長エリア */
.leaders-section { max-width: 1000px; margin: 30px auto; padding: 0 15px; }
.team-leader-group {
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 50px;
    background: #fff; border: 5px solid #333; box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
}
.team-leader-title {
    font-size: 1.6rem; font-weight: 900; margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 4px 4px 0 rgba(0,0,0,0.2);
}

/* ▼▼▼ メンバーカード ▼▼▼ */
.leader-grid, .member-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px; padding: 10px; justify-content: center;
}

/* スマホ表示（幅600px以下）の調整 */
@media screen and (max-width: 600px) {
    .leader-grid, .member-grid {
        /* 【修正1】カードの最小幅を小さくして、スリムにする */
        grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
        gap: 15px !important;
    }
    .team-leader-group {
        padding: 30px 35px 45px 35px !important;
    }
    /* 【修正2】スマホでの画像サイズを小さくする */
    .member-img {
        width: 100px !important;
        height: 100px !important;
    }
    /* 【修正3】スマホでのフォントサイズを少し小さくする */
    .member-name {
        font-size: 0.9rem !important;
    }
    .stream-btn {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }
}

.member-card {
    text-align: center; background: #fff; border-radius: 20px; padding: 20px 10px;
    border: 4px solid #333;
    box-shadow: 6px 6px 0 #333;
    transition: transform 0.1s; display: flex; flex-direction: column; align-items: center;
}
.section-red .member-card { border-color: #ff0000; box-shadow: 6px 6px 0 #ff0000; }
.section-blue .member-card { border-color: #00BFFF; box-shadow: 6px 6px 0 #00BFFF; }
.section-yellow .member-card { border-color: #FFFF00; box-shadow: 6px 6px 0 #e6b800; }
.section-green .member-card { border-color: #00FF00; box-shadow: 6px 6px 0 #00FF00; }

.member-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,0,0,0.3); }

.member-img {
    /* PCでのデフォルトサイズ */
    width: 120px; height: 120px; margin: 0 auto 15px; border-radius: 50%;
    background: #fff; border: 3px solid #eee; overflow: hidden;
}
.member-img img { width: 100%; height: 100%; object-fit: cover; }

.member-name {
    /* PCでのデフォルトサイズ */
    font-size: 1rem; font-weight: 900; margin: 5px 0 15px; color: #333;
    word-break: break-all;
}

/* 「配信はこちら」ボタン */
.stream-btn {
    display: inline-block; padding: 10px 20px;
    background: #fff; color: #333; font-size: 0.85rem; font-weight: 900; border-radius: 50px;
    text-decoration: none; margin-top: auto;
    border: 3px solid #333; box-shadow: 3px 3px 0 #333; transition: 0.1s;
}
.section-red .stream-btn { border-color: #ff0000; color: #ff0000; box-shadow: 3px 3px 0 #ff0000; }
.section-blue .stream-btn { border-color: #00BFFF; color: #00BFFF; box-shadow: 3px 3px 0 #00BFFF; }
.section-yellow .stream-btn { border-color: #e6b800; color: #e6b800; box-shadow: 3px 3px 0 #e6b800; }
.section-green .stream-btn { border-color: #00FF00; color: #00FF00; box-shadow: 3px 3px 0 #00FF00; }

.stream-btn:hover {
    transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    background: #333; color: #fff;
}
.section-red .stream-btn:hover { background: #ff0000; color: #fff; }
.section-blue .stream-btn:hover { background: #00BFFF; color: #fff; }
.section-yellow .stream-btn:hover { background: #FFFF00; color: #000; }
.section-green .stream-btn:hover { background: #00FF00; color: #fff; }

/* HOMEに戻るボタン */
.home-btn {
    display: inline-block; padding: 12px 30px;
    background: #333; color: #fff !important;
    font-size: 1rem; font-weight: 900; border-radius: 50px;
    text-decoration: none;
    border: 3px solid #333; box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    transition: 0.1s;
}
.home-btn:hover {
    transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
    background: #555;
}

/* フッター */
footer {
    background: transparent;
    color: #888; padding: 30px;
    text-align: center; font-size: 0.8rem; border-top: 4px solid #333;
}