@charset "utf-8";
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
 
.clearfix::after{
  content: "";
	display: block;
	clear: both;
}

.cf {
    zoom:1;
}

/* =====ボタン内側===== */
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 7px;
    height: 1px;
    border-radius: 2px;
	background: #eee;
  	width: 70%;
}


/*=====ページネーションCSS =====*/

.pagination {
	position:fixed;
	right:20px;
	top: 50%;
  	transform: translateY(-50%);
	font-size:1em;
	z-index: 10;
	list-style: none;
}

.pagination a {
	display:block;
	height:20px;
	margin-bottom:5px;
	color:#eee;
	position:relative;
	padding:4px;
}

.pagination a.active:after {
	box-shadow:inset 0 0 0 5px;
}

/*現在地表示のテキストの設定*/
.pagination a .hover-text {
	position:absolute;
	right:15px;
	top:0;
	opacity:0;
	-webkit-transition: opacity 0.5s ease;
	transition: opacity 0.5s ease;
	padding-right: 15px;
}

.pagination a:hover .hover-text {
	opacity: 1;
}

.pagination a:after {
	-webkit-transition:box-shadow 0.5s ease;
	transition:box-shadow 0.5s ease;
	width:8px;
	height:8px;
	display: block;
	border:1px solid;
	border-radius:50%;
	content:"";
	position: absolute;
	margin:auto;
	top:0;
	right:3px;
	bottom:0;
}

/* =====コンテンツ===== */

#main{
    min-height: 100vh;
    position: relative;
}

.c-gallery{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    justify-content: center;
    gap: 0px;

}

.item.size2 {
    grid-row-end: span 2;
}
.item.size3 {
    grid-row-end: span 3;
}
.item.size4 {
    grid-row-end: span 4;
}

.c-gallery li{

    /* cursor: pointer; */
    /* overflow-y: hidden; */
    object-fit: cover;
    list-style: none;
}

.c-gallery img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;

    /* opacity:1;
	transition: .3s ease-in-out; */
}



figure {
  position: relative;
  display: inline-block;
  /* margin-right: 20px;
  width: 400px; */
}

figure figcaption {
    /* display: flex;
    position: absolute;
    top: 46.5%;
    right: -65px;
    font-size: 1.1em;
    transform: rotate(-90deg);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    justify-content: center;
    align-items: flex-end; */

    /* background: #333; */

    display: flex;
    position: absolute;
    bottom: 0;
    right: .2em;
    height: 100%;
    color: #fff;
    letter-spacing: .09em;
    white-space: nowrap;
    overflow: hidden;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 0 .9rem;
    margin: 0 0 -.3125rem;
    line-height: 1.333333333333333; 


}

.c-works, span {
    display: block;
    font-feature-settings: "pkna" 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}


/* =====ページトップ=====*/

#page-top a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    /* display: inline-block; */
	transition:all 0.3s;
}

#page-top {
    position: fixed;
    right: 4px;
    bottom: 25px;
    z-index: 2;
    cursor: pointer;
	opacity: 0;
	transform: translateY(100px);
}

.pagetopbtn {
    position: relative;
    display: inline-block;

}

.pagetopbtn::before,
.pagetopbtn::after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 0.5px);
    width: 1px;
    height: 11px;
    border-radius: 9999px;
    background-color: #eee;
    transform-origin: 50% 0.5px;
}

.pagetopbtn::before {
    transform: rotate(45deg);
}

.pagetopbtn::after {
    transform: rotate(-45deg);
}

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}




/* タブレット: 768px〜 */
@media screen and (max-width:768px) { 

    

	.pagination a .hover-text{
		display: none;
	}

    #g-nav, #g-nav.panelactive #g-nav-list {
        width: 100%;
    }

    #g-nav ul {
        left: 60px;
    }

    figure figcaption {
        /* left: 94%
        3%; */
     }
    /* .sp-only {
    display: block;
    } */
}

 @media screen and (max-width: 480px) {
  figure figcaption {
        font-size: .7em;
        letter-spacing: .01em;
        padding: 0 0 .4rem;
     }
 }

