@charset "utf-8";
/*=================================
1: setting
2: header
3: footer
4: common-content
5: top page
6: second page
=================================*/


/* ウィンドウ幅が～768pxの場合に適用するCSS */
@media only screen and (max-width: 768px) {

/* 1: setting
================================== */
body {
	width: 100%;
	min-width: 100%;
	font-size: 1.5rem;
}
.sp_none,
.slider_pc {
	display: none;
}
.sp_show,
.slider_sp {
	display: block !important;
}

	.slider_sp img {
		max-width:95%;
	}

img {
	max-width:100%;
	height:auto;
	margin:0 auto;
}


/* 2: header
================================== */
#wrapper {
	overflow-x:hidden;
}
#header {
	height: 60px;
	box-sizing: border-box;
	padding-top:0;
}

.header_fixed {
	position:fixed;
	left:0;
	top:0;
	width:100%;
	height:60px;
    z-index:9999;
	background:white;
	padding-left:10px;
	padding-top:5px;
}

h1 {
	width:300px;
	padding:5px 0 0 55px;
	position:relative;
}

	h1 img {
		width:100%;
		height:auto;
	}

.jst_logo,
.en .jst_logo {
	display:block;
	width:50px;
	height:50px;
	background:url(../images/cmn/logo_jst_sp.svg) no-repeat;
	position:absolute;
	left:5px;
	top:5px;
	margin-top:0;
}

.jst_logo img{
	display:none;
}

.main_visual_inr {
	min-width:auto;
}

.slider .txt {
	margin:0 20px 0 10px;
	padding:0 20px;
	font-size:1.2rem;
	bottom:20px;
	background:rgba(255,255,255,0.5);
}

.slider .txt_w {
	margin:0;
	padding:0 20px;
}

.main_visual::after {
	background:none;
}


/* -----gnav----- */

#menu {
	display: none;
	position: fixed;
	top: 60px;
	right: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	padding: 0;
	z-index: 999;
	max-height: 200%;
	padding-bottom:60px;
}


.menu_bg {
    clear: both;
    display: block;
    margin: 0 -200%;
    padding: 0 200%;
    border-bottom: none;
    position: relative;
}

.menu li.menu__single,
.en .menu li.menu__single {
	width:100%;
	padding:0;
}

.menu > li a {
	position: relative;
	display: block;
	padding: 5px 20px;
}
.menu > li a:before {
	position: absolute;
	content: "";
	box-sizing: border-box;
	right: 16px;
	top: 40%;
	width: 4px;
	height: 4px;
	border: 4px solid transparent;
	border-left: 4px solid #000;
}


	.sec .menu > li a:before {
		border-left: 4px solid #fff;
	}

.menu > li > a::after {
	display: none;
}


