/* =============================================================
   Event Calendar – Frontend Styles
   Design: restrained / refined event site aesthetic
   ============================================================= */

/* ----- CSS Custom Properties ----- */
:root {
	--ec-clr-bg:          #f1f5f9;
	--ec-clr-surface:     #ffffff;
	--ec-clr-border:      #e2e8f0;
	--ec-clr-border-md:   #cbd5e1;
	--ec-clr-text:        #0f172a;
	--ec-clr-muted:       #64748b;
	--ec-clr-subtle:      #94a3b8;
	--ec-clr-accent:      #4f46e5;
	--ec-clr-accent-lt:   #eef2ff;
	--ec-clr-kicker:      #6366f1;
	--ec-clr-upcoming:    #2563eb;
	--ec-clr-upcoming-bg: #eff6ff;
	--ec-clr-ongoing:     #059669;
	--ec-clr-ongoing-bg:  #ecfdf5;
	--ec-clr-ended:       #64748b;
	--ec-clr-ended-bg:    #f1f5f9;
	--ec-radius-sm:       6px;
	--ec-radius:          12px;
	--ec-radius-lg:       18px;
	--ec-shadow-xs:       0 1px 2px rgba(15,23,42,.06);
	--ec-shadow-sm:       0 2px 8px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
	--ec-shadow-md:       0 4px 20px rgba(15,23,42,.09), 0 2px 6px rgba(15,23,42,.05);
	--ec-shadow-hover:    0 8px 28px rgba(15,23,42,.13), 0 4px 10px rgba(15,23,42,.06);
	--ec-transition:      0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================
   Page Layout
   ============================================================= */
.ec-page {
	padding: 52px 0 80px;
	background: var(--ec-clr-bg);
	min-height: 60vh;
}

.ec-container {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

/* =============================================================
   Page Header
   ============================================================= */
.ec-page-header {
	margin-bottom: 36px;
}

.ec-page-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ec-clr-kicker);
}

.ec-page-kicker::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 2px;
	background: var(--ec-clr-kicker);
	border-radius: 2px;
}

.ec-page-header h1 {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	line-height: 1.15;
	color: var(--ec-clr-text);
	letter-spacing: -0.025em;
}

.ec-page-intro {
	margin: 0;
	max-width: 56ch;
	font-size: 0.9rem;
	color: var(--ec-clr-muted);
	line-height: 1.7;
}

/* =============================================================
   Navigation Links
   ============================================================= */
.ec-nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.ec-nav-links a,
.ec-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--ec-clr-text);
	color: #fff;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background var(--ec-transition), transform var(--ec-transition), box-shadow var(--ec-transition);
	box-shadow: var(--ec-shadow-xs);
}

.ec-nav-links a:hover,
.ec-button:hover {
	background: var(--ec-clr-accent);
	transform: translateY(-1px);
	box-shadow: var(--ec-shadow-sm);
}

.ec-button-secondary {
	background: var(--ec-clr-surface);
	color: var(--ec-clr-text);
	border: 1px solid var(--ec-clr-border);
}

.ec-button-secondary:hover {
	background: var(--ec-clr-accent-lt);
	border-color: var(--ec-clr-accent);
	color: var(--ec-clr-accent);
}

/* =============================================================
   Results Header  ( "X 件のイベント" など )
   ============================================================= */
.ec-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.ec-results-count {
	font-size: 0.82rem;
	color: var(--ec-clr-muted);
	font-weight: 500;
}

.ec-results-count strong {
	color: var(--ec-clr-text);
	font-weight: 700;
}

/* =============================================================
   Overview Stats
   ============================================================= */
.ec-overview-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.ec-overview-stat {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	box-shadow: var(--ec-shadow-xs);
	padding: 16px 18px;
}

.ec-overview-stat dt {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-clr-muted);
}

.ec-overview-stat dd {
	margin: 8px 0 0;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1;
	color: var(--ec-clr-text);
}

/* =============================================================
   Card Grid
   ============================================================= */
.ec-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 18px;
}

/* =============================================================
   Event Card  (基本)
   ============================================================= */
.ec-card {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--ec-transition), transform var(--ec-transition), border-color var(--ec-transition);
}

