@charset "UTF-8";
/* ==========================================================
   西和グループ各社ロゴ（sec_group-logos.png の置き換え）
   - 既存の #sec_group img { padding-bottom:40px } 等の影響を受けないよう
     #sg_group_list 配下に閉じて指定しています
   - ブレイクポイント：既存サイトに合わせて 767px / 1023px
   ========================================================== */

#sg_group_list {
	--sg-navy: #1D2086;
	--sg-navy-2: #2656C4;
	--sg-gold: #FFD34D;
	--sg-line: #E1E4EC;
	--sg-c-logi: #1D2086;   /* 物流事業 */
	--sg-c-3pl: #008B96;    /* 3PL倉庫事業 */
	--sg-c-infra: #DE7800;  /* 整備インフラ事業 */
	--sg-c-beauty: #BE5078; /* 美容医療事業 */

	display: grid;
	grid-template-columns: minmax(280px, 31%) 1fr;
	gap: 32px;
	align-items: stretch;
	margin: 0 auto 48px;
	text-align: left;
	letter-spacing: 1px;
}
#sg_group_list *,
#sg_group_list *::before,
#sg_group_list *::after { box-sizing: border-box; }
#sg_group_list img {
	padding: 0;
	max-width: 100%;
	height: auto;
}

/* ---------- 左：メッセージパネル ---------- */
#sg_group_list .sg-message {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 32px 24px;
	border: 1px solid var(--sg-line);
	border-radius: 12px;
	background: #F5F7FB;
	color: var(--sg-navy);
	text-align: center;
}

#sg_group_list .sg-eyebrow {
	margin: 0 0 14px;
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	letter-spacing: .3em;
	color: #96BEFF;
}
#sg_group_list .sg-lead {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}
#sg_group_list .sg-lead span { display: inline-block; }
#sg_group_list .sg-rule {
	width: 32px;
	height: 2px;
	margin: 18px auto 16px;
	border: 0;
	background: #EA5D3C;
}
#sg_group_list .sg-goal {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}
#sg_group_list .sg-goal strong {
	display: block;
	margin: 4px 0 6px;
	color: var(--sg-navy);
	font-family: 'Oswald', sans-serif;
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
}
#sg_group_list .sg-goal strong small {
	margin-left: 4px;
	font-family: "游ゴシック体", YuGothic, "Yu Gothic", sans-serif;
	font-size: 22px;
}
#sg_group_list .sg-note {
	margin: 22px 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.7;
	color: #6E7090;
}

/* ---------- 右：事業区分ごとのロゴ ---------- */
#sg_group_list .sg-cats {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 22px;
	align-content: start;
	margin: 0;
	padding: 0;
}
#sg_group_list .sg-cat { --sg-c: var(--sg-c-logi); min-width: 0; margin: 0; padding: 0; }
#sg_group_list .sg-cat--3pl    { --sg-c: var(--sg-c-3pl); }
#sg_group_list .sg-cat--infra  { --sg-c: var(--sg-c-infra); }
#sg_group_list .sg-cat--beauty { --sg-c: var(--sg-c-beauty); }

#sg_group_list .sg-cat h3 {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--sg-line);
	color: var(--sg-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}
#sg_group_list .sg-cat h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 24px;
	height: 2px;
	background: var(--sg-c);
}
#sg_group_list .sg-cat h3 span {
	margin-left: 6px;
	font-size: 12px;
	color: #82828C;
}

#sg_group_list .sg-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#sg_group_list .sg-cat--logi .sg-cards { grid-template-columns: 1fr 1fr; }
#sg_group_list .sg-cards li { list-style: none; }

#sg_group_list .sg-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 6px 6px 8px;
	overflow: hidden;
	border: 1px solid var(--sg-line);
	border-radius: 8px;
	background: #fff;
}
#sg_group_list .sg-card__logo {
	position: relative;
	display: block;
	aspect-ratio: 2.2 / 1;
}
#sg_group_list .sg-card img {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	max-width: 80%;
	max-height: 74%;
	margin: auto;
	object-fit: contain;
}
#sg_group_list .sg-card img.is-square { max-height: 92%; }
#sg_group_list .sg-card__name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9em;
	padding-top: 6px;
	color: #5A5C78;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: center;
}

/* ---------- 小さめPC・タブレット（パネルを上、区分ごとに4列で並べる） ---------- */
@media screen and (max-width: 1199px) {
	#sg_group_list {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	#sg_group_list .sg-message { padding: 28px 24px; }
	#sg_group_list .sg-cats { grid-template-columns: 1fr; gap: 26px; }
	#sg_group_list .sg-cards,
	#sg_group_list .sg-cat--logi .sg-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- スマホ ---------- */
@media screen and (max-width: 767px) {
	#sg_group_list { gap: 24px; margin-bottom: 36px; }
	#sg_group_list .sg-message { padding: 24px 16px; border-radius: 10px; }
	#sg_group_list .sg-lead { font-size: 16px; }
	#sg_group_list .sg-goal { font-size: 14px; }
	#sg_group_list .sg-goal strong { font-size: 48px; }
	#sg_group_list .sg-goal strong small { font-size: 20px; }
	#sg_group_list .sg-note { margin-top: 18px; font-size: 11px; }

	#sg_group_list .sg-cats {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	#sg_group_list .sg-cards,
	#sg_group_list .sg-cat--logi .sg-cards { grid-template-columns: 1fr 1fr; }
	#sg_group_list .sg-cat h3 { margin-bottom: 12px; font-size: 15px; }
}

/* ==========================================================
   トップページ用：ロゴを並べるだけ（#sg_group_top）
   ラベル・社数・枠なし。PCは2段、スマホは4列
   ========================================================== */
/* グループロゴ上の余白を詰める（トップページ #top のみ） */
/* article は overflow:hidden なので、section ではなく article ごと上げる */
#top header { padding-bottom: 0; }
#top main > article { position: relative; z-index: 11; margin-top: -50px; } /* #header_img(z:10)より上、メニュー(z:50)より下 */

#sg_group_top {
	max-width: 1000px;
	margin: 16px auto 44px;
}
#sg_group_top *,
#sg_group_top *::before,
#sg_group_top *::after { box-sizing: border-box; }
#sg_group_top .sg-top-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#sg_group_top .sg-top-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 58px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#sg_group_top .sg-top-logos img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 44px;
	padding: 0;
	object-fit: contain;
}
#sg_group_top .sg-top-logos img.is-square { max-height: 56px; }

@media screen and (max-width: 767px) {
	#top main > article { margin-top: -20px; }
	#sg_group_top { margin: 12px auto 32px; }
	#sg_group_top .sg-top-logos {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 8px 8px;
	}
	#sg_group_top .sg-top-logos li { width: auto; height: 46px; }
	#sg_group_top .sg-top-logos img { max-height: 34px; }
	#sg_group_top .sg-top-logos img.is-square { max-height: 44px; }
}
