/* -HEADER
--------------------------------------------------------------------------------------------- */
#header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	width: 100%;
    height: 71px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	background-color: transparent;
	-webkit-transition: all 0.4s ease-in-out, color 0.4s;
	-o-transition: all 0.4s ease-in-out, color 0.4s;
	transition: all 0.4s ease-in-out, color 0.4s;
}
@media screen and (min-width: 768px){
	#header{
		height: 98px;
	}
}
@media screen and (min-width: 992px){
	#header{
		height: 100px;
	}
}
@media screen and (min-width: 1200px){
	#header{
		height: 112px;
	}
}

/* body.fixed … メニュー展開中であることを表す状態クラス（contents.jsが付与）。
   .menu-toggleはposition:fixedのパネルなので、展開中も背景はスクロールできるようにしている。
   以前はここでposition:fixedにして背景を固定していたが、その指定は外した。
   クラス自体はヘッダーの配色切り替え（#header.is-dark / .is-light / .header_page）で使うので残す */

/* CONTAINER  */
.header_container {
	width: 89.74358%;
	margin-right: auto;
	margin-left: auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	position: relative;
}
@media screen and (min-width: 992px){
	.header_container{
		width: 90%;
	}
}

/* logo　symbol */
.scroll_logo, .scroll_symbol{
    margin-bottom: 0;
	transition: .4s;
}
.scroll_logo{
	position: relative;
}
.scroll_symbol{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
.scroll_logo{
	width: 70px;
}
.scroll_symbol{
	width: 36px;
}
.scroll_logo a, .scroll_symbol a{
	display: block;
    width: 100%;
    height: 100%;
	transition: .4s;
}
.scroll_logo a::before, .scroll_symbol a::before{
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	display: block;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	top: 0;
	left: 0;
	opacity: 0;
	transition: .4s;
}
.scroll_logo a::before{
	background-image: url(../images/logo_black.png);
}
.scroll_symbol a::before{
	background-image: url(../images/symbol_mark_black.png);
}
.scroll_logo img, .scroll_symbol img{
	display: block;
    width: 100%;
    height: auto;
	opacity: 1;
	transition: .4s;
}
#header.is-dark .scroll_logo a::before, #header.is-dark .scroll_symbol a::before, .fixed #header.is-dark.scroll_symbol a::before{
	opacity: 1;
}
#header.is-dark .scroll_logo img, #header.is-dark .scroll_symbol img, .fixed #header.is-dark .scroll_symbol img{
	opacity: 0;
}
/* is-light … 背景が暗いフッターに重なったときのロゴ（contents.jsが付与）。
   トップページではtop.jsがスクロールのたびにis-darkを付け直すため、
   フッター上ではis-darkと同時に付く。詳細度が同じなのでis-darkより後ろに置いて上書きする */
#header.is-light .scroll_logo a::before, #header.is-light .scroll_symbol a::before{
	opacity: 0;
}
#header.is-light .scroll_logo img, #header.is-light .scroll_symbol img{
	opacity: 1;
}
/* メニュー展開中（body.fixed）。is-dark側に.fixed付きの指定があって上の2つより詳細度が高いため、
   同じく.fixedを含めた形で上書きする */
body.fixed #header.is-light .scroll_logo a::before, body.fixed #header.is-light .scroll_symbol a::before{
	opacity: 0;
}
body.fixed #header.is-light .scroll_logo img, body.fixed #header.is-light .scroll_symbol img{
	opacity: 1;
}
.header_page .scroll_logo img, .header_page .scroll_symbol img{
	opacity: 1;
}
.header_page .scroll_logo a::before, .header_page .scroll_symbol a::before{
	opacity: 0;
}
.header_page .scroll_logo a::before{
	background-image: url(../images/logo_white.png);
}
.header_page .scroll_symbol a::before{
	background-image: url(../images/symbol_mark_white.png);
}
#header.is-light.header_page .scroll_logo img, #header.is-light.header_page .scroll_symbol img{
	opacity: 0;
}
#header.is-light.header_page .scroll_logo a::before, #header.is-light.header_page .scroll_symbol a::before{
	opacity: 1;
}
@media screen and (min-width: 768px) {
	.scroll_logo{
		width: 95px;
	}
	.scroll_symbol{
		width: 55px;
	}
}
@media screen and (min-width: 1200px) {
	.scroll_logo{
		width: 110px;
	}
	.scroll_symbol{
		width: 60px;
	}
}

