@charset "utf-8";

/* =====================================================
   service-common.css
   輸送・保管・リサイクル 各サービスページ共通スタイル
   個別ページCSS（transfer.css 等）より前に読み込む
===================================================== */

/* =====================
   CSS 変数
===================== */
:root {
	--base: #1250C2;
	--slate: #738A9B;
	--white: #FFFFFF;
	--blue-050: #F6F9FF;
	--blue-100: #EEF4FF;
	--blue-150: #E6EEFF;
	--text-strong: #1250C2;
	--text-body: rgba(18, 80, 194, 0.82);
	--text-muted: rgba(18, 80, 194, 0.55);
	--line: rgba(18, 80, 194, 0.12);
	--content-max: 960px;
}

/* =====================
   ページ基盤
   ※ ページ固有CSSで #[page-id] { background; color } を定義
===================== */
.section-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate);
	margin-bottom: 10px;
}

.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.section-header .label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate);
	margin-bottom: 8px;
}

.section-header h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-strong);
	margin: 0;
	padding: 0;
	line-height: 1.35;
}

.section-header h2:after {
	display: none;
}

/* 表の注記（右寄せ） */
.table-note {
	text-align: right;
	font-size: 11px;
	color: var(--text-muted);
	margin: 6px 0 0;
}

.section-note {
	max-width: 820px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.85;
	text-align: center;
	color: var(--text-muted);
}

/* =====================
   ヒーロー共通レイアウト
   ページ固有CSS で #[page] #page-title { background-image; padding; color } を追加
===================== */
#page-title {
	min-height: 380px;
	height: auto;
	box-sizing: border-box;
	padding-top: var(--header-offset, calc(20px + 70px + 28px));
	padding-bottom: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-attachment: fixed;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
}

#page-title:before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

#page-title .main-wrapper {
	position: relative;
	z-index: 1;
}

#page-title h1 {
	position: relative;
	top: 0;
	max-width: 100%;
	font-size: 42px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0.04em;
	z-index: 1;
}

#page-title h1 span {
	display: block;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	margin-top: 16px;
	letter-spacing: 0.02em;
	text-transform: none;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

#page-title h1 span:before {
	display: none;
}

/* =====================
   サービスブロック共通
   ページ固有CSSで padding-block !important をオーバーライド
===================== */
.service-block {
	border: none;
	overflow: visible;
}

/* =====================
   コンテンツラッパー
   max-width で中央寄せ・逆色ブロック
   背景色はページ固有CSS で #[section-id] .service-wrapper { background } を定義
===================== */
.service-wrapper {
	max-width: var(--content-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	overflow: hidden;
}

/* =====================
   中央コンテナ（main-wrapper）
   padding-inline はページ固有CSS でオーバーライド可
===================== */
.main-wrapper {
	width: 100%;
	max-width: var(--content-max);
	margin-left: auto;
	margin-right: auto;
	padding-inline: clamp(20px, 4vw, 48px);
	box-sizing: border-box;
}
.main-wrapper::after {
	content: "";
	display: table;
	clear: both;
}

/* =====================
   左右スプリットレイアウト
===================== */
.service-row {
	display: flex;
	min-height: 380px;
	gap: 0;
}

.service-row.reverse {
	flex-direction: row-reverse;
}

.service-media {
	flex: 0 0 50%;
	overflow: hidden;
	padding: 24px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
	border: none;
}

.service-media--pending {
	min-height: 320px;
	background-color: #e8eef4;
	flex-direction: column;
}

.service-pending-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: #7a8fa6;
	border: 1px solid #b0c4d8;
	border-radius: 4px;
	padding: 5px 14px;
}

.service-content {
	flex: 1;
	padding: 48px 40px;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.service-content h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--text-strong);
	margin: 0 0 16px;
	line-height: 1.35;
}

.service-content p {
	font-size: 15px;
	line-height: 1.85;
	color: var(--text-body);
	margin: 0 0 12px;
}

/* =====================
   保有車両・統計
===================== */
.section-soft {
	background: var(--blue-050);
}

.stats-row {
	display: flex;
	background: var(--white);
	margin: 36px 0 32px;
	gap: 0;
	border: 1px solid var(--line);
}