.ec-card:hover {
	box-shadow: var(--ec-shadow-hover);
	transform: translateY(-3px);
	border-color: var(--ec-clr-border-md);
}

/* サムネイル */
.ec-card-media {
	display: block;
	overflow: hidden;
	background: var(--ec-clr-bg);
	flex-shrink: 0;
}

.ec-card-image {
	display: block;
	width: 100%;
	height: 196px;
	object-fit: cover;
	transition: transform 0.32s ease;
}

.ec-card:hover .ec-card-image {
	transform: scale(1.04);
}

/* ボディ */
.ec-card-body {
	padding: 16px 18px 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* メタ行（バッジ＋日付） */
.ec-card-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

/* タイトル */
.ec-card-title {
	margin: 0 0 6px;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 700;
}

.ec-card-title a {
	color: var(--ec-clr-text);
	text-decoration: none;
	transition: color var(--ec-transition);
}

.ec-card-title a:hover {
	color: var(--ec-clr-accent);
}

/* 日付 */
.ec-card-date {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	color: var(--ec-clr-muted);
}

.ec-card-date::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

/* 場所 */
.ec-card-location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	color: var(--ec-clr-muted);
	margin: 2px 0 6px;
}

.ec-card-location::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

.ec-card-location a {
	color: var(--ec-clr-muted);
	text-decoration: none;
}

.ec-card-location a:hover {
	color: var(--ec-clr-accent);
	text-decoration: underline;
}

/* 抜粋 */
.ec-card-excerpt {
	font-size: 0.83rem;
	color: var(--ec-clr-muted);
	line-height: 1.7;
	margin: 4px 0 0;
	flex: 1;
	/* 3行クランプ */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* カードフッター（詳細リンク） */
.ec-card-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 12px 18px 14px;
	margin-top: auto;
}

.ec-card-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ec-clr-accent);
	text-decoration: none;
	transition: gap var(--ec-transition), color var(--ec-transition);
}

.ec-card-more:hover {
	gap: 8px;
}

.ec-card-more svg {
	flex-shrink: 0;
	transition: transform var(--ec-transition);
}

.ec-card-more:hover svg {
	transform: translateX(2px);
}

/* =============================================================
   Badges
   ============================================================= */
.ec-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: var(--ec-radius-sm);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.ec-badge-upcoming {
	background: var(--ec-clr-upcoming-bg);
	color: var(--ec-clr-upcoming);
}

.ec-badge-ongoing {
	background: var(--ec-clr-ongoing-bg);
	color: var(--ec-clr-ongoing);
}

.ec-badge-ended {
	background: var(--ec-clr-ended-bg);
	color: var(--ec-clr-ended);
}

/* =============================================================
   Empty State
   ============================================================= */
.ec-empty-state {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	box-shadow: var(--ec-shadow-xs);
	padding: 56px 32px;
	text-align: center;
}

.ec-empty-state-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--ec-clr-bg);
	color: var(--ec-clr-subtle);
}

.ec-empty-state p {
	margin: 0;
	color: var(--ec-clr-muted);
	font-size: 0.9rem;
}

/* =============================================================
   Ranking – Top 3 (カードグリッド)
   ============================================================= */
.ec-ranking-podium {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

/* ポジションバッジ */
.ec-card--ranked {
	position: relative;
}

.ec-rank-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.ec-rank-badge--1 { background: #b45309; color: #fff; }
.ec-rank-badge--2 { background: #475569; color: #fff; }
.ec-rank-badge--3 { background: #92400e; color: #fff; }

/* =============================================================
   Ranking – 4位以降 (コンパクトリスト)
   ============================================================= */
.ec-ranking-rest {
	display: grid;
	gap: 8px;
}

.ec-ranking-row {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	box-shadow: var(--ec-shadow-xs);
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 0;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow var(--ec-transition), transform var(--ec-transition), border-color var(--ec-transition);
}

.ec-ranking-row:hover {
	box-shadow: var(--ec-shadow-md);
	transform: translateY(-1px);
	border-color: var(--ec-clr-border-md);
}

.ec-ranking-row-num {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--ec-clr-subtle);
	background: var(--ec-clr-bg);
	border-right: 1px solid var(--ec-clr-border);
	padding: 0 6px;
}

.ec-ranking-row-body {
	padding: 12px 16px;
	min-width: 0;
}

.ec-ranking-row-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ec-clr-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 3px;
}

.ec-ranking-row-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ec-ranking-row-date {
	font-size: 0.75rem;
	color: var(--ec-clr-muted);
}

.ec-ranking-row-views {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 0.72rem;
	color: var(--ec-clr-subtle);
	font-weight: 600;
}

.ec-ranking-row-arrow {
	padding: 0 14px;
	color: var(--ec-clr-subtle);
	flex-shrink: 0;
}

/* =============================================================
   Event Detail Section (single post)
   ============================================================= */
.ec-event-details {
	margin-top: 40px;
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow-md);
	overflow: hidden;
}

.ec-event-details-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	background: var(--ec-clr-bg);
	border-bottom: 1px solid var(--ec-clr-border);
}

