/* =========================================
   全体の基本設定 (スマホ・PC共通)
   ※ モバイルファースト設計
========================================= */
:root {
	/* 各事業部のテーマカラー設定 */
	--color-casting-main: #004d99;
	--color-casting-bg: #f7f9fa;
	--color-dai1-main: #005b82;
	--color-dai1-bg: #f4f7f6;
	--color-dai2-main: #2a6496;
	--color-dai2-bg: #f5f8fc;

	/* 共通カラー */
	--color-text-main: #333;
	--color-accent-red: #cc0000;
	--color-accent-red-dai2: #d9534f;
}

.busi_body {
	font-family: 'Oswald', sans-serif;
	line-height: 1.8;
	color: var(--color-text-main);
	text-align: justify;
	margin: auto;
	width: 90%;
}

/* --- タイトル周り --- */
.busi_body .title {
	text-align: left !important;
}

.busi_body .title h1 {
	font-size: 1.8rem;
	font-weight: normal;
}

.busi_body .title h2 {
	font-size: 1.3rem;
	font-weight: normal;
	margin: 20px 0;
	line-height: 1.8rem;
}

.busi_body .title h3 {
	font-size: 0.9em;
	font-weight: normal;
	background-color: #014495;
	color: white;
	padding: 5px 10px;
	display: table;
	margin: 15px 0 5px 0;
}

.busi_body .title h4 {
	font-size: 0.8em;
	font-weight: normal;
	margin-bottom: 5px;
	color: #000;
	border: 1px solid #333;
	padding: 0.4em 0.8em;
	line-height: 1.5;
	display: inline-block;
	white-space: nowrap;
	text-align: left;
}

/* --- 各セクション共通 --- */
.section {
	padding: 20px 0 50px 0;
}

.section-title {
	font-size: 1.8rem;
	font-weight: bold;
	text-align: left;
	margin-bottom: 30px;
	color: #005bac;
}

.section h2 {
	font-size: 1.5rem;
	font-weight: bold;
	color: #000;
	text-align: left;
}

.section h3 {
	font-size: 1.2rem;
	font-weight: bold;
	color: #005bac;
	border-bottom: 2px solid #005bac;
	padding-bottom: 5px;
	margin-top: 20px;
}

.section p {
	margin-bottom: 1.5em;
}

.section img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* --- 画像とテキストの横並びレイアウト --- */
.media-layout {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 20px 0;
}

.media-layout.media-layout--reverse {
	flex-direction: column;
}

.media-layout_text {
	width: 100%;
}

.media-layout_text h2 {
	font-size: 1.5rem;
	font-weight: bold;
	color: #014495;
	margin-bottom: 15px;
	border-bottom: 1px #014495 solid;
}

.media-layout__image {
	width: 100%;
}

.media-layout__image img {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- 画像フレックスコンテナ --- */
.image-flex-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.side-image {
	width: 100%;
}

/* --- 差し込む写真グリッド --- */
.features-grid-photo {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5px;
}

.features-grid-photo img {
	width: 100%;
	padding: 0;
}

/* --- 事業の特徴/関連商品 (カードレイアウト) --- */
.features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
}

.features-grid img {
	width: 100%;
	padding: 0;
}

.feature-card {
	padding: 10px;
	border: 1px #ccc solid;
}

.feature-card h3,
.feature-card h4 {
	font-size: 1.2rem;
	font-weight: bold;
	color: #005bac;
	margin: 0 0 15px 0;
	padding: 0;
}

.feature-card h5 {
	font-size: 0.8rem;
	font-weight: bold;
	color: #005bac;
	margin: 0;
}

.feature-card p {
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 0;
}

/* --- 見出しアイコン・アイテムブロック --- */
.title-css-icon {
	display: flex;
	align-items: center;
	font-size: 1.2rem;
	font-weight: bold;
	margin: 20px 0;
}

.item-block {
	position: relative;
	padding-left: 20px;
	width: 80%;
	margin: 30px auto 0;
}

.item-title {
	font-size: 1.1em;
	font-weight: bold;
}

.item-title::before {
	content: "▪";
	position: absolute;
	left: 0;
	font-weight: bold;
}

.item-text {
	margin-top: 0;
	margin-bottom: 0.5em;
}

