/* =========================================================
 * RESTAURANT（ブロックエディタ版）専用
 * inc/function-block.php により、対象ページとその編集画面でのみ読み込む。
 * 元ページ（/restaurant/・archive-restaurant.php）は body に
 * .post-type-archive-restaurant が付き、その指定で見た目が決まっていた。
 * このページには付かないため、同じ内容を .restaurant-page に当て直す。
 * ======================================================= */

/* 元ページで div 直下の文字だった部分（段落ブロック化したもの）は余白なし・親の文字設定を継承 */
.restaurant-page p.fb-t {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

/* スクロールで表示する演出：元と同じく表示前は透明（表示時は main.js が opacity:1 を付ける） */
.restaurant-page .animated {
	opacity: 0;
}

/* ---------------------------------------------------------
 * レストラン2店の写真ボックス
 * style_renew.css の .concept-four-box と同じ指定（編集画面には style_renew.css が
 * 読み込まれないため、ここにも書いておく）＋ 元ページ専用の余白
 * ------------------------------------------------------- */
.restaurant-page .concept-four-box {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: 8px;
	padding: 160px;
}
.restaurant-page .concept-four-box .bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-position: center;
	background-size: cover;
	transition: var(--tr-fast);
}
.restaurant-page .concept-four-box:hover .bg-img {
	transform: scale(1.1);
}
.restaurant-page .concept-four-box::before {
	position: absolute;
	content: '';
	background-color: rgba(0, 0, 0, .4);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transition: ease .3s all;
}
.restaurant-page .concept-four-box::after {
	position: absolute;
	content: '';
	width: 90%;
	height: 90%;
	top: 50%;
	left: 50%;
	opacity: 0;
	transform: translate(-60%, -50%);
	border: 1px solid var(--c-white);
	transition: ease .3s all;
}
.restaurant-page .concept-four-box:hover::before {
	background-color: rgba(0, 0, 0, .6);
}
.restaurant-page .concept-four-box:hover::after {
	transform: translate(-50%, -50%);
	opacity: 1;
}
.restaurant-page .concept-four a {
	display: block;
}
.restaurant-page .concept-four a:hover {
	opacity: 1;
}
.restaurant-page .concept-four-box .inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 100%;
	color: var(--c-white);
}
.restaurant-page .concept-four-box h2 {
	font-size: 1.8rem;
}
/* 見出し内のリンク（JS で箱全体のリンクに置き換えるまで／編集画面）は文字色を変えない */
.restaurant-page .concept-four-box .section-title a {
	display: inline;
	color: inherit;
}
@media (min-width: 768px) {
	.restaurant-page .concept-four-box {
		padding: 200px 1em;
	}
}

/* バナー（リストブロック）：元の ul と同じく余白なし */
.restaurant-page .bnrarea ul.wp-block-list {
	margin: 0;
}
