@charset "utf-8";

/* ==========================================================
   PukiWiki 1.5.4 決定版CSS (フロート式・SEO最適化 ＆ 2カラム左メニュー)
   ========================================================== */

/* 基本設定 */
body, td {
    color: black;
    background-color: white;
    font-size: 98%;
    font-family: verdana, arial, helvetica, sans-serif;
}

body {
    text-align: left;
}

#container {
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* リンク */
a:link { color: #215dc6; text-decoration: none; }
a:visited { color: #0022bb; text-decoration: none; }
a:hover { color: #215dc6; background-color: #CCDDEE; text-decoration: underline; }
a:active { color: #215dc6; background-color: #CCDDEE; text-decoration: none; }

/* ヘッダー・ロゴ */
#header {
    padding: 0px;
    margin: 0px;
    position: relative;
}

img#logo {
    display: block;
    float: left;
    margin: 6px 14px 6px 0;
    padding: 0;
}

#header h1.title {
    font-size: 140%;
    padding: 8px 0 0;
    margin: 12px 0 4px;
    font-weight: bold;
}

#header h1.title a {
    color: #215dc6;
    text-decoration: none;
}

/* ==========================================================
   h1タイトル内のリンクだけはホバー時の背景色や下線を無効化する
   ========================================================== */
#header h1.title a:hover,
#header h1.title a:active {
    background-color: transparent !important;
    text-decoration: none !important;
}


/* ナビゲーションバー (ボタン風デザイン) */
#navigator {
    clear: both;
    padding: 8px 0px 0px 0px;
    margin: 0 0 10px;
    font-size: 96%;
}

#navigator ul.test {
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
}

#navigator ul.test li {
    display: inline-block;
    margin: 0 5px 0 0;
    padding: 0;
}

#navigator ul.test li a,
#navigator a {
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #888;
    border-bottom-color: #b3b3b3;
    background: #f5f5f5;
    background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    text-decoration: none;
}

#navigator ul.test li a.bgcolor {
    color: #fff;
    background-color: #6bba70;
    background-image: -webkit-linear-gradient(top, #6bba70, #6bba70);
    border-color: #888;
}

/* ==========================================================
   レイアウト構造（フロートによる2カラム制御）
   ========================================================== */
#contents {
    width: 100%;
    margin-bottom: 2em;
    overflow: hidden;
}

#body {
    float: right;
    width: calc(100% - 280px);
    padding: 0 0 0 10px;
    margin: 0;
    min-width: 0;
}

#menubar {
    float: left;
    width: 260px;
    background-color: #FFF;
    padding: 0;
    word-break: break-all;
}

#menubar2 {
    float: left;
    clear: left;
    width: 260px;
    background-color: #FFF;
    margin-top: 1.5em;
    padding: 0;
    word-break: break-all;
}

div#menubar ul, div#menubar2 ul {
    margin: 0px 0px 0px 12px;
    padding: 0em 0em 0em 1em;
    list-style-type: none;
}

div#menubar ul li, div#menubar2 ul li {
    margin: 0 0 0 -17px;
    padding: 0 0 2px 17px;
    background-image: url("https://wikisp.com/images/ico1.jpg");
    background-repeat: no-repeat;
    background-position: 0 5px;
}

#menubar table {
    width: 100%;
}


div#note { clear: both; padding: 0px; margin: 0px; }
div#attach { clear: both; padding: 0px; margin: 0px; }
div#toolbar { clear: both; padding: 0px; margin: 0px; text-align: right; }

#footer {
    font-size: 84%;
    padding: 0px;
    margin: 16px 0px 0px 0px;
    clear: both;
}

#footer p {
    margin: 0 0px 14px;
    padding: 0;
    background-color: #fff;
    line-height: 1.6em;
}

.clear { clear: both; margin: 0px; }

/* Table Styling */
table.style_table, 
div.body table, 
#body table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 16px 0;
    font-size: 95%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

table.style_table th, 
table.style_table td,
div.body table th, 
div.body table td,
#body table th, 
#body table td {
    padding: 8px 12px;
    border: 1px solid #dcdcdc;
    line-height: 1.4;
    text-align: left;
}

