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

/* ----- CSS Custom Properties ----- */
:root {
	--ec-clr-bg:          #f3efe8;
	--ec-clr-surface:     #fffdf8;
	--ec-clr-border:      #ddd3c6;
	--ec-clr-border-md:   #c8baa8;
	--ec-clr-text:        #1d2430;
	--ec-clr-muted:       #5f6770;
	--ec-clr-subtle:      #8a8074;
	--ec-clr-accent:      #8b6b43;
	--ec-clr-accent-lt:   #f4ece1;
	--ec-clr-kicker:      #b89972;
	--ec-clr-upcoming:    #355c86;
	--ec-clr-upcoming-bg: #e9f0f6;
	--ec-clr-ongoing:     #365f56;
	--ec-clr-ongoing-bg:  #e8f1ee;
	--ec-clr-ended:       #71695f;
	--ec-clr-ended-bg:    #f0ebe3;
	--ec-clr-hero-start:  #1b2433;
	--ec-clr-hero-end:    #0f1722;
	--ec-clr-hero-text:   #f6f0e7;
	--ec-font-display:    "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	--ec-radius-sm:       8px;
	--ec-radius:          16px;
	--ec-radius-lg:       24px;
	--ec-shadow-xs:       0 1px 2px rgba(17, 24, 39, .05);
	--ec-shadow-sm:       0 12px 30px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .03);
	--ec-shadow-md:       0 18px 44px rgba(17, 24, 39, .10), 0 6px 20px rgba(17, 24, 39, .05);
	--ec-shadow-hover:    0 24px 56px rgba(17, 24, 39, .12), 0 10px 24px rgba(17, 24, 39, .06);
	--ec-transition:      0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================
   Page Layout
   ============================================================= */
.ec-page {
	position: relative;
	padding: 56px 0 88px;
	background:
		radial-gradient(circle at top right, rgba(184, 153, 114, .18), transparent 26%),
		radial-gradient(circle at top left, rgba(27, 36, 51, .09), transparent 34%),
		linear-gradient(180deg, #f8f4ee 0%, var(--ec-clr-bg) 32%, #f5f0e8 100%);
	min-height: 60vh;
}

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

/* =============================================================
   Theme Layout Overrides (virtual pages only)
   ============================================================= */
.event-calendar-virtual-page .p-mainVisual,
.event-calendar-virtual-page .p-mainVisual__inner,
.event-calendar-virtual-page #post_slider,
.event-calendar-virtual-page .p-postSlider {
	display: none !important;
}

.event-calendar-virtual-page #sidebar,
.event-calendar-virtual-page .l-sidebar,
.event-calendar-virtual-page .c-sidebar,
.event-calendar-virtual-page .widget-area {
	display: none !important;
}

.event-calendar-virtual-page .l-content,
.event-calendar-virtual-page .l-mainContent,
.event-calendar-virtual-page .l-mainArea,
.event-calendar-virtual-page .l-main,
.event-calendar-virtual-page #content,
.event-calendar-virtual-page #primary,
.event-calendar-virtual-page main[role="main"] {
	width: 100% !important;
	max-width: none !important;
	flex: 1 1 100% !important;
}

.event-calendar-virtual-page .l-content,
.event-calendar-virtual-page #content {
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.event-calendar-virtual-page .ec-page {
	width: 100%;
}

@media (min-width: 1024px) {
	.event-calendar-virtual-page .ec-container {
		width: min(1360px, calc(100% - 64px));
	}
}

/* =============================================================
   Page Header
   ============================================================= */
.ec-page-header {
	position: relative;
	margin-bottom: 40px;
	padding: 32px 34px 30px;
	border: 1px solid rgba(221, 211, 198, .22);
	border-radius: 28px;
	background:
		linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0) 42%),
		radial-gradient(circle at top right, rgba(184, 153, 114, .22), transparent 24%),
		linear-gradient(135deg, var(--ec-clr-hero-start), var(--ec-clr-hero-end));
	box-shadow: var(--ec-shadow-md);
	overflow: hidden;
}

.ec-page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0) 32%),
		repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 12px);
	pointer-events: none;
}

.ec-page-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ec-clr-kicker);
	position: relative;
	z-index: 1;
}

