@charset "UTF-8";
/*
 * 全幅で読む CSS（作業指示04）
 *  - ヘッダーのメニュー（PC の横並び／狭い幅ではドロワー）
 *  - フッターのメニュー（スマホにも出す）
 *  - 768〜1199px の流動幅
 *  - 統合で足した部品（パンくずの外、検索結果、ボタン）
 *
 * 切り替える幅
 *  - 767px 以下：スマホの見た目（css/sp.css）
 *  - 768px 以上：PC の見た目（style.css）
 *  - 1199px 以下：ヘッダーのメニューをドロワーにする（8項目を14pxで1行に並べるには、ロゴを除いて約870px要る。実測。報告を参照）
 * 色は今のサイトの配色だけを使う：#073190（濃い青）、#00479d（青）、#ea2d38（赤）、#3e3e3e、#222
 */

.sr-only {
	position: absolute;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
}

/* 統合前の PC用テーマにあった見出し（h1）の見た目を、h1 以外の要素で使う（F-07） */
.header_title .page-label {
	position: relative;
	z-index: 300;
}

/* ===============================================
   ヘッダー：共通
   =============================================== */
#header .site-logo {
	display: inline-block;
	margin: 0;
}
.nav-toggle {
	display: none;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
	display: block;
	width: 2rem;
	height: 2px;
	background-color: #222;
	transition: all .3s ease;
}
.nav-toggle-icon {
	position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
	position: absolute;
	left: 0;
	content: "";
}
.nav-toggle-icon::before { top: -10px; }
.nav-toggle-icon::after { top: 10px; }
.nav-open .nav-toggle-icon { background-color: transparent; }
.nav-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.nav-overlay { display: none; }
.gnav-parent {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

/* ===============================================
   ヘッダー：PC の横並び（1200px 以上）
   =============================================== */
@media (min-width: 1200px) {
	#header #site_id {
		flex-shrink: 0;
	}
	#global_nav {
		width: auto;
		flex: 1;
		margin-left: 10px;
	}
	#global_nav .gnav > li {
		flex: 1 1 auto;
	}
	/* ドロワーだけに出す項目（上の階層の「導入事例」。作業指示08） */
	#global_nav .gnav > li.menu-drawer-only {
		display: none;
	}
	#global_nav .gnav > li > a,
	#global_nav .gnav > li > .gnav-parent {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 107px;
		padding: 0 6px; /* 8px から詰めた。8項目を1行に収める余裕を取るため（作業指示13 の後の直し） */
		border: 0;
		background: none;
		color: #000;
		white-space: nowrap;
		cursor: pointer;
	}
	#global_nav .gnav > li:last-child > a,
	#global_nav .gnav > li:hover > a,
	#global_nav .gnav > li:hover > .gnav-parent {
		color: #fff;
	}
	.gnav-caret { display: none; }
	/* 8項目を1行に。項目名は1つのまとまり（span.gnav-label）で、折り返さない。li は項目名より狭くしない（作業指示13 の後の直し） */
	#global_nav .gnav > li > a .gnav-label,
	#global_nav .gnav > li > .gnav-parent .gnav-label {
		white-space: nowrap;
	}
	#global_nav .gnav > li {
		min-width: max-content;
	}
	/* マウスのほか、キーボードで中に入ったとき・ボタンで開いたときも開く */
	.gnav > li:focus-within .megamenu,
	.gnav > li.is-open .megamenu {
		max-height: 9999px;
		opacity: 1;
	}
	/* 商社・購買担当の方へ：ボタンの見た目 */
	#global_nav .gnav > li.menu-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 4px;
	}
	#global_nav .gnav > li.menu-cta:hover {
		background: none;
	}
	#global_nav .gnav > li.menu-cta > a {
		width: auto;
		height: auto;
		padding: 10px;
		border-radius: 4px;
		background: #073190;
		color: #fff;
		line-height: 1.3;
	}
	#global_nav .gnav > li.menu-cta > a:hover,
	#global_nav .gnav > li.menu-cta > a:focus {
		background: #00479d;
	}
}

/* ===============================================
   ヘッダー：ドロワー（1199px 以下）
   =============================================== */
