@charset "utf-8";
/* =============================================================================
 * 会社案内の部品  /comp_guide/css/cg_parts.css  2026-11-17
 *   見た目は本番ページの CSS のまま。ここには社長が採用した「写真つきの会社案内メニュー」「お知らせ」と、
 *   指示された「拠点の地図（全拠点・1列）」「工事担当の一部である旨」だけを置く。
 * ========================================================================== */

/* 写真つきの会社案内メニュー */
.cgw-menu { margin: 30px 0 10px; clear: both; }
.cgw-menu__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.cgw-menu__l li { margin: 0; padding: 0; float: none; width: auto; }
.cgw-menu__l li::before { content: none !important; }
.cgw-menu__l a { display: block; color: #222; text-decoration: none; }
.cgw-menu__ph { display: block; border-radius: 6px; overflow: hidden; background: #eaf2fa; }
.cgw-menu__ph img { display: block; width: 100%; height: auto; transition: transform .25s; }
.cgw-menu__l a:hover .cgw-menu__ph img { transform: scale(1.04); }
.cgw-menu__l b { display: block; margin-top: 10px; font-size: 15px; font-weight: bold; color: #1d4f80; }
.cgw-menu__l small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.65; color: #5a6b78; }
.cgw-menu__sub { margin: 22px 0 0 !important; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; }
.cgw-menu__sub a { color: #1d4f80; }
html body .cgw-menu h2.heading_01.heading_01 { margin-bottom: 18px !important; }

/* お知らせ（会社案内TOP） */
.cgn { margin: 0 0 10px; }
.cgn .cgn-news { margin: 0 !important; padding: 4px 22px !important; list-style: none; border: 1px solid #d7e3ee; border-radius: 10px; background: #fff; }
.cgn .cgn-news li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 !important; padding: 15px 26px 15px 0 !important;
	border-bottom: 1px dashed #cdd9e4; font-size: 14.5px; line-height: 1.6; list-style: none; float: none !important; width: auto !important; }
.cgn .cgn-news li:last-child { border-bottom: 0 !important; }
.cgn .cgn-news li::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid #9fb7cc; border-right: 2px solid #9fb7cc; transform: rotate(45deg); }
.cgn .cgn-news .news_List_Ymd { flex: none; width: auto !important; float: none !important; margin: 0 !important; padding: 3px 12px !important; border-radius: 999px;
	background: #e8f4fd; font-size: 13px; font-weight: bold; color: #1f6fb2; }
.cgn .cgn-news .new_mark { flex: none; padding: 2px 8px; border-radius: 4px; background: #e8382f; color: #fff !important; font-size: 11px !important; font-weight: bold; line-height: 1.5; }
.cgn .cgn-news .news_List_Title { flex: 1 1 14em; min-width: 0; float: none !important; width: auto !important; }
.cgn .cgn-news .news_List_Title a { color: #222; }
.cgn .cgn-news .news_List_Title a::before { content: ""; position: absolute; inset: 0; }
.cgn .cgn-news li:hover .news_List_Title a { color: #1f6fb2; text-decoration: underline; }
.cgn-more { margin: 14px 0 0 !important; text-align: right; font-size: 14px; }
.cgn-more a { color: #1f6fb2; font-weight: bold; }
.cgn-more a::after { content: "›"; margin-left: .4em; }

/* 拠点の地図（会社概要）：全拠点・1列（2列にしない） */
#mapArea.cgm-maps { list-style: none; margin: 20px 0 0; padding: 0; display: block; }
#mapArea.cgm-maps li.map { float: none !important; width: 100% !important; margin: 0 0 24px !important; padding: 0 !important; }
#mapArea.cgm-maps li.map::before { content: none !important; }
#mapArea.cgm-maps .title { font-weight: bold; margin-bottom: 6px; }
#mapArea.cgm-maps iframe { display: block; width: 100% !important; height: 320px !important; border: 0; }
#mapArea.cgm-maps .access { margin-top: 6px; font-size: 14px; }

/* 工事担当：一部である旨 */
.cgs-note { margin: 0 0 16px; font-size: 14px; line-height: 1.8; }

@media screen and (max-width: 767px) {
	.cgw-menu__l { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	/* お知らせ（スマホ）：日付は小さな文字1行・題名はすぐ下・余白を詰める（2026-11-17 社長「余白多すぎ」） */
	#news .cgn { margin-top: -6px; }
	.cgn .cgn-news { padding: 0 12px !important; border-radius: 8px; }
	.cgn .cgn-news li { display: block !important; padding: 10px 20px 10px 0 !important; font-size: 14px; line-height: 1.5; }
	.cgn .cgn-news .news_List_Ymd { display: inline-block !important; padding: 0 !important; border-radius: 0; background: none; font-size: 12px; line-height: 1.4; color: #1f6fb2; }
	.cgn .cgn-news .new_mark { display: inline-block; margin-left: 6px; }
	.cgn .cgn-news .news_List_Title { display: block !important; margin: 2px 0 0 !important; padding: 0 !important; }
	.cgn .cgn-news li::after { right: 2px; width: 7px; height: 7px; }
	.cgn-more { margin-top: 10px !important; font-size: 13.5px; }
	#mapArea.cgm-maps iframe { height: 260px !important; }
}
