/*
 * pettanR
 * 
 *   common.css
 * 
 *   version 0.1.0
 *
 */

/*  VML ( v\:* don't work for ie8(ie8mode))
--------------------------------------------------------------------------------------*/
	v\:shape,
	v\:image {
		behavior:	url(#default#VML);
		display:	block;
	}

/*  Reset
--------------------------------------------------------------------------------------*/
	html, body {
		margin:				0;
		padding:			0;
	}

/*  Reset
--------------------------------------------------------------------------------------*/
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
	body{
		font:			13px/1.231 arial,helvetica,clean,sans-serif;
		line-height:	1;
		*font-size:		small;
		*font:			x-small;
	}
	select, input, button, textarea, button{
		font:			99% arial,helvetica,clean,sans-serif;
	}
	table{
		font-size:		inherit;
		font:			100%;
	}
	
	html, body, div, span, applet, object, iframe,
	h1, h2, h3, h4, h5, h6, p, blockquote, pre,
	a, abbr, acronym, address, big, cite, code,
	del, dfn, em, font, img, ins, kbd, q, s, samp,
	small, strike, strong, sub, sup, tt, var,
	b, u, i, center,
	dl, dt, dd, ol, ul, li,
	fieldset, form, label, legend,
	table, caption, tbody, tfoot, thead {
		margin:			0;
		padding:		0;
		border:			0;
		outline:		0;
		vertical-align:	baseline;
		font-family:	"Hiragino Kaku Gothic Pro","ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3","メイリオ",Meiryo,sans-serif;
	}
	 
	p {
		text-shadow:	#000 0 0 0;/* for Safari */ 
		-moz-opacity:	0.99;/* for Firefox */ 
	}
	
	pre, code, kbd, samp, tt {
		font-family:	monospace;
		line-height:	100%;
		*font-size:		108%;
		margin-bottom:		1em;
	}

	/* http://e2designer.seesaa.net/article/152168876.html */
	/* http://perishablepress.com/press/2010/06/01/wrapping-content/ */
	pre {
		white-space: pre;           /* CSS 2.0 */
		white-space: pre-wrap;      /* CSS 2.1 */
		white-space: pre-line;      /* CSS 3.0 */
		white-space: -pre-wrap;     /* Opera 4-6 */
		white-space: -o-pre-wrap;   /* Opera 7 */
		white-space: -moz-pre-wrap; /* Mozilla */
		white-space: -hp-pre-wrap;  /* HP Printers */
		word-wrap:   break-word;    /* IE 5+ */
	}
	
	/* remember to define focus styles! */
	:focus { outline: 0;}
	
	/* remember to highlight inserts somehow! */
	ins { text-decoration: none;}
	del { text-decoration: line-through;}
	
	/* http://honoo-no.com/creators/2008/02/14_211120.html */
	textarea, input {
		font-family: "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3",sans-serif;
	}
	ul, ol, dl {
		margin-left:	2em;
	}

	dt {
		margin:			1em 0 0 1em;
		font-weight:	bold;
	}
	dd {
		margin:			0.5em 0 0 2em;
	}

/*  ClearFix
--------------------------------------------------------------------------------------*/
	/* for modern brouser */
	claerfix:after {   
		content: ".";   
		display: block;   
		visibility: hidden;   
		height: 0.1px;   
		font-size: 0.1em;   
		line-height: 0;   
		clear: both;   
	} 
	/* IE7,MacIE5 */
	.clearfix {
		display: inline-block;
	}
	/* WinIE6 below, Exclude MacIE5 \*/
	* html .clearfix {
		zoom: 1;
	}
	.clearfix {
		display: block;
		overflow: auto;
	}
	/**/


/*  Typography
--------------------------------------------------------------------------------------*/
	a:link { color:#008;}
	a:visited { color: #505;}
	a { text-decoration: none;}
	
	a:hover {
		text-decoration:	underline;
		color:				#f60;
	}
	h1 {
		letter-spacing:		2px;
	}
	h2 {
		letter-spacing:		2px;
	    border-top:			1px solid #333;
	    border-bottom:		1px solid #333;
	    padding:			0.5em 0;
	    font-size:			1.4em;
		line-height:		1.4em;
		text-align:			center;
		margin:				0 2px 1em;
		text-shadow:		1px 1px 3px rgba(0, 0, 0, 0.6);
    }


	h3 {
		letter-spacing:		2px;
	    border-bottom:		1px dotted #333333;
	    font-size:			1.4em;
		line-height:		1.4em;
		text-align:			center;
		margin:				0 0 1em;
		font-weight:		bold;
	}		

	h4 {
		font-weight:		bold;
		font-size:			116%;
		letter-spacing:		1px;
		border:				1px #333 solid;
		border-width:		0 0 1px 0.5em;
		padding:			4px 0 2px 0.6em;
		margin:				2em 0 1em;
	}
	h5 {
		letter-spacing:		1px;
		border-bottom:		1px #999 dotted;
		padding:			6px 6px 2px;
		margin:				2em 7px 1em;
	}
	h5, h6 {
		font-size:			1em;
		padding:			0 5px 0;
		margin:				1.5em 14px 1em;
	}
	h6 {
		border-left:		5px #999 solid;
		letter-spacing:		1px;
	}
	h6 {
		border-left:		3px #666 double;
	}
	
	p {
		margin:				0 0 1em;
	}
	
	blockquote, cite {}
	em {}

	/* tables still need 'cellspacing="0"' in the markup */
	table {
		width:				440px;
		border:				#999 solid;
		border-width:		1px 1px 0 0;
		border-collapse:	collapse;
		empty-cells:		show;
		border-spacing:		0;
		line-height:		1.6em;
		/*\*/
		margin:				9px auto 1em;
		_margin:			9px 15px 1em;
		/* */
	}

	th, td {
		padding:			5px;
		border:				#999 solid;
		border-width:		0 0 1px 1px;
	}

/*  Button
--------------------------------------------------------------------------------------*/
	.button {
		border:					1px outset #ccc;
		background-color:		#eee;
		color:					#666;
		font-weight:			bold;
		text-align:				center;
		cursor:					pointer;
		overflow:				hidden;
		height:					30px;
		line-height:			30px;
		border-radius:			5px;
		-o-border-radius:		5px;
		-ms-border-radius:		5px;
		-moz-border-radius:		5px;
		-webkit-border-radius:	5px;
	}

/*  Loading
--------------------------------------------------------------------------------------*/
	.loading {
		background-image:		url( loading.gif);
		background-position:	50% 50%;
		background-repeat:		no-repeat;
	}
	.error {
		background-image:		url( error.png);
		background-position:	50% 50%;
		background-repeat:		no-repeat;
	}


/*  Footer & Footer Fix
 *   http://www.themaninblue.com/writing/perspective/2005/08/29/
--------------------------------------------------------------------------------------*/
	html,
	body {
		height:			100%;
	}
	#general-content {
		position:		relative;
		min-height:		100%;
		_height:		100%;
	}
	
	#outer-wrapper {
		padding-bottom:	200px;/* フッターの高さと同じ値にする */
	}

	#footer-content {
		height:			200px;
		position:		relative;
		margin-top:		-200px;
	}