/**** header_right ****/
.header_right{
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
@media screen and (min-width: 768px){
	.header_right{
		margin-left: auto;
	}
}

/* TRIGGER */
.menu-trigger {
	width: 32px;
	height: 7px;
	position: relative;
	cursor: pointer;
	z-index: 1001;
}
.menu-trigger span {
	width: 100%;
	height: 1px;
	background-color: #fff;
	position: absolute;
	left: 0;
	-webkit-transition: 0.2s;
	-o-transition: 0.2s;
	transition: 0.2s;
}
.menu-trigger span:nth-child(1) {
	top: 0;
}
.menu-trigger span:nth-child(2) {
	bottom: 0;
}
.menu-trigger.tgl-active span:nth-child(1) {
	top: 50%;
	-webkit-transform: translateY(-50%) rotate(20deg);
	-ms-transform: translateY(-50%) rotate(20deg);
	transform: translateY(-50%) rotate(20deg);
}
.menu-trigger.tgl-active span:nth-child(2) {
	top: 50%;
	bottom: unset;
	-webkit-transform: translateY(-50%) rotate(-20deg);
	-ms-transform: translateY(-50%) rotate(-20deg);
	transform: translateY(-50%) rotate(-20deg);
}
#header.is-dark .menu-trigger span, #header.header_page .menu-trigger span{
	background-color: #000;
}
body.fixed #header.is-dark .menu-trigger span, body.fixed #header.header_page .menu-trigger span{
	background-color: #fff;
}
/* is-darkとheader_pageの両方を上書きするため、それらより後ろに置く */
#header.is-light .menu-trigger span{
	background-color: #fff;
}
@media screen and (min-width: 768px){
	.menu-trigger{
		width: 38px;
		margin-left: 40px;
	}
	.menu-trigger.tgl-active{
		top: 0;
	}
}
@media screen and (min-width: 1200px){
	.menu-trigger{
		width: 42px;
		height: 14px;
		margin-left: 50px;
	}
}

