/* FONTS ================================================= */

@font-face {
    font-family: 'UbuntuRegular';
    src: url('fonts/Ubuntu-R-webfont.eot');
    src: url('fonts/Ubuntu-R-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ubuntu-R-webfont.woff') format('woff'),
         url('fonts/Ubuntu-R-webfont.ttf') format('truetype'),
         url('fonts/Ubuntu-R-webfont.svg#UbuntuRegular') format('svg');
    font-weight: normal;
    font-style: normal;
	}

@font-face {
    font-family: 'UbuntuItalic';
    src: url('fonts/Ubuntu-RI-webfont.eot');
    src: url('fonts/Ubuntu-RI-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ubuntu-RI-webfont.woff') format('woff'),
         url('fonts/Ubuntu-RI-webfont.ttf') format('truetype'),
         url('fonts/Ubuntu-RI-webfont.svg#UbuntuItalic') format('svg');
    font-weight: normal;
    font-style: normal;
	}

@font-face {
    font-family: 'UbuntuBold';
    src: url('fonts/Ubuntu-B-webfont.eot');
    src: url('fonts/Ubuntu-B-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ubuntu-B-webfont.woff') format('woff'),
         url('fonts/Ubuntu-B-webfont.ttf') format('truetype'),
         url('fonts/Ubuntu-B-webfont.svg#UbuntuBold') format('svg');
    font-weight: normal;
    font-style: normal;
	}

@font-face {
    font-family: 'UbuntuBoldItalic';
    src: url('fonts/Ubuntu-BI-webfont.eot');
    src: url('fonts/Ubuntu-BI-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ubuntu-BI-webfont.woff') format('woff'),
         url('fonts/Ubuntu-BI-webfont.ttf') format('truetype'),
         url('fonts/Ubuntu-BI-webfont.svg#UbuntuBoldItalic') format('svg');
    font-weight: normal;
    font-style: normal;
	}

/* RESET ================================================= */	
	
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, 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, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {	
	margin: 0;
	padding: 0;
	border-spacing: 0;
	}

img {
	border: none;
	}
	
/* BODY ================================================= */
	
body {
	font-size: medium;	
	font-family: 'UbuntuRegular', Calibri, Tahoma, Geneva, Arial, Helvetica, Verdana, sans-serif, serif;
	line-height: 1.8em;
	background-image: url(../img/background_scales.png);
	background-repeat: repeat;
	background-attachment: fixed;
	}	
	
/* HEADER ================================================= */
	
div#page_top {
	width: 70%;
	min-width: 770px;
	min-height: 170px;
	margin: auto;
	background: #0099cc;
	box-shadow: 0 0.5em 0.313em 0.313em #b3b3b3;
	padding-top: 0.75em;
	}

div#page_top_wrapper {
	width: 90%;
	min-height: 170px;
	position: relative;
	margin: auto;
	}

nav.language_selection {
	float: right;
	line-height: 1em;
	}
	
nav.language_selection ul {
	list-style-type: none;
	}

nav.language_selection img {
	display: inline-block;
	vertical-align: middle;
	padding-right: 0.625em;
	}
	
nav.language_selection li {
	display: inline-block;
	}

nav.language_selection ul li a:link, nav.language_selection ul li a:visited {
	color: white;
	text-decoration: none;
	font-weight: normal;
	text-decoration: underline;
	background: #0099cc;
	font-size: 1em;
	}	
	
nav.language_selection ul li a:hover, nav.language_selection ul li a:active {
	font-weight: bold;
	text-decoration: none;
	}
	
header {
	max-width: 260px;
	max-height: 130px;
	}

header img {
	max-width: 100%;
	}
	
nav.site_nav {
	position: absolute;
	bottom: 0;
	right: 0;
	}	
	
nav.site_nav ul {
    list-style-type: none;
	float: right;
	}

nav.site_nav ul li {
	float: left;
	min-width: 2.500em;
	}

