@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,500;1,500&text=0123456789&display=swap");

/*========================================================
AEG DX特設ページ（/dx/）専用CSS
- テーマ側 style.css / under.css は無改修。クラスは .dx_ プレフィックスで衝突回避
- 既存の .ad_col2 / #ad_area / .c_wrap はテーマのものをそのまま利用
========================================================*/

.dx_page {
	--dx-navy: #1a2a6c;
	--dx-blue: #1f46d6;
	--dx-line: #e4e8f2;
	--dx-text: #2b2f3a;
	--dx-sub: #7a8196;
	background-color: #fff;
	color: var(--dx-text);
	overflow: hidden;
}

/* カテゴリごとのテーマカラー */
.dx_c01 { --dx-c: #1f46d6; --dx-c-bg: #e9eefc; }
.dx_c02 { --dx-c: #17a2ad; --dx-c-bg: #e3f5f6; }
.dx_c03 { --dx-c: #8a4fd6; --dx-c-bg: #f1eafb; }
.dx_c04 { --dx-c: #8cb82a; --dx-c-bg: #f0f6df; }
.dx_c05 { --dx-c: #2f6fe8; --dx-c-bg: #e8f0fd; }

/*============================
パンくず帯
============================*/
.dx_crumb {
	background-color: #fff;
}

.dx_crumb_in {
	max-width: 1600px;
	margin: 0 auto;
	padding: 18px 20px;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--dx-navy);
}

/*============================
MV（背景画像 + テキスト画像）
============================*/
.dx_mv {
	position: relative;
	width: 100%;
	max-width: 2000px;
	margin: 0 auto;
	aspect-ratio: 3.7 / 1;
	min-height: 220px;
	overflow: hidden;
	background-color: #cfe3f7;
}

.dx_mv_img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	z-index: 0;
}

/* 左側を明るくして文字を読みやすく（左から丸く広がる白） */
.dx_mv::before {
	content: "";
	z-index: 1;
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 52% 92% at 8% 54%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .94) 36%, rgba(255, 255, 255, .5) 58%, rgba(255, 255, 255, 0) 76%),
		radial-gradient(ellipse 34% 72% at 18% 48%, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 22% 48% at 4% 62%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 74%);
}

.dx_mv_in {
	position: relative;
	z-index: 2;
	max-width: 1600px;
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* MV テキスト（画像）。画像の縦横比のまま幅だけ指定する */
.dx_mv_tit {
	margin: 0;
	line-height: 0;
}

.dx_mv_txt {
	display: block;
	/* MV の高さは画面幅の 1/4。画像(990×469)の高さが MV の約 70% に収まるよう、幅は 37vw を上限にする */
	width: min(600px, 37vw);
	max-width: 100%;
	height: auto;
}

.dx_mv_speed {
	z-index: 2;
	position: absolute;
	right: 20px;
	bottom: 16%;
	width: clamp(54px, 6.5vw, 86px);
	aspect-ratio: 1;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .85);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
	background-color: rgba(10, 30, 90, .35);
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}

.dx_mv_speed b {
	font-size: clamp(1.8rem, 2.4vw, 3rem);
	font-weight: 500;
}

.dx_mv_speed span {
	font-size: clamp(.9rem, 1vw, 1.2rem);
}

/*============================
メインエリア（2カラム）
============================*/
.dx_wrap {
	max-width: 1600px;
	padding-top: 20px;
	padding-bottom: 40px;
	background-color: #fff;
}

/* 幅を広げても左バナー列（X ボタン含む）は 1200px 時のサイズ(255px)で固定し、広がった分はメインに回す */
@media screen and (min-width: 1081px) {
	.ad_col2.dx_wrap #ad_area {
		width: 255px;
		min-width: 0;
	}

	.ad_col2.dx_wrap #ad_area + .dx_main {
		width: calc(100% - 295px);
		max-width: none;
	}
}

