@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;

}

.c-gallery li{
    overflow-y: hidden;
    aspect-ratio: 317 / 422;
    list-style: none;
}

.c-gallery img{
	width:100%;
	height:auto;
	vertical-align: bottom;
}

.c-txt {
    display: flex;
    position: absolute;
    right: .99em;
    height: 100%;
    letter-spacing: .09em;
    white-space: nowrap;
    overflow: hidden;
    align-items: center;
    font-size: 1.3em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    justify-content: center;
}


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

#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;
    }


}

@media (orientation: landscape) and (max-width: 768px){


}