nav.site_nav ul li a:link, nav.site_nav ul li a:visited {
	color: white;
	text-decoration: none;
	font-weight: normal;
	background: #000000; /* for non-css3 browsers */
	background: -webkit-gradient(linear, left top, left bottom, from(#4c4c4c), to(#000000)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #4c4c4c,  #000000); /* for firefox 3.6+ */
	text-transform: uppercase;
	font-size: 1.1em;
	padding: 0.250em 0.938em 0.250em 0.938em;
	display: inline-block;
	letter-spacing: 0.02em;
	}
	
nav.site_nav ul li a.left_button {
	-webkit-border-top-left-radius: 0.313em;
	-moz-border-radius-topleft: 0.313em;
	border-top-left-radius: 0.313em;
	}
	
nav.site_nav ul li a.middle_button {
	}
	
nav.site_nav ul li a.home {
	border: none;
	background: url(../img/icon_home_black.png);
	background-size: 70%;
	background-repeat: no-repeat;
	background-position: center center;
	display: inline-block;
	min-height: 20px;
	}

nav.site_nav ul li a.right_button {
	-webkit-border-top-right-radius: 0.313em;
	-moz-border-radius-topright: 0.313em;
	border-top-right-radius: 0.313em;
	}

nav.site_nav ul li a:hover, nav.site_nav ul li a:active  {
	color: #000000;
	background: #ffffff; /* for non-css3 browsers */

	background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#ffffff)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #f2f2f2,  #ffffff); /* for firefox 3.6+ */
	}

nav.site_nav ul li a.home:hover, nav.site_nav ul li a.home:active {
	border: none;
	background: url(../img/icon_home_green.png);
	background-size: 70%;
	background-repeat: no-repeat;
	background-position: center center;
	}	

li#selected > a {
	font-weight: bold;
	color: #006083;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1.1em;
	background: #ffffff; /* for non-css3 browsers */

	background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#ffffff)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #f2f2f2,  #ffffff); /* for firefox 3.6+ */
	}
	
	
/* PAGE CONTENT ================================================= */	
	
div#page_content {
	margin: auto;
	background: #FFFFFF;
	width: 70%;
	min-width: 770px;	
	box-shadow: 0 0.500em 0.313em 0.313em #b3b3b3;
	clear: both;
	}

section {
	width: 90%;
	margin: auto;
	padding-bottom: 3.75em;
	min-height: 800px;
	}

div#welcome_box {
	padding-top: 5%;
	}
	
div#welcome {
	position: relative;
	width: 100%;
	height: 300px;
	margin: auto;
	background: url(../img/banner_rice.png);
	}

div#welcome_text {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 80px;
	background: black;
	display: table;
	opacity: 0.9;
	}

div#welcome_text h1 {
	display: table-cell;
    vertical-align: middle;
	text-align: center;
	font-size: 2em;
	color: #ffffff;
	}

div#welcome_text h1 strong {
	font-weight: bold;
	color: #00b0f0;
	}
	
article {
	width: 75%;
	display: inline-block;
	float: left;
	margin: auto;
	}
	
article#presentation {
	width: 100%;
	}

article aside {
    width: 30%;
    text-align: center;
	display: inline-block;
	float: left;
	}

article aside.left_col {
	}
	
article aside.middle_col {
	margin-left: 5%;
	margin-right: 5%;
	}

article aside.right_col {
	}
	
article h1 {
	padding-top: 1.250em;
	font-size: 2.2em;
	color: #006083;
	}
	
article aside > h2 {
	padding-top: 0em;
	font-size: 1.7em;
	color: #006083;
	}
	
article h2 {
	padding-top: 1.250em;
	padding-bottom: 0.25em;
	font-size: 1.7em;
	color: #006083;
	box-shadow: 0 0.438em 0.313em -0.313em #6BF398;
	}	

article h3 {
	padding-top: 1.250em;
	padding-bottom: 0.25em;
	font-size: 1.5em;
	color: #006083;
	box-shadow: 0 0.438em 0.313em -0.313em #f358ca;
	}	

article h4 {
	padding-top: 1.250em;
	font-size: 1.3em;
	color: #006083;
	}

article h5 {
	padding-top: 1.250em;
	font-size: 1.1em;
	color: #006083;
	font-weight: bold;
	}	

article h6 {
	padding-top: 1.250em;
	font-size: 1.1em;
	color: #000000;
	font-weight: bold;
	}	
	
article p {
	padding-top: 1em;
	font-size: 1.1em;
	text-align: justify;
	clear: left;
	}	

article > ul li {
	text-align: justify;
	}	
	