/* 1080px 以下: 左バナーをメインコンテンツの下へ移動（テーマの 480px 以下のスマホ表示と同じレイアウト） */
@media screen and (max-width: 1080px) {
	.ad_col2.dx_wrap #ad_area {
		width: 100%;
		min-width: unset;
		order: 2;
		margin-top: 20px;
	}

	.ad_col2.dx_wrap #ad_area + .dx_main {
		width: 100%;
		max-width: unset;
	}

	/* 小広告は 2 列、大広告と X ボタンは単独の行で中央（奇数枚でも X ボタンが小広告の横に入らない） */
	.ad_col2.dx_wrap #ad_area .ad_list {
		display: grid;
		grid-template-columns: repeat(2, 48%);
		justify-content: space-between;
		align-items: start;
		row-gap: 10px;
	}

	.ad_col2.dx_wrap #ad_area .ad_list .ad_list_item {
		width: auto;
		margin: 0;
	}

	.ad_col2.dx_wrap #ad_area .ad_list .ad_list_item.big {
		grid-column: 1 / -1;
		justify-self: center;
		width: 40%;
	}

	.ad_col2.dx_wrap #ad_area .sns_x_btn {
		grid-column: 1 / -1;
		justify-self: center;
		width: 60%;
		max-width: 300px;
		margin: 0;
	}
}

/*============================
カテゴリナビ（5枚）
============================*/
.dx_nav {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.dx_nav_item {
	min-width: 0;
}

.dx_nav_link {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 14px 16px 26px 20px;
	gap: 12px;
	background-color: #fff;
	border: 1px solid var(--dx-line);
	border-bottom: 3px solid var(--dx-c);
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(30, 50, 120, .06);
	color: var(--dx-text);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}

.dx_nav_link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(30, 50, 120, .12);
}

.dx_nav_icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
}

.dx_nav_txt {
	display: block;
	min-width: 0;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--dx-c);
}

.dx_nav_num {
	display: block;
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-size: 2rem;
	/* font-weight: 500; */
	font-style: normal;
}

.dx_nav_name {
	display: block;
	white-space: nowrap;   /* 「次世代モビリティ」などを途中で改行しない */
}

/* （2026-11-26 削除）旧 01 は英語の長い名称だったため .dx_c01 だけ折り返し可にしていた */

.dx_nav_chev {
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-right: 2px solid var(--dx-c);
	border-bottom: 2px solid var(--dx-c);
	transform: rotate(45deg);
}

/*============================
カテゴリ別ブロック
============================*/
.dx_cat {
	display: grid;
	grid-template-columns: 190px 1fr;
	gap: 0 14px;
	align-items: stretch;
	margin-top: 22px;
	padding: 14px 16px 14px 18px;
	background-color: #fff;
	border: 1px solid var(--dx-line);
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(30, 50, 120, .05);
}

.dx_cat_head,
.dx_list,
.dx_item_link > * {
	min-width: 0;
}

.dx_cat_head {
	padding: 0 14px 0 0;
	border-right: 1px solid var(--dx-line);
}

.dx_cat_num {
	font-family: "Roboto Condensed", sans-serif;
	font-optical-sizing: auto;
	font-size: 6rem;
	font-weight: 500;
	font-style: italic;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--dx-c);
}

.dx_cat_tit {
	margin-top: 10px;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--dx-c);
}

.dx_cat_tit small {
	display: block;
	font-size: 1.3rem;
	line-height: 1.3;
}

.dx_cat_desc {
	margin-top: 8px;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--dx-sub);
}

.dx_more {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin-top: 12px;
	padding: .35em 1em;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--dx-c);
	text-decoration: none;
	background-color: var(--dx-c-bg);
	border-radius: 999px;
	transition: opacity .2s;
}

.dx_more::after {
	content: "\2192";
}

.dx_more:hover {
	opacity: .7;
}

/*============================
記事リスト
============================*/
.dx_list {
	padding: 0;
}

.dx_item + .dx_item {
	border-top: 1px solid #eef0f6;
}

.dx_item_link {
	display: grid;
	grid-template-columns: 82px 100px 1fr 110px 20px; /* ラベル列 66px→100px（「トピックス/リリース」を1行に） */
	align-items: center;
	gap: 0 14px;
	padding: 8px 0;
	color: var(--dx-text);
	text-decoration: none;
	transition: background-color .2s;
}

.dx_item_link:hover {
	background-color: #f6f8fd;
}