.stat-box {
	flex: 1;
	padding: 28px 16px;
	text-align: center;
	border-right: 1px solid var(--line);
}

.stat-box:last-child {
	border-right: none;
}

.stat-box .num {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	color: var(--base);
}

.stat-box .num small {
	font-size: 13px;
	font-weight: 600;
	margin-left: 2px;
	color: var(--base);
}

.stat-box .label-text {
	margin-top: 8px;
	font-size: 12px;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}

.tables-container {
	display: flex;
	gap: 20px;
}

.tables-container .standard-table {
	flex: 1;
	box-shadow: none;
	border: 1px solid var(--line);
}

/* =====================
   協力会社ネットワーク
===================== */
.network-split {
	display: flex;
	border: none;
	gap: 0;
}

.network-info {
	flex: 0 0 45%;
	padding: 48px 40px;
	background: transparent;
}

.network-info h2 {
	font-size: 26px;
	margin: 0 0 14px;
	color: var(--text-strong);
	line-height: 1.35;
}

.network-count {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 18px;
}

.network-count strong {
	font-size: 48px;
	line-height: 1;
	color: var(--base);
	font-weight: 700;
	margin: 0 4px 0 0;
}

.network-count span {
	font-size: 20px;
	font-weight: 700;
	color: var(--base);
}

.network-info p {
	font-size: 15px;
	line-height: 1.85;
	color: var(--text-body);
	margin: 0 0 10px;
}

.network-visual {
	flex: 1;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 28px;
	border: none;
}

.network-visual img {
	width: 100%;
	max-width: 520px;
	height: auto;
	object-fit: contain;
	border: none;
}

/* =====================
   詳細ブロック（住宅建材等）
===================== */
.housing-details {
	display: flex;
	background: var(--blue-050);
}

.detail-item {
	flex: 1;
	padding: 28px 32px;
}

.detail-item h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--base);
}

.detail-item p {
	margin: 0;
	font-size: 14px;
	line-height: 1.85;
	color: var(--text-body);
}

.housing-detail-photos {
	margin-top: 20px;
}

.housing-detail-photos figure {
	margin: 0;
}

.housing-detail-photos img {
	width: 100%;
	height: auto;
	display: block;
	border: none;
}

/* =====================
   フォトギャラリー（3列）
   左右padding は service-media の 24px に合わせる
===================== */
.image-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 20px 24px 24px;
	box-sizing: border-box;
	background: transparent;
}

.image-row figure {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.image-row img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border: none;
}

/* =====================
   アイコングリッド（貨客混載等）
===================== */
.cargo-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.icon-item {
	flex: 0 0 calc(20% - 7px);
	background: var(--white);
	border: 1px solid var(--line);
	padding: 14px 8px;
	text-align: center;
}

.icon-item i {
	font-size: 24px;
	color: var(--base);
	display: block;
	margin-bottom: 6px;
}

.icon-item span {
	font-size: 12px;
	color: var(--text-strong);
	font-weight: 600;
}

/* =====================
   サービスリンクボタン
===================== */
.service-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.service-links a {
	display: inline-block;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--base) !important;
	background: var(--white);
	border: 1px solid var(--base);
}

.service-links a:hover {
	background: var(--blue-050);
}

/* =====================
   書類リンク
===================== */
.doc-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--base) !important;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
}

/* =====================
   補足ノート帯
===================== */
.cash-note {
	padding: 24px clamp(20px, 4vw, 48px);
	background: transparent;
}

.cash-note p {
	margin: 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.85;
	color: var(--text-body);
}

/* =====================
   エリアマップ付きブロック
===================== */
.cash-area {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 20px;
}

.cash-area-map {
	flex: 0 0 120px;
}

.cash-area-map img {
	width: 100%;
	height: auto;
	display: block;
	border: none;
}

.cash-area-info {
	flex: 1;
}

.cash-area-info h3 {
	font-size: 14px;
	font-weight: 700;
	color: var(--base);
	margin: 0 0 6px;
}

.cash-area-info p {
	font-size: 13px;
	line-height: 1.75;
	color: var(--text-body);
	margin: 0;
}

