/*
Theme Name: Recipe SNS Theme
Theme URI: http://localhost/recipesns/
Author: Recipe SNS Project
Description: 料理レシピ投稿型SNS用の自作テーマ。タイムライン・レシピ詳細・プロフィール等の画面を提供する。データロジックは recipe-sns プラグインに依存。
Version: 2.2.3
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: recipe-sns-theme
*/

:root {
	--rs-accent: #1da1f2;       /* 旧Twitterブルー（メインカラー） */
	--rs-accent-dark: #1a91da;  /* ホバー・境界用の濃い青 */
	--rs-tint: #eaf6fe;         /* 淡い青（ホバー背景など） */
	--rs-tint-strong: #d3ebfb;  /* やや濃い淡青 */
	--rs-bg: #f5f8fa;          /* 旧Twitter風の淡い背景 */
	--rs-card: #ffffff;
	--rs-text: #2b2b2b;
	--rs-muted: #777;
	--rs-border: #ececec;
	--rs-max: 960px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	background: var(--rs-bg);
	color: var(--rs-text);
	line-height: 1.7;
}

a { color: var(--rs-accent); }

img { max-width: 100%; height: auto; }

/* ----- ヘッダー（青背景・白文字／アイコンメニュー＋タイトル＋検索切替） ----- */
.rs-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--rs-accent);
	border-bottom: 1px solid var(--rs-accent-dark);
	color: #fff;
}
.rs-header-inner {
	position: relative;
	max-width: var(--rs-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .6rem 1rem;
	min-height: 52px;
}
/* 左: ユーザーアイコン（アバター）。スマホは左メニュー開閉トグル、PCはイベントなし。 */
.rs-avatar-toggle { border: none; background: none; padding: 0; line-height: 0; cursor: pointer; }
.rs-avatar-toggle img { width: 36px; height: 36px; border-radius: 50%; display: block; }
@media (min-width: 981px) {
	.rs-avatar-toggle { cursor: default; } /* PCはイベントなし（クリックしても変化しない） */
	.rs-tab-popular { display: none; }     /* PCは右カラムに人気のメニューがあるため非表示 */
}
/* 中央: タイトル＋前段タイトル（絶対中央寄せ・縦並び） */
.rs-brand {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.15;
	text-align: center;
}
/* 認証リンク（ログイン/ログアウト/会員登録）＝ヘッダー上部右 */
.rs-header-auth { display: inline-flex; gap: .7rem; align-items: center; margin-left: auto; }
.rs-header-auth a { font-size: .85rem; color: #fff; text-decoration: none; white-space: nowrap; }
.rs-header-auth a:hover { color: #fff; text-decoration: underline; }
.rs-searching .rs-header-auth { display: none; }

/* 投稿FAB（X風・右下固定。スクロールしても位置を変えない） */
.rs-fab {
	position: fixed;
	right: 28px;
	bottom: 90px; /* フッターナビより上に配置 */
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--rs-accent);
	color: #fff;
	font-size: 2rem;
	line-height: 54px;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	z-index: 90;
}
.rs-fab:hover { background: var(--rs-accent-dark); color: #fff; }
.rs-menu-toggle {
	display: none; /* PCではサイドメニュー常時表示のため非表示。狭幅で表示。 */
	border: none;
	background: none;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	padding: .2rem .4rem;
	color: var(--rs-text);
}
.rs-menu-toggle:hover { color: var(--rs-accent); }
.rs-logo {
	font-weight: 800;
	font-size: 1.25rem;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
.rs-logo-img { height: 34px; width: auto; display: block; }
.rs-tagline {
	font-size: .7rem;
	font-weight: normal;
	color: rgba(255, 255, 255, .9);
	white-space: nowrap;
}

/* アイコンナビ（右寄せ） */
.rs-iconnav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: .25rem;
}
.rs-iconbtn {
	position: relative;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
	text-decoration: none;
	padding: .35rem .45rem;
	border-radius: 8px;
	color: #fff;
}
.rs-iconbtn:hover { background: rgba(255, 255, 255, .15); }
.rs-bell-badge {
	position: absolute;
	top: -2px;
	right: -3px;
	background: #e0245e;
	color: #fff;
	font-size: .6rem;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 999px;
	padding: 0 4px;
}

/* 検索フォーム（既定は非表示、検索モードでタイトル位置に展開） */
.rs-search-form {
	display: none;
	flex: 1;
	align-items: center;
	gap: .3rem;
}
.rs-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--rs-accent-dark);
	border-radius: 999px;
	padding: .45rem .9rem;
	font-size: 1rem;
	background: #fff;
}
.rs-search-form button {
	border: none;
	background: none;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: .2rem .4rem;
	color: #fff;
}
.rs-searching .rs-search-form { display: flex; }
.rs-searching .rs-brand,
.rs-searching .rs-iconnav { display: none; }

/* ドロップダウンメニュー */
.rs-menu {
	position: absolute;
	left: 1rem;
	top: calc(100% + 2px);
	background: #fff;
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	min-width: 230px;
	padding: .4rem;
	z-index: 60;
}
.rs-menu a {
	display: block;
	padding: .6rem .8rem;
	text-decoration: none;
	color: var(--rs-text);
	border-radius: 8px;
	font-size: .95rem;
}
.rs-menu a:hover { background: var(--rs-tint); color: var(--rs-accent); }
.rs-menu-logout {
	border-top: 1px solid var(--rs-border);
	margin-top: .3rem;
	color: #b3261e !important;
}

/* ----- レイアウト（3カラム：サイドメニュー｜本文｜人気のメニュー） ----- */
.rs-layout {
	max-width: 1120px;
	margin: 1.5rem auto;
	padding: 0 1rem;
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr) 280px;
	gap: 1.5rem;
	align-items: start;
}
.rs-main { min-width: 0; }
.rs-page-title {
	font-size: 1.4rem;
	margin: 0 0 1rem;
}

