/* 基本スタイルとリセット */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #444950; /* 全体の背景を薄い灰色に */
    color: #ffffff;
}

/* ページ全体のコンテナ */
.page-container {
    display: flex; /* サイドバーとメインコンテンツを横並びにする */
    height: 100%;
}

/* 左側のサイドバー */
.sidebar {
    width: 240px; /* サイドバーの幅を固定 */
    background-color: #343a40; /* サイドバーの背景を濃い灰色に */
    color: #f8f9fa; /* 文字色を明るく */
    padding: 20px;
    box-sizing: border-box; /* paddingを含めて幅を計算 */
    height: 100vh; /* 画面の高さいっぱいに広げる */
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
}

.sidebar-header h2 {
    margin: 0 0 30px 0;
    text-align: center;
    border-bottom: 1px solid #258af0;
    padding-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    display: block;
    color: #dee2e6;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #495057; /* ホバー時やアクティブなメニューの背景色 */
    color: #fff;
}

/* 右側のメインコンテンツ */
.main-content {
    flex: 1; /* 残りの幅をすべて使用 */
    padding: 40px;
    overflow-y: auto; /* コンテンツがはみ出た場合にスクロールバーを表示 */
    height: 100vh;
    box-sizing: border-box;
}

/* ★★★ 変更点 ★★★ */
/* メインコンテンツ内の各セクションのスタイル */
.section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0; /* セクションを区切る線 */
}
.main-content .section:last-child {
    border-bottom: none; /* 最後のセクションの線は消す */
    margin-bottom: 0;
}


/* 見出しスタイル */
header h1 {
    text-align: center;
    color: #237fdb;
    margin: 0 0 30px 0;
}

h2 {
    text-align: center;
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
}

h3 {
    color: #2980b9;
}

/* 機能リスト */
.feature-category ul {
    list-style-type: none;
    padding: 0;
}

.feature-category li {
    background-color: #e9ecef; /* 背景色に合わせて少し調整 */
    border-left: 5px solid #3498db;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
}

/* スライドショー */
.slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    user-select: none;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.prev-btn:hover, .next-btn:hover { background-color: rgba(0,0,0,0.8); }

/* (トップページ用) クイックリンクのスタイル */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.link-card {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, border-color 0.2s;
    display: block;
}
.link-card:hover {
    background-color: #fff;
    border-color: #ccc;
}
.link-card h3 {
    margin-top: 0;
    color: #3498db;
}
.link-card p {
    margin-bottom: 0;
    color: #ffffff;
}
#menu-toggle-btn {
    display: none; /* PCでは非表示 */
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    z-index: 2000; /* 最前面に表示 */
    cursor: pointer;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#menu-toggle-btn span {
    display: block;
    background: #333;
    height: 3px;
    width: 100%;
    margin: 4px auto;
    border-radius: 2px;
}

/* メニュー表示時の背景オーバーレイ */
.overlay {
    display: none; /* PCでは非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}

.overlay.open {
    display: block;
}


/* 画面幅が768px以下の場合に適用されるスタイル */
@media (max-width: 768px) {
    
    #menu-toggle-btn {
        display: block; /* スマホでは表示 */
    }

    .page-container {
        display: block; /* flex解除 */
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        height: 100%;
        z-index: 1000; /* ボタンよりは下、オーバーレイよりは上 */
        transform: translateX(-100%); /* 初期状態では画面の外に隠す */
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.open {
        transform: translateX(0); /* .openクラスが付いたら表示 */
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }
    
    .main-content {
        padding: 20px;
        padding-top: 70px; /* ヘッダーボタンと被らないように調整 */
    }

    /* PC用の見出しは非表示に */
    .main-content > header {
        display: none;
    }

    /* h1,h2のフォントサイズを調整 */
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }

    /* 開発者カードのアイコンサイズ調整 */
    .developer-icon {
        width: 60px;
        height: 60px;
    }
    .developer-name {
        font-size: 1.4em;
    }
}
/* --- トップページ バナー用のスタイル（文字重ねなし版） --- */
.banner-section {
    margin-bottom: 30px; /* バナーと下のテキストとの間隔 */
}