.ec-event-details-header h2 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ec-clr-text);
	letter-spacing: -0.01em;
}

/* 詳細グリッド */
.ec-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1px;
	background: var(--ec-clr-border);
	margin: 0;
}

.ec-detail-grid div {
	padding: 14px 18px;
	background: var(--ec-clr-surface);
}

.ec-detail-grid dt {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ec-clr-muted);
}

.ec-detail-grid dd {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ec-clr-text);
	font-weight: 500;
	line-height: 1.5;
}

/* アクションリンク */
.ec-action-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 18px 22px;
	border-top: 1px solid var(--ec-clr-border);
	background: var(--ec-clr-bg);
}

/* マップ */
.ec-map {
	border-top: 1px solid var(--ec-clr-border);
	overflow: hidden;
}

.ec-map iframe {
	display: block;
	width: 100%;
	min-height: 320px;
	border: 0;
}

.ec-map-link {
	padding: 14px 22px;
	border-top: 1px solid var(--ec-clr-border);
	margin: 0;
}

.ec-map-link a,
.ec-map-text-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.83rem;
	color: var(--ec-clr-accent);
	text-decoration: none;
	font-weight: 600;
}

.ec-map-link a:hover,
.ec-map-text-link:hover {
	text-decoration: underline;
}

/* =============================================================
   Location Info Card
   ============================================================= */
.ec-location-card {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow-sm);
	overflow: hidden;
	margin-bottom: 24px;
}

.ec-location-card-body {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 16px;
	padding: 20px 24px;
}

.ec-location-card-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ec-clr-text);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}

.ec-location-card-address {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 0.85rem;
	color: var(--ec-clr-muted);
	margin: 0;
	line-height: 1.5;
}

.ec-location-card-address svg {
	flex-shrink: 0;
	margin-top: 2px;
}

/* =============================================================
   Sections (location archive)
   ============================================================= */
.ec-section {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	box-shadow: var(--ec-shadow-xs);
	overflow: hidden;
}

.ec-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--ec-clr-border);
	background: var(--ec-clr-bg);
}

.ec-section-header h2 {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ec-clr-muted);
}

.ec-section-header .ec-badge {
	margin-left: auto;
}

.ec-section > .ec-card-grid {
	padding: 18px;
}

.ec-section > p {
	padding: 20px;
	margin: 0;
	font-size: 0.88rem;
	color: var(--ec-clr-muted);
}

.ec-section-content {
	padding: 18px;
}

.ec-section + .ec-section {
	margin-top: 14px;
}

/* =============================================================
   Location Directory Switch / Cards
   ============================================================= */
