/*
 * ONEstar・ONEsta の既定のうち、旧サイト（Nishiki Pro）に無いものを打ち消す。旧サイトの CSS（legacy/）より前に読む。
 */

/* ONEstar は body の折り返しを break-word にする。旧サイトは標準 */
:root body {
	overflow-wrap: normal;
	word-break: normal;
}

/* ONEstar の .wp-site-blocks（縦並び・最低でも 100vh）は旧サイトに無い箱。普通の箱にする */
html:root .wp-site-blocks {
	display: block;
	min-height: 0;
}

/* ONEstar は html を幅のコンテナにする（全幅の部品のため）。そのままだと body の背景がページ全体に広がらない。このサイトは使わない */
html:root {
	container-type: normal;
}

/* ONEsta は body の文字の大きさを設定画面の値（16px）にする。旧サイトは html の 18px を body も受け継いでいた */
html:root body {
	font-size: inherit;
}

/* 見出し：ONEstar の全体設定（色・書体・字間・行の高さ）は旧サイトに無い。旧サイトは親から受け継ぐ。
   強さは ONEstar と同じ（後に読むので勝つ）。旧 CSS の「h2 { … }」なども同じ強さで、さらに後に読むので旧 CSS が勝つ */
:where(.wp-site-blocks) :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
	font-family: inherit;
	letter-spacing: inherit;
	line-height: inherit;
}

/* ONEstar の全体設定の左右の余白（.has-global-padding・全幅の打ち消し）は旧サイトに無い */
html:root body {
	--wp--style--root--padding-right: 0;
	--wp--style--root--padding-left: 0;
}

/* 画像：ONEstar の全体設定の max-width: 100% は旧サイトに無い（狭い画面でメニューのボタンの画像が縮む）。
   強さは ONEstar と同じ（後に読むので勝つ）。WordPress のブロックの指定（.wp-block-image img など）と旧 CSS には負ける */
:where(.wp-site-blocks) img {
	max-width: none;
}
