@charset "UTF-8";

* {
	box-sizing: border-box;
}

a {
	color: inherit;
	text-decoration: none;
}

body.album-list-page {
	background: #fff1f1;
	color: #111111;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-width: 320px;
}

.album-list {
	flex: 1 0 auto;
	padding: 17px 24px 0;
	overflow-x: auto;
}

.album-spread {
	display: flex;
	margin: 0 auto;
	transform-origin: top center;
	zoom: min(1, calc(100vw / 1280px));
	max-width: 1280px;
	width: 1280px;
	background: #42080f; /* 濃い臙脂色（えんじいろ）の革表紙 */
	border-radius: 34px;
	padding: 16px 24px;
	box-shadow: 0 25px 60px rgba(66, 8, 15, 0.25), 0 12px 25px rgba(0, 0, 0, 0.25);
	position: relative;
}

.album-sheet {
	background: #fff5d1;
	border-radius: 30px;
	min-height: 802px;
	position: relative;
	flex: none;
	width: 616px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.album-sheet--left {
	padding: 225px 40px 40px 30px;
	border-right: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.18), inset 0 0 30px rgba(0, 0, 0, 0.03);
}

.album-sheet--right {
	padding: 225px 30px 40px 40px;
	border-left: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.18), inset 0 0 30px rgba(0, 0, 0, 0.03);
}

.album-sheet--left::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 100%;
	background: linear-gradient(to left, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 10;
}

.album-sheet--right::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 100%;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 10;
}

.album-sheet__close {
	color: #111111;
	font-size: 20px;
	left: 30px;
	line-height: 1;
	position: absolute;
	top: 18px;
	white-space: nowrap;
}

.album-grid {
	display: grid;
	gap: 36px 22px;
	grid-template-columns: repeat(4, 120px);
	justify-content: start;
	justify-items: start;
	align-items: start;
	width: auto;
}

.album-card {
	color: #111111;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 120px;
}

.album-card__frame {
	background: #54baff;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.album-card--regular .album-card__frame {
	height: 152px;
	width: 120px;
}

.album-card--featured {
	position: absolute;
	right: 16px;
	top: 12px;
	width: 159px;
	z-index: 1;
}

.album-card--featured .album-card__frame {
	height: 201px;
	width: 159px;
}

.album-card__photo {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.album-card__icon {
	display: none;
}

.album-card__caption {
	font-size: 10px;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}


.header {
	background: #711622;
	color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 20;
}

.header__inner,
.menu-overlay__header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1280px;
	min-height: 99px;
	padding: 10px 20px;
}

.menu-close {
	gap: 0;
	height: 70px;
	position: relative;
	width: 93px;
}

.menu-close span {
	background: currentColor;
	display: block;
	height: 4px;
	position: absolute;
	width: 38px;
}

.menu-close span:first-child {
	transform: rotate(45deg);
}

.menu-close span:last-child {
	transform: rotate(-45deg);
}

.menu-overlay__nav {
	display: grid;
	gap: 20px;
	margin: 0 auto;
	max-width: 1280px;
	padding: 36px 24px;
}

.menu-overlay__nav a {
	font-size: 28px;
	line-height: 1.4;
}

@media (max-width: 900px) {
	.header__nav-link {
		display: none;
	}

	.header__inner,
	.menu-overlay__header {
		min-height: 72px;
		padding: 8px 14px;
	}

	.header__logo,
	.menu-overlay__logo {
		font-size: clamp(1.6rem, 5vw, 2rem);
	}

	.menu-button,
	.menu-close {
		height: 56px;
		width: 72px;
	}

	.menu-button span {
		height: 4px;
		width: 52px;
	}

	.album-list {
		padding: 12px 14px 0;
	}

	.album-sheet {
		border-radius: 22px;
	}

	.album-sheet--left {
		padding: 180px 24px 32px 18px;
	}

	.album-sheet--right {
		padding: 180px 18px 32px 24px;
	}

	.album-sheet__close {
		font-size: 18px;
		left: 18px;
		top: 16px;
	}

	.album-grid {
		gap: 28px 16px;
	}


}

@media (max-width: 560px) {
	.album-spread {
		min-width: 520px;
	}

	.album-list {
		overflow-x: auto;
	}

	.album-sheet--left,
	.album-sheet--right {
		padding-top: 150px;
	}

	.album-grid {
		gap: 22px 12px;
	}
}
/* -----------------------------------
 * 写真カードのインタラクション
 * ----------------------------------- */
.album-card__frame {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card__frame:hover {
	transform: scale(1.03);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* -----------------------------------
 * 写真詳細ポップアップ (モーダル)
 * ----------------------------------- */
.photo-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.photo-modal[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}

.photo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 21, 21, 0.7);
	backdrop-filter: blur(3px);
}

.photo-modal__container {
	position: relative;
	z-index: 10;
	background: #fff6da;
	color: #1f1515;
	border-radius: 32px;
	width: min(840px, 94vw);
	max-height: 90vh;
	overflow-y: auto;
	padding: 44px 40px 40px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	transform: scale(0.95);
	transition: transform 0.3s ease;
	font-family: "HarenosoraMincho", serif;
}

.photo-modal[aria-hidden="false"] .photo-modal__container {
	transform: scale(1);
}

.photo-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	background: #711622;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
	z-index: 15;
}

.photo-modal__close:hover {
	background: #55101a;
	transform: scale(1.08);
}

.photo-modal__close span {
	position: absolute;
	width: 20px;
	height: 3px;
	background: #ffffff;
	border-radius: 2px;
}

.photo-modal__close span:first-child {
	transform: rotate(45deg);
}

.photo-modal__close span:last-child {
	transform: rotate(-45deg);
}

.photo-modal__content {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 36px;
	align-items: stretch;
	text-align: left;
}

/* 左カラム */
.photo-modal__col-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.photo-modal__header-group {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.photo-modal__photo-box {
	flex: 0 0 170px;
	width: 170px;
	height: 170px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #dedede;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.photo-modal__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.photo-modal__basic-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 1.15rem;
	line-height: 1.45;
	color: #1f1515;
	padding-top: 4px;
}

.photo-modal__info-line {
	margin: 0;
	white-space: nowrap;
}

.photo-modal__profile-section {
	margin-top: 4px;
}

.photo-modal__section-heading {
	font-size: 1.2rem;
	margin: 0 0 8px;
	font-weight: normal;
	color: #1f1515;
}

.photo-modal__section-body {
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
	color: #333333;
	white-space: pre-wrap;
	word-break: break-word;
}

.photo-modal__extra-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 1.15rem;
	margin-top: auto;
	padding-top: 12px;
	color: #1f1515;
}

/* 右カラム */
.photo-modal__col-right {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.photo-modal__home-heading {
	font-size: 1.4rem;
	margin: 0;
	font-weight: normal;
	color: #1f1515;
}

.photo-modal__home-box {
	background: #bce2e7;
	border-radius: 24px;
	flex: 1;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow: hidden;
	color: #1f1515;
	font-size: 1.05rem;
	text-align: center;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.photo-modal__home-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 12px;
}

@media (max-width: 760px) {
	.photo-modal__container {
		padding: 40px 24px 28px;
	}

	.photo-modal__content {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.photo-modal__home-box {
		min-height: 240px;
	}
}
