/*	Less Framework 4
	http://lessframework.com
	by Joni Korpi
	License: http://opensource.org/licenses/mit-license.php	*/


/*	Resets
	------	*/

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, 
p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, 
img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr, 
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figure, figcaption, hgroup, 
menu, footer, header, nav, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
}

article, aside, canvas, figure, figure img, figcaption, hgroup,
footer, header, nav, section, audio, video {
	display: block;
}

a img {border: 0;}


/*	Typography presets
	------------------	*/

.gigantic {
	font-size: 110px;
	line-height: 120px;
	letter-spacing: -2px;
}

.huge, h1 {
	font-size: 68px;
	line-height: 72px;
	letter-spacing: -1px;
}

.large, h2 {
	font-size: 42px;
	line-height: 48px;
}

.bigger, h3 {
	font-size: 26px;
	line-height: 36px;
}

.big, h4 {
	font-size: 22px;
	line-height: 30px;
}

.normal, body {
	/* font: 16px/24px Georgia, serif; */
	font: 16px/24px sans-serif;
}

.small, small {
	font-size: 13px;
	line-height: 18px;
}

/* Selection colours (easy to forget) */

::selection 	 	{background: rgb(255,255,158);}
::-moz-selection 	{background: rgb(255,255,158);}
img::selection 		{background: transparent;}
img::-moz-selection	{background: transparent;}
body {-webkit-tap-highlight-color: rgb(255,255,158);}



/*		Default Layout: 992px. 
		Gutters: 24px.
		Outer margins: 48px.
		Leftover space for scrollbars @1024px: 32px.
-------------------------------------------------------------------------------
cols    1     2      3      4      5      6      7      8      9      10
px      68    160    252    344    436    528    620    712    804    896    */

body {
	width: 896px;
	padding: 72px 48px 84px;
	background: rgb(232,232,232);
	color: rgb(60,60,60);
	-webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
}

body {
	width: 992px;
	margin: auto;
	padding: 45px 0 0;
	word-wrap:break-word;
}

header {
	/* background-color: #9e00ff; */
	overflow: hidden; /*floatの解除、ここがポイント*/
	position: relative; /*DWで正常にプレビューできるようになります。*/
	zoom:1; /*IE6でレイアウト崩れを防ぐためのものです。*/
}

#leftheader {
	float: left;
	width: 436px;
}

#rightheader {
	float: right;
	width: 436px;
	text-align: right;
	padding: 20px 0;
}

#headermenu {
	background: #a700ff;
	overflow: hidden; /*floatの解除、ここがポイント*/
	position: relative; /*DWで正常にプレビューできるようになります。*/
	zoom:1; /*IE6でレイアウト崩れを防ぐためのものです。*/
	margin-top: 15px;
}
#headermenu {
	background: url('../img/common/ground_navibg.gif');
}

#headermenu li {
	float: left;
	/* margin-right: 24px; */
}

#headermenu .img {
	position: relative;
	height: 50px;
	overflow: hidden;
	display: block;
	background: url('../img/common/ground.gif');
}

#headermenu a {
	text-decoration: none;
}

#headermenu li:nth-of-type(1) a.img {
	width: 96px;
	background-position: 0px -100px;
}

#headermenu li:nth-of-type(1) a.img:hover {
	background-position: 0px -150px;
}

#headermenu li:nth-of-type(2) a.img {
	width: 96px;
	background-position: -97px -100px;
}

#headermenu li:nth-of-type(2) a.img:hover {
	background-position: -97px -150px;
}

#headermenu li:nth-of-type(3) a.img {
	width: 152px;
	background-position: -194px -100px;
}

#headermenu li:nth-of-type(3) a.img:hover {
	background-position: -194px -150px;
}

#headermenu li:nth-of-type(4) a.img {
	width: 129px;
	background-position: -347px -100px;
}

#headermenu li:nth-of-type(4) a.img:hover {
	background-position: -347px -150px;
}

#headermenu li:nth-of-type(5) a.img {
	width: 116px;
	background-position: -477px -100px;
}

#headermenu li:nth-of-type(5) a.img:hover {
	background-position: -477px -150px;
}

#headermenu li:nth-of-type(6) a.img {
	width: 82px;
	background-position: -594px -100px;
}

#headermenu li:nth-of-type(6) a.img:hover {
	background-position: -594px -150px;
}

#headermenu li:nth-of-type(7) a.img {
	width: 83px;
	background-position: -677px -100px;
}

#headermenu li:nth-of-type(7) a.img:hover {
	background-position: -677px -150px;
}