.ec-view-switch-controls {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ec-view-switch-button {
	appearance: none;
	border: 1px solid var(--ec-clr-border);
	border-radius: 999px;
	background: var(--ec-clr-surface);
	color: var(--ec-clr-muted);
	padding: 10px 16px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background var(--ec-transition), border-color var(--ec-transition), color var(--ec-transition), transform var(--ec-transition);
}

.ec-view-switch-button:hover {
	border-color: var(--ec-clr-border-md);
	color: var(--ec-clr-text);
	transform: translateY(-1px);
}

.ec-view-switch-button.is-active {
	background: var(--ec-clr-text);
	border-color: var(--ec-clr-text);
	color: #fff;
	box-shadow: var(--ec-shadow-xs);
}

.ec-view-panel[hidden] {
	display: none !important;
}

.ec-location-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.ec-location-directory-card {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ec-location-directory-card-media {
	min-height: 220px;
	background: var(--ec-clr-bg);
	border-bottom: 1px solid var(--ec-clr-border);
}

.ec-location-directory-card-media iframe {
	display: block;
	width: 100%;
	min-height: 220px;
	border: 0;
}

.ec-location-directory-card-placeholder {
	min-height: 220px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	background:
		radial-gradient(circle at top left, rgba(79, 70, 229, 0.14), transparent 42%),
		linear-gradient(135deg, #e2e8f0, #f8fafc);
	color: var(--ec-clr-text);
}

.ec-location-directory-card-placeholder strong {
	font-size: 1.05rem;
	line-height: 1.35;
}

.ec-location-directory-card-placeholder span {
	font-size: 0.82rem;
	color: var(--ec-clr-muted);
	line-height: 1.6;
}

.ec-location-directory-card-placeholder-label {
	font-size: 0.7rem !important;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ec-clr-kicker) !important;
}

.ec-location-directory-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.ec-location-directory-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ec-location-directory-card-title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.35;
}

.ec-location-directory-card-title a {
	color: var(--ec-clr-text);
	text-decoration: none;
}

.ec-location-directory-card-title a:hover {
	color: var(--ec-clr-accent);
}

.ec-location-directory-card-address {
	margin: 6px 0 0;
	font-size: 0.84rem;
	line-height: 1.6;
	color: var(--ec-clr-muted);
}

.ec-location-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.ec-location-metrics div {
	background: var(--ec-clr-bg);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	padding: 10px 12px;
}

.ec-location-metrics dt {
	margin: 0;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-clr-muted);
}

.ec-location-metrics dd {
	margin: 6px 0 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ec-clr-text);
}

.ec-location-event-snippets {
	display: grid;
	gap: 10px;
}

.ec-location-event-snippet {
	padding: 12px 14px;
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	background: #fcfdff;
}

.ec-location-event-label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ec-clr-muted);
}

.ec-location-event-title {
	color: var(--ec-clr-text);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.5;
}

.ec-location-event-title:hover {
	color: var(--ec-clr-accent);
}

.ec-location-event-date {
	display: block;
	margin-top: 4px;
	font-size: 0.77rem;
	color: var(--ec-clr-muted);
}

.ec-location-directory-card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.ec-location-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.ec-location-row {
	background: var(--ec-clr-surface);
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	box-shadow: var(--ec-shadow-xs);
	padding: 18px 20px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: center;
}

.ec-location-row-main {
	min-width: 0;
}

.ec-location-row-name {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.ec-location-row-name a {
	color: var(--ec-clr-text);
	text-decoration: none;
}

.ec-location-row-name a:hover {
	color: var(--ec-clr-accent);
}

.ec-location-row-address {
	margin: 0 0 10px;
	font-size: 0.84rem;
	line-height: 1.6;
	color: var(--ec-clr-muted);
}

.ec-location-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ec-location-row-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ec-clr-bg);
	color: var(--ec-clr-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.ec-location-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

/* =============================================================
   Simple List (past events)
   ============================================================= */
.ec-simple-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ec-simple-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--ec-clr-border);
	transition: background var(--ec-transition);
}

.ec-simple-list li:last-child {
	border-bottom: none;
}

.ec-simple-list li:hover {
	background: var(--ec-clr-bg);
}

.ec-simple-list a {
	color: var(--ec-clr-text);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color var(--ec-transition);
}

.ec-simple-list a:hover {
	color: var(--ec-clr-accent);
}

.ec-simple-list span {
	font-size: 0.78rem;
	color: var(--ec-clr-subtle);
	white-space: nowrap;
	flex-shrink: 0;
}

/* =============================================================
   Location header map
   ============================================================= */
.ec-location-card .ec-map {
	border-top: 1px solid var(--ec-clr-border);
}

.ec-page-header .ec-map {
	margin-top: 18px;
	border: 1px solid var(--ec-clr-border);
	border-radius: var(--ec-radius);
	overflow: hidden;
}