table.style_table th,
thead th,
div.body table th,
#body table th {
    background-color: #f2f6fc;
    color: #333333;
    font-weight: bold;
    border-bottom: 2px solid #b0c4de;
}

table.style_table tr:nth-child(even) td,
div.body table tr:nth-child(even) td,
#body table tr:nth-child(even) td {
    background-color: #fafafa;
}

table.style_table tr:nth-child(odd) td,
div.body table tr:nth-child(odd) td,
#body table tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* TOC */
table.toc {
    width: 50%;
    border: 1px solid #b0c4de !important;
    border-radius: 6px;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
    overflow: hidden;
}

table.toc td.toctitle {
    background-color: #f2f6fc;
    color: #1a365d;
    padding: 10px 14px;
    font-weight: bold;
    font-size: 105%;
    border-bottom: 2px solid #b0c4de;
}

table.toc td.toclist {
    padding: 14px 18px;
    background-color: #ffffff;
}

ul.contents {
    margin: 0 !important;
    padding: 0 0 0 1.2em !important;
    list-style-type: disc !important;
}

ul.contents li {
    margin: 6px 0 !important;
    padding: 0 !important;
    background-image: none !important;
}

ul.contents li a {
    color: #215dc6;
    text-decoration: none;
}

/* Body Lists & Headings */
#body ul, div.body ul {
    margin: 0.8em 0;
    padding-left: 1.8em;
    line-height: 1.7;
    list-style-type: disc;
}

#body ul li, div.body ul li {
    margin-bottom: 0.4em;
    background-image: none !important;
    padding-left: 0 !important;
}

/* ネストされた箇条書き（2階層目以降）を見やすく */
#body ul ul, div.body ul ul {
 margin: 0.3em 0;
 list-style-type: circle;
}
#body ul ul ul, div.body ul ul ul {
 list-style-type: square;
}

/* 2. メインボディ h2タグ（大見出し：非常にリッチで視認性の高いデザイン） */

#body h2, div.body h2 {
    color: #1a365d;
    background: linear-gradient(to right, #f2f6fc, #ffffff);
    padding: 0.5em 0.8em;
    margin: 1.2em 0 0.8em 0;
    border-left: 6px solid #215dc6;
    border-bottom: 0px solid #b0c4de;
    border-radius: 0 4px 4px 0;
    font-size: 118%;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 3. メインボディ h3タグ（中見出し：h2との違いを明確にするグリーンアクセント等） */

#body h3, div.body h3 {
    color: #2c3e50;
    background-color: #ffffff;
    padding: 0.4em 0.7em;
    margin: 0.6em 0 0.6em 0;
    border-bottom: 1px dashed #b0c4de;
    font-size: 108%;
    font-weight: bold;
}

/* 4. メニューバー h4タグ（サイドバーのカテゴリ見出し：引き締まったボックス風） */
#menubar h2, #menubar2 h2, #menubar h3, #menubar2 h3, #menubar h4, #menubar2 h4, #menubar h6, #menubar2 h6 {
 font-size: 96%;
 color: #1a365d;
 padding: 7px 10px;
 margin: 1.4em 0 0.5em 0;
 background-color: #ffffff;
 border-left: 0px solid #215dc6;
 border-top: 0px solid #dcdcdc;
 border-right: 0px solid #dcdcdc;
 border-bottom: 1px solid #dcdcdc;
 border-radius: 0 4px 4px 0;
 font-weight: bold;
}



/* ==========================================================
 ShowRSS2 (関連ニュース・新着情報) 攻略サイト風カスタムデザイン
 ========================================================== */
