body{
	line-height:1.6;
	color:#333;
	background-color:#eff3f6;
}

ul{
    list-style: none;
}

ol{
	padding-left:50px;
}

header {
    position: fixed;
    top: 0;
    z-index: 1001;
    transition: 0.3s;
    width:100%;
    height:60px;


    background-color: #4d87d7;

}

header nav{
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left:215px;
}

header .logo{
    display:block;
    height:100%;
    position: absolute;
    left:106px;
	transform: translateX(-50%);
}


body.scrolled header {
    height: 40px;
}
body.home:not(.scrolled) header {
    background-color: transparent;
  }
body.home:not(.scrolled) header:hover {
    background-color: rgba(77, 135, 215, 0.7);

}

header nav ul {
    display: flex;
    align-items: center;
}

header nav ul li {
    margin:0 0 0 10px;
    
}

header nav a{
    text-decoration: none;
    color:#fff;
    font-weight:bold;
    font-size:15px;
}



main{
    width: 100%;
}

main.subpage{
	margin-top:80px;
}

#minlabo{
	display:flex;
	margin-top:15px;
}

#minlabo .family{
	width:60%;
	margin:0 3px 0 6px;
}

#minlabo .fimg{
	background:linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%,  rgba(3,32,115, 1) 85%) , url('../img/labo.jpg') no-repeat;

	background:linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%,  rgba(0,0,0, 0.6) 85%) , url('../img/labo.jpg') no-repeat;
	background-size:contain;
	margin:0 2px;
	aspect-ratio: 1200 / 630;
    position: relative;
	border-radius: 4px;

}

#minlabo .family .topmsg{
	margin:0;
	padding:10px 30px;
	line-height:1.4;
	height:35%;
	overflow:auto;
	color:#fff;
    position: absolute;
	bottom:0;
}

#minlabo .family .topmsg span{
	display:block;
	text-align:right;
}

#minlabo .sponsor{
	width:40%;
	margin:0 6px 0 3px;
}

#minlabo .sponsor p{
	padding:2px 2px 2px 2px;
	line-height:1.5;
}

.sponsor .spo_brass{
	border-radius: 4px;
	border: 1px solid #d09961;
	background-color: #fffaf5;
	margin:2px 2px 6px 2px;
	padding:6px;
}



#minlabo .minlabo_title{
	background-color: #0d59c1;
	color:#fff;
	padding:4px 12px;
	margin-bottom:5px;
	font-size:16px;
	font-weight:bold;
	border-radius:4px;
}

.sponsor figure.logo img{
	width:256px;
	margin:5px 0px 5px 5px;
}

.radius7{
	margin:0 0 0 -17px;
}

.sponsor figure.im{
	width:30%;
	margin:5px;
	float: right;
	clear: both;
}

.sponsor figure.im img{
	width:100%;
}

#news{

	margin:15px 0;
	padding:0 6px;
	width:100%;
}

#news .minlabo_title{
	width:100%;
	background-color: #0d59c1;
	color:#fff;
	padding:4px 12px;
	margin-bottom:5px;
	font-size:16px;
	font-weight:bold;
	border-radius:4px;
}


ul.post-categories{
	display:flex;
	justify-content: flex-end;
	margin-right:10px;
}

.post-categories a{
	text-decoration:none;
	color:#555;
}

.post-categories li{
	border:1px solid #b1c2c5;
	background-color: #e7e7e7;
	border-radius: 4px;
	padding:2px 6px;
	font-size:14px;
	margin:8px 0 8px 8px;

}


.nav-links{
	color:#333;
	display:flex;
	margin:15px;
	justify-content: center;
}
.nav-links div{
	margin:0 4px;
}
.nav-links a{
	text-decoration:none;

}


.tbl {
	border-collapse: separate;
	border-spacing: 5px;
	margin:6px;
}

