:root {
	--rp-black: #0d0806;
	--rp-panel: #17100c;
	--rp-green: #8fe600;
	--rp-ink: #211914;
	--rp-muted: #665f59;
	--rp-line: #ded6cc;
	--rp-paper: #f4efe8;
	--rp-white: #fff;
	--rp-width: 1180px;
	--rp-radius: 10px;
	--rp-shadow: 0 10px 30px rgba(10, 15, 10, .07);
}

html { scroll-behavior: smooth; }
body.rinpedia-ai-home-page { margin: 0; overflow-x: hidden; background: var(--rp-paper); }
body.rinpedia-ai-home-page.admin-bar { min-height: calc(100vh - 32px); }

.rp-home,
.rp-home * { box-sizing: border-box; }

.rp-home {
	width: 100%;
	color: var(--rp-ink);
	background: var(--rp-paper);
	font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 17px;
	line-height: 1.75;
	font-weight: 500;
}

.rp-home a { color: inherit; text-decoration: none; }
.rp-home img { display: block; max-width: 100%; }
.rp-container { width: min(calc(100% - 40px), var(--rp-width)); margin-inline: auto; }

.rp-hero {
	position: relative;
	min-height: 470px;
	display: grid;
	align-items: center;
	isolation: isolate;
	overflow: hidden;
	color: #fff;
	background: radial-gradient(circle at 72% 48%, #4a1709 0%, #1d0904 36%, #090302 68%, #030101 100%);
}

.rp-hero::before {
	content: "";
	position: absolute;
	inset: -10%;
	z-index: -3;
	background-image: var(--rp-hero-image);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	filter: blur(30px) brightness(.36) saturate(1.12);
	transform: scale(1.05);
}

.rp-hero__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	background-image: var(--rp-hero-image);
	background-repeat: no-repeat;
	background-position: 64% center;
	background-size: auto 104%;
	filter: brightness(1.06) saturate(1.04);
}

.rp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(5,2,1,.96) 0%, rgba(9,3,2,.82) 38%, rgba(11,4,2,.28) 63%, rgba(11,4,2,.03) 82%, rgba(11,4,2,0) 100%);
}

.rp-hero__inner {
	width: min(calc(100% - 48px), 1320px);
	padding-block: 48px;
}

.rp-hero__brand {
	width: min(286px, 29vw);
	height: auto;
	margin: 0 0 18px;
}

.rp-hero h1 {
	max-width: 600px;
	margin: 14px 0 9px;
	color: #fff;
	font-size: clamp(38px, 4vw, 58px);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -.045em;
	text-shadow: 0 3px 14px rgba(0,0,0,.72);
}

.rp-hero__lead {
	max-width: 560px;
	margin: 0;
	color: rgba(255,255,255,.94);
	font-size: 18px;
	font-weight: 700;
	text-shadow: 0 2px 9px rgba(0,0,0,.82);
}

.rp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.rp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 54px;
	padding: 12px 28px;
	border: 1px solid var(--rp-green);
	border-radius: 5px;
	color: #091000 !important;
	background: var(--rp-green);
	font-weight: 800;
	line-height: 1.3;
	transition: transform .2s ease, background .2s ease;
}

.rp-button::after { content: "›"; font-size: 22px; line-height: 1; }
.rp-button:hover { transform: translateY(-2px); background: #a5f520; }

.rp-section { padding-block: 54px; }
.rp-section + .rp-section { padding-top: 4px; }

.rp-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.rp-section-title {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 28px;
	color: var(--rp-ink);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: -.035em;
}

.rp-section-head .rp-section-title { margin: 0; }

.rp-section-title::before {
	content: "";
	width: 7px;
	height: 36px;
	flex: 0 0 7px;
	background: var(--rp-green);
}

.rp-small-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid #92978f;
	border-radius: 5px;
	background: rgba(255,255,255,.5);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.rp-small-link::after { content: "›"; font-size: 20px; }

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

.rp-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-radius);
	background: #fff;
	box-shadow: var(--rp-shadow);
	transition: transform .22s ease, box-shadow .22s ease;
}

.rp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(10,15,10,.13); }

.rp-card__media {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: linear-gradient(135deg, #171b18, #59624e);
}

.rp-card__media--empty::after {
	content: "輪pedia";
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: var(--rp-green);
	font-size: 25px;
	font-weight: 900;
	letter-spacing: .08em;
}

.rp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rp-card:hover .rp-card__media img { transform: scale(1.035); }

.rp-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 19px; }
.rp-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; color: #777c77; font-size: 13px; }

