@charset "utf-8";

/*root config*/
:root {
	--primary-color: #fff;
	--primary-inverse-color: #00533f;
	--global-space: 7vw;
}

/*common classes*/
.i { font-style: italic; }
.b { font-weight: bold; }
.c { text-align: center; }
.green { color: #147616; }
.red { color: #800000; }
.blue { color: #003f8e; }
.small { font-size: 0.6em; }

/*body config*/
body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	font-size: 11px;
	font-optical-sizing: auto;
	color: #333;
	line-height: 1.35;
	background: #fff url(../images/bg_header.jpg) no-repeat left top / 50%;
	box-sizing: border-box;
	overflow-x: hidden;
}

@media screen and (min-width:900px){
	body { font-size: 14px; }
}

#container {
	height: 100vh;
	display: flex;
	flex-direction: column;
}

/*header config*/
header {
	margin-bottom: 2vh;
	padding: 1vh var(--global-space);
}

/*select language box config*/
#select-lang { display: none; }

@media screen and (min-width:900px) {
	#select-lang {
		margin-top: 0;
		display: flex;
		justify-content: flex-end;
		text-align: center;
	}

	#select-lang .selected {
		margin-right: 1rem;
		padding: 0.25rem 1rem;
		border: 2px solid #404040;
		border-radius: 1rem;
		background-color: var(--primary-inverse-color);
		color: var(--primary-color);
	}

	#select-lang a {
		padding: 0.25rem 1rem;
		border: 2px solid #404040;
		border-radius: 1rem;
		background-color: var(--primary-color);
		color: var(--primary-inverse-color);
		text-decoration: none;
	}

	#select-lang a:hover {
		color: var(--primary-color);
		background-color: var(--primary-inverse-color);
	}
}
/*logo config*/
#logo {
	margin: 0 auto;
	padding: 0;
}

#logo .pc { display: none; }

@media screen and (min-width:900px) {
	#logo .pc {
		margin: 0 auto;
		display: block;
		width: 60vw;
	}

	#logo .mobile { display: none; }
}

#logo img {
	display: block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/*main navigation menu - hidden in mobile devices*/
header nav ul { display: none; }

@media screen and (min-width:900px) {
	header nav ul {
		margin-top: 2rem;
		padding-left: 0;
		display: flex;
		justify-content: center;
		list-style: none;
		background-color: transparent; 
	}

	header nav ul li+ li {
		border-left: 1px solid #fff;
	}
	
	header nav li {
		padding: 0.25rem;
		font-size: large;
	}
	
	header nav li a {
		display: block;
		text-decoration: none;
		padding: 0 0.75rem;
		font-weight: bold;
		color: var(--primary-inverse-color);
	}
	
	header nav li a:hover {
		color: var(--primary-color);
		background-color: var(--primary-inverse-color);
	}
}

/*contents box (main area)*/
#contents {
	flex: 1;
	padding: 0 var(--global-space);
}

/*swiper config*/
#vegas {
	margin: 0 auto;
	width: 75vw;
	max-width: 600px;
	height: 50vw;
	max-height: 400px;
}

/*introduction and recruit information*/
#introduction {
	margin: 1.5em auto;
	text-align: center;
	background-color: var(--primary-color);
}

#recruit {
	margin: 1em auto;
	padding: 0.5em 1em;
	border: 5px double #404040;
	background-color: #efefef;
}

#recruit img {
	width: 20em;
}

#recruit ul {
	padding-left: 2em;
	list-style: none;
}

#recruit ul li { margin: 0.5em 0; }

/*NEWS*/
#news h2 { color: var(--primary-color); }

.anime {
	display: flex;
	overflow: hidden;
}

.anime .char {
	transform: translateY(2em);
	animation: textanimation 2s forwards;
}

@keyframes textanimation {
	0% { transform: translateY(2em); }

    100% { transform: translateY(0); }
}

#news dl { border-top: 1px solid #ccc; }

#news dt {
	padding: 1em 1em;
	font-weight: bold;
}

#news dd {
	margin-left: 0;
	padding-bottom: 1em;
	border-bottom: 1px solid #ccc;
}

@media screen and (min-width:900px) {
	#news dd {
		padding-left: 4em;
		padding-right: 4em;
	}
}

#news .date { margin-right: 1em; }

#news .new, #news .award, #news .grant, #news .research, #news .meeting {
	margin-right: 0.5em;
	padding: 0 0.5em;
	font-size: 0.9em;
	color: #fff;
}

