@charset "utf-8";
/**
 * edit.css
 * Edit screen override
 */

@import 'block_width_editor';
@import 'block_width_editor-non-iframe';
@import 'plugin-override/vk-blocks-override-width_editor';

.edit-post-visual-editor__post-title-wrapper {
	margin-bottom: 1.5rem;
}

.site-logo--set .wp-block-site-logo .custom-logo {
	height: auto;
}
// Reset Header Fixed in Editor
:is( 
	.block-editor-block-list__layout, /* since WordPress 6.6 */
	.edit-site-editor-canvas__block-list, /* since WordPress 6.5 */
	.edit-site-block-editor__block-list /* up to WordPress 6.4 */
	) {
		& *[class*="scrolled-header-fixed"]{
			position: relative;
			top: 0;
		}
		& :is(.scrolled-header-fixed, .is-style-scrolled-header-fixed)::after {
			position: absolute;
			top:0;
			font-size: 12px;
			color: #fff;
			background-color: var(--wp-admin-theme-color);
			padding: 2px 5px;
			line-height: 1.1;
			width: fit-content;
			height: fit-content;
			border-radius: 0;
			content: 'This is .scrolled-header-fixed';
		}
}

// reset block margin top
:is(.is-layout-constrained, .wp-site-blocks)>*+ :is(.wp-block-spacer,
	.wp-block-separator,
	.wp-block-columns,
	.wp-block-navigation,
	.wp-block-query,
	.wp-block-archives) {
	margin-top: 0;
	margin-block-start: 0;
}

/* Spacer ------------------------------------------------- */

.wp-block-spacer {
	border: 1px dashed var(--wp--preset--color--border-normal);
}

.is-layout-constrained>.wp-block-spacer+* {
	margin-block-start: 0;
}

/* navigation ------------------------------------------------- */
// First level & Horizontal only
 nav:where(:not(:is(.is-vertical,[class*="is-style-nav--vertical"] ))) .wp-block-navigation__container > .wp-block-navigation-item {
	& > .wp-block-navigation-item__content {
		text-align: center;
	}
 }

.wp-block-navigation[class*='nav--vertical-with-hr']  {
	.wp-block-navigation__container.block-editor-block-list__layout{
		width:100%;
	}
}

// コアが padding:0 付けてきて余白がなくなるので上書き
.wp-block-navigation[class*='nav--text-inline'] .wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){
	padding-left: var(--nav-top-item-padding-horizontal);
}

/* group ------------------------------------------------- */
*[class*="is-position-fixed"]{
	width:100%;
}

// パターン一覧などの iframe で position:fixed だと表示自体されなくなってしまうので補正
.block-editor-iframe__body .is-preview-mode .is-position-fixed {
	position: relative !important;
}