.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-family: var(--ec-font-display);
	font-size: clamp(2rem, 4vw, 3.3rem);
	font-weight: 600;
	line-height: 1.08;
	color: var(--ec-clr-hero-text);
	letter-spacing: 0;
	position: relative;
	z-index: 1;
}

.ec-page-intro {
	margin: 0;
	max-width: 64ch;
	font-size: 0.95rem;
	color: rgba(246, 240, 231, .78);
	line-height: 1.9;
	position: relative;
	z-index: 1;
}

/* =============================================================
   Navigation Links
   ============================================================= */
.ec-nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
	position: relative;
	z-index: 1;
}

.ec-nav-links a,
.ec-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	color: #fff;
	backdrop-filter: blur(6px);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	transition: background var(--ec-transition), transform var(--ec-transition), box-shadow var(--ec-transition), border-color var(--ec-transition);
	box-shadow: var(--ec-shadow-xs);
	white-space: nowrap;
}

.ec-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ec-clr-hero-start), #283244);
	border: 1px solid rgba(27, 36, 51, .22);
	color: #fff;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	transition: background var(--ec-transition), transform var(--ec-transition), box-shadow var(--ec-transition), border-color var(--ec-transition);
	box-shadow: var(--ec-shadow-xs);
}

.ec-nav-links a:hover,
.ec-nav-link:hover {
	background: rgba(184, 153, 114, .18);
	border-color: rgba(184, 153, 114, .45);
	transform: translateY(-1px);
	box-shadow: var(--ec-shadow-sm);
}

.ec-ranking-header-nav {
	position: relative;
	z-index: 1;
	margin-top: 24px;
	display: grid;
	gap: 12px;
}

.ec-ranking-header-nav .ec-nav-links {
	margin-top: 0;
}

.ec-nav-links--timeline .ec-nav-link {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}

.ec-nav-links--context .ec-nav-link {
	background: rgba(246, 240, 231, .16);
	border-color: rgba(184, 153, 114, .34);
	color: #fff7ec;
}

.ec-nav-link--active {
	background: linear-gradient(135deg, rgba(184, 153, 114, .28), rgba(139, 107, 67, .32));
	border-color: rgba(184, 153, 114, .45);
	color: #fff;
}

.ec-nav-link.is-disabled {
	opacity: .45;
	cursor: default;
	pointer-events: none;
}

.ec-button:hover {
	background: linear-gradient(135deg, #2a3445, #8b6b43);
	border-color: rgba(139, 107, 67, .32);
	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);
	backdrop-filter: none;
}

.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: 18px;
}

.ec-week-overview-stats {
	margin-bottom: 18px;
}

.ec-results-count {
	font-size: 0.8rem;
	color: var(--ec-clr-muted);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

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

.ec-results-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid rgba(139, 107, 67, .18);
	border-radius: 999px;
	background: rgba(244, 236, 225, .72);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ec-clr-accent);
	white-space: nowrap;
}

.ec-results-note::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ec-clr-accent);
	box-shadow: 0 0 0 4px rgba(139, 107, 67, .12);
}

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

.ec-overview-stat {
	position: relative;
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .72);
	border-radius: 20px;
	box-shadow: var(--ec-shadow-sm);
	padding: 18px 20px;
	overflow: hidden;
}

.ec-overview-stat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ec-clr-accent), rgba(184, 153, 114, .18));
}

.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: 10px 0 0;
	font-family: var(--ec-font-display);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
	color: var(--ec-clr-text);
}

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

/* =============================================================
   Event Card  (基本)
   ============================================================= */
.ec-card {
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	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(-4px);
	border-color: var(--ec-clr-accent);
}

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

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

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

/* ボディ */
.ec-card-body {
	padding: 18px 20px 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 8px;
	font-size: 1.03rem;
	line-height: 1.5;
	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: 5px;
	font-size: 0.77rem;
	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: 5px;
	font-size: 0.77rem;
	color: var(--ec-clr-muted);
	margin: 2px 0 8px;
}

.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.85rem;
	color: var(--ec-clr-muted);
	line-height: 1.8;
	margin: 6px 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: 14px 20px 16px;
	margin-top: auto;
	border-top: 1px solid rgba(221, 211, 198, .6);
	margin-top: auto;
}

