@charset "UTF-8";
/* CSS Document */

/*==================================================
ギャラリーのためのcss
===================================*/
/*＝＝＝並び替えボタンチェックマークのCSS*/
.sort-btn{
	width: 100%;
  padding: 20px 45px;
  margin: 50px auto 60px;
  display: flex;
  justify-content:left;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 800px;
}
.sort-btn li{
	font-weight: 500;
	margin:0 0 10px 0;
}

/*.sort-btn dd{
	margin:0 0 10px 0;
}*/

.sort-btn ul{
	display: flex;
	flex-wrap: wrap;
}

.sort-btn li{
	margin:0 15px;
list-style:none;
}

.sort-btn li{
	position: relative;
	cursor: pointer;
	padding:0 0 0 30px;
}
    
/*横幅が810px以下になった際の指定*/
@media only screen and (max-width: 810px) {

.sort-btn{
  width: 100%;
  max-width:370px;
  padding: 20px 45px;
  margin: 0 auto 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
} 
.sort-btn li{
	width:40%;
	margin:0;
}
	
.sort-btn ul li{
	width:auto;
}
.sort-btn .mens {
    margin-left: 0px;
}
}
/*チェックマークの設定*/
.sort-btn li::before{
	content:'';
	position: absolute;
	left:0;
	width:20px;
	height:20px;
	border:2px solid #ccc;
  z-index: 99;
}

.sort-btn li.active::after{/*現在地＝activeというクラス名がついたらチェックマークを出現*/
	content:'';
	position: absolute;
	left:5px;	
	top:0;
    /*チェックマークの色や形*/
	border-left:2px solid #525350;
	border-bottom:2px solid #525350;
	width:16px;
	height:9px;
	transform:rotate(-45deg);
  z-index: 99;
}
/*＝＝＝Muuriのレイアウトのための調整 */
.grid {
  position: relative;/*並び替えの基準点を指定*/
  width: 90%;
  margin: 0 auto;
}

/*各画像の横幅などの設定*/
.item {
  display: block;
  position: absolute;
  width: 25%;/*横並びで4つ表示*/
  padding:0 10px 10px 10px;/*画像に余白をつける*/
  z-index: 1;
list-style:none;

}

/*内側のボックスの高さが崩れないように維持*/
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  
}
/*画像の横幅を100%にしてレスポンシブ化*/
.grid img{
	width:100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
	vertical-align: bottom;/*画像の下にできる余白を削除*/
}
/*横幅が768px以下になった際の指定*/
@media only screen and (max-width: 768px) {
.item {
  width: 33%;/*横並びで3つ表示*/
  padding: 0 5px 10px 5px;
}
}
/*--------------------------------
画像拡大表示　モーダル
---------------------------------*/
/*全て共通：hideエリアをはじめは非表示*/
.hide-area{
	display: none;}

/*全て共通：モーダルのボタンの色を変更したい場合*/
.modaal-close:after, 
.modaal-close:before{
	background:#ccc;	
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background:#666;
}
