/**
 * サイト全体のカスタム上書きスタイル
 * （旧 Simple Custom CSS and JS プラグイン管理分）
 */

#header_logo img {
	width: auto;
	height: 100%;
}

/* PCグローバルメニュー：サブメニュー位置・配色 */
html.pc #header #global_menu > ul > li > a {
	height: auto !important;
	line-height: normal !important;
}

html.pc #header #global_menu > ul > li:not(.megamenu_parent) > ul {
	top: 100% !important;
	margin-top: 0 !important;
	padding-top: 8px !important;
	box-sizing: border-box !important;
}

/* 親項目とサブメニューの間もホバー判定に含める */
html.pc #header #global_menu > ul > li.menu-item-has-children:not(.megamenu_parent)::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 12px;
	z-index: 101;
}

html.pc #header #global_menu ul ul a {
	background: #000 !important;
	color: #fff !important;
}

html.pc #header #global_menu ul ul a:hover {
	background: #f63355 !important;
	color: #fff !important;
}

html.pc #header #global_menu ul ul li.menu-item-has-children > a:before {
	color: #fff !important;
}

.page_career_store_box {
	align-items: center;
}

/* New!!ラベルを非表示 */
.page_career_btn.new:before,
.page_career_btn.new:after {
	display: none !important;
}

/* page_jobdescriptionページのNEWラベルを非表示 */
#page_jobdescription h2 span {
	display: none !important;
}

/* #page_header .bg_image {
	background-color: #fffaea !important;
} */

#page_header {
	height: 400px;
}

#page_header_inner {
	top: 65%;
}

#page_header .catch .catch_en,
#page_header .catch_en {
	display: inline-block;
	font-family: "Courgette", cursive !important;
	font-weight: 400 !important;
	font-style: normal;
	font-size: 100px !important;
	transform: rotate(-4deg);
	transform-origin: left bottom;
}

@media screen and (max-width: 750px) {
	#page_header .catch .catch_en,
	#page_header .catch_en {
		font-size: 50px !important;
	}
}

#page_header .catch .catch_en::first-letter,
#page_header .catch_en::first-letter {
	color: #f63355 !important;
	font-weight: 700;
}

#page_header .catch_en,
#page_header .catch_jp {
	color: #000 !important;
	text-shadow: none !important;
}

#archive_square_headline {
	display: none;
}

#blog_list {
	margin-top: 50px;
}

#page_header .catch.animation_type1.animate,
#page_header .desc.animate {
	font-weight: 700;
	letter-spacing: 4px;
	text-shadow: none !important;
}

#page_header .catch .catch_jp,
#page_header .catch_jp {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 20px;
}

/* 情報公開アーカイブ向け（.desc の疑似要素のみ。catch には適用しない） */
body.blog #page_header .desc.animate::after,
body.archive #page_header .desc.animate::after {
	content: "情報公開";
	display: block;
	color: red;
}

#blog_list .item {
	padding: 0;
	height: auto;
}

#blog_list .image_link {
	display: none;
}

#blog_list .content {
	width: 100%;
}

@media screen and (max-width: 750px) {
	#blog_list .content {
		padding: 20px;
	}
}

/* 特定固定ページ（旧 page-id-4868）のブログ一覧非表示 */
.page-id-4868 #blog_archive #blog_list {
	display: none;
}

.post_content a,
.custom-html-widget a {
	color: #fff !important;
}

@media screen and (max-width: 1201px) {
	#return_top {
		display: none !important;
	}
}

#footer_top #footer_logo img {
	height: auto;
	padding-top: 30px;
	object-fit: contain;
}

#next_prev_post {
	display: none;
}

.page_career_store_item_img {
	max-height: 200px;
}

.page_company_office_list_btn {
	display: inline-block;
	max-width: 180px;
	margin: 4px 0;
}

.page_company_office_list_btn.btn_black a {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	font-size: 12px;
	padding: 10px 16px;
}

.tab_content_bottom .design_button,
.cb_news_list .design_button,
.cb_project_list .design_button {
	margin-top: 70px;
	position: relative;
	z-index: 10;
	pointer-events: auto;
}

.tab_content_top .design_button {
	margin-top: 30px;
	position: relative;
	z-index: 10;
	pointer-events: auto;
}

/* 総合TOPのパララックス背景 */
#index_content_builder {
	position: relative;
	overflow: hidden;
	z-index: 0;
}

#index_content_builder[data-parallax-image] {
	background-repeat: no-repeat;
}

/* 総合TOP: スクロール前からヘッダーを表示（header_fix.js は scroll>0 でしか active を付けない） */
body.home.no_index_header_content #index_content_builder,
body.home.no_index_header_content #index_content_builder[data-parallax-image] {
	z-index: 0;
}

body.home.no_index_header_content #header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
}

body.home.no_index_header_content #header:after {
	top: 0 !important;
	display: block !important;
}

body.home.no_index_header_content #global_menu > ul > li:not(.menu-item-227) > a,
body.home.no_index_header_content #header_search_button:before {
	color: #000 !important;
}

/* お問い合わせボタンは黒背景のため、スクロール前も白文字を維持 */
body.home #global_menu > ul > li.menu-item-227 > a {
	color: #fff !important;
}

@media screen and (min-width: 751px) {
	body.home #container {
		margin-top: 80px;
	}
}

/* 右端固定バナー（PCのみ・縦タブ） */
.irodori-side-banners {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 500;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transform: translateY(-50%);
}

.irodori-side-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 120px;
	color: #fff;
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	border-radius: 8px 0 0 8px;
	box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
	transition: filter 0.2s ease;
}

.irodori-side-banner:hover {
	color: #fff;
	filter: brightness(1.08);
}

.irodori-side-banner--recruit {
	background-color: #f63355;
}

.irodori-side-banner--tiktok {
	background-color: #010101;
}

.irodori-side-banner__label {
	display: inline-block;
	line-height: 1;
}

@media screen and (max-width: 768px) {
	.irodori-side-banners {
		display: none;
	}
}

@media screen and (max-width: 750px) {
	/* フッター下の余白のみ黒く（html/body 全体は白のまま） */
	#footer {
		background-color: #000;
		box-shadow: 0 100vh 0 100vh #000;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	#footer_top,
	#copyright,
	.footer_bottom {
		background-color: #000;
	}

	body.no_index_header_content:not(.home) #index_content_builder {
		padding: 40px 0 0;
	}

	body.home.no_index_header_content #index_content_builder {
		padding: 50px 0 0;
	}

	body.page:not(.home) #main_contents {
		padding-top: 0;
		margin-top: 0;
	}

	body:not(.home) #page_header_inner {
		top: 70%;
	}

	body:not(.home) #page_header {
		height: 200px;
	}
}