/* 左サイドメニュー */
.rs-sidebar { position: sticky; top: 74px; }
.rs-sidemenu {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	padding: .5rem;
}
.rs-sidemenu a {
	display: block;
	padding: .6rem .8rem;
	border-radius: 8px;
	text-decoration: none;
	color: var(--rs-text);
	font-size: .95rem;
}
.rs-sidemenu a:hover { background: var(--rs-tint); color: var(--rs-accent); }
.rs-sidemenu .rs-menu-logout {
	border-top: 1px solid var(--rs-border);
	margin-top: .3rem;
	color: #b3261e;
}

/* 右カラム：人気のメニュー */
.rs-aside { position: sticky; top: 74px; }
.rs-popular {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	padding: 1rem;
}
.rs-aside-title { font-size: 1.05rem; margin: 0 0 .8rem; }
.rs-popular-period { font-size: .72rem; font-weight: normal; color: var(--rs-muted); }
.rs-popular-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rs-popular-list li { counter-increment: rank; margin-bottom: .6rem; }
.rs-popular-list a { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--rs-text); }
.rs-popular-list a::before {
	content: counter(rank);
	flex: 0 0 auto;
	width: 20px; height: 20px; line-height: 20px; text-align: center;
	background: var(--rs-accent); color: #fff; border-radius: 50%;
	font-size: .75rem; font-weight: 700;
}
.rs-popular-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; display: block; }
.rs-popular-info { min-width: 0; }
.rs-popular-title { display: block; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-popular-like { font-size: .75rem; color: var(--rs-muted); }

/* ----- タイムライン切替タブ（X風） ----- */
.rs-tabs {
	display: flex;
	border-bottom: 1px solid var(--rs-border);
	margin: 0 0 1.4rem;
	background: #fff;
	border-radius: 12px 12px 0 0;
	overflow: hidden;
}
.rs-tab {
	flex: 1;
	text-align: center;
	padding: .9rem 1rem;
	text-decoration: none;
	color: var(--rs-muted);
	font-weight: 700;
	position: relative;
	white-space: nowrap;
	transition: background .15s;
}
.rs-tab:hover { background: var(--rs-tint); }
/* スマホ幅ではタブ文字が折り返さないよう余白とフォントを詰める */
@media (max-width: 600px) {
	.rs-tab { padding: .85rem .25rem; font-size: .82rem; }
}
.rs-tab.is-active { color: var(--rs-text); }
.rs-tab.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--rs-accent);
}