.dl-menu {
	display: block;
	height: 100%;
	background: #fff;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

	.sec .dl-menu {
		background:#000;
	}

.dl-trigger {
	display: block;
	position: absolute;
	top: 10px;
	right: 5px;
	height: 36px;
	background: none;
	border: none;
	text-indent: -900em;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	z-index: 999;
	-webkit-transition: .35s ease-in-out;
	-moz-transition: .35s ease-in-out;
	transition: .35s ease-in-out;
}
	.header_main_inr_sec .dl-trigger {
		top: 0;
		right: -10px;
	}
.dl-trigger  {
	width: 24px;
	margin: 5px 5px 0;
}
.dl-trigger span {
	position: absolute;
	left: 0;
	right: 0;
	display: inline-block;
	width: 24px;
	height: 3px;
	margin: 0 auto;
	transition: all .4s;
	background-color: #1e1e72 ;
	width:24px;
}
.dl-trigger span:nth-of-type(1) {
	top: 6px;
}
.dl-trigger span:nth-of-type(2) {
	top: 22px;
}
.dl-trigger span:nth-of-type(3) {
	bottom: 19px;
}
.dl-trigger.active span:nth-of-type(1) {
	-webkit-transform: translateY(7px) rotate(-45deg);
	transform: translateY(7px) rotate(-45deg);
}
.dl-trigger.active span:nth-of-type(2) {
	opacity: 0;
}
.dl-trigger.active span:nth-of-type(3) {
	-webkit-transform: translateY(0px) rotate(45deg);
	transform: translateY(0px) rotate(45deg);
}
.fixbody {
	overflow: hidden;
	width: 100%;
	height: 100%;
}
.open_icn {
	display: block;
	position: absolute;
	top: 5px;
	right: 10px;
	width: 48px;
	height: 48px;
	background: #fff;
	z-index: 999;
}
.open_icn:before,
.open_icn:after {
	display: block;
	content: '';
	width: 2px;
	height: 12px;
	background: #000;
	position: absolute;
	top: 18px;
	left: 24px;
}
.open_icn:before{
	width: 12px;
	height: 2px;
	top: 23px;
	left: 19px;
}
.open_icn:after,
.open_icn:before {
	transition: all .4s;
}
.open_icn.open_icnactive:after {
	-webkit-transform: rotate(-90deg);
	transform: rotate(-90deg);
}
.open_icn.open_icnactive:before {
	opacity: 0;
}


ul.dl-menu > li a{
    border-bottom: dashed 1px #dfdfdf;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    margin:0 10px;
}


ul.dl-menu > li .splang a {
    border-bottom: none;
}

.menu > li .splang a::before{
    position: relative;
    content: none;
    box-sizing: border-box;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border: none;
    border-left: 0px solid #000;
}



.spnav_close {
	margin-bottom: 50px;
	padding-bottom: 50px;
}
.spnav_close span {
	display: block;
	width: 80%;
	margin: 0 auto;
	padding: 10px;
	background: url(../images/icon_link.png) no-repeat #FFF;
	background-position: bottom 1px right 1px;
	text-align: center;
	box-shadow : 0px 1px 1px rgba(0, 0, 0, 0.2);
	color: #000;
	font-weight: bold;
}

.menu > li.header_subnav {
	position:relative;
	top:0;
	left:0;
}

.menu > li.header_subnav .flexbox_wap {
	display:block;
}

.menu > li.header_subnav li a::before {
	background:none;
	right: 16px!important;
}


/* -----google検索----- */
.search_box {
	padding: 20px;
}
.search {
	position: static;
}
#g-k-w-search .gsc-search-box {
	position: relative;
}
#g-k-w-search .gsc-search-box .gsc-search-button {
	position:absolute;
	top: 0px;
	right: 10px;
}


#g-k-w-search .gsc-search-box .gsc-search-button-v2{
		background: none;
}


#g-k-w-search .gsc-search-box .gsc-search-button.gsc-search-button-v2 {
	right: 0;
	top: -5px;
}
/* テキストボックスの親要素。width指定しつつfloatで左寄せ */
#g-k-w-search .gsc-search-box td.gsc-input,
#g-k-w-search .gsc-search-box td.gsc-input .gstl_50,
#g-k-w-search .gsc-search-box .gsib_a {
	width: 100% !important;
}
/* テキストボックスのデザイン設定 */
#g-k-w-search .gsc-search-box input#gsc-i-id1 {
	box-sizing: border-box;
	height: 40px !important;
	border-radius: 40px;
	box-shadow: none;

}

body #g-k-w-search .gsc-search-box input#gsc-i-id1{
    background-color: #efefef!important;
}

/* テキストボックスに文字入力したときに出る「×」マークの位置調整 */
#g-k-w-search .gsc-search-box .gsib_b {
	position: absolute;
	width: 20px;
	top: -1px;
	left: 10px;
}


#g-k-w-search .gsc-search-box input#gsc-i-id1 {
	box-sizing: border-box;
	height: 30px !important;
	padding: 5px 50px !important;
	border-radius: 20px;
	-webkit-box-shadow: 30px 30px 30px 0 rgba(200,200,200,0.4) inset;
	-moz-box-shadow: 30px 30px 30px 0 rgba(200,200,200,0.4) inset;
	box-shadow: 30px 30px 30px 0 rgba(200,200,200,0.4) inset;
	background-position: 15px center !important;
}


.menu > li.search_box {
    position: static;
}


