/**
 * てんぐシネマ倶楽部 - スタイルシート
 *
 * Cocoonテーマの影響を避けるため、.tengu-wrapper/.tengu- プレフィックスで
 * スコープ化。tableは使わずflex/gridで組む（Cocoonの<th>/<thead>衝突回避）。
 */

/* ========== ラッパー ========== */
.tengu-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
	color: #2c3e50;
	line-height: 1.6;
}

.tengu-wrapper *,
.tengu-wrapper *::before,
.tengu-wrapper *::after {
	box-sizing: border-box;
}

/* ========== フィルターフォーム ========== */
.tengu-filter {
	background: #f8f9fa;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.tengu-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tengu-filter label {
	font-weight: 600;
	font-size: 14px;
	color: #495057;
	margin-right: 4px;
}

.tengu-filter select {
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	min-width: 100px;
	cursor: pointer;
}

.tengu-filter select:focus {
	outline: none;
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba( 192, 57, 43, 0.15 );
}

.tengu-filter button {
	padding: 9px 24px;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
	margin-left: auto;
}

.tengu-filter button:hover {
	background: #a93226;
}

/* ========== 結果カウント ========== */
.tengu-count {
	font-size: 15px;
	color: #6c757d;
	margin: 0 0 16px;
}

.tengu-empty {
	text-align: center;
	padding: 40px 20px;
	background: #f8f9fa;
	border-radius: 8px;
	color: #6c757d;
}

/* ========== 一覧（ul/li、tableは使わない） ========== */
.tengu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 320px, 1fr ) );
	gap: 20px;
}

.tengu-item {
	background: #fff;
	border: 1px solid #e1e4e8;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.tengu-item:hover {
	transform: translateY( -2px );
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.08 );
}

.tengu-item-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tengu-item-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f0f0f0;
	overflow: hidden;
}

.tengu-item-thumb img,
.tengu-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tengu-item-body {
	padding: 16px 18px;
}

.tengu-item-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: #2c3e50;
	line-height: 1.4;
}

.tengu-item-datetime,
.tengu-item-venue,
.tengu-item-fee {
	margin: 4px 0;
	font-size: 14px;
	color: #495057;
}

/* ========== 地図 ========== */
.tengu-map-container {
	margin-bottom: 24px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e1e4e8;
}

.tengu-map {
	width: 100%;
	z-index: 1; /* Cocoonの追従ヘッダー対策 */
}

/* 原点（高尾駅）マーカー */
.tengu-origin-marker {
	background: transparent;
	border: none;
}

.tengu-origin-dot {
	width: 32px;
	height: 32px;
	background: #c0392b;
	color: #fff;
	border: 3px solid #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.25 );
}

/* Leafletポップアップ */
.tengu-popup {
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
	min-width: 200px;
}

.tengu-popup-title {
	display: block;
	font-size: 15px;
	color: #2c3e50;
	margin-bottom: 8px;
	line-height: 1.3;
}

.tengu-popup-meta {
	font-size: 13px;
	color: #495057;
	margin: 3px 0;
}

.tengu-popup-link {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #e9ecef;
}

.tengu-popup-link a {
	color: #c0392b;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}

.tengu-popup-link a:hover {
	text-decoration: underline;
}

/* ========== 投稿フォーム ========== */
.tengu-form {
	max-width: 720px;
	margin: 0 auto;
}

.tengu-fieldset {
	background: #fff;
	border: 1px solid #e1e4e8;
	border-radius: 10px;
	padding: 20px 24px 8px;
	margin: 0 0 24px;
}

.tengu-fieldset legend {
	padding: 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #c0392b;
	background: #fff;
}

.tengu-field {
	margin: 0 0 18px;
}

.tengu-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #495057;
	margin-bottom: 6px;
}

.tengu-field input[type="text"],
.tengu-field input[type="email"],
.tengu-field input[type="url"],
.tengu-field input[type="number"],
.tengu-field input[type="datetime-local"],
.tengu-field input[type="file"],
.tengu-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tengu-field input:focus,
.tengu-field textarea:focus {
	outline: none;
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba( 192, 57, 43, 0.12 );
}

.tengu-field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.tengu-required {
	color: #d63638;
	font-weight: 700;
}

.tengu-help {
	margin: 6px 0 0;
	font-size: 12px;
	color: #6c757d;
	line-height: 1.5;
}

.tengu-agree {
	background: #fff9e6;
	border: 1px solid #ffe08a;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 24px 0;
}

.tengu-agree label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
	margin: 0;
	cursor: pointer;
}

.tengu-agree input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.tengu-submit-row {
	text-align: center;
	margin: 32px 0;
}

.tengu-submit-btn {
	padding: 14px 48px;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	box-shadow: 0 2px 6px rgba( 192, 57, 43, 0.25 );
}

.tengu-submit-btn:hover {
	background: #a93226;
}

.tengu-submit-btn:active {
	transform: translateY( 1px );
}

/* ハニーポット（完全非表示） */
.tengu-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

/* ========== アラート ========== */
.tengu-alert {
	padding: 16px 20px;
	border-radius: 8px;
	margin: 0 0 24px;
}

.tengu-alert strong {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
}

.tengu-alert ul {
	margin: 8px 0 0;
	padding-left: 20px;
	font-size: 14px;
}

.tengu-alert p {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

.tengu-alert-success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #1b5e20;
}

.tengu-alert-error {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	color: #b71c1c;
}

/* ========== サポーター（協賛者）表示枠 ========== */
.tengu-sponsors {
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.tengu-sponsors-title {
	font-size: 14px;
	font-weight: 700;
	color: #c0392b;
	text-align: center;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #c0392b;
}

.tengu-sponsors-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tengu-sponsors-item {
	text-align: center;
}

.tengu-sponsors-item a {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	padding: 8px;
	transition: background 0.2s;
}

.tengu-sponsors-item a:hover {
	background: #faf0ec;
}

.tengu-sponsors-logo {
	max-width: 100%;
	height: auto;
	max-height: 80px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.tengu-sponsors-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #495057;
	padding: 6px 0;
	line-height: 1.4;
}

/* ========== スマホ対応 ========== */
@media ( max-width: 600px ) {
	.tengu-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.tengu-filter button {
		margin-left: 0;
		width: 100%;
	}

	.tengu-filter select {
		width: 100%;
	}

	.tengu-list {
		grid-template-columns: 1fr;
	}
}
