/*
Theme Name: Rakurashi Note
Theme URI: https://example.com/
Author: Rakurashi Note
Description: 寝具・白物家電の楽天アフィリエイトブログ向けテーマ。温かみのあるホワイト×明朝体の上品なデザインに、商品紹介ボックス・比較表・結論ボックス・吹き出し・自動目次を備えています。
Version: 1.5.7
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rakurashi
*/

/* ==========================================================
   基本設定
   ========================================================== */
:root {
	--rk-accent: #5F7346;
	--rk-bg: #FAF7F2;
	--rk-surface: #FFFFFF;
	--rk-text: #2B2622;
	--rk-sub: #6F665D;
	--rk-sub2: #5C544C;
	--rk-line: #E6DFD5;
	--rk-soft: #F1EBE2;
	--rk-soft2: #F4EEE5;
	--rk-ph: #EDE6DB;
	--rk-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--rk-en: "Cormorant Garamond", "Times New Roman", serif;
	--rk-wrap: 1120px;
	--rk-radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--rk-bg);
	color: var(--rk-text);
	font-family: var(--rk-serif);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.02em;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--rk-text); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--rk-accent); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--rk-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: var(--rk-surface); padding: 8px 16px; border-radius: 6px;
}

.rk-wrap { max-width: var(--rk-wrap); margin: 0 auto; padding: 0 24px; }

.rk-en {
	font-family: var(--rk-en);
	letter-spacing: 0.3em;
	color: var(--rk-accent);
	text-transform: uppercase;
}

/* ==========================================================
   PR表記・ヘッダー
   ========================================================== */
.rk-pr-bar {
	font-size: 11px;
	color: var(--rk-sub);
	text-align: center;
	padding: 6px 16px;
	letter-spacing: 0.06em;
	line-height: 1.6;
}

.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--rk-line); background: var(--rk-bg); }
.site-header.is-overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }

.site-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-branding a { display: flex; flex-direction: column; line-height: 1.2; }
.site-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: 0.08em; }
.site-subtitle { font-family: var(--rk-en); font-size: 13px; letter-spacing: 0.3em; color: var(--rk-sub); text-transform: uppercase; }
.site-branding .custom-logo { max-height: 56px; width: auto; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.global-nav li { position: relative; }
.global-nav a { display: flex; flex-direction: column; align-items: center; line-height: 1.3; padding: 4px 0; }
.global-nav .menu-ja { font-size: 14px; font-weight: 700; }
.global-nav .menu-en { font-family: var(--rk-en); font-size: 11px; letter-spacing: 0.2em; color: var(--rk-sub); text-transform: uppercase; }
.global-nav .current-menu-item > a .menu-ja { color: var(--rk-accent); }
.global-nav .sub-menu {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	min-width: 180px; display: none; flex-direction: column; gap: 0;
	background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: 8px; padding: 8px 0;
}
.global-nav li:hover > .sub-menu, .global-nav li:focus-within > .sub-menu { display: flex; }
.global-nav .sub-menu a { align-items: flex-start; padding: 6px 18px; }
/* 「カテゴリ」の一覧 */
.global-nav .rk-nav-cats > .sub-menu { z-index: 60; max-height: 70vh; overflow-y: auto; }
.global-nav .rk-nav-cats > .sub-menu a { font-size: 14px; white-space: nowrap; }
/* スクロール先の位置合わせ */
#rk-about { scroll-margin-top: 24px; }

.rk-menu-toggle {
	display: none;
	width: 48px; height: 48px;
	border: 0; background: transparent; cursor: pointer;
	align-items: center; justify-content: center;
	color: var(--rk-text);
}

.rk-drawer {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(43, 38, 34, 0.35);
	display: none;
}
.rk-drawer.is-open { display: block; }
.rk-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(320px, 86vw);
	background: var(--rk-bg);
	padding: 16px 24px 32px;
	overflow-y: auto;
}
.rk-drawer__close { display: flex; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.rk-drawer ul { list-style: none; margin: 8px 0 0; padding: 0; }
.rk-drawer li { border-bottom: 1px solid var(--rk-line); }
.rk-drawer a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 4px; }
.rk-drawer .menu-en { font-family: var(--rk-en); font-size: 11px; letter-spacing: 0.2em; color: var(--rk-sub); text-transform: uppercase; }
.rk-drawer .menu-ja { font-weight: 700; }
.rk-drawer .sub-menu { margin: 0 0 8px 16px; }
.rk-drawer .sub-menu li { border: 0; }
.rk-drawer .sub-menu a { padding: 8px 4px; font-size: 14px; }
.rk-drawer .search-form { margin-top: 24px; }

/* ==========================================================
   メインビジュアル
   ========================================================== */
/* v1.5.0：my-best.com と同じ作り
   ・ヘッダーは画像に重ねず、その下に横幅いっぱいの画像
   ・高さは「画面幅の45%（最大720px）」、スマホは画面幅とほぼ同じ高さ
   ・画像に薄い黒を重ね、中央に白い太字のキャッチコピー
   ・画像の下端をまたぐように丸い検索ボックス */