.td1 {
	text-align: right;
	background: linear-gradient(to bottom, #dde6d7 40%, #c3cabf 100%);
	font-size: 13px;
	vertical-align: top;
	padding: 4px 6px 4px 8px;
}

.td2 {
    background-color: #fefefe;
    padding: 4px 12px 4px 8px;
    border-bottom: 1px dotted #dcdcdc;
    vertical-align: top;
}

.wp-block-image figcaption{
	margin:1px 0 8px 12px;
	font-size:14px;
}


/* ---------------- 固定ページ関連 --------------------- */
article.fixedpage{
	max-width:980px;
	margin:0 auto;
}
.fixedpage section{
	background-color:#fffff1;
	border-radius: 8px;
	padding-bottom:4px;
	margin-bottom:18px;
}


.fixedpage section h4{
	background-color: #4d87d7;
	border-radius: 8px 8px 1px 1px;
	font-weight: normal;
	color: #ffffff;
	font-size: 16px;
	padding: 4px 0 4px 12px;
	margin: 0;
}

.fixedpage section p{
	padding:10px;
}

.sns svg{
    width:36px;
    height:36px;
}
.sns ul{
    display: flex;
	margin:2px 10px;
}

.sns ul li{
	margin:0px 4px;
}

.sns path{
    fill:#444;
}

li.topnew{
	width:32%;
	padding:14px 14px;
}
ul.slisttop{
	display:flex;
    flex-wrap : wrap;

}

footer{
    background-color: #4d87d7;
    border-radius:0 0 8px 8px;
    color:#fff;
	margin-top:40px;
	padding:10px 10px 10px 20px;
}

footer .bottom_area{
    display: flex;
justify-content: space-between;
}

footer nav ul {
    display: flex;

}

footer nav ul li {
    margin:0 0 0 10px;
    
}

footer nav a{
    text-decoration: none;
    color:#fff;
    font-size:15px;
}


footer .sns{
}




footer .sns path{
    fill:#fFF;
}

footer .title {
	display:flex;
	align-items: flex-end;
	justify-content: flex-end;
}

footer .title a{
	font-weight:bold;
	text-decoration:none;
	color:#fff;
	font-size:16px;
}
footer .title .alabo{
	padding-bottom:3px;

}
footer .logo{
	display:inline-block;
	margin-left:6px;
}


/* ------------------------ pagination ------------------------ */

.pagination{
	margin:20px 0 30px 0;
}
.nav-links{
	display:flex;
}
.pagination .page-numbers{
	display:block;
	margin-right:14px;
	width:46px;
	height:46px;
	text-align:center;
	line-height:46px;
	color:#0d59c1;
	border-radius:3px;
	font-size:18px;
	border:1px solid #bbb;
	background:#fcfcfc;
}
.pagination .current{
	background:#69a4db;
	color:#fff;
	font-weight:bold;
}
.pagination .prev,
.pagination .next{
	font-weight:bold;
}
.pagination .dots{
	background:transparent;
	border:none;
	width:20px;

}

/* ------------------------ results ------------------------ */
#results a{
	text-decoration:none;
	color:#fff;
}

#results ul{
	display:flex;
}

#results ul li{
	position: relative;
	width: 100%;
	border-top:1px solid #eff3f6;
	border-left:1px solid #eff3f6;
}
#results ul li:first-child{
	border-left:none;
}


#results .eyechache img{
	width:100%;
	height:100%;
}

#results .text{
    position: absolute;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 4px 4px 4px 6px;
	line-height:1;
	color:#fff;
	font-size:12px;
	/*
    background: linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
    background: -ms-linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
	background:rgba(0, 0, 0, 0.2);
	*/


    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 2%, rgba(0, 0, 0, 0.3) 100%);
    background: linear-gradient(to left, rgba(255, 255, 255, 0) 2%, rgba(0, 0, 0, 0.3) 50%);


}


#results .text_cate{
    position: absolute;
    top: 0;
	right:0;
	font-size:12px;
	padding:4px 4px 4px 50px;
	line-height:1;
	text-align:right;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.4) 40%);


}