@media (max-width: 1199px) {
	.nav-toggle {
		display: block;
		padding: 18px .75rem 30px;
		box-sizing: content-box;
		width: 2rem;
		z-index: 1003;
	}
	.nav-toggle-icon { margin-top: 10px; }
	#global_nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 1002;
		width: 16.25rem;
		max-width: 85vw;
		height: 100%;
		padding-top: 3.75rem;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background-color: #fff;
		color: #222;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .4s cubic-bezier(0.190, 1.000, 0.220, 1.000), visibility .4s;
	}
	.nav-open #global_nav {
		transform: none;
		visibility: visible;
	}
	.nav-overlay {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1001;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, .2);
	}
	.nav-open .nav-overlay { display: block; }
	.nav-open { overflow: hidden; }

	#global_nav .gnav {
		display: block;
		margin: 0;
		padding: 0 0 7.5rem;
		font-size: 1rem;
		font-weight: normal;
		list-style: none;
	}
	#global_nav .gnav > li,
	#global_nav .gnav > li:last-child,
	#global_nav .gnav li:hover {
		flex: none;
		background: none;
	}
	#global_nav .gnav > li > a,
	#global_nav .gnav > li > .gnav-parent {
		display: block;
		width: 100%;
		height: auto;
		padding: .75rem;
		border: 0;
		background: none;
		color: #222;
		text-align: left;
		text-decoration: none;
		line-height: 1.5;
		cursor: pointer;
	}
	#global_nav .gnav a:hover,
	#global_nav .gnav .gnav-parent:hover {
		color: #555;
		text-decoration: underline;
	}
	.gnav-caret {
		display: inline-block;
		width: 0;
		height: 0;
		margin-left: 4px;
		vertical-align: middle;
		border-top: 4px solid;
		border-right: 4px solid transparent;
		border-left: 4px solid transparent;
		transition: transform .2s ease;
	}
	.is-open > .gnav-parent .gnav-caret { transform: rotate(180deg); }
	#global_nav .megamenu {
		display: none;
		position: static;
		max-height: none;
		opacity: 1;
		overflow: visible;
		width: 100%;
		background: #fff;
		transition: none;
	}
	#global_nav .is-open > .megamenu { display: block; }
	#global_nav .megamenu-inner {
		display: block;
		width: auto;
		margin: 0;
		padding: 0;
	}
	#global_nav .megamenu-inner li {
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	#global_nav .megamenu-inner a {
		display: block;
		padding: 0 .75rem 0 1.5rem;
		color: #222;
		line-height: 3.75rem;
		text-decoration: none;
	}
	#global_nav .megamenu-inner a::after { display: none; }
	#global_nav .megamenu-inner a:hover { background: none; color: #555; text-decoration: underline; }
	/* 商社・購買担当の方へ：ボタンの見た目 */
	#global_nav .gnav > li.menu-cta { padding: .5rem .75rem; }
	#global_nav .gnav > li.menu-cta > a {
		padding: .75rem;
		border-radius: 4px;
		background: #073190;
		color: #fff;
		text-align: center;
	}
	#global_nav .gnav > li.menu-cta > a:hover { background: #00479d; color: #fff; }
}

/* ドロワー：768〜1199px（PC のヘッダーの高さのまま、右にボタン） */
@media (min-width: 768px) and (max-width: 1199px) {
	#header {
		position: relative;
		width: auto;
		padding: 0 20px;
	}
	#header #site_id { width: auto; }
	.nav-toggle {
		position: relative;
		margin-right: -.75rem;
	}
	.nav-open .nav-toggle {
		position: fixed;
		top: 0;
		right: 16.25rem;
		margin: 0;
	}
}

/* ドロワー：767px 以下（旧スマホ用テーマの、上に固定したバー） */
@media (max-width: 767px) {
	body {
		padding-top: 3.75rem;
	}
	#header {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
		width: 100%;
	}
	#header #site_id {
		position: relative;
		z-index: 102;
		box-sizing: border-box;
		width: 100%;
		height: 3.75rem;
		padding: 0 .75rem;
		border-bottom: 1px solid #ddd;
		background-color: #fff;
		text-align: center;
	}
	/* 旧 .drawer-brand と同じ（文字の大きさと行の高さで、ロゴの縦の位置が決まる） */
	#header .site-logo {
		display: inline-block;
		padding: 0 .75rem;
		font-size: 1.5rem;
		font-weight: bold;
		line-height: 3.75rem;
	}
	#header .site-logo img {
		max-width: 70%;
		height: auto;
	}
	/* トップ：旧スマホ用テーマでは、スライドとお知らせが #container の外にあった */
	.home #wrapper > #container { padding: 0; }
	.home #container > #top_group { padding: 0 2%; }
	.nav-toggle {
		position: fixed;
		top: 0;
		right: 0;
	}
	.nav-open .nav-toggle { right: 16.25rem; }
}

/* ===============================================
   フッターのメニュー
   =============================================== */