.ec-card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.77rem;
	font-weight: 600;
	color: var(--ec-clr-accent);
	text-decoration: none;
	transition: gap var(--ec-transition), color var(--ec-transition);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.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);
}

/* =============================================================
   Week Page Enhancements
   ============================================================= */
.ec-week-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.ec-week-jump .ec-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid rgba(200, 186, 168, .72);
	border-radius: 999px;
	background: rgba(255, 253, 248, .92);
	box-shadow: var(--ec-shadow-xs);
	color: var(--ec-clr-text);
	text-decoration: none;
}

.ec-week-jump .ec-nav-link:hover {
	border-color: rgba(139, 107, 67, .3);
	background: rgba(244, 236, 225, .82);
	transform: translateY(-1px);
	box-shadow: var(--ec-shadow-sm);
}

.ec-week-jump-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ec-week-jump-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(27, 36, 51, .08);
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--ec-clr-muted);
}

.ec-week-jump .ec-nav-link--active {
	background: linear-gradient(135deg, rgba(27, 36, 51, .94), rgba(39, 49, 66, .92));
	border-color: rgba(27, 36, 51, .34);
	color: var(--ec-clr-hero-text);
}

.ec-week-jump .ec-nav-link--active .ec-week-jump-count {
	background: rgba(255, 255, 255, .12);
	color: var(--ec-clr-hero-text);
}

.ec-week-groups {
	display: grid;
	gap: 16px;
}

.ec-week-day-group.is-today {
	border-color: rgba(139, 107, 67, .32);
	box-shadow: var(--ec-shadow-md);
}

.ec-week-day-header {
	align-items: flex-start;
}

.ec-week-day-head {
	display: grid;
	gap: 4px;
}

.ec-week-day-subtext {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--ec-clr-muted);
}

.ec-week-day-count,
.ec-week-day-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ec-week-day-count {
	margin-left: auto;
	background: rgba(27, 36, 51, .08);
	color: var(--ec-clr-text);
}

.ec-week-day-flag {
	background: rgba(139, 107, 67, .12);
	color: var(--ec-clr-accent);
}

/* =============================================================
   Badges
   ============================================================= */
.ec-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ec-badge-upcoming {
	background: var(--ec-clr-upcoming-bg);
	color: var(--ec-clr-upcoming);
	border-color: rgba(53, 92, 134, .15);
}

.ec-badge-ongoing {
	background: var(--ec-clr-ongoing-bg);
	color: var(--ec-clr-ongoing);
	border-color: rgba(54, 95, 86, .15);
}

.ec-badge-ended {
	background: var(--ec-clr-ended-bg);
	color: var(--ec-clr-ended);
	border-color: rgba(113, 105, 95, .16);
}

/* =============================================================
   Empty State
   ============================================================= */
.ec-empty-state {
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .7);
	border-radius: 24px;
	box-shadow: var(--ec-shadow-sm);
	padding: 62px 34px;
	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: linear-gradient(135deg, rgba(184, 153, 114, .16), rgba(27, 36, 51, .08));
	color: var(--ec-clr-accent);
}

.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: 18px;
	margin-bottom: 22px;
}

.ec-ranking-results-header {
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1px solid rgba(200, 186, 168, .72);
	border-radius: 20px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	box-shadow: var(--ec-shadow-sm);
}

.ec-ranking-results-header .ec-results-note {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: #475568;
}

.ec-page-ranking .ec-results-count {
	margin: 0;
	font-size: 0.86rem;
	color: #526273;
}

.ec-page-ranking .ec-results-count strong {
	font-size: 1.22rem;
	color: #182230;
}

.ec-page-ranking .ec-overview-stats {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ec-page-ranking .ec-overview-stat dt {
	color: #5d6873;
}

.ec-page-ranking .ec-overview-stat dd {
	font-size: 1.8rem;
}

/* ポジションバッジ */
.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 10px 24px rgba(0,0,0,.16);
}

