@charset "utf-8";
/* =========================================================
   美術展示室（art.html）と年ごとのページ（2026-11 作り直し）
   ※ 旧 art.css は特別展のページでも使っているので、そのまま残している
   ========================================================= */

.art-hub, .art-area {
	--art-accent: #802341;
	--art-soon: #B5541C;
	--art-line: #DED5C4;
	--art-head: #EFE5E5;
	--art-soft: #FAF6EE;
}

/* ---------- 共通：状態の印 ---------- */
.art-badge {
	flex: none;
	padding: .1rem .7rem;
	border-radius: 100vh;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .05em;
	white-space: nowrap;
}
.art-badge--current { background: var(--art-accent); color: #fff; }
.art-badge--soon { background: var(--art-soon); color: #fff; }
.art-badge--upcoming { border: 1px solid var(--art-accent); color: var(--art-accent); }
.art-badge--ended { background: #e4e0d8; color: #666; }

/* =========================================================
   美術展示室のページ：ただいまの展示
   ========================================================= */
.art-hub .contetns-title-02 { margin-top: 0; }
.art-now-fallback, .art-now-empty {
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--art-line);
	border-radius: 8px;
	background: #fff;
}
.art-now-sub {
	margin: 2.4rem 0 1rem;
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: .05em;
}

.art-cards {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 700px) { .art-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; } }
@media (min-width: 1000px) { .art-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.art-card-link {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	height: 100%;
	padding: 1.2rem 1.3rem 1.1rem;
	border: 1px solid var(--art-line);
	border-top: 4px solid var(--art-accent);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.is-soon .art-card-link { border-top-color: var(--art-soon); }
.is-upcoming .art-card-link { border-top-color: var(--art-line); }
@media (hover: hover) {
	.art-card-link:hover { border-color: var(--art-accent); box-shadow: 0 10px 22px rgba(0, 0, 0, .1); transform: translateY(-3px); }
	.art-card-link:hover .art-card-more::after { transform: translateX(4px); }
}
.art-card-link:focus-visible { outline: 3px solid var(--art-accent); outline-offset: 3px; }
.art-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.art-card-when { font-size: .85rem; font-weight: 700; color: var(--art-accent); }
.is-soon .art-card-when { color: var(--art-soon); }
.art-card-title { font-size: 1.3rem; font-weight: 500; line-height: 1.45; }
.art-card-period { font-size: .85rem; color: #555; }
.art-card-artists { font-size: .85rem; line-height: 1.7; color: #666; }
.art-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: .7rem;
	border-top: 1px dashed var(--art-line);
	font-size: .88rem;
}
.art-card-count { color: #555; }
.art-card-more { color: var(--art-accent); font-weight: 700; }
.art-card-more::after { content: " →"; display: inline-block; transition: transform .2s; }

/* 展示中の作品から（作品紹介へのリンク） */
.art-picks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 600px) { .art-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .art-picks { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.art-pick { display: block; color: inherit; text-decoration: none; }
.art-pick-img {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: .5rem;
	border-radius: 6px;
	background: #EFE8DA;
	overflow: hidden;
}
.art-pick-img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
@media (hover: hover) { .art-pick:hover .art-pick-img img { transform: scale(1.04); } .art-pick:hover .art-pick-title { color: var(--art-accent); } }
.art-pick:focus-visible { outline: 3px solid var(--art-accent); outline-offset: 3px; border-radius: 6px; }
.art-pick-title { display: block; font-size: .92rem; line-height: 1.5; }
.art-pick-artist { display: block; font-size: .78rem; color: #777; }
.art-picks-note { margin-top: .8rem; font-size: .82rem; color: #777; }

/* 年ごとの展示（ボタン） */
.art-years-list {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.art-years-list a {
	display: inline-block;
	padding: .55rem 1.5rem;
	border: 1px solid var(--art-accent, #802341);
	border-radius: 100vh;
	background: #fff;
	color: #802341;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.art-years-list a:hover, .art-years-list a:focus-visible { background: #802341; color: #fff; }

/* =========================================================
   年のページ
   ========================================================= */

/* art-room.js が動く前（一瞬）は、書く場所の一覧を見せない。JavaScript が使えないときだけそのまま見せる */
.art-area .art-all { display: none; }
@media (scripting: none) {
	.art-area .art-all { display: block; }
	.art-area .art-all .art-col { margin-bottom: 2rem; }
	.art-area .art-all .art-col-title { margin-bottom: .6rem; font-size: 1.2rem; }
}

/* 年の切り替え */
.art-years {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1.2rem;
	margin-bottom: 1.4rem;
}
.art-years:empty { display: none; }
.art-years-top { font-size: .9rem; color: var(--art-accent); text-decoration: none; }
.art-years-top::before { content: "← "; }
.art-years-top:hover { text-decoration: underline; }
.art-years-list-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.art-years-list-nav a {
	display: block;
	padding: .3rem 1rem;
	border: 1px solid var(--art-line);
	border-radius: 100vh;
	background: #fff;
	color: #555;
	font-size: .9rem;
	text-decoration: none;
}
.art-years-list-nav a:hover { border-color: var(--art-accent); color: var(--art-accent); }
.art-years-list-nav a[aria-current="page"] { border-color: var(--art-accent); background: var(--art-accent); color: #fff; font-weight: 700; }

.art-note { margin: 0 0 1rem; font-size: .88rem; color: #666; }
.art-tools { display: flex; justify-content: flex-end; margin-bottom: -.5rem; }
.art-toggle-all {
	padding: .4rem 1.1rem;
	border: 1px solid var(--art-line);
	border-radius: 100vh;
	background: #fff;
	color: #555;
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
}
.art-toggle-all:hover { border-color: var(--art-accent); color: var(--art-accent); }
.art-toggle-all:focus-visible { outline: 3px solid var(--art-accent); outline-offset: 2px; }

.art-group .contetns-title-02 { margin: 2.6rem 0 1.2rem; }

/* 展示1つ分（開け閉めできる） */
details.art-col {
	margin-bottom: 1rem;
	border: 1px solid var(--art-line);
	border-radius: 8px;
	background: #fff;
	scroll-margin-top: 90px;
}
details.art-col[open] { box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.art-col-head {
	position: relative;
	display: grid;
	gap: .35rem;
	padding: 1rem 3.4rem 1rem 1.2rem;
	cursor: pointer;
	list-style: none;
	border-radius: 8px;
}
.art-col-head::-webkit-details-marker { display: none; }
.art-col-head:hover { background: var(--art-soft); }
.art-col-head:focus-visible { outline: 3px solid var(--art-accent); outline-offset: 2px; }
details[open] > .art-col-head { border-bottom: 1px solid var(--art-line); border-radius: 8px 8px 0 0; }
/* 開け閉めの矢印 */
.art-col-head::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.4rem;
	width: .6rem;
	height: .6rem;
	border-right: 2px solid var(--art-accent);
	border-bottom: 2px solid var(--art-accent);
	transform: translateY(-65%) rotate(45deg);
	transition: transform .25s ease;
}
details[open] > .art-col-head::after { transform: translateY(-35%) rotate(-135deg); }

.art-col-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.art-col-head .art-col-title { font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.is-ended .art-col-head .art-col-title { color: #555; }
.art-col-meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .85rem; color: #666; }
.art-col-when { color: var(--art-accent); font-weight: 700; }
.is-soon .art-col-when { color: var(--art-soon); }

.art-col-body { padding: 1rem 1.2rem 1.3rem; }

/* 作品の一覧（表） */
.art-list {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
	line-height: 1.6;
}
.art-list th, .art-list td {
	padding: .55rem .8rem;
	border-bottom: 1px solid var(--art-line);
	text-align: left;
	vertical-align: top;
}
.art-list th {
	background: var(--art-head);
	font-weight: 500;
	font-size: .85rem;
	white-space: nowrap;
}
.art-list td:first-child, .art-list th:first-child { width: 3.2em; text-align: right; color: #888; white-space: nowrap; }
.art-list td:nth-child(2) { font-weight: 500; }
.art-list td:nth-child(3) { width: 28%; }
.art-list td:nth-child(4) { width: 20%; color: #555; }
.art-list tr:nth-child(odd) td { background: #fcfaf6; }

/* 作品紹介へのリンク */
.art-gl {
	display: inline-block;
	margin-left: .6rem;
	padding: 0 .6rem;
	border: 1px solid var(--art-accent);
	border-radius: 100vh;
	color: var(--art-accent);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.7;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: .1em;
}
.art-gl::before { content: "▶ "; font-size: .8em; }
.art-gl:hover, .art-gl:focus-visible { background: var(--art-accent); color: #fff; }

/* ---------- スマホ：表を「1作品＝1枚」の形に（横にはみ出さない） ---------- */
@media (max-width: 599px) {
	.art-col-head { padding: .9rem 2.8rem .9rem 1rem; }
	.art-col-head::after { right: 1.1rem; }
	.art-col-head .art-col-title { font-size: 1.1rem; }
	.art-col-body { padding: .3rem .9rem .8rem; }

	.art-list, .art-list tbody, .art-list tr, .art-list td { display: block; width: auto; }
	.art-list tr:first-child { display: none; } /* 見出しの行 */
	.art-list tr {
		position: relative;
		padding: .7rem 0 .7rem 2.4em;
		border-bottom: 1px solid var(--art-line);
	}
	.art-list tr:last-child { border-bottom: none; }
	.art-list td { padding: 0; border: none; background: none !important; }
	.art-list td:first-child { position: absolute; left: 0; top: .75rem; width: 2em; font-size: .85rem; }
	.art-list td:nth-child(2) { font-size: 1rem; }
	/* 作者名・年代は2行目に並べる */
	.art-list td:nth-child(3), .art-list td:nth-child(4) { display: inline; width: auto; font-size: .85rem; color: #666; }
	.art-list td:nth-child(3):not(:empty) + td:nth-child(4):not(:empty)::before { content: "・"; }
	.art-list td:empty { display: none; }
	.art-gl { margin-left: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.art-card-link, .art-card-more::after, .art-pick-img img, .art-col-head::after { transition: none; }
}
