
/* official darkest #383838 - not for bg, use lighter gradients instead */
/* flat silver #c1c1c1, hv #6d6d6d */
/* light cream #fbfaf7 */
/* tim-lime #b1cb57 */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* tagged elements */

html {
	font-family: Roboto,Calibri,Arial,sans-serif;
	font-size: 24px; /* 1.5em */
	font-weight: 300;
}

body {
	background-color: #fbfaf7;
	color: #383838;
}

a {
	color: #b1cb57;
	text-decoration: none;
	font-weight: bolder;
	cursor: pointer;
}

a:hover {
	background: linear-gradient(to bottom, #8a8a8a 0%, #5b5b5b 100%);
}

a > button {
	text-decoration: none;
}

nav {
	margin-bottom: 1em;
}

img { /* use always wrapper for streched images */
	width: 100%;
	height: auto;
}

input, select, textarea, button {
	font-family: Roboto,Calibri,Arial,sans-serif;
}

input, select, textarea {
	font-size: 0.9rem;
	font-weight: 300;
	padding: 5px;
	border-radius: 3px;
	border: 1px solid #383838;
	background-color: #f9f9f9;
	transition: all 0.3s ease-in-out;
}

input:focus, select:focus, textarea:focus {
	box-shadow: 0px 0px 5px 4px #b1cb57;
	outline: 0;
}

input:hover, select:hover, textarea:hover {
	background-color: #fbfaf7;
}

input[type=checkbox] {
	transform: scale(1.5);
	margin: 5px;
}

select, input[type=checkbox], label[for] {
	cursor: pointer;
}

button,
div.ttl_btn  {
	font-size: 1rem;
	font-weight: 400;
	border-radius: 4px;
	border: 1px solid #383838;
	cursor: pointer;
	color: #fff;
	padding: 3px 10px 3px 10px;
	background: linear-gradient(to bottom, #8a8a8a 0%, #5b5b5b 100%);
	outline: 0;
}

button:hover,
div.ttl_btn:hover {
	background: #c1c1c1;
	color: #383838;
}

button:focus {
	outline: 0;
}

p, section {
	font-size: 0.9rem;
	text-align: justify;
}

label {
	font-size: 0.9rem;
	margin-bottom: 4px;
}

h1 {
	font-size: 2.5rem;
	font-weight: 500;
}

h2 {
	font-size: 2.0rem;
	font-weight: 500;
}

h3 {
	font-size: 1.6rem;
	font-weight: 500;
}

h4 { 
	font-size: 1.3rem;
	font-weight: 500;
}

h5 { 
	font-size: 1rem;
	font-weight: 500;
}

h6 { 
	font-size: 0.9rem;
	font-weight: 500;
}

article {
	margin-top: 1.3em;
}

section {
	margin-top: 0.8em;
}

article > h3,
article > h6 {
	transition: color ease-in-out 0.3s;
}

article > h3::before,
article > h6::before {
	content: '';
    width: 0;
    display: block;
	visibility: hidden;
    border-top: 3px solid #b1cb57;
    margin: 0 0 0.5em 0;
    transition: all ease-in-out .5s;
}

article > h3::after,
article > h6::after {
	content: '';
    width: 100%;
    display: block;
    border-bottom: 3px solid #b1cb57;
    margin: 0.5em 0 0.5em 0;
    transition: all ease-in-out .5s;
}

article:hover > h3::before,
article:hover > h6::before {
	width: 65%;
	visibility: visible;
	border-top: 3px solid #383838;
}

article:hover > h3::after,
article:hover > h6::after {
	width: 35%;
	margin-left: 65%;
	border-bottom: 3px solid #383838;
}

article:hover > h3,
article:hover > h6 {
	color: #b1cb57;
}

article > section > h3,
article > section > h4,
article > section > h5,
article > section > h6 {
	margin: 1em 0 1em 0;
}

article > section > section > h5,
article > section > section > h6,
article > section > section > section > h6 {
	margin: 1em 0 1em 0;
}

article > section > section > section > h6 {
	font-style: italic;
}

article > section > section {
	padding-left: 1em;
}

article > section > h4::before {
	content: '';
	background-color: #b1cb57;
	border: 1px solid #383838;
	width:16px;
	height: 16px;
	border-radius: 50%;
	margin-right: 0.5em;
	display: inline-block;
	transition: background-color 0.5s ease-in;
}

article > section:target > h4::before {
	background-color: #383838;
}

table {
	border-collapse: collapse;
	width: 100%;
}

table td {
	border: 1px solid #6d6d6d;
	padding: 4px;
}

table > tbody tr:nth-child(2n) {
    background-color: #fbfaf7;
}

table > tbody tr:hover {
	background-color: #eeeeeb;
}

table > thead {
	border-left: 1px solid #6d6d6d;
	border-right: 1px solid #6d6d6d;
}

table > thead > tr {
	background: linear-gradient(to bottom, #8a8a8a 0%, #5b5b5b 100%);
	color: #fff;
}

table > thead th {
	font-weight: 400;
	padding-top: 1px;
	padding-bottom: 1px;
}

canvas {
	display: block;
	width: 100%;
}

/* specified elements */

img.ttl_gallery,
div.ttl_wrapper_fourth_16_9
{
	cursor: pointer;
}

img.ttl_fit_screen {
	width: auto;
	height: auto;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	max-width: 50%;
	max-height: 50%;
	transform: scale(1.8);
	box-shadow: 2px 2px #383838;
}

div#ttl_status_bar {
	border-bottom: 1px solid #c1c1c1;
	box-shadow: inset 0px 2px 4px -1px #ebebeb;
}

div#ttl_status_bar form {
	display: inline;
}

div#ttl_status_bar form a.ttl_link_tab::after {
	content: '|';
	color: #383838;
	margin-left: 0.3em;
}

