@charset "utf-8";

/* **************************************************

Name: products.css

Description: 製品を知る（製品情報トップ）CSS
             XD「製品情報トップ_PC」準拠 / top.css・corporate.css と併用

***************************************************** */

/* Hero 背景（.cp-hero を流用） */
.pd-hero {
	background-image: url("/common/image/top2/products_hero.jpg");  /* XD「製品情報トップ_PC」の見える範囲どおりに切り抜いた写真 */
}


/* ======================================================================
  リード文・見出し
====================================================================== */
.pd-lead {
	margin: 64px 0 40px;
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.5;
	color: #222;
}

#Contents .pd-title {
	margin: 0 0 30px;
	padding: 0;
	background: none;
	text-align: center;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.3;
	color: #222;
}


/* ======================================================================
  ピックアップ製品
====================================================================== */
.pd-pickup {
	padding: 80px 0;
	background: linear-gradient(to bottom, #d9d9d9, #b3b3b3);
}

.pd-pickup-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.pd-pickup-card {
	display: block;
	background: #fff;
	border-bottom: 4px solid #cc0000;   /* BOX 下部の赤い線 */
}

.pd-pickup-label {
	position: relative;
	display: block;
	min-height: 70px;
	padding: 12px 34px 12px 14px;
	line-height: 1.3;
}

.pd-pickup-label::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #cc0000;
	border-right: 2px solid #cc0000;
	transform: translateY(-50%) rotate(45deg);
}

.pd-pickup-label span {
	display: block;
}

#Contents .pd-pickup-label span:first-child {
	font-size: 22px;
	font-weight: 700;
	color: #cc0000;
}

#Contents .pd-pickup-label span:last-child {
	margin-top: 2px;
	font-size: 15px;
	color: #737373;
	font-family: Arial, Helvetica, sans-serif !important;
}

.pd-pickup-card:hover .tp-card-img img {
	transform: scale(1.05);
}


/* ======================================================================
  製品一覧
====================================================================== */
.pd-list {
	padding: 80px 0 120px;
}

.pd-list .cp-cards {
	margin: 0;
}


/* ======================================================================
  タブレット
====================================================================== */
@media screen and (max-width: 1100px) {
	.pd-pickup-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ======================================================================
  スマートフォン（XD「製品情報トップ_SP」準拠 / 基準幅 375px）
====================================================================== */
@media screen and (max-width: 767px) {
	/* 上部の写真：XD「製品情報トップ_SP」（375×180） */
	.pd-hero {
		background-image: url("/common/image/top2/products_hero_sp.jpg");
	}

	.pd-lead {
		margin: 28px 0;
		font-size: 18px;
		text-align: center;
	}

	#Contents .pd-title {
		margin-bottom: 16px;
		font-size: 18px;
	}

	/* ピックアップ製品：1列 */
	.pd-pickup {
		padding: 40px 0 48px;
	}

	.pd-pickup-list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.pd-pickup-card .tp-card-img {
		aspect-ratio: 345 / 160;
	}

	/* 画像を BOX いっぱいに表示（縦横比は保ち、はみ出した上下を切り抜く） */
	#Contents .pd-pickup-card .tp-card-img img {
		object-fit: cover;
	}

	/* EVチャージャは製品が画像の上下いっぱいに写っていて切れるため、少し縮小して全体を見せる
	   （左右にできる余白は画像の背景と同じ色で埋める） */
	.pd-pickup-card[href="/products/evcharger/"] .tp-card-img {
		background: #f5f5f5;
	}

	#Contents .pd-pickup-card[href="/products/evcharger/"] .tp-card-img img {
		object-fit: contain;
		transform: scale(1.05);
	}

	.pd-pickup-label {
		min-height: 64px;
		padding: 12px 32px 12px 10px;
	}

	.pd-pickup-label::after {
		right: 14px;
	}

	#Contents .pd-pickup-label span:first-child {
		font-size: 16px;
	}

	#Contents .pd-pickup-label span:last-child {
		font-size: 13px;
	}

	/* 製品一覧：2列の小サイズ（.cp-cards を流用） */
	.pd-list {
		padding: 40px 0 0;
	}

	.pd-list .cp-cards {
		margin-bottom: 64px;
	}

	/* 長い英語名は1行に収めて省略 */
	#Contents .pd-list .tp-card-label span:first-child {
		font-size: 12px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
