@charset "UTF-8";
/* ==========================================================================
   老犬老猫ケアノート｜スマホ下部ナビ（全ページ共通）
   959px以下で表示。ホーム／さがす／読む ＋ ボトムシート
   ========================================================================== */
.rcn-bnav,
.rcn-sheet {
	--rcn-main: #c4a882;
	--rcn-ink: #4a3a2a;
	--rcn-teal: #8b6b45;
	--rcn-muted: #85786a;
	--rcn-line: #ece4d8;
	--rcn-bg: #fcfaf6;
	--rcn-mint: #f3ebdf;
	--rcn-bnav-h: 64px;
	-webkit-tap-highlight-color: transparent;
}
.rcn-bnav .rcn-ico,
.rcn-sheet .rcn-ico { width: 1em; height: 1em; flex: none; }

.rcn-bnav { display: none; }

@media (max-width: 959px) {
	/* SWELLは #body_wrap にクラスが付く */
	.rcn-has-bnav { padding-bottom: calc(var(--rcn-bnav-pad, 64px) + env(safe-area-inset-bottom)) !important; }

	.rcn-bnav {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
		height: calc(var(--rcn-bnav-h) + env(safe-area-inset-bottom));
		padding: 0 8px env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: saturate(1.4) blur(12px);
		backdrop-filter: saturate(1.4) blur(12px);
		border-top: 1px solid var(--rcn-line);
		box-shadow: 0 -4px 20px rgba(90, 66, 40, .06);
		transition: transform .28s ease;
	}
	.rcn-bnav.is-hidden { transform: translateY(100%); }

	.rcn-bnav__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 48px;
		margin: 0; padding: 6px 0;
		font-family: inherit;
		font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.2;
		color: var(--rcn-muted) !important;
		text-decoration: none !important;
		background: none; border: 0; border-radius: 12px;
		cursor: pointer;
		position: relative;
		transition: color .2s, transform .12s;
	}
	.rcn-bnav__item .rcn-ico { width: 26px; height: 26px; }
	.rcn-bnav__item:active { transform: scale(.94); }
	.rcn-bnav__item.is-current { color: var(--rcn-ink) !important; }
	.rcn-bnav__item.is-current .rcn-ico { fill: var(--rcn-mint); stroke: var(--rcn-ink); }
	.rcn-bnav__item.is-current::before {
		content: ""; position: absolute; top: 0; left: 50%;
		width: 28px; height: 3px; margin-left: -14px;
		background: var(--rcn-main); border-radius: 0 0 3px 3px;
	}
	.rcn-bnav__item:focus-visible { outline: 3px solid #c4a882; outline-offset: -3px; }

	/* SWELLの固定フッターメニューと重ならないように非表示 */
	.rcn-has-bnav #fix_bottom_menu, html.rcn-bnav-on #fix_bottom_menu { display: none !important; }
	/* SWELLの「ページトップ」「目次」ボタンをナビの上へ */
	.rcn-has-bnav .p-fixBtnWrap,
	html.rcn-bnav-on .p-fixBtnWrap {
		bottom: calc(var(--rcn-bnav-h, 64px) + 14px + env(safe-area-inset-bottom)) !important;
		transition: bottom .28s ease;
	}
	html.rcn-bnav-hidden .p-fixBtnWrap { bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- ボトムシート ---------- */
.rcn-sheet {
	position: fixed; inset: 0; z-index: 10000;
	display: flex; align-items: flex-end; justify-content: center;
}
.rcn-sheet[hidden] { display: none; }
.rcn-sheet.is-closing { pointer-events: none; }
.rcn-sheet__backdrop {
	position: absolute; inset: 0;
	background: rgba(52, 40, 28, .38);
	animation: rcn-fade .25s ease both;
}
.rcn-sheet__panel {
	position: relative;
	width: 100%; max-width: 560px;
	max-height: 86vh; max-height: 86dvh;
	overflow-y: auto; overscroll-behavior: contain;
	background: var(--rcn-bg);
	border-radius: 24px 24px 0 0;
	padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .12);
	animation: rcn-sheet-up .3s cubic-bezier(.2, .8, .2, 1) both;
	color: #4d4339;
	font-size: 15px;
	line-height: 1.6;
}
.rcn-sheet.is-closing .rcn-sheet__panel { animation: rcn-sheet-down .22s ease both; }
.rcn-sheet.is-closing .rcn-sheet__backdrop { animation: rcn-fade .22s ease reverse both; }
@keyframes rcn-sheet-up { from { transform: translateY(100%); } }
@keyframes rcn-sheet-down { to { transform: translateY(100%); } }
@keyframes rcn-fade { from { opacity: 0; } }

.rcn-sheet__grip { width: 40px; height: 5px; margin: 0 auto 14px; background: #e2d6c4; border-radius: 3px; }
.rcn-sheet__title {
	margin: 0 0 14px !important;
	font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
	font-size: 18px; font-weight: 700; color: var(--rcn-ink);
}
.rcn-sheet__sub { margin: 20px 0 10px !important; font-size: 13px; font-weight: 700; color: var(--rcn-muted); }

.rcn-sheet__form { display: flex; gap: 8px; margin: 0; }
.rcn-sheet__form input[type="search"] {
	flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 18px;
	font-size: 16px; /* iOSでズームしないよう16px */
	color: #333; background: #fff;
	border: 2px solid var(--rcn-line); border-radius: 999px;
	-webkit-appearance: none; appearance: none;
	box-shadow: none;
}
.rcn-sheet__form input[type="search"]:focus { border-color: var(--rcn-ink); outline: none; }
.rcn-sheet__form button {
	flex: none; width: 52px; height: 52px; padding: 0;
	display: grid; place-items: center;
	color: #fff; background: var(--rcn-teal);
	border: 0; border-radius: 50%; cursor: pointer;
}
.rcn-sheet__form button .rcn-ico { width: 22px; height: 22px; }

.rcn-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rcn-sheet__chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px;
	font-size: 14px; font-weight: 700; color: var(--rcn-ink) !important; text-decoration: none !important;
	background: #fff; border: 1px solid var(--rcn-line); border-radius: 999px;
}
.rcn-sheet__chip:active { background: var(--rcn-mint); }

.rcn-sheet__themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rcn-sheet__theme {
	display: flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 8px 12px;
	font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--rcn-ink) !important; text-decoration: none !important;
	background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(90, 66, 40, .06);
}
.rcn-sheet__themeicon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--rcn-mint); }
.rcn-sheet__themeicon .rcn-ico { width: 20px; height: 20px; }

