html,
button,
input,
select,
textarea {
    color: #222;
	}


html {
	background: #f4f9ff; /* for old browsers */
	border-top: 10px solid #835C39;

	color: #444;
    line-height: 1.4;
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Hiragino Sans", "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "Helvetica", "Arial", sans-serif;
	}


::-moz-selection {
    background: #c3f0f4;
    text-shadow: none;
	}

::selection {
    background: #c3f0f4;
    text-shadow: none;
	}






body {
	height: 100%;
	background-color: #FFF7F0;
	}

.container {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
	}


h1{	
	background: -webkit-linear-gradient(180deg, rgb(166, 125, 87), rgb(255, 247, 240));
	background: linear-gradient(180deg, rgb(166, 125, 87), rgb(255, 247, 240));
	}

h2 {
	color: #eee;
	font-size: 150%;
	font-weight: normal;
	line-height: 1.5em;
//	text-shadow: 0px 0px 4px #ddd;
	
	margin: 2em 2px 1em 2px;
	padding: 10px 15px 10px 15px;
	border-left: 15px solid #3d3898;
	box-shadow: 4px 4px 8px #ddd;

	background: -webkit-linear-gradient(0deg, rgb(102, 112, 160), rgb(73, 91, 136));
	background: linear-gradient(0deg, rgb(102, 112, 160), rgb(73, 91, 136));
	}

h3	{
	color:#05511e;
	font-size: 130%;
	font-weight:normal;
	line-height: 1.4em;
	margin: 3em 0.5em 0em 0.5em;
	border-bottom: 1px solid #05511e;
	}

h4	{
	font-weight: bold;
	font-size: 120%;
	color: #666;
	margin: 3em 0.8em 0 0.8em; 
	letter-spacing: 0.1em;
	}

h5	{
	font-weight: bold;
	font-size: 120%;
	color: #244979;
	padding-bottom: 8px;
	border-bottom: 1px solid #777;
	margin: 3em 0.6em 0em 0.6em;
	padding-left: 0.5em;
	padding-right: 0.5em;
	}

#content p {
	line-height: 1.8;
	margin: 1em;
	}
#content li {
	margin: 0 1em 1em 1em;
	}

i	{
	font-family: 'FontAwesome';
	font-style: normal;
	font-size: 120%;
	margin: 0 0.3em 0 0;
	display: inline-block;
	}


hr.style {
	border: 0;
	height: 1;
	margin-left: auto;
	margin-right: auto;
	width: 90%;
	background: #aaa;
	background-image: linear-gradient(to right, #eee, #aaa, #eee);
	}

a:link	{
	color: #08f;
	text-decoration: none;
	}

a:visited	{
	color: #08f;
	}
a:hover		{
	color: #08f;
	text-decoration: underline;
	}

.textright{
	text-align: right;
	}
.textcenter{
	text-align: center;
	}

.caption{
	font-style: italic;
	font-size: 0.8rem; 
	}


/* The Left and Right Columns */
/* Floating right and left normally, floats are cancelled in narrower screen. */
#content {
	width: 65%;
	float: left;
	}

#sidebar {
	width: 30%;
	float: right;
	padding: 0 5px 0 0;
	box-sizing: border-box;
	}

#twitterwidget	{
	margin: 30px 5px 0 5px;
	}



#footer {
	color: #fff;
	background-color: #835C39;
	min-height: 50px;
	text-align: center;
	clear: both;
	margin: 2em 0 0 0;
	padding: 1em ;
	}

#footer a	{
	color: #ada;
	}


/* The header and title logo */
#header h1 {
	margin: 0;
	padding: 0;
	}
#title {
	display: block;
	padding-top: 40px;
	padding-bottom: 40px;
	margin-bottom: 30px;
	margin-left: auto;
	margin-right: auto;
	}
	
/* Menubar only for narrow screen */
#menubar{
	display: none;
	}