article a, article a:visited {
	font-weight: normal;
	color: #0099cc;
	text-decoration: underline;
	}

article a:hover, article a:active {
	font-weight: bold;
	color: #0099cc;
	text-decoration: none;
	}

.section_kanji {
	margin-top: 1.25em;
	display:block;
	height: 115px;
	background:transparent url('../img/logo_section_kanji.png') center top no-repeat;
	background-size: contain;
	}

.section_kanji:hover {
   background-image: url('../img/logo_section_kanji_blue.png');
	}

.section_grammar {
	margin-top: 1.25em;
	display:block;
	height: 115px;
	background:transparent url('../img/logo_section_grammar.png') center top no-repeat;
	background-size: contain;
	}

.section_grammar:hover {
   background-image: url('../img/logo_section_grammar_blue.png');
	}

.section_lessons {
	margin-top: 1.25em;
	display:block;
	height: 115px;
	background:transparent url('../img/logo_section_lessons.png') center top no-repeat;
	background-size: contain;
	}

.section_lessons:hover {
   background-image: url('../img/logo_section_lessons_blue.png');
	}	
	
.section_vocab {
	margin-top: 1.25em;
	display:block;
	height: 115px;
	background:transparent url('../img/logo_section_vocab.png') center top no-repeat;
	background-size: contain;
	}

.section_vocab:hover {
   background-image: url('../img/logo_section_vocab_blue.png');
	}

.section_guide {
	margin-top: 1.25em;
	display:block;
	height: 115px;
	background:transparent url('../img/logo_section_guide.png') center top no-repeat;
	background-size: contain;
	}

.section_guide:hover {
   background-image: url('../img/logo_section_guide_blue.png');
	}

.section_updates {
	margin-top: 1.25em;
	display:block;
	height: 115px;
	background:transparent url('../img/logo_section_updates.png') center top no-repeat;
	background-size: contain;
	}

.section_updates:hover {
   background-image: url('../img/logo_section_updates_blue.png');
	}
	
strong {
	font-weight: bold;
	}

.JP {	
	color: #006083;	
	font-weight: bold;
	}
	
.JP2 {
	color: #006083;
	font-size: 1.3em;
	}
	
.JP3 {
	color: #006083;
	font-size: 1.6em;
	}

.JP2, .JP3 {
	font-family: 'Meiryo UI','Meiryo','MS PGothic', 'Verdana',sans-serif;
	}	
	
p.note {
	font-size: 0.9em;
	}
	
article img {
	max-width: 90%;
	padding-top: 1.250em;
	}

img.right {
	float: right;
	}	

table {
    border-collapse: collapse;
	width: 90%;
	margin: 1em auto 0 auto;
	}

td {
    border: 1px solid #646464;
	min-width: 10%;
	padding: 1em 0.125em 1em 0.125em;
	text-align: center;
	font-size: 1.1em;
	vertical-align: middle;
	}	

td.table_image {
	min-width: 1%;
	}	

td.advantage {
	background-color: #cef9dd;
	text-align: left;
	}	

td.drawback {
	background-color: #f3a1ae;
	text-align: left;
	}
	
th {
    border: 1px solid #646464;
	min-width: 18%;
	padding: 1em 0.125em 1em 0.125em;
	vertical-align: middle;
	text-align: center;
	font-size: 1.1em;	
	}	

table.vocabtable td {
    border: 1px solid #646464;
	min-width: 18%;
	padding: 0.125em 0.125em 0.125em 1em;
	text-align: left;
	font-size: 1em;
	vertical-align: middle;
	}		

table.vocabtable th {
    border: 1px solid #646464;
	min-width: 18%;
	padding: 0.125em 0.125em 0.125em 0.125em;
	vertical-align: middle;
	text-align: center;
	font-size: 1.1em;	
	}
	
article > ul {
	font-size: 1.1em;
	}

figure img {
	display: block;
	margin: 0 auto;
	padding: 0.5em 0 0.5em 0;
	max-width: 100%;
	}	

figcaption {
	display: block;
	margin: 0 auto;
	font-style: italic;
	font-size: 0.9em;
	padding-top: 0em;
	text-align: center;
	}
	
.kanji {
	position: relative;
	cursor: help;
	border-bottom: dashed 1px #00b0f0;
	}
	
.ruby {
	display: none;
	}

