/* アゲルコンパスへの導線：追従ボタンと、紹介コンテンツ。サイトのテーマに左右されないよう、.agc-entry で始まる名前だけを使う。 */
.agc-entry,
.agc-entry-cards {
	--agc-e-main: #4527c9;
	--agc-e-main-2: #6b4ff0;
	--agc-e-ink: #1c2140;
	--agc-e-sub: #4a5280;
	--agc-e-line: #d9d4f5;
	--agc-e-soft: #f4f2ff;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	box-sizing: border-box;
}

.agc-entry *,
.agc-entry-cards * {
	box-sizing: border-box;
}

/* ---- 追従ボタン ---- */
.agc-entry {
	position: fixed;
	right: 16px;
	bottom: calc(var(--agc-entry-bottom, 16px) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	max-width: calc(100vw - 32px);
}

.agc-entry-fab:focus-visible,
.agc-entry-item:focus-visible,
.agc-entry-close:focus-visible,
.agc-entry-card:focus-visible {
	outline: 3px solid #ffb703;
	outline-offset: 2px;
}

.agc-entry-panel {
	width: 340px;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	overflow: auto;
	padding: 14px;
	border: 1px solid var(--agc-e-line);
	border-radius: 18px;
	background: #fff;
	color: var(--agc-e-ink);
	box-shadow: 0 12px 32px rgba(28, 33, 64, .22);
}

.agc-entry-panel[hidden] {
	display: none;
}

.agc-entry {
	--agc-e-ease: cubic-bezier(.22, 1, .36, 1);
}

.agc-entry-fab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-height: 52px;
	padding: 6px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--agc-e-main-2), var(--agc-e-main));
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(69, 39, 201, .35);
	transition: gap .5s var(--agc-e-ease), padding .5s var(--agc-e-ease), transform .25s var(--agc-e-ease), box-shadow .25s ease, filter .2s ease;
}

.agc-entry-fab img {
	display: block;
	width: 40px;
	height: auto;
	border-radius: 50%;
	background: #fff;
	padding: 3px;
}

.agc-entry-fab:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(69, 39, 201, .42);
}

.agc-entry-fab:active {
	transform: scale(.97);
}

.agc-entry-fab-text {
	display: block;
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-8px);
	transition: max-width .55s var(--agc-e-ease), opacity .35s ease, transform .55s var(--agc-e-ease);
}

/* JSが動かないときは、最初から文言つきで見せる。動くときは、FVを過ぎるまでアイコンだけ。 */
.agc-entry:not(.is-js) .agc-entry-fab-text,
.agc-entry.is-expanded .agc-entry-fab-text,
.agc-entry.is-open .agc-entry-fab-text {
	max-width: 14em;
	opacity: 1;
	transform: none;
	transition-delay: 0s, .1s, 0s;
}

.agc-entry:not(.is-js) .agc-entry-fab,
.agc-entry.is-expanded .agc-entry-fab,
.agc-entry.is-open .agc-entry-fab {
	gap: 8px;
	padding-right: 18px;
}

/* 目に留まる仕掛け：「!」バッジと、ときどき跳ねるアゲルくん（開いたあとは止める） */
.agc-entry-badge {
	position: absolute;
	right: -3px;
	top: -5px;
	z-index: 1;
	isolation: isolate;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ef3b5a;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	line-height: 22px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}

.agc-entry-badge::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: #ef3b5a;
	animation: agc-e-ping 1.9s cubic-bezier(0, 0, .2, 1) infinite;
}

.agc-entry.is-seen .agc-entry-badge,
.agc-entry.is-open .agc-entry-badge {
	display: none;
}

@keyframes agc-e-ping {
	0% {
		transform: scale(1);
		opacity: .65;
	}

	75%,
	100% {
		transform: scale(2.4);
		opacity: 0;
	}
}

@keyframes agc-e-hop {

	0%,
	12%,
	100% {
		transform: translateY(0);
	}

	3% {
		transform: translateY(-8px);
	}

	6% {
		transform: translateY(0);
	}

	8.5% {
		transform: translateY(-4px);
	}

	10.5% {
		transform: translateY(0);
	}
}

.agc-entry.is-js:not(.is-seen):not(.is-open) .agc-entry-fab img {
	animation: agc-e-hop 6s ease-in-out 2.5s infinite;
}

/* パネルの開閉：ふわっと拡大しながら現れ、閉じるときはすっと戻る */
.agc-entry-panel {
	transform-origin: right bottom;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(14px) scale(.9);
	transition: opacity .25s ease, transform .35s var(--agc-e-ease), visibility 0s linear .35s;
}

.agc-entry.is-open .agc-entry-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: opacity .28s ease, transform .55s cubic-bezier(.34, 1.36, .64, 1), visibility 0s;
}

.agc-entry-list>li {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease;
}

.agc-entry.is-open .agc-entry-list>li {
	opacity: 1;
	transform: none;
	transition: opacity .4s ease, transform .5s var(--agc-e-ease);
}

.agc-entry.is-open .agc-entry-list>li:nth-child(1) {
	transition-delay: .10s;
}

