@charset "utf-8";

/* -----------------------------
	gallery-area
-------------------------------- */
	.gallery-area{
		padding: 0 0 100px;
	}
.gallery-area .niwork-list{

	margin: 150px 0 0;
}
.gallery-area .niwork-list:first-of-type{
	margin: 50px 0 0;
}
.gallery-area .catch-l{
	text-align: right;
}
.gallery-area .scroll-infinity__wrap {
  	flex-direction: column;
	/*overflow: inherit;*/
}
.gallery-area .scroll-infinity__list--left {
  animation: initial;
}
.gallery-area .parent{
	grid-template-rows: auto;
}
.gallery-area .photo-item img{
	border-radius: 0;
}
.gallery-area .accordion {
  position: relative;
}
/* ボタン */
.gallery-area .accordion-btn {
	background-color: #333;
	border: 1px solid #333;
	bottom: 0;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 2rem;
	letter-spacing: 0.1em;
	left: 0;
	margin: auto;
	padding: 15px 40px;
	position: absolute;
	right: 0;
	text-align: center;
	transition: all .2s;
	width: fit-content;
	font-family: var(--en);
	z-index: 2;
	bottom: -40px;
}
/* 続きを読むボタンの表記 */
.gallery-area .accordion-btn::after {
  content: "view more";
}
/* ボタンhover時のスタイル */
.gallery-area .accordion-btn:hover {
  background-color: #fff;
  color: #333;
}
.gallery-area .accordion-text {
  overflow: hidden; /* テキストを隠す */
  position: relative;
}
/* 最初に見えてるテキストエリアの高さ */
.gallery-area .accordion-text.is-hide {
  height: 1000px;
}
/* テキストをグラデーションで隠す */
.gallery-area .accordion-text::before {
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.9) 50%, #fff 100%);
  background:         linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.9) 50%, #fff 100%);
  bottom: 0;
  content: "";
  height: 60px; /* グラデーションで隠す高さ */
  position: absolute;
  width: 100%;
	z-index: 1;
}
/* 閉じるボタンの位置 */
.gallery-area .accordion-btn.is-show {
  bottom: -3em;
}
/* 閉じるボタンの表記 */
.gallery-area .accordion-btn.is-show::after {
  content: "close";
}
/* 続きを見るボタンをクリックしたらテキストを隠しているグラデーションを消す */
.gallery-area .accordion-btn.is-show + .accordion-text::before {
  display: none;
}
/* レイアウトの為のスタイル */
.gallery-area .accordion {
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  width: 300px;
}
.gallery-area .accordion:not(:first-of-type) {
  margin-bottom: 100px;
  margin-top: 100px;
}
.gallery-area .accordion-text p {
  line-height: 1.3;
}
@media screen and (max-width: 768px){
	.gallery-area{
		padding: 0 0 100px;
	}
	.gallery-area .niwork-list {
		margin: 0 0 0;
		gap: 10px;
	}
	.gallery-area .niwork-list:nth-child(n + 2){
		margin: 100px 0 0;
	}
	.gallery-area .catch-l{
		text-align: left;
		padding: 20px 0 0;
	}
	.gallery-slide{
		margin: 0;
	}
	.gallery-area .scroll-infinity__list--left{
		flex-wrap: wrap;
	}
	.gallery-area .parent li:nth-child(1n), 
	.gallery-area .parent li:nth-child(2n), 
	.gallery-area .parent li:nth-child(3n), 
	.gallery-area .parent li:nth-child(4n), 
	.gallery-area .parent li:nth-child(5n), 
	.gallery-area .parent li:nth-child(6n){
		width: calc((100% / 2) - 5px);
	}
	
	.list-area{
		padding: 0;
	}
}