/* The banner button of lime colour */
.banner {
	width: 80%;
	margin: 0 auto 2em auto;
	padding: 0.7em;
	border-radius: 4px;
	text-align: center;
	box-shadow: 2px 2px 4px rgba(200,200,200,0.5);
	
	background: #c6f2c6; /* Old browsers */
	/* IE9 SVG, needs conditional override of 'filter' to 'none' */
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2M2ZjJjNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM4ZGQzOGQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  #c6f2c6 0%, #8dd38d 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c6f2c6), color-stop(100%,#8dd38d)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #c6f2c6 0%,#8dd38d 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #c6f2c6 0%,#8dd38d 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #c6f2c6 0%,#8dd38d 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #c6f2c6 0%,#8dd38d 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c6f2c6', endColorstr='#8dd38d',GradientType=0 ); /* IE6-8 */
	}
.banner a {
	color: darkgreen;
	}
.banner a:hover {
	text-decoration: underline;
	text-shadow: 1px 1px 4px rgba(100,100,100,0.2);
	}
	
h2.banner {
	width: 93%;
	margin: 3em 2px;
	border: none;
	}



/* The note column updated by the script */
.notecolumn {
/* 	border: 5px solid #ada; */
	border: 5px solid #22984a;
	background-color: #fafafb;
	border-radius: 10px;
	padding: 1.5em 2em;
	margin: 10px 0px 15px 0px;
	box-shadow: 2px 2px 6px 2px silver;
	}

.notecolumn h3 {
	text-align: center;
	color: #3c995b;
	margin: 0 0 0.7em 0;
	padding: 0;
	font-size: 140%;
	border: none;
	box-shadow: none;
	background: transparent;
	}

.notecolumn ul {
	margin: 0;
	padding: 0 0 0 2em;
	}
.notecolumn li {
	margin: 0 0 0.3em 0;
	}

.notecolumn li:last-child {
	margin: 0;
	}



/* The columns on the homepage */
.optionalcolumn	{
	border: 3px solid #ada;
	border-radius: 10px;
	padding: 1em 1em 0 1em;
	margin: 8px;
	background-color: #fafafb;
	}


/* FA icons for the optional columns */
.optionalcolumn h3	{
	margin: 0;
	font-size: 50px;
	color: #063;
	border:transparent;
	background: transparent ;
	box-shadow: none;
	text-align: center;
	}
	
.optionalcolumn h4	{
	margin: 0 0 0 0;
	padding-bottom: 10px;
	text-align: center;
	border-bottom: 2px dashed #ada;
	}

	
/* Kijun and Kaisetu column */
.criterion {
	padding: 0 1em;
	margin: 14px; 
	
	border: 3px solid #ada;
	border-radius: 4px;
	background: rgba(220,250,230,0.2);
	}

.criterion h3 {
	border: 1px none pink;
	margin-top: 1em;
	margin-bottom: 1em;
	margin-left: -0.5em; /* for the icon on the left */
	font-weight: bold;
	color: steelblue;
	text-align:center;
	}

.commentary {
	padding-top: 10px;
	padding-right: 1em;
	padding-left: 0.5em;
	padding-bottom: 1em;
	margin: 12px; 
	border: 1px none #DDDDF1;
//	background: rgba(200,220,220,0.2);
//	box-shadow: 1px 1px 6px 3px rgba(125,125,125,0.1);

	font-size:  14px;
	}

.commentary h3{
	margin-top: 1em;
	font-size: 120%;
	font-weight: bold;
	color: #165A71;
	text-align: left;
	border: none;
	letter-spacing: 0.3em;
	}

/* Columns for Reservation Options */
.reservationoption {
	padding: 1em 0;
	margin: 14px; 
	border: 1px solid gainsboro;
	border-radius: 6px;
	background: rgba(200,220,220,0.2);
	box-shadow: 1px 1px 6px 2px rgba(200,200,200,0.1);
	}
.reservationoption h6{
	text-align:center;
	font-size: 130%;
	color: #555;
	text-shadow: 2px 2px 6px #ddd;
	}
.reservationoption .centericon{
	font-size: 220%;
	margin: 1em 0 -0.5em 0;
	color: #777;
	text-shadow: none;
 	}


/* Lawyers' profile column */

h3.repname {
	color: #444;
	font-weight: bold;
	border-bottom: 1px solid #777;
	margin: 0 1em 1em 1em;
	}