.dx_date {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--dx-sub);
	letter-spacing: .02em;
}

.dx_label {
	display: block;
	padding: .3em 0;
	white-space: nowrap; /* ラベルを折り返さない */
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: #fff;
	background-color: var(--dx-c);
}

.dx_item_ttl {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.5;
}

.dx_item_link:hover .dx_item_ttl {
	text-decoration: underline;
}

.dx_thumb {
	display: block;
	aspect-ratio: 400 / 127;
	overflow: hidden;
	background-color: #efefef;
}

.dx_thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dx_arrow {
	width: 8px;
	height: 8px;
	margin-left: 4px;
	border-top: 2px solid var(--dx-c);
	border-right: 2px solid var(--dx-c);
	transform: rotate(45deg);
}

/*============================
注記
============================*/
.dx_note {
	margin-top: 26px;
	padding: 8px 12px;
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--dx-sub);
	background-color: #eef1fa;
	border-radius: 4px;
}

/*============================
1281〜1500px: 5 列のままだと「次世代モビリティ」が入りきらないため、余白・アイコン・文字を少し小さくする
============================*/
@media screen and (min-width: 1281px) and (max-width: 1500px) {
	.dx_nav_link {
		padding: 14px 10px 26px 12px;
		gap: 8px;
	}

	.dx_nav_icon {
		flex-basis: 36px;
		width: 36px;
		height: 36px;
	}

	.dx_nav_txt {
		font-size: 1.4rem;
	}

	.dx_nav_num {
		font-size: 1.8rem;
	}
}

