/*!
 * 96neko theme extras
 * Additive CSS on top of the Netlify-ported style.css.
 * Keep this file small — only fixes / additions that didn't exist in the original.
 */

/* ===== work-thumb : hide gradient overlay & label when a real image is set =====
 * style.css の .work-thumb::before が灰色グラデーションで全面を覆っているため、
 * インライン background-image があるカードでは ::before を非表示にし、
 * 画像が前面に出るようにする。「ALBUM/DIGITAL」ラベルも非表示。
 */
.work-thumb[style*="background-image"]::before {
	display: none;
}
.work-thumb[style*="background-image"] > span {
	display: none;
}

/* ===== WORKS single — 96neko.jp 風カードレイアウト ===== */
.work-detail-container {
	max-width: 1400px;
	margin: 48px auto 64px;
	padding: 0 20px;
}
.work-card-detail {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
	overflow: hidden;
	padding: 0;
}
/* PC: 1:1 で横並び（左:ジャケット / 右:情報）*/
.work-card-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 0;
}
.wcd-jacket {
	aspect-ratio: 1 / 1 !important;
	overflow: hidden;
	background: #f4f4f4;
	position: relative;
	min-width: 0;
	width: 100%;
	max-width: 480px;
	margin: 32px auto;
	border-radius: 12px;
}
.wcd-jacket-img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}
.wcd-jacket-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-family: var(--f-en, sans-serif);
	font-weight: 700;
	letter-spacing: .12em;
	font-size: 12px;
}
.wcd-info {
	display: flex;
	flex-direction: column;
	padding: 40px 44px 36px;
	min-width: 0;
}
.wcd-title {
	margin: 0 0 28px;
	font-family: var(--f-en, "Montserrat", sans-serif);
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.25;
	color: var(--c-ink, #111);
	text-align: center;
}
.wcd-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.wcd-cat {
	display: inline-block;
	padding: 8px 24px;
	background: var(--c-bold, #a1091f);
	color: #fff;
	font-family: var(--f-en, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	border-radius: 999px;
}
.wcd-date {
	font-family: var(--f-en, sans-serif);
	font-size: 16px;
	font-weight: 700;
	color: var(--c-ink, #111);
	letter-spacing: .03em;
}
.wcd-content {
	flex: 1;
	font-size: 14px;
	line-height: 1.95;
	color: var(--c-ink, #222);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.wcd-body p {
	margin: 0 0 8px;
}
.wcd-body p:last-child {
	margin-bottom: 0;
}
.wcd-tracklist {
	white-space: normal;
	word-wrap: break-word;
	line-height: 1.85;
}
.wcd-spec {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 24px;
	row-gap: 8px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid #eee;
	font-size: 13px;
}
.wcd-spec dt {
	color: var(--c-ink-3, #888);
	font-weight: 600;
	letter-spacing: .04em;
}
.wcd-spec dd {
	margin: 0;
	color: var(--c-ink, #111);
}
.wcd-cta {
	display: block;
	width: 100%;
	padding: 18px 24px;
	background: #111;
	color: #fff;
	text-align: center;
	font-family: var(--f-jp-b, sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-decoration: none;
	border-radius: 4px;
	transition: background .2s ease, transform .2s ease;
	margin-top: 24px;
}
.wcd-cta:hover {
	background: var(--c-bold, #a1091f);
	transform: translateY(-1px);
}
.wcd-back-wrap {
	margin-top: 32px;
	text-align: center;
}
.wcd-back {
	display: inline-block;
	padding: 12px 36px;
	background: #fff;
	color: var(--c-ink, #111);
	border: 1px solid #ddd;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-decoration: none;
	transition: .2s ease;
}
.wcd-back:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

/* レスポンシブ：モバイルでは縦積み */
@media (max-width: 880px) {
	.work-card-detail-grid {
		grid-template-columns: 1fr;
	}
	.wcd-jacket {
		border-right: none;
		border-bottom: 1px solid #ececec;
	}
	.wcd-info {
		padding: 32px 24px 28px;
	}
	.wcd-title {
		margin-bottom: 20px;
	}
	.wcd-meta {
		margin-bottom: 24px;
	}
}

/* 既存 .work-tracklist は互換のため残しておく（他で使われているかもしれない） */
.work-tracklist {
	margin: 32px 0 0;
	padding: 24px;
	background: #fafafa;
	border-radius: 10px;
}
.work-tracklist-heading {
	margin: 0 0 16px;
	font-family: var(--f-jp-b, sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--c-ink, #111);
}
.work-tracklist-body {
	font-size: 13px;
	line-height: 2;
	color: var(--c-ink-2, #555);
	white-space: normal;
	word-wrap: break-word;
}

/* ===== sticky footer ===== */
/* Ensure the footer sits at the bottom even when content is short (e.g. 404, empty archive). */
html, body { height: auto; }
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body > main,
main.site-main {
	flex: 1 0 auto;
}
body > footer.site-footer,
.site-footer {
	flex-shrink: 0;
}

/* ===== tag-pill as a clickable link ===== */
a.tag-pill {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}
a.tag-pill:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* NEWS item layout keeps clickable date/title while pill is a separate link */
.news-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--c-line, #e6e6e6);
	text-decoration: none;
	color: inherit;
	transition: background .2s ease;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover {
	background: rgba(0,0,0,.02);
}
.news-item-body {
	display: contents;
	color: inherit;
	text-decoration: none;
}

/* ===== Contact Form 7 integration =====
 * Mirror the .contact-form layout from style.css so the CF7-rendered
 * <form class="wpcf7-form"> looks identical to the original static form.
 */
.wpcf7 {
	max-width: 760px;
	margin: 0 auto;
}
.wpcf7-form {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 48px 48px 44px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Input styling (same look as .contact-form input / textarea) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	background: #fcfcfc;
	color: var(--c-ink, #111);
	transition: .2s;
}
.wpcf7-form textarea {
	min-height: 180px;
	resize: vertical;
	line-height: 1.8;
}
.wpcf7-form input:hover,
.wpcf7-form textarea:hover {
	border-color: #bbb;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--c-bold, #a1091f);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(161, 9, 31, .12);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
	color: #bbb;
}

/* CF7 wraps each [tag] in <span class="wpcf7-form-control-wrap">. Make it
 * transparent so the surrounding .form-field / .form-grid layout keeps working. */
.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
}

/* Radio buttons (問い合わせ内容) — render as pill buttons matching the original
 * .radio-row label style. CF7 outputs:
 *   <span class="wpcf7-radio">
 *     <span class="wpcf7-list-item">
 *       <input type="radio">
 *       <span class="wpcf7-list-item-label">...</span>
 *     </span>
 *   </span>
 */
.wpcf7-form .wpcf7-radio {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
	padding: 10px 18px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fafafa;
	transition: .2s;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item:hover {
	border-color: var(--c-bold, #a1091f);
	background: #fff;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item input[type="radio"] {
	accent-color: var(--c-bold, #a1091f);
	margin: 0;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item:has(input:checked) {
	border-color: var(--c-bold, #a1091f);
	background: #fff;
	box-shadow: 0 0 0 2px rgba(161, 9, 31, .08);
	color: var(--c-bold, #a1091f);
	font-weight: 700;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item-label {
	display: inline-block;
}
@media (max-width: 640px) {
	.wpcf7-form .wpcf7-radio { gap: 8px; }
	.wpcf7-form .wpcf7-radio .wpcf7-list-item {
		padding: 9px 14px;
		font-size: 13px;
	}
}

/* Acceptance checkbox (プライバシーポリシー同意) — make it look like the
 * static .form-checkbox pattern that lived in the mailto fallback form. */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}
.wpcf7-form .wpcf7-acceptance label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--c-ink, #111);
	cursor: pointer;
	padding: 4px 0;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
	accent-color: var(--c-bold, #a1091f);
	margin-top: 3px;
}

/* Submit button — match .submit-btn look from the original */
.wpcf7-form .form-field:has(.wpcf7-submit),
.wpcf7-form p:has(.wpcf7-submit) {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"].form-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--c-bold, #a1091f);
	color: #fff;
	border: none;
	padding: 16px 48px;
	border-radius: var(--r-pill, 999px);
	font-family: var(--f-en, "Montserrat", sans-serif);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .16em;
	transition: .25s;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(161, 9, 31, .28);
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"].form-submit:hover {
	background: #0a0a0a;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}
.wpcf7-form .wpcf7-submit:active {
	transform: translateY(0);
}

/* Validation / response UI */
.wpcf7-form .wpcf7-not-valid-tip {
	color: #c00;
	font-size: 13px;
	margin-top: 4px;
}
.wpcf7 .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	border-left: 4px solid var(--c-bold, #a1091f);
	background: rgba(161, 9, 31, 0.05);
}
.wpcf7-form.sent .wpcf7-response-output {
	border-left-color: #2e7d32;
	background: rgba(46, 125, 50, .06);
}
.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

/* Ajax loading overlay */
.wpcf7-form.submitting { opacity: .7; pointer-events: none; }

@media (max-width: 640px) {
	.wpcf7-form {
		padding: 32px 22px 28px;
		gap: 22px;
		border-radius: 10px;
	}
	.wpcf7-form .wpcf7-submit,
	.wpcf7-form input[type="submit"].form-submit {
		padding: 14px 32px;
		width: 100%;
		justify-content: center;
	}
}


/* ===== 価格表示（リリース日の下） ===== */
.wcd-price {
	text-align: center;
	margin-top: -16px;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-ink, #333);
	letter-spacing: .04em;
}


/* ===== トラックリスト見出し + 本文との区切り ===== */
.wcd-tracklist-block {
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	margin-top: 4px;
}
.wcd-tracklist-heading {
	margin: 0 0 14px;
	font-family: var(--f-en, "Montserrat", sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
	color: var(--c-bold, #a1091f);
	text-align: left;
}
.wcd-tracklist-block .wcd-tracklist {
	white-space: normal;
	line-height: 1.85;
	font-size: 14px;
	color: var(--c-ink, #222);
}

/* spec block も同じく上の区切り線で本文と分離 */
.wcd-spec {
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	margin-top: 4px !important;
}

/* ===== 本文 <p> 段落の間隔を詰める ===== */
/* ACF WYSIWYG が wpautop で <p> に変換するが、各段落に大きな margin が
 * 入って見た目スカスカになるので調整。空段落だけ少し空きを残す。
 * 対象: NEWS / SCHEDULE / MOVIE (.detail-body) / WORKS (.wcd-body) */
.detail-body p,
.wcd-body p {
	margin: 0 0 4px;
	line-height: 1.85;
}
.detail-body p:empty,
.wcd-body p:empty {
	margin: 0;
	height: 1em;
}
.detail-body p:last-child,
.wcd-body p:last-child {
	margin-bottom: 0;
}