.kanji:hover {
	text-shadow: 0 0 1px #00b0f0;}	
	
.kanji:hover .ruby {
	display: block;
	position: absolute;
	z-index: 1;
	left: 0px;
	background: black;
	color: #ffffff;
	text-align: center;
	white-space: nowrap;
	padding: 4px 8px 4px 8px;
	margin-top: 8px;
	-moz-border-radius: 0.188em;
	-webkit-border-radius: 0.188em;
	border-radius: 0.188em;    
	}

.ruby:before {
	content: ' ';
	position: absolute;
	width: 0; 
	height: 0; 
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 10px solid black;
	margin-top: 0;
	left: 0;
	top: -8px;
	}

div.youtube {
	padding-top: 1em;
	text-align: center;
	position: relative;
	margin-top: 1em;
    padding-bottom: 56.25%;
    height: 0; 
	overflow: hidden;
	}

div.youtube iframe, div.youtube object, div.youtube embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}	
	
iframe {
	border: 0;
	}	

section p {
	clear: both;
	}

/* PAGE CONTENT RIGHT COLUMN ================================================= */	

nav.section_nav {
	padding-top: 2.250em;
	display: inline-block;
	float: right;
	width: 20%;
	}

nav.section_nav ul {
    list-style-type: none;
	}
	
nav.section_nav ul li {
	width: 100%;
	overflow: hidden;
	}

nav.section_nav ul li a:link, nav.section_nav ul li a:visited {
	display: block;
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	background: #000000;

	background: -webkit-gradient(linear, left top, left bottom, from(#4c4c4c), to(#000000)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #4c4c4c,  #000000); /* for firefox 3.6+ */
	color: white;
	text-decoration: none;
	text-shadow: 0.188em 0.188em 0.188em #000000;
	font-weight: normal;
	text-transform: uppercase;
	text-align: center;
	font-size: 1.1em;
	letter-spacing: 0em;
	line-height: 2em;
	padding: 0.438em 0.125em 0.438em 0.125em;
	margin-bottom: 0.375em;
	opacity: 0.65;
	transition: opacity 1s;
	box-shadow: 0 0.063em 0.063em 0.063em #b3b3b3;
	}

nav.section_nav ul li a:hover, nav.section_nav ul li a:active {
	opacity: 1;
	}
	
nav.section_nav p {
	text-transform: uppercase;
	text-align: center;
	}

nav.section_nav img {
	max-width: 99%;
	display: block;
	margin: 0 auto 0.5em auto;
	}	
	
nav.section_nav ul li a span.comingsoon {
	text-transform: none;
	font-size: 0.8em;
	}	
	
li#selected2 > a {
	font-weight: bold;
	color: #6BF398;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1.1em;
	background: #000000;

	background: -webkit-gradient(linear, left top, left bottom, from(#4c4c4c), to(#000000)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #4c4c4c,  #000000); /* for firefox 3.6+ */
	opacity: 1;
	}	
	
ul#article_nav {
	display: block;
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	box-shadow: 0 0 0.125em 0.125em #6BF398;
	padding: 0;
	margin-top: 0.125em;
	margin-left: 0.125em;
	margin-right: 0.125em;
	margin-bottom: 0.375em;	
	}

ul#article_nav li a:link, ul#article_nav li a:visited {
	display: block;
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	background: white;
	color: #0099cc;
	text-decoration: none;
	font-weight: bold;
	text-transform: none;
	text-align: left;
	font-size: 1em;
	letter-spacing: 0em;
	padding: 0em 0.25em 0em 0.25em;
	margin-bottom: 0;
	transition: background 0s;
	text-shadow: none;
	box-shadow: none;
	opacity: 1;
	} 	

ul#article_nav li a:hover, ul#article_nav li a:active {
	background: #000000;

	background: -webkit-gradient(linear, left top, left bottom, from(#4c4c4c), to(#000000)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #4c4c4c,  #000000); /* for firefox 3.6+ */
	color: #41c2f1;
	}

a#back2top:link, a#back2top:visited {
	position: fixed;
	bottom: 1%;
	right: 1%;
	-webkit-border-radius: 0.188em;
	-moz-border-radius: 0.188em;
	border-radius: 0.188em;
	background: #cccccc;
	color: black;
	text-decoration: none;
	font-weight: normal;
	text-transform: none;
	text-align: center;
	font-size: 2em;
	line-height: 0.4em;
	padding: 0.25em;
	box-shadow: 0 0.063em 0.063em 0.063em #b3b3b3;
	transition-property: background, color;
	transition-duration: 0.5s;
	}	

a#back2top:hover, a#back2top:active {
	background: black;
	color: #41c2f1;
	}