.banner-image-container { /* 新しく追加するスタイル */
    width: 100%;
    height: 250px; /* ★この数値を変更してバナーの高さを調整 */
    display: flex; /* 画像をコンテナ内で中央に配置するため */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* コンテナの境界線を超えた画像を隠す */
    background-color: #f0f2f5; /* 画像の周りに余白ができる場合の背景色 */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.banner-image {
    width: 700px;      /* ★この数値を変更して横幅を固定 */
    max-width: 100%;   /* 画面が狭い時にはみ出さないようにする */
    height: 250px;     
    /*object-fit: fill; */
    display: block;
    margin: 0 auto;    /* ← これが中央揃えの指定 */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* スマートフォン表示時の調整 */
@media (max-width: 768px) {
    .banner-image {
        height: 180px; /* スマホでは少し高さを抑える */
    }
}

.welcome-text {
    text-align: center; /* テキストを中央揃えに */
}

.welcome-text h1 {
    /* ページのメインタイトルとしてスタイルを調整 */
    font-size: 2.2em;
    border: none;
    padding: 0;
    margin-bottom: 15px;
}
.welcome-text p {
    font-size: 1.1em;
    color: #555;
}


/* スマートフォン表示時の調整 */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 1.8em;
    }
}
.invite-links {
    display: flex;
    flex-wrap: wrap; /* スマホでボタンが折り返すように */
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.invite-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;

    border-radius: 8px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.invite-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* BOT招待ボタンの色 */
.bot-invite {
    background-color: #5865F2; 
    color: white; /* Discordのブランドカラー */
}

/* サーバー参加ボタンの色 */
.server-invite {
    background-color: #43b581;
    color: white;  /* Discordの緑色 */
}

.invite-instructions ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}
.invite-instructions li {
    counter-increment: step-counter;
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #5865F2;
    position: relative;
    padding-left: 50px;
    line-height: 1.6;
}
.invite-instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.5em;
    color: #5865F2;
}
.main-content ol {
    color: #333; /* 基本の文字色（濃い灰色） */
}
/* --- 寄付ページのスタイル (追記) --- */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.donation-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.donation-card h3 {
    margin-top: 0;
    text-align: center;
}
.donation-card p {
    flex-grow: 1; /* pタグが余白を埋めるようにする */
    color: rgb(88, 96, 110);
}
.donation-card .donate-button {
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    background-color: rgb(77, 139, 255);
    margin-top: 10px;
    transition: background-color 0.2s;
}
.donation-card .donate-button:hover {
    opacity: 0.9;
}
.donation-card .small-plan { background-color: #1abc9c; }
.donation-card .large-plan { background-color: #3498db; }
.donation-card .fa-solid { margin-right: 8px; }

/* 特典セクション */
.benefits-section ul {
    list-style: none;
    padding: 0;
}
.benefits-section li {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid #ccc;
}
.benefit-badge {
    display: inline-block;
    font-size: 0.8em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px;
    color: white;
}
.benefit-badge.all-supporters { background-color: #95a5a6; } /* 灰色 */
.benefit-badge.one-time { background-color: #3498db; } /* 青色 */
.benefit-badge.subs { background-color: #f1c40f; color: #333; } /* 黄色 */
.section.benefits-section li{
    color:  rgb(88, 96, 110);
}
.main-content a {
    color: #3498db; /* 文字色（明るい青） */
    text-decoration: underline; /* 下線あり */
    transition: color 0.2s;
}

/* 一度訪れたことがあるリンク */
.main-content a:visited {
    color: #8e44ad; /* 文字色（紫色） */
}

/* マウスカーソルを乗せたとき */
.main-content a:hover {
    color: #2980b9; /* 文字色（少し濃い青） */
    text-decoration: none; /* 下線を消す */
}