div#ttl_side_nav {
	position: fixed;
	right: 0;
	top: 10%;
}

div#ttl_side_nav > div {
	display: block;
	width: 60px;
	height: 60px;
	cursor: pointer;
	margin: 0 0 5px 0;
}

div#ttl_arrow_up {
	width: 50px;
    height: 50px;
   	position: fixed;
    right: 0;
	bottom: 0;
	background-image: url("img/top.jpg");
	background-size: cover;
	margin: 0 3px 3px 0;
	cursor: pointer;
	opacity: 0.8;
}

div#ttl_content_wrapper {
	width: 1300px;
	background-color: #fff;
	padding: 1% 1em 1% 1em;
	margin: 0px auto 0px auto;
	box-shadow: 1px 0px 3px #d8d8d7, -1px 0px 3px #d8d8d7;
	border-top: 2px solid #b1cb57;
}

div#ttl_wrapper_full {
	width: 1500px;
	margin: 0px auto 0px auto;
	padding: 1.8% 0px 1.8% 0px;
}

div#ttl_input_wrapper {
	width: 100%;
	padding: 20px 10% 30px 10%;
	margin-top: 1em;
}

div#ttl_wrapper_top {
	margin-bottom: 1em;
}

div#ttl_logo_wrapper {
	display: inline-block;
	width: 35%;
	max-width: 700px;
	height: auto;
}

div#ttl_logo_wrapper > img:hover {
	cursor: pointer;
}

div#ttl_header_beside {
	display: inline-block;
	width: 62%;
	padding-top: 2%;
	float: right;
}

div#ttl_header_beside > h1 {
	font-size: 2.9rem;
	display: inline-block;
}

div#ttl_header_beside > h2 {
	font-size: 3.0rem;
	display: inline-block;
}

div#ttl_header_beside > h3 {
	margin-top: 0.5em;
	font-size: 2.8rem;
}

div#ttl_header_beside > h3 {
	animation-name: header_blend;
	animation-duration: 2s;
	animation-delay: 0s;
}

div#ttl_header_beside > h3::before {
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	margin-bottom: 0.2em;
	background: linear-gradient(to right, #fff 0%, #383838 30%, #383838 70%, #fff 100%);
	transition: all ease-in-out 0.3s;
}

div#ttl_header_beside > h3:hover::before {
	margin-left: 10%;
	margin-right: 10%;
	width: 80%;
}

div#ttl_header_beside > h3 {
	color: #6d6d6d;
	opacity: 0.0;
	animation-name: header_blend;
	animation-duration: 2s;
	animation-delay: 1s;
	animation-fill-mode: forwards;
}

div.ttl_wrapper_half {
	display: inline-block;
	width: 49%;
}

div.ttl_wrapper_third {
	display: inline-block;
	width: 32%;
}

div.ttl_wrapper_fourth {
	display: inline-block;
	width: 24%;
}

div.ttl_gallery_wrapper {
	margin-bottom: -6px;
}

div.ttl_thumbnail_gallery {
	margin-top: 1.5em;
}

div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth {
    box-shadow: 0px 0px 2px 1px #c1c1c1;
	margin: 0.5%;
}

div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9 > span {
	font-weight: bolder;
	font-size: 0.8rem;
	display: inline-block;
}

div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9 {
    box-shadow: 0px 0px 2px 1px #c1c1c1;
	margin: 0.5%;
	display: inline-block;
	width: 23.3%;
}

div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth:hover,
div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9:hover {
	box-shadow: 0px 0px 2px 2px #b1cb57;
	margin: 0;
	width: 25%;
	padding-bottom: 0.5%;
}

div.ttl_btn {
	margin: 0 0.5em 0.5em 0;
	display: inline-block;
}

