/* Creative Graphics / Book Journey — Figma frame 1025 wide.
   Footer sits 189px below the Book Journey artwork so the title clears the buttons. */

.cg-page {
	overflow-x: clip;
	background: #ffffff;
	color: #000000;
	font-family: Roboto, "Noto Sans JP", sans-serif;
}

.cg-page__frame {
	position: relative;
	width: 100%;
	margin: 0;
	aspect-ratio: 1025 / 983;
	container-type: inline-size;
}

.cg-page__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 1025px;
	height: 983px;
	transform-origin: top left;
	transform: scale(calc(100cqi / 1025px));
}

.cg-page__canvas img {
	max-width: none;
}

.cg-page__band {
	position: absolute;
	top: 105px;
	left: 0;
	width: 1025px;
	height: 681px;
	background: #d4fff9;
}

.cg-page__header {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	width: 1025px;
	height: 105.347px;
	background: linear-gradient(180deg, #ffffff 0%, #e0f7fa 100%);
}

.cg-page__logo {
	position: absolute;
	top: 30.88px;
	left: 22.78px;
	display: block;
	width: 263.963px;
	height: 59.392px;
	line-height: 0;
}

.cg-page__logo img {
	display: block;
	width: 263.963px;
	height: 59.392px;
	object-fit: contain;
	object-position: left center;
}

.cg-page__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-page__nav a {
	position: absolute;
	top: 34px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 8px 4px;
	border: 1px solid #dddddd;
	border-radius: 10px;
	background: #ffffff;
	color: blue;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-align: center;
}

.cg-page__nav li:nth-child(1) a {
	left: 565.89px;
	width: 85.233px;
}

.cg-page__nav li:nth-child(2) a {
	left: 660.28px;
	width: 70.57px;
}

.cg-page__nav li:nth-child(3) a {
	left: 740.02px;
	width: 76.985px;
}

.cg-page__nav li:nth-child(4) a {
	left: 826.17px;
	width: 87.066px;
}

.cg-page__nav li:nth-child(5) a {
	left: 922.4px;
	width: 70.57px;
}

.cg-page__nav a:hover {
	background: #f3f9ff;
}

.cg-page__nav a:focus-visible,
.cg-page__button a:focus-visible,
.cg-page__profile-button:focus-visible,
.cg-page__footer a:focus-visible {
	outline: 3px solid #176d73;
	outline-offset: 2px;
}

.cg-page__hero {
	position: absolute;
	z-index: 2;
	top: 199px;
	left: 279px;
	display: block;
	width: 466px;
	height: 466px;
	object-fit: cover;
	opacity: 0.5;
	filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.25));
	pointer-events: none;
}