/* ------------------------ searchform ------------------------ */
.search_area{
    margin-left: auto;

}

#searchform {
    position: relative;
}

	
#searchform .searchfield {
    font-size: 14px;
    padding:5px 2px;
    width:200px;
    border: 1px solid #ddd;
    border-radius: 3px;
  }

#searchform button {
    position: absolute;
    top: 0px;
    bottom: 0;
    right: 2px;
    border:none;
    background-color: transparent;
    cursor: pointer;
}


/* -------- ブログ　カテゴリ用 --------- */ 
.subpage{
    display:flex;
}
.sec_hon{
    width:70%;
    margin:0 4px 0px 8px;
}

section.border{
    background-color: #ffffed;
    border:1px solid #4d87d7;
    border-radius: 10px;
}

.sec_side{
    width:30%;
    margin:0 8px 0 4px;
}


.sec_hon h3{
    background-color: #0d59c1;
    border-radius: 8px 8px 1px 1px;
    font-weight: bold;
    color: #ffffff;
    font-size: 16px;
    padding: 6px 0 6px 16px;
    margin: 0;
}

.sec_hon .contents{
    margin:2px 10px 10px 10px;
    line-height:1.8;
    background-color: #fff2e5;
    border-radius: 8px;
    border: 1px solid #d09961;
    padding: 10px 15px 6px 15px;
}

.sec_hon .contents ol{
    padding-left:30px;
}
.sec_hon .contents iframe{
    width:100%;
	height:100%;
}
.sec_hon .contents .wp-block-embed__wrapper{
    width:100%;
    aspect-ratio: 500 / 281;
}

.sec_hon .sns ul{
	justify-content: flex-end;
}


.cate_main ul.cate_list{
    display:flex;
    flex-wrap : wrap;
    margin-top:10px;
}

.cate_main li.blog{
    margin:0 0px 6px 6px;
    width:280px;
}

.cate_main .thumbnail{
    width:100%;
	aspect-ratio: 1200 / 630;
}
.cate_main .thumbnail img{
    width:100%;
    height:100%;
    border-radius:0px 0px 4px 4px ;
    border:1px solid  #4d87d7;
    box-sizing: border-box;
}
.cate_main h5{
    background-color: #4d87d7;
    border-radius: 4px 4px 0px 0px;
    font-weight: normal;
    color: #ffffff;
    font-size: 12px;
    padding: 0px 5px;
    height:24px;
    line-height: 24px;
    margin: 0;
    width:100%;
    box-sizing: border-box;
    overflow: hidden;
}
.cate_main a{
    text-decoration: none;
}

.sec_hon .he1{
    background-color: #984f00;;
    font-size: 16px;
    padding: 2px 0 2px 12px;
    border-radius: 8px;
    margin: 12px 0px 8px 0px;
    width: 400px;
	max-width:100%;
    color: #ffffff;
	font-weight:bold;
}

.sec_hon .he2{
    background-color: #b36006;
    font-size: 14px;
    padding: 2px 0 2px 12px;
    border-radius: 6px;
    margin: 12px 0px 8px 0px;
    width: 98%;
    color: #ffffff;
}

.sec_hon .he3{
	background-color: #b36006;
	font-size: 14px;
    padding: 2px 0 2px 12px;
	border-radius: 6px;
    margin: 12px 0px 8px 0px;
	width: 400px;
	max-width:100%;
	color: #ffffff;
}

.sec_hon .qa1::before{
	content:'質問内容';
	font-size: 14px;
	display:block;
	background-color: #b36006;
	color: #ffffff;
    padding: 4px 4px;
	border-radius: 4px;
    margin: 2px 0 6px 0;
	width: 90px;
	text-align: center;
	line-height:1;
}
.sec_hon .qa1{
	background-color: #f4e8d4;
	border:1px solid #d09961;

    padding: 8px 8px 8px 8px;
	border-radius: 4px;
    margin: 2px 0px 18px 0px;
	width: 100%;
	line-height:1.4;
}