.rcn-sheet__list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; overflow: hidden; }
.rcn-sheet__list li { margin: 0; padding: 0; border-bottom: 1px solid var(--rcn-line); }
.rcn-sheet__list li:last-child { border-bottom: 0; }
.rcn-sheet__list li::before { content: none; }
.rcn-sheet__list a {
	display: flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 10px 14px;
	font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--rcn-ink) !important; text-decoration: none !important;
}
.rcn-sheet__list a span { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcn-sheet__list a .rcn-ico { width: 16px; height: 16px; color: var(--rcn-muted); }
.rcn-sheet__more {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	margin-top: 12px; min-height: 44px;
	font-size: 14px; font-weight: 700; color: var(--rcn-ink) !important; text-decoration: none !important;
}
.rcn-sheet__more .rcn-ico { width: 18px; height: 18px; }

.rcn-sheet__close {
	display: block; width: 100%; height: 48px; margin-top: 18px;
	font-family: inherit; font-size: 15px; font-weight: 700; color: var(--rcn-ink);
	background: #fff; border: 1px solid var(--rcn-line); border-radius: 999px; cursor: pointer;
}

html.rcn-sheet-open, html.rcn-sheet-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.rcn-bnav, .rcn-sheet__panel, .rcn-sheet__backdrop, .rcn-bnav__item { transition: none !important; animation: none !important; }
}
.rcn-sheet .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
