/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@import url(http://fonts.googleapis.com/earlyaccess/notosansjapanese.css);

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
}

p{
	font-size: 1em;
    line-height: 2;
	font-family: 'Noto Sans Japanese', sans-serif;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Parallax Scroll
   ========================================================================== */
body, html {
	height: 100%;
	min-height: 780px!important;
	background-color: #EAEAEA!important;
}
.no-js {
	padding-top: 106px;
}
h2 {
	margin-top: 0;
}

.loading {
	background: url('../img/ico_loading.gif') no-repeat center center;
}
section {
	opacity: 0;
	/* height: 360px; */
}
.loaded section,
.no-js section {
	opacity: 1;
	-webkit-transition: opacity 300ms ease-out;
	-moz-transition: opacity 300ms ease-out;
	transition: opacity 300ms ease-out;
}
main {
	overflow-x: hidden;
}
#preload {
	width: 1px;
	height: 1px;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

.page-contents{
	margin:200px 6% 120px;
}

.bcg {
    background-size: cover;
    height: 100%;
    width: 100%;
    min-height: 780px!important;
}

.hsContainer {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    min-height: 780px!important;
}

.hsContent {
        max-width: 80%;
        margin: 0 auto 0 auto;
        display: table-cell;
        vertical-align: middle;
        padding: 0 8%;
        text-align: center;
        position: relative;
}
	.hsContent h2  {
		margin-top:  100px;
		padding-bottom:2em;
	}
	.hsContent p {

	}
	.hsContent a {
		color: #FB4C02;
		text-decoration: none;
	}
	.hsContent a:hover{
		color: grey;
	}

.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus{
	color:#fcac8b!important;
}

/* Slide 1 */
#slide-1 .bcg {background-image:url('../img/bcg_slide-1.jpg')}
#slide-1 .hsContent {
	bottom: 200px;
	top: auto;
}
h2.h2-slide1 img{
	width:472px;
}

/* Slide 2 */
#slide-2 .bcg {background-image:url('../img/bcg_slide-2.jpg')}
#slide-2 .hsContent {
	margin-left: -450px;
	top: auto;
}
h2.h2-slide2 img{
	width:231px;
}
table{
	border-top:1px solid grey;
	width: 108%;
	font-family: 'Noto Sans Japanese', sans-serif;
}

table td{
	padding: 1em 0;
	border-bottom:1px solid grey;
}

table td.category{
	background-image: url(../img/bullet.svg);
	background-repeat: no-repeat;
	background-size: 1em;
	background-position: 0 1.25em;
	vertical-align: top;
	padding-right: 2em;
	padding-left:1.4em;
}

.business-activities{
	margin-left: -2em;
}

/* Slide 3 */
#slide-3 .bcg {background-image:url('../img/bcg_slide-3.jpg')}
#slide-3 .hsContent {
	margin-left: -450px;
	top: auto;
}
h2.h2-slide3 img{
	width:304px;
}

div.philosophy{
	float: left;
	min-width: 350px;

}

div.vision{
	float: left;
	margin-right: 75px;
	margin-bottom: 20px;
}

div.vision p{
	margin-top: 10px;
}

div.mission{
	float: left;
}
div.mission p{
	margin-top: 10px;
}

div.meaning{
	float:left;
	position: relative;
	min-width: 500px;
	margin-top: 40px;
}

div.meaning img{
	float: left;
	width: 100px;
	height: 120px;
	margin-right: 20px;
}

div.meaning p{
	font-size:0.8em;
	line-height:1.5;
}

div.column-left{
	float:left;
	max-width:640px;
	margin-bottom: 40px;
}

div.column-right{
	position: relative;
	width:auto;
	max-width:280px;
	text-align: right;
	float: left;
	margin-bottom: 12em;
	margin-top: -10em;
}

div.column-right img{
	padding-bottom: 1em;
}

