@charset "UTF-8";
/* 施設を探す（検索・施設詳細）のスタイル
   共通部品は site.css。ここには足りない分だけ書く */

/* 写真がないときの枠（キャラ入り） */
.no-photo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--yellow-pale);
	border: 2px dashed var(--yellow);
	border-radius: 10px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	padding: 10px;
}
.no-photo img { width: 42%; max-width: 140px; }
.no-photo-lg { font-size: 19px; }
.no-photo-lg img { max-width: 200px; }

/* ---------- 検索の条件フォーム ---------- */
.search-form-section { padding: 32px 0 44px; }
.search-form {
	background: var(--white);
	border: 2px solid var(--ink);
	border-radius: 18px;
	padding: 28px 28px 32px;
	box-shadow: var(--shadow);
}
.sf-block { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.sf-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 10px;
	padding: 0;
}
.sf-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--orange);
	border: 2px solid var(--ink);
	color: var(--white);
	font-size: 19px;
	flex: none;
}
.sf-hint { font-family: var(--font-body); font-size: 16px; font-weight: 400; }
.sf-select { max-width: 520px; cursor: pointer; }
.sf-block .note { margin: 8px 0 0; }
#sf-keyword { max-width: 520px; }

/* 施設の種類（大きなチェック） */
.sf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.sf-type { display: flex; align-items: flex-start; padding: 12px 16px; height: 100%; }
.sf-type input { margin-top: 4px; width: 28px; height: 28px; }
.sf-type-body { display: flex; flex-direction: column; }
.sf-type-name { font-size: 19px; }
.sf-type-note { font-size: 15px; font-weight: 400; line-height: 1.6; }

/* さらに条件をしぼる */
.sf-more { border: 2px solid var(--ink); border-radius: 14px; background: var(--bg); margin-bottom: 28px; }
.sf-more summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 14px;
	min-height: 60px;
	padding: 12px 56px 12px 20px;
	position: relative;
	font-family: var(--font-head);
	font-size: 21px;
	font-weight: 700;
}
.sf-more summary::-webkit-details-marker { display: none; }
.sf-more summary::after {
	content: "＋ ひらく";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--btn);
}
.sf-more[open] summary::after { content: "－ とじる"; }
.sf-more summary { padding-right: 120px; }
.sf-more-sub { font-family: var(--font-body); font-size: 16px; font-weight: 400; }
.sf-more-body { padding: 4px 20px 20px; border-top: 2px dashed var(--yellow); }
.sf-sub { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.sf-sub legend { font-size: 19px; font-weight: 700; padding: 0; margin-bottom: 6px; }
.sf-sub legend .sf-hint { margin-left: 10px; }
.sf-sub .note { margin: 0 0 8px; }
.sf-choices { display: flex; flex-wrap: wrap; gap: 10px; }

/* スマホで条件をたたんだときの「今の条件」と「条件を変える」（PCでは出さない） */
.sf-fold { display: none; }

.sf-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.sf-submit .btn { min-width: 300px; }
.sf-clear { font-weight: 700; padding: 12px 4px; }

/* ---------- 検索結果 ---------- */
.result-section { border-top: 4px solid var(--yellow); }
.result-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 18px;
	font-size: 26px;
	margin-bottom: 4px;
}
.result-count { white-space: nowrap; }
.result-count strong { font-size: 36px; color: var(--btn); margin-right: 2px; }
.result-range { margin-bottom: 20px; }

