/*
Theme Name: Art Postcard Child
Theme URI: https://example.com/
Description: 絵葉書データベースサイト向けの子テーマです。
Author: Project Team
Author URI: https://example.com/
Template: generatepress
Version: 0.1.0
Text Domain: art-postcard-child
*/

/* 見た目の調整はこの子テーマ側に集約します。 */

:root {
	--postcard-content-width: 960px;
	--postcard-home-width: 1180px;
	--postcard-gap: 24px;
	--postcard-card-bg: #ffffff;
	--postcard-border: #d9d2c3;
	--postcard-ink: #2c241b;
	--postcard-muted: #5f5448;
	--postcard-accent: #8a6a43;
	--postcard-paper: #f8f4ec;
}

.home .site-content,
.home .inside-article {
	max-width: var(--postcard-home-width);
	margin: 0 auto;
	padding: 32px 20px 48px;
}

.post-type-archive-postcard .site-content,
.post-type-archive-postcard .inside-article,
.single-postcard .site-content,
.single-postcard .inside-article {
	max-width: var(--postcard-content-width);
	margin: 0 auto;
	padding: 32px 20px 48px;
}

.home #right-sidebar,
.home #left-sidebar,
.post-type-archive-postcard #right-sidebar,
.post-type-archive-postcard #left-sidebar,
.single-postcard #right-sidebar,
.single-postcard #left-sidebar {
	display: none;
}

.home #primary,
.post-type-archive-postcard #primary,
.single-postcard #primary {
	float: none;
	width: 100%;
	margin: 0;
}

.home .content-area,
.post-type-archive-postcard .content-area,
.single-postcard .content-area {
	width: 100%;
}

body.postcard-home-modal-open {
	overflow: hidden;
}

.postcard-home {
	display: grid;
	gap: 56px;
	max-width: var(--postcard-home-width);
	margin: 0 auto;
	padding: 0 20px 72px;
	color: var(--postcard-ink);
}

.postcard-home__hero {
	position: relative;
	padding: 72px 32px 56px;
	background:
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 38%),
		linear-gradient(135deg, #efe2cd 0%, #f8f4ec 55%, #e6dbc9 100%);
	border: 1px solid #e3d6c3;
	overflow: hidden;
}

.postcard-home__hero::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(138, 106, 67, 0.08);
}

.postcard-home__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.postcard-home__eyebrow,
.postcard-home__section-label {
	margin: 0 0 12px;
	color: var(--postcard-accent);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.postcard-home__title {
	margin: 0;
	font-size: clamp(2.8rem, 6vw, 5.6rem);
	line-height: 1.02;
	letter-spacing: 0.03em;
}

.postcard-home__subtitle {
	margin: 18px 0 0;
	font-size: clamp(1.05rem, 2vw, 1.5rem);
	color: var(--postcard-muted);
}

.postcard-home__intro,
.postcard-home__collection,
.postcard-home__filter,
.postcard-home__quiz {
	padding: 0 4px;
}

.postcard-home__section-heading {
	margin-bottom: 22px;
}

.postcard-home__section-heading h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
}

.postcard-home__intro {
	display: grid;
	grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
	gap: 28px;
	align-items: start;
}

.postcard-home__intro-copy {
	padding: 28px 30px;
	background: var(--postcard-paper);
	border-left: 4px solid var(--postcard-accent);
}

.postcard-home__intro-copy p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 2;
}

.postcard-home__signature {
	margin-top: 18px;
	font-weight: 700;
}

.postcard-home__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.postcard-home__card {
	display: grid;
	gap: 14px;
	padding: 18px;
	background: var(--postcard-card-bg);
	border: 1px solid var(--postcard-border);
	box-shadow: 0 18px 36px rgba(55, 42, 27, 0.06);
}

.postcard-home__card[hidden] {
	display: none;
}

.postcard-home__card-button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--postcard-ink);
	text-align: left;
	cursor: pointer;
}

.postcard-home__card-button:hover,
.postcard-home__card-button:focus,
.postcard-home__card-button:active {
	background: #f7f2ea;
	color: var(--postcard-ink);
	box-shadow: none;
	outline: none;
}