/* Slide 4 */
#slide-4 .bcg {background-image:url('../img/bcg_slide-4.jpg')}
#slide-4 .hsContent {
	margin-left: -450px;
}
h2.h2-slide4 img{
	width:160px;
}
h3.h3-slide4{
	padding-top:2em;
	margin-bottom: 20em;
}
h3.h3-slide4 a{
	font-size:16px;
}
/* footer */
div.footer-navi{
	height: 54px;
	padding: 18px 25px 20px
}
div.policy{
	float: left;
	font-size:12px;
	color:white!important;
	text-decoration: none!important;

}
div.policy a{
	color:white!important;
}

div.copyright{
	font-size:12px;
	color:white;
	float: right;
}

div.policy-text{
	margin:50px 0 160px;
}

div.policy-text h3{
	margin-top:30px;
	font-size:18px;
	font-weight: 600;
}

div.policy-text p{
	line-height: 1.6;
	margin-bottom: 20px;
}

div.note{
    font-size:12px;
	line-height: 1.4;
}

#back-to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    text-align: center;
    background: #FB4C02;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}
#back-to-top:hover {
    background: #666666;
}
#back-to-top.show {
    opacity: 0.9;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
/* Medium devices (tablets, 768px and up) */


@media only screen and (min-width : 770px ){

    body, html {
        height: auto;
    }
	
    .bcg {
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        height: 100%;
        width: 100%;
		min-height: 320px!important;
    }
    section {
        /*min-width: 768px;*/
		min-height: 780px!important;
        height: auto;
    }
    .hsContainer {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    .hsContent {
        max-width: 960px;
        position: absolute;
        left: 50%;
        top: 50%;
        text-align: left;
        padding: 0;
		float: left;
    }


}

	
@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

@media (max-width : 769px){
	
	.container-fluid{
		padding-left:0!important;
	}
	
	.navbar-fixed-top{
        padding: 0 0;
        -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
        -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
        transition: background .5s ease-in-out,padding .5s ease-in-out;
    }
	
	.navbar-brand img{
		height:28px!important;
		margin-top:-4px;
	}
	
	a.companyname{
		display:none;
	}

	.hsContent{
	text-align: left;
	margin:0 0;
	font-size:14px;
	}
	
	.navbar{
		min-height: 24px;
	}
	
	.page-contents{
	margin:100px 20px 120px;
}
	.page-contents h2{
		font-size: 20px;
	}
	
	h2.h2-slide1 img{
	width:80%!important;
	margin:300px 0 0 10%!important;
	}
	h2.h2-slide2 img{
	}
	h2.h2-slide3 img{
	}
	h2.h2-slide4 img{
	}
	table{
	border:none;
	margin: 0 0;
	width:100%;
	}
	table td{
	width:98%;
	float:left;
	border-bottom: none;
	}
	table td.category{
	border-bottom: 1px solid grey;
	}
	div.meaning img{
		float:none;
		width:80px;
		height:80px;
		padding-bottom:20px;
	}
	
	div.column-right img{
		float: left;
		width: 170px;
	}
	div.column-right{
		margin-top: 1em;
	}
		/* footer */
div.footer-navi{
	height: 68px;
	padding: 12px 12px 20px
}
div.policy{
	float: none;
	font-size:12px;
	margin-bottom: 12px;
	color:white!important;
	text-decoration: none!important;
}
div.copyright{
	font-size:10px;
	color:white!important;
	float: none;
}
	
}

@media (max-width: 1023px){
	.navbar-right{
		float:left!important;
		margin-left:22px!important;
	}
	
	.navbar-fixed-top{
		padding:0 0!important;
	}
	
	div.column-left{
		max-width:50%;
	}
	
	div.meaning img{
		width: 70px!important;
	}
	
	.column-right img{
		width:180px!important;
	}
	
	h2.h2-slide1 img{
	width:340px;
	margin:300px 0 0 0;
	}
	
	#slide-2 .hsContent{
		margin-left:-41%;
	}
	#slide-3 .hsContent{
		margin-left:-41%;
	}
	#slide-4 .hsContent{
		margin-left:-41%;
	}
	
	.navbar{
		min-height: 40px;
	}
	
	.navbar-brand{
		padding: 15px 0 0 0!important;
	}
	
	.navbar-brand img{
		height:36px;
	}
	
	
}
