@charset "UTF-8";
/*
Theme Name: yu2020
Theme URI: http://you--create.com/
Description: デザイナー融のサイトテーマ
Version: 1.0
Author: Iguchi Noriko
Author URI: http://you--create.com/
*/
/*==================================================
ギャラリーcss
===================================*/

/*＝＝＝並び替えボタンのCSS*/
.sort-btn {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1em 0.5em;
}

.sort-btn li {
  background: #fff;
  list-style: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 1.25%;
  margin: 0 1.25%;
  font-family: "Bellota Text", cursive, sans-serif;
  font-size: 135%;
  line-height: 2em;
}

.sort-btn li.active {
  background: rgb(229, 214, 88);
  color: #fff;
}

/*横幅が480px以下*/
@media only screen and (max-width: 480px) {
  .sort-btn {
    justify-content: space-between;
  }
  .sort-btn li {
    width: 22%;
    margin: 0 0 0.5% 0;
    text-align: center;
  }
}

/*＝＝＝Muuriのレイアウト調整 */
.grid {
  position: relative;
  margin: 0 auto;
  margin: 5%;
  z-index: 2;
}

/*各画像の横幅などの設定*/
.item {
  display: flex;
  position: absolute;
  width: 20%;
  z-index: 1;
  list-style: none;
  margin: 0 auto;
  margin: 0 0 7% 7%;
  background: rgb(255, 255, 255, 0.6);
  padding: 2em;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/*内側ボックスの高さ維持*/
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/*画像の横幅を100%でレスポンシブ*/
.grid img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/*横幅768px以下*/
@media only screen and (max-width: 768px) {
  .item {
    width: 30%; /*横並びで2つ表示*/
    margin: 0 auto;
    margin: 3%;
    padding: 1.5em;
  }
}

/*＝＝＝fancyboxサムネイル背景と画像選択時の枠線の指定*/
.fancybox-thumbs {
  background: transparent !important;
}

.fancybox-thumbs__list a:before {
  border: 6px solid #e1ce4f;
}

/*--------------------------------------
----------------------------------------pagetop--*/
/*リンクを右下に固定*/
#pagetop {
  position: fixed;
  right: 5px;
  bottom: 30px;
  z-index: 5;
  opacity: 1;
  transform: translateY(20px);
}

/*画像の切り替えと動き*/
#pagetop a {
  /*aタグの形状*/
  position: absolute;
  width: 33.38px;
  height: 43.5px;
  right: 5px;
  bottom: 30px;
  z-index: 5;
  text-transform: uppercase;
  text-decoration: none;
  /*背景画像の指定*/
  background: url("../img/pagetop@2x.png") no-repeat center;
  background-size: contain;
}

#pagetop a:hover {
  width: 45.4px;
  height: 44.71px;
  /*背景画像の指定*/
  background: url("../img/pagetop_hover@2x.png") no-repeat center;
  background-size: contain;
  /*アニメーションの指定*/
  animation: floatAnime 3s linear infinite;
  opacity: 1;
  z-index: 2000;
}
/*　上に上がる動き　*/

#pagetop.UpMove {
  animation: UpAnime 1s forwards;
}
@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