div#announcement {
	padding-top: 2.250em;
	display: inline-block;
	float: right;
	width: 20%;
	
	}

div#announcement img {
	max-width: 99%;
	display: block;
	margin: 0 auto 0.5em auto;
	}	

div#announcement p {
	text-align: center;
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	box-shadow: 0 0 0.125em 0.125em #f358ca;
	padding: 0.25em;
	margin-bottom: 0.25em;
	background: #f9abe4;

	background: -webkit-gradient(linear, left top, left bottom, from(#fdeef9), to(#f9abe4)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #fdeef9,  #f9abe4); /* for firefox 3.6+ */
	}	

div#google_adsense {
	padding-top: 2.250em;
	display: inline-block;
	float: right;
	width: 20%;
	text-align: center;
	}
	
.back2top_text {
	font-size: 0.375em;
	line-height: 0.4em;
	}	
	
/* FORM ================================================= */

form {
	border: solid 0.125em #6BF398;	
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	padding-left: 1em;
	margin-top: 1em;
	}
	
label {
	display: block;
	}

input, select {
	display: block;
	width: 50%;
	height: 1.8em;
	border: solid 0.125em #646464;	
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	font-size: 1.1em;
	}	

textarea {
	display: block;
	width: 80%;
	min-height: 18em;
	border: solid 0.125em #646464;	
	-webkit-border-radius: 0.250em;
	-moz-border-radius: 0.250em;
	border-radius: 0.250em;
	font-size: 1.1em;
	resize: none;
	overflow: auto;
	padding: 0.5em;
	}	
	
button {
	display: block;
	margin: 1em 0em 1em 30%;
	width: auto;
	padding: 0.250em 1em 0.250em 1em;
	font-size: 1.2em;
	}

.texticon {
	font-size: 1.5em;
	}	

.antispam { display:none;}

form#paypal {
	border: none;
	margin: 0;
	padding: 0.5em 0 0 0;
	}

form#paypal > input, form#paypal > select {
	border: 0;
	display: inline;
	height: auto;
	width: auto;
	}	

form#paypal > input:hover {
	box-shadow: 0 0 10px -1px #00b0f0;
	}	

/* SITE MAP ================================================= */

ul#sitemap {
	font-size: 1.5em;
	}

ul#sitemap li {
	padding-left: 1em;
	font-size: 0.9em;
	}	

ul#sitemap ul {
	margin-bottom: 0.5em;
	}
	
/* FOOTER ================================================= */
	
div#page_bottom {
	width:70%;
	min-width: 770px;
	margin: auto;
	padding-top: 1.250em;
	padding-bottom: 1.250em;
	background: #000000;

	background: -webkit-gradient(linear, left top, left bottom, from(#191919), to(#000000)); /* for webkit browsers */
	background: -moz-linear-gradient(top,  #191919,  #000000); /* for firefox 3.6+ */
	box-shadow: 0 0.500em 0.313em 0.313em #b3b3b3;
	}

footer {
	width:90%;
	margin: auto;
	}

footer aside {
    width: 30%;
    text-align: center;
	display: inline-block;
	float: left;
	}	

footer aside.left_col {
	}
	
footer aside.middle_col {
	margin-left: 5%;
	margin-right: 5%;
	}

footer aside.right_col {
	}	

footer aside ul li a:hover img {
	box-shadow: 0 0 10px -1px #00b0f0;
	}

footer p {
	text-align: center;
	color: #ffffff;
	clear: both;
	font-size: 1.1em;
	}

footer p a {
	color: white;
	font-weight: normal;
	text-decoration: underline;
	}	
	
footer p a:hover, footer p a:active {
	font-weight: bold;
	text-decoration: none;
	}	
	
footer p.copyright {
	font-size: 1em;
	}
	
footer ul {
	list-style-type: none;
	}

footer ul li {
	display: inline;
	}