/* ma_modern_sub.css - サブページ用のモダンなスタイル */

:root {
	--c-bg: #f2f6f2;
	--c-surface: #ffffff;
	--c-text: #1d2433;
	--c-muted: #667568;
	--c-line: #dce7dd;
	--c-soft: #f2f7f2;
	--c-primary: #166534;
	--c-primary-dark: #14532d;
	--c-accent: #0f766e;
	--c-accent-dark: #065f46;
	--radius: 16px;
	--shadow: 0 6px 24px rgba(31, 38, 64, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	min-height: 100%;
	background: linear-gradient(180deg, #e1eee3 0%, var(--c-bg) 360px);
}

/* 本文を角丸のカードとして表示 */
body {
	max-width: min(780px, calc(100% - 2rem));
	margin: 2rem auto;
	padding: 2rem 1.75rem 2.25rem;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--c-text);
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow-wrap: break-word;
}

h1 {
	margin: 0.2em 0 0.9em;
	padding-bottom: 0.45em;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--c-primary-dark);
	border-bottom: 3px solid;
	border-image: linear-gradient(90deg, var(--c-primary), var(--c-accent)) 1;
}

p {
	margin: 0.6em 0;
}

a {
	color: var(--c-primary);
	font-weight: 600;
	text-decoration: none;
}

a:visited {
	color: var(--c-accent-dark);
}

a:hover,
a:active {
	color: var(--c-primary-dark);
	text-decoration: underline;
}

a:focus-visible {
	outline: 3px solid rgba(22, 101, 52, 0.45);
	outline-offset: 2px;
	border-radius: 4px;
}

/* 表（アルバム曲目・イベント・メニューなど） */
table {
	width: 100%;
	max-width: 680px;
	margin: 0.5rem auto 1.4rem;
	border: 1px solid var(--c-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--c-surface);
	box-shadow: 0 2px 10px rgba(31, 38, 64, 0.05);
	color: var(--c-text);
}

th,
td {
	vertical-align: top;
	text-align: left;
}

/* HTML の固定幅（width 属性）は最小幅として働くため、列幅は内容に任せて縮められるようにする */
th[width],
td[width] {
	width: auto;
}

tr + tr > th,
tr + tr > td {
	border-top: 1px solid var(--c-line);
}

th.typeA {
	padding: 0.7rem 1rem;
	color: #ffffff;
	background: linear-gradient(90deg, var(--c-primary), #15803d);
	font-weight: 700;
	text-align: left;
}

td.typeA {
	padding: 0.8rem 1rem;
	background: var(--c-surface);
	text-align: left;
}

th.typeB {
	padding: 0.7rem 1rem;
	background: #e8f2e9;
	color: var(--c-primary-dark);
	font-weight: 700;
	text-align: left;
}

td.typeB {
	padding: 0.8rem 1rem;
	background: var(--c-surface);
	text-align: center;
}

th.typeC {
	padding: 0.9rem 0.5rem;
	background: var(--c-surface);
	font-weight: 700;
	text-align: center;
}

th.typeD {
	padding: 0.8rem 1rem;
	color: #ffffff;
	background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
	font-weight: 700;
	text-align: left;
}

/* 更新履歴（Topics）の日付と本文 */
td.Topics {
	padding: 0.7rem 1rem;
	background: var(--c-surface);
	vertical-align: top;
}

td.Topics:first-child {
	color: var(--c-accent-dark);
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

tr:hover > td.Topics,
tr:hover > td.typeA,
tr:hover > td.typeB {
	background: var(--c-soft);
}

.arg_ttl {
	font-weight: 700;
	color: var(--c-primary-dark);
}

.red {
	color: #e11d48;
	font-weight: 700;
}

/* 曲目紹介 */
.track-list {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0;
	text-align: left;
}

.track-card {
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--c-line);
	border-left: 5px solid var(--c-primary);
	border-radius: 12px;
	background: var(--c-surface);
	box-shadow: 0 2px 10px rgba(31, 38, 64, 0.05);
}

.track-card__title {
	margin: 0 0 0.85rem;
	color: var(--c-primary-dark);
	font-size: 1.12rem;
	line-height: 1.55;
}

.track-card__metadata {
	display: grid;
	gap: 0.45rem;
	margin: 0;
}

.track-card__detail {
	display: grid;
	grid-template-columns: minmax(7rem, 0.25fr) 1fr;
	gap: 0.75rem;
	padding: 0.5rem 0.7rem;
	border-radius: 8px;
	background: var(--c-soft);
}

.track-card__detail dt {
	color: var(--c-accent-dark);
	font-weight: 700;
}

.track-card__detail dd {
	margin: 0;
}

.track-card__description {
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--c-line);
}

.track-card__description h3 {
	margin: 0 0 0.35rem;
	color: var(--c-muted);
	font-size: 0.82rem;
}

.track-card__description p {
	margin: 0.4em 0;
}

/* 作品一覧のカード */
.works-page {
	max-width: min(1180px, calc(100% - 2rem));
}

.works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 1.1rem;
	margin: 1.5rem auto;
	text-align: left;
}

.work-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: 12px;
	background: var(--c-surface);
	box-shadow: 0 2px 10px rgba(31, 38, 64, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.work-card__cover {
	display: flex;
	height: 210px;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	background: var(--c-soft);
}

.work-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.work-card__title {
	margin: 0;
	padding: 0.9rem 1rem 0.35rem;
	font-size: 1rem;
	line-height: 1.5;
}

.work-card__title a,
.work-card__title a:visited {
	color: var(--c-primary-dark);
}

.work-card__description {
	margin: 0;
	padding: 0 1rem 1rem;
	color: var(--c-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

/* 戻るボタン */
span.return {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.45rem 1.2rem;
	border: none;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
	box-shadow: 0 4px 12px rgba(22, 101, 52, 0.22);
	font-size: 0.9rem;
}

span.return a,
span.return a:visited,
span.return a:hover {
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
}

/* 画像・音声・リスト・フォーム */
img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

audio {
	max-width: 100%;
}

ul,
ol {
	padding-left: 1.5em;
}

li {
	margin: 0.2em 0;
}

li::marker {
	color: var(--c-accent);
}

tt {
	padding: 0 0.3em;
	border-radius: 4px;
	background: var(--c-soft);
	font-family: ui-monospace, Consolas, "Courier New", monospace;
}

select,
input,
textarea {
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	background: var(--c-surface);
	color: var(--c-text);
	font: inherit;
}

/* スマートフォン向け */
@media (max-width: 600px) {
	body {
		max-width: none;
		margin: 0;
		padding: 1.25rem 1rem 1.75rem;
		border-radius: 0;
		box-shadow: none;
	}

	.works-page {
		max-width: none;
	}

	h1 {
		font-size: 1.4rem;
	}

	table {
		display: block;
		overflow-x: auto;
		font-size: 0.95rem;
	}

	th,
	td {
		white-space: normal;
	}

	th.typeA,
	td.typeA,
	th.typeB,
	td.typeB,
	td.Topics {
		padding-left: 0.6rem;
		padding-right: 0.6rem;
	}

	td.Topics:first-child {
		white-space: normal;
	}

	.works-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
		gap: 0.75rem;
	}

	.work-card__cover {
		height: 170px;
	}

	.track-card {
		padding: 0.9rem;
	}

	.track-card__detail {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.work-card {
		transition: none;
	}

	.work-card:hover {
		transform: none;
	}
}
