/* ロックブリーム 脳内マップ */
.rbbm {
	margin: 0 0 2.5em;
}
.rbbm-stage {
	position: relative;
	width: 100%;
	height: clamp(420px, 72vh, 660px);
	overflow: hidden;
	border-radius: 18px;
	background: radial-gradient(ellipse at 50% 45%, #fffdf7 0%, #f7f0e3 62%, #eee2cd 100%);
	box-shadow: inset 0 0 0 1px rgba(56, 120, 109, 0.15);
}
.rbbm-brain {
	position: absolute;
	left: 3%;
	top: 4%;
	width: 94%;
	height: 92%;
	overflow: visible;
	pointer-events: none;
}
.rbbm-brain-g {
	transform-box: fill-box;
	transform-origin: center;
	transform: scale(0.6);
	opacity: 0;
}
.rbbm-brain-g.is-on {
	transform: scale(1);
	opacity: 1;
}
.rbbm-outline {
	fill: #f8e3de;
	stroke: #b47c77;
	stroke-width: 3.5;
	stroke-linejoin: round;
}
.rbbm-part {
	fill: #f1d3cd;
	stroke: #b47c77;
	stroke-width: 3.5;
	stroke-linejoin: round;
}
.rbbm-fold {
	fill: none;
	stroke: #c8918b;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.8;
}
.rbbm-sulcus {
	fill: none;
	stroke: #b47c77;
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.rbbm-lines {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease;
	pointer-events: none;
	z-index: 1;
}
.rbbm-lines.is-on {
	opacity: 1;
}
.rbbm-lines line {
	stroke: #ba8039;
	stroke-dasharray: 4 6;
	stroke-linecap: round;
	opacity: 0.75;
}
.rbbm-words {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}
.rbbm .rbbm-w {
	position: absolute;
	left: 50%;
	top: 47%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	display: inline-block;
	font-size: var(--fs, 16px);
	font-weight: bold;
	line-height: 1.3;
	white-space: nowrap;
	color: #285f56;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.94);
	border: 1.5px solid #38786d;
	border-radius: 999px;
	padding: 0.28em 0.85em;
	box-shadow: 0 2px 8px rgba(40, 95, 86, 0.15);
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.rbbm .rbbm-w:hover,
.rbbm .rbbm-w:focus-visible {
	background: #285f56;
	color: #fff;
}
.rbbm .rbbm-w small {
	font-size: 0.62em;
	font-weight: normal;
	margin-left: 0.4em;
	opacity: 0.7;
}
.rbbm .rbbm-w.is-hidden {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.2);
}
.rbbm .rbbm-w.is-drag {
	cursor: grabbing;
	z-index: 5;
	box-shadow: 0 6px 18px rgba(40, 95, 86, 0.3);
}
.rbbm .rbbm-plan {
	font-size: 13px;
	font-weight: normal;
	color: #7f9a94;
	background: rgba(255, 255, 255, 0.6);
	border: 1.5px dashed #b9cfc9;
	box-shadow: none;
}
.rbbm .rbbm-plan:hover {
	background: rgba(255, 255, 255, 0.8);
	color: #5f7f78;
}
.rbbm-in {
	display: inline-block;
}
.rbbm .is-float .rbbm-in {
	animation: rbbm-float 7s ease-in-out infinite;
}
@keyframes rbbm-float {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(2px, -4px); }
	50% { transform: translate(0, -6px); }
	75% { transform: translate(-2px, -3px); }
}
.rbbm-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em 1em;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.8em;
}
.rbbm-hint {
	margin: 0;
	font-size: 0.9em;
	color: #555;
}
.rbbm-reset {
	border: 1px solid #38786d;
	background: #fff;
	color: #285f56;
	border-radius: 999px;
	padding: 0.45em 1.1em;
	font-size: 0.85em;
	cursor: pointer;
}
.rbbm-reset:hover {
	background: #f1f7f5;
}
.rbbm-section {
	margin: 2em 0;
}
.rbbm-title,
.content .rbbm-title {
	margin: 1.6em 0 0.7em;
	padding: 0;
	border: 0;
	background: none;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: bold;
	letter-spacing: 0.14em;
	line-height: 1.3;
	color: #4a3728;
}
.rbbm-title::before,
.rbbm-title::after,
.content .rbbm-title::before,
.content .rbbm-title::after {
	display: none;
}
.rbbm-section ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rbbm-list ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}
.rbbm-list li {
	margin: 0;
}
.rbbm-list li a {
	display: inline-block;
	padding: 0.3em 0.9em;
	border: 1px solid #b9cfc9;
	border-radius: 999px;
	color: #285f56;
	text-decoration: none;
}
.rbbm-list li a:hover {
	background: #f1f7f5;
}
.rbbm-list li span {
	font-size: 0.8em;
	color: #888;
}
.rbbm-recent .rbbm-card {
	margin: 0 0 1em;
	padding: 0;
	border: 0;
}
.rbbm-recent .rbbm-card a {
	display: flex;
	gap: 1.1em;
	align-items: stretch;
	padding: 0.9em;
	background: #fff;
	border: 1px solid #eadfcd;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(74, 55, 40, 0.06);
	color: #4a3728;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rbbm-recent .rbbm-card a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(74, 55, 40, 0.12);
}
.rbbm-thumb {
	flex: 0 0 230px;
	align-self: flex-start;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(135deg, #f6efe3 0%, #ead9bd 100%);
}
.rbbm-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.rbbm-recent .rbbm-card a:hover .rbbm-thumb img {
	transform: scale(1.04);
}
.rbbm-body {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	min-width: 0;
}
.rbbm-date {
	display: block;
	font-size: 0.8em;
	color: #9a8572;
}
.rbbm-ttl {
	display: block;
	font-size: 1.05em;
	font-weight: bold;
	line-height: 1.5;
	color: #4a3728;
}
.rbbm-ex {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9em;
	line-height: 1.7;
	color: #6a5a4a;
}
.rbbm-read {
	display: block;
	margin-top: auto;
	padding-top: 0.2em;
	font-size: 0.85em;
	font-weight: bold;
	color: #c8923a;
}
.rbbm-more {
	margin-top: 1em;
	text-align: right;
}
.rbbm-more a {
	color: #285f56;
}
@media (max-width: 600px) {
	.rbbm-stage {
		height: clamp(400px, 68vh, 560px);
		border-radius: 14px;
	}
	.rbbm .rbbm-w {
		font-size: calc(var(--fs, 16px) * 0.82);
		padding: 0.25em 0.7em;
	}
	.rbbm .rbbm-plan {
		font-size: 11.5px;
	}
	.rbbm-recent .rbbm-card a {
		gap: 0.8em;
		padding: 0.7em;
	}
	.rbbm-thumb {
		flex-basis: 120px;
		aspect-ratio: 4 / 3;
	}
	.rbbm-ttl {
		font-size: 0.95em;
	}
	.rbbm-ex {
		-webkit-line-clamp: 2;
		font-size: 0.85em;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rbbm .is-float .rbbm-in {
		animation: none;
	}
	.rbbm .rbbm-w,
	.rbbm-brain-g,
	.rbbm-lines {
		transition: none !important;
	}
}
/* ===== トップの動くメインビジュアル [rb_hero] ===== */
.rbh {
	--rbh-h: clamp(520px, 78vh, 680px);
	position: relative;
	width: 100%;
	height: var(--rbh-h);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	isolation: isolate;
	background: #f6efe3;
}
.rbh::before {
	content: "";
	position: absolute;
	inset: -40px;
	background-image: var(--rbh-pc);
	background-size: cover;
	background-position: left center;
	filter: blur(28px);
	z-index: -4;
}
.rbh-bg {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: calc(var(--rbh-h) * 1.78);
	background-image: var(--rbh-pc);
	background-size: cover;
	background-position: center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	transform-origin: 70% 55%;
	animation: rbh-zoom 24s ease-in-out infinite alternate;
	will-change: transform;
	z-index: -3;
}
.rbh-veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 249, 238, 0.5) 0%, rgba(255, 249, 238, 0.18) 42%, rgba(255, 249, 238, 0) 58%),
		linear-gradient(180deg, rgba(255, 250, 242, 0) 60%, rgba(74, 55, 40, 0.14) 100%);
	z-index: -2;
}
.rbh-brain {
	position: absolute;
	left: 31%;
	top: 50%;
	width: min(62%, 600px);
	transform: translate(-50%, -52%);
	fill: none;
	stroke: rgba(200, 146, 58, 0.85);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.5;
	animation: rbh-breathe 7s ease-in-out infinite;
	z-index: -1;
	pointer-events: none;
}
.rbh-float {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.rbh .rbh-w {
	position: absolute;
	left: var(--l);
	bottom: -40px;
	font-size: var(--fs, 14px);
	font-weight: bold;
	line-height: 1.3;
	white-space: nowrap;
	color: #7a4f17;
	text-decoration: none;
	background: rgba(255, 252, 245, 0.7);
	border: 1px solid rgba(200, 146, 58, 0.55);
	border-radius: 999px;
	padding: 0.25em 0.8em;
	box-shadow: 0 0 18px rgba(255, 226, 160, 0.65);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	animation: rbh-rise var(--d, 24s) linear var(--dl, 0s) infinite;
	pointer-events: auto;
}
.rbh .rbh-w:hover {
	background: #c8923a;
	color: #fff;
}
.rbh .rbh-plan {
	font-weight: normal;
	color: #9a7a55;
	border-style: dashed;
	background: rgba(255, 252, 245, 0.45);
	box-shadow: none;
	pointer-events: none;
}
.rbh-dot {
	position: absolute;
	left: var(--l);
	bottom: -20px;
	width: var(--sz, 10px);
	height: var(--sz, 10px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 244, 200, 0.95) 0%, rgba(255, 230, 160, 0) 70%);
	opacity: 0;
	animation: rbh-rise var(--d, 14s) linear var(--dl, 0s) infinite;
}
.rbh-card {
	position: relative;
	z-index: 1;
	width: clamp(300px, 46%, 460px);
	margin-left: max(16px, 5%);
	padding: 2em 1.7em 1.5em;
	border-radius: 22px;
	text-align: left;
	background: rgba(255, 252, 246, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 8px 30px rgba(74, 55, 40, 0.08);
	color: #4a3728;
	text-shadow: 0 1px 10px rgba(255, 250, 240, 0.95);
}
.rbh-lead,
.rbh-title,
.rbh-sub,
.rbh-btns,
.rbh-scroll {
	opacity: 0;
	transform: translateY(18px);
	animation: rbh-up 1.1s ease-out forwards;
}
.rbh-lead {
	margin: 0 0 0.6em;
	font-size: 0.85em;
	letter-spacing: 0.12em;
	color: #a8742a;
	animation-delay: 0.2s;
}
.rbh .rbh-title {
	margin: 0 0 0.5em;
	padding: 0;
	border: 0;
	background: none;
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: bold;
	letter-spacing: 0.08em;
	white-space: nowrap;
	line-height: 1.3;
	color: #4a3728;
	animation-delay: 0.5s;
}
.rbh .rbh-title::before,
.rbh .rbh-title::after {
	display: none;
}
.rbh-sub {
	margin: 0 0 1.6em;
	font-size: clamp(0.95rem, 2.3vw, 1.08rem);
	line-height: 1.9;
	color: #5a4636;
	animation-delay: 0.9s;
}
.rbh-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	justify-content: flex-start;
	animation-delay: 1.3s;
}
.rbh .rbh-btn {
	display: inline-block;
	padding: 0.8em 1.4em;
	border-radius: 999px;
	text-shadow: none;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease;
}
.rbh .rbh-btn:hover {
	transform: translateY(-2px);
}
.rbh .rbh-btn-main {
	background: #c8923a;
	color: #fff;
	animation: rbh-glow 3.2s ease-in-out infinite;
}
.rbh .rbh-btn-main:hover {
	background: #b5802c;
}
.rbh .rbh-btn-sub {
	background: rgba(255, 255, 255, 0.7);
	color: #4a3728;
	border: 1px solid rgba(74, 55, 40, 0.3);
}
.rbh-scroll {
	margin: 1.2em 0 0;
	font-size: 0.8em;
	letter-spacing: 0.2em;
	color: #8a6d52;
	animation-delay: 1.7s;
}
.rbh-scroll span {
	display: block;
	font-size: 1.3em;
	animation: rbh-bounce 2s ease-in-out infinite;
}
@keyframes rbh-zoom {
	from { transform: scale(1) translate(0, 0); }
	to { transform: scale(1.06); }
}
@keyframes rbh-breathe {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 0.8; }
}
@keyframes rbh-rise {
	0% { transform: translateY(0); opacity: 0; }
	12% { opacity: 0.9; }
	80% { opacity: 0.9; }
	100% { transform: translateY(-760px); opacity: 0; }
}
@keyframes rbh-up {
	to { opacity: 1; transform: translateY(0); }
}
@keyframes rbh-glow {
	0%, 100% { box-shadow: 0 4px 16px rgba(200, 146, 58, 0.35), 0 0 0 0 rgba(200, 146, 58, 0.35); }
	50% { box-shadow: 0 6px 24px rgba(200, 146, 58, 0.55), 0 0 0 10px rgba(200, 146, 58, 0); }
}
@keyframes rbh-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}
@media (max-width: 600px) {
	.rbh {
		display: block;
		height: auto;
		padding: 122% 0 24px;
		background: linear-gradient(180deg, #f6efe3 0%, #f4e9d8 100%);
	}
	.rbh::before {
		display: none;
	}
	.rbh-bg {
		inset: auto;
		top: 0;
		left: 0;
		right: 0;
		width: auto;
		height: 0;
		transform-origin: center;
		padding-top: 125%;
		background-image: var(--rbh-sp, var(--rbh-pc));
		background-position: center top;
		-webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
	}
	.rbh-veil {
		display: none;
	}
	.rbh-brain {
		left: 50%;
		top: auto;
		bottom: 2%;
		width: 120%;
		transform: translate(-50%, 0);
	}
	.rbh-card {
		width: auto;
		margin: -36px 12px 0;
		padding: 1.6em 1.1em 1.2em;
		text-align: center;
		background: rgba(255, 251, 244, 0.62);
	}
	.rbh-btns {
		justify-content: center;
	}
	.rbh .rbh-btn {
		width: 100%;
		max-width: 300px;
	}
	.rbh .rbh-w {
		font-size: calc(var(--fs, 14px) * 0.85);
	}
}
@media (prefers-reduced-motion: reduce) {
	.rbh-bg,
	.rbh-brain,
	.rbh .rbh-btn-main,
	.rbh-scroll span {
		animation: none;
	}
	.rbh-lead,
	.rbh-title,
	.rbh-sub,
	.rbh-btns,
	.rbh-scroll {
		animation: none;
		opacity: 1;
		transform: none;
	}
	.rbh-float {
		display: none;
	}
}
