@charset "utf-8";
/* CSS Document */

body{
    font-family: "Zen Antique", serif;
    /*font-weight: 400;*/
    font-style: normal;
    margin: 0 auto;
	font-size:1.1vw;
    color:#29392b;
    text-align: center;
    line-height: 180%;

}

h2{
    width: 50%;
    font-size:3vw;
    background: url("../img/題名背景.png");
    background-repeat: no-repeat;
    background-size: 100%;
    padding:4% 1% 5% 1%;
    margin-left:25%;
}

header{
    width: 100%;
    height: 80%;
    font-size:1.5vw;
    position: absolute;
    background:url("../img/葉っぱ.png");
    background-size: 100%;
    background-repeat:no-repeat;
   z-index: 1;
}

header ul a{
    margin-top:2%;
    padding: 1% 5% 3% 5%;
    color:#fff;
       text-decoration: none;
    
}

header ul a:hover{
    background: url("../img/題名背景.png");
    background-size: 100%;
    background-repeat: no-repeat;
    text-shadow: #111 1px 0 10px;
    color:#FFFAD6;
    transform: scale(1.25);
    transition-duration: 0.5s;
    
}
#header_pc a img:hover{
        transform: scale(1.25);
        transition-duration: 0.5s;
    }
    
   footer a img:hover, footer a:hover{
        transform: scale(1.25);
        transition-duration: 0.5s;
    }
    

header img{
    width:20%;
}


#header_pc img{
   float:left;
}

#header_pc ul{
	display: flex;
	 justify-content: center;
    margin-left:40%;
}

.openbtn,#g-nav,#header_sp{
    display: none;
}

.wrapper{
    background: url("../img/背景.png");
    background-size: cover;
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    width: 100%;
}


#main{
    width:57.8125%;
    margin: 0 auto;
}

#gallery_box{
    padding-top:20%;
    width:100%;
}

#gallery_about{
    padding-top:30%;
}

.boxss{
    width:80%;
    display: flex;
    border: 1px dotted #29392b;
    margin-top:5%;
    margin-left:10%;
}

.boxss img{
    width:20%;
}

.textbox{
    width:70%;
    height: 10%;
    padding-left:15%;
    text-align: left;
    font-size:0.9vw;
}

.textbox h3{
    border-bottom: 1px dotted #29392b;
}
#gallery_box p{
    padding:3%;
}


.modal__image{
    margin:2% 0 5% 0 ;
   
}

footer{
    width:100%;
    background-image: url("../img/footer_gazo.png");
    background-size:100%;
    background-repeat: no-repeat;
    color:#fff;
    padding-top:25%;
    height: auto;
    text-align: center;
}

#logo_ft{
    width:15%;
    padding: 2%;
}

.img_boxs{
    width:15%;
    margin: 0 auto;
    /*margin-left:43%;*/
    display: flex;
}

.img_boxs img{
 
     width:50%;
}

footer p{
    line-height: 180%;
    font-size:1.3vw;
}


/*ページトップ*/
    
#page-top a{
	/*それぞれに0.5秒の変化のアニメーション*/
	/*縦書き*/
   background-color: rgba(168,229,165,0.7);
    border-radius: 30%;
	-webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
	/*改行禁止*/
    white-space: nowrap;
	/*矢印の動き*/
	
}    
    
#page-top a::after{
     
	content:"";
	position: absolute;
	top:0;
	right:0;
	width:1px;
	height: 80px;
	background:#666;
    animation: arrowsmove 1s ease-in-out infinite;        
}

 #page-top a::before {
    content: "";
    position: absolute;
    top: 0;
    right: -6px;
    width: 1px;
    height: 20px;
    background: #666;
    transform: skewX(31deg);
}


#page-top a:hover{
	background-color: rgba(168,229,165,0.7);
    border-radius: 30%;
    padding:10%;
    text-shadow: #111 1px 0 10px;
    color:#FFFAD6;
    transition-duration: 0.5s;
}

/*リンクを右下に固定*/
#page-top {
    
    position: fixed;
	right: 5%;
	bottom:1%;
	z-index: 100;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(200);
    
}
    
@keyframes arrowsmove{
      0%{bottom:1%;}
      50%{bottom:3%;}
     100%{bottom:1%;}
 }


/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100);
  }
  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(100);
  }
}



.fadeIn{
animation-name:fadeInAnime;
animation-duration:4s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeInAnime{
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}   

.modal {
  margin:2%;
}

/* モーダルを開くボタン */
.modal__images {
  display: flex;
  flex-wrap: wrap;
   margin-left:10%;
}

.modal__images .modal__image {
  position:relative;
  width:calc((200% - (5px * 0)) / 6);
  transition: opacity .6s;
}

.modal__images .modal__image:hover {
  opacity: .6;
    transform: scale(1.1); 
     transition: transform 0.5s ease-out;
}

.modal__images .modal__trigger {
  cursor: pointer;
}


.modal__images .modal__image:before {
  display: block;
  padding-bottom:120%/* calc((2 / 3) *200%)*/;
 /* padding-top: 100%;*/
  content: '';
}

.modal__images .modal__image img {
  position: absolute;
  top:0%;
  left: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: center top; 
  z-index: 10;
}

/* モーダル本体 */
.modal__wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  z-index: 20;
  width: 100%;
  height: 100%;
}

.modal__layer {
  height: 150%;
  background: rgba(50, 50, 50, .85);
  cursor: pointer;
}

.modal__container {
  position: absolute;
  z-index:50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: scroll;
  width: min(calc(100% - 40px), 1000px);
  max-height: calc(70% - 40px);
}

/* モーダルを閉じるボタン */
.modal__close {
  position: absolute;
   z-index:30;
  top: 10px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(50, 50, 50, 1);
  cursor: pointer;
  transition: opacity .6s;
}

.modal__close:hover {
  opacity: .6;
}

.modal__close:before,
.modal__close:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  content: '';
}

.modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__content .modal__image img {
  width: 50%;
}