/* 1. RSS全体のコンテナ（ボックス化してすっきり見せる） */
div.small {
 background-color: #ffffff;
 border: 0px solid #b0c4de;
 border-radius: 6px;
 padding: 14px 16px;
 margin: 16px 0;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
/* 2. 日付の表示（強弱をつけて見やすく） */
div.small strong {
 display: block;
 color: #1a365d;
 font-size: 90%;
 font-weight: bold;
 border-bottom: 1px dashed #dcdcdc;
 padding-bottom: 4px;
 margin: 8px 0 6px 0;
}
div.small strong:first-child {
 margin-top: 0;
}
/* 3. リスト全体の装飾 */
div.small ul.recent_list {
 margin: 0 0 8px 0 !important;
 padding: 0 0 0 1.2em !important;
 list-style-type: disc !important;
}
div.small ul.recent_list li {
 margin: 4px 0 !important;
 padding: 0 !important;
 background-image: none !important; /* メニューバー用アイコンの干渉を防止 */
}
/* 4. ニュースタイトルのリンクデザイン */
div.small ul.recent_list li a {
 color: #215dc6;
 text-decoration: none;
 font-size: 95%;
}
div.small ul.recent_list li a:hover {
 color: #0022bb;
 text-decoration: underline;
 background-color: transparent !important;
}
/* 5. 最終更新タイムスタンプ (Last-Modified) の微調整 */
div.small p {
 color: #666666;
 margin: 8px 0 0 0 !important;
 text-align: left;
 font-family: verdana, arial, sans-serif;
}




/* ==========================================================
   html_insert.inc.php　Google検索
   ========================================================== */
#gsearch2 {
    min-height:32px;
    width:400px;
    margin:0;
}




/* ==========================================================
   スマートフォン・タブレット向けレスポンシブ対応 (画面幅768px以下)
   ========================================================== */
@media screen and (max-width: 768px) {
    #container {
        width: 96% !important;
        margin: 0 auto;
    }
    #body {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
    }
    #menubar, #menubar2 {
        float: none !important;
        width: 100% !important;
        margin: 20px 0 0 0 !important;
    }

    /* スマホ共通：サイドバーのメニューバーは非表示にする */
    #menubar {
        display: none !important;
    }

    /* スマホの「トップページ」：本文を除外して、メニューのみを表示 */
    #body.is-frontpage .pc-top-body {
        display: none !important;
    }
    #body.is-frontpage .sp-top-menu {
        display: block !important;
    }

    /* スマホでテーブル（表組み）を横スクロールできるようにする設定 ＋ 影 */
    table.style_table, 
    div.body table, 
    #body table {
        width: auto !important;
        max-width: none !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        
        background: 
            linear-gradient(to right, white 30%, rgba(255,255,255,0)),
            linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
            radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.15), rgba(0,0,0,0)) 0 0,
            radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.15), rgba(0,0,0,0)) 100% 0;
        background-repeat: no-repeat;
        background-color: white;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-attachment: local, local, scroll, scroll;
    }

    table.style_table th, 
    table.style_table td,
    div.body table th, 
    div.body table td,
    #body table th, 
    #body table td {
        white-space: nowrap !important;
    }

    /* 【ピンポイント修正】スマホ閲覧時に編集・新規・凍結などのボタンを隠す */
    #navigator a[href*="cmd=edit"],
    #navigator a[href*="plugin=edit"],
    #navigator a[href*="cmd=newpage"],
    #navigator a[href*="plugin=newpage"],
    #navigator a[href*="cmd=freeze"],
    #navigator a[href*="plugin=freeze"],
    #navigator a[href*="cmd=unfreeze"],
    #navigator a[href*="plugin=unfreeze"],
    #navigator a[href*="cmd=diff"],
    #navigator a[href*="plugin=diff"],
    #navigator a[href*="cmd=backup"],
    #navigator a[href*="plugin=backup"],
    #navigator a[href*="cmd=filelist"],
    #navigator a[href*="plugin=filelist"],
    #navigator a[href*="cmd=upload"],
    #navigator a[href*="plugin=upload"],
    #navigator a[href*="RecentChanges"],
    #toolbar {
        display: none !important;
    }

    /* 【ピンポイント修正】見出し横のセクション編集リンク（anchor_super）を隠す */
    a.anchor_super {
        display: none !important;
    }
}


/* ==========================================================
   PC向け表示制御 (画面幅769px以上)
   ========================================================== */
@media screen and (min-width: 769px) {
    .sp-top-menu {
        display: none !important;
    }
    .pc-top-body {
        display: block !important;
    }
}




/* ==========================================================
   検索キーワードハイライト強調デザイン（専用クラスを持つ要素のみを対象にする安全版）
   ========================================================== */