.result-list { list-style: none; padding: 0; margin: 0; }
.result-item {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	padding: 24px 0;
	border-top: 2px dashed var(--line);
}
.result-item:last-child { border-bottom: 2px dashed var(--line); }
.result-photo { display: block; }
.result-photo > img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 2px solid var(--ink);
	border-radius: 10px;
}
.result-name { font-size: 24px; margin-bottom: 6px; }
.result-name a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.result-addr { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.result-addr .icon { color: var(--btn); margin-top: .3em; }
.result-fee { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 10px; }
.result-fee div { display: flex; align-items: baseline; gap: 10px; background: var(--yellow-pale); border-radius: 8px; padding: 4px 14px; }
.result-fee dt { font-size: 16px; font-weight: 700; }
.result-fee dd { margin: 0; font-size: 20px; font-weight: 700; }
.result-text { font-size: 17px; }
.result-btns { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.result-btns .btn { min-width: 200px; }

/* ページ送り */
.pager { margin-top: 36px; text-align: center; }
.pager-main { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 20px; }
.pager-main .btn { min-width: 220px; }
.pager-nums { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager-nums a, .pager-nums span[aria-current] {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 52px;
	padding: 0 8px;
	border: 2px solid var(--ink);
	border-radius: 10px;
	font-weight: 700;
	font-size: 19px;
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
}
.pager-nums a:hover { background: var(--yellow-pale); }
.pager-nums span[aria-current] { background: var(--ink); color: var(--white); }

/* 0件のとき */
.no-result { max-width: 820px; }
.no-result .talk { margin-bottom: 24px; }
.no-result-title { font-size: 22px; margin-bottom: 10px; }
.relax-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.relax-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 56px;
	padding: 8px 16px;
	background: var(--white);
	border: 2px solid var(--ink);
	border-radius: 12px;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}
.relax-list a:hover { background: var(--yellow-pale); }
.relax-list .count { font-size: 15px; background: var(--yellow-pale); border-radius: 999px; padding: 0 10px; white-space: nowrap; }
.no-result-call h3 { font-size: 22px; margin-bottom: 4px; }

/* ---------- 施設詳細 ---------- */
.detail-top { background: var(--white); border-bottom: 2px dashed var(--yellow); padding: 16px 0 40px; }
.detail-name { font-size: 34px; font-weight: 900; margin-bottom: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.detail-addr { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 20px; }
.detail-addr .icon { color: var(--btn); margin-top: .3em; }
.detail-addr a { white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.detail-photos { grid-column: 1; grid-row: 1; }
.detail-side { grid-column: 2; grid-row: 1; }

/* 費用の箱 */
.fee-box { padding: 24px 26px 18px; }
.fee-big { margin: 0; }
.fee-big div + div { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.fee-big dt { font-weight: 700; font-size: 17px; }
.fee-big dd { margin: 0; font-family: var(--font-head); font-size: 34px; font-weight: 900; color: var(--btn); line-height: 1.35; }
.fee-big dd.is-ask { font-size: 22px; color: var(--ink); }
.fee-box-note { margin: 10px 0 0; font-size: 16px; }
.detail-btns { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.detail-btns .btn { padding-left: 18px; padding-right: 18px; text-align: center; }
.detail-tel { line-height: 1.3; }
.detail-tel > span { display: flex; flex-direction: column; }
.detail-tel-num { font-family: var(--font-head); font-weight: 900; color: var(--btn); }
.detail-tel small { font-size: 15px; font-weight: 400; }

/* 写真 */
.photo-main { display: block; }
.photo-main img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 2px solid var(--ink);
	border-radius: 14px;
	background: var(--bg);
}
.photo-note { margin: 6px 0 10px; }
.photo-thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.photo-thumbs button {
	display: block;
	width: 100%;
	padding: 0;
	border: 3px solid var(--line);
	border-radius: 10px;
	background: var(--white);
	cursor: pointer;
	overflow: hidden;
}
.photo-thumbs button[aria-pressed="true"] { border-color: var(--btn); box-shadow: 0 0 0 2px var(--btn); }
.photo-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* 本文 */
.detail-section { padding: 44px 0; }
.detail-text { max-width: 860px; }

/* 施設からのご紹介 */
.detail-text-note { margin: -4px 0 14px; }
.detail-text + .detail-text { margin-top: 1em; }

/* ○／ー の表 */
.mark { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; line-height: 1; width: 1.4em; flex: none; }
.mark.is-yes { color: var(--btn); }
.mark.is-no { color: var(--ink-sub); }
.mark-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-bottom: 16px; }
.mark-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.level-tables { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 20px; }
/* 介護度ごとの○／ー（見出しと印を縦に並べたます目） */
.ok-grid { display: inline-grid; margin: 0; background: var(--white); border: 2px solid var(--ink); text-align: center; }
.ok-grid-3 { grid-template-columns: repeat(3, minmax(96px, auto)); }
.ok-grid-5 { grid-template-columns: repeat(5, minmax(96px, auto)); }
.ok-grid > div { border: 1px solid var(--line); }
.ok-grid dt { background: var(--yellow-pale); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ok-grid dd { margin: 0; padding: 8px 6px; }
.ok-grid dd .mark { font-size: 28px; }

/* 入居できる年齢 */
.age-line { font-size: 20px; font-weight: 700; margin: 0 0 20px; }

.flag-groups { max-width: 640px; margin-bottom: 12px; }
.flag-title { font-size: 20px; margin-bottom: 6px; }
/* 押せる部品に見えないよう、枠を付けず下線で区切る一覧にする */
.flag-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
.flag-list li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.flag-list-wide { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.flag-list-wide { border-top: 0; }
.flag-list-wide li:nth-child(-n+2) { border-top: 1px solid var(--line); }

/* 情報がまだ無いとき */
.no-flags { font-size: 19px; margin: 0; }

/* 費用の表 */
.fee-table th { width: 34%; }
.th-sub { display: block; font-size: 15px; font-weight: 400; }
.fee-num { display: block; font-size: 24px; color: var(--btn); }
.fee-notice { margin-top: 16px; }

/* 地図 */
.map-frame { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--white); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-link { margin: 12px 0 0; font-weight: 700; }
.map-link .icon { color: var(--btn); }

/* 最後のボタン */
.detail-end-talk { margin-bottom: 20px; }
.detail-end-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.detail-back { margin: 24px 0 0; }

/* 見つからないとき */
.not-found-title { font-size: 26px; margin-bottom: .3em; }
.not-found-btns { margin-top: 28px; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
	.detail-grid { grid-template-columns: 1fr; gap: 20px; }
	.detail-photos, .detail-side { grid-column: 1; grid-row: auto; }
	.result-item { grid-template-columns: 200px 1fr; gap: 18px; }
}
@media (max-width: 600px) {
	.search-form-section { padding: 20px 0 32px; }
	.search-form { padding: 20px 16px 24px; border-radius: 14px; }
	.sf-label { font-size: 20px; }
	.sf-types { grid-template-columns: 1fr; }
	.sf-more summary { font-size: 19px; padding: 12px 16px 12px 16px; }
	.sf-more summary::after { position: static; transform: none; width: 100%; }
	.sf-more-body { padding: 4px 14px 16px; }
	.sf-choices .choice { flex: 0 1 auto; }
	.result-photo .no-photo { aspect-ratio: 2 / 1; flex-direction: row; }
	.result-photo .no-photo img { width: 80px; }
	.sf-submit .btn { width: 100%; min-width: 0; }
	.result-title { font-size: 21px; }
	.result-count strong { font-size: 30px; }
	.result-item { grid-template-columns: 1fr; gap: 12px; }
	.result-photo { max-width: 360px; }
	.result-name { font-size: 21px; }
	.result-btns .btn { flex: 1 1 100%; }
	.pager-main .btn { flex: 1 1 100%; min-width: 0; }
	.detail-name { font-size: 23px; }
	.not-found-title { font-size: 22px; }
	.fee-big dd { font-size: 30px; }
	/* 要介護は3列×2段にして、文字を16px以上に保つ */
	.level-tables { flex-direction: column; }
	.ok-grid { display: grid; width: 100%; }
	.ok-grid-3, .ok-grid-5 { grid-template-columns: repeat(3, 1fr); }
	.ok-grid dt { font-size: 16px; padding: 8px 2px; }
	.flag-list-wide { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
	.flag-list-wide li:nth-child(-n+2) { border-top: 0; }
	.age-line { font-size: 19px; }
	/* 条件が指定されているときは、フォームをたたんで結果を先に見せる */
	.sf-fold:not([hidden]) { display: block; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
	.sf-fold-now { margin: 0 0 12px; font-weight: 700; }
	.sf-fold-label { display: block; font-size: 16px; font-weight: 400; }
	.sf-fold-btn { width: 100%; }
	.can-fold.is-folded .search-form { display: none; }
	.can-fold .sf-fold:not([hidden]) + .search-form { margin-top: 16px; }
	.can-fold.is-folded { padding-bottom: 20px; }
	.fee-table th { width: 100%; }
	.map-frame iframe { height: 320px; }
	.detail-end-btns .btn { width: 100%; }
	.no-photo-lg img { max-width: 150px; }
}
