@charset "utf-8";

/* ==========================================================
   PukiWiki 1.5.4 決定版CSS (テーブル横スクロール ＆ スマホ目次ジャンプ完全両立)
   ========================================================== */

body {
    color: black;
    background-color: white;
    font-family: sans-serif;
}

#container {
    width: 95%;
    margin: 0 auto;
}

#contents {
    width: 100%;
    overflow: hidden;
}

#body {
    float: right;
    width: 83%;
}

#menubar {
    float: left;
    width: 15%;
    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;
}

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

/* ヘッダー・ロゴ */
#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;
}

#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;
}

/* サイドバー（#menubar）のリスト・アイコン・見出し装飾 */
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%;
}

#menubar h3, #menubar2 h3, #menubar h6, #menubar2 h6 {
    font-size: 96%;
    color: #1a365d;
    padding: 4px 7px;
    margin: 0.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;
}

#menubar h4, #menubar2 h4 {
 font-size: 94%;
 color: #1a365d;
 padding: 5px 8px;
 margin: 0.8em 0 0.6em 0;
 background-color: #f2f6fc;
 border-left: 4px solid #215dc6;
 border-top: 1px solid #dcdcdc;
 border-right: 1px solid #dcdcdc;
 border-bottom: 1px solid #dcdcdc;
 border-radius: 0 4px 4px 0;
 font-weight: bold;
}

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;
}

/* テーブル横スクロール用ラッパー */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}

/* テーブル（一般） - display: table を維持してジャンプを死守 */
table.style_table {
    display: table !important;
    width: auto !important;
    white-space: nowrap !important;
    border-collapse: collapse;
    margin: 0;
    font-size: 95%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
table.style_table th, 
table.style_table td {
    padding: 8px 12px;
    border: 1px solid #dcdcdc;
    white-space: nowrap !important;
    text-align: left;
    line-height: 1.4;
}

table.style_table th {
    background-color: #f2f6fc;
    color: #333333;
    font-weight: bold;
    border-bottom: 2px solid #b0c4de;
}
table.style_table tr:nth-child(even) td {
    background-color: #fafafa;
}
table.style_table tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* 目次（toc） */
table.toc {
    border: 1px solid #b0c4de;
    background: #fff;
    margin: 20px 0;
    padding: 10px;
    border-radius: 6px;
}
table.toc td.toctitle {
    font-weight: bold;
    border-bottom: 1px solid #b0c4de;
    padding-bottom: 5px;
    color: #1a365d;
}
ul.contents {
    margin: 0 !important;
    padding-left: 1.2em !important;
}
ul.contents li {
    margin: 6px 0 !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;
}

/* リッチな見出し（H2, H3） */
#body h2, div.body h2 {
    color: #1a365d;
    background: linear-gradient(to right, #f2f6fc, #ffffff);
    padding: 0.5em 0.8em;
    margin: 0.6em 0;
    border-left: 6px solid #215dc6;
    border-radius: 0 4px 4px 0;
    font-size: 118%;
    font-weight: bold;
}

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

/* ShowRSS2 カスタムデザイン */
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);
}
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;
}
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;
}
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;
}
div.small p {
    color: #666666;
    margin: 8px 0 0 0 !important;
    text-align: left;
}

/* 最新の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;
}

/* 検索キーワードハイライト強調 */
#body strong[class^="word"],
div.body strong[class^="word"],
#body b[class^="word"],
div.body b[class^="word"] {
    color: #d9534f !important;            
    background-color: #fff3cd !important; 
    padding: 0.1em 0.3em;                 
    border-radius: 3px;                   
    font-weight: bold;
}

/* 標準検索フォーム専用のカスタムデザイン */
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;
}
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;
}
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;
}

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

/* ページ編集画面などのテキストエリア調整 */
div.edit_form textarea,
#body textarea,
div.body textarea {
    width: 95% !important;
    max-width: 95% !important;
    box-sizing: border-box !important;
}

#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;
}

/* ==========================================================
   スマートフォン向けレスポンシブ対応 (画面幅768px以下)
   ========================================================== */
@media screen and (max-width: 768px) {
    #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;
    }

    /* ★リフロー（再計算）を一切起こさずに編集リンクを透明化して隠す（目次ジャンプを完全死守） */
    a.anchor_super {
        visibility: hidden !important;
        pointer-events: none !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;
    }

}

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

