@charset "UTF-8";
/* ==========================================================================
 * /maker/css/model_find.css
 *
 *   「いま使っている型番から交換機種を探す」の結果。
 *   検索ボタンの下に、交換できる現行品の候補を並べる部分。
 *
 *   家庭用ガス給湯器TOP（.gt-find）と 業務用ガス給湯器TOP（.bu-find）の
 *   どちらからも読む。検索窓そのものの見た目は各ページのCSSが持っていて、
 *   ここは <結果の一覧> だけを受け持つ。
 *
 *   【置かれる場所が明るいとは限らない】
 *   どちらのページも検索窓は濃い色のヒーローの中にある。文字色を親から
 *   もらうと読めなくなるので、結果は白い面として独立させ、色は全部
 *   ここで決めきる。リンクの下線も共通CSSに勝てるよう打ち消す。
 *   さし色だけは各ページの --dw2-accent に従う（青で固定しない）。
 * ========================================================================== */

[data-mf-result] {
	margin-top: 14px;
	padding: 14px;
	border-radius: 10px;
	background: #fff;
	color: #23313f;
	text-align: left;
}
[data-mf-result][hidden] { display: none; }

/* 共通CSSの a（下線・青）をここでは効かせない。
   ページによっては #contents a:hover のような強い指定があるので important で打ち消す。 */
[data-mf-result] .mf-c > a,
[data-mf-result] .mf-c > a:hover,
[data-mf-result] .mf-c > a:visited,
[data-mf-result] .mf-c > a span,
[data-mf-result] .mf-f a,
[data-mf-result] .mf-f a:hover { text-decoration: none !important; }

