@charset "utf-8";
html,body{
height: 100%;
}
.wrapper{
width: 100%;
padding: 0 10px;
background-color:#fff;
}

header{
height: 80px;
background-color: #fff;
}

header h1{
font-size: 24px;
line-height: 80px;/*中央・行の高さ*/
text-align: center;
}
header h1 a{
text-decoration: none;
}
main{
background-color: #fff;
}

/* ?アイコン */
#help-icon {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #333;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

/* モーダル背景 */
#help-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#help-modal.hidden {
  display: none !important;
}

/* モーダル内容 */
.modal-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  width: 80%;
  max-width: 540px;
  box-shadow: 0px 4px 16px rgba(0,0,0,0.3);
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: center;
}

#close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}



/*louding*/
#loading_bg{
    padding:0;
    margin:0;
    width:100%;
    height:100vh;
  background:radial-gradient(#333, #334);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.loading{
    width:200px;
    height:60px;
    position: absolute;
    z-index:999;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
}
.circle{
    width:20px;
    height:20px;
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    left:15%;
    transform-origin: 50%;
    animation: circle .5s alternate infinite ease;
}

@keyframes circle{
    0%{
        top:60px;
        height:5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }
    40%{
        height:20px;
        border-radius: 50%;
        transform: scaleX(1);
    }
    100%{
        top:0%;
    }
}
.circle:nth-child(2){
    left:45%;
    animation-delay: .2s;
}
.circle:nth-child(3){
    left:auto;
    right:15%;
    animation-delay: .3s;
}
.shadow{
    width:20px;
    height:4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top:62px;
    transform-origin: 50%;
    z-index: -1;
    left:15%;
    filter: blur(1px);
    animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
    0%{
        transform: scaleX(1.5);
    }
    40%{
        transform: scaleX(1);
        opacity: .7;
    }
    100%{
        transform: scaleX(.2);
        opacity: .4;
    }
}
.shadow:nth-child(4){
    left: 45%;
    animation-delay: .2s
}
.shadow:nth-child(5){
    left:auto;
    right:15%;
    animation-delay: .3s;
}
.loading span{
    position: absolute;
    top:75px;
    font-family: 'Lato';
    font-size: 20px;
    letter-spacing: 12px;
    color: #fff;
    left:15%;
}


.search{
max-width: 1200px;
margin: 0 auto;
}

.category{
  display: inline-block;
  padding: 3px;
  cursor: pointer;
  text-align: center;
  width: 80px;
  height: auto;
  border: solid 1px #666;
  border-radius: 5px;
}
.category.is-active {
  color: white;
  background-color: black;
}
.is-hide {
  display: none;
}

.contaoner{
max-width: 1200px;
margin: 0 auto;
min-height: 100vh;
}
.gallery{
columns: 5;
margin-top: 20px;
}
.gallery li{
margin-bottom: 20px;
list-style: none;
}
.gallery img{
width: 100%;
height: auto;
vertical-align: bottom;
}

/*grayscale*/
.gallery img{
	filter: grayscale(100%);/*モノクロ具合を変更したい場合はこの数値を変更*/
	transition: .3s ease-in-out;/*移り変わる速さを変更したい場合はこの数値を変更*/
}

.gallery a:hover img{/*hoverした時の変化*/
	filter:grayscale(0);
}

/* ボタン全体 */
.pagetop{
   height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #666;
	color: #fff;
	text-align: center;
	line-height: 50px;
	text-decoration: none;
    border-radius: 50%;
	transition: .3s;
	opacity: 0.7;
  }
  
  .pagetop:hover{
   background: #fff;
	color: #666;
	border: solid 1px;
  }


footer{
text-align: center;
}

/*タブレット*/
@media (max-width: 959px){
.contaoner{
max-width: 700px;
}
.gallery{
columns: 3;
}
.search{
max-width: 700px;
}
.category{
width: 60px;
}
}

/*スマホ*/
@media (max-width: 519px) {
.contaoner{
max-width: 350px;
}
.gallery{
columns: 2;
}
.search{
max-width: 350px;
}
.gallery li{
margin-bottom: 10px;
}
}