/* ========= 基本スタイル ========= */
body {
    margin: 0;
    background: #111;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

/* ========= ナビバー ========= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #000;
    color: #fff;
}

.logo-img {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo-img img {
    height: 100%;
    width: auto;
}

nav a {
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ff0000;
}

/* ========= ヒーローセクション ========= */
.hero {
    background: url('../header.jpg') no-repeat center center/cover;
    /* 高さを固定せず、中身に合わせて伸びるようにする */
    min-height: 400px; 
    height: auto; 
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box; /* パディングを含めた計算にする */
}

/* 文字に影をつけて視認性をアップ */
.hero-text h1 {
    font-size: 80px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* ボタンの横並び設定 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ボタンの基本スタイル */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px; /* 丸みのあるボタン */
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* サーバーに招待（メインボタン） */
.btn-primary {
    background: #ff0000;
    color: #fff;
    border: 2px solid #ff0000;
}

.btn-primary:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-3px); /* 浮き上がるアニメーション */
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* 機能を見る（サブボタン） */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(5px); /* 背景を少しぼかす（今風） */
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* スマホ用調整 */
@media (max-width: 768px) {
    /* ヒーロー縮小 */
    .hero {
        height: auto !important;     /* 高さを固定せず中身に合わせる */
        min-height: 450px;           /* ボタンが2つ並んでも余裕がある最小高さ */
        padding: 100px 20px 60px;    /* 上下の余白をしっかり取る */
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;      /* パディングを含めて高さを計算 */
    }

    .hero h1 {
        font-size: 32px; /* 少し小さくして読みやすく */
        padding: 10px;
    }

    .hero-buttons {
        margin-top: 30px;            /* 説明文との間に隙間を作る */
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px; /* 広がりすぎないように */
        box-sizing: border-box;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* 画面の外に完全に隠す */
        width: 100%;  /* 画面いっぱいに広げる */
        height: 100vh;
        background: rgba(0, 0, 0, 0.95); /* 少し透ける黒で高級感を出す */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 項目を上下中央に */
        align-items: center;    /* 項目を左右中央に */
        transition: left 0.4s ease;
        z-index: 9999; /* 他の要素より確実に上に持ってくる */
    }

    /* メニュー表示中の位置 */
    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        margin-left: 0 !important; /* PC用のマージンを強制解除 */
        border: none !important;   /* もし線が出ていたら消す */
        padding: 20px;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    /* ハンバーガーボタンも最前面に */
    .hamburger {
        display: block;
        z-index: 10000;
        position: relative;
    }
    
    .features {
        padding: 40px 20px; /* 左右の余白を均等に */
    }

    .feature-grid {
        flex-direction: column;
        align-items: center; /* カードを中央に寄せる */
        gap: 20px;
    }

    .feature {
        width: 100%;       /* 画面幅いっぱいに広げる */
        max-width: 400px;  /* 広がりすぎないように制限（お好みで） */
        box-sizing: border-box; /* パディングを含めて100%にする */
        text-align: left;  /* 文章は左揃えが見やすい */
    }
}

.hero h1 {
    font-size: 80px;
    padding: 20px 40px;
    border-radius: 8px;
    color: #fff;
}

/* ========= 統計エリア ========= */
.stats {
    text-align: center;
    padding: 60px 20px;
    background: #eee;
    color: #000;
}

.stats-box {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 30px;
}

.stat .num {
    font-size: 32px;
    font-weight: bold;
    color: #ff0000;
}

/* ========= 特徴セクション ========= */
.features {
    padding: 60px;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.feature-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.feature {
    width: 30%;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
}

.feature h3 {
    color: #ff3333;
}

/* ========= 利用規約/プライバシーポリシーコンテンツ ========= */
.page-content {
    max-width: 1500px;
    margin: 30px auto;
    padding: 20px 25px;
    line-height: 1.8;
    background: #1a1a1a;
    border-radius: 10px;
}

/* ========= フッター ========= */
footer {
    text-align: center;
    padding: 30px;
    background: #000;
    margin-top: 40px;
}

.footer-links a {
    margin: 0 10px;
    color: #bbb;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* ======================================
   📱 スマホ対応 メディアクエリ
   幅 768px 以下（スマホ）
====================================== */
@media (max-width: 768px) {

    /* ナビバー縦並び */
    .navbar {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 10px;
    }

    nav a {
        margin: 10px 0;
    }

    /* ロゴ縮小 */
    .logo-img {
        height: 40px;
    }

    .logo-img img {
        height: 100%;
    }

    /* ヒーロー縮小 */
    .hero {
        height: 250px;
        padding: 20px;
    }

    .hero h1 {
        font-size: 42px;
        padding: 10px 20px;
    }

    /* 統計エリア縦並び */
    .stats-box {
        flex-direction: column;
        gap: 20px;
    }

    /* 特徴カード縦並び */
    .feature-grid {
        flex-direction: column;
    }

    .feature {
        width: 100%;
    }

    /* page-content 余白最適化 */
    .page-content {
        margin: 15px;
        padding: 15px;
    }
}

/* ======================================
   📱 超小画面（幅480px以下）
====================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    nav a {
        font-size: 14px;
    }

    .features {
        padding: 40px 20px;
    }
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
}

/* メニュー初期状態（PC） */
#nav-menu {
    display: flex;
    align-items: center;
}

/* ================================
   📱 スマホ用ハンバーガー処理
================================ */
@media (max-width: 768px) {

    /* ハンバーガーを表示 */
    .hamburger {
        display: block;
    }

    /* ヘッダーを横並び・中央揃え */
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* ロゴとボタンを両端に飛ばす */
        padding: 10px 5px; /* 左右のパディングを 15px から 5px 程度に減らす */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* ハンバーガーアイコン */
    .hamburger {
        font-size: 28px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-left: auto; /* 左側に大きな空白を作って右に寄せる */
        padding-right: 10px; /* 画面の端に近すぎない程度の微調整 */
        outline: none;
    }
    
    /* スマホメニュー (デフォルトは隠す) */
    .nav-menu {
        position: fixed;
        left: -250px;
        /* ←ここで左側に隠しておく */
        top: 0;
        width: 250px;
        height: 100vh;
        background: #111;
        display: flex;
        flex-direction: column;
        padding-top: 80px;
        transition: left 0.3s ease;
        /* スライドアニメーション */
    }
    
    /* メニュー表示中 */
    .nav-menu.active {
        left: 0;
    }
    
    /* メニュー項目 */
    .nav-menu a {
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-size: 18px;
        border-bottom: 1px solid #222;
    }
    
    /* ホバー */
    .nav-menu a:hover {
        background: #222;
    }
}

/* ========= お知らせページ専用スタイル ========= */

.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #252525; /* ページ背景より少し明るいグレー */
    padding: 10px;
    border-radius: 8px;
    border-left: 5px solid #ff0000; /* Zephyrusカラーのアクセント */
    transition: transform 0.2s ease;
}

.news-item:hover {
    transform: translateX(5px);
    background: #2a2a2a;
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.news-date {
    color: #bbb;
    font-size: 0.9rem;
}

.news-category {
    background: #444;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 「重要」タグだけ色を変える場合 */
.news-category重要 {
    background: #ff0000;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #fff;
}

.news-description {
    margin: 0;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .news-title {
        font-size: 1.2rem;
    }
}

/* ========= お知らせ（アコーディオン形式） ========= */

.news-container {
    max-width: 1500px; /* お知らせは見やすい幅に制限 */
    margin: 0 auto;
}

.news-item {
    background: #1a1a1a;
    border-bottom: 1px solid #333; /* 線で区切るスタイル */
    overflow: hidden;
}

/* クリックする部分 */
.news-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    list-style: none; /* デフォルトの三角を消す */
    transition: background 0.3s;
}

.news-header::-webkit-details-marker {
    display: none; /* Safari用の三角消し */
}

.news-header:hover {
    background: #222;
}

/* 日付とカテゴリ */
.news-date {
    color: #888;
    font-size: 0.9rem;
    min-width: 100px;
}

.news-category, .news-category-important {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 15px;
    white-space: nowrap;
}

.news-category { background: #444; color: #fff; }
.news-category-important { background: #ff0000; color: #fff; }

/* タイトル */
.news-title {
    flex-grow: 1;
    font-size: 1.1rem;
    margin: 0;
    font-weight: normal;
}

/* ＋アイコン */
.icon {
    font-size: 1.2rem;
    color: #ff0000;
    transition: transform 0.3s;
}

/* 開いている時のスタイル */
details[open] .icon {
    transform: rotate(45deg); /* ＋を×に変える */
}

/* 中身のテキスト */
.news-content {
    padding: 0 20px 1px 115px; /* 日付の横に合わせる */
    color: #ccc;
    line-height: 1.8;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .news-header {
        flex-wrap: wrap;
        gap: 5px;
    }
    .news-date { width: 100%; }
    .news-title { width: calc(100% - 30px); font-size: 1rem; }
    .news-content { padding: 10px 20px 20px 20px; }
}

.big-emoji {
    font-size: 120px; /* サイズはお好みで（150pxくらいでもアリ） */
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
    
    /* 浮いているようなアニメーション */
    animation: float 3s ease-in-out infinite;
    
    /* 少し影をつけて立体感を出す */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* スマホでは少し小さくする */
@media (max-width: 480px) {
    .big-emoji {
        font-size: 80px;
    }
}

/* 500系：ブルブル震えるアニメーション（オプション） */
.error-page h1.shake {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, 2px); }
    100% { transform: translate(0, 0); }
}

/* ========= パートナーページ専用スタイル ========= */

.partner-grid {
    display: flex;
    flex-direction: column; /* 縦並びに固定 */
    gap: 30px;              /* カード同士の上下の隙間 */
    max-width: 1500px;       /* 縦並びのときに見やすい横幅に制限 */
    margin: 0 auto;         /* 画面中央に寄せる */
}

.partner-card {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex;          /* カードの「画像」と「テキスト」を横並びにする */
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* パソコンで見たときはロゴを左、テキストを右に */
.partner-img-wrapper {
    background: #111;
    width: 240px;          /* ロゴエリアの横幅を固定 */
    min-width: 240px;      /* 縮まないように固定 */
    height: auto;          /* 高さはテキスト量に合わせる */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #333; /* 境界線を右側に変更 */
    border-bottom: none;
}

.partner-logo {
    max-width: 160px;      /* ロゴが大きくなりすぎないように */
    max-height: 160px;
    object-fit: contain;
    border-radius: 8px;
}

/* ホバーエフェクト（上ではなく、少し右に動くクールな演出） */
.partner-card:hover {
    transform: translateX(5px);
    border-color: #ff0000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.15);
}

/* ======================================
   📱 スマホ対応（画面幅が狭いときは縦に積む）
====================================== */
@media (max-width: 768px) {
    .partner-card {
        flex-direction: column; /* スマホでは画像が上、テキストが下に */
    }
    
    .partner-img-wrapper {
        width: 100%;
        min-width: 100%;
        height: 160px;
        border-right: none;
        border-bottom: 1px solid #333; /* 境界線を下側に戻す */
    }
}

/* カード内のテキストエリア */
.partner-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.partner-name {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: #fff;
}

/* パートナーの種類を表すバッジ */
.partner-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* 各タグの色分け設定 */
.badge-official { 
    background: #ff0000;
    color: #fff; 
} 

.badge-creator { 
    background: #ffaa00;
    color: #000;
} 

.badge-community { 
    background: #5865F2; 
    color: #fff; 
} 

.badge-personal { 
    background: #00bfa5; 
    color: #fff; 
}

.badge-group { 
    background: #9b5de5; 
    color: #fff; 
}

.partner-text {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1; /* テキストの長さが違ってもボタンの位置を揃える */
}

/* リンクボタン */
.partner-link {
    text-align: center;
    background: transparent;
    color: #fff;
    border: 1px solid #ff0000;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s;
}

.partner-link:hover {
    background: #ff0000;
    color: #fff;
}

/* 例：クリエイターカードだけホバー時にオレンジに光らせる場合 */
.partner-card:has(.badge-creator):hover {
    border-color: #ffaa00;
    box-shadow: 0 5px 20px rgba(255, 170, 0, 0.2);
}