@charset "utf-8";

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

Name: corporate.css

Description: 会社を知る（企業情報トップ）CSS
             XD「企業情報トップ_PC」準拠 / top.css と併用

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

/* ======================================================================
  Hero
====================================================================== */
.cp-hero {
	position: relative;
	display: flex;
	align-items: center;
	height: 320px;
	background: #555 url("/common/image/top2/corporate_hero.jpg") center / cover no-repeat;  /* XD「企業情報トップ_PC」の見える範囲どおりに切り抜いた写真 */
}

.cp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0,0,0,.45), rgba(0,0,0,.1) 60%, rgba(0,0,0,0));
}

.cp-hero .tp-inner {
	position: relative;
	width: 100%;
}

#Contents .cp-hero-title {
	margin: 0;
	padding: 0 0 0 24px;
	background: none;
}

#Contents .cp-hero-title span {
	display: block;
	padding: 0;
	background: none;
}

#Contents .cp-hero-title .tp-heading-ja {
	color: #fff;
}

#Contents .cp-hero-title .tp-heading-en {
	color: #d9d9d9;
	margin-top: 4px;
}


/* ======================================================================
  ごあいさつ・企業理念
====================================================================== */
.cp-intro {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));   /* 文章の長さに関係なく2つを同じ幅に */
	gap: 20px;
	margin-top: 80px;
}

.cp-intro-item {
	display: flex;
	gap: 14px;
	color: #222;
}

.cp-intro-img + div {
	min-width: 0;
}

.cp-intro-img {
	flex: 0 0 55%;   /* 見出し「企業理念（パーパス）」が文章欄に収まる幅 */
	align-self: flex-start;   /* 高さを文章に引き伸ばされず、縦横比を保つ */
	position: relative;
	aspect-ratio: 376 / 240;
	overflow: hidden;
	background: #f4f4f4;
}

#Contents .cp-intro-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

/* 企業理念：画像が枠より横長で、左右の文字が切れて端ぎりぎりになるため、全体が収まるよう縮小して表示
   （上下にできる隙間は画像の背景と同じ紺色で埋める） */
.cp-intro-item[href="/corporate/purpose/"] .cp-intro-img {
	background: #03145c;
}

#Contents .cp-intro-item[href="/corporate/purpose/"] .cp-intro-img img {
	object-fit: contain;
}

.cp-intro-item:hover .cp-intro-img img {
	transform: scale(1.05);
}

.cp-intro-title {
	margin: 4px 0 10px;
	white-space: nowrap;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
}

.cp-intro-title .tp-arrow {
	width: 10px;
	height: 10px;
	margin-left: 10px;
	border-width: 2px;
}

.cp-intro-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: #222;
}

.cp-intro-item:hover .cp-intro-title {
	color: #cc0000;
}

#Contents .cp-intro-item {
	color: #222;
}


/* ======================================================================
  採用情報バナー
====================================================================== */
.cp-recruit {
	margin-top: 40px;
}


/* ======================================================================
  カード一覧（4列）
====================================================================== */
.cp-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 37px 24px;
	margin: 66px 0 120px;
}

.cp-cards .tp-card {
	margin: 0;
}


/* ======================================================================
  タブレット
====================================================================== */
@media screen and (max-width: 1100px) {
	.cp-intro {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.cp-intro-img {
		flex-basis: 45%;
	}

	.cp-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ======================================================================
  スマートフォン（XD「企業情報トップ_SP」準拠 / 基準幅 375px）
====================================================================== */
@media screen and (max-width: 767px) {
	.cp-hero {
		height: 180px;
		background-image: url("/common/image/top2/corporate_hero_sp.jpg");  /* XD「企業情報トップ_SP」（375×180） */
	}

	#Contents .cp-hero-title {
		padding-left: 25px;
	}

	#Contents .cp-hero-title .tp-heading-ja {
		font-size: 30px;
	}

	#Contents .cp-hero-title .tp-heading-en {
		margin-top: 2px;
		font-size: 16px;
		color: #f4f4f4;
	}

	/* ごあいさつ・企業理念：画像の下に文章 */
	.cp-intro {
		gap: 40px;
		margin-top: 32px;
	}

	.cp-intro-item {
		flex-direction: column;
		gap: 0;
	}

	.cp-intro-img {
		flex-basis: auto;
		align-self: stretch;   /* SP は縦並びのため横幅いっぱいに */
		aspect-ratio: 345 / 195;
	}

	.cp-intro-title {
		margin: 18px 0 6px;
		font-size: 20px;
	}

	.cp-intro-text {
		font-size: 16px;
	}

	.cp-recruit {
		margin-top: 40px;
	}

	/* カード一覧：2列の小サイズ */
	.cp-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 15px;
		margin: 40px 0 64px;
	}

	.cp-cards .tp-card {
		width: auto;
		margin: 0;
	}

	.cp-cards .tp-card-label {
		min-height: 40px;
		padding: 5px 20px 5px 7px;
	}

	.cp-cards .tp-card-label::after {
		right: 8px;
		width: 6px;
		height: 6px;
	}

	#Contents .cp-cards .tp-card-label span:first-child { font-size: 12px; font-weight: 700; }
	#Contents .cp-cards .tp-card-label span:last-child  { font-size: 10px; }
}


/* ======================================================================
  パンくず（会社を知る・製品を知るのトップ）を大きく：XD の指定（PC 14px、SP 12px）
  - common.css の「#TopicPath ul li { font-size: 67%; }」と responsive.css の SP 用の指定より優先させる
====================================================================== */
#TopicPath#TopicPath ul li {
	font-size: 14px;
}

/* パンくずの上の余白を詰め、ヘッダー画像などを上に寄せる（XD：ヘッダー下端から約 8px、SP 約 4px） */
#TopicPath#TopicPath ul {
	padding-top: 8px;
}

@media screen and (max-width: 767px) {
	#TopicPath#TopicPath ul li {
		font-size: 12px;
	}

	#TopicPath#TopicPath ul {
		padding-top: 4px;
	}
}