/* =============================================================
   Responsive / SP Optimizations
   ============================================================= */

/* ----- タブレット (〜 768px) ----- */
@media (max-width: 768px) {
	.ec-page {
		padding: 28px 0 52px;
	}

	.ec-container {
		width: min(100%, calc(100% - 32px));
	}

	.ec-page-header {
		margin-bottom: 24px;
	}

	.ec-page-header h1 {
		font-size: clamp(1.4rem, 5vw, 1.9rem);
	}

	/* ナビリンク: 横スクロール */
	.ec-nav-links {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
		margin-top: 14px;
	}

	.ec-nav-links::-webkit-scrollbar { display: none; }

	.ec-nav-links a {
		white-space: nowrap;
		flex-shrink: 0;
		min-height: 44px;
	}

	/* カードグリッド: 2列 */
	.ec-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.ec-overview-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.ec-card-image { height: 152px; }

	.ec-card-body { padding: 12px 14px 0; }

	/* ランキングポジウム: 1列 */
	.ec-ranking-podium {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ec-rank-badge {
		width: 28px;
		height: 28px;
		font-size: 0.78rem;
	}

	/* 詳細グリッド */
	.ec-detail-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* アクションリンク */
	.ec-action-links {
		padding: 14px 16px;
		gap: 8px;
	}

	.ec-button,
	.ec-action-links a {
		min-height: 44px;
		padding: 10px 16px;
	}

	/* シンプルリスト */
	.ec-simple-list li {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
		padding: 11px 16px;
	}

	.ec-simple-list span { white-space: normal; }

	/* セクション */
	.ec-section > .ec-card-grid { padding: 14px; }

	.ec-section-content { padding: 14px; }

	.ec-section-header { padding: 12px 16px; }

	.ec-location-directory-grid {
		grid-template-columns: 1fr;
	}

	.ec-location-row {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.ec-location-row-actions {
		justify-content: flex-start;
	}

	/* ロケーションカード */
	.ec-location-card-body {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px;
	}

	/* マップ */
	.ec-map iframe { min-height: 240px; }
}

/* ----- スマートフォン (〜 480px) ----- */
@media (max-width: 480px) {
	.ec-page {
		padding: 20px 0 44px;
	}

	.ec-container {
		width: min(100%, calc(100% - 24px));
	}

	.ec-page-header {
		margin-bottom: 18px;
	}

	.ec-page-header h1 {
		font-size: 1.35rem;
	}

	.ec-page-intro {
		font-size: 0.85rem;
	}

	.ec-overview-stats {
		grid-template-columns: 1fr;
	}

	/* カードグリッド: 1列 */
	.ec-card-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ec-card-image { height: 172px; }

	/* ランキング行 */
	.ec-ranking-row {
		grid-template-columns: 40px 1fr auto;
	}

	.ec-ranking-row-num { font-size: 0.78rem; }

	.ec-ranking-row-body { padding: 10px 12px; }

	/* 詳細グリッド: 1列 */
	.ec-detail-grid {
		grid-template-columns: 1fr;
	}

	.ec-detail-grid div { padding: 12px 16px; }

	/* アクションリンク: 縦積み全幅 */
	.ec-action-links {
		flex-direction: column;
		padding: 12px 14px;
	}

	.ec-button,
	.ec-action-links a {
		width: 100%;
		justify-content: center;
		padding: 12px 16px;
		font-size: 0.88rem;
	}

	.ec-view-switch-controls {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ec-view-switch-button {
		justify-content: center;
	}

	/* バッジ */
	.ec-badge {
		font-size: 0.65rem;
		padding: 2px 7px;
	}

	/* ランキングポジウム */
	.ec-ranking-podium { gap: 10px; }

	/* マップ */
	.ec-map iframe { min-height: 200px; }

	/* 空状態 */
	.ec-empty-state { padding: 40px 16px; }

	/* ロケーションカード */
	.ec-location-card-body { padding: 14px; }

	.ec-location-directory-card-body {
		padding: 16px;
	}

	.ec-location-directory-card-placeholder,
	.ec-location-directory-card-media iframe {
		min-height: 180px;
	}

	.ec-location-metrics {
		grid-template-columns: 1fr;
	}
}