#headermenu li:nth-of-type(8) a.img {
	width: 106px;
	background-position: -761px -100px;
}

#headermenu li:nth-of-type(8) a.img:hover {
	background-position: -761px -150px;
}

#mainvisual {
	width: 992px;
}

#slider {
	width: 992px;
	height: 558px;
}

#slider #thumbnail {
	padding: 0 67px;
}

#slider #thumbnail li img {
	width: 160px;
	height: 90px;
	margin: 10px 5px;
}

#contents {
	background: #ddd;
	background: rgba(242,242,242,0.8);
	border-radius: 5px;
	padding: 0 48px;
	overflow: hidden; /*floatの解除、ここがポイント*/
	position: relative; /*DWで正常にプレビューできるようになります。*/
	zoom:1; /*IE6でレイアウト崩れを防ぐためのものです。*/
	behavior:url(/PIE.htc);
}

#contents > *:nth-child(even) {
	margin-left: 24px;
}

#leftcontents {
	float: left;
	width: 620px;
	margin-top: 24px;
}

#rightcontents {
	float: left;
	width: 252px;
	margin-top: 24px;
}

#contents {
	margin-top: 10px;
}

#leftcontents > *:not(#othernewsfeedarea) {
	margin-bottom: 24px;
}

.feed .header {
	height: 40px;
	overflow: hidden;
	background: url('../img/common/ground.gif');
}

.feed .overwriteimg {
	margin: 0 10px;
	height: 40px;
}

.feed .overwriteimg .img {
	position: relative;
	width: 100%;
	height: 100%;
	display: block;
	background: url('../img/common/ground.gif');
	background-position: -410px -240px;	
}

#newsfeedarea .header {
	background-position: 0px -200px;
}

#newsfeedarea .overwriteimg {
	width: 74px;
}

#newsfeedarea a.img {
	background-position: 0px -240px;
}

#Gymkhana_newsfeed .header {
	background-position: 0px -200px;
}

#Gymkhana_newsfeed .overwriteimg {
	width: 118px;
}

#Gymkhana_newsfeed .img {
	background-position: -75px -240px;
}

#DartTrial_newsfeed .header {
	background-position: 0px -200px;
}

#DartTrial_newsfeed .overwriteimg {
	width: 100px;
}

#DartTrial_newsfeed .img {
	background-position: -194px -240px;
}

#Rally_newsfeed .header {
	background-position: 0px -200px;
}

#Rally_newsfeed .overwriteimg {
	width: 56px;
}

#Rally_newsfeed .img {
	background-position: -295px -240px;
}

#Race_newsfeed .header {
	background-position: 0px -200px;
}

#Race_newsfeed .overwriteimg {
	width: 56px;
}

#Race_newsfeed .img {
	background-position: -352px -240px;
}

#othernewsfeedarea > * > .newsfeed {
	height: 226px;
	overflow: scroll;
}

#othernewsfeedarea > * {
	margin-bottom: 24px;
}

#othernewsfeedarea {
	overflow: hidden; /*floatの解除、ここがポイント*/
	position: relative; /*DWで正常にプレビューできるようになります。*/
	zoom:1; /*IE6でレイアウト崩れを防ぐためのものです。*/
}

#othernewsfeedarea > *:nth-child(even) {
	margin-left: 24px;
}

#Gymkhana_newsfeed,
#DartTrial_newsfeed,
#Rally_newsfeed,
#Race_newsfeed {
	float: left;
	width: 298px;
	overflow-x: hidden;
}

#schedulearea .header {
	height: 40px;
	overflow: hidden;
	background: url('../img/common/ground.gif');
}

#schedulearea .overwriteimg {
	margin: 0 10px;
	height: 40px;
}

#schedulearea a.img {
	position: relative;
	width: 100%;
	height: 100%;
	display: block;
	background: url('../img/common/ground.gif');
}

footer {
	/* background: #6bff00; */
	margin-top: 24px;
}

/* class */
.selectbox button {
	width: 195px;
	width: 600px;
}

	.news {
	min-height: 704px;
}	


/*		Tablet Layout: 768px.
		Gutters: 24px.
		Outer margins: 28px.
		Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */

