/*
 * 旧サイトの CSS（legacy/）の後に読む「部品の違いの吸収」だけを書く。
 * 旧サイトの見た目そのものは legacy/（旧サイトの公開中の CSS を変換したもの）が正。
 */

/* 旧サイトの <picture> は、ブロックでは画像ブロック（figure）になる */
html:root :where(.wp-site-blocks) figure.wp-block-image {
	line-height: 0;
}

/* 旧サイトでは <p> だったもの（フッターのロゴ・電話番号） */
html:root .footer .footer_fill figure.footer_logo,
html:root .footer .footer_fill figure.footer_tel {
	color: #3d2020;
	font-size: 18px;
	line-height: 1.8;
}

/* SVG のロゴ・電話番号の大きさ（旧サイトでは img の width 属性。画像ブロックでは style 属性になるため CSS で） */
html:root .footer_logo img {
	width: 200.266px;
}

html:root .footer_tel img {
	width: 289.922px;
}

/* 旧サイトでは <li> だったもの（バナー） */
html:root .banner_link > .wp-block-image {
	padding: 9px;
	color: #3d2020;
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 900px) {
	html:root .banner_link > .wp-block-image {
		width: 50%;
		text-align: center;
	}
}

/* imsalt のバナーの枠線（旧サイトのページの中の <style>：.banner_link .bnr_border { border: 1px solid #000 }。旧サイトでは img に付く。2026-11-20 確認） */
html:root .banner_link > .bnr_border img {
	box-sizing: border-box;
	border: 1px solid #000;
}

/* スライダー（旧サイトの slick と同じく、画像の下にすき間を作らない） */
html:root .slider_inner img {
	display: block;
}

/* 青い帯のメニューは、トップページでは出さない（旧サイトと同じ） */
html:root body.home .nav {
	display: none;
}

/* スマホのメニューボタン（旧サイトの <p> をボタンにした分の打ち消し） */
html:root button.menu-trigger {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	font: inherit;
	appearance: none;
}

/* 地図ブロックのエディター表示 */
.ys-map-placeholder {
	padding: 40px;
	background-color: #ebecec;
	text-align: center;
}

/* ---------------------------------------------------------------- 固定ページ */

/* 旧サイトの common.css の CUSTOM 部分（入れ子の書き方だったため変換ツールでは扱わない。1rem = 10px） */
html:root .gmap iframe {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
}

html:root .col-2 {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

html:root .col-2 .col-item {
	width: calc(50% - 10px);
}

/* 旧サイトで div の中に直に置かれていた画像（行の中の画像と同じ並び方） */
html:root figure.wp-block-image.ys-inline {
	line-height: inherit;
}

html:root .ys-inline img {
	vertical-align: baseline;
}

/* 旧サイトでは <li> の中だった画像（li の文字の大きさ・色） */
html:root figure.wp-block-image.ys-li {
	color: #3d2020;
	font-size: 18px;
}

/* 旧サイトの img の width 属性が実寸と違ったもの（スタッフの写真） */
html:root .ys-w444 img {
	width: 444px;
}

/* 旧サイトの style 属性の置き換え */
html:root .wp-site-blocks .has-text-align-center {
	text-align: center;
}

html:root .wp-site-blocks .ys-mb-2rem {
	margin-bottom: 20px;
}

/* 旧サイトでは <dl>（所在地・営業時間・TEL） */
html:root .ys-dl {
	color: #3d2020;
	font-size: 18px;
}

/* 雪塩体験：見出しの丸の中の英語（旧サイトは title 属性を content: attr(title) で出していた） */
html:root .box_learn .box_guide_heading .heading::after {
	content: "learn";
}

html:root .box_see .box_guide_heading .heading::after {
	content: "see";
}

html:root .box_experience .box_guide_heading .heading::after {
	content: "experience";
}

/* 雪塩体験：定時ガイドの表（旧サイトではページ内の <style>。表ブロックは figure > table になる） */
html:root .custom-table-container {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

html:root .wp-site-blocks .custom-table {
	margin: 0;
	overflow: visible;
}

html:root .custom-table table {
	border-collapse: collapse;
	width: auto;
	min-width: 300px;
}

html:root .custom-table thead {
	border-bottom: 0;
}

html:root .custom-table th,
html:root .custom-table td {
	border: 1px solid #ccc;
	padding: 8px 16px;
	text-align: center;
}

html:root .custom-table th {
	background-color: #f5f5f5;
}

html:root .wp-site-blocks .note {
	margin-top: 8px;
	font-size: 0.95em;
	text-align: center;
}

/* よくあるご質問：タブの列の数（旧サイトではタブの div の style 属性） */
html:root .faq_tabs {
	--faq-columns: 2;
}

/* よくあるご質問ブロックのエディター */
.ys-faq-editor__item {
	margin: 0 0 16px;
	padding: 8px 0 8px 12px;
	border-left: 3px solid #ddd;
}

/* 旧サイトで div の中に直に置かれていた <a>・<span>（段落の箱を消して、旧サイトと同じ並びにする） */
html:root :where(.wp-site-blocks) p.ys-wrap {
	display: contents;
	color: inherit;
	font-size: inherit;
}