.postcard-home__card-frame {
	padding: 14px;
	background: linear-gradient(180deg, #faf6ef 0%, #efe4d4 100%);
	border: 1px solid #e6dac8;
}

.postcard-home__card-image {
	background: #f2ede4;
	overflow: hidden;
}

.postcard-home__card-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.postcard-home__card-image--empty {
	display: grid;
	place-items: center;
	min-height: 220px;
	color: var(--postcard-muted);
}

.postcard-home__card-body {
	padding-top: 16px;
}

.postcard-home__card-label {
	margin: 0 0 10px;
	color: var(--postcard-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.postcard-home__card-title {
	margin: 0 0 12px;
	font-size: 1.45rem;
	line-height: 1.35;
	color: var(--postcard-ink);
}

.postcard-home__card-artist,
.postcard-home__card-museum {
	margin: 0;
	color: var(--postcard-muted);
}

.postcard-home__card-artist {
	display: grid;
	gap: 4px;
	margin-bottom: 10px;
}

.postcard-home__card-artist span {
	font-weight: 700;
	color: var(--postcard-ink);
}

.postcard-home__card-artist em {
	font-style: italic;
}

.postcard-home__card-meta {
	display: flex;
	gap: 8px;
}

.postcard-home__card-tag {
	margin: 0;
	padding: 4px 10px;
	background: #f4efe5;
	border: 1px solid #e2d6c4;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.postcard-home__card-excerpt p {
	margin: 0;
	color: var(--postcard-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.postcard-home__card-button:hover .postcard-home__card-title,
.postcard-home__card-button:focus .postcard-home__card-title,
.postcard-home__card-button:active .postcard-home__card-title {
	color: var(--postcard-ink);
}

.postcard-home__actions {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.postcard-home__more,
.postcard-home__filter-button,
.postcard-home__modal-link {
	transition: 180ms ease;
}

.postcard-home__more {
	padding: 14px 28px;
	border: 1px solid var(--postcard-accent);
	background: transparent;
	color: var(--postcard-accent);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.postcard-home__more:hover,
.postcard-home__more:focus {
	background: var(--postcard-accent);
	color: #fff;
}

.postcard-home__empty {
	margin: 20px 0 0;
	color: var(--postcard-muted);
}

.postcard-home__filter {
	padding: 28px 30px;
	background: var(--postcard-paper);
	border: 1px solid #eadfce;
}

.postcard-home__filter-lead {
	margin: 0 0 18px;
	color: var(--postcard-muted);
	line-height: 1.8;
}

.postcard-home__filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.postcard-home__filter-button {
	padding: 10px 16px;
	border: 1px solid #d8cbb9;
	background: #fff;
	color: var(--postcard-ink);
	cursor: pointer;
}

.postcard-home__filter-button.is-active,
.postcard-home__filter-button:hover,
.postcard-home__filter-button:focus {
	border-color: var(--postcard-accent);
	background: var(--postcard-accent);
	color: #fff;
}

.postcard-home__quiz-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
	gap: 28px;
	align-items: start;
	margin: 0 0 22px;
}

.postcard-home__quiz-feature-frame {
	padding: 16px;
	background: linear-gradient(180deg, #faf6ef 0%, #efe4d4 100%);
	border: 1px solid #e6dac8;
}

.postcard-home__quiz-caption {
	margin: 0;
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--postcard-border);
}

.postcard-home__quiz-label {
	margin: 0 0 10px;
	color: var(--postcard-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.postcard-home__quiz-caption h3 {
	margin: 0 0 14px;
	font-size: 1.6rem;
	line-height: 1.3;
}

.postcard-home__quiz-caption p {
	margin: 0;
	line-height: 1.8;
}

.postcard-home__quiz-caption a {
	color: var(--postcard-accent);
	font-weight: 700;
	text-decoration: none;
}

.postcard-home__quiz-image img,
.postcard-home__quiz-image--empty {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #f2ede4;
}

.postcard-home__quiz-image--single img,
.postcard-home__quiz-image--single.postcard-home__quiz-image--empty {
	aspect-ratio: auto;
	max-height: 760px;
	object-fit: contain;
}

.postcard-home__quiz-image--empty {
	display: grid;
	place-items: center;
	color: var(--postcard-muted);
}

.postcard-home__quiz-copy p {
	margin: 0 0 10px;
	line-height: 1.8;
}

.postcard-home__quiz-copy a {
	color: var(--postcard-accent);
	font-weight: 700;
	text-decoration: none;
}

.postcard-home__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.postcard-home__modal[hidden] {
	display: none;
}

.postcard-home__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 21, 17, 0.72);
}

.postcard-home__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(1080px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 28px;
	background: #fff;
}

.postcard-home__modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.postcard-home__modal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: 28px;
}

.postcard-home__modal-visual img {
	display: block;
	width: 100%;
	height: auto;
}

.postcard-home__modal-label {
	margin: 0 0 10px;
	color: var(--postcard-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.postcard-home__modal-copy h3 {
	margin: 0 0 14px;
	font-size: 2rem;
	line-height: 1.2;
}

.postcard-home__modal-artist {
	margin: 0 0 18px;
	color: var(--postcard-muted);
}

.postcard-home__modal-artist span {
	font-style: italic;
}

.postcard-home__modal-description {
	line-height: 1.9;
	color: var(--postcard-ink);
}

.postcard-home__modal-link-wrap {
	margin: 20px 0 0;
}

.postcard-home__modal-link {
	display: inline-block;
	padding-bottom: 2px;
	color: var(--postcard-accent);
	border-bottom: 1px solid currentColor;
	font-weight: 700;
	text-decoration: none;
}

.postcard-home__modal-link:hover,
.postcard-home__modal-link:focus {
	color: #5e4526;
}

.postcard-archive__header {
	margin-bottom: 40px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--postcard-border);
}

.postcard-archive__header h1 {
	margin-bottom: 10px;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	letter-spacing: 0.03em;
}

.postcard-archive__header p {
	max-width: 700px;
	margin: 0;
	color: #5a5144;
	line-height: 1.8;
}

.postcard-archive__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
}

.postcard-archive__item {
	display: grid;
	gap: 16px;
	padding: 18px;
	background: var(--postcard-card-bg);
	border: 1px solid var(--postcard-border);
	box-shadow: 0 12px 24px rgba(48, 36, 20, 0.05);
}

.postcard-archive__card-link {
	color: inherit;
	text-decoration: none;
}

.postcard-archive__thumb-frame {
	padding: 14px;
	background: linear-gradient(180deg, #f8f3ea 0%, #f1e8d9 100%);
	border: 1px solid #e7dccb;
}

.postcard-archive__thumb {
	overflow: hidden;
	background: #f6f1e8;
}

.postcard-archive__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.postcard-archive__body {
	padding-top: 14px;
}

.postcard-archive__eyebrow {
	margin: 0 0 10px;
	color: #8a6a43;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.postcard-archive__title {
	margin: 0 0 12px;
	font-size: 1.5rem;
	line-height: 1.35;
}

.postcard-archive__artist,
.postcard-archive__museum {
	margin: 0;
	color: #4d463d;
}

.postcard-archive__artist {
	display: grid;
	gap: 4px;
	margin-bottom: 10px;
}

.postcard-archive__artist-name {
	font-weight: 700;
}

.postcard-archive__artist-years {
	font-style: italic;
	color: #756b5c;
}

.postcard-archive__museum {
	font-size: 0.95rem;
}

.postcard-archive__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.postcard-archive__tag {
	margin: 0;
	padding: 4px 10px;
	background: #f4efe5;
	border: 1px solid #e3d8c8;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
}

.postcard-archive__excerpt {
	padding-top: 2px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #4d463d;
}

.postcard-archive__excerpt p {
	margin: 0;
}

.postcard-single__article {
	padding: 28px;
	background: var(--postcard-card-bg);
	border: 1px solid var(--postcard-border);
}

.postcard-single__title {
	margin-bottom: 24px;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.2;
}

.postcard-single__image {
	margin-bottom: 32px;
}

.postcard-single__image img {
	display: block;
	width: 100%;
	height: auto;
}

.postcard-single__content {
	display: grid;
	gap: 32px;
}

.postcard-single__info-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
	gap: 32px;
	align-items: start;
}

.postcard-single__section h2 {
	margin-bottom: 16px;
	font-size: 1.5rem;
	letter-spacing: 0.04em;
}

.postcard-single__description {
	font-size: 1rem;
	line-height: 1.8;
}

.postcard-single__artist-card {
	padding: 20px 22px;
	margin-bottom: 18px;
	background: #f8f5ee;
	border-left: 4px solid #8a6a43;
}

.postcard-single__artist-name {
	margin: 0 0 8px;
	font-size: 1.8rem;
	line-height: 1.3;
}

.postcard-single__artist-lifespan,
.postcard-single__artist-meta {
	margin: 0;
	color: #5a5144;
}

.postcard-single__artist-lifespan {
	font-style: italic;
	margin-bottom: 8px;
}

.postcard-single__artist-description {
	font-size: 1rem;
	line-height: 1.9;
}

.postcard-single__details {
	display: grid;
	gap: 12px;
	margin: 0;
}

.postcard-single__detail-row {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--postcard-border);
}

.postcard-single__detail-row dt {
	font-weight: 700;
}

.postcard-single__detail-row dd {
	margin: 0;
}

@media (max-width: 768px) {
	.postcard-home {
		gap: 42px;
		padding-bottom: 56px;
	}

	.postcard-home__hero {
		padding: 52px 22px 42px;
	}

	.postcard-home__intro {
		grid-template-columns: 1fr;
	}

	.postcard-home__grid {
		grid-template-columns: 1fr;
	}

	.postcard-home__quiz-feature {
		grid-template-columns: 1fr;
	}

	.postcard-home__modal-dialog {
		padding: 22px 18px;
	}

	.postcard-home__modal-layout {
		grid-template-columns: 1fr;
	}

	.postcard-single__detail-row {
		grid-template-columns: 1fr;
	}

	.postcard-single__info-grid {
		grid-template-columns: 1fr;
	}
}