.ec-rank-badge--1 { background: linear-gradient(135deg, #b89972, #7f603d); color: #fffdf8; }
.ec-rank-badge--2 { background: linear-gradient(135deg, #7b838c, #49505a); color: #fffdf8; }
.ec-rank-badge--3 { background: linear-gradient(135deg, #8c6345, #68462f); color: #fffdf8; }

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

.ec-ranking-row {
	background:
		linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	border-radius: 20px;
	box-shadow: var(--ec-shadow-sm);
	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(-2px);
	border-color: var(--ec-clr-accent);
}

.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-accent);
	background: linear-gradient(180deg, rgba(184, 153, 114, .16), rgba(184, 153, 114, .06));
	border-right: 1px solid rgba(200, 186, 168, .7);
	padding: 0 6px;
}

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

.ec-ranking-row-title {
	font-size: 0.96rem;
	font-weight: 700;
	color: #182230;
	line-height: 1.5;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

.ec-ranking-row-date {
	font-size: 0.78rem;
	color: #465565;
}

.ec-ranking-row-location {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(244, 236, 225, .9);
	border: 1px solid rgba(200, 186, 168, .72);
	font-size: 0.78rem;
	color: #39495b;
	font-weight: 600;
}

.ec-ranking-row-views {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #edf2f6;
	font-size: 0.72rem;
	color: #2f4f72;
	font-weight: 700;
}

.ec-ranking-row-arrow {
	padding: 0 14px;
	color: #526273;
	flex-shrink: 0;
}

.ec-page-ranking .ec-card-date,
.ec-page-ranking .ec-card-location,
.ec-page-ranking .ec-card-location a {
	color: #465565;
}

.ec-page-ranking .ec-card-title a:hover,
.ec-ranking-row:hover .ec-ranking-row-title {
	color: #0f3550;
}

.ec-page-ranking .ec-card-meta-row {
	gap: 10px;
}

.ec-page-ranking .ec-card-more {
	color: #5e4528;
}

/* =============================================================
   Event Detail Section (single post)
   ============================================================= */
.ec-event-details {
	margin-top: 40px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	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: 18px 24px;
	background: linear-gradient(135deg, #1a2434, #121a27);
	border-bottom: 1px solid rgba(200, 186, 168, .28);
	color: var(--ec-clr-hero-text);
}

.ec-event-details-header h2 {
	margin: 0;
	font-family: var(--ec-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ec-clr-hero-text);
}

.ec-event-details-header svg {
	color: var(--ec-clr-kicker);
}

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

.ec-detail-grid div {
	padding: 16px 20px;
	background: rgba(255, 253, 248, .9);
}

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

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

/* アクションリンク */
.ec-action-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 24px;
	border-top: 1px solid rgba(221, 211, 198, .72);
	background: linear-gradient(180deg, rgba(244, 236, 225, .65), rgba(255, 253, 248, .88));
}

.ec-related-events {
	margin-top: 22px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow-sm);
	overflow: hidden;
}

.ec-related-events-header {
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.ec-related-events-head {
	min-width: 0;
}

.ec-related-events-header h2 {
	font-size: 0.94rem;
	letter-spacing: 0.08em;
	color: var(--ec-clr-text);
}

.ec-related-events-intro {
	margin: 8px 0 0;
	font-size: 0.9rem;
	line-height: 1.7;
	color: #44505d;
}

/* =============================================================
   Home Sections
   ============================================================= */
.ec-home-sections {
	display: grid;
	gap: 18px;
	margin: 0 0 28px;
}

.ec-home-section {
	overflow: hidden;
}

.ec-home-section-header {
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.ec-home-section-head {
	min-width: 0;
}

.ec-home-section-eyebrow {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6f5333;
}

.ec-home-section-header h2 {
	font-size: 1.12rem;
	letter-spacing: 0.03em;
	line-height: 1.45;
	color: #182230;
}

.ec-home-section-intro {
	margin: 8px 0 0;
	font-size: 0.95rem;
	line-height: 1.8;
	color: #2f3945;
}

.ec-home-section-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: auto;
}

.ec-home-section-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ec-clr-hero-start), #283244);
	border: 1px solid rgba(27, 36, 51, .22);
	color: #fff;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	box-shadow: var(--ec-shadow-xs);
	transition: transform var(--ec-transition), box-shadow var(--ec-transition), background var(--ec-transition);
}

.ec-home-section-link:hover {
	background: linear-gradient(135deg, #2a3445, #8b6b43);
	box-shadow: var(--ec-shadow-sm);
	transform: translateY(-1px);
}

.event-calendar-home-page .ec-home-sections .ec-nav-links a {
	background: #fffaf2;
	border: 1px solid rgba(24, 34, 48, 0.14);
	color: #1b2838;
	box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.event-calendar-home-page .ec-home-sections .ec-nav-links a:hover {
	background: #f1e4d1;
	border-color: rgba(24, 34, 48, 0.24);
	color: #0f1a26;
}

.ec-home-section-archive .ec-nav-links {
	margin-top: 0;
}

.ec-home-section-archive .ec-nav-links a {
	background: #f6efe3;
	border: 1px solid rgba(139, 107, 67, 0.26);
	color: #243142;
	font-weight: 700;
}

.ec-home-section-archive .ec-nav-links a:hover {
	background: #eadfce;
	color: #16202c;
}

.ec-home-card-grid {
	padding: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 960px) {
	.ec-home-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ec-home-card .ec-card-image {
	height: 176px;
}

.ec-home-card .ec-card-title {
	font-size: 0.98rem;
}

.event-calendar-home-page .ec-home-card .ec-card-title a {
	color: #152232;
}

.event-calendar-home-page .ec-home-card .ec-card-date,
.event-calendar-home-page .ec-home-card .ec-card-location,
.event-calendar-home-page .ec-home-card .ec-card-location a {
	color: #415062;
}

.event-calendar-home-page .ec-home-card .ec-card-excerpt {
	color: #2d3845;
}

.event-calendar-home-page .ec-home-card .ec-card-more {
	color: #5a4325;
}

.ec-home-card .ec-card-excerpt {
	-webkit-line-clamp: 2;
}

.ec-home-card-metric {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(27, 36, 51, .08);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ec-clr-muted);
}

.ec-related-events-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: auto;
}

.ec-related-events-week-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ec-clr-hero-start), #283244);
	border: 1px solid rgba(27, 36, 51, .22);
	color: #fff;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	box-shadow: var(--ec-shadow-xs);
	transition: transform var(--ec-transition), box-shadow var(--ec-transition), background var(--ec-transition);
}

.ec-related-events-week-link:hover {
	background: linear-gradient(135deg, #2a3445, #8b6b43);
	box-shadow: var(--ec-shadow-sm);
	transform: translateY(-1px);
}

.ec-related-events-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ec-related-events-item + .ec-related-events-item {
	border-top: 1px solid rgba(221, 211, 198, .72);
}

.ec-related-events-link {
	display: block;
	padding: 18px 24px;
	text-decoration: none;
	transition: background var(--ec-transition), box-shadow var(--ec-transition);
}

.ec-related-events-link:hover {
	background: rgba(244, 236, 225, .48);
	box-shadow: inset 0 0 0 1px rgba(139, 107, 67, .14);
}

.ec-related-events-title {
	display: block;
	margin-bottom: 6px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #17212c;
}

.ec-related-events-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 0.84rem;
	color: #4a5561;
}

.ec-related-events-meta-item {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(244, 236, 225, .9);
	border: 1px solid rgba(200, 186, 168, .72);
	font-weight: 600;
}

/* マップ */
.ec-map {
	border-top: 1px solid rgba(221, 211, 198, .72);
	overflow: hidden;
}

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

.ec-map-link {
	padding: 16px 24px;
	border-top: 1px solid rgba(221, 211, 198, .72);
	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:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow-md);
	overflow: hidden;
	margin-bottom: 28px;
}

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

.ec-location-card-name {
	font-family: var(--ec-font-display);
	font-size: clamp(1.5rem, 2.2vw, 2.1rem);
	font-weight: 600;
	color: var(--ec-clr-text);
	margin: 0 0 6px;
	letter-spacing: 0;
}

.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:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	border-radius: 22px;
	box-shadow: var(--ec-shadow-sm);
	overflow: hidden;
}

