@charset "utf-8";
/*====================================
	PHOTO GALLERY
====================================*/
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text&display=swap');
.gallery_area {
	width:auto;
	margin: 0 19px 30px;
}
.gallery_area2 {
	margin-left: 0;
	width:942px;
	margin-bottom: 30px;
}

.gallery_kv {
	position: relative;
	margin:0 auto 30px;
}
.gallery_kv.img_landscape {
	width:100%;
}
.gallery_kv.img_portrait {
	width:65%
}
.gallery_kv h2 {
	position: absolute;
	left: 30px;
	/*top: 60px;*/
	bottom:50px;
	font-size: 4.5em;
	color: #fff;
	text-shadow: 0 0 50px #000, 0 0 100px #000;
	font-family: 'Crimson Text', serif;}
.gallery_kv p {
	position: absolute;
	bottom: 60px;
	right: 0;
	background-color: rgba(30,30,30,0.7);
	padding: 5px 35px;
	color: #fff;
	letter-spacing: 0.1em;
}
.gallery_kv img{
	width:100%;
}
#gallery_list {
	display: flex;
	flex-wrap: wrap;
	gap:10px;
	margin-bottom:20px;
}
#gallery_list li {
	width:calc((100% - 40px) / 5);
	padding:0;
}
#gallery_list li img {
	width: 100%;
	aspect-ratio:1;
	object-fit: cover;
	cursor: pointer;
	transition: 0.2s;
	border-radius: 10px;
}
#gallery_list li img:hover {
	opacity: 0.7;
}

@media all and (min-width: 768px) and (max-width: 989px) {
	.gallery_area2 {
		margin-left: 0;
		width:728px;
	}
	.gallery_kv h2 {
		left: 30px;
		/*top: 30px;*/
		font-size:50px;
		width:290px;
	}
	#gallery_list li {
		width:calc((100% - 30px) / 4);
	}
}
@media all and (max-width: 767px) {
	.gallery_area {
		margin-left: 12px;
		margin-right:12px;
		width:auto;
		margin-bottom: 5px;
	}

	.gallery_area2 {
		margin-left: 2px;
		margin-right:2px;
		width:auto;
		margin-bottom: 5px;
	}
	
	.gallery_kv{
		margin-bottom: 15px;
	}
	.gallery_kv h2 {
		left: 6%;
		/*top: 5%;*/
		bottom:9%;
		font-size:7vw;
		width:42%;
	}
	.gallery_kv p {
		bottom: 10%;
		padding: 5px 15px;
		letter-spacing: 0;
	}
	#gallery_list {
		gap:8px
	}
	#gallery_list li {
		width:calc((100% - 24px) / 4);
	}
	#gallery_list li img {
		border-radius: 8px;
	}
}

/*viewer.cssカスタマイズ*/
.viewer-backdrop {
	background-color: rgba(0,0,0,.8);
}
.viewer-title {
	color: #fff;
	font-size: 16px;
}

/* cp_box 
****************************************************************************/

.cp_box1 {
  position: relative;
}
.cp_box1 input {
  display: none;
}
/*開くためのボタンとテキストを隠すグラデーションの設定*/
.cp_box1 label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  bottom: -10px;
  width: 100%;
  height: 140px; /* グラデーションの高さ */
  cursor: pointer;
  text-align: center;
  /* 以下グラデーションは背景を自身のサイトに合わせて設定してください */
  background: linear-gradient(to bottom, rgba(250, 252, 252, 0) 0%, rgba(250, 252, 252, 0.95) 90%);
}
/* 開いた時にグラデーションを消す */
.cp_box1 input:checked + label {
  background: inherit;
}
.cp_box1 input:checked + label {
  /* display: none ; 閉じるボタンを消す場合コメントアウトを外す */
}
.cp_box1 .cp_container {
  overflow: hidden;
  height: 480px; /* 開く前に見えている部分の高さ */
  transition: all 0.5s;
}
@media screen and (max-width:640px) {.cp_box1 .cp_container {height:280px;margin-bottom:3vw;}}

/*続きを見るボタン*/
.cp_box1 label:after,
.cp_box1 label::before {
  content: '';
  position: absolute;
  line-height: 2.5rem;
}
.cp_box1 label:after {
  z-index: 2;
  bottom: 20px;
  width: 13em;
  content: '続きを見る';
  color: #ffffff;
  background: #1b2538;
  border-radius: 20px;
}
.cp_box1 label::before {
  position: absolute;
  bottom: 38px;
  left: calc(50% - 3.5em);
  z-index: 3;
  width: 10px;
  height: 5px;
  background: #ffffff;
  clip-path: polygon(50% 100%, 0 0, 100% 0)
}
/*閉じるボタン*/
.cp_box1 input:checked + label:after {
  content: '閉じる';
}
.cp_box1 input:checked + label:before {
  left: calc(50% - 2.5em);
  transform: scale(1, -1);
}
.cp_box1 input:checked ~ .cp_container {
  height: auto;
  padding-bottom: 80px; /* 閉じるボタンのbottomからの位置 */
  transition: all 0.5s;
}