.agc-entry.is-open .agc-entry-list>li:nth-child(2) {
	transition-delay: .16s;
}

.agc-entry.is-open .agc-entry-list>li:nth-child(3) {
	transition-delay: .22s;
}

.agc-entry.is-open .agc-entry-list>li:nth-child(4) {
	transition-delay: .28s;
}

@media (prefers-reduced-motion: reduce) {

	.agc-entry *,
	.agc-entry-panel {
		transition-duration: .01s !important;
		transition-delay: 0s !important;
		animation: none !important;
	}
}

.agc-entry-head {
	display: grid;
	grid-template-columns: 48px 1fr 32px;
	gap: 10px;
	align-items: start;
}

.agc-entry-head img {
	display: block;
	width: 48px;
	height: auto;
}

.agc-entry-bubble {
	margin: 0;
	padding: 10px 12px;
	border-radius: 4px 14px 14px 14px;
	background: var(--agc-e-soft);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--agc-e-ink);
}

.agc-entry-close {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--agc-e-sub);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.agc-entry-list {
	display: grid;
	gap: 8px;
	margin: 12px 0 8px;
	padding: 0;
	list-style: none;
}

.agc-entry-item {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--agc-e-line);
	border-radius: 14px;
	background: #fff;
	color: var(--agc-e-ink);
	text-decoration: none;
}

.agc-entry-item:hover {
	border-color: var(--agc-e-main);
	background: var(--agc-e-soft);
}

.agc-entry-item-title {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: var(--agc-e-main);
}

.agc-entry-item-desc {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--agc-e-sub);
}

.agc-entry-note {
	margin: 0;
	font-size: 11px;
	color: var(--agc-e-sub);
	text-align: center;
}

/* ---- 紹介コンテンツ ---- */
.agc-entry-cards {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 56px 16px 60px;
	background: linear-gradient(160deg, #1e1a6e, #3a2bb5 60%, #5a3fe0);
	color: #fff;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	box-sizing: border-box;
}

.agc-entry-cards *,
.agc-entry-cards *::before,
.agc-entry-cards *::after {
	box-sizing: border-box;
}

.agc-entry-cards::before {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
}

.agc-entry-cards::after {
	content: "";
	position: absolute;
	left: -90px;
	bottom: -110px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
}

.agc-entry-cards-inner {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
}

.agc-entry-cards-top {
	display: flex;
	gap: 20px;
	align-items: flex-end;
	margin-bottom: 28px;
}

.agc-entry-cards-mascot {
	flex: none;
	width: 104px;
	height: auto;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
}

.agc-entry-cards-eyebrow {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ffd23f;
	color: #2a1f00;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
}

.agc-entry-cards-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.4;
	color: #fff;
}

.agc-entry-cards-title::before,
.agc-entry-cards-title::after {
	content: none;
}

.agc-entry-cards-lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: #e4defd;
}

.agc-entry-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 24px;
}

.agc-entry-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 20px 18px;
	border-radius: 18px;
	background: #fff;
	color: var(--agc-e-ink);
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(10, 6, 60, .28);
}

.agc-entry-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(10, 6, 60, .34);
}

.agc-entry-card-no {
	position: absolute;
	right: 16px;
	top: 12px;
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
	color: #ece8ff;
}

.agc-entry-card-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--agc-e-main-2), var(--agc-e-main));
	color: #fff;
}

.agc-entry-card-title {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
	color: #2a1c9e;
}

.agc-entry-card-desc {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--agc-e-sub);
}

.agc-entry-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.agc-entry-card-badges em {
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1eeff;
	color: var(--agc-e-main);
	font-size: 11.5px;
	font-style: normal;
	font-weight: 700;
}

.agc-entry-card-cta {
	margin-top: auto;
	display: block;
	padding: 11px 8px;
	border-radius: 999px;
	background: #ef3b5a;
	color: #fff;
	text-align: center;
	font-size: 13.5px;
	font-weight: 800;
}

.agc-entry-card--self .agc-entry-card-cta,
.agc-entry-card--advisor .agc-entry-card-cta {
	background: #ef3b5a;
}

.agc-entry-card-cta::after {
	content: " \203A";
}

.agc-entry-cards-note {
	margin: 22px 0 0;
	font-size: 12px;
	color: #cfc6fa;
	text-align: center;
}

@media (max-width: 560px) {
	.agc-entry {
		right: 12px;
	}

	.agc-entry-fab {
		font-size: 13px;
	}

	.agc-entry-panel {
		width: calc(100vw - 24px);
	}

	.agc-entry-cards {
		padding: 40px 14px 44px;
		margin: 0;
	}

	.agc-entry-cards-top {
		gap: 12px;
	}

	.agc-entry-cards-mascot {
		width: 72px;
	}

	.agc-entry-cards-title {
		font-size: 20px;
	}

	.agc-entry-cards-lead {
		font-size: 13.5px;
	}

	.agc-entry-cards-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {

	.agc-entry-card,
	.agc-entry-item {
		transition: filter .15s, box-shadow .15s, border-color .15s, background-color .15s, transform .15s;
	}
}