/* --- お問い合わせバナー --- */
.cta-banner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	background-color: #f0f3f5;
	padding: 25px 20px;
	border-radius: 3px;
	max-width: 1000px;
	margin: 50px auto;
	gap: 20px;
}

.cta-text {
	color: var(--color-text-main);
	font-size: 1.2rem;
	line-height: 1.6;
	font-weight: bold;
	text-align: center;
}

.cta-button {
	display: inline-block;
	background-color: #035aa6;
	color: white;
	font-weight: bold;
	text-decoration: none;
	padding: 14px 64px;
	border-radius: 5px;
	transition: background-color 0.2s;
}

.cta-button:hover {
	background-color: #02437d;
}

/* --- 産業領域3ボタンフィールド --- */
.sangyo_main_title {
	font-size: 1.0rem;
	color: #000;
	margin-bottom: 25px;
	padding-left: 15px;
	border-left: 5px solid #014495;
	text-align: left !important;
}

.sangyo_3button_field {
	display: flex !important;
	flex-direction: row;
	justify-content: space-between;
	gap: 15px;
	width: 100%;
}

.sangyo_3button {
	flex: 1;
	text-align: center;
}

.sangyo_3button a {
	text-decoration: none;
	display: block;
}

.sangyo_3button img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 10px;
}

.sangyo_3button p {
	font-size: 14px;
	color: var(--color-text-main);
	line-height: 1.4;
	text-align: center !important;
	margin: 0;
}


/* =========================================
   事業部別 追加セクション (共通スタイル)
========================================= */
.dept-info-section {
	padding: 40px 20px;
	color: var(--color-text-main);
}

.dept-info-inner {
	max-width: 1000px;
	margin: 0 auto;
}

/* 各事業部のテーマカラーを適用 */
.casting-info-section {
	background-color: var(--color-casting-bg);
	--theme-color: var(--color-casting-main);
	--accent-color: var(--color-accent-red);
}

.dai1-info-section {
	background-color: var(--color-dai1-bg);
	--theme-color: var(--color-dai1-main);
	--accent-color: var(--color-accent-red);
}

.dai2-info-section {
	background-color: var(--color-dai2-bg);
	--theme-color: var(--color-dai2-main);
	--accent-color: var(--color-accent-red-dai2);
}

/* 共通タイトル・リード */
.dept-info-section .section-title {
	font-size: 1.5rem;
	font-weight: bold;
	text-align: center;
	margin: 40px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--theme-color);
	color: var(--theme-color);
}

.dept-info-section .section-title:first-child {
	margin-top: 0;
}

.dept-info-section .section-lead {
	text-align: center;
	margin-bottom: 30px;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* ご依頼の流れ (共通) */
.dept-flow-list {
	list-style: none;
	padding: 0;
	margin: 0 0 40px 0;
}

.dept-flow-list li {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	position: relative;
}

.dept-step-num {
	display: inline-block;
	background: var(--theme-color);
	color: #fff;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: bold;
	margin-bottom: 10px;
}

.dept-step-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 10px;
}

.dept-step-desc {
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0;
}

/* よくあるご質問 (共通) */
.dept-faq-list {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	margin-bottom: 40px;
}

.dept-faq-list dt {
	font-weight: bold;
	color: var(--theme-color);
	margin-bottom: 8px;
	padding-left: 1.8em;
	position: relative;
	line-height: 1.5;
}

.dept-faq-list dt::before {
	content: "Q.";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 1.1rem;
}

.dept-faq-list dd {
	margin: 0 0 20px 0;
	padding-left: 1.8em;
	position: relative;
	border-bottom: 1px dashed #ddd;
	padding-bottom: 15px;
	font-size: 0.95rem;
	line-height: 1.6;
}

.dept-faq-list dd:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.dept-faq-list dd::before {
	content: "A.";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent-color);
	font-weight: bold;
	font-size: 1.1rem;
}

.dept-faq-list dd a {
	color: var(--theme-color);
	text-decoration: underline;
}

/* 関連コラムリンク (共通) */
.dept-column-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dept-column-links li {
	margin-bottom: 10px;
}

.dept-column-links a {
	display: block;
	padding: 15px;
	background: #fff;
	border-left: 5px solid var(--theme-color);
	text-decoration: none;
	color: var(--color-text-main);
	font-size: 0.95rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	transition: background 0.2s ease;
	position: relative;
}