@media only screen and (min-width: 768px) and (max-width: 991px) {
	
	body {
		width: 712px;
		padding: 48px 28px 60px;
	}
	
	body {
		padding: 0 28px;
		width: 760px;
		padding: 0 4px;
	}
	
	header {
		width: 760px;
		margin-top: 20px;
	}
	
	#mainvisual {
		width: 760px;
	}
	
	#slider {
		width: 760px;
		height: 427px;
	}

	#slider #thumbnail {
		padding: 0 50px;
	}

	#slider #thumbnail li img {
		width: 110px;
		height: 70px;
		margin: 10px 5px;
	}

	#contents {
		padding: 0 24px;
	}

	#leftcontents {
		width: 436px;
	}

	#Top_bannerarea img {
		width: 436px;
	}

	#rightcontents {
		width: 252px;
	}

	#Gymkhana_newsfeed,
	#DartTrial_newsfeed,
	#Rally_newsfeed,
	#Race_newsfeed {
		width: 206px;
	}

	#Top_bannerarea {
		width: 436px;
	}

	#bannerarea {
		width: 252px;
	}

	footer {
		width: 760px;
	}
	
	/* class */
	.selectbox button {
		width: 205px;
		width: 415px;
	}
	
	.news {
	min-height: 704px;
}	
	
}


/*		Mobile Layout: 320px.
		Gutters: 24px.
		Outer margins: 34px.
		Inherits styles from: Default Layout.
---------------------------------------------
cols    1     2      3
px      68    160    252    */

@media only screen and (max-width: 767px) {
	
	body {
		width: 252px;
		padding: 48px 34px 60px;
	}
	
	body {
		width: 100%;
		padding: 20px 0 0;
	}
	
	header {
		width: 100%;
		margin: auto;
	}
	
	#headermenu {
		background-image: url('../img/common/ground_navibgs.gif');
	}
	
	#headermenu .img {
		position: relative;
		height: 25px;
		overflow: hidden;
		display: block;
		background: url('../img/common/grounds.gif');
	}
	
	#headermenu li:nth-of-type(1) a.img {
		width: 47px;
		background-position: 0px -50px;
	}
	
	#headermenu li:nth-of-type(1) a.img:hover {
		background-position: 0px -75px;
	}
	
	#headermenu li:nth-of-type(2) a.img {
		width: 47px;
		background-position: -49px -50px;
	}
	
	#headermenu li:nth-of-type(2) a.img:hover {
		background-position: -49px -75px;
	}
	
	#headermenu li:nth-of-type(3) a.img {
		width: 76px;
		background-position: -97px -50px;
	}
	
	#headermenu li:nth-of-type(3) a.img:hover {
		background-position: -97px -75px;
	}
	
	#headermenu li:nth-of-type(4) a.img {
		width: 64px;
		background-position: -174px -50px;
	}
	
	#headermenu li:nth-of-type(4) a.img:hover {
		background-position: -174px -75px;
	}
	
	#headermenu li:nth-of-type(5) a.img {
		width: 57px;
		background-position: -239px -50px;
	}
	
	#headermenu li:nth-of-type(5) a.img:hover {
		background-position: -239px -75px;
	}
	
	#headermenu li:nth-of-type(6) a.img {
		width: 41px;
		background-position: -297px -50px;
	}
	
	#headermenu li:nth-of-type(6) a.img:hover {
		background-position: -297px -75px;
	}
	
	#headermenu li:nth-of-type(7) a.img {
		width: 41px;
		background-position: -339px -50px;
	}
	
	#headermenu li:nth-of-type(7) a.img:hover {
		background-position: -339px -75px;
	}
	
	#headermenu li:nth-of-type(8) a.img {
		width: 52px;
		background-position: -381px -50px;
	}
	
	#headermenu li:nth-of-type(8) a.img:hover {
		background-position: -381px -75px;
	}
	
	#rightheader {
		display: none;
	}
	
	#mainvisual {
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	
	#slider {
		width: 252px;
		width: 96%;
		min-width: 252px;
		height: 141px;
		margin-left: auto;
		margin-right: auto;
	}

	#slider #thumbnail {
		padding: 0 7px;
	}

	#slider #thumbnail li img {
		width: 35px;
		height: 20px;
		margin: 10px 5px;
	}

	#contents {
		width: 100%;
		padding: 0;
		border-radius: 0px;
		background: none;
		margin-left: auto;
		margin-right: auto;
	}

	#contents > *:nth-child(even) {
		margin-left: auto;
		margin-right: auto;
	}

	#contents * {
		float: none !important;
	}

	#leftcontents {
		float: none;
		width: 96%;
		margin-left: auto;
		margin-right: auto;
	}

	#rightcontents {
		float: none;
		width: 252px;
		margin: 0;
	}

	.feed .header {
		height: 20px;
		overflow: hidden;
		background: url('../img/common/grounds.gif');
	}
	
	.feed .overwriteimg {
		margin: 0 10px;
		height: 20px;
	}
	
	.feed .overwriteimg .img {
		position: relative;
		width: 100%;
		height: 100%;
		display: block;
		background: url('../img/common/grounds.gif');
		background-position: -205px -120px;	
	}
	
	#newsfeedarea .header {
		background-position: 0px -100px;
	}
	
	#newsfeedarea .overwriteimg {
		width: 37px;
	}
	
	#newsfeedarea a.img {
		background-position: 0px -120px;
	}
	
	#Gymkhana_newsfeed .header {
		background-position: 0px -100px;
	}
	
	#Gymkhana_newsfeed .overwriteimg {
		width: 58px;
	}
	
	#Gymkhana_newsfeed .img {
		background-position: -38px -120px;
	}
	
	#DartTrial_newsfeed .header {
		background-position: 0px -100px;
	}
	
	#DartTrial_newsfeed .overwriteimg {
		width: 50px;
	}
	
	#DartTrial_newsfeed .img {
		background-position: -97px -120px;
	}
	
	#Rally_newsfeed .header {
		background-position: 0px -100px;
	}
	
	#Rally_newsfeed .overwriteimg {
		width: 27px;
	}
	
	#Rally_newsfeed .img {
		background-position: -148px -120px;
	}
	
	#Race_newsfeed .header {
		background-position: 0px -100px;
	}
	
	#Race_newsfeed .overwriteimg {
		width: 28px;
	}
	
	#Race_newsfeed .img {
		background-position: -176px -120px;
	}
	
	#othernewsfeedarea > * > .newsfeed {
		height: 113px;
		overflow: scroll;
	}
	
	#Top_bannerarea img {
		width: 100%;
	}

	#othernewsfeedarea > *:nth-child(even) {
		margin-left: auto;
	}

	#Gymkhana_newsfeed,
	#DartTrial_newsfeed,
	#Rally_newsfeed,
	#Race_newsfeed {
		width: 100%;
	}

	#Top_bannerarea {
		width: 100%;
	}

	#bannerarea {
		width: 100%;
	}
	
	#schedulearea nav {
		text-align: center;
	}
	
	#schedulearea .header {
		height: 20px;
		overflow: hidden;
		background: url('../img/common/grounds.gif');
	}
	
	#schedulearea .overwriteimg {
		margin: 0 10px;
		height: 20px;
	}
	
	#schedulearea a.img {
		position: relative;
		width: 100%;
		height: 100%;
		display: block;
		background: url('../img/common/grounds.gif');
	}

	footer {
		width: 252px;
		width: 96%;
		margin: 24px auto 0;
	}
	
	
	/* class */
	.selectbox button {
		width: 230px;
	}
	.FB_area {
		display: none;
	}	
	
	.news {
		min-height: 0px;
	}
	
	.Team {
		font-size: x-small;
	}
}


