
/* ----------------------------------------------------------
	ページ基本スタイル
---------------------------------------------------------- */

/* -------------------------
	1. 会社概要 (テーブル)
---------------------------- */
.overview-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-white);
	border: 1px solid var(--border-color);
}

.overview-table tr {
	border-bottom: 1px solid var(--border-color);
}

.overview-table th {
	width: 30%;
	padding: 20px;
	text-align: left;
	font-weight: normal;
	color: var(--text-gray);
	vertical-align: top;
	font-size: var(--fs-sub);
}

.overview-table th::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	background-color: var(--border-muted);
	vertical-align: middle;
	mask-size: contain;
	-webkit-mask-size: contain;
	opacity: 0.5;
}

.overview-table td {
	width: 70%;
	padding: 20px;
	color: var(--text-main);
	font-size: var(--fs-sub);
}

/* ------------------------
	2. アクセス
--------------------------- */
.access-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 40px;
}
@media (max-width: 768px) {
	.access-grid {
		grid-template-columns: 1fr;
	}
}

.access-card {
	border: 1px solid var(--border-color);
	background: var(--bg-white);
}

.access-header {
	background-color: var(--bg-dark);
	color: var(--text-white);
	padding: 10px;
	text-align: center;
	font-weight: 700;
	font-size: var(--fs-sub);
}

.access-map-placeholder {
	width: 100%;
	height: 250px;
	background-color: var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--border-muted);
}
.access-map-placeholder iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.access-body {
	padding: 20px;
}

.access-label {
	color: var(--primary-orange);
	font-weight: bold;
	font-size: var(--fs-sm);
	margin-bottom: 5px;
	display: block;
}

.access-address {
	font-size: var(--fs-sm);
	color: var(--text-main);
}

.access-details {
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 40px;
	background-color: var(--bg-white);
	color: var(--text-main);
	line-height: 1.6;
}
@media (max-width: 768px) {
	.access-details-content {
		flex-direction: column;
	}
}

.access-details-title {
	font-size: var(--fs-lg);
	font-weight: bold;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.access-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--primary-orange);
}
.access-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.access-details-content {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.access-details-info {
	flex: 1;
}

.info-group {
	margin-bottom: 25px;
}

.info-group h3 {
	/* font-size: var(--fs-base); */
	font-weight: bold;
	margin: 0 0 10px 0;
	color: var(--text-main);
}

.info-group ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.info-group li {
	position: relative;
	padding-left: 1em;
	margin-bottom: 5px;
	font-size: var(--fs-sub);
}

.info-group li::before {
	content: "・";
	color: var(--primary-orange);
	position: absolute;
	left: 0;
	font-weight: bold;
	}

.note-text {
	font-size: var(--fs-sm);
	color: var(--text-gray);
	display: block;
	margin-top: 2px;
}

.access-images {
	width: 300px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.access-images img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
}

@media (max-width: 768px) {
	.access-images {
		width: 100%;
		flex-direction: column;
		gap: 20px;
	}
	.access-images img {
		width: 100%;
	}
}

.img-subtext{
	font-size: var(--fs-sm);
	color: var(--text-gray);
	text-align: center;
}

/* --------------------------
	3. 組織構造 (チャート風)
----------------------------- */
.org-chart-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	overflow-x: auto;
}

/* 親要素をflex-direction: columnにして縦並び（中央揃え）にする */
.org-box-top, 
.org-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2; /* 行間を少し詰める */
    text-align: center;
}

/* 英訳スパンのスタイル設定 */
.org-box-top span,
.org-card-head span {
    display: block;
    font-size: 0.75em; /* 日本語より一回り小さく */
    font-weight: normal; /* 英訳は細くして強弱をつける */
    margin-top: 2px;    /* 日本語との微調整 */
}

.org-box-top {
	background-color: var(--primary-orange);
	color: var(--text-white);
	padding: 8px 30px;
	border-radius: 4px;
	font-weight: bold;
	font-size: var(--fs-sub);
	position: relative;
}

