@charset "utf-8";

/* About feature：固定ページの文章＋実コースのプレビューを左右に配置する
----------------------------------------- */
.cr-feature{
	display: grid;
	grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
	align-items: center;
	gap: clamp(28px,4.5vw,64px);
	margin: 72px 0;
	padding: clamp(28px,4.2vw,56px);
	background-color: var(--soft);
	color: var(--ink);
}

.cr-feature > .wp-block-group__inner-container{
	display: contents;
}

.cr-feature-copy,
.cr-feature-preview{
	min-width: 0;
}

.cr-feature .cr-feature-kicker{
	margin: 0 0 28px;
	color: var(--brand);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: .16em;
}

.cr-feature h2{
	margin: 0 0 24px;
	color: var(--ink);
	font-size: clamp(26px,2.5vw,36px);
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: .01em;
}

.cr-feature .cr-feature-description{
	margin: 0;
	color: var(--ink);
	font-size: 14px;
	line-height: 2.05;
}

.cr-feature .cr-feature-action{
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 50px;
	margin-top: 28px;
	padding: 13px 20px;
	border: 1px solid var(--brand);
	border-radius: 0;
	background-color: var(--brand);
	color: var(--paper);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color .22s,color .22s,border-color .22s;
}

.cr-feature .cr-feature-action:hover,
.cr-feature .cr-feature-action:focus-visible{
	border-color: var(--ink);
	background-color: var(--ink);
	color: var(--paper);
}

/* course preview：見出し・距離・リンクは選択した公開コースの値を表示する
----------------------------------------- */
.cr-course-preview{
	min-width: 0;
	text-align: left;
}

.cr-preview-top{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	font-size: 10px;
	line-height: 1.8;
}

.cr-preview-top > span{
	color: var(--muted);
	letter-spacing: .1em;
}

.cr-feature .cr-preview-top a{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid currentColor;
	color: var(--muted);
	text-decoration: none;
}

.cr-feature .cr-preview-top a:hover,
.cr-feature .cr-preview-top a:focus-visible{
	color: var(--brand);
}

.cr-preview-card{
	border: 1px solid var(--line);
	background-color: var(--paper);
}

.cr-preview-tabs{
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
}

.cr-preview-tabs button{
	position: relative;
	flex: 1 1 0;
	max-width: 110px;
	min-width: 44px;
	min-height: 52px;
	margin: 0;
	padding: 12px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background-color: transparent;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	transition: color .22s,background-color .22s,border-color .22s;
}

.cr-preview-tabs button[aria-selected="true"]{
	border-bottom-color: var(--brand);
	color: var(--brand);
}

.cr-preview-tabs button:hover,
.cr-preview-tabs button:focus-visible{
	background-color: var(--soft);
	color: var(--brand);
}

.cr-preview-stage{
	position: relative;
	aspect-ratio: 16/9;
	background-color: #e7ece5;
}

.cr-preview-panel,
.cr-preview-map,
.cr-preview-panel iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cr-preview-panel{
	margin: 0;
	animation: cr-preview-in .22s ease-out;
}

.cr-preview-panel iframe{
	display: block;
	border: 0;
	background-color: #111;
}

/* 地図タイル・文字はライトのまま表示し、周りのカードだけ配色へ追従させる。 */
.cr-preview-map{
	z-index: 0;
	background-color: #e7ece5;
	color: #172326;
}

.cr-preview-map .leaflet-control-attribution{
	max-width: calc(100% - 12px);
	padding: 2px 5px;
	background-color: rgba(255,255,255,.94);
	color: #293638;
	font-size: 9px;
	line-height: 1.5;
}

.cr-preview-map .leaflet-control-attribution a{
	color: #0b5266;
}

.cr-preview-map .leaflet-bar a{
	background-color: #fff;
	color: #172326;
}

.cr-preview-marker span{
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid #fff;
	border-radius: 0;
	background-color: #0b5266;
	color: #fff;
	font: 600 11px/1 Arial,sans-serif;
}

.cr-preview-marker--goal span{
	background-color: #b64440;
}

.cr-preview-map-note{
	position: absolute;
	z-index: 500;
	right: 10px;
	bottom: 24px;
	left: 10px;
	margin: 0;
	padding: 8px 10px;
	background-color: #fff;
	color: #172326;
	font-size: 11px;
	line-height: 1.7;
}

.cr-preview-meta{
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
	line-height: 1.7;
}

.cr-preview-meta > span{
	min-width: 0;
}

.cr-preview-meta strong{
	flex: 0 0 auto;
	color: var(--brand);
	font-weight: 500;
	white-space: nowrap;
}

.cr-preview-empty,
.cr-preview-noscript{
	margin: 0;
	padding: 24px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.9;
}

@keyframes cr-preview-in{
	from{ opacity: .25; }
	to{ opacity: 1; }
}

@media all and (max-width: 760px){
	.cr-feature{
		grid-template-columns: minmax(0,1fr);
		gap: 32px;
		margin: 44px 0;
		padding: 26px 22px;
	}

	.cr-feature h2{
		font-size: 26px;
	}

	.cr-feature .cr-feature-kicker{
		margin-bottom: 20px;
	}

	.cr-preview-stage{
		aspect-ratio: 4/3;
	}

	.cr-preview-meta{
		flex-wrap: wrap;
		padding: 12px;
	}

	.cr-preview-meta strong{
		margin-left: auto;
	}
}

/* 編集画面では文章とショートコードを縦に並べ、更新対象を選びやすくする。 */
.editor-styles-wrapper .cr-feature{
	display: block;
}

@media (prefers-reduced-motion: reduce){
	.cr-preview-panel{
		animation: none;
	}

	.cr-feature-action,
	.cr-preview-tabs button{
		transition: none;
	}
}

html.cycride-reduce-motion .cr-preview-panel{
	animation: none;
}
