/**
 * Extra styles for sidebar template
 *
 * @author Christopher Smith <chris@jalakai.co.uk>
 */

/* dokuwiki containers & styles */

/* sidebar orientation and position */
#sidebar {
/*  width:185px; */
/*  margin-left:75%; */
/* margin-left:10px; */
/*	float: right;*/

    font-size:11px;
    width: 267px;
    background-color: #fff;

	position : absolute !important; /* importantで、Mozilla, Opera に対して優先順位を上げて固定配置 */ 
	right: 0px;
	top: 30px
	z-index: 5;

	padding: 0px;
	margin: 0px;
}
#sidebartop {
  height: 1.2em;
}

.sidebar_inside_left #sidebar {
    float:left; 
}

.sidebar_inside_right #sidebar {
/*    float:left; */
}
.sidebar_inside_left #sidebar img {
	max-width: 95%;
	height: auto;
}

.sidebar_inside_left .dokuwiki div.breadcrumbs {
    float: left;
    width: 78%;
    padding: 0 1% 0 0.9%;
}

.sidebar_inside_left .dokuwiki .page, .sidebar_inside_left .dokuwiki .meta {
    float:left; 
    width:77%;             /* also see IE Win fix below */
    margin-right: 1%;
    margin-left:0;
}

.sidebar_inside_right .dokuwiki .page, .sidebar_inside_right .dokuwiki .meta, .sidebar_inside_right .dokuwiki .breadcrumbs {
    float:left; 
/*    width:77%; */
    margin-left: 1%;
    margin-right: 0;
}

.sidebar_outside_left #sidebar {
    position:absolute; 
    top:0; 
    left:0;
}

.sidebar_outside_right #sidebar {
    position:absolute; 
    top:0; 
    right:0;
}

.sidebar_outside_left .dokuwiki {
    padding-left:21%;
}

.sidebar_outside_right .dokuwiki {
    padding-right:21%;
}

.sidebar_outside_left .footerinc {
    padding-left: 21%;
}

.sidebar_outside_right .footerinc {
    padding-right: 21%;
}

/* sidebar presentation */
/* the following three styles use a faux-column image to place a separating line 
   between the sidebar and dokuwiku */
.sidebar_outside_left .dokuwiki, .sidebar_inside_left .dokuwiki {

}

.sidebar_outside_right .dokuwiki, .sidebar_inside_right .dokuwiki {
}

/* hide the line where it passes through .stylehead */
.stylehead {
	overflow: hidden;
	margin-bottom: 10px;
}

/* sidebar contents */

#sidebar a {
    color: __existing__;
}

#sidebar a.wikilink2 {
    color: __text_neu__;
}

#sidebar a.wikilink2:hover {
    text-decoration:none; 
    cursor:default;
}

#sidebar h1 {
    font-size:140%; 
    margin-left: 0px; 
    padding-left: 2px; 
    font-weight:bold; 
    padding-bottom:0; 

}
#sidebar h2 {
    font-size:120%; 
    margin-left: 4px; 
    font-weight:bold; 
    padding-bottom:0;
}
#sidebar h3 {
    font-size:120%; 
    margin-left: 8px; 
    font-weight:normal; 
    padding-bottom:0;
}
#sidebar h4 {
    font-size:100%; 
    margin-left: 12px; 
    font-weight:bold; 
    padding-bottom:0;
}
#sidebar h5 {
    font-size:100%; 
    margin-left: 16px; 
    font-weight:normal; 
    padding-bottom:0;
}
#sidebar .toc {
    display:none;
}

#sidebar .secedit {
}
#sidebar div.level3 {
}
#sidebar div.level3 div.table {
	border-collapse: collapse;
	margin-bottom: 6px;
}
#sidebar div.level3 div.sectionedit17 {
	width: 250px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
#sidebar table.inline {
	width: 250px;
}
#sidebar table.inline tr {
}
#sidebar table.inline tr th,
#sidebar table.inline tr td {
	padding-top: 5px;
	padding-bottom: 5px;
	border-bottom: dotted 1px #999;
}
#sidebar table.inline tr th a,
#sidebar table.inline tr td a{
	max-width: 250px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
#sidebar table.inline tr th a img ,
#sidebar table.inline tr td a img {
	max-width: 250px;
}
#sidebar table.inline tr th{
}
#sidebar table.inline tr td{
}
/* reduced section indentation */
#sidebar div.level1 {margin-left: 2px;}
#sidebar div.level2 {margin-left: 6px;}
#sidebar div.level3 {margin-left: 10px;}
#sidebar div.level4 {margin-left: 14px;}
#sidebar div.level5 {margin-left: 18px;}

/* IE fixes (hide from IE Mac) \*/

* html .page .toc {height:1px}    /* General Dokuwiki fix. IE needs this to always display TOC contents \*/
* html pre {width:95%;}           /* General Dokuwiki fix - very important for Sidebar. IE needs this to get the overflow:auto style to kick in \*/
* html .stylehead {height:1px;}   /* Get IE in hasLayout mode to ensure the background covers the whole element \*/

* html .sidebar_inside_left .page, * html .sidebar_inside_right .page, 
* html .sidebar_inside_left .meta, * html .sidebar_inside_right .meta {
    width: 77%;                   /* IE needs extra gap to ensure #sidebar & .page float next to each other \*/
    overflow-x: auto;             /* IE proprietary property to prevent wide images in wiki page forcing sidebar down below wiki page \*/
                                  /* 'overflow-x:auto;' maybe replaced by 'overflow:auto;' to ensure template passes w3c validation \*/
}

/* (end IE Mac hiding) */