div.ttl_btn > div.ttl_trigger { 
	background-color: #b1cb57;
	border: 1px solid #383838;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	margin-right: 0.5em;
	display: inline-block;
}

div.ttl_btn > div.ttl_trigger:hover + div.ttl_menu {
	display: block;
}

div.ttl_btn > div.ttl_menu {
	display: none;
	position: absolute;
	padding-top: 12px;
	margin-top: -10px;
}

div.ttl_btn > div.ttl_menu:hover {
	display: block;
}

div.ttl_btn > div.ttl_menu > div {
	padding: 5px;
	background-color: #c1c1c1;
	border: 1px solid #383838;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

div.ttl_btn > div.ttl_menu > div > a {
	display: block;
	width: 100%;
}

div.ttl_btn > div.ttl_menu > div > a > button {
	width: 100%;
}
	
div.ttl_btn > div.ttl_menu > div > a > button:hover {
	background-color: #b1cb57;
}

div.ttl_menu a {
	text-decoration: none;
}

div.ttl_btn_back::before {
	content: "< ";
	color: #b1cb57;
    font-weight: bolder;
	margin-right: 3px;
	text-shadow: 1px 1px #383838, -1px 1px #383838, 1px -1px #383838, -1px -1px #383838, 0px 1px #383838, 1px 0px #383838, 0px -1px #383838, -1px 0px #383838;
}

div.ttl_btn_back:hover::before {
	color: #383838;
	text-shadow: none;
}

div#ttl_gallery_fs {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-color: rgba(56,56,56,.95);
	display: none;
}

div#ttl_gallery_fs > h5 {
	color: #fff;
	display: inline-block;
	margin-left: 5px;
}

div#ttl_gallery_fs > div.ttl_navigator {
	position: absolute;
	color: #383838;
	font-weight: bold;
	font-size: 2.8rem;
	font-family: "Consolas";
	cursor: pointer;
	text-shadow: 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff, 0px 1px #fff, 0px -1px #fff, 1px 0px #fff, -1px 0px #fff;
}

div#ttl_gallery_fs > div.ttl_navigator:hover {
	text-shadow: 1px 1px #c1c1c1, -1px -1px #c1c1c1, 1px -1px #c1c1c1, -1px 1px #c1c1c1, 0px 1px #c1c1c1, 0px -1px #c1c1c1, 1px 0px #c1c1c1, -1px 0px #c1c1c1, 0px 0px 10px #b1cb57;
}

div#ttl_gallery_fs > div#ttl_hide {
	top: 0;
	right: 0;
	margin-right: 0.3em;
    z-index: 102;
}

div#ttl_gallery_fs > div#ttl_next {
	top: 45%;
	right: 0;
    z-index: 101;
	margin-right: 1px;
}

div#ttl_gallery_fs > div#ttl_prev {
	top: 45%;
	left: 0;
    z-index: 100;
	margin-left: 1px;
}

div.ttl_showroom_full {
	display: block;
	width: 100%;
	margin-top: 1.2em;
	margin-bottom: 1.2em;
}

div.ttl_showroom_half {
	display: inline-block;
	width: 50%;
	margin-top: 1.2em;
	margin-bottom: 1.2em;
}

div.ttl_half_standalone {
	display: block;
	width: 70%;
	margin: 1.2em auto 1.2em auto;
}

div.ttl_model_header {
	width: 100%;
	background: linear-gradient(to bottom, #8a8a8a 0%, #5b5b5b 100%);
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 400;
	padding: 4px 6px 4px 6px;
}

div.ttl_model_header_link:hover {
	text-decoration: underline;
}

div.ttl_model_nav {
	text-align: right;
	background-color: #c1c1c1;
}

div.ttl_model_nav > a {
	background: none;
}

div.ttl_model_nav > button.ttl_nav_selected {
	background: #c1c1c1;
	color: #383838;
	border: 1px solid #6d6d6d;
	cursor: not-allowed;
}

div.ttl_model_nav > button,
div.ttl_model_nav > a > button { 
	border-radius: 0;
}

div.ttl_model_nav > button:hover,
div.ttl_model_nav > a > button:hover { 
	background-color: #b1cb57;
}

div.ttl_model_nav > button.ttl_nav_selected:hover {
	background: #c1c1c1;
}

/* generic */

.ttl_bold {
	font-weight: bolder;
}

.ttl_small {
	font-size: 0.8rem;
}

.ttl_error {
	color: #de1010;
	font-weight: bolder;
}

.ttl_block {
	display: block;
}

.ttl_full {
	width: 100%;
}

.ttl_green {
	color: #b1cb57;
}

.ttl_frame {
	border: 1px solid #c1c1c1;
}

.ttl_frame:hover {
	border: 1px solid #6d6d6d;
}

/* screen queries for content wrapping rules */
/* define own inline-wrapper per page in corresponding styles.css */

@media (min-width: 641px) and (max-width: 1300px) /* content wrapper */
{
	div#ttl_content_wrapper {
		width: 100%;
		margin: 0;
	}
}