#footer_logo .footer-address { vertical-align: middle; }
/* フッターの一番下（コピーライトの上）の、小さめの横並びのリンク（作業指示09 段5）。背景はリンクの欄と同じ */
.footer-sub {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1.5em;
	margin: 0;
	padding: 0 16px 14px;
	list-style: none;
	background-color: rgba(0, 0, 0, .7);
	font-size: 12px;
	line-height: 1.6;
}
.footer-sub a { color: #fff; }
@media (max-width: 767px) {
	#footer {
		padding: 0;
		color: #fff;
	}
	#footer_logo {
		padding: 5vw 5vw 20px;
	}
	#footer_logo img,
	#footer_logo .footer-address {
		display: block;
		margin: 0 auto;
	}
	#footer_logo img { width: 40%; height: auto; }
	#footer_logo .footer-address { margin-top: 1em; color: #000; }
	#footer_container {
		display: flex;
		flex-wrap: wrap;
		padding: 20px 5vw 10px;
		background-color: rgba(0, 0, 0, .7);
		font-size: 13px;
		line-height: 1.6;
	}
	#footer_container aside {
		width: 50%;
		padding: 0 8px 16px 0;
	}
	#footer_container a { color: #fff; }
	#footer_container .title { padding-bottom: 4px; font-weight: bold; }
	#footer_container ul { margin: 0 0 0 .5em; padding: 0; list-style: none; }
	#footer_container ul li { margin-bottom: .4em; font-size: 12px; }
}

/* ===============================================
   768〜1199px：PC のレイアウトを流動幅にする
   =============================================== */
@media (min-width: 768px) and (max-width: 1199px) {
	#container,
	#footer_logo,
	#pankuzu,
	#page-header .inner,
	#page-header .header_title,
	.megamenu-inner,
	.recruit_flow .inner,
	.recruit_entry .inner,
	#slider,
	#top_group h2,
	#eco_group_ .inner,
	#recruit_group_ .inner,
	.top-band .inner {
		width: auto;
		max-width: 100%;
	}
	#container { padding: 0 20px; }
	.top-band .inner { padding: 0 20px; }
	#pankuzu { padding: 0 20px; }
	#page-header,
	.recruit_flow,
	.recruit_entry {
		min-width: 0;
	}
	#page-header .inner {
		margin: 15px 20px 50px;
		background-size: cover;
	}
	/* 見出しの枠が文字の幅まで縮まないように（PC と同じく、枠の幅は見出しの部分の 60%） */
	#page-header .header_title {
		width: 100%;
		padding: 0 4%;
	}
	#post { width: calc(100% - 230px); }
	.box_m_image_2,
	#keiei_rinen { width: auto; max-width: 800px; }
	.box_message .col,
	.box_message .col-photo { width: auto; flex: 1; }
	#main img { max-width: 100%; height: auto; }
	/* 本文の長い URL で横にはみ出さないように折り返す */
	#main a,
	#main p,
	#main td,
	#main li { overflow-wrap: anywhere; }
	#main table { max-width: 100%; }
	#main iframe { max-width: 100%; }
	#footer_container { flex-wrap: wrap; padding: 40px 20px; }
	#footer_container aside { margin-bottom: 1.5em; }
}

/* 本文の表：狭い幅では横にスクロールできるようにする（原稿の取り込みで使う。作業指示05） */
.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* 本文の中の相談ボタン（「商社・購買担当の方へ」と同じ色・形。作業指示05 で使う） */
.btn-consult a,
a.btn-consult {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 4px;
	background: #073190;
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1.4;
}
.btn-consult a:hover,
a.btn-consult:hover { background: #00479d; }

/* トップの電話のアイコンは、旧スマホ用テーマだけにあった */
@media (min-width: 768px) {
	.sp-only { display: none !important; }
}

/* ===============================================
   検索結果（F-06）
   =============================================== */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin: 0 0 2em;
}
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 8px;
	border: 1px solid #ccc;
	font: inherit;
}
.search-form .btn-search {
	padding: 8px 20px;
	border: 0;
	background: #073190;
	color: #fff;
	font: inherit;
	cursor: pointer;
}
.search-results-list { width: 100% !important; }
.search-item h3 a { color: inherit; }

/* ===============================================
   原稿の取り込みで使う部品（作業指示05 段2・段3）
   =============================================== */