/* ----- カードグリッド（タイムライン・一覧） ----- */
.rs-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.2rem;
}
.rs-card {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s, transform .15s;
}
.rs-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.rs-card-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: #e3eef6 center/cover no-repeat;
}
.rs-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 画像未設定時のプレースホルダー（No Image） */
.rs-card-thumb.is-noimage {
	background: repeating-linear-gradient(45deg, #eef4f9, #eef4f9 12px, #e6eef5 12px, #e6eef5 24px);
}
.rs-noimage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	gap: .3rem;
	color: #9bb3c4;
}
.rs-noimage svg { width: 38px; height: 38px; }
.rs-noimage-text { font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.rs-card-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.rs-card-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.rs-card-title a { color: var(--rs-text); text-decoration: none; }
.rs-card-title a:hover { color: var(--rs-accent); }
.rs-card-author {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .82rem;
	color: var(--rs-muted);
	text-decoration: none;
}
.rs-card-author img { width: 24px; height: 24px; border-radius: 50%; }
.rs-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: auto;
	font-size: .8rem;
	color: var(--rs-muted);
}
.rs-chip {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	background: var(--rs-tint);
	border-radius: 999px;
	padding: .15rem .6rem;
	font-size: .78rem;
	color: #555;
	text-decoration: none;
}

/* ----- レシピ詳細 ----- */
.rs-recipe { background: var(--rs-card); border-radius: 16px; border: 1px solid var(--rs-border); overflow: hidden; }
.rs-recipe-hero img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.rs-recipe-hero.is-noimage {
	aspect-ratio: 16 / 7;
	background: repeating-linear-gradient(45deg, #eef4f9, #eef4f9 16px, #e6eef5 16px, #e6eef5 32px);
}
.rs-recipe-hero.is-noimage .rs-noimage svg { width: 56px; height: 56px; }
.rs-recipe-hero.is-noimage .rs-noimage-text { font-size: .95rem; }
.rs-recipe-inner { padding: 1.5rem; }
.rs-recipe-title { font-size: 1.8rem; margin: 0 0 1rem; }
.rs-author-row {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-bottom: 1.2rem;
	flex-wrap: wrap;
}
.rs-author-row img { width: 44px; height: 44px; border-radius: 50%; }
.rs-author-name { font-weight: 700; text-decoration: none; color: var(--rs-text); }
.rs-attr-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; }
.rs-attr {
	background: var(--rs-tint);
	border-radius: 10px;
	padding: .5rem .9rem;
	font-size: .9rem;
	text-align: center;
}
.rs-attr strong { display: block; font-size: 1.1rem; color: var(--rs-accent); }
.rs-section-title {
	font-size: 1.2rem;
	border-left: 4px solid var(--rs-accent);
	padding-left: .6rem;
	margin: 1.6rem 0 .8rem;
}
.rs-ingredients { list-style: none; padding: 0; margin: 0; }
.rs-ingredients li {
	display: flex;
	justify-content: space-between;
	padding: .5rem .2rem;
	border-bottom: 1px dashed var(--rs-border);
}
.rs-ingredients .rs-ing-amount { color: var(--rs-muted); }
.rs-steps { padding-left: 1.4rem; margin: 0; }
.rs-steps li { margin-bottom: .7rem; }
.rs-tax-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.rs-like-row { margin: 1.5rem 0; }