/*============================
1280px 以下: カテゴリナビを横一列にせず 3 列で折り返す
（左バナー列 255px があるため、1280px 以下では 5 列だと「次世代モビリティ」が入りきらない）
============================*/
@media screen and (max-width: 1280px) {
	.dx_nav {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*============================
Tablet
============================*/
@media screen and (max-width: 900px) {
	.dx_nav {
		grid-template-columns: repeat(3, 1fr);
	}

	/* タブレット以下: カテゴリナビはPCと同じ横並び（アイコンの右にテキスト）。2026-11-26 縦並びから変更 */
	.dx_nav_link {
		padding: 14px 12px 26px;
		gap: 10px;
	}

	.dx_nav_icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.dx_cat {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.dx_cat_head {
		padding: 0 0 12px;
		border-right: 0;
		border-bottom: 1px solid var(--dx-line);
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 4px 14px;
	}

	.dx_cat_num {
		grid-row: 1 / 4;
		font-size: 5rem;
	}

	.dx_cat_tit {
		margin-top: 0;
	}

	/* 縦並び（タブレット以下）ではカテゴリ名の <br> を無効にして 1 行にする */
	.dx_cat_tit br {
		display: none;
	}

	.dx_cat_desc {
		margin-top: 0;
	}

	.dx_more {
		justify-self: start;
		margin-top: 4px;
	}
}

/*============================
SP / 狭幅（テーマ側は 480px 以下のみ対応のため 768px 以下も補完）
============================*/
@media screen and (max-width: 768px) {
	.dx_crumb_in {
		padding: 12px 16px;
		font-size: 1.3rem;
	}

	.dx_mv {
		aspect-ratio: auto;
		height: 240px;
	}

	.dx_mv::before {
		inset: -48px;
		filter: blur(28px);
		background:
			radial-gradient(ellipse 86% 120% at 14% 52%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 28%, rgba(255, 255, 255, .88) 48%, rgba(255, 255, 255, .4) 68%, rgba(255, 255, 255, 0) 84%),
			radial-gradient(ellipse 60% 90% at 8% 50%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 72%);
	}

	.dx_mv_in {
		padding: 0 16px;
	}

	.dx_mv_txt {
		width: min(60%, 420px);
	}

	.dx_mv_speed {
		right: 12px;
		bottom: 12px;
	}

	.dx_wrap {
		padding-top: 16px;
	}

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

	.dx_item_link {
		grid-template-columns: auto auto 1fr 90px 14px; /* SPはラベル幅を文字なり */
		grid-template-areas:
			"date label .     thumb arrow"
			"ttl  ttl   ttl   thumb arrow";
		align-items: center;
		gap: 6px 10px;
		padding: 10px 0;
	}

	.dx_item_link .dx_date { grid-area: date; }
	.dx_item_link .dx_label { grid-area: label; }
	.dx_item_link .dx_item_ttl { grid-area: ttl; }
	.dx_item_link .dx_thumb { grid-area: thumb; }
	.dx_item_link .dx_arrow { grid-area: arrow; }

}

@media screen and (max-width: 480px) {
	.dx_mv {
		height: 210px;
	}

	.dx_mv_txt {
		width: 70%;
	}

	.dx_nav_link {
		padding: 10px 8px 24px;
		gap: 6px;
	}

	.dx_nav_icon {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}

	/* SP: カテゴリナビの文字サイズ */
	.dx_nav_txt,
	.dx_nav_num {
		font-size: 1.2rem;
	}

	/* SP: 幅の狭い端末（320px等）では名称が入りきらない時だけ折り返す */
	.dx_nav_name {
		white-space: normal;
	}

	.dx_cat_num {
		font-size: 4rem;
	}

	.dx_cat {
		padding: 12px 12px;
	}
}

/*============================
アーカイブサイト（TOPの #archive を流用。上余白のみdxで0）
============================*/
#archive {
	margin-top: 0;
}


/* ===== 動的化・一覧ページ追加分 (2026-11-19) ===== */

/* ラベル（既存カテゴリ aeg_news。色は .dx_label の --dx-c を継承） */
.dx_label--aeg_news {
	color: #fff;
	background-color: var(--dx-c);
}

/* 記事なし表示 */
.dx_item--empty {
	padding: 2rem 1rem;
	font-size: 1.3rem;
	text-align: center;
	color: var(--dx-sub);
}

/* 一覧ページ：パンくず内リンク / 戻るリンク / ページネーション余白 / 404 */
.dx_crumb_in a {
	color: inherit;
	text-decoration: underline;
}
.dx_back::after {
	display: none;
}
.dx_cat .pagination {
	margin-top: 2.4rem;
}
.dx_notfound {
	padding: 4rem 0;
	font-size: 1.4rem;
}

/* ===== クライアント回答反映・一覧ページ調整 (2026-11-26) ===== */

/* 一覧ページ右カラム（件数・記事・ページ送りを .dx_cat グリッドの2列目にまとめる） */
.dx_body {
	min-width: 0;
}

/* 件数表示「全N件中1 - 20件を表示」（既存ニュース一覧と同じく右寄せ） */
.dx_status {
	margin-bottom: 6px;
	font-size: 1.2rem;
	text-align: right;
	color: var(--dx-sub);
}

/* ===== スマホ調整 (2026-11-26 夜) ===== */
@media screen and (max-width: 768px) {
	/* ラベル：左右に余白 */
	.dx_label {
		padding: .3em .8em;
	}

	/* サムネ：4:3、画像は切らずに全体を表示 */
	.dx_thumb {
		aspect-ratio: 4 / 3;
	}

	.dx_thumb img {
		object-fit: contain;
	}
}

@media screen and (max-width: 480px) {
	/* パンくず：1行に収める */
	.dx_crumb_in {
		font-size: min(1.3rem, 2.9vw);
		letter-spacing: 0;
		white-space: nowrap;
	}

	/* MV：高さ150px、白いぼかしを弱めて写真を見せる */
	.dx_mv {
		height: 150px;
		min-height: 0;
	}

	.dx_mv::before {
		inset: -24px;
		filter: blur(20px);
		background:
			radial-gradient(ellipse 60% 110% at 10% 52%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, .35) 60%, rgba(255, 255, 255, 0) 80%);
	}

	/* 文字画像（透過）に白の光彩：drop-shadow は文字の形に沿って付く */
	.dx_mv_txt {
		width: 58%;
		filter:
			drop-shadow(0 0 2px #fff)
			drop-shadow(0 0 4px #fff)
			drop-shadow(0 0 8px rgba(255, 255, 255, .95))
			drop-shadow(0 0 16px rgba(255, 255, 255, .85));
	}
}