/* 確認用の目印 {{要確認}}：黄色の背景の囲み。本番用（--production）では目印が残っていれば取り込まない */
.mgk-todo {
	display: inline-block;
	margin: 2px 0;
	padding: 2px 8px;
	border: 1px solid #c9a400;
	background: #fff36b;
	color: #222;
	font-size: 90%;
	font-weight: normal;
	line-height: 1.6;
}
/* 見出しの id へのページ内リンク：上に固定したバー（スマホ）の下に隠れないよう余白をとる */
#main [id] {
	scroll-margin-top: 80px;
}
/* 電話番号（タップで発信） */
.tel-link a {
	font-size: 120%;
	font-weight: bold;
	color: inherit;
	text-decoration: none;
}
.tel-link a::before {
	content: "\f095";
	margin-right: .5em;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}
.btn-consult {
	text-align: center;
}

/* ===============================================
   導入事例のカード（一覧・トップ・製品ページ。作業指示06）
   見た目はトップのお知らせ・3つの強みの箱に合わせる（灰色の箱、上に青の線）
   =============================================== */
.case-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
#main .case-cards li.case-card {
	margin: 0;
	padding: 0;
	list-style: none;
}
.case-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 22px 20px;
	border-top: 4px solid #073190;
	background: #eee;
	color: #333;
	text-decoration: none;
	transition: background .2s ease;
}
.case-card a:hover { background: #e4e4e4; }
#main .case-card-title,
.case-card-title {
	margin: 0 0 .6em !important;
	padding: 0 !important;
	border: 0 !important;
	color: #073190;
	font-size: 16px !important;
	font-weight: bold;
	line-height: 1.5;
	text-align: left !important;
}
#main .case-card-title::before,
#main .case-card-title::after { display: none !important; }
#main .case-card-text,
.case-card-text {
	flex: 1;
	margin: 0 0 1em !important;
	font-size: 13px;
	line-height: 1.8;
}
#main .case-card-products,
.case-card-products {
	margin: 0 0 .8em !important;
	font-size: 12px;
	line-height: 1.6;
}
.case-card-products .label {
	display: inline-block;
	margin-right: .6em;
	padding: 0 .6em;
	background: #073190;
	color: #fff;
	font-size: 11px;
}
.case-card-more {
	color: #073190;
	font-size: 13px;
	font-weight: bold;
}
.case-card-more::after {
	content: "\f105";
	margin-left: .6em;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}
#main .case-lead { margin: 0 0 2em; text-align: center; }
.product-cases { margin: 3em 0 1em; }
.case-archive .btn-consult { margin-top: 3em; }

/* トップの導入事例の欄 */
.top-cases { position: relative; margin: 100px 0; } /* 下の余白も、ほかの欄の終わりと同じ 100px（作業指示07） */
.top-cases .case-cards { margin-top: 40px !important; }
.top-cases .top-cases-all { margin: 30px 0 0; text-align: right; }
.top-cases .top-cases-all a { display: inline-block; }

/* 関連リンク（段落が「→」とリンクだけのとき。作業指示06 段2） */
#main .related-link {
	margin: 1em 0;
	font-size: 14px;
}
.related-link a::before {
	content: "\f061";
	margin-right: .5em;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 90%;
}

/* 「項目｜内容」の表：左の列を見出しのセルにする（作業指示06 段2） */
.table-kv th[scope="row"] {
	width: 28%;
	white-space: normal;
	text-align: left;
}

@media (max-width: 1199px) {
	.case-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.case-cards { grid-template-columns: 1fr; gap: 14px; }
	.case-card a { padding: 18px 16px; }
	.top-cases { margin: 40px 0; }
	.top-cases .top-cases-all { text-align: center; }
	.table-kv th[scope="row"] { width: 34%; }
}

/* ===============================================
   日本語の折り返し（作業指示09 段4）
   言葉の切れ目で折り返し、行の長さをそろえる。対応していないブラウザでは今のまま
   =============================================== */
h1, h2, h3,
.title,
.header_title .title,
.case-card-title,
.btn a, .btn_2 a, .btn_products a, .btn-consult a, .related-link a,
.box_children a,
.gnav a, .gnav-parent,
#footer_container a, .sitemap a,
.wpcf7-submit {
	word-break: auto-phrase;
	text-wrap: balance;
}
/* auto-phrase に対応していないブラウザ（Safari・Firefox）：日本語を文字ごとに折り返さず、
   テーマが入れた切れ目（<wbr>。BudouX の文節と決まった語の前後。functions.php の mgk_wbr）と、空白・記号の後だけで折り返す。
   1つの切れ目の間が枠より長いときだけ、どこでも折り返す（作業指示12 段3）。
   body.mgk-budoux は、オプション mgk_budoux_enabled が '0' でないときに付く（inc/budoux.php。止めるとこの指定も外れる） */