.lawyer_profile {
	display: inline-block;
	vertical-align: top;
	width:60%;
	margin: 0 5px;
	}

.lawyer_profile i {
	font-size: 0.9em;
	font-style: oblique;
	margin-left: 1em;
	margin-left:2em;
	margin-bottom:-1em;
	}

.lawyer_photo	{
	display: inline-block;
	vertical-align: top;
	text-align:center;
	font-weight:bold;
	}




/*** Sidebar menu ***/

#sidebar nav ul {
	margin: 5px;
	padding: 0;
	list-style: none;
	border-radius: 5px;
	
	background: -webkit-linear-gradient(180deg, rgb(162, 133, 110), rgb(183, 167, 158));
	background: linear-gradient(180deg, rgb(162, 133, 110), rgb(183, 167, 158));
	}

#sidebar nav li {
	border-top: 1px solid #aab;
	border-bottom: 1px solid #557;
	}
#sidebar nav li:first-child {
	border-top: none;
	border-radius: 5px 5px 0px 0px;
	}
#sidebar nav li:last-child {
	border-bottom: none;
	border-radius: 0px 0px 5px 5px;
	}

#sidebar nav i {
	margin: 0 0.6em 0 0;
	}

#sidebar nav li a {
	display: block;
	padding: 1em 1.5em;
	}

#sidebar nav li a:link, #sidebar li a:visited {
	color: #fff;
	text-decoration: none;
	text-shadow: 2px 2px 5px #050505;
	}
#sidebar nav li a:hover {
	color: #fff;
	background-color: #86622b;
	}

#sidebar nav li:first-child a:hover	{
	border-top: none;
	border-radius: 5px 5px 0px 0px;
	}
#sidebar nav li:last-child a:hover	{
	border-bottom: none;
	border-radius: 0px 0px 5px 5px;
	}


/* Remarks in the sidebar of the form page */
#sidebar .remarks {
	margin: 2em 2em 0 0;
	}
.remarks ul{
	background-color:transparent;
		}
.remarks li {
	color: #666;
	list-style-type: disc;
	font-size: 0.8em;
	margin-top: 0.8em;;
}


/* Put image to wrapped by text, or center in smaller screen */
img.wrapright {
		float: right;
		margin: 15px;
		}
		

/* For switching between wide and narrow screen */
.largescreeninline{
	display: inline;
	}
.smallscreeninline{
	display: none;
	}


/* -------------------- Media Queries -------------------- */

/*** screen width 980px and smaller ***/
@media screen and (max-width: 980px) {
	#content img {
//		max-width: 100% !important;
//		height: auto !important;
		}

	/* 10px margin added to the width of container makes 980px. */
	.container {
		margin: 0 10px;
		}

	}
/*** screen width 960px END ***/


/***  screen width 860px and smaller, just for profile column layout ***/
@media screen and (max-width: 860px) {
	.lawyer_profile {
		width: 95%;
		padding-right: 30px;
		}
	.lawyer_photo {
		width: 100%;
		}
	}


/*** screen width 667px iPhone 6 and smaller ***/
@media screen and (max-width: 667px) {

	#header img {
		max-width: 90% !important;
		height: auto !important;
		}
	#title {
		padding: 30px 0 10px 0 ;
		}
	
	#menubar {
		display: block;
		width: 100%;
		height: 22px;
		margin: 0;
		font-size: 14px;
		font-weight: bold;
		text-align: center;
		background: #495B88;
		box-shadow: 0px 2px 6px gray;	
		}
	
	#menubar a{
		color: #daeaff;
		text-shadow:2px 2px 2px rgba(71,71,71,0.8);
		}
	
	
	/* remove float and full width for mobile screen */
	#content, #sidebar {
		float: none;
		width: 100%;
		margin: 0 0 4em 0;
		}
	
	h2 {
		font-size: 140%;
		}
	
	img.wrapright {
		float:none;
		display: block;
	 	margin-left: auto;
    	margin-right: auto;
		}
	
	.largescreeninline {
		display: none;
		}
	.smallscreeninline {
		display: inline;
		}

	}
/*** screen width 667px END ***/