.sec_hon .contents ul {
  list-style: disc;
	padding-left:24px;
}


.sec_hon .ft1{
	text-align:right;
    margin:15px 5px 15px 0;
}

.sec_hon .wp-block-image{
    margin:10px 0;
}

/* -------- サイドナビ用 --------- */ 

.sec_side h4{
    background-color: #0d59c1;
    border-radius: 6px 6px 2px 2px;
    font-weight: normal;
    color: #ffffff;
    font-size: 14px;
    padding: 3px 0 3px 8px;
    margin: 0;
}


.slist .blist{
	display:flex;
	flex-wrap: wrap;
    margin:6px 2px 12px 2px;
}

.slist .thumbnail{
    width:30%;
	aspect-ratio: 1200 / 630;
}
.slist .thumbnail img{
    width:100%;
	height:100%;
    border-radius: 2px;    
}


.slist .blist .bmain{
	display:flex;
	flex-wrap: wrap;
    width:70%;
	padding:0 4px 2px 6px;
}


.slist .bdate{
	font-size: 13px;
	text-align:right;
    width:100%;
	color:#555;
}
.slist .bcate{
	text-align:right;
    width:100%;
}
.slist .bcate a{
	display: inline-block;
	border: 1px solid #b1c2c5;
	background-color: #e7e7e7;
	border-radius: 2px;
	padding: 1px 3px;
	margin-left:3px;
	font-size: 11px;
	text-decoration: none;
	color: #555;
	box-sizing: border-box;
}



.slist  .btitle{
    font-size:14px;
    width:100%;
	line-height:1.3;
	font-weight:bold;
	color:#444;
}

.sec_side .side_reco{
    margin-top:20px;
}


.sec_side .cat-item{
    margin: 8px 8px 0px 8px;

}
.sec_side .cat-item a{
    display: inline-block;
    border: 1px solid #b1c2c5;
    background-color: #e7e7e7;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;

    text-decoration: none;
    color: #555;
    width:100%;
    box-sizing: border-box;
}
.sec_side .children{
    margin: 0px 0 0px 12px;
}



/* -----------------プルダウンメニュー --------------------- */

.menu_header ul.sub-menu {
	position: absolute;
	list-style: none;
	display:none;
}

.menu_header .sub-menu li {
	display: block;
	padding: 0;
	width: 200px;
	padding: 8px 8px 8px 12px;
	background-color: #4d87d7;
	border-bottom:1px dotted #ccc;
	margin:0;
}

.menu_header li:hover .sub-menu {
	display: block;
}

.menu_header .sub-menu li a {
	font-size: 14px;
	font-weight: normal;
	color: #fff;
}

.menu_header .sub-menu li:hover {
	background-color: #0d59c1;

}
/* sp */ 
.menu_sp{
	margin-top:30px;
}
.menu_sp li{
	border-bottom:1px dotted #eee;
	line-height:40px;
	height:40px;
}
.menu_sp a{
	text-decoration:none;
	color:#fff;
	font-weight:bold;
	padding-left:10px;
}
 
	
@media (min-width: 768px) {

	
}



/* ------------------------- slider ------------------------------ */
	
.slides {
	position: relative;
    top: 0;
    left: 50%;
    overflow: hidden;
    width: 100%;
    height: 630px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
      
   
      
#slider-area {
    position: relative;
}
      
.slides-inner {
    position: relative;
    top: 0;
    width: 100%;
  }
      
.slidekiji {
    position: absolute;
    display: block;
    width: 100%;
    height: auto;
}
      
.slidekiji a {
    position: relative;
    display: block;
    overflow: hidden;
    height: 630px;
}
      
.slidekiji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
      
.slidekiji .text {
    position: absolute;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 2px 15px 15px 15px;

	/*
    background: linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
    background: -ms-linear-gradient(top, rgba(255, 255, 255, 0) 2%, #333 100%);
	*/
	background:rgba(0, 0, 0, 0.2);
    background: linear-gradient(top, rgba(255, 255, 255, 0) 2%, rgba(0, 0, 0, 0.23) 100%);
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 2%, rgba(0, 0, 0, 0.3) 100%);
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 2%,rgba(0, 0, 0, 0.3) 100%);
    background: -ms-linear-gradient(top, rgba(255, 255, 255, 0) 2%, rgba(0, 0, 0, 0.3) 100%);

    text-shadow: 0 0 3px #000;
    -moz-text-shadow: 0 0 3px #000;
    -webkit-text-shadow: 0 0 3px #000;
}
      
.slidekiji .cat-data {
    font-size: .9em;
    color: #fff;
    background-color: transparent;
}
      
.slidekiji h2 {
    font-size: 1.2em;
    line-height: 1;
    margin: 0;
    color: #fff;
}
      
#pager {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
      
#pager .prev, #pager .next {
    line-height: 40px;
    position: absolute;
    top: 0;
    width: 44px;
    height: 40px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight:bold;
    background-color: rgba(0, 0, 0, 0.3);
}

#pager .prev {
    left: 0;
}

#pager .next {
    right: 0;
}
      
.slides-nav {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 98%;
    text-align: right;
}
  
.slides-nav a {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
	background: #ccc;
}
      
.slides-nav a.active {
    cursor: default;
    background: #333;
}

@media (max-width: 767px) {
	.slides {
		height: 240px;
	}
	.slidekiji a {
		height: 240px;
	}
	.slidekiji h2 {
		font-size: 1.2em;
	}
	.slidekiji .cat-data, .slidekiji .kiji-date {
		font-size: .8em;
	}
    #pager .prev, #pager .next {
		line-height: 8vw;
		width: 8vw;
		height: 8vw;
	}
	.slides-nav{
    	bottom: 0px;
	}
	.slides-nav a {
      width: 8px;
      height: 8px;
      border-radius: 100%;
		margin: 0 2px;
    }
      
  }


/* -----PC-------------------------------------------------- */
@media only screen and (min-width: 768px){
	.drawer,
	.overlayRole {
	    display: none;
	}

	.pc .search_area{
	    display: flex;
	    position: absolute;
	    height:100%;
	    right:10px;
	    align-items: center;
	}

}
/* ----SP--------------------------------------------------- */
@media only screen and (max-width: 767px) {

	header {
		height:40px;
	}
	body.scrolled header {
	  height: 0px;
	}

	header .logo {
	  left: -5px;
	  transform: none;
	}

	main.subpage {
		margin-top: 40px;
	}

	.overlayRole {
		position: fixed;
		width: 100%;
		height: 100vh;
		top: 0;
		left: 0;
		opacity: 0;
		background: transparent;
		transform: translateX(0);
		transition: all .3s;
		visibility: hidden;
	}

	.sp .search_area{
	    position: absolute;
	}
	.pc .search_area{
		display:none;
	}

	.menu_header{
		display:none;
	}

	#results .text,
	#results .text_cate{
		display:none;
	}


	.subpage{
	    display:block;
	}
	.subpage section{
	    width:100%;
		margin:0px 0 20px 0;
	}

	.cate_main li.blog{
	    margin:0 2px 4px 2px;

	    width:48%;
	}
	.cate_main ul.cate_list{
		justify-content: center;
	}

	#minlabo{
		display:block;
	}
	#minlabo .family,
	#minlabo .sponsor{
		width:100%;
		margin:0px 0 10px 0;
		padding:0 6px;
	}

	footer .menu_footer,
	footer .title .alabo{
		display:none;
	}
	footer .title{
		width:180px;
	}

li.topnew{
	width:100%;
	padding:10px 10px;
}

}
