/*
 * エリアハブ（/area/）と Coming Soon ページの本文用スタイル（inc/area-hub.php のショートコード）
 *
 * 本サイト（TCD）の標準の固定ページの本文内に置くため、TCD の .post_content 等のスタイルに負けないよう、
 * すべてのセレクタを .ec-x で始めて詳細度を上げている。配色は本サイト（モックアップ）に合わせる。
 */
.ec-x {
	--ec-blue: #0085b2;
	--ec-band: #3a86b4;
	--ec-deep: #4a708b;
	--ec-gray: #999;
	--ec-line: #ddd;
	--ec-soon: #d6dde3;
	--ec-open: #142e4f;
	--ec-hq: #4f7fa3;
	--ec-map-soon: #c4dae6;
	--ec-soon-ink: #6f7b86;

	max-width: 1000px;
	margin: 0 auto;
	color: #000;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.85;
}

.ec-x *,
.ec-x *::before,
.ec-x *::after {
	box-sizing: border-box;
}

.ec-x p,
.ec-x ul,
.ec-x li,
.ec-x h2 {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- 共通 ---------- */
.ec-x .ec-x__head {
	margin-bottom: 34px;
	text-align: center;
}

.ec-x .ec-x__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.6;
	color: #000;
	text-align: center;
}

.ec-x .ec-x__lead {
	margin-top: 4px;
	font-size: 13px;
	color: var(--ec-gray);
}

.ec-x .ec-x__fc {
	margin-top: 40px;
	font-size: 13px;
	text-align: center;
}

.ec-x .ec-x__fc a,
.ec-x .ec-x__fc a:hover {
	color: var(--ec-blue);
	font-weight: 600;
	text-decoration: none;
}

/* パンくず（Coming Soon）は本文の枠 #page_contents の先頭に差し込む（inc/area-hub.php）。
   TCD の枠は上に 110px の余白があるため、パンくずの上を 24px、本文まで 70px（SP は 50px）にする（モックの余白） */
#page_contents:has(.ec-x--soon) {
	padding-top: 24px;
}

.ec-x-crumb {
	font-size: 12px;
	line-height: 1.85;
	color: #999;
}

.ec-x-crumb a,
.ec-x-crumb a:hover {
	color: #999;
	text-decoration: none;
}

.ec-x.ec-x--soon {
	padding-top: 70px;
}

/* ---------- エリアハブ ---------- */
/* 加盟店募集の帯（モックどおり、画面の左右いっぱいの青い帯） */
.ec-x .ec-x__fcband {
	margin: 70px calc(50% - 50vw) 0;
	padding: 26px 20px;
	background: var(--ec-band);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-align: center;
}

/* 文字は <p> と <a> の中にあり、TCD の本文のスタイルに負けないよう、太さ・大きさを直接指定する（モック: 14px / 600） */
.ec-x .ec-x__fcband p,
.ec-x .ec-x__fcband a {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.85;
}

.ec-x .ec-x__fcband a,
.ec-x .ec-x__fcband a:hover {
	color: #fff;
	text-decoration: underline;
}

/* 全幅の帯がはみ出して横スクロールにならないようにする */
#container:has(.ec-x--hub) {
	overflow-x: clip;
}

.ec-x .ec-x__hub {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}

.ec-x .ec-x__map svg {
	display: block;
	width: 100%;
	height: auto;
}

.ec-x .ec-x__map a {
	text-decoration: none;
}

/* 日本地図にない台北は、地図の下の点線の下にピルで置く */
.ec-x .ec-x__extra {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed var(--ec-line);
}

.ec-x .ec-x__pill {
	display: inline-block;
	padding: 5px 24px;
	background: var(--ec-soon);
	border-radius: 40px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--ec-soon-ink);
	text-decoration: none;
	white-space: nowrap;
}

.ec-x a.ec-x__pill:hover {
	opacity: 0.85;
	color: var(--ec-soon-ink);
	text-decoration: none;
}

/* 日本地図（inc/part-area-map.php。九州ページの対応エリアと同じ地図・色）。
   オープン＝ネイビー、本社エリア＝やや明るい青、Coming Soon＝薄い青 */
.ec-x .ec-x__map {
	max-width: 460px;
	margin: 0 auto;
}

.ec-x .ec-map {
	font-family: inherit;
}

.ec-x .ec-map__area {
	fill: var(--ec-map-soon);
	transition: filter 0.2s;
}

.ec-x .ec-map__area--on {
	fill: var(--ec-open);
}

.ec-x .ec-map__area--hq {
	fill: var(--ec-hq);
}

.ec-x .ec-map a:hover .ec-map__area {
	filter: brightness(1.12);
}

.ec-x .ec-map__line {
	fill: none;
	stroke: #b2b2b2;
	stroke-width: 2.83;
	stroke-dasharray: 4.25 9.91;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ec-x .ec-map__labels {
	pointer-events: none;
}

.ec-x .ec-map__jp {
	fill: #2c5770;
	font-weight: 700;
}

.ec-x .ec-map__en {
	fill: #2c5770;
	font-family: Jost, sans-serif;
}

.ec-x .ec-map__en--sub {
	fill: var(--ec-gray);
}

.ec-x .ec-map__text--on {
	fill: #fff;
}

.ec-x .ec-map__labels--sp {
	display: none;
}

.ec-x .ec-x__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
	font-size: 12px;
	color: #555;
}

