/*==================================================
ギャラリーのためのcss
===================================*/

.btnlinestretches{
    /*線の基点とするためrelativeを指定*/
    position:relative;
    /*ボタンの形状*/
    color:#333;
    border:2px solid #333;
    padding: 10px 30px; 
    display:inline-block;
    text-decoration: none;
    outline: none;
    /*アニメーションの指定*/
    background-color: white;
    transition:all 0.3s ease-in-out;
    font-weight: bold;
}

/*hoverした際の背景の形状*/
.case-list:hover{
  background:#333;
  color: #fff;
  border-color:transparent;
}

/*線の設定*/
.case-list::before,
.case-list::after {
  content:'';
    /*絶対配置で線の位置を決める*/   
  position:absolute;
  border:solid #000000;
  width:50px;
  height:50px;
    /*アニメーションの指定*/
  transition:all 0.3s ease-in-out;
}

/*線の位置と形状*/
.case-list::before{
  top:-6px;
  left:-6px;
  border-width:1px 0 0 1px;
}

/*線の位置と形状*/
.case-list::after{
  bottom:-6px;
  right:-6px;
  border-width:0 1px 1px 0;
}
/*＝＝＝並び替えボタンチェックマークのCSS*/
.case-list {
  color: rgb(0, 0, 0);
	border: solid 2px black;
	margin: 20px;
	position: relative;
	/*アニメーションの指定*/
  background-color: white;
  transition:all 0.3s ease-in-out;
  cursor: pointer;
}
.case-list:hover {
	background:#3d3c3c;
	color: #fff;
	border-color:transparent;
}
.case-list:hover .sort-btn ul li.active::after {
  border-left:3px solid #ffffff;
	border-bottom:3px solid #ffffff;
}
.sort-btn{
	padding: 0 20px 20px;
	margin: 10px 0;
}
.sort-btn dt{
	font-weight: bold;
	margin: 0 0 10px 0;
    font-size: 1.4rem;
}
.sort-btn dd{
	margin: 0 0 10px 0;
}
.sort-btn ul{
	display: flex;
	flex-wrap: wrap;
}
.sort-btn li{
	margin: 0 10px;
    list-style: none;
}
.sort-btn ul li{
	position: relative;
	cursor: pointer;
	padding: 0 0 0 30px;
	margin: 0 50px 20px 0;
}
/*チェックマークの設定*/
.sort-btn ul li::before{
	content:'';
	position: absolute;
	left: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 50%;
}
.sort-btn ul li.active::after{
    /*現在地＝activeというクラス名がついたらチェックマークを出現*/
	content:'';
	position: absolute;
	left:5px;	
	top:0;
    /*チェックマークの色や形*/
	border-left:3px solid #000000;
	border-bottom:3px solid #000000;
	width:16px;
	height:9px;
	transform:rotate(-45deg);
}


/*＝＝＝Muuriのレイアウトのための調整 */
.grid {
  position: relative;/*並び替えの基準点を指定*/
}
/*各画像の横幅などの設定*/
.item {
  display: block;
  position: absolute;
  width: 33%;/*横並びで3つ表示*/
  padding: 0 10px 10px 10px;/*画像に余白をつける*/
  z-index: 1;
  list-style: none;
}
/*内側のボックスの高さが崩れないように維持*/
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.item-content a:hover {
    opacity: 0.5;
}
/*画像の横幅を100%にしてレスポンシブ化*/
.grid img{
	width: 100%;
	height: auto;
	vertical-align: bottom;/*画像の下にできる余白を削除*/
}
/*＝＝＝fancyboxサムネイル背景と画像選択時の枠線の指定*/
.fancybox-thumbs {
    background: transparent!important;
}
.fancybox-thumbs__list a:before {
    border: 6px solid #FA999B;
}

/*---------------------------------
装飾ボタン
------------------------------*/
.case-result {
  text-align: center;
}
.link-box {
    margin: 20px;
    text-align: center;
  }
  .balloon {
    position: relative;
    display: inline-block;
    margin: 1.5em ;
    padding: 7px 10px;
    min-width: 120px;
    max-width: 100%;
    color: #000000;
    background: #ffffff;
    border-radius: 15px;
    border: solid 2px black;
    font-weight: bold;
  }
  .balloon:before {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 50%;
    margin-left: -15px;
    border: 12px solid transparent;
    border-top: 12px solid #FFF;
    z-index: 2;
  }
  .balloon:after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    margin-left: -17px;
    border: 14px solid transparent;
    border-top: 14px solid #555;
    z-index: 1;
  }
  .balloon p {
    margin: 0;
    padding: 0;
  }

/*横幅が810px以下になった際の指定*/
@media only screen and (max-width: 810px) {
    .sort-btn li{
        width:100%;
        margin:0;
    }
    .sort-btn ul li{
        width:auto;
    }       
}
@media only screen and (max-width: 768px) {
.item {
  width: 49.5%;/*横並びで2つ表示*/
  padding: 0 5px 10px 5px;
}
}

/*---------------------------------------
  スマホ対応
-------------------------------------*/
@media screen and (max-width: 610px) {
  .sort-btn dt {
    font-size: 1.1rem;
  }
}