.cg-page__buttons {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-page__button {
	position: absolute;
	z-index: 3;
	width: 151px;
	height: 63px;
}

.cg-page__button a {
	display: block;
	width: 151px;
	height: 63px;
	line-height: 0;
}

.cg-page__button img {
	display: block;
	width: 151px;
	height: 63px;
}

.cg-page__button--1 {
	top: 245px;
	left: 65px;
}

.cg-page__button--2 {
	top: 246px;
	left: 251px;
}

.cg-page__button--3 {
	top: 328px;
	left: 65px;
}

.cg-page__button--4 {
	top: 329px;
	left: 251px;
}

.cg-page__button--5 {
	top: 411px;
	left: 65px;
}

.cg-page__button--6 {
	top: 412px;
	left: 251px;
}

.cg-page__button a:hover {
	filter: brightness(1.06);
}

.cg-page__profile {
	position: absolute;
	z-index: 5;
	top: 161px;
	left: 711px;
	width: 297px;
	height: 396px;
}

.cg-page__profile-art {
	display: block;
	width: 297px;
	height: 396px;
	pointer-events: none;
}

/* Hit box matches Glossy Button.svg pill (rect 7,2 95.54×30.2). */
.cg-page__profile-button {
	position: absolute;
	z-index: 2;
	top: 95.46px;
	left: 100.56px;
	display: block;
	width: 95.54px;
	height: 30.2px;
	line-height: 0;
	overflow: visible;
}

.cg-page__profile-button img {
	position: absolute;
	top: -2px;
	left: -7px;
	display: block;
	width: 110px;
	height: 45px;
	max-width: none;
	pointer-events: none;
	transition: filter 0.2s ease;
}

.cg-page__profile-button:hover img {
	filter: brightness(1.35) saturate(1.7) hue-rotate(-12deg);
}

.cg-page__footer {
	position: absolute;
	z-index: 1;
	top: 786px;
	left: 0;
	width: 1025px;
	height: 197px;
	background: #60cfd1;
}

.cg-page__footer-glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 1025px;
	height: 89.624px;
	background: radial-gradient(
		ellipse 100% 100% at 50% 50%,
		#e8f9f9 0%,
		#afe7e8 50%,
		#82cfd4 68.75%,
		#55b8c0 87.5%,
		rgba(96, 207, 209, 0) 100%
	);
	filter: blur(2px);
	box-shadow: 0 4px 100px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.cg-page__footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cg-page__footer a {
	position: absolute;
	top: 14.29px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 178.841px;
	height: 57.585px;
	border: 1px solid #000000;
	border-radius: 25px;
	background: #ffffff;
	color: #000000;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cg-page__footer li:nth-child(1) a {
	left: 66.73px;
}

.cg-page__footer li:nth-child(2) a {
	left: 304.3px;
}

.cg-page__footer li:nth-child(3) a {
	left: 541.86px;
}

.cg-page__footer li:nth-child(4) a {
	left: 779.43px;
}

.cg-page__footer a:hover {
	background: #176d73;
	border-color: #176d73;
	color: #ffffff;
}

.cg-page__copyright {
	position: absolute;
	top: 100px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1025px;
	height: 32px;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.cg-page__empty {
	position: absolute;
	z-index: 3;
	top: 500px;
	left: 65px;
	margin: 0;
	color: #176d73;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.cg-page__button > span {
	display: block;
	width: 151px;
	height: 63px;
	line-height: 0;
}

.cg-page__menu {
	display: none;
}

@media (max-width: 1024px) {
	.cg-page__header.is-menu-open {
		z-index: 8;
	}

	.cg-page__menu {
		position: absolute;
		z-index: 6;
		top: calc((105.347px - 48px) / 2);
		right: auto;
		left: calc((100cqi - 16px) * 1025px / 100cqi - 48px);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 1px solid #9eb8d4;
		border-radius: 10px;
		background: #ffffff;
		cursor: pointer;
		transform: scale(calc(1025px / 100cqi));
		transform-origin: top right;
	}

	.cg-page__menu:focus-visible {
		outline: 2px solid #1a6d70;
		outline-offset: 2px;
	}

	.cg-page__menu-bars,
	.cg-page__menu-bars::before,
	.cg-page__menu-bars::after {
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: #1a6d70;
		transition: transform 0.42s cubic-bezier(0.65, 0.05, 0.36, 1), background-color 0.2s ease;
	}

	.cg-page__menu-bars {
		position: relative;
		transform: rotate(0deg);
		transform-origin: center;
	}

	.cg-page__menu-bars::before,
	.cg-page__menu-bars::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
	}

	.cg-page__menu-bars::before {
		transform: translateY(-7px) rotate(0deg);
	}

	.cg-page__menu-bars::after {
		transform: translateY(7px) rotate(0deg);
	}

	.cg-page__header.is-menu-open .cg-page__menu-bars {
		background: transparent;
		transform: rotate(180deg);
	}

	.cg-page__header.is-menu-open .cg-page__menu-bars::before {
		transform: translateY(0) rotate(45deg);
	}

	.cg-page__header.is-menu-open .cg-page__menu-bars::after {
		transform: translateY(0) rotate(-45deg);
	}

	.cg-page__nav {
		position: absolute;
		z-index: 5;
		top: 105.347px;
		right: auto;
		left: calc((100cqi - 16px) * 1025px / 100cqi - min(420px, 100cqi - 32px));
		display: grid;
		grid-template-rows: 0fr;
		width: min(420px, calc(100cqi - 32px));
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: scale(calc(1025px / 100cqi));
		transform-origin: top right;
		transition:
			grid-template-rows 0.34s ease,
			padding-top 0.34s ease,
			opacity 0.22s ease,
			visibility 0s linear 0.34s;
	}

	.cg-page__header.is-menu-open .cg-page__nav {
		grid-template-rows: 1fr;
		padding-top: max(8px, calc(48px - 76.673px * (100cqi / 1025px)));
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition:
			grid-template-rows 0.34s ease,
			padding-top 0.34s ease,
			opacity 0.24s ease,
			visibility 0s linear 0s;
	}

	.cg-page__nav ul {
		display: flex;
		flex-direction: column;
		gap: 8px;
		min-height: 0;
		overflow: hidden;
	}

	.cg-page__nav li {
		opacity: 0;
		transform: translateY(-10px);
		transition: opacity 0.22s ease, transform 0.28s ease;
	}

	.cg-page__header.is-menu-open .cg-page__nav li {
		opacity: 1;
		transform: translateY(0);
	}

	.cg-page__header.is-menu-open .cg-page__nav li:nth-child(1) {
		transition-delay: 0.05s;
	}

	.cg-page__header.is-menu-open .cg-page__nav li:nth-child(2) {
		transition-delay: 0.09s;
	}

	.cg-page__header.is-menu-open .cg-page__nav li:nth-child(3) {
		transition-delay: 0.13s;
	}

	.cg-page__header.is-menu-open .cg-page__nav li:nth-child(4) {
		transition-delay: 0.17s;
	}

	.cg-page__header.is-menu-open .cg-page__nav li:nth-child(5) {
		transition-delay: 0.21s;
	}

	.cg-page__nav a,
	.cg-page__nav li:nth-child(n) a {
		position: static;
		top: auto;
		left: auto;
		width: 100%;
		min-height: 48px;
	}

	.cg-page:has(.cg-page__header.is-menu-open) {
		overflow: visible;
	}
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
	.cg-page__menu-bars,
	.cg-page__menu-bars::before,
	.cg-page__menu-bars::after,
	.cg-page__nav,
	.cg-page__header.is-menu-open .cg-page__nav,
	.cg-page__nav li,
	.cg-page__header.is-menu-open .cg-page__nav li {
		transition: none;
	}
}