.ec-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	border-bottom: 1px solid rgba(221, 211, 198, .72);
	background: linear-gradient(180deg, rgba(244, 236, 225, .68), rgba(255, 253, 248, .92));
}

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

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

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

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

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

.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 rgba(200, 186, 168, .72);
	border-radius: 999px;
	background: var(--ec-clr-surface);
	color: var(--ec-clr-muted);
	padding: 11px 18px;
	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: linear-gradient(135deg, var(--ec-clr-hero-start), #273142);
	border-color: #273142;
	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:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	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 rgba(221, 211, 198, .72);
}

.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(184, 153, 114, .18), transparent 42%),
		linear-gradient(135deg, #ece3d6, #fbf7f1);
	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: linear-gradient(180deg, rgba(244, 236, 225, .58), rgba(255, 253, 248, .94));
	border: 1px solid rgba(221, 211, 198, .72);
	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-family: var(--ec-font-display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--ec-clr-text);
}

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

.ec-location-event-snippet {
	padding: 13px 14px;
	border: 1px solid rgba(221, 211, 198, .72);
	border-radius: var(--ec-radius);
	background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(250,247,242,.96));
}

.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:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.98)),
		var(--ec-clr-surface);
	border: 1px solid rgba(200, 186, 168, .68);
	border-radius: 20px;
	box-shadow: var(--ec-shadow-sm);
	padding: 20px 22px;
	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: linear-gradient(180deg, rgba(244, 236, 225, .58), rgba(255, 253, 248, .94));
	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: 24px 0 48px;
	}

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

	.ec-page-header {
		margin-bottom: 24px;
		padding: 24px 20px 22px;
		border-radius: 22px;
	}

	.ec-page-header h1 {
		font-size: clamp(1.8rem, 8vw, 2.35rem);
		line-height: 1.08;
	}

	.ec-page-intro {
		font-size: 0.88rem;
		line-height: 1.75;
	}

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

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

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

	.ec-nav-link {
		flex-shrink: 0;
		min-height: 44px;
		padding: 10px 15px;
	}

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

	.ec-results-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ec-week-jump {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ec-week-jump::-webkit-scrollbar { display: none; }

	.ec-week-jump .ec-nav-link {
		flex-shrink: 0;
	}

	.ec-week-day-header {
		flex-wrap: wrap;
	}

	.ec-week-day-count {
		margin-left: 0;
	}

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

	.ec-overview-stat {
		padding: 16px;
	}

	.ec-overview-stat dd {
		font-size: 1.6rem;
	}

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

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

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

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

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

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

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

	/* シンプルリスト */
	.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-home-sections {
		gap: 14px;
		margin-bottom: 22px;
	}

	.ec-home-section-header {
		flex-direction: column;
	}

	.ec-home-section-actions {
		justify-content: flex-start;
		margin-left: 0;
	}

	.ec-home-card-grid {
		padding: 14px;
	}

	.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: 18px 16px;
	}

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

	.ec-ranking-row {
		grid-template-columns: 44px 1fr auto;
	}

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

	.ec-ranking-row-title {
		font-size: 0.88rem;
	}

	.ec-ranking-row-meta {
		gap: 6px;
	}
}

/* ----- スマートフォン (〜 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;
		padding: 22px 16px 18px;
		border-radius: 18px;
	}

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

	.ec-page-intro {
		font-size: 0.84rem;
		line-height: 1.68;
	}

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

	.ec-week-day-subtext {
		font-size: 0.74rem;
	}

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

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

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

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

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

	.ec-ranking-row-title {
		font-size: 0.86rem;
	}

	.ec-ranking-row-date,
	.ec-ranking-row-location,
	.ec-ranking-row-views {
		font-size: 0.72rem;
	}

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

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

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

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

	.ec-related-events-link {
		padding: 14px 16px;
	}

	.ec-related-events-header {
		flex-direction: column;
	}

	.ec-related-events-actions {
		justify-content: flex-start;
		margin-left: 0;
	}

	.ec-home-section-link {
		width: 100%;
	}

	.ec-home-card-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 12px;
	}

	.ec-home-card .ec-card-image {
		height: 164px;
	}

	.ec-related-events-meta {
		flex-direction: column;
		gap: 4px;
	}

	.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: 3px 8px;
	}

	/* ランキングポジウム */
	.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-section-header h2 {
		font-size: 0.7rem;
		letter-spacing: 0.12em;
	}

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

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