/* ---- 判定のひとこと ---- */
.mf-msg {
	margin: 0 0 12px;
	padding: 11px 14px;
	border-radius: 8px;
	background: #f2f5f8;
	color: #23313f;
	font-size: 14px;
	line-height: 1.75;
}
.mf-msg b { font-weight: 700; }
.mf-msg a {
	color: var(--dw2-accent, #0065cc);
	font-weight: 700;
	text-decoration: underline;
	margin-left: 4px;
}
.mf-msg.is-old { background: #fff6e8; color: #6b4a12; }
.mf-msg.is-old b { color: #b26a00; }
.mf-msg.is-cur { background: #eef7f0; color: #1f4a2c; }
.mf-msg.is-other { background: #eef2f8; color: #2c3e55; }
.mf-msg.is-none { background: #f7f2f2; color: #5c3a3a; }
.mf-msg.is-wait { background: #f2f5f8; color: #5b6976; }

/* ---- 候補の見出し ---- */
.mf-h {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #23313f;
}
.mf-h em {
	font-style: normal;
	color: var(--dw2-accent, #0065cc);
}
.mf-h span {
	font-weight: 500;
	font-size: 12px;
	color: #5b6976;
	background: #eef2f6;
	border-radius: 999px;
	padding: 2px 10px;
}

/* ---- 「この型番ではありませんか」（途中まで入力したとき） ---- */
.mf-sh {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #23313f;
}
.mf-sugg {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mf-sugg > li { margin: 0; padding: 0; background: none; }
.mf-sugg > li::before { content: none; }
.mf-sugg button {
	display: block;
	padding: 7px 12px;
	border: 1px solid #c9d2dc;
	border-radius: 999px;
	background: #fff;
	color: #23313f;
	font-family: inherit;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}
.mf-sugg button:hover {
	border-color: var(--dw2-accent, #0065cc);
	background: #f4f8fc;
}
.mf-sugg__m { display: block; font-size: 13.5px; font-weight: 700; }
.mf-sugg__k { display: block; font-size: 11px; color: #7a8794; }

/* ---- メーカーで絞り込む ---- */
.mf-mk {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}
.mf-mk button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #c9d2dc;
	border-radius: 999px;
	background: #fff;
	color: #23313f;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.mf-mk button img { display: block; height: 16px; width: auto; }
.mf-mk button em {
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #8a97a4;
	border-radius: 999px;
	padding: 2px 7px;
}
.mf-mk button:hover { border-color: var(--dw2-accent, #0065cc); background: #f4f8fc; }
.mf-mk button.is-on {
	border-color: var(--dw2-accent, #0065cc);
	box-shadow: 0 0 0 1px var(--dw2-accent, #0065cc) inset;
	background: #f4f8fc;
}
.mf-mk button.is-on em { background: var(--dw2-accent, #0065cc); }

/* 設置場所の行。メーカーの行と同じ見た目で、頭に見出しを付ける。 */
.mf-mk--pl, .mf-mk--sc { align-items: center; }
.mf-mk__t {
	align-self: center;
	font-size: 12px;
	font-weight: 700;
	color: #5b6976;
}
.mf-mk--pl button, .mf-mk--sc button { font-weight: 500; }

/* ---- 交換に要る部材 ---- */
.mf-need {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 10px;
	padding: 9px 12px;
	border-radius: 8px;
	background: #fff6e8;
	color: #6b4a12;
	font-size: 12px;
	line-height: 1.6;
}
.mf-need b { font-size: 12.5px; }
.mf-need span {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #fff;
	font-weight: 700;
	color: #b26a00;
}
.mf-need em { font-style: normal; font-weight: 500; font-size: 11px; color: #8a7a56; }

/* ---- 候補の一覧 ---- */
.mf-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-height: 800px;
	overflow-y: auto;
	/* スクロールできることが分かるように、余白と細い軌道を出す */
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: #b8c4d0 #eef2f6;
}
.mf-list::-webkit-scrollbar { width: 8px; }
.mf-list::-webkit-scrollbar-track { background: #eef2f6; border-radius: 4px; }
.mf-list::-webkit-scrollbar-thumb { background: #b8c4d0; border-radius: 4px; }
.mf-list > li { margin: 0; padding: 0; background: none; }
.mf-list > li::before { content: none; }

/* 1枚ぶんは上から順に読める縦並び。型番を横に詰めない。 */
.mf-c > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 11px 12px;
	border: 1px solid #d5dde5;
	border-radius: 9px;
	background: #fff;
	color: #23313f;
	transition: border-color .15s, box-shadow .15s;
}
/* 一覧は縦スクロールする枠の中にあるので、ここで上にずらすと
   いちばん上の1枚だけ枠の外にはみ出て、上の線が切れて見える。動かさない。 */
.mf-c > a:hover,
.mf-c > a:focus-visible {
	border-color: var(--dw2-accent, #0065cc);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .09);
}
.mf-c__why {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	color: #5b6976;
}
/* 写真＋文字。写真が無い品番は枠ごと消して文字を詰める。 */
.mf-c__b {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.mf-c__im {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #e6ebf0;
	border-radius: 6px;
}
.mf-c__b.is-noimg .mf-c__im { display: none; }
.mf-c__t { min-width: 0; }
.mf-c__m small {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	font-weight: 500;
	color: #7a8794;
	line-height: 1.5;
}
.mf-c__m {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	color: #23313f;
	overflow-wrap: anywhere;
}
.mf-c__mk {
	display: block;
	margin-top: 3px;
	line-height: 0;
}
.mf-c__mk img { display: block; height: 16px; width: auto; }
.mf-c__mk--txt {
	line-height: 1.5;
	font-size: 11px;
	color: #7a8794;
}
.mf-c__s {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.55;
	color: #5b6976;
}
/* タイプが変わる注意。見落とされると困るので色を分ける。 */
.mf-c__w {
	display: block;
	margin-top: 5px;
	padding: 4px 7px;
	border-radius: 4px;
	background: #fdecec;
	color: #9c2a2a;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
}
/* この機種に替えるときに要る部材。金額には足しこんである。 */
.mf-c__p {
	display: block;
	margin-top: 5px;
	padding: 4px 7px;
	border-radius: 4px;
	background: #fff6e8;
	color: #6b4a12;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
}
.mf-c__p b { color: #b26a00; }
/*	添え書き（設置のしかたにより一部が必要）は次の行に回して、
	点数と金額が1行で読めるようにする。 */
.mf-c__p em {
	display: block; margin-top: 1px;
	font-style: normal; font-weight: 400; font-size: 10.5px; line-height: 1.5;
}
/* 部材が無いカードは枠ごと出さない。
   上の display:block が hidden 属性に勝ってしまうので、ここで打ち消す。 */
.mf-c__p[hidden] { display: none; }
/* 部材が要らない／分からないことを書くところ。色は付けない。 */
.mf-c__pn {
	display: block;
	margin-top: 5px;
	font-size: 11px;
	line-height: 1.5;
	color: #7a8794;
}
.mf-c__pn[hidden] { display: none; }
.mf-c__pn--may { color: #8a7a56; }

/* 幅が狭くなる場合（アダプタで対応できる）。危険ではないので色を分ける。 */
.mf-c__f {
	display: block;
	margin-top: 5px;
	padding: 4px 7px;
	border-radius: 4px;
	background: #eef2f8;
	color: #2c3e55;
	font-size: 11px;
	line-height: 1.5;
}

/* 工事上の注意（メーカーの記載そのまま）。
   長いので2行で止めて、続きは「全文を見る」で読めるようにする。 */
.mf-c__n {
	display: block;
	margin-top: 4px;
	font-size: 10.5px;
	line-height: 1.6;
	color: #7a8794;
	max-height: 3.2em;          /* 2行ぶん */
	overflow: hidden;
	position: relative;
	padding-right: 64px;
}
.mf-c__more {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 1px 6px;
	border: 1px solid #c9d2dc;
	border-radius: 999px;
	background: #fff;
	color: #2c3e55;
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
}
.mf-c__more:hover { border-color: var(--dw2-accent, #0065cc); background: #f4f8fc; }

/* 注意文の全文。画面の中央に出す。 */
.mf-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.mf-modal[hidden] { display: none; }
.mf-modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.mf-modal__box {
	position: relative;
	width: min(560px, 100%);
	max-height: 78vh;
	overflow-y: auto;
	padding: 20px 22px 18px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.mf-modal__t {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #23313f;
	line-height: 1.5;
}
.mf-modal__b { font-size: 13px; line-height: 1.85; color: #23313f; }
.mf-modal__b ul { margin: 0; padding-left: 1.2em; }
.mf-modal__b li { margin: 0 0 7px; background: none; }
.mf-modal__b li::before { content: none; }
.mf-modal__b p { margin: 0; }
.mf-modal__x {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 10px;
	border: 1px solid #c9d2dc;
	border-radius: 7px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #23313f;
	cursor: pointer;
}
.mf-modal__x:hover { background: #f4f7f9; }
.mf-c__y {
	display: block;
	/* 上の行数がちがっても、金額とボタンはカードの下でそろえる */
	margin-top: auto;
	padding-top: 8px;
	font-size: 11px;
	color: #5b6976;
	line-height: 1.5;
}
.mf-c__y b {
	font-size: 19px;
	color: #c1272d;
	letter-spacing: -.01em;
}
/* 「円」を金額から改行しない。ただし但し書きは行を分ける。 */
.mf-c__y small { display: block; font-size: 10px; color: #7a8794; line-height: 1.5; }
.mf-c__y--ask { font-size: 13px; font-weight: 700; color: #5b6976; }
.mf-c__go {
	display: block;
	padding-top: 7px;
}
.mf-c__go::after {
	content: attr(data-l);
	display: block;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--dw2-accent, #0065cc);
	border-radius: 6px;
	padding: 7px 8px;
}
.mf-c > a:hover .mf-c__go::after { filter: brightness(1.08); }

/* 候補の出どころで色を分ける。
     交換実績あり … 緑（当社が実際にその機種に替えている＝いちばん確か）
     メーカー案内 … さし色（後継型式・取替案内）
     同じ条件     … 灰（条件が合うというだけ）
   いちばん上の1件だけ枠を付けて目立たせる。 */
.mf-c.is-real .mf-c__why,
.mf-c.is-self .mf-c__why { color: #1f7a45; }
.mf-c.is-succ .mf-c__why,
.mf-c.is-rep  .mf-c__why { color: var(--dw2-accent, #0065cc); }
.mf-c.is-same .mf-c__why { color: #7a8794; }

.mf-c.is-top > a {
	border-color: var(--dw2-accent, #0065cc);
	box-shadow: 0 0 0 1px var(--dw2-accent, #0065cc) inset;
}
.mf-c.is-real.is-top > a,
.mf-c.is-self.is-top > a {
	border-color: #1f7a45;
	box-shadow: 0 0 0 1px #1f7a45 inset;
}
.mf-c.is-real.is-top .mf-c__go::after,
.mf-c.is-self.is-top .mf-c__go::after { background: #1f7a45; }

@media screen and (max-width: 640px) {
	[data-mf-result] { padding: 12px 11px; }
	.mf-c__im { width: 56px; height: 56px; }
	.mf-list { grid-template-columns: 1fr; max-height: 400px; }
	.mf-c__y b { font-size: 17px; }
}