#body strong[class^="word"],
div.body strong[class^="word"],
#body b[class^="word"],
div.body b[class^="word"],
._plugin_search2_second_form b,
._plugin_search2_second_form strong,
ul#_plugin_search2_result-list b,
ul#_plugin_search2_result-list strong {
    color: #d9534f !important;            
    background-color: #fff3cd !important; 
    padding: 0.1em 0.3em;                 
    border-radius: 3px;                   
    font-weight: bold;
}


/* ==========================================================
   標準検索フォーム専用のカスタムデザイン（ShowRSS2干渉完全防止版）
   ========================================================== */

/* 1. 検索フォーム全体のボックス化 */
form:has(input[name="word"]) {
    margin: 8px 0;
    padding: 0px 8px;
    background-color: #ffffff;
    border: 0px solid #b0c4de;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: inline-block;
}

/* 2. テキスト入力ボックス */
form:has(input[name="word"]) input[name="word"] {
    padding: 8px 12px !important;
    font-size: 95% !important;
    border: 1px solid #b0c4de !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    outline: none !important;
}

form:has(input[name="word"]) input[name="word"]:focus {
    border-color: #215dc6 !important;
    box-shadow: 0 0 0 3px rgba(33, 93, 198, 0.15) !important;
}

/* 3. 検索ボタン */
form:has(input[name="word"]) input[type="submit"] {
    padding: 4px 8px !important;
    font-size: 95% !important;
    font-weight: bold !important;
    color: #ffffff !important;
    background-color: #215dc6 !important;
    background-image: linear-gradient(to bottom, #215dc6, #1a4da2) !important;
    border: 1px solid #1a4da2 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

form:has(input[name="word"]) input[type="submit"]:hover {
    background-color: #1a4da2 !important;
}

/* 4. 検索フォーム内の div.small（ベース選択部分）の強制リセット */
/* ※この記述により、上部の ShowRSS2 (.small) への影響を完全に遮断します */
form:has(input[name="word"]) div.small {
    background-color: transparent !important;
    border: none !important;
    padding: 4px 0 0 0 !important;
    margin: 8px 0 0 0 !important;
    box-shadow: none !important;
}

/* 5. 検索フォーム内の太字（ベース名の強調など）の色を標準に戻す */
form:has(input[name="word"]) div.small strong {
    color: #333333 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    font-size: 100% !important;
}

/* ==========================================================
   ShowRSS2の日付の色を完全に保護する強制リセット
   ========================================================== */
div.small strong {
    color: #1a365d !important; /* 上部で設定している綺麗な紺色に固定 */
    border-bottom: 1px dashed #dcdcdc !important;
    padding-bottom: 4px !important;
    margin: 8px 0 6px 0 !important;
    font-size: 90% !important;
    font-weight: bold !important;
    display: block !important;
    background: none !important;
}


/* ==========================================================
   最新の10件（RecentChanges）の行間隔調整（完全決定版）
   ========================================================== */
ul.recent_list {
    margin: 0 0 !important;
    padding-left: 1.8em !important;
}

ul.recent_list li {
    margin-top: 2px !important;
    margin-bottom: 2px !important; /* 項目の上下の余白 */
    line-height: 1.4 !important;    /* 行の高さにゆとりを持たせる */
}

.recent_date {
    font-size: 98% !important;
}



/* ==========================================================
   cmd=list のアルファベット見出しの色を保護
   ========================================================== */
div.body > strong {
    color: black !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}


/* ==========================================================
   contensx スマホ閲覧時の目次テーブル修正（詳細度強化版）
   ========================================================== */
@media screen and (max-width: 768px) {
    /* #body をつけて汎用テーブル設定（#body table）に必ず勝つようにする */
    #body table.toc {
        width: 80% !important;
        display: table !important;
        overflow-x: visible !important;
        white-space: normal !important;
        background: #ffffff !important;
    }
    #body table.toc td.toclist,
    #body table.toc td.toctitle {
        display: table-cell !important;
        white-space: normal !important;
    }
}


/* ==========================================================
   ページ編集画面などのテキストエリアを画面いっぱいに広げる（確実適用版）
   ========================================================= */
div.edit_form textarea,
#body textarea,
div.body textarea {
    width: 95% !important;
    max-width: 95% !important;
    box-sizing: border-box !important;
}