/*  Noscript Alert
--------------------------------------------------------------------------------------*/
	#noscript-alert {
		border-left:		1px solid #666;
		display:			block;
		text-align:			center;
		color:				red;
		font-weight:		bold;
		font-size:			12px;
		line-height:		12px;
		padding:			11px 0 7px;
	}

/*  global-navi
--------------------------------------------------------------------------------------*/
	#global-navi {
		position:				absolute;
		right:					0;
		top:					0;
		width:					320px;
		text-align:				right;
		height:					30px;
		border-right:			1px solid #666;
	}
		#global-navi a,
		#global-navi a:link,
		#global-navi a:visited,
		#global-navi a:active {
			text-align:			center;
			color:				#666;
			text-decoration:	none;
			display:			inline-block;
			_display:			inline;
			_zoom:				1;
			float:				left;
			width:				79px;
			border-left:		1px solid #666;
			font-size:			12px;
			line-height:		12px;
			padding:			11px 0 7px;
			outline:			0;
		}

		#global-navi a {
			background-color:	#ccc; /* for ie6 */
		}
		#global-navi a:active {
			background-color:	#333;
		}
		#global-navi a:hover {
			background-color:	#999;
			color:				#fff;
		}

/*  header
--------------------------------------------------------------------------------------*/
	#header {
		background-color:		#ccc;
		height:					30px;
		line-height:			30px;
	}
	h1 {
		height:					30px;
		line-height:			30px;
		font-size:				1.4em;
		font-weight:			normal;
		text-shadow:			1px 1px 3px rgba(0, 0, 0, 0.6);
	}	