@media (min-width: 641px) and (max-width: 1500px) /* full wrapper */
{
	div#ttl_wrapper_full {
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 1490px) /* side navigation */
{
	div#ttl_side_nav {
		position: static;
		margin-bottom: -6px;
	}
	div#ttl_side_nav > div {
		display: inline-block;
		margin: 0 5px 0 0;
	}
}

@media (min-width: 2400px)  /* up to 4K and 21:9 */
{
	html {
		font-size: 32px;
	}
	div#ttl_content_wrapper {
		width: 65%
	}
	div#ttl_wrapper_full {
		width: 75%
	}
    	div#ttl_header_beside > h3 { 	
		margin-top: 0.8em;
	}
	div#ttl_side_nav > div {
		width: 80px;
		height: 80px;
		margin: 0 0 10px 0;
	}
	div.ttl_wrapper_fourth,
	div.ttl_wrapper_fourth_16_9 {
		width: 15.3%;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth:hover,
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9:hover {
		width: 16.3%;
	}
	div.ttl_gallery_wrapper {
        margin-bottom: -7px;
	}
}

@media (min-width: 641px) and (max-width: 1200px) /* Tab and portrait-phone*/
{
	html {
		font-size: 22px;
	}
	div#ttl_header_beside > h1 {
		font-size: 6vw;
    }
	div#ttl_header_beside > h2 {
		font-size: 5vw;
	}
	div#ttl_header_beside > h3 {
		font-size: 5vw;
	}
	div#ttl_side_nav {
		margin-bottom: -7px;
	}
	div.ttl_wrapper_fourth {
		width: 49%;
		max-width: 600px;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9 {
		width: 48.5%;
		max-width: 600px;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth:hover {
		width: 50%;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9:hover {
		width: 49%;
	}
}

@media (max-width: 640px) /* smartphone breaks */
{
	html {
		font-size: 20px;
	}
	button, div.ttl_btn {
		display: block;
		width: 100%;
		padding: 2px 0px 2px 0px;
		text-align: center;
	}
	table > thead {
		display: none;
	}
	nav > div.ttl_btn {
		margin: 0 0 0.5em 0;
		display: block;
    	}
	div#ttl_content_wrapper {
		width: 100%;
		min-width: 320px;
		margin: 0;
		padding: 20px 10px 44px 10px;
	}
	div#ttl_input_wrapper {
		padding: 10px;
	}
	div#ttl_logo_wrapper {
		display: block;
		margin: 0 auto 0 auto;
		width: 100%;
	}
	div#ttl_wrapper_full {
		width: 100%;
		min-width: 320px;
		margin: 0;
		padding: 20px 0px 44px 0px;
	}
	div#ttl_header_beside {
		width: 100%;
		display: block;
		float: none;
		padding-top: 0;
	}
	div#ttl_header_beside > h1,
	div#ttl_header_beside > h2 {
		width: 100%;
		font-size: 1.8rem;
		text-align: center;
	}
	div#ttl_header_beside > h3 {
		font-size: 1.7rem;
		margin-top: 0.4em;
		text-align: center;
	}
	div#ttl_header_beside > h4 {
		font-size: 1rem;
		text-align: center;
	}
	div#ttl_arrow_up {
		width: 40px;
		height: 40px;
	}
	div#ttl_side_nav {
		margin-bottom: -5px;
	}
	div.ttl_wrapper_half,
	div.ttl_wrapper_third,
    div.ttl_wrapper_fourth {
		display: block;
		width: 100%;
		margin: 3% 0 3% 0;
		max-width: none;
	}
	div.ttl_showroom_half,
    div.ttl_half_standalone	{
		display: inline-block;
		width: 100%;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth {
		margin: 3% 0 3% 0;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth:hover {
		width: 100%;
		padding-bottom: 0;
	}
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9,
	div.ttl_thumbnail_gallery > div.ttl_wrapper_fourth_16_9:hover {
		width: 49%;
		max-width: 600px;
		margin: 1% 0 1% 0;
		padding: 0;
	}
	div.ttl_btn > div.ttl_menu {
		position: relative;
	}
	div.ttl_btn > div.ttl_trigger {
		position: absolute;
		left: 30px;
		margin-top: 2px;
	}
	div.ttl_btn > div.ttl_menu > div {
		border: none;
	}
	div.ttl_btn_back::before {
		position: absolute;
		left: 32px;
	}
}

@keyframes header_blend
{
	0% {
		opacity: 0.0;
		letter-spacing: 4px;
	}
	100% {
		opacity: 1.0;
		letter-spacing: initial;
	}
}