.ec-x .ec-x__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: -1px;
}

.ec-x .ec-x__dot--open {
	background: var(--ec-open);
}

.ec-x .ec-x__dot--hq {
	background: var(--ec-hq);
}

.ec-x .ec-x__dot--soon {
	background: var(--ec-map-soon);
}

.ec-x .ec-x__list {
	display: grid;
	gap: 8px;
}

.ec-x .ec-x__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 20px;
	border: 1px solid var(--ec-line);
	border-radius: 40px;
	font-weight: 600;
	color: #000;
	text-decoration: none;
	transition: border-color 0.2s;
}

.ec-x a.ec-x__row:hover {
	border-color: var(--ec-blue);
	color: #000;
}

/* TCD のリンクのホバー時の下線を消す（一覧の行・地図・ボタン） */
.ec-x a.ec-x__row,
.ec-x a.ec-x__row:hover,
.ec-x a.ec-x__row:focus,
.ec-x .ec-x__map a:hover {
	text-decoration: none;
}

.ec-x .ec-x__row--open {
	border-color: var(--ec-open);
	color: var(--ec-open);
}

.ec-x a.ec-x__row--open:hover {
	color: var(--ec-open);
}

.ec-x .ec-x__tag {
	padding: 2px 10px;
	background: var(--ec-soon);
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--ec-soon-ink);
}

.ec-x .ec-x__tag--open {
	background: var(--ec-open);
	color: #fff;
}

.ec-x .ec-x__tag--hq {
	background: var(--ec-hq);
	color: #fff;
}

/* ---------- Coming Soon ---------- */
.ec-x .ec-x__soon {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
}

.ec-x .ec-x__soon-big {
	font-family: Jost, sans-serif;
	font-size: clamp(32px, 7vw, 72px);
	font-weight: 300;
	white-space: nowrap;
	letter-spacing: 0.12em;
	line-height: 1.1;
	color: #c7d0d7;
}

.ec-x .ec-x__soon-text {
	margin-top: 14px;
	color: #555;
}

.ec-x .ec-x__hq {
	margin-top: 40px;
	padding: 40px 40px 36px;
	border: 1px solid #dfe6ea;
	border-radius: 14px;
	text-align: center;
}

.ec-x .ec-x__hq-title {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #1f2a33;
}

.ec-x .ec-x__hq-text {
	margin-top: 8px;
	font-size: 14px;
	color: #3c4a54;
}

/* 電話番号（九州ページの送信完了画面「お急ぎの場合はお電話で」と同じ見た目）。PC はリンクにしない */
.ec-x .ec-x__tel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid #e6ecef;
	color: #1f2a33;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}

.ec-x .ec-x__tel-label {
	font-size: 14px;
	font-weight: 700;
}

.ec-x .ec-x__tel-num {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: Jost, sans-serif;
	font-size: 32px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.4;
	white-space: nowrap;
	color: #00739c;
}

.ec-x .ec-x__tel-num .ec-ico {
	width: 26px;
	height: 26px;
}

.ec-x .ec-x__tel-company {
	font-size: 13px;
	color: #4a5862;
}

.ec-x .ec-x__sp {
	display: none;
}

/* ---------- SP ---------- */
@media (max-width: 780px) {
	.ec-x.ec-x--soon {
		padding-top: 50px;
	}

	.ec-x .ec-x__hub {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* スマホは地図の日本語ラベルを大きめのもの（SP 用）に切り替える（九州ページと同じ） */
	.ec-x .ec-x__map {
		max-width: 340px;
	}

	.ec-x .ec-map__labels--pc {
		display: none;
	}

	.ec-x .ec-x__pill {
		padding: 4px 18px;
		font-size: 12px;
	}

	.ec-x .ec-map__labels--sp {
		display: inline;
	}

	.ec-x .ec-x__sp {
		display: inline;
	}

	.ec-x .ec-x__hq {
		padding: 28px 18px 24px;
		border-radius: 12px;
	}

	.ec-x .ec-x__hq-title {
		font-size: 16px;
	}

	.ec-x .ec-x__hq-text {
		font-size: 13px;
	}

	.ec-x .ec-x__tel {
		gap: 2px;
		margin-top: 20px;
		padding-top: 18px;
		pointer-events: auto;
		cursor: pointer;
	}

	.ec-x .ec-x__tel-label {
		font-size: 13px;
	}

	.ec-x .ec-x__tel-num {
		gap: 8px;
		font-size: 26px;
	}

	.ec-x .ec-x__tel-num .ec-ico {
		width: 20px;
		height: 20px;
	}

	.ec-x .ec-x__tel-company {
		font-size: 12px;
	}
}

/* ---------- サブキャッチ（LP ヘッダー画像の見出しの下の小さな文） ---------- */
.catch .ec-subcatch {
	display: block;
	margin-top: 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.04em;
}

@media (max-width: 780px) {
	.catch .ec-subcatch {
		margin-top: 10px;
		font-size: 13px;
	}
}