/*		Wide Mobile Layout: 480px.
		Gutters: 24px.
		Outer margins: 22px.
		Inherits styles from: Default Layout, Mobile Layout.
------------------------------------------------------------
cols    1     2      3      4      5
px      68    160    252    344    436    */

@media only screen and (min-width: 480px) and (max-width: 767px) {
	
	body {
		width: 436px;
		padding: 36px 22px 48px;
	}
	
	body {
		width: 100%;
		padding: 20px 0 0;
	}
	
	header {
		width: 436px;
		margin: auto;
	}
	
	#headermenu {
		background: url('../img/common/ground_navibg.gif');
	}
	
	#headermenu .img {
		position: relative;
		height: 50px;
		overflow: hidden;
		display: block;
		background: url('../img/common/ground.gif');
	}
	
	#headermenu a {
		text-decoration: none;
	}
	
	#headermenu li:nth-of-type(1) a.img {
		width: 96px;
		background-position: 0px -100px;
	}
	
	#headermenu li:nth-of-type(1) a.img:hover {
		background-position: 0px -150px;
	}
	
	#headermenu li:nth-of-type(2) a.img {
		width: 96px;
		background-position: -97px -100px;
	}
	
	#headermenu li:nth-of-type(2) a.img:hover {
		background-position: -97px -150px;
	}
	
	#headermenu li:nth-of-type(3) a.img {
		width: 152px;
		background-position: -194px -100px;
	}
	
	#headermenu li:nth-of-type(3) a.img:hover {
		background-position: -194px -150px;
	}
	
	#headermenu li:nth-of-type(4) a.img {
		width: 129px;
		background-position: -347px -100px;
	}
	
	#headermenu li:nth-of-type(4) a.img:hover {
		background-position: -347px -150px;
	}
	
	#headermenu li:nth-of-type(5) a.img {
		width: 116px;
		background-position: -477px -100px;
	}
	
	#headermenu li:nth-of-type(5) a.img:hover {
		background-position: -477px -150px;
	}
	
	#headermenu li:nth-of-type(6) a.img {
		width: 82px;
		background-position: -594px -100px;
	}
	
	#headermenu li:nth-of-type(6) a.img:hover {
		background-position: -594px -150px;
	}
	
	#headermenu li:nth-of-type(7) a.img {
		width: 83px;
		background-position: -677px -100px;
	}
	
	#headermenu li:nth-of-type(7) a.img:hover {
		background-position: -677px -150px;
	}
	
	#headermenu li:nth-of-type(8) a.img {
		width: 106px;
		background-position: -761px -100px;
	}
	
	#headermenu li:nth-of-type(8) a.img:hover {
		background-position: -761px -150px;
	}
	
	#rightheader {
		display: none;
	}
	
	#mainvisual {
		width: 480px;
		margin-left: auto;
		margin-right: auto;
	}
	
	#slider {
		width: 480px;
		min-width: 480px;
		height: 270px;
		margin-left: auto;
		margin-right: auto;
	}

	#slider #thumbnail {
		padding: 0 10px;
	}

	#slider #thumbnail li img {
		width: 80px;
		height: 50px;
		margin: 10px 5px;
	}

	#contents {
		width: 436px;
		padding: 0 24px;
		border-radius: 5px;
		background: rgba(242,242,242,0.8);
		margin-left: auto;
		margin-right: auto;
	}

	#leftcontents {
		width: 436px;
		margin: 24px auto 0;
	}

	.feed .header {
		height: 40px;
		overflow: hidden;
		background: url('../img/common/ground.gif');
	}
	
	.feed .overwriteimg {
		margin: 0 10px;
		height: 40px;
	}
	
	.feed .overwriteimg .img {
		position: relative;
		width: 100%;
		height: 100%;
		display: block;
		background: url('../img/common/ground.gif');
		background-position: -410px -240px;	
	}
	
	#newsfeedarea .header {
		background-position: 0px -200px;
	}
	
	#newsfeedarea .overwriteimg {
		width: 74px;
	}
	
	#newsfeedarea a.img {
		background-position: 0px -240px;
	}
	
	#Gymkhana_newsfeed .header {
		background-position: 0px -200px;
	}
	
	#Gymkhana_newsfeed .overwriteimg {
		width: 118px;
	}
	
	#Gymkhana_newsfeed .img {
		background-position: -75px -240px;
	}
	
	#DartTrial_newsfeed .header {
		background-position: 0px -200px;
	}
	
	#DartTrial_newsfeed .overwriteimg {
		width: 100px;
	}
	
	#DartTrial_newsfeed .img {
		background-position: -194px -240px;
	}
	
	#Rally_newsfeed .header {
		background-position: 0px -200px;
	}
	
	#Rally_newsfeed .overwriteimg {
		width: 56px;
	}
	
	#Rally_newsfeed .img {
		background-position: -295px -240px;
	}
	
	#Race_newsfeed .header {
		background-position: 0px -200px;
	}
	
	#Race_newsfeed .overwriteimg {
		width: 56px;
	}
	
	#Race_newsfeed .img {
		background-position: -352px -240px;
	}
	
	#othernewsfeedarea > * > .newsfeed {
		height: 226px;
		overflow: scroll;
	}
	
	#Top_bannerarea img {
		width: 436px;
	}

	#rightcontents {
		width: 436px;
		margin: 0 auto 24px;
		text-align: center; 
	}
	
	
	#schedulearea .header {
		height: 40px;
		overflow: hidden;
		background: url('../img/common/ground.gif');
	}
	
	#schedulearea .overwriteimg {
		margin: 0 10px;
		height: 40px;
	}
	
	#schedulearea a.img {
		position: relative;
		width: 100%;
		height: 100%;
		display: block;
		background: url('../img/common/ground.gif');
	}

	footer {
		width: 436px;
		margin: 24px auto 0;
	}
	
	/* class */
	.selectbox button {
		width: 205px;
		width: 415px;
	}
	
	.FB_area {
		display: none;
	}

	.news {
		min-height: 0px;
	}
	
}


/*	Retina media query.
	Overrides styles for devices with a 
	device-pixel-ratio of 2+, such as iPhone 4.
-----------------------------------------------    */

@media 
	only screen and (-webkit-min-device-pixel-ratio: 2),
	only screen and (min-device-pixel-ratio: 2) {
	
	body {
	
	}
	
}