/* MENU TOGGLE */
.menu-toggle {
	position: fixed;
	top: 0;
	right: 0;
	width: 200px;
	height: auto;
	z-index: 1000;
	transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	/* レイアウト系は閉じるときも変えない（.toggle_inner がズレるため） */
	background-color: rgba(0,0,0,0.8);
	color: #fff;
	border-bottom-left-radius: 20px;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.menu-toggle::-webkit-scrollbar {
	display: none;
}
/*menu-toggle.active*/
.menu-toggle.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	overflow-y: auto; /* scroll → autoに変更して、スクロールバーが必要な時だけ出す */
}
.toggle_inner{
	/*width: 89.74358%;*/
	width: 84.744%;
	margin: 0 auto;
	padding: 0 0 120px;
}
.tgl-nav{
	margin-bottom: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.tgl-nav li{
	line-height: 1.75;
}
.tgl-nav a{
	display: inline-block;
	color: #fff;
	font-size: 1.28rem;
	transition: .4s;
}
.tgl-nav a:hover{
	text-decoration: none;
	opacity: 0.8;
}
@media screen and (min-width: 768px) {
	.menu-toggle, .menu-toggle.active{
		width: auto;
		height: 60px;
		padding: 0 120px 0 25px;
	}
	.menu-toggle{
		top: 18px;
		right: calc(5% - 15px);
		border-radius: 35px;
		align-items: center;
	}
	.toggle_inner{
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.tgl-nav{
		flex-direction: row;
	}
	.tgl-nav li + li{
		margin-left: 25px;
	}
	.tgl-nav a{
		font-size: 1rem;
	}
}
@media screen and (min-width: 1200px) {
	.menu-toggle{
		top: 22px;
		right: calc(5% - 23px);
	}
	.menu-toggle, .menu-toggle.active{
		height: 70px;
		padding: 0 225px 0 28px;
	}
}
@media screen and (max-width: 767px) {
	.menu-toggle, .menu-toggle.active{
		min-height: 525px;
	}
	.tgl-nav li + li{
		margin-top: 2.214rem;
	}
}

/****************************************
/* 画像100% page header
****************************************/
.lineup_head{
	position: relative;
}
.lineup_head .head_jp{
	display: none;
}
.lineup_head_image{
	width: 100%;
	height: 100vh;
	height: 100svh;
	position: relative;
}
.lineup_head_image img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lineup_head_image::after{
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(27,32,36,0.25);
}
.lineup_head_txtArea{
	position: absolute;
	z-index: 1;
	width: 90%;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	color: #fff;
	display: block;
}
.lineup_head_txtArea .f34{
	line-height: 2;
	letter-spacing: 0.1em;
	margin-bottom: 0;
}


/********************
/* ページheader
********************/
.page_head{
	padding-top: 10.615rem;
	padding-bottom: 7.428rem;
	position: relative;
	/* .head_jptitが.sq90対策でwidth:111.111%を持つ。scaleX(0.9)で見た目は100%に戻るが
	   レイアウト上のボックスは1.111倍のままなので、そのままだと右へはみ出して
	   ページ全体に横スクロールが出る。はみ出す11%は見えない領域なのでここで切る */
	overflow: hidden;
}
.page_head.bd{
	margin-bottom: 5.21rem;
	padding-bottom: 2.857rem;
}
.page_head.bd::after{
	position: absolute;
	content: "";
	width: 100%;
	height: 1px;
	background-color: rgba(60,60,60,0.5);
	left: 0;
	bottom: 0;
}
.head_entit{
	font-size: 3.57rem;
	line-height: 1;
	margin-bottom: 0.14rem;
	/* .sq105は左基準でscaleX(1.05)するため、ボックスが全幅のままだと
	   右へ5%ぶん広がって描画され（transform後の領域はスクロール範囲に入る）、
	   ページに横スクロールが出る。文字ぶんの幅だけ持たせて、はみ出しをなくす */
	width: fit-content;
}
.head_jptit{
	font-size: 0.857rem;
	color: #787878;
	margin-bottom: 0;
	/* .sq90（水平比率90%）が付くため、幅は1.111倍で持たせる。
	   scaleXは見た目だけを変え折り返し判定には効かないので、そのままだと
	   .page_headの幅で折り返してから0.9倍に縮み、右に約10%の余白が残る。
	   はみ出す11%は.page_headのoverflow:hiddenで切られる */
	width: 111.111%;/* 100 / 0.9 */
}
@media screen and (min-width: 768px) {
	.page_head{
		padding-top: 15rem;/* 210px */
		padding-bottom: 12.35rem;
	}
	.page_head.bd{
		margin-bottom: 7.714rem;
		padding-bottom: 4.678rem;
	}
	.head_entit{
		font-size: 5.35rem;
		margin-bottom: 0.5rem;
	}
	.head_jptit{
		font-size: 1rem;
	}
}
@media screen and (min-width: 1200px) {
	.page_head{
		padding-top: 17.533rem;
		padding-bottom: 16.33rem;
	}
	.page_head.bd{
		padding-bottom: 6.066rem;
		margin-bottom: 9.33rem;
	}
	.head_entit{
		font-size: 6.66rem;
		margin-bottom: 0.6rem;
	}
	.head_jptit{
		font-size: 1.2rem;
	}
}
/* service用header */
.service_head .head_jptit{
	margin-bottom: 4.57rem;
}
.head_text{
	margin-bottom: 3.85rem;
}
/* head_text … ACFリッチエディター header_text の中身（<p class="sq90">）。
   幅を1.111倍で持たせる理由は上の.head_jptitと同じ（折り返しを見た目の端まで届かせる）。
   はみ出す11%は.page_headのoverflow:hiddenで切られる。
   .sq90のtransform-originは左（contents.cssの既定）のままでよい。
   左揃えは左端がそのまま基準になり、右揃えも、レイアウト上111.111%の位置にある文字の右端が
   0.9倍されてちょうど100%＝.page_headの右端に重なるので、どちらも端に揃う */
.head_text p{
	width: 111.111%;/* 100 / 0.9 */
	text-align: left;
	margin-bottom: 0;
}
/* head_img … スラッグから自動で出すヘッダー画像（header.php）。
   表示・非表示の切り替えは.sp-none / .pc-none（contents.css）が持つので、
   ここでdisplayは指定しない（指定すると詳細度で勝ってPC/SPの出し分けを壊す） */
.haed_img img{
	width: 100%;
	height: auto;
}
@media screen and (min-width: 992px) {
	.service_head .head_jptit{
		margin-bottom: 3.57rem;
	}
	.head_text p{
		text-align: right;
	}
}
@media screen and (min-width: 1200px) {
	.service_head .head_jptit{
		margin-bottom: 3.33rem;
	}
	.head_text{
		margin-bottom: 3.8rem;
	}
	.head_text p{
		font-size: 0.933rem;
	}
}
@media screen and (max-width: 767px) {
	.head_text p{
		text-align: justify;
	}
	/* 767px以下は画像を画面幅いっぱいに出す。
	   .page_headはcontainer_90（92.307%・左右中央）だが、overflow:hiddenが切り取るのは
	   パディングボックスまでなので、幅を100%にして左右の余白をmarginからpaddingへ移し替えれば、
	   その余白ぶんだけネガティブマージンで戻した画像は切られずに全幅で出せる。
	   3.8465% =（100 - 92.307）/ 2（画面幅に対する片側の余白）
	   4.16667% = 3.8465 / 92.307（.page_headのコンテンツ幅に対する同じ余白）
	   画像を持たないページの.bd::after（罫線）まで全幅になってしまわないよう:has()で限定する */
	.page_head:has(.haed_img){
		width: 100%;
		padding-left: 3.8465%;
		padding-right: 3.8465%;
	}
	.haed_img{
		margin-left: -4.16667%;
		margin-right: -4.16667%;
	}
}