@charset "utf-8";


/*========= 検索窓を開くためのボタン設定 ===========*/
input::-ms-clear {
	visibility:hidden;
}
.open-btn{
	position: absolute;
	top:-60px;
	right:10px;
	background:url("../fonts2/icon_search.svg") no-repeat 15px center;/*虫眼鏡アイコンを背景に表示*/
	background-size: 20px 20px;
	width:50px;
	height:50px;
	cursor: pointer;/*カーソルを指マークに*/
	border: 1px solid #ddd;
	border-radius: 3px;
}

/*クリック後、JSでボタンに btnactive クラスが付与された後の見た目*/
.open-btn.btnactive{
	background:url("../fonts2/icon_close.svg") no-repeat 15px center;/*閉じるアイコンを背景に表示*/
	background-size: 18px 18px;
}

/*========= 検索窓の設定 ===============*/

/*==検索窓背景のエリア*/

#search-wrap{
    position:absolute;/*絶対配置にして*/
	top:-100px;
    right:62px;
	z-index: -1;/*最背面に設定*/
	opacity: 0;/*透過を0に*/
	width:0;/*横幅は0に*/
	transition: all 0.4s;/*transitionを使ってスムースに現れる*/
	border-radius: 8px;
}

/*ボタンクリック後、JSで#search-wrapに panelactive クラスが付与された後の見た目*/
#search-wrap.panelactive{
	opacity: 1;/*不透明に変更*/
	z-index: 3;/*全面に出現*/
	width:450px;
	padding:10px 50px 10px 10px;
	top:-38px;
	background:#fff;
	border: solid 1px #aaa;
}

/*==検索窓*/
#search-wrap #searchform{
	display: none;/*検索窓は、はじめ非表示*/
}

/*ボタンクリック後、JSで#search-wrapに panelactive クラスが付与された後*/
#search-wrap.panelactive #searchform{
	display: block;/*検索窓を表示*/
}

/*==検索フォームの設定*/

/*==テキスト入力とボタンinput共通設定*/
#search-wrap input{
	-webkit-appearance:none;/*SafariやChromeのデフォルトの設定を無効*/
	outline: none;
/*	cursor: pointer;カーソルを指マークに*/
	color: #666;
}

/*テキスト入力input設定*/
 #search-wrap input[type="text"] {
	width: 105%;
	border: none;
	border-bottom:1px solid #ccc;
	transition: all 0.5s;
	letter-spacing: 0.05em;
	height:46px;
	padding: 10px;
}

/*テキスト入力inputにフォーカスされたら*/
 #search-wrap input[type="text"]:focus {
	background:#eee;/*背景色を付ける*/
}

/*ボタンinput設定*/
 #search-wrap input[type="submit"] {
	position: absolute;
	top:24px;
	right:20px;
	background:url("../fonts2/icon_search.svg") no-repeat right;/*虫眼鏡アイコンを背景に表示*/
	background-size: 28px 28px;
	width:28px;
	height: 28px;
	border: none;
}
 #search-wrap input[type="submit"]:hover {
	background:url("../fonts2/icon_search_hv.svg") no-repeat right;
}
/*スマートフォン*/
@media screen and (max-width : 576px){

.open-btn{
	position: relative;
	top:0px;
	left:6px;
	border: 1px solid #ddd;
	border-radius: 3px;
}
#search-wrap{
	position: relative;/*絶対配置にして*/
	top:0px;
}
#search-wrap.panelactive{
	width:87%;
	top:0px;
	left:4px;
}

}