#news .new { background-color: red; }

#news .award { background-color: magenta; }

#news .grant { background-color: #D5C61E; }

#news .research { background-color: blue; }

#news .meeting { background-color: #006e01; }

#news .OA {
	padding: 0 0.5em;
	color: #fff;
	font-size: 0.9em;
	font-weight: bold;
	background-color: orange;
}

#news img {
	margin: 0 auto;
	width: 70vw;
	display: block;
}

@media screen and (min-width:900px) {
	#news img { width: 40vw; }
}

#news .press {
	color: #800000;
	text-decoration: none;
}

/*footer config*/
footer {
	border-top: 3px solid var(--primary-inverse-color);
	padding: 2vh var(--global-space);
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 2vh;
	font-size: 0.9em;
	color: var(--primary-inverse-color);
	/* background: url("../images/bg_footer.png") no-repeat center bottom / 100%; */
	animation: slide1 10s linear infinite;
}

#contact {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

#contact .fa-envelope {
	font-size: 2em;
}

#contact img {
	margin-left: 0.5em;
	width: 50vw;
}

#archive { margin: 2em 0; }

footer nav { gap: 3vw; }

footer nav ul {
	padding-left: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	list-style: none;
}

footer nav ul li { flex: 1; }

footer nav img {
	margin: 0.25em;
	width: 25vw;
	height: auto;
	cursor: pointer;
}

@media screen and (min-width:900px) {
	#contact img { width: 20vw; }

	footer nav img { width: 15vw; }	
}



/*humbarger menu config*/
#menuhdr {
	padding: 15px;
	box-sizing: border-box;
	animation: opal 0.3s 0.5s both;
	position: fixed;
	z-index: 101;
	cursor: pointer;
	top: 5px;
	right: 10px;
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform 0.5s;
	background-color: var(--primary-color);
	border-radius: 50%;
}

#menuhdr .bar {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

#menuhdr .bar span {
	width: 100%;
	height: 2px;
	display: block;
	background-color: var(--primary-inverse-color);
	border-radius: 2px;
	transition: all 0.5s ease-in-out;
	position: absolute;
}

#menuhdr .bar .top { top: 0; }

#menuhdr.active .bar .top {
	width: 150%;
	top: 50%;
	transform: rotate(45deg);
}

#menuhdr .bar .middle {
	top: 50%;
	transform: translateY(-50%);
}

#menuhdr.active .bar .middle { display: none; }

#menuhdr .bar .bottom { bottom: 0; }

#menuhdr.active .bar .bottom {
	width: 150%;
	top: 50%;
	transform: rotate(-45deg);
}

#menuham {
	padding: 5em 10vw;
	position: fixed;
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	color: var(--primary-color);
	background-color: var(--primary-inverse-color);
	transition: ease 0.4s;
	z-index: 100;
	display: none;
	box-sizing: border-box;
}

#menuham.active {
	display: block;
    opacity: 0;
    transform: translateX(100px);
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% {}
    100% {
        opacity: 1;
        transform: translate(0);
    }
}

#small-logo img {
	margin-top: 10px;
	margin-bottom: 2em;
	width: 80vw;
}

@media screen and (min-width:800px){
	#small-logo img { width: 40vw; }
}

#menuham ul {
	padding-left: 0;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
}

#menuham ul li {
	margin: 3em 1em;
}

#menuham ul li a {
	padding: 1em 2em;
	font-size: larger;
	border: 2px solid var(--primary-color);
	border-radius: 5px;
	cursor: pointer;	
	color: var(--primary-color);
	text-decoration: none;
}

#menuham ul li a:hover {
	background-color: var(--primary-color);
	border: 2px solid var(--primary-inverse-color);
	color: var(--primary-inverse-color);
	text-decoration: none;
}

/*inview css*/
.blur {
	opacity: 0;
	filter: blur(30px);
	transform: scale(1.1);
}

.blurstyle {
	opacity: 1;
	filter: blur(0);
	transform: scale(1);
	transition: 1s 0.5s;
}

.popup { transform: scale(0); }

.popupstyle { animation: popup 1s ease-out 1s both; }

@keyframes popup {
	0% { transform: scale(0); }
	50% { transform: scale(1.1); }
	70% { transform: scale(0.99); }
	100% { transform: scale(1); }
}

.slideIn {
	position: relative;
	opacity: 0;
	bottom: -20px;
}

.slideInstyle {
	bottom: 0px;
	opacity: 1;
	transition: 1s 0.5s;
}