.org-box-top::after {
	content: '';
	position: absolute;
	bottom: -20px;
	left: 50%;
	width: 1px;
	height: 20px;
	background-color: var(--text-light);
	transform: translateX(-50%);
}

.org-row {
	display: flex;
	gap: 15px;
	position: relative;
	padding-top: 20px;
}

.org-row::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background-color: var(--text-light);
}

.org-col {
	position: relative;
}
.org-col::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 50%;
	width: 1px;
	height: 20px;
	background-color: var(--text-light);
}

.org-card {
	width: 160px;
	border: 1px solid var(--text-main);
	background: var(--bg-white);
	text-align: center;
}
.org-card-head {
	background-color: var(--bg-dark);
	color: var(--text-white);
	font-size: var(--fs-sm);
	padding: 6px 5px;
	font-weight: bold;
}
.org-card-body {
	padding: 10px;
	font-size: var(--fs-sm);
	color: var(--text-main);
}
.org-card-body div {
	margin-bottom: 4px;
}

@media (max-width: 768px) {
	.org-chart-wrapper {
		align-items: center;
		overflow-x: visible;
		padding-bottom: 0;
	}
	.org-box-top::after {
		height: 20px;
		background-color: var(--text-light);
	}
	.org-row {
		flex-direction: column;
		width: 100%;
		gap: 20px;
		padding-top: 20px;
	}
	.org-row::before {
		display: none;
	}
	.org-col::before {
		display: none;
	}
	.org-card {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
}

/* -------------------------
	4. 沿革 (タイムライン)
---------------------------- */
.history-container {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

.history-container::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 130px;
	width: 2px;
	background-color: var(--primary-orange);
}

.history-item {
	display: flex;
	margin-bottom: 30px;
	position: relative;
	align-items: center;
}

.history-date {
	width: 130px;
	padding-right: 20px;
	text-align: right;
	color: var(--primary-orange);
	font-weight: bold;
	font-size: var(--fs-sub);
	box-sizing: border-box;
}

.history-point {
	position: absolute;
	left: 130px;
	transform: translateX(-50%);
	width: 12px;
	height: 12px;
	background-color: var(--primary-orange);
	border-radius: 50%;
	border: 2px solid var(--bg-white);
	z-index: 1;
}

.history-content {
	flex: 1;
	background: var(--bg-white);
	border: 1px solid var(--border-color);
	padding: 15px 20px;
	border-radius: 4px;
	font-size: var(--fs-sm);
	color: var(--text-main);
	margin-left: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
	.history .section{
		padding:20px 0;
	}
	.history-container::before {
		left: 20px;
	}
	.history-item {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 40px;
	}
	.history-date {
		text-align: left;
		padding-left: 40px;
		margin-bottom: 10px;
		width: 100%;
	}
	.history-point {
		left: 20px;
	}
	.history-content {
		margin-left: 40px;
		width: calc(100% - 60px);
	}
}
/* ------------------------
	5. 社名の由来 & ロゴ
--------------------------- */

.origin-term {
	font-weight: bold;
	color: var(--primary-orange);
}

.logo-img-wrapper {
	text-align: center;
	margin-bottom: 30px;
}
.logo-img-wrapper img {
	max-width: 200px;
	height: auto;
}

/* -------------------------
	ポリシーボタン
---------------------------- */
.policy-links {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.btn-policy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	background-color: var(--bg-white);
	color: var(--text-main);
	border: 1px solid var(--border-muted);
	border-radius: 4px;
	text-decoration: none;
	font-size: var(--fs-sub);
	font-weight: bold;
	transition: all 0.3s ease;
	min-width: 300px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-policy:hover {
	background-color: var(--bg-dark);
	color: var(--text-white);
	border-color: var(--bg-dark);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
	.policy-links {
		flex-direction: column;
		gap: 15px;
	}
	.btn-policy {
		width: 100%;
		min-width: auto;
	}
}