/* ----- 投稿者の操作（編集・削除） ----- */
.rs-owner-actions { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .2rem; }
.rs-owner-actions .rs-delete-form { margin: 0; }
.rs-delete-button { background: #fff; color: #d33; border: 1px solid #d33; }
.rs-delete-button:hover { background: #d33; color: #fff; }
/* カード内は控えめなテキストリンク */
.rs-owner-actions-card { gap: 1rem; margin: .2rem 0 0; }
.rs-owner-link {
	background: none; border: 0; padding: 0; cursor: pointer;
	font-size: .82rem; color: var(--rs-muted); text-decoration: underline;
}
.rs-owner-link:hover { color: var(--rs-accent); }
.rs-owner-link-danger:hover { color: #d33; }

/* ----- 退会（危険操作） ----- */
.rs-danger-title { color: #c0392b; margin-top: 2.5rem; }
.rs-danger-zone {
	border: 1px solid #e3b5b0;
	background: #fdf3f2;
	border-radius: 8px;
	padding: 1rem 1.2rem;
}
.rs-withdraw-agree { display: flex; align-items: flex-start; gap: .5rem; margin: .8rem 0; }
.rs-button-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.rs-button-danger:hover { background: #a93226; border-color: #a93226; }

/* ----- 他SNSシェア ----- */
.rs-share-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 1.2rem 0 .5rem;
}
.rs-share-heading { font-size: .9rem; color: var(--rs-muted); margin-right: .2rem; }
.rs-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: transform .12s ease, opacity .15s ease;
}
.rs-share-button:hover { opacity: .88; transform: translateY(-2px); }
.rs-share-icon { width: 20px; height: 20px; display: block; }
.rs-share-x { background: #000; }
.rs-share-facebook { background: #1877f2; }
.rs-share-line { background: #06c755; }
.rs-share-pinterest { background: #e60023; }

/* コピーボタン（button要素のため装飾をリセット） */
.rs-share-copy {
	background: #6b7280;
	border: 0;
	padding: 0;
	cursor: pointer;
	position: relative;
}
.rs-share-copy.is-copied { background: #06c755; }
/* コピー完了の吹き出し */
.rs-share-copy.is-copied::after {
	content: 'コピーしました';
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	font-size: .72rem;
	white-space: nowrap;
	padding: .3rem .55rem;
	border-radius: 6px;
	pointer-events: none;
}

/* ----- プロフィール ----- */
.rs-profile-head {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: 16px;
	padding: 1.5rem;
	display: flex;
	gap: 1.2rem;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.rs-profile-head img.rs-avatar { width: 88px; height: 88px; border-radius: 50%; }
.rs-profile-meta { flex: 1; min-width: 200px; }
.rs-profile-name { font-size: 1.5rem; margin: 0 0 .3rem; }
.rs-profile-bio { color: #555; margin: .3rem 0 .6rem; }
.rs-stats { display: flex; gap: 1.4rem; }
.rs-stats span { font-size: .9rem; color: var(--rs-muted); }
.rs-stats strong { color: var(--rs-text); font-size: 1.05rem; }

/* ----- コメント・ページネーション ----- */
.rs-comments { background: var(--rs-card); border: 1px solid var(--rs-border); border-radius: 16px; padding: 1.5rem; margin-top: 1.5rem; }

/* コメント投稿フォーム（アバター＋入力欄を横並び） */
.rs-comment-input { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.rs-comment-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.rs-comment-input textarea {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	padding: .6rem .8rem;
	font-size: 1rem;
	resize: vertical;
}
.rs-comments-area .comment-form-comment { margin: 0; }
.rs-comments-area .form-submit { margin: 0; text-align: right; }
.rs-comments-area .form-submit .submit {
	background: var(--rs-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: .55rem 1.4rem;
	font-size: .95rem;
	cursor: pointer;
}
.rs-comments-area .form-submit .submit:hover { background: var(--rs-accent-dark); }
.rs-pagination { margin: 2rem 0; display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.rs-pagination a, .rs-pagination span {
	display: inline-block;
	padding: .4rem .8rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--rs-border);
	text-decoration: none;
	color: var(--rs-text);
}
.rs-pagination .current { background: var(--rs-accent); color: #fff; border-color: var(--rs-accent); }

.rs-empty { text-align: center; color: var(--rs-muted); padding: 3rem 1rem; }

/* 無限スクロール（もっと見る） */
#rs-timeline-more { text-align: center; margin: 1.5rem 0; min-height: 1px; }
.rs-loadmore {
	border: 1px solid var(--rs-accent);
	background: #fff;
	color: var(--rs-accent);
	border-radius: 999px;
	padding: .6rem 1.6rem;
	cursor: pointer;
	font-size: .95rem;
}
.rs-loadmore:hover { background: var(--rs-tint); }

/* ----- ハッシュタグ ----- */
.rs-hashtags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.rs-hashtag {
	display: inline-block;
	color: var(--rs-accent);
	background: var(--rs-tint);
	border-radius: 999px;
	padding: .2rem .7rem;
	font-size: .85rem;
	text-decoration: none;
}
.rs-hashtag:hover { background: var(--rs-tint-strong); }

/* ----- 通知一覧 ----- */
.rs-notif-list { list-style: none; margin: 0; padding: 0; }
.rs-notif-item {
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	background: var(--rs-card);
	margin-bottom: .7rem;
}
.rs-notif-item.is-unread { background: var(--rs-tint); border-color: #bcdffb; }
.rs-notif-link,
.rs-notif-item > .rs-notif-icon {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .9rem 1rem;
	text-decoration: none;
	color: var(--rs-text);
}
.rs-notif-link { color: var(--rs-text); }
.rs-notif-icon { font-size: 1.1rem; }
.rs-notif-avatar img { border-radius: 50%; display: block; }
.rs-notif-text { flex: 1; }
.rs-notif-actor { font-weight: 700; color: var(--rs-text); text-decoration: none; }
.rs-notif-actor:hover { color: var(--rs-accent); }
.rs-notif-time { color: var(--rs-muted); font-size: .8rem; margin-left: .3rem; }

/* ----- フッター（青背景・白文字） ----- */
.rs-site-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	border-top: 1px solid var(--rs-accent-dark);
	background: var(--rs-accent);
	margin: 0;
	padding: 0;
	text-align: center;
	color: #fff;
	font-size: .85rem;
	transform: translateY(0);
	transition: transform .25s ease;
}
/* 下スクロールで隠す（上スクロールで戻す）＝X風 */
.rs-site-footer.rs-footer-hidden { transform: translateY(100%); }
/* 固定フッターの高さ分、本文が隠れないよう余白を確保 */
body { padding-bottom: 68px; }
/* フッターナビ（ホーム / 検索 / 通知 / DM をアイコン表示） */
.rs-footer-nav {
	display: flex;
	max-width: 1120px; /* ボディ(.rs-layout)と同じ幅に揃える */
	margin: 0 auto;
	padding: 0 1rem;   /* ボディと同じ左右余白で左右端を揃える */
	background: transparent;
}
.rs-footer-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	padding: .6rem .3rem;
	border: none;
	border-left: 1px solid rgba(255, 255, 255, .25);
	background: none;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
}
.rs-footer-item:first-child { border-left: none; }
.rs-footer-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rs-footer-icon { position: relative; font-size: 1.3rem; line-height: 1; }
.rs-footer-label { font-size: .72rem; }
.rs-copyright { margin: 0; color: rgba(255, 255, 255, .85); }

/* ----- レスポンシブ（狭幅でサイドメニューを格納、人気カラム非表示） ----- */
@media (max-width: 980px) {
	.rs-layout { grid-template-columns: 1fr; }
	.rs-aside { display: none; } /* 右の人気カラムは非表示（人気はタブで） */

	/* 左メニューは既定で画面外（左）。アバタータップで左からスライド表示（X風）。 */
	.rs-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 260px;
		max-width: 80%;
		background: #fff;
		z-index: 80;
		padding: 4rem 1rem 1rem;
		box-shadow: 2px 0 18px rgba(0,0,0,.18);
		transform: translateX(-100%);
		transition: transform .25s ease;
		overflow-y: auto;
	}
	body.rs-sidebar-open .rs-sidebar { transform: translateX(0); }
	/* メニュー外（オーバーレイ）タップで閉じる */
	body.rs-sidebar-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .35);
		z-index: 70;
	}
}

@media (max-width: 600px) {
	.rs-recipe-title { font-size: 1.4rem; }
}