/* =====================
   レスポンシブ
===================== */
@media only screen and (max-width: 1024px) {
	.service-content,
	.network-info {
		padding: 40px 32px;
	}

	.tables-container {
		flex-direction: column;
	}
}

@media only screen and (max-width: 767px) {
	#page-title {
		min-height: 0;
		padding-top: var(--header-offset, calc(16px + 70px + 24px));
		padding-bottom: 28px;
		background-attachment: scroll;
	}

	#page-title h1 {
		font-size: clamp(24px, 6.5vw, 32px);
		line-height: 1.28;
	}

	#page-title h1 span {
		font-size: 14px;
		line-height: 1.75;
		margin-top: 12px;
	}

	.section-header h2 {
		font-size: clamp(22px, 5.5vw, 26px);
		line-height: 1.35;
	}

	.section-header .label,
	.section-label {
		font-size: 12px;
		letter-spacing: 0.12em;
	}

	.section-note {
		font-size: 14px;
		line-height: 1.8;
	}

	.table-note {
		font-size: 12px;
	}

	/* SP：セクション見出し（英字ラベル・H2）を左右中央 */
	.section-header .label,
	.service-content .section-label,
	.service-content h2,
	.network-info .section-label,
	.network-info h2 {
		text-align: center;
	}

	.service-content h2,
	.network-info h2 {
		font-size: clamp(20px, 5vw, 22px);
		line-height: 1.35;
	}

	.service-content p,
	.network-info p {
		font-size: 14px;
		line-height: 1.8;
	}

	.detail-item h3 {
		font-size: 17px;
	}

	.detail-item p {
		font-size: 14px;
		line-height: 1.8;
	}

	.icon-item span {
		font-size: 13px;
		line-height: 1.35;
	}

	.icon-item i {
		font-size: 26px;
	}

	.service-links a {
		font-size: 14px;
		padding: 10px 18px;
	}

	.doc-link {
		font-size: 13px;
		line-height: 1.6;
	}

	.cash-note p {
		font-size: 14px;
		line-height: 1.8;
	}

	.cash-area-info h3 {
		font-size: 15px;
	}

	.cash-area-info p {
		font-size: 14px;
		line-height: 1.75;
	}

	.network-count {
		font-size: 14px;
	}

	.network-count strong {
		font-size: clamp(36px, 10vw, 44px);
	}

	.network-count span {
		font-size: clamp(17px, 4.2vw, 20px);
	}

	.stat-box .num {
		font-size: clamp(30px, 8vw, 34px);
	}

	.stat-box .label-text {
		font-size: 13px;
		line-height: 1.4;
	}

	.tables-container .standard-table th,
	.service-wrapper .standard-table th {
		font-size: 13px;
		padding: 12px 8px;
	}

	.tables-container .standard-table td,
	.service-wrapper .standard-table td {
		font-size: 14px;
		line-height: 1.55;
		padding: 12px 10px;
	}

	.service-row,
	.service-row.reverse,
	.network-split,
	.housing-details {
		flex-direction: column;
	}

	.service-media {
		flex: none;
		min-height: 0;
		padding: 16px;
	}

	.service-media img {
		min-height: 220px;
		height: 220px;
	}

	.service-content,
	.network-info {
		padding: 32px 20px;
	}

	.network-visual {
		padding: 28px 20px;
	}

	.detail-item {
		border-right: none;
	}

	.housing-detail-photos {
		margin-top: 16px;
	}

	.stats-row {
		flex-wrap: wrap;
		border: none;
		gap: 10px;
		background: transparent;
	}

	.stat-box {
		flex: 1 1 calc(50% - 5px);
		min-width: 140px;
		border: 1px solid var(--line);
		background: var(--white);
	}

	.stat-box:nth-child(odd) {
		border-right: 1px solid var(--line);
	}

	/* 貨客混載アイコン：SP は常に 3 列 */
	.cargo-icons {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		align-items: stretch;
	}

	.cargo-icons .icon-item {
		min-width: 0;
		box-sizing: border-box;
		width: auto;
		flex: none;
	}

	.image-row {
		grid-template-columns: 1fr;
		padding: 16px 16px 16px;
		gap: 12px;
	}
}