.dept-column-links a::after {
	content: "＞";
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #ccc;
	font-size: 0.8rem;
}

.casting-info-section .dept-column-links a:hover {
	background: #f0f7ff;
}

.dai1-info-section .dept-column-links a:hover {
	background: #f0f8fb;
}

.dai2-info-section .dept-column-links a:hover {
	background: #edf3f8;
}


/* =========================================
   PC・タブレット向けスタイル (601px以上)
   ここでスマホ版のスタイルを上書きします
========================================= */
@media screen and (min-width: 601px) {

	/* --- 全体レイアウト --- */
	.busi_body {
		margin-top: 50px;
		width: 100%;
		max-width: 1000px;
	}

	/* --- 画像とテキストの横並び --- */
	.media-layout {
		flex-direction: row;
		align-items: center;
		gap: 5%;
	}

	.media-layout.media-layout--reverse {
		flex-direction: row-reverse;
	}

	/* --- 画像フレックスコンテナ --- */
	.image-flex-container {
		flex-direction: row;
		align-items: flex-start;
		gap: 0;
	}

	.side-image {
		width: auto;
	}

	/* --- 差し込む写真 --- */
	.features-grid-photo {
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
	}

	/* --- 事業の特徴カード --- */
	.features-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}

	.feature-card {
		padding: 20px;
	}

	/* --- お問い合わせバナー --- */
	.cta-banner {
		flex-direction: row;
		padding: 50px 100px;
		gap: 0;
	}

	.cta-text {
		text-align: left;
	}

	.sangyo_3button_field {
		width: 80%;
		margin: auto;
	}

	/* --- 事業部別 追加セクション --- */
	.dept-info-section {
		padding: 60px 40px;
	}

	.dept-info-section .section-title {
		font-size: 1.8rem;
		margin-bottom: 40px;
	}

	.dept-flow-list {
		display: flex;
		justify-content: space-between;
		gap: 25px;
	}

	.dept-flow-list li {
		flex: 1;
		margin-bottom: 0;
	}

	.dept-flow-list li:not(:last-child)::after {
		content: "▶";
		position: absolute;
		right: -18px;
		top: 50%;
		transform: translateY(-50%);
		color: #ccc;
		font-size: 1.2rem;
	}

	.dept-faq-list {
		padding: 30px;
	}

	.dept-column-links {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.dept-column-links li {
		margin-bottom: 0;
	}
}

/* =========================================
   ベーススタイル (モバイル・スマートフォン向け)
========================================= */
.production-flow {
	background-color: #f8f9fa;
	/* 背景を薄いグレーにして強調 */
	border-left: 5px solid #2b5c8f;
	/* サイトに馴染む落ち着いた青系のアクセント */
	padding: 1.5em;
	margin: 2em 0;
	border-radius: 4px;
}

.production-flow__desc {
	font-weight: bold;
	font-size: 1.1em;
	color: #333;
	margin-top: 0;
	margin-bottom: 1em;
}

.production-flow__steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	/* 縦並び */
	gap: 15px;
}

.production-flow__steps li {
	background-color: #fff;
	border: 1px solid #ccd1d9;
	padding: 1em;
	text-align: center;
	border-radius: 4px;
	font-weight: bold;
	color: #2b5c8f;
	position: relative;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* モバイル用の下矢印 */
.production-flow__steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	bottom: -13px;
	left: 50%;
	transform: translateX(-50%);
	border-top: 8px solid #2b5c8f;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	z-index: 1;
}

.production-flow__text {
	margin-top: 1.5em;
	margin-bottom: 0;
	font-size: 0.95em;
	color: #555;
	line-height: 1.6;
}

/* =========================================
   タブレット・PC向けスタイル (601px以上)
========================================= */
@media screen and (min-width: 601px) {
	.production-flow__steps {
		flex-direction: row;
		/* 横並びに変更 */
		gap: 20px;
	}

	.production-flow__steps li {
		flex: 1;
		/* 各ステップの幅を均等にする */
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 1em 0.5em;
	}

	/* PC用の右矢印 */
	.production-flow__steps li:not(:last-child)::after {
		bottom: auto;
		top: 50%;
		left: auto;
		right: -16px;
		transform: translateY(-50%);
		border-top: 6px solid transparent;
		border-bottom: 6px solid transparent;
		border-left: 8px solid #2b5c8f;
		border-right: none;
	}
}