/*  base-content-width
--------------------------------------------------------------------------------------*/
	.base-content-width {
		width:					800px;
		margin:					0 auto;
	}
	
/*  main
--------------------------------------------------------------------------------------*/
	#main {
		padding:					20px 10px;
	}

/*  footer-content
--------------------------------------------------------------------------------------*/
	#footer-content {
		background-color:		#ccc;
		position:				relative;
	}
	#footer {
		border-top:				1px solid #999;
		padding-bottom:			30px;
	}
		.footer-item-wrapper {
			width:					210px;
			float:					left;
		}
			.footer-item {
				padding-right:		30px;
			}
			.footer-item h2 {
				font-size:			1em;
				padding:			0 0 0.3em 0.5em;
				margin-top:			0.7em;
				margin-bottom:		0.6em;
				text-align:			left;
				border-top:			0;
				border-left:		0;
				border-right:		0;
				border-bottom:		1px solid #999;
				box-shadow:			none;
				-moz-box-shadow:	none;
				-webkit-box-shadow:	0;
			}
			.footer-item ul {
				list-style:			none;
				padding:			0 30px 0 1em;
				margin:				0;
			}
				.footer-item li {
					line-height:		1.6em;
				}
		#copyright {
			position:				absolute;
			left:					0;
			bottom:					10px;
			width:					100%;
			height:					20px;
			line-height:			20px;
			text-align:				center;
		}

		
/*  Reversible Image
--------------------------------------------------------------------------------------*/	
	img.img-flip-v { /* 上下反転 */
		transform:				scale( 1, -1);
		/*-o-transform:			scale( 1, -1);*/
		-ms-transform:			scale( 1, -1);
		-moz-transform:			scale( 1, -1);
		-webkit-transform:		scale( 1, -1);
		/*filter:					progid:DXImageTransform.Microsoft.BasicImage( Mirror=1, Rotation=2);
		-ms-filter:				progid:DXImageTransform.Microsoft.BasicImage( Mirror=1, Rotation=2);*/
		filter:					flipv();
		-ms-filter:				flipv();
	}
	v\:image.img-flip-v {
		flip:					y; /* vml */
	} 
	
	img.img-flip-h { /* 左右反転 */
		transform:				scale( -1, 1);
		/*-o-transform:			scaleX( -1);*/
		-ms-transform:			scale( -1, 1);
		-moz-transform:			scale( -1, 1);
		-webkit-transform:		scale( -1, 1);
		/*filter:					progid:DXImageTransform.Microsoft.BasicImage( Mirror=1);
		-ms-filter:				progid:DXImageTransform.Microsoft.BasicImage( Mirror=1);*/
		filter:					fliph();
		-ms-filter:				fliph();
	}
	v\:image.img-flip-h {
		flip:					x; /* vml */
	}
	
	img.img-flip-vh { /* 上下左右反転 */
		transform:				scale( -1, -1);
		/* -o-transform:			scaleY( -1); */
		-ms-transform:			scale( -1, -1);
		-moz-transform:			scale( -1, -1);
		-webkit-transform:		scale( -1, -1);
		/*filter:					progid:DXImageTransform.Microsoft.BasicImage( Rotation=2);
		-ms-filter:				progid:DXImageTransform.Microsoft.BasicImage( Rotation=2);*/
		filter:					flipv() fliph();
		-ms-filter:				flipv() fliph();
	}
	v\:image.img-flip-vh {
		rotation :				180; /* vml */
	}

/*  Reversible Image with png-fix
--------------------------------------------------------------------------------------*/
	.img-flip-v .img-flip-with-pngfix-v {
		filter:					flipv();
	}
	.img-flip-h .img-flip-with-pngfix-h {
		filter:					fliph();
	}
	.img-flip-vh .img-flip-with-pngfix-h {
		filter:					flipv() fliph();
	}