/*========= 検索窓を開くための虫眼鏡ボタン設定 ===========*/

.open-btn-search {
	background: url(/wp-content/themes/lab/assets/images/common/search.png) no-repeat center;
    background-size: 30px 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.open-btn {
	background: url(/wp-content/themes/lab/assets/images/common/search.png) no-repeat center;
    background-size: 30px 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/*========= 検索窓の設定 ===============*/

/*==検索窓背景のエリア*/

#search-wrap {
    position: fixed;
    z-index: 999;
    top: 88.48px;
    right: -120%;
    transition: all 0.6s;
	width:100%;
	height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(/wp-content/themes/lab/assets/images/common/front_background.png) bottom no-repeat;
}

/*ボタンクリック後、JSで#search-wrapに panelactive クラスが付与された後の見た目*/
#search-wrap.panelactive {
    right: 0;    
}

/*==検索窓のエリア*/
#search-wrap .search-area {
	display: none;/*検索窓のエリアは、はじめ非表示*/
}

/*ボタンクリック後、JSで#search-wrapに panelactive クラスが付与された後*/
#search-wrap.panelactive .search-area{
	display: block;/*検索窓エリアを表示*/
	width:80%;
	position: relative;
}

/*==検索フォームの設定*/

#search-wrap form {
	position: relative;
	height: 66px;
    width: 100%;
}

/*==テキスト入力とボタンinput共通設定*/
#search-wrap input {
	-webkit-appearance:none;/*SafariやChromeのデフォルトの設定を無効*/
	outline: none;
	cursor: pointer;/*カーソルを指マークに*/
	color: #212121;
}

/*テキスト入力input設定*/
#search-wrap input[type="text"] {
	width: 96%;
	padding: 20px;
	border: none;
	transition: all 0.5s;
	letter-spacing: 0.05em;
}

#search-wrap input[type="text"]:focus {
	background:#FFF;
}

/*ボタンinput設定*/
 #search-wrap input[type="submit"] {
	position: absolute;
    top: 43%;
    right: -2%;
    transform: translateY(-50%);
    -webkit- transform: translateY(-50%);
    background: url(/wp-content/themes/lab/assets/images/common/search.png) no-repeat center;
    background-size: 30px 30px;
    width: 30px;
    height: 30px;
    border: none;
}

/*=======　閉じるための×ボタン　========*/
.close-btn-search,
.close-btn {
	position: absolute;
	top:10px;
	right:10px;
	z-index: 2;
	cursor: pointer;
    width: 50px;
    height:50px;
}
	
.close-btn-search span,
.close-btn span {
    display: inline-block;
    position: absolute;
    left: 14px;
    height: 2px;
    border-radius: 2px;
	background-color: #5500EA;
 }

/*×マーク*/
.close-btn-search span:nth-of-type(1),
.close-btn span:nth-of-type(1) {
    top: 21px;
    left: 16px;
    transform: translateY(6px) rotate(-135deg);
    width: 50%;
}

.close-btn-search span:nth-of-type(2),
.close-btn span:nth-of-type(2) {
    top: 32px;
    left: 16px;
    transform: translateY(-6px) rotate(135deg);
    width: 50%;
}
/*ページ内デザイン*/
.sub_content .inner .flex-wrap {
    margin: 4rem 0;
    display: flex;
    flex-flow: wrap;
    column-gap: 1rem;
}
article.search_box img {
    object-fit: cover;
    border-radius: 0;
}
article.search_box h2 {
    font-size: 16px!important;
    color: #212121!important;
    font-weight: normal!important;
    border: none!important;
}
button {
    position: absolute;
    top: 46%;
    right: 2%;
    background: #FFF;
    transform: translateY(-50%);
    -webkit- transform: translateY(-50%);
}
article.search_box {
    margin-bottom: 4rem;
}
@media only screen and (min-width:1030px) {
	article.search_box.pickup_3 {
        width: 29%!important;
    }
}
@media only screen and (min-width:769px) and (max-width:1029px) {
	article.search_box.pickup_3 {
        width: 27.5%!important;
    }
}
@media only screen and (min-width:769px) {
    .sub_content .inner .flex {
        column-gap: 2rem;
    }
	#author .search_box {
    	width: 42%!important;
	}
    article.search_box img {
        max-height: 191px;
    }
}
@media only screen and (max-width:768px) {
    #search-wrap {
        top: 52.52px;
    }
    article.search_box {
        width: 27%;
    }
    article.search_box img {
        max-height: 175px;
    }
    .front_post_list {
        height: 100%;
    }
    #search-wrap input[type="text"] {
        width: 86%;
    }
    #search-wrap {
        height: 100vh;
    }
    article.search_box {
        margin-bottom: 1.5rem;
    }
}