.rp-tag {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 3px 11px;
	border-radius: 4px;
	color: #102000;
	background: var(--rp-green);
	font-size: 12px;
	font-weight: 900;
}

.rp-card__title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.55; letter-spacing: -.02em; }
.rp-empty { grid-column: 1/-1; padding: 44px 24px; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); text-align: center; color: var(--rp-muted); background: #fff; }

.rp-ai-panel {
	overflow: hidden;
	padding: clamp(30px, 5vw, 54px);
	border: 1px solid #252a26;
	border-radius: var(--rp-radius);
	color: #fff;
	background: radial-gradient(circle at 20% 40%, rgba(143,230,0,.065), transparent 30%), linear-gradient(135deg, #1a120e, #0b0705);
	box-shadow: 0 16px 45px rgba(0,0,0,.13);
}

.rp-ai-panel .rp-section-title { margin-bottom: 10px; color: #fff; }
.rp-ai-panel__intro { max-width: 940px; color: rgba(255,255,255,.9); font-size: 16px; font-weight: 600; line-height: 1.8; }
.rp-ai-panel__intro p { margin: 0; }
.rp-ai-panel__intro p + p { margin-top: 8px; }

.rp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 42px 0 34px; }
.rp-step { position: relative; text-align: center; }

.rp-step:not(:last-child)::after {
	content: "›";
	position: absolute;
	top: 52px;
	right: -28px;
	color: var(--rp-green);
	font-size: 44px;
	font-weight: 300;
	line-height: 1;
}

.rp-step:nth-child(n+3)::after { display: none !important; }

.rp-step__icon { width: 108px; height: 108px; display: grid; place-items: center; margin: 0 auto 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.rp-step__icon svg { width: 56px; height: 56px; fill: none; stroke: #fff; stroke-width: 1.7; }

.rp-step__number {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 1px 12px;
	border: 1px solid var(--rp-green);
	border-radius: 999px;
	color: var(--rp-green);
	font: 800 13px/1.5 Arial, sans-serif;
}

.rp-step h3 { margin: 0 0 5px; color: #fff; font-size: 20px; }
.rp-step p { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; font-weight: 600; line-height: 1.7; }

.rp-panel-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 420px);
	min-height: 54px;
	margin: 0 auto;
	padding: 10px 24px;
	border: 2px solid var(--rp-green);
	border-radius: 6px;
	color: #fff !important;
	background: rgba(143,230,0,.06);
	font-weight: 900;
	letter-spacing: .04em;
	transition: color .2s ease, background .2s ease;
}

.rp-panel-link:hover { color: #102000 !important; background: var(--rp-green); }

.rp-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.rp-guide-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-radius);
	background: #fff;
	box-shadow: var(--rp-shadow);
	transition: transform .2s ease, border-color .2s ease;
}

.rp-guide-card:hover { transform: translateY(-3px); border-color: var(--rp-green); }

.rp-guide-card__link {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	min-height: 170px;
	align-items: center;
	gap: 22px;
	padding: 26px 28px;
}

.rp-guide-card__icon {
	display: grid;
	width: 102px;
	height: 102px;
	place-items: center;
	border-radius: 50%;
	background: #f4efe7;
}

.rp-guide-card svg { width: 74px; height: 66px; fill: none; stroke: #161816; stroke-width: 1.6; }
.rp-guide-card__content { display: block; min-width: 0; }
.rp-guide-card__eyebrow { display: block; margin-bottom: 3px; color: #6fae00; font: 800 11px/1.3 Arial, sans-serif; letter-spacing: .08em; }
.rp-guide-card h3 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.4; }
.rp-guide-card p { margin: 7px 0 12px; color: var(--rp-muted); font-size: 13px; line-height: 1.65; }
.rp-guide-card__more { display: inline-flex; align-items: center; border-bottom: 1px solid var(--rp-green); font-size: 12px; font-weight: 900; }
.rp-final-section { padding-bottom: 54px; }

.rp-reader-offer { padding: 0; }
.rp-reader-offer--top { padding: 20px 0 12px; }
.rp-reader-offer--top + .rp-section { padding-top: 34px; }
.rp-reader-offer--bottom { padding: 0 0 76px; }

.rp-reader-offer__card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 24px;
	border: 2px solid #79c900;
	border-radius: 12px;
	color: #fff !important;
	background: linear-gradient(115deg, #120b08 0%, #21150d 65%, #292511 100%);
	box-shadow: 0 14px 36px rgba(0,0,0,.14);
	transition: transform .2s ease, border-color .2s ease;
}

.rp-reader-offer__card:hover { transform: translateY(-3px); border-color: var(--rp-green); }

.rp-reader-offer__art {
	display: block;
	width: 78px;
	flex: 0 0 78px;
}

.rp-reader-offer__art svg { display: block; width: 100%; height: auto; overflow: visible; }

.rp-reader-offer__label {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 4px 11px;
	border-radius: 999px;
	color: #102000;
	background: var(--rp-green);
	font-size: 11px;
	font-weight: 900;
	white-space: nowrap;
}

.rp-reader-offer__brandline {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
}

.rp-reader-offer__brandline img {
	width: 180px;
	height: auto;
	padding: 4px 7px;
	border-radius: 6px;
	background: #fff;
}

.rp-reader-offer__message {
	display: block;
	min-width: 0;
	flex: 1;
	color: #fff;
	font-size: clamp(15px, 1.2vw, 17px);
	font-style: normal;
	font-weight: 900;
	line-height: 1.4;
	white-space: nowrap;
}

.rp-reader-offer__message em { color: #ffd832; font-size: 1.28em; font-style: normal; }

.rp-reader-offer__button {
	display: inline-flex;
	min-height: 46px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--rp-green);
	border-radius: 5px;
	color: #102000;
	background: var(--rp-green);
	font-size: 13px;
	font-weight: 900;
	white-space: nowrap;
}

.rp-reader-offer__button::after { content: "›"; margin-left: 12px; font-size: 20px; line-height: 1; }

@media (max-width: 1050px) {
	.rp-hero__inner { width: min(calc(100% - 40px), 1120px); }
	.rp-hero__photo { background-position: 70% center; background-size: auto 102%; }
	.rp-hero__brand { width: 238px; }
	.rp-hero h1 { max-width: 53%; font-size: 44px; }
	.rp-hero__lead { max-width: 50%; font-size: 15px; }
	.rp-reader-offer__card {
		display: grid;
		grid-template-columns: 70px auto minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		gap: 9px 14px;
	}
	.rp-reader-offer__art { grid-column: 1; grid-row: 1 / 3; width: 70px; }
	.rp-reader-offer__label { grid-column: 2; grid-row: 1; justify-self: start; }
	.rp-reader-offer__brandline { grid-column: 3; grid-row: 1; }
	.rp-reader-offer__message { grid-column: 2 / 4; grid-row: 2; white-space: normal; }
	.rp-reader-offer__button { grid-column: 4; grid-row: 1 / 3; }
}

@media (max-width: 900px) {
	.rp-hero { min-height: 440px; }
	.rp-hero::after { background: linear-gradient(90deg, rgba(5,2,1,.94) 0%, rgba(8,3,2,.76) 42%, rgba(8,3,2,.1) 82%, rgba(8,3,2,0) 100%); }
	.rp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-guide-card__link { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 22px; }
	.rp-guide-card__icon { width: 84px; height: 84px; }
	.rp-guide-card svg { width: 62px; height: 56px; }
}

@media (max-width: 640px) {
	body.rinpedia-ai-home-page.admin-bar { min-height: calc(100vh - 46px); }
	.rp-container { width: min(calc(100% - 28px), var(--rp-width)); }
	.rp-home { font-size: 15px; line-height: 1.7; }
	.rp-hero { min-height: 392px; align-items: end; }
	.rp-hero::before { background-position: center; filter: blur(22px) brightness(.4) saturate(1.08); }
	.rp-hero__photo { background-position: 62% top; background-size: 112% auto; filter: brightness(1.04) saturate(1.02); }
	.rp-hero::after { background: linear-gradient(0deg, rgba(12,4,2,.96) 0%, rgba(14,5,2,.82) 47%, rgba(8,2,1,.08) 80%, rgba(8,2,1,0) 100%); }
	.rp-hero__inner { width: min(calc(100% - 28px), var(--rp-width)); padding: 126px 0 20px; text-align: left; }
	.rp-hero__brand { width: min(172px, 50vw); margin: 0 0 7px; }
	.rp-hero h1 { max-width: 310px; margin: 7px 0 6px; font-size: 27px; line-height: 1.16; letter-spacing: -.03em; }
	.rp-hero__lead { max-width: 292px; margin-left: 0; font-size: 12.5px; line-height: 1.5; }
	.rp-actions { justify-content: flex-start; margin-top: 12px; }
	.rp-button { width: min(100%, 268px); min-width: 0; min-height: 44px; padding: 9px 16px; font-size: 12.5px; }
	.rp-section { padding-block: 28px; }
	.rp-section + .rp-section { padding-top: 0; }
	.rp-section-title { gap: 9px; margin-bottom: 18px; font-size: 23px; line-height: 1.35; }
	.rp-section-title::before { width: 5px; height: 28px; flex-basis: 5px; }
	.rp-section-head { align-items: center; gap: 10px; margin-bottom: 18px; }
	.rp-section-head .rp-section-title { max-width: 58%; }
	.rp-section-head .rp-small-link { min-height: 36px; padding: 6px 10px; font-size: 11px; }
	.rp-post-grid { grid-template-columns: 1fr; }
	.rp-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 116px; }
	.rp-card__media { height: 100%; min-height: 116px; aspect-ratio: auto; }
	.rp-card__body { justify-content: center; padding: 11px 12px; }
	.rp-card__meta { gap: 6px; margin-bottom: 5px; font-size: 10px; line-height: 1.3; }
	.rp-tag { min-height: 20px; padding: 2px 7px; font-size: 9px; }
	.rp-card__title { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
	.rp-ai-panel { padding: 24px 17px; }
	.rp-ai-panel .rp-section-title { font-size: 22px; }
	.rp-ai-panel__intro { font-size: 13px; line-height: 1.75; }
	.rp-ai-panel__intro p + p { margin-top: 6px; }
	.rp-steps { display: flex; gap: 12px; overflow-x: auto; margin: 24px -5px 22px; padding: 0 5px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
	.rp-step { flex: 0 0 min(78vw, 285px); padding: 19px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.035); scroll-snap-align: start; }
	.rp-step::after { display: none !important; }
	.rp-step__icon { width: 72px; height: 72px; margin-bottom: 7px; }
	.rp-step__icon svg { width: 42px; height: 42px; }
	.rp-step__number { margin-bottom: 5px; font-size: 11px; }
	.rp-step h3 { font-size: 17px; }
	.rp-step p { font-size: 12px; line-height: 1.6; }
	.rp-panel-link { min-height: 48px; font-size: 14px; }
	.rp-guide-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.rp-guide-card__link { display: flex; min-height: 174px; flex-direction: column; justify-content: center; gap: 8px; padding: 13px 10px; text-align: center; }
	.rp-guide-card__icon { width: 60px; height: 60px; }
	.rp-guide-card svg { width: 45px; height: 41px; }
	.rp-guide-card__eyebrow { font-size: 8px; }
	.rp-guide-card h3 { font-size: 14px; line-height: 1.4; }
	.rp-guide-card p { display: none; }
	.rp-guide-card__more { font-size: 10px; }
	.rp-final-section { padding-bottom: 30px; }
	.rp-reader-offer--top { padding: 14px 0 4px; }
	.rp-reader-offer--top + .rp-section { padding-top: 24px; }
	.rp-reader-offer--bottom { padding-bottom: 40px; }
	.rp-reader-offer__card { grid-template-columns: 62px minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-items: center; gap: 7px 12px; padding: 17px 14px; }
	.rp-reader-offer__art { grid-column: 1; grid-row: 1 / 4; width: 62px; }
	.rp-reader-offer__label { grid-column: 2; grid-row: 1; min-height: 27px; padding: 3px 10px; font-size: 10px; }
	.rp-reader-offer__brandline { grid-column: 2; grid-row: 2; gap: 7px; font-size: 12px; }
	.rp-reader-offer__brandline img { width: min(152px, 70%); padding: 3px 5px; }
	.rp-reader-offer__message { grid-column: 2; grid-row: 3; font-size: 16px; line-height: 1.45; white-space: normal; }
	.rp-reader-offer__button { grid-column: 1 / 3; grid-row: 4; width: 100%; min-height: 44px; margin-top: 7px; font-size: 13px; }
}

@media (max-width: 380px) {
	.rp-hero { min-height: 374px; }
	.rp-hero__inner { padding-top: 118px; }
	.rp-hero__brand { width: 158px; }
	.rp-hero h1 { font-size: 25px; }
	.rp-card { grid-template-columns: 104px minmax(0, 1fr); }
	.rp-section-head .rp-small-link { white-space: normal; text-align: center; }
}