.menu > li.search_box a::before {
	content: none;
}


ul.dl-menu > li.search_box a{
    padding: 0;
	padding-top: 0px;
	padding-bottom: 0px;
}


.menu__second-level {
	display: none;
	position: static;
	visibility: visible;
	width: 100%;
	opacity: 1;
	background:white;
}
.menu__second-level li {
	border-top: none;
}
.menu__second-level li > a {
	padding-left: 40px;
	font-weight: bold;
}


/* 3: footer
================================== */
#footer .f_menu li {
	width:48%;
	text-align:left;
	margin-right:1%;
}


	#footer .f_menu li a {
		padding: 0 10px;
		font-size: 1.2rem;
	}

	#footer .f_menu li::before {
    margin-right: 0;
	}



/* 4: common-content
================================== */

.inr {
	padding: 0 10px;
}
#breadcrumb {
	font-size: 1.2rem;
}
.link_blank {
	background:url(../images/cmn/icn_blank.svg) no-repeat right center;
	background-size: 10px;
	margin-right: 12px;
}




/* 5: top page
================================== */
#information {
	font-size:1.4rem;
}

#information dt,
.en #information dt {
	width:100%;
	float:none;
}

#information dt::after {
    border-width: 19px 0 19px 19px;
}

.new_box {
	width:100%;
	position:relative;
	padding:10px;
}



#news dt {
	float:none;
	width:100%;
}

#news dd {
	margin-left:1em;
}

.new {
	padding:0 0.5em;
}

.new::before {
	border:0;
}

#main_contents .inr > h2,
.top h2 {
	font-size:2.2rem;
	text-align:left;
}

.down_table,
.schedule_table,
.en .schedule_table {
	width:100%;
}

.outline .fR {
	float:none!important;
	margin-bottom:1em;
	max-width:100%;
}

.outline .txt {
	width:100%;
}

#main .schedule_table {
	border:0;
}

#main .schedule_table td,
.en .schedule_table td:first-child,
.en .schedule_table td:nth-child(2) {
	display:block;
	width:100%;
	border:0;
	border-bottom:solid 1px #ccc;
}

#main .schedule_table td:first-child {
	background:#eee;
}

.schedule_table tr.sp_none,
#main .schedule_table td.sp_none {
	display:none!important;
}

.schedule_table tr {
	display:block;
}

#main_contents .left_contents,
#main_contents .right_contents {
	width:100%;
}
nav.sidebar {
	margin-bottom:2em;
}

.sidebarfixed {
	position:relative;
}

.table_scroll {
	overflow:auto;
}

/*採択プロジェクト*/
.program #main th {
	display:none;
}

	.program #main td:first-child,
	.program #main td:nth-child(2),
	.program #main td:nth-child(3) {
		display:block;
		width:100%;
	}
	
.program #main tr {
    display: block;
    margin-bottom: 1em;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 1px 2px rgb(25 25 25 / 20%);
    overflow:hidden;
  }
  
.program #main table,
.program #main tr:first-child {
	border:0;
}

.program #main td:first-child br,
.program #main td:nth-child(2) br{
	display:none;
}

.program #main td:first-child::before {
	content:"採択年度:";
	font-weight:bold;
}

.program #main td:nth-child(2)::before {
	content:"＜機関＞事業統括:";
	display:block;
	font-weight:bold;
}

.program #main td:nth-child(3)::before {
	content:"課題名:";
	display:block;
	font-weight:bold;
}



 
}


@media only screen and (max-width: 500px) {
	.main_image,
	#main_back {
		min-height:400px;
	}
	
	.main_image {
		background-position: center 60px;
	}
	
	.catch {
		top:200px;
	}
	
	.new_box li {
		width:100%;
		margin-bottom:20px;
	}
	
	#footer .inr {
		padding:0;
		text-align:center;
	}
	
	#footer table {
		width:100%;
	}
	
	#footer td {
		display:block;
		width:100%;
		text-align:center;
	}

}


/* ieハック */
@media all and (-ms-high-contrast:none){
	*::-ms-backdrop, .dl-trigger img { margin: 0 auto; } /* IE11 */
}
