/* ==========================================================
   アットウィキ用 プログラミングゼミ（プロゼミ）風CSS（ヘッダー生存版）
   ========================================================== */

/* 全体のフォントと背景（プロゼミ風の薄い水色＋方眼紙模様） */
body, td, th, input, textarea {
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo UI", sans-serif !important;
    background-color: #f2fafc !important;
    background-image: 
        linear-gradient(to right, rgba(79, 195, 247, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 195, 247, 0.1) 1px, transparent 1px) !important;
    background-size: 16px 16px !important;
    color: #333333;
}

/* リンク（プロゼミのブロック風ボタン） */
a:link, a:visited {
    color: #0076ce;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    color: #ff9100;
    text-decoration: none;
}

/* ★左右メニューの「ヘッダー」を消さずに、黒からオレンジ色に塗り替える★ */
#menu_left th, #menu_right th,
.side-title, .plugin_menu_title, .menu-title,
div[id*="menu"] > h3, div[id*="sidebar"] > h3,
div[id*="menu"] > h4, div[id*="sidebar"] > h4 {
    display: block !important; /* しっかり表示させる */
    background: #ff7043 !important; /* 元気なオレンジ色に変更 */
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #d84315 !important; /* 立体感のある下線 */
    border-radius: 12px 12px 0 0 !important;
    padding: 10px !important;
    font-size: 16px !important;
    text-align: center !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
}

/* 左右のメニュー外枠をポップに */
#menu_left, #sidebar_left {
    background: #fffde7 !important;      /* 薄い黄色 */
    border: 4px solid #fff176 !important; /* 黄色の太い枠 */
    border-radius: 16px !important;
    padding: 0 0 15px 0 !important;
    overflow: hidden;
    box-shadow: 0 5px 0px rgba(253, 216, 53, 0.3) !important;
}
#menu_right, #sidebar_right {
    background: #f1f8e9 !important;      /* 薄い黄緑 */
    border: 4px solid #c5e1a5 !important; /* 黄緑の太い枠 */
    border-radius: 16px !important;
    padding: 0 0 15px 0 !important;
    overflow: hidden;
    box-shadow: 0 5px 0px rgba(139, 195, 74, 0.3) !important;
}

/* メニュー内の余白調整 */
#menu_left_inside, #menu_right_inside, .side-body {
    padding: 12px !important;
}

/* 箇条書きの「・」を消し、青い命令ブロックのボタンにする */
div[id*="menu"] ul, div[id*="sidebar"] ul {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
div[id*="menu"] li, div[id*="sidebar"] li {
    margin-bottom: 8px !important;
    background: none !important;
    padding-left: 0 !important;
}
div[id*="menu"] li a, div[id*="sidebar"] li a {
    display: block !important;
    background: #4fc3f7 !important; /* 水色のブロック */
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border-bottom: 3px solid #0288d1 !important; /* ブロックの立体感 */
    font-size: 14px !important;
    transition: transform 0.1s, background-color 0.1s;
}
/* マウスを乗せたらピコッと沈んでオレンジに変わる演出 */
div[id*="menu"] li a:hover, div[id*="sidebar"] li a:hover {
    background: #ffb74d !important; 
    border-bottom: 3px solid #f57c00 !important;
    transform: translateY(2px);
}

/* 中央：メインコンテンツ */
#main {
    background: #ffffff !important;
    border: 4px solid #b3e5fc !important;
    border-radius: 18px !important;
    padding: 25px !important;
    box-shadow: 0 6px 0px rgba(79, 195, 247, 0.15) !important;
}

/* Wikiタイトル周りのライン */
.page-title {
    font-size: 24px !important;
    color: #333333 !important;
    border-bottom: 3px dashed #4fc3f7 !important;
    padding-bottom: 10px !important;
}

/* 中央ページの見出し（h2）を「うごき（青）」ブロック風に */
h2 {
    background: #29b6f6 !important; 
    color: #ffffff !important;
    border-left: 12px solid #0288d1 !important; 
    border-bottom: 5px solid #0288d1 !important;
    border-radius: 10px;
    padding: 10px 15px !important;
    font-size: 18px;
    text-shadow: 1px 1px 0px #01579b;
    margin: 20px 0 !important;
}

/* 次点の見出し（h3）を「イベント（赤）」ブロック風に */
h3 {
    background: #ec407a !important; 
    color: #ffffff !important;
    border-left: 12px solid #c2185b !important;
    border-bottom: 5px solid #c2185b !important;
    border-radius: 10px;
    padding: 8px 12px !important;
    font-size: 16px;
    text-shadow: 1px 1px 0px #880e4f;
    margin: 20px 0 !important;
}

/* 最上部ナビバー */
#atwiki-global-header {
    background: rgba(0, 0, 0, 0.6) !important;
}
