/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 *
 * Detailed information about this CSS: h5bp.com/css
 *
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

body, div, dl, dt, dd, ul, ol, li,
h1, h2, h3, h4, h5, h6,
object, iframe, pre, code, p, blockquote,
form, fieldset, legend,
table, th, td, caption, tbody, tfoot, thead,
article, aside, figure, footer, header,
hgroup, menu, nav, section, audio, video, canvas {
	margin: 0;
	padding: 0;
	vertical-align: baseline;
}
/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; overflow-y: scroll; }

html, button, input, select, textarea { font-family: sans-serif; color: #222; }

body { margin: 0;
  /* for ie6/7 */
  font-size: 14px;
  line-height: 1.8;
  *font-size: 86%;
	width:100%;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }

/* =============================================================================
   Links
   ========================================================================== */

a { color: #069DCF; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }

/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 0; padding: 0; list-style-type:none; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
      ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

img{
    max-width: 100%;
    height: auto;
    width /***/:auto;
}
/*
 * Correct overflow not hidden in IE9
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }

/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* =============================================================================
   Chrome Frame Prompt
   ========================================================================== */

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }

/* =============================================================================
   block
   ========================================================================== */
   #container {
	   	margin: 0px auto;
		width:100%;
   }
   #wrapper{
	   width:900px;
	   margin:10px auto 30px auto;
   }

   
   #headNavi{
	   margin:0 0 30px 0;
	   text-align:right;
   }
   #headNavi li{
	   font-size:10px;
	   display:inline;
	   padding:0 5px;
	   line-height: 1;
   }
   .headtitle{
	   margin-bottom:30px;
   }
   
   #contents{
	   width:600px;
	   float:left;
   }
   
   #side{
	   width:250px;
	   float:right;
   }
	   
/* =============================================================================
   contents
   ========================================================================== */

#cTitle{
	background:url(../img/content_h1_bk.gif) repeat-x;
	padding:20px 0 20px 0;
}

#cTitle h1{
	border-bottom:1px dashed #999999;
	padding:0 20px 15px 40px;
	background:url(../img/h1_bk.gif) no-repeat 10px 2px;
	color:#0498d0;
	font-weight:bold;
	font-size:128%;
}

#contents h2{
	/* Firefox v1.0+ */
-moz-border-radius:1%;
/* Safari v3.0+ and by Chrome v0.2+ */
-webkit-border-radius:1%/16%;
/* Firefox v4.0+ , Safari v5.0+ , Chrome v4.0+ , Opera v10.5+  and by IE v9.0+ */
border-radius:1%/16%;
	color:#FFF;
	font-weight:bold;
	font-size:114%;
	background:url(../img/content_h2_bk.gif) repeat-x 0 bottom #0498d0;
	line-height:1;
	padding:10px;
}
#contents h2 a{
	color:#fff;
	
}

#contents h3{
font-size:100%;
	margin:1em 0 0 0;
}
#contents p{
	margin:1.5em 0 1em 0;
}
#contents ul{
	margin:1.5em 0 1em 0;
}

#refe{
margin:1em;
padding:0.5em;
border:1px solid #CCC;
background:#F2F2f2;
}
.nextLink p{
text-align: center;
font-size:130%;
}

/* =============================================================================
   side
========================================================================== */
	
.sTitle{
	background:url(../img/nav_h2_bk.gif) repeat-x ;
	padding:15px 0 0 0;
}

.sTitle h2{
	border-bottom:1px dashed #999999;
	padding:0 20px 15px 10px;
}

#pages li,#bookmark li{
	border-bottom:1px dashed #CCC;
	background:url(../img/pages_li.gif) no-repeat 0 center;
}
#pages li:last-child{
	border:none;
}
#pages li a,#bookmark li a{
	display:block;
	padding:15px 10px;
}

#about p{
	margin:1.5em 0.5em 1em 0.5em;
}	
	
/* =============================================================================
   footer
========================================================================== */
#footer{
	background:#333;
	text-align:center;
	font-size:86%;
	color:#fff;
	padding:15px 0 20px 0;
	clear:both;
	width:100%;
}
#footer a{
	color:#fff;
	text-decoration:none;
}



/* ==|== media queries ======================================================
   ========================================================================== */

@media
only screen and (max-width: 320px),
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {
  /* Style adjustments for viewports that meet the condition */
   #wrapper{
	   width:320px;
	   margin:10px auto 30px auto;
   } 
   .headtitle{
	   text-align:center;
   }
   
   #contents{
	   width:310px;
	   margin:0 auto;
	   float:none;
   }
   
   #side{
	   width:310px;
	   margin:20px auto;
	   float:none;
   }
}


/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }
