body {
	background: #fff8fb;
	color: #222;
}

#illust-page {
	min-height: 100vh;
	padding: 36px 0 90px;
	background:
		#fff8fb;
}

/* HOME */
.home-btn {
	position: fixed;
	top: 24px;
	left: 24px;
	z-index: 9999;
	padding: 13px 25px;
	background: #fff;
	border: 3px solid #222;
	border-radius: 999px;
	font-weight: 900;
	box-shadow: 7px 7px 0 #ff8fb0;
	transition: .15s;
}

.home-btn:hover {
	transform: translate(5px, 5px);
	box-shadow: 2px 2px 0 #ff8fb0;
}

/* 全体 */
.illust-layout {
	width: min(96%, 1500px);
	margin: 60px auto 0;
	display: grid;
	grid-template-columns: 180px 1fr 150px;
	gap: 26px;
	align-items: start;
}

/* 左メニュー */
.side-menu {
	position: sticky;
	top: 90px;
	min-height: 720px;
	padding: 34px 24px;
	background: #151827;
	border-radius: 28px;
	color: #fff;
	text-align: center;
}

.side-menu h2 {
	font-size: 34px;
	letter-spacing: 4px;
	font-weight: 900;
}

.side-menu p {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 900;
	color: #ffd5e5;
}

.side-menu nav {
	margin-top: 60px;
	display: grid;
	gap: 22px;
}

.side-menu nav a {
	padding: 10px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 1px;
	transition: .2s;
}

.side-menu nav a:hover,
.side-menu nav a.active {
	background: rgba(255,92,135,.18);
	color: #ff77a5;
}

.x-btn {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 28px;
	padding: 14px 8px;
	background: #ff5c87;
	border-radius: 999px;
	font-weight: 900;
}

/* 中央エリア */
.gallery-area {
	padding: 34px;
	background: rgba(255,255,255,.7);
	border-radius: 34px;
	box-shadow: 0 10px 35px rgba(255,92,135,.16);
}

/* タイトル */
.illust-title {
	width: min(92%, 760px);
	margin: 0 auto 34px;
	animation: folderDrop .8s cubic-bezier(.18, 1.35, .4, 1) both;
}

.folder-tabs {
	height: 34px;
	padding-left: 80px;
}

.folder-tabs .tab {
	display: inline-block;
	width: 170px;
	height: 38px;
	border: 3px solid #111;
	border-bottom: none;
	border-radius: 20px 20px 0 0;
	position: relative;
	top: 1px;
	transform-origin: bottom left;
	animation: tabOpen .9s .25s cubic-bezier(.18, 1.35, .4, 1) both;
}

.folder-tabs .pink {
	background: #ff8fb0;
}

.folder-tabs .blue {
	background: #75eaff;
	margin-left: -24px;
	z-index: -1;
}

.folder-title {
	padding: 28px 36px;
	border: 4px solid #111;
	border-radius: 24px;
	text-align: center;
	transform-origin: top center;
	animation: folderOpen .9s .35s cubic-bezier(.18, 1.35, .4, 1) both;
}

.folder-title h1 {
	font-size: clamp(48px, 6vw, 76px);
	font-weight: 900;
	letter-spacing: 12px;
	line-height: 1;
}

.folder-title p {
	display: inline-block;
	margin-top: 10px;
	font-size: 16px;
	font-weight: 900;
	border-bottom: 3px dashed #ff8fb0;
	padding-bottom: 8px;
}

/* フィルター */
.filter-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 32px;
}

.filter-btn {
	min-width: 124px;
	padding: 13px 24px;
	background: #fff;
	border: 3px solid #ffc4d8;
	border-radius: 999px;
	font-weight: 900;
	cursor: pointer;
	transition: .25s;
}

.filter-btn:hover,
.filter-btn.active {
	background: #ff5c87;
	color: #fff;
	border-color: #ff5c87;
	transform: translateY(-4px);
	box-shadow: 0 8px 18px rgba(255,92,135,.25);
}

/* ギャラリー */
.illust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(240px, 1fr));
	gap: 26px;
}

.illust-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 6px 16px rgba(255,92,135,.14);

	opacity: 0;
	transform: translateY(24px);
	will-change: transform, opacity;

	transition:
		opacity .45s ease,
		transform .45s ease,
		box-shadow .2s ease;
}

.illust-card.active {
	opacity: 1;
	transform: translateY(0);
}

.illust-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 24px rgba(255,92,135,.22);
}

.illust-card img {
	width: 100%;
	aspect-ratio: 182 / 257;
	object-fit: cover;
	display: block;
}

/* タグ */
.tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 14px;
	background: #ff5c87;
	color: #fff;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 900;
}

.tag.blue {
	background: #1fbaf7;
}

.tag.green {
	background: #27c041;
}

/* ホバー説明 */
.illust-info {
	position: absolute;
	inset: auto 0 0 0;
	padding: 22px;
	background: linear-gradient(
		180deg,
		rgba(0,0,0,0),
		rgba(255,92,135,.92)
	);
	color: #fff;
	opacity: 0;
	transform: translateY(24px);
	transition: .3s;
}

.illust-card:hover .illust-info {
	opacity: 1;
	transform: translateY(0);
}

.illust-info h2 {
	font-size: 21px;
	font-weight: 900;
	margin-bottom: 8px;
}

.illust-info p {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

.illust-info small {
	display: block;
	margin-top: 10px;
	font-weight: 900;
}

.illust-card.hide {
	display: none;
}

.illust-card.is-hidden {
	opacity: 0;
	transform: translateY(18px) scale(.96);
	pointer-events: none;
}

.illust-card.is-show {
	animation: cardPop .45s cubic-bezier(.18, 1.35, .4, 1) both;
}

/* 右リンク */
.fixed-link-menu {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 16px;
	padding: 18px;
	background: rgba(255,255,255,.84);
	border: 3px solid #ffb6d0;
	border-radius: 30px;
	box-shadow: 8px 8px 0 #ffcfe0;
}

.fixed-link-menu::before {
	content: "LINK";
	margin: -34px auto 6px;
	padding: 6px 24px;
	background: #ff5c87;
	color: #fff;
	border-radius: 999px;
	font-weight: 900;
	box-shadow: 4px 4px 0 #ffcfe0;
}

.fixed-link {
	min-height: 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 20px;
	font-weight: 900;
	text-align: center;
	box-shadow: 0 8px 20px rgba(255,92,135,.16);
	transition: .22s;
}

.fixed-link:hover {
	transform: translateY(-6px) scale(1.04);
}

.fixed-link span {
	font-size: 22px;
}

.fixed-link small {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

.fixed-link.skeb span {
	color: #ff5c87;
}

.fixed-link.dlsite span {
	color: #1f76ff;
}

.fixed-link.melon span {
	color:  #1bda54;
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: rgba(0,0,0,.78);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: .3s;
}

.lightbox.active {
	opacity: 1;
	visibility: visible;
}

.lightbox img {
	max-width: min(90vw, 900px);
	max-height: 78vh;
	object-fit: contain;
	border-radius: 18px;
	transform: scale(.92);
	transition: .3s;
}

.lightbox.active img {
	transform: scale(1);
}

.lightbox-close{
	position:absolute;

	top:20px;
	right:20px;

	width:58px;
	height:58px;

	display:flex;
	align-items:center;
	justify-content:center;

	border:3px solid #222;
	border-radius:50%;

	background:#fff;

	color:#ff5c87;

	font-size:34px;
	font-weight:900;

	cursor:pointer;


	transition:.18s;
}

/* ×を表示 */
.lightbox-close::before{
	content:"✕";
	line-height:1;
}

.lightbox-close:hover{

	transform:translate(4px,4px);

	background:#ff5c87;

	color:#fff;

}

.lightbox-close:active{

	transform:translate(6px,6px);

	box-shadow:none;

}

.lightbox-text{
	margin-top:20px;
	text-align:center;
	color:#fff;
}

.lightbox-text h2{
	color:#fff;
	font-size:30px;
	font-weight:900;
	text-shadow:0 2px 8px rgba(0,0,0,.6);
}

.lightbox-text p{
	color:#fff;
	font-size:16px;
	line-height:1.8;
	margin-top:8px;
	text-shadow:0 2px 8px rgba(0,0,0,.6);
}

.lightbox-text small{
	display:block;
	margin-top:12px;
	color:#ffd5e5;
	font-weight:700;
}

/* animation */
@keyframes folderDrop {
	0% {
		opacity: 0;
		transform: translateY(-35px) rotate(-3deg);
	}
	100% {
		opacity: 1;
		transform: translateY(0) rotate(0);
	}
}

@keyframes tabOpen {
	0% {
		transform: rotateX(65deg);
		opacity: 0;
	}
	100% {
		transform: rotateX(0);
		opacity: 1;
	}
}

@keyframes folderOpen {
	0% {
		opacity: 0;
		transform: rotateX(-45deg) translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: rotateX(0) translateY(0);
	}
}

@keyframes cardPop {
	0% {
		opacity: 0;
		transform: translateY(22px) scale(.94);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* responsive */
@media (max-width: 1200px) {
	.illust-layout {
		grid-template-columns: 1fr;
	}

	.side-menu {
		display: none;
	}

	.fixed-link-menu {
		position: fixed;
		right: 0;
		left: 0;
		top: auto;
		bottom: 0;
		z-index: 100000;
		grid-template-columns: repeat(3, 1fr);
		border-radius: 24px 24px 0 0;
		padding: 0;
	}

	.fixed-link-menu::before {
		display: none;
	}

	.fixed-link {
		border-radius: 0;
		min-height: 64px;
		position: relative;
		
		z-index: 99999;
	}

	.gallery-area {
		padding: 28px;
	}

	.lightbox {
	z-index: 200000;
}

.home-btn {
	z-index: 100000;
}

	.lightbox-close{
		top:12px;
		right:12px;

		width:54px;
		height:54px;

		font-size:30px;

		z-index:100000;
	}
}

@media (max-width: 850px) {
	.illust-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.illust-card.wide {
		grid-column: span 2;
	}
}

@media (max-width: 560px) {
	.home-btn {
		position: static;
		display: inline-flex;
		margin: 20px;
	}

	.illust-layout {
		margin-top: 20px;
	}

	.gallery-area {
		padding: 20px;
	}

	.folder-tabs {
		padding-left: 20px;
	}

	.folder-tabs .tab {
		width: 120px;
	}

	.folder-title h1 {
		letter-spacing: 5px;
	}

	.illust-grid {
		grid-template-columns: 1fr;
	}
}