@supports not (word-break: auto-phrase) {
	body.mgk-budoux h1,
	body.mgk-budoux h2,
	body.mgk-budoux h3,
	body.mgk-budoux .title,
	body.mgk-budoux .header_title .title,
	body.mgk-budoux .case-card-title,
	body.mgk-budoux .btn a,
	body.mgk-budoux .btn_2 a,
	body.mgk-budoux .btn_products a,
	body.mgk-budoux .btn-consult a,
	body.mgk-budoux .related-link a,
	body.mgk-budoux .box_children a,
	body.mgk-budoux .gnav a,
	body.mgk-budoux .gnav-parent,
	body.mgk-budoux #footer_container a,
	body.mgk-budoux .sitemap a {
		word-break: keep-all;
		overflow-wrap: anywhere;
	}
}
/* 英字のラベル（原稿の en_label）は、書いたままの大文字・小文字で出す（SDS / RoHS など） */
.header_title .en.en-label,
.header_title_recruit h1 .en.en-label {
	text-transform: none;
}

/* ===============================================
   相談フォーム（/inquiry。作業指示09 段6）
   =============================================== */
.mgk-inquiry tr[hidden] { display: none; }
.mgk-field-note {
	margin: 0 0 .4em;
	color: #555;
	font-size: .875em;
}
/* 人には見えない入力欄（迷惑メール対策）。画面の外に置き、読み上げにも出さない */
.mgk-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 768〜1023px：ボタンが細くなり、言葉の途中で折り返していたので、4列を3列にする（作業指示09 段4）。
   ボタンの文字は、本文の長い URL 向けの「どこでも折り返す」指定から外す */
@media (min-width: 768px) and (max-width: 1023px) {
	#main .box_children ul li,
	#products_group_ ul li {
		width: 32.66%;
		margin-right: 1%;
	}
	#main .box_children ul li:nth-of-type(4n) { margin-right: 1%; }
	#main .box_children ul li:nth-of-type(3n),
	#products_group_ ul li:nth-of-type(3n) { margin-right: 0; }
	#products_group_ ul.products-buttons { justify-content: flex-start; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	#main .box_children li,
	#main .box_children a,
	#products_group_ li a { overflow-wrap: normal; }
}
/* 768〜1199px：同じ階層のボタンの右の余白（矢印の分）を詰め、文字の幅を広げる（作業指示09 段4） */
@media (min-width: 768px) and (max-width: 1199px) {
	.box_children ul li.btn_2 a { padding-left: 12px; padding-right: 36px; }
}
/* 767px 以下：同じ階層のボタンの文字を 13px にし、左右の余白を詰める（「ストレッチフィル｜ム」の折り返しを直す。作業指示09 段4） */
@media (max-width: 767px) {
	#main .box_children ul li { font-size: 13px; }
	.box_children ul li.btn_2 a { padding-left: 8px; padding-right: 26px; }
	/* トップの「INFORMATION お知らせ」：1行に収まるように、間を詰める（「お知ら｜せ」の折り返しを直す） */
	#info_group_ h2 span.ja { margin-left: .4em; white-space: nowrap; }
}

/* ===============================================
   アクセスマップ（作業指示11）：地図は iframe の埋め込み。大きさは今の地図の欄（.accessmap）のまま
   =============================================== */
.accessmap iframe.gmap { display: block; }
/* 今、地図に出している拠点のボタン */
#map .mgk-map-btn[aria-pressed="true"] {
	background-color: #111;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #073190;
}
#map .mgk-map-btn:focus-visible { outline: 2px solid #073190; outline-offset: 3px; }
#map .map-open {
	clear: both;
	margin: .4em 0 0;
	font-size: 13px;
	text-align: right;
}
@media (max-width: 767px) {
	#map .map-open { text-align: left; }
}

/* 確認用環境の帯（mgk_staging_mode が 1 のときだけ出る。作業指示12 段2） */
.mgk-staging-note {
	margin: 0 0 1.5em;
	padding: .75em 1em;
	border: 2px solid #cc3333;
	background: #fff5f5;
	color: #cc3333;
	font-weight: bold;
	text-align: center;
}

/* 見出し・メニューの記号の後の最後の1〜2文字を、前とつなぐ（functions.php の mgk_wbr。作業指示13 段4。以前は U+2060） */
.mgk-nw {
	white-space: nowrap;
}

/* お知らせの本文のリンク：長い URL がそのまま文字になっていても、本文の枠の中で折り返す（作業指示13 の後。岡部の指示）。
   折り返す場所がないときだけ、文字の途中で折り返す */
.archive_group .text a {
	overflow-wrap: anywhere;
}