.rk-hero {
	position: relative;
	height: clamp(360px, 45vw, 720px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: radial-gradient(ellipse at 72% 28%, #F6F0E6 0%, #ECE3D5 55%, #E3D8C7 100%);
}
.rk-hero.has-search { margin-bottom: 40px; }
.rk-hero__slides {
	position: absolute; inset: 0;
	z-index: 0;
	overflow: hidden;
}
.rk-hero__slide {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1);
	/* 消えきってから拡大をリセット */
	transition: opacity var(--rk-hero-fade, 1.6s) ease, transform 0s linear var(--rk-hero-fade, 1.6s);
}
.rk-hero__slide.is-active { opacity: 1; }
/* 表示中と次の1枚だけ描画を準備（大きな画像を何枚も重ねてカクつくのを防ぐ） */
.rk-hero__slide.is-active, .rk-hero__slide.is-next { will-change: opacity, transform; }
/* 端末に合わせて画像を切り替え（使う画像だけが読み込まれます） */
.rk-hero__slide { background-image: var(--rk-bg-pc); }
@media (max-width: 1024px) {
	.rk-hero__slide { background-image: var(--rk-bg-tab, var(--rk-bg-pc)); }
}
/* 横向きのタブレット：枠を写真（パソコン用・1枚目）と同じ縦横比にして、写真が切れないようにする。
   画面の高さの9割を超える縦長ぎみの写真だけ、そこで止めます（そのときは写真の上端を基準にし、下側だけが少し切れます）。
   タイトルは枠の大きさに合わせて小さめにします */
@media (max-width: 1366px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
	.rk-hero { width: 100%; height: auto; min-height: 0; aspect-ratio: var(--rk-hero-ratio, 1920 / 800); max-height: 90vh; max-height: 90svh; }
	.rk-hero .rk-hero__slide { background-position: center top; }
	.rk-hero .rk-hero__body { gap: 6px; }
	.rk-hero .rk-hero__title { font-size: clamp(24px, 2.6vw, 36px); }
	.rk-hero .rk-hero__text { font-size: clamp(13px, 1.25vw, 16px); }
}
/* タブレット用が未設定のとき：縦向きのタブレットはスマホ用の画像を、スマホと同じ比率の枠で表示 */
@media (max-width: 1024px) and (orientation: portrait) {
	.rk-hero.is-tab-sp { height: auto; min-height: 0; aspect-ratio: 375 / 365; }
	.rk-hero.is-tab-sp .rk-hero__slide { background-image: var(--rk-bg-sp, var(--rk-bg-pc)); }
}
@media (max-width: 720px) {
	.rk-hero__slide { background-image: var(--rk-bg-sp, var(--rk-bg-pc)); }
}
.rk-hero.is-zoom .rk-hero__slide.is-active {
	transform: scale(1.06);
	transition: opacity var(--rk-hero-fade, 1.6s) ease, transform var(--rk-hero-zoom, 9s) linear;
}
/* 画像の上に薄い黒を重ねて、白い文字を読みやすくする */
.rk-hero.has-image::before {
	content: "";
	position: absolute; inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.3);
}
.rk-hero__body {
	position: relative;
	z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 0 24px;
	text-align: center;
}
.rk-hero__title { margin: 0; font-size: clamp(30px, 2.4vw + 14px, 48px); font-weight: 700; letter-spacing: 0.04em; padding-left: 0.04em; line-height: 1.5; }
/* 行末の「、」「。」は右半分が空白なので、その分を詰めて中央に見せる */
.rk-hero__punct { letter-spacing: -0.46em; }
.rk-hero__text { margin: 0; font-size: clamp(14px, 0.5vw + 11px, 18px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.rk-hero.has-image .rk-hero__title,
.rk-hero.has-image .rk-hero__text { color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.5); }
.rk-hero:not(.has-image) .rk-hero__text { color: var(--rk-sub2); }

/* 切り替えのバー（検索ボックスと重ならない位置に） */
.rk-hero__dots {
	position: absolute; left: 0; right: 0; bottom: 36px;
	z-index: 2;
	display: flex; justify-content: center; gap: 4px;
}
.rk-hero__dot {
	width: 32px; height: 32px; padding: 0;
	border: 0; background: transparent; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.rk-hero__dot::before {
	content: "";
	width: 24px; height: 2px;
	background: #fff;
	opacity: 0.4;
	transition: opacity 0.4s ease;
}
.rk-hero:not(.has-image) .rk-hero__dot::before { background: var(--rk-text); }
.rk-hero__dot[aria-current="true"]::before { opacity: 1; }
.rk-hero__dot:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

/* 画像の下端をまたぐ検索ボックス */
.rk-hero__search {
	position: absolute; left: 0; right: 0; bottom: 0;
	z-index: 3;
	transform: translateY(50%);
	padding: 0 16px;
	display: flex; justify-content: center;
}
.rk-hero-search {
	width: 100%; max-width: 680px; height: 48px;
	display: flex; align-items: center; gap: 10px;
	padding: 0 20px;
	background: #fff;
	border: 1px solid #E7E7E7;
	border-radius: 9999px;
	color: var(--rk-sub);
}
.rk-hero-search:focus-within { border-color: var(--rk-accent); }
.rk-hero-search svg { flex: none; }
.rk-hero-search input {
	flex: 1; min-width: 0; height: 100%;
	border: 0; outline: 0; background: transparent;
	font: inherit; font-size: 15px; color: var(--rk-text);
	-webkit-appearance: none; appearance: none;
}
.rk-hero-search input::placeholder { color: #9A938B; }
.rk-hero-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
@media (prefers-reduced-motion: reduce) {
	/* 拡大の動きだけ止めて、フェードの切り替えは残す */
	.rk-hero__slide, .rk-hero.is-zoom .rk-hero__slide.is-active { transform: none; transition: opacity var(--rk-hero-fade, 1.6s) ease; }
}

.rk-btn-outline {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 40px;
	border-radius: 999px; border: 1px solid var(--rk-text);
	font-size: 14px; letter-spacing: 0.2em;
}
.rk-btn-outline:hover { background: var(--rk-text); color: var(--rk-bg); }
.rk-btn-outline.is-accent { border-color: var(--rk-accent); color: var(--rk-accent); }
.rk-btn-outline.is-accent:hover { background: var(--rk-accent); color: #fff; }

/* ==========================================================
   ピックアップ
   ========================================================== */
.rk-pickup__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
}

/* ==========================================================
   記事カード（画像の上にタイトルを重ねる）
   ========================================================== */
.rk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 16 / 10;
	border-radius: var(--rk-radius);
	overflow: hidden;
	background: linear-gradient(160deg, #EEE7DC, #DDD1C0);
	color: var(--rk-text);
}
.rk-card:nth-child(4n+2) { background: linear-gradient(160deg, #F0E6D8, #DFCDB6); }
.rk-card:nth-child(4n+3) { background: linear-gradient(160deg, #E8EAE2, #D1D7CA); }
.rk-card:nth-child(4n+4) { background: linear-gradient(160deg, #ECE5E7, #D9CDD1); }
.rk-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rk-card:hover .rk-card__img { transform: scale(1.04); }
.rk-card:hover { color: var(--rk-text); }
.rk-card__cat {
	position: absolute; top: 14px; right: 14px; z-index: 1;
	font-size: 11px; font-weight: 700; line-height: 1.6;
	color: #fff; background: var(--rk-accent);
	border-radius: 999px; padding: 2px 12px;
}
.rk-card__body {
	position: relative;
	display: flex; flex-direction: column; gap: 6px;
	padding: 56px 22px 18px;
	background: linear-gradient(180deg, rgba(250,247,242,0) 0%, rgba(250,247,242,0.88) 55%, rgba(250,247,242,0.94) 100%);
}
.rk-card__title { font-size: 17px; font-weight: 700; line-height: 1.6; }
.rk-card__date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rk-sub2); }
.rk-card.is-wide { aspect-ratio: auto; height: 280px; border-radius: 0; }
.rk-card.is-wide .rk-card__title { font-size: 16px; }

.rk-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.rk-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================
   新着記事（横スクロール）
   ========================================================== */
.rk-posts { padding-top: 48px; padding-bottom: 72px; }
.rk-sechead { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 32px; text-align: center; }
.rk-sechead .rk-en { font-size: 15px; }
.rk-sechead__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }

.rk-slider { position: relative; --rk-slide-gap: 20px; --rk-arrow-top: 25%; }
.rk-slider__track {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--rk-radius);
}
.rk-slider__track::-webkit-scrollbar { display: none; }
.rk-slider__track:focus-visible { outline-offset: 4px; }
.rk-slider__list {
	display: flex; gap: var(--rk-slide-gap);
	margin: 0; padding: 0; list-style: none;
}
.rk-slider__item {
	flex: 0 0 calc((100% - var(--rk-slide-gap) * 3) / 4);
	min-width: 0;
	scroll-snap-align: start;
}
.rk-slide { display: flex; flex-direction: column; gap: 10px; height: 100%; color: var(--rk-text); }
.rk-slide:hover { color: var(--rk-accent); }
.rk-slide__thumb {
	position: relative; display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--rk-radius);
	overflow: hidden;
	background: linear-gradient(160deg, #EEE7DC, #DDD1C0);
}
.rk-slider__item:nth-child(4n+2) .rk-slide__thumb { background: linear-gradient(160deg, #F0E6D8, #DFCDB6); }
.rk-slider__item:nth-child(4n+3) .rk-slide__thumb { background: linear-gradient(160deg, #E8EAE2, #D1D7CA); }
.rk-slider__item:nth-child(4n+4) .rk-slide__thumb { background: linear-gradient(160deg, #ECE5E7, #D9CDD1); }
.rk-slide__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rk-slide:hover .rk-slide__thumb img { transform: scale(1.04); }
.rk-slide__cat {
	position: absolute; top: 10px; left: 10px; z-index: 1;
	font-size: 11px; font-weight: 700; line-height: 1.6;
	color: #fff; background: var(--rk-accent);
	border-radius: 999px; padding: 2px 10px;
}
.rk-slide__title {
	font-size: 15px; font-weight: 700; line-height: 1.65;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.rk-slide__date { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 12px; color: var(--rk-sub2); }

.rk-slider__arrow {
	position: absolute; z-index: 2;
	top: var(--rk-arrow-top); transform: translateY(-50%);
	width: 48px; height: 48px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--rk-line);
	background: rgba(255, 255, 255, 0.94);
	color: var(--rk-text);
	box-shadow: 0 4px 14px rgba(43, 38, 34, 0.12);
	cursor: pointer;
	transition: opacity .25s, background .2s, color .2s, border-color .2s;
}
.rk-slider__arrow[hidden] { display: none; }
.rk-slider__arrow.is-prev { left: -24px; }
.rk-slider__arrow.is-next { right: -24px; }
.rk-slider__arrow:hover { background: var(--rk-accent); border-color: var(--rk-accent); color: #fff; }
.rk-slider__arrow:disabled { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
	.rk-slider__track { scroll-behavior: auto; }
}

/* ページ送り */
.rk-pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.rk-pagination .page-numbers, .nav-links .page-numbers {
	min-width: 44px; height: 44px; padding: 0 6px;
	border-radius: 999px; border: 1px solid var(--rk-accent);
	color: var(--rk-accent);
	display: flex; align-items: center; justify-content: center;
}
.rk-pagination .page-numbers.current, .nav-links .page-numbers.current { background: var(--rk-accent); color: #fff; font-weight: 700; }
.rk-pagination .page-numbers.dots, .nav-links .page-numbers.dots { border: 0; }
.rk-more { text-align: center; margin-top: 40px; }

/* ==========================================================
   プロフィール
   ========================================================== */
.rk-about { border-top: 1px solid var(--rk-line); }
.rk-about__inner { max-width: 880px; margin: 0 auto; padding: 64px 24px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.rk-avatar { width: 120px; height: 120px; flex: none; border-radius: 50%; background: var(--rk-ph); object-fit: cover; }
.rk-about__body { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.rk-about__name { font-size: 20px; font-weight: 700; }
.rk-about__text { margin: 0; color: var(--rk-sub2); font-size: 14px; }

/* ==========================================================
   見出しバンド（一覧・固定ページ）
   ========================================================== */
.rk-pagehead {
	background: radial-gradient(ellipse at 72% 28%, #F6F0E6 0%, #ECE3D5 55%, #E3D8C7 100%);
	padding: 72px 24px 56px;
	text-align: center;
}
.rk-pagehead__title { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.rk-pagehead__desc { max-width: 40em; margin: 12px auto 0; color: var(--rk-sub2); font-size: 14px; }

/* ==========================================================
   記事ページ
   ========================================================== */
.rk-post-hero {
	position: relative;
	min-height: 440px;
	display: flex;
	align-items: flex-end;
	background: radial-gradient(ellipse at 70% 30%, #F6F0E6 0%, #ECE3D5 55%, #E3D8C7 100%);
	overflow: hidden;
}
.rk-post-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rk-post-hero__cover { position: relative; width: 100%; background: linear-gradient(180deg, rgba(250,247,242,0) 0%, rgba(250,247,242,0.9) 45%, rgba(250,247,242,0.96) 100%); }
.rk-post-hero__inner { max-width: var(--rk-wrap); margin: 0 auto; padding: 96px 24px 36px; display: flex; flex-direction: column; gap: 12px; }
.rk-post-title { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.55; letter-spacing: 0.04em; max-width: 26em; }
.rk-post-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--rk-sub2); }
.rk-pill { align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--rk-accent); border-radius: 999px; padding: 2px 14px; line-height: 1.7; }
.rk-pill:hover { color: #fff; opacity: .85; }

.rk-breadcrumb { font-size: 12px; color: var(--rk-sub2); }
.rk-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rk-breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--rk-sub); }
.rk-breadcrumb a { color: var(--rk-sub2); }

.rk-layout {
	max-width: var(--rk-wrap);
	margin: 0 auto;
	padding: 48px 24px 80px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}
.rk-main { flex: 999 1 560px; min-width: 0; }
.rk-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.rk-layout.is-full .rk-main { flex-basis: 100%; }

.rk-pr-box {
	font-size: 13px; color: var(--rk-sub);
	border: 1px solid var(--rk-line); border-radius: 8px;
	padding: 10px 16px; margin-bottom: 28px;
}

/* 本文 */
.rk-content { font-size: 16px; line-height: 1.95; }
.rk-content > * + * { margin-top: 1.6em; }
.rk-content p { margin: 0; }
.rk-content p + p { margin-top: 1.4em; }
.rk-content a { color: var(--rk-accent); text-decoration: underline; text-underline-offset: 3px; }
.rk-content h2 {
	margin: 3em 0 1.2em;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rk-line);
	font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em;
	position: relative;
}
.rk-content h2::after {
	content: ""; position: absolute; left: 0; bottom: -1px;
	width: 64px; height: 2px; background: var(--rk-accent);
}
.rk-content h3 {
	margin: 2.4em 0 1em;
	font-size: 20px; font-weight: 700; line-height: 1.6;
	display: flex; align-items: center; gap: 12px;
}
.rk-content h3::before { content: ""; width: 14px; height: 1px; background: var(--rk-accent); flex: none; }
.rk-content h4 { margin: 2em 0 .8em; font-size: 17px; }
.rk-content ul, .rk-content ol { padding-left: 1.4em; }
.rk-content li + li { margin-top: .4em; }
.rk-content blockquote {
	margin-left: 0; margin-right: 0;
	padding: 20px 24px;
	background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: var(--rk-radius);
	color: var(--rk-sub2);
}
.rk-content figure { margin-left: 0; margin-right: 0; }
.rk-content figcaption { font-size: 13px; color: var(--rk-sub); text-align: center; margin-top: 8px; }
.rk-content img { border-radius: 8px; }
.rk-content hr { border: 0; border-top: 1px solid var(--rk-line); margin: 3em 0; }

/* 標準の表 */
.rk-content .wp-block-table { overflow-x: auto; }
.rk-content .wp-block-table thead { border-bottom: 1px solid var(--rk-line); }
.rk-content .wp-block-table tfoot { border-top: 1px solid var(--rk-line); }
.rk-content table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; background: var(--rk-surface); }
.rk-content th, .rk-content td { border: 1px solid var(--rk-line); padding: 12px 14px; }
.rk-content thead th { background: var(--rk-soft2); }

/* 見出し（英字ラベル付き） */
.rk-heading { margin: 3em 0 1.2em; padding-bottom: 14px; border-bottom: 1px solid var(--rk-line); display: flex; flex-direction: column; gap: 4px; }
.rk-heading .rk-en { font-size: 14px; }
.rk-content .rk-heading h2 { margin: 0; padding: 0; border: 0; }
.rk-content .rk-heading h2::after { display: none; }

/* 目次 */
.rk-toc { border: 1px solid var(--rk-line); border-radius: 14px; padding: 24px 28px; background: var(--rk-surface); }
.rk-toc__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rk-toc__head .rk-en { font-size: 14px; }
.rk-toc__title { font-weight: 700; }
.rk-toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; }
.rk-toc ol ol { margin-top: 4px; font-size: 14px; list-style: none; padding-left: 1em; }
.rk-toc ol ol li::before { content: "– "; color: var(--rk-sub); }
.rk-toc a { color: var(--rk-text) !important; text-decoration: none !important; }
.rk-toc a:hover { color: var(--rk-accent) !important; }

/* 結論ボックス */
.rk-conclusion { border: 1px solid var(--rk-accent); border-radius: 14px; overflow: hidden; background: var(--rk-surface); }
.rk-conclusion__head { padding: 12px 24px; border-bottom: 1px solid var(--rk-line); display: flex; align-items: baseline; gap: 12px; }
.rk-conclusion__head .rk-en { font-size: 14px; }
.rk-conclusion__head strong { font-weight: 700; }
.rk-conclusion__body { padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--rk-soft2); }
.rk-conclusion__img { width: 200px; height: 150px; flex: none; border-radius: 8px; object-fit: contain; background: var(--rk-surface); }
.rk-conclusion__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.rk-conclusion__text .rk-en { font-size: 13px; letter-spacing: 0.25em; }
.rk-conclusion__name { font-size: 20px; font-weight: 700; line-height: 1.5; }
.rk-conclusion__desc { font-size: 14px; color: var(--rk-sub2); }

/* 購入ボタン */
.rk-content a.rk-buy, a.rk-buy {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 30px;
	border-radius: 999px;
	background: var(--rk-accent); color: #fff;
	font-weight: 700; letter-spacing: 0.08em; line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(43, 38, 34, 0.12);
	transition: transform .2s, opacity .2s;
}
.rk-content a.rk-buy:hover, a.rk-buy:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
a.rk-buy.is-block { display: flex; width: 100%; min-height: 54px; letter-spacing: 0.1em; }
a.rk-buy.is-small { min-height: 40px; padding: 0 16px; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; box-shadow: none; }
.rk-buy svg { flex: none; }

/* 商品紹介ボックス */
.rk-item { background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: 16px; overflow: hidden; }
.rk-item__head { padding: 16px 24px; border-bottom: 1px solid var(--rk-line); display: flex; align-items: center; gap: 16px; }
.rk-item__rank { font-family: var(--rk-en); font-size: 30px; line-height: 1; color: var(--rk-accent); flex: none; }
.rk-content .rk-item__name { margin: 0; font-size: 20px; line-height: 1.5; }
.rk-content .rk-item__name::before { display: none; }
.rk-item__body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.rk-item__top { display: flex; flex-wrap: wrap; gap: 24px; }
.rk-item__img { flex: 1 1 240px; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--rk-soft2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rk-item__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.rk-item__spec { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.rk-item__price { display: flex; align-items: baseline; gap: 10px; }
.rk-item__price span { font-size: 13px; color: var(--rk-sub); }
.rk-item__price strong { font-size: 22px; }
.rk-item dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: 14px; border-top: 1px solid var(--rk-line); }
.rk-item dt { color: var(--rk-sub); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rk-line); }
.rk-item dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rk-line); }
.rk-item__pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; font-size: 14px; }
.rk-item__pc > div { border: 1px solid var(--rk-line); border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.rk-item__pc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rk-item__pc .is-good .rk-item__pc-title { color: var(--rk-accent); }
.rk-item__pc .is-bad .rk-item__pc-title { color: var(--rk-sub); }
.rk-item__pc p { margin: 0; color: var(--rk-sub2); }
.rk-item__note { font-size: 12px; color: var(--rk-sub); text-align: center; margin: -8px 0 0; }

/* 比較表（表ブロックのスタイル「比較表」） */
.rk-content .wp-block-table.is-style-rk-compare { border: 1px solid var(--rk-line); border-radius: 12px; }
.rk-content .is-style-rk-compare table { min-width: 760px; text-align: center; border: 0; }
.rk-content .is-style-rk-compare th,
.rk-content .is-style-rk-compare td { border: 0; border-top: 1px solid var(--rk-line); padding: 12px 10px; }
.rk-content .is-style-rk-compare thead th,
.rk-content .is-style-rk-compare tr:first-child > * { border-top: 0; }
.rk-content .is-style-rk-compare th:first-child,
.rk-content .is-style-rk-compare td:first-child { background: var(--rk-soft2); color: var(--rk-sub); text-align: left; width: 110px; font-weight: 500; }
.rk-content .is-style-rk-compare thead th { background: var(--rk-soft2); font-weight: 700; vertical-align: top; }
.rk-content .is-style-rk-compare th:nth-child(2),
.rk-content .is-style-rk-compare td:nth-child(2) { background: #FBF5EA; }
.rk-content .is-style-rk-compare thead th:nth-child(2) { box-shadow: inset 0 3px 0 var(--rk-accent); background: #F6EBD9; }
.rk-content .is-style-rk-compare img { max-height: 90px; width: auto; border-radius: 6px; }
.rk-content .is-style-rk-compare figcaption { text-align: left; }

/* 吹き出し */
.rk-balloon { display: flex; gap: 16px; align-items: flex-start; }
.rk-balloon.is-right { flex-direction: row-reverse; }
.rk-balloon__who { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 72px; }
.rk-balloon__who img, .rk-balloon__who .rk-avatar-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--rk-ph); }
.rk-balloon__who span { font-size: 11px; color: var(--rk-sub); text-align: center; line-height: 1.4; }
.rk-balloon__text { position: relative; background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: 14px; padding: 14px 20px; font-size: 15px; flex: 1; }
.rk-balloon__text p { margin: 0; }
.rk-balloon__text p + p { margin-top: .8em; }

/* ポイントボックス */
.rk-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.rk-point { background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: 12px; padding: 20px; }
.rk-point__num { font-family: var(--rk-en); font-size: 28px; color: var(--rk-accent); line-height: 1; }
.rk-point__title { font-weight: 700; margin-top: 8px; }
.rk-point__text { font-size: 14px; color: var(--rk-sub2); }

/* タグ・著者・関連記事 */
.rk-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.rk-tags a { font-size: 12px; border: 1px solid var(--rk-line); border-radius: 999px; padding: 2px 12px; color: var(--rk-sub2); }
.rk-author { margin-top: 48px; border: 1px solid var(--rk-line); border-radius: 14px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--rk-surface); }
.rk-author .rk-avatar { width: 88px; height: 88px; }
.rk-related { margin-top: 56px; }
/* 記事末尾のボタン（HOME／記事の最初に戻る） */
.rk-post-end { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.rk-post-end .rk-btn-outline { flex: 1 1 200px; max-width: 280px; padding: 0 24px; letter-spacing: 0.12em; }
.rk-related__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.rk-related__head .rk-en { font-size: 14px; }
.rk-related__head span:last-child { font-size: 20px; font-weight: 700; }
.rk-related .rk-card__title { font-size: 15px; }

/* ==========================================================
   サイドバー・ウィジェット
   ========================================================== */
.widget { font-size: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--rk-line); padding: 10px 0; }
.widget-title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rk-line);
	font-size: 15px; font-weight: 700;
	display: flex; align-items: baseline; gap: 10px;
}
.widget-title .rk-en { font-size: 13px; }
.rk-side-profile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 1px solid var(--rk-line); border-radius: 14px; padding: 28px 20px; background: var(--rk-surface); }
.rk-side-profile .rk-avatar { width: 88px; height: 88px; }
.rk-side-profile p { margin: 0; font-size: 13px; color: var(--rk-sub2); line-height: 1.8; }
.rk-sale { border: 1px solid var(--rk-accent); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--rk-surface); }
.rk-sale p { margin: 0; font-size: 13px; color: var(--rk-sub2); line-height: 1.8; }

/* ブロックウィジェット */
.rk-side .widget h2:not(.widget-title) { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rk-line); font-size: 15px; font-weight: 700; }
.rk-side .wp-block-search__label { display: none; }
.rk-side .wp-block-search__inside-wrapper { display: flex; gap: 8px; background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.rk-side .wp-block-search__input { border: 0; background: transparent; flex: 1; min-width: 0; outline: none; font-size: 14px; padding: 6px 0; }
.rk-side .wp-block-search__button { border: 0; border-radius: 999px; background: var(--rk-accent); color: #fff; padding: 6px 16px; font-size: 13px; cursor: pointer; margin: 0; }
.rk-side .wp-block-latest-posts__list, .rk-side .wp-block-categories-list, .rk-side .wp-block-archives-list, .rk-side .wp-block-latest-comments { padding: 0; margin: 0; }
.rk-side .wp-block-latest-posts__list li, .rk-side .wp-block-categories-list li, .rk-side .wp-block-archives-list li { border-bottom: 1px solid var(--rk-line); padding: 10px 0; list-style: none; }

/* 検索フォーム */
.search-form { display: flex; align-items: center; gap: 8px; background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: 999px; padding: 0 6px 0 18px; height: 46px; }
.search-form input[type="search"] { border: 0; background: transparent; flex: 1; min-width: 0; outline: none; font-size: 14px; }
.search-form button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--rk-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* コメント */
.rk-comments { margin-top: 56px; }
.rk-comments .comment-list { list-style: none; padding: 0; }
.rk-comments .comment-body { border-bottom: 1px solid var(--rk-line); padding: 16px 0; font-size: 14px; }
.rk-comments textarea, .rk-comments input[type="text"], .rk-comments input[type="email"], .rk-comments input[type="url"] { width: 100%; border: 1px solid var(--rk-line); border-radius: 8px; padding: 10px 12px; background: var(--rk-surface); }
.rk-comments .submit { border: 0; background: var(--rk-accent); color: #fff; border-radius: 999px; padding: 10px 28px; cursor: pointer; }

/* ==========================================================
   フッター
   ========================================================== */
.site-footer { background: var(--rk-soft); padding: 48px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 13px; color: var(--rk-sub2); }
.rk-sns { display: flex; gap: 8px; }
.rk-sns a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--rk-sub2); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-nav a { color: var(--rk-sub2); }
.site-copy { font-family: var(--rk-en); letter-spacing: 0.15em; }

/* 404・お知らせ */
.rk-empty { text-align: center; padding: 48px 0; color: var(--rk-sub2); }
.rk-empty .search-form { max-width: 420px; margin: 24px auto 0; }

/* WordPress標準クラス */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 960px) {
	.global-nav { display: none; }
	.rk-menu-toggle { display: inline-flex; }
	.site-header__inner { padding: 8px 6px 8px 18px; }
	.rk-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rk-slider__item { flex-basis: calc((100% - var(--rk-slide-gap) * 2) / 3); }
	.rk-slider__arrow.is-prev { left: -12px; }
	.rk-slider__arrow.is-next { right: -12px; }
}

@media (max-width: 720px) {
	body { font-size: 15px; }
	.site-title { font-size: 19px; }
	.site-subtitle { font-size: 10px; }
	.rk-hero { height: auto; min-height: 0; aspect-ratio: 375 / 365; }
	.rk-hero.has-search { margin-bottom: 32px; }
	.rk-hero__body { padding: 0 16px 16px; gap: 8px; }
	.rk-hero__title { font-size: 30px; }
	.rk-hero__text { font-size: 14px; }
	.rk-hero__dots { bottom: 30px; }
	.rk-pickup__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.rk-pickup__list .rk-card { flex: 0 0 82%; scroll-snap-align: start; height: 210px; }
	.rk-wrap { padding: 0 16px; }
	.rk-posts { padding-top: 28px; padding-bottom: 40px; }
	.rk-sechead { margin-bottom: 20px; }
	.rk-sechead .rk-en { font-size: 13px; }
	.rk-sechead__title { font-size: 19px; }
	.rk-slider { --rk-slide-gap: 14px; }
	.rk-slider__item { flex-basis: 64%; }
	.rk-slide__title { font-size: 14px; }
	.rk-slider__arrow { width: 38px; height: 38px; }
	.rk-slider__arrow.is-prev { left: -6px; }
	.rk-slider__arrow.is-next { right: -6px; }
	.rk-grid, .rk-grid.is-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rk-card__title { font-size: 15px; }
	.rk-card__body { padding: 40px 16px 12px; }
	.rk-post-hero { min-height: 360px; }
	.rk-post-hero__inner { padding: 72px 16px 24px; }
	.rk-post-title { font-size: 23px; }
	.rk-layout { padding: 32px 16px 56px; gap: 40px; }
	.rk-content h2 { font-size: 21px; }
	.rk-content h3 { font-size: 18px; }
	.rk-item__body, .rk-conclusion__body { padding: 18px; }
	.rk-item__head { padding: 14px 18px; }
	.rk-conclusion__img { width: 100%; height: 180px; }
	.rk-pagehead { padding: 48px 16px 40px; }
	.rk-pagehead__title { font-size: 23px; }
	.rk-about__inner { padding: 48px 16px; }
}


/* ==========================================================
 * トップページのカテゴリー欄（2026/10/20 追加）
 * 画像は「投稿 → カテゴリー」の編集画面の「カテゴリーの画像」で選ぶ。
 * 画像がないカテゴリーは、色の枠に英字の名前を出す。
 * ========================================================== */
.rk-cats { padding-top: 0; padding-bottom: 72px; scroll-margin-top: 24px; }
.rk-cats__list {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
	margin: 0; padding: 0; list-style: none;
}
.rk-catcard { display: flex; flex-direction: column; gap: 10px; color: var(--rk-text); }
.rk-catcard__thumb {
	position: relative; display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--rk-radius);
	overflow: hidden;
	background: linear-gradient(160deg, #EEE7DC, #DDD1C0);
}
.rk-cats__item:nth-child(4n+2) .rk-catcard__thumb { background: linear-gradient(160deg, #F0E6D8, #DFCDB6); }
.rk-cats__item:nth-child(4n+3) .rk-catcard__thumb { background: linear-gradient(160deg, #E8EAE2, #D1D7CA); }
.rk-cats__item:nth-child(4n+4) .rk-catcard__thumb { background: linear-gradient(160deg, #ECE5E7, #D9CDD1); }
.rk-catcard__thumb img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; transition: transform .5s ease;
}
.rk-catcard:hover .rk-catcard__thumb img { transform: scale(1.04); }
.rk-catcard__ph {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 0 12px; text-align: center;
	font-family: var(--rk-en); font-size: 20px; letter-spacing: 0.14em; line-height: 1.3;
	color: rgba(43, 38, 34, 0.55);
}
.rk-catcard__body { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rk-catcard__name { font-size: 16px; font-weight: 700; letter-spacing: 0.06em; }
.rk-catcard:hover .rk-catcard__name { color: var(--rk-accent); }
.rk-catcard__count { flex: none; font-size: 12px; color: var(--rk-sub); }
@media (max-width: 960px) {
	.rk-cats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 720px) {
	.rk-cats { padding-bottom: 56px; }
	.rk-cats__list { gap: 14px 12px; }
	.rk-catcard { gap: 8px; }
	.rk-catcard__ph { font-size: 16px; }
	.rk-catcard__name { font-size: 15px; }
}

/* ==========================================================
   ホームのカテゴリー：名前を消す・サブカテゴリーの窓（2026/10/23）
   ========================================================== */
.rk-catcard__body { display: none; }
.rk-subcats { width: min(420px, calc(100% - 32px)); max-height: min(80vh, 560px); padding: 0; border: 0; border-radius: 12px; background: var(--rk-surface); color: var(--rk-text); box-shadow: 0 20px 50px rgba(43, 38, 34, .22); }
.rk-subcats::backdrop { background: rgba(43, 38, 34, .45); }
html.rk-subcats-open { overflow: hidden; }
.rk-subcats__inner { padding: 18px 20px 22px; }
.rk-subcats__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rk-subcats__title { margin: 0; font-size: 18px; font-weight: 700; }
.rk-subcats__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.rk-subcats__close:hover { background: var(--rk-soft); }
.rk-subcats__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rk-line); }
.rk-subcats__list li { margin: 0; border-bottom: 1px solid var(--rk-line); }
.rk-subcats__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; font-size: 16px; }
.rk-subcats__count { font-size: 13px; color: var(--rk-sub); white-space: nowrap; }
.rk-subcats__all { display: block; margin-top: 16px; font-size: 14px; text-align: center; color: var(--rk-accent); text-decoration: underline; text-underline-offset: 3px; }

/* =====================
   新着記事・人気記事の2段表示（2026/10/27）
   ===================== */
.rk-slider.is-rows2 .rk-slider__list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(2, auto);
	grid-auto-columns: calc((100% - var(--rk-slide-gap) * 3) / 4);
	column-gap: var(--rk-slide-gap);
	row-gap: 28px;
}
.rk-slider.is-rows2 .rk-slider__arrow { top: 50%; }
.rk-posts + .rk-posts { padding-top: 0; }
.rk-slide__rank {
	position: absolute; top: 8px; right: 8px; z-index: 1;
	min-width: 28px; height: 28px; padding: 0 6px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	font-size: 13px; font-weight: 700; line-height: 1;
	color: var(--rk-text); background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 6px rgba(43, 38, 34, 0.15);
}
.rk-slide__rank.is-top { color: #fff; background: #C9A227; }
@media (max-width: 960px) {
	.rk-slider.is-rows2 .rk-slider__list { grid-auto-columns: calc((100% - var(--rk-slide-gap) * 2) / 3); }
}
@media (max-width: 720px) {
	.rk-slider.is-rows2 .rk-slider__list { grid-auto-columns: 64%; row-gap: 22px; }
}

/* 商品リンクボックス [rk_box]（2026/10/28）：左に画像、右に商品名・ショップ名・価格、下に横並びのショップボタン。ボタンの色は追加CSSのショップ別の色をそのまま使う */
.rk-content .rk-box{margin:26px 0 0;padding:22px 24px;background:#fff;border:1px solid #ece7df;border-radius:6px;box-shadow:0 2px 10px rgba(43,38,34,.08)}
.rk-box__top{display:flex;gap:24px;align-items:flex-start}
.rk-box__img{flex:0 0 150px}
.rk-box__img a{display:block}
.rk-content .rk-box__img img{display:block;width:150px;height:150px;object-fit:contain;margin:0;border-radius:0;box-shadow:none}
.rk-box__info{flex:1;min-width:0}
.rk-content .rk-box p{margin:0}
.rk-content .rk-box .rk-box__name{font-size:18px;font-weight:700;line-height:1.6;letter-spacing:.02em}
.rk-content .rk-box__name a{color:inherit;text-decoration:none}
.rk-content .rk-box__name a:hover{text-decoration:underline}
.rk-content .rk-box .rk-box__shop{margin-top:8px;font-size:14px;color:#777}
.rk-content .rk-box .rk-box__price{margin-top:4px;font-size:17px;color:#333}
.rk-box__price span{margin-left:4px;font-size:12px;color:#888}
.rk-box__btns{display:flex;gap:12px;margin-top:16px;padding-left:174px}
.rk-content .rk-box a.rk-buy.is-box{flex:1 1 0;min-width:0;min-height:48px;margin:0;padding:0 8px;border-radius:4px;font-size:16px;font-weight:700;letter-spacing:.02em;white-space:nowrap;box-shadow:0 2px 4px rgba(0,0,0,.15)}
/* ボックスのボタンの色は、ショップ別のクラスで決める（短縮URLやYahoo!の直接リンクでも同じ色にするため）。色は追加CSSのショップ別の色と同じ */
.rk-content .rk-box a.rk-buy.is-amazon{background:#FFD814;border-color:#FCD200;color:#0F1111}
.rk-content .rk-box a.rk-buy.is-amazon:hover{background:#F7CA00;color:#0F1111}
.rk-content .rk-box a.rk-buy.is-rakuten{background:#1E5BB8;border-color:#1E5BB8;color:#fff}
.rk-content .rk-box a.rk-buy.is-rakuten:hover{background:#174A96;color:#fff}
.rk-content .rk-box a.rk-buy.is-yahoo{background:#c62828;border-color:#c62828;color:#fff}
.rk-content .rk-box a.rk-buy.is-yahoo:hover{background:#a51f1f;color:#fff}
/* 画像のないボックスは、ボタンを左端からそろえる */
.rk-box__top:not(:has(.rk-box__img)) + .rk-box__btns{padding-left:0}
@media (max-width:768px){
.rk-box__btns{padding-left:0}
}
@media (max-width:600px){
.rk-content .rk-box{padding:16px}
.rk-box__top{gap:14px}
.rk-box__img{flex-basis:96px}
.rk-content .rk-box__img img{width:96px;height:96px}
.rk-content .rk-box .rk-box__name{font-size:15px;line-height:1.55}
.rk-content .rk-box .rk-box__shop{font-size:13px;margin-top:4px}
.rk-content .rk-box .rk-box__price{font-size:15px}
.rk-box__price span{display:block;margin-left:0;font-size:11px}
.rk-box__btns{flex-direction:column;gap:10px;margin-top:14px}
.rk-content .rk-box a.rk-buy.is-box{flex:none;width:100%;min-height:46px}
}

/* カテゴリー別の人気記事ランキング（2026/11/05） */
.rk-cats + .rk-catrank { padding-top: 0; }
.rk-catrank__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.rk-catrank__tab { min-height: 40px; padding: 0 20px; border: 1px solid var(--rk-line); border-radius: 999px; background: #fff; color: var(--rk-text); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rk-catrank__tab:hover { border-color: var(--rk-accent); color: var(--rk-accent); }
.rk-catrank__tab[aria-selected="true"] { background: var(--rk-accent); border-color: var(--rk-accent); color: #fff; }
.rk-catrank__panel[hidden] { display: none; }
@media (max-width: 720px) {
	.rk-catrank__tabs { gap: 6px; margin-bottom: 20px; }
	.rk-catrank__tab { flex: 1 1 calc(50% - 3px); padding: 0 8px; }
}
