/* ============================================================
   運営会社ページ専用スタイル
   ============================================================ */

.company-section {
	margin-bottom: 80px;
}



/* 1. アンカーナビゲーション */
.company-anchor-nav {
	margin: 30px 0 60px;
}

.company-anchor-nav ul {
	display: flex;
	flex-wrap: wrap;
	/* スマホ対応 */
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 12px;

}

.company-anchor-nav li {
	flex: 1;
	min-width: 150px;
	/* スマホで2列になりやすくする */
	border: 1px solid #333;
}

.company-anchor-nav a {
	display: block;
	padding: 15px 10px;
	text-align: center;
	background-color: #f2f2f2;
	color: #333;
	font-weight: 700;
	text-decoration: none;
	font-size: 15px;
	transition: background-color 0.2s;
}

.company-anchor-nav a:hover {
	background-color: #e6e6e6;
}

/* 2. セクション見出し */
.company-heading {
	font-size: 26px;
	font-weight: 700;
	color: #333;
	padding-left: 15px;
	border-left: 6px solid #f77e7e;
	/* ピンクのアクセント */
	margin: 60px 0 25px;
	line-height: 1.4;
}

/* 3. テーブル基本構造 */
.company-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #ccc;
	table-layout: fixed;
	/* セル幅を固定 */
}

.company-table th,
.company-table td {
	padding: 20px;
	border: 1px solid #ccc;
	vertical-align: middle;
}

.company-table th {
	width: 180px;
	background-color: #f4f4f4;
	font-weight: 700;
	text-align: center;
	color: #444;
}

.company-table td {
	background-color: #fff;
	line-height: 1.8;
}

/* 4. 事業内容（繰り返しフィールド部分）の再現 */
.business-container {
	padding: 5px 0;
}

.business-item {
	margin-bottom: 25px;
}

.business-item:last-child {
	margin-bottom: 0;
}

.business-title {
	font-weight: 700;
	color: #333;
	margin-bottom: 5px;
	position: relative;
	padding-left: 0;
	padding-left: 1.4em;
}

.business-title::before {
	content: "●";
	position: absolute;
	left: 0;
	color: #333;
	/* 任意でピンク（#f77e7e）にしても綺麗です */
}

.business-detail {
	margin-left: 1.4em;
	/* 画像の字下げを再現 */
	color: #555;
	font-size: 15px;
}

/* 5. 会社沿革（History）専用 */
.company-table.history th {
	width: 240px;
	/* 年月カラムを少し広く */
	text-align: left;
	padding-left: 30px;
}

/* 6. レスポンシブ調整 */
@media (max-width: 768px) {

	.company-table th,
	.company-table td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}

	.company-table th {
		border-bottom: none;
		text-align: left;
		padding: 10px 20px;
	}

	.company-heading {
		font-size: 20px;
	}

	.business-detail {
		margin-left: 1em;
	}
}

/* 段組みの設定 */
.client-list-container {
	padding: 20px 0;
	column-count: 4;
	column-gap: 40px;
}

/* 各行ごとの設定 */
.client-item {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	padding-left: 1.2em;
	text-indent: -1.2em;
}

/* スマホ対応はそのまま */
@media (max-width: 1024px) {
	.client-list-container {
		column-count: 2;
	}
}

@media (max-width: 640px) {
	.client-list-container {
		column-count: 1;
	}
}

/* 運営サイトセクション */
.site-list-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
}

.site-card {
	flex: 1;
	min-width: calc(25% - 15px);
	/* 4カラム */
	max-width: calc(25% - 15px);
}

.site-card a {
	text-decoration: none;
	color: inherit;
	display: block;
	text-align: center;
}

/* ロゴの枠線 */
.site-logo-wrap {
	border: 1px solid #ccc;
	background: #fff;
	padding: 20px;
	height: 100px;
	/* 高さを揃える */
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	transition: opacity 0.3s;
}

.site-card a:hover .site-logo-wrap {
	opacity: 0.7;
}

.site-logo-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* サイト名と説明文 */
.site-name {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
}

.site-desc {
	font-size: 12px;
	color: #666;
}

/* レスポンシブ */
@media (max-width: 1024px) {
	.site-card {
		min-width: calc(50% - 10px);
		/* タブレット2列 */
		max-width: calc(50% - 10px);
	}
}

@media (max-width: 480px) {
	.site-card {
		min-width: 100%;
		/* スマホ1列 */
		max-width: 100%;
	}
}

/* 地図の囲い */
.company-map {
	margin: 15px 0;
	border: 1px solid #ccc;
	line-height: 0;
	/* 下の隙間消し */
}

/* ボタンの親要素：右揃え */
.map-link-btn {
	text-align: right;
	margin-top: 15px;
}

/* 大きな地図で表示するボタン本体 */
.map-link-btn a {
	display: inline-block;
	padding: 8px 15px 8px 35px;
	/* 左側にアイコン用の余白 */
	background-color: #fff;
	/* 背景白 */
	color: #333;
	/* 文字色 */
	border: 1px solid #333;
	/* 黒い枠線 */
	text-decoration: none;
	font-size: 13px;
	font-weight: bold;
	border-radius: 2px;
	position: relative;
	transition: all 0.3s ease;
}

/* マップピンのアイコン（Font Awesomeを使用していない場合のCSS描画） */
.map-link-btn a::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	/* ピンの形 */
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center center;
	background-size: contain;
}

/* ホバー時の挙動（背景を薄いグレーにする） */
.map-link-btn a:hover {
	background-color: #f2f2f2;
	border-color: #000;
	opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 640px) {
	.map-link-btn {
		text-align: center;
	}

	.map-link-btn a {
		padding: 10px 20px 10px 40px;
	}
}