* {
	font-family: "Noto Sans JP", sans-serif;
	font-weight: bold;
	color: #000;
	margin: 0;
	padding: 0;
	transition: all 1s, scale 0.5s, clip-path 0.5s, font-size 0s, line-height 0s;
	border: none;
	box-sizing: border-box;
	scrollbar-color: #fff #000;
}

html {
	height: 100%;
	overflow: hidden;
}

body {
	background: #fff;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

button:not(:disabled) {
	cursor: pointer;
}

h2 ~ p::before {
	content: "　";
}

.wrapper {
	height: 100%;
	position: relative;
	aspect-ratio: 4 / 3;
}

@media (max-aspect-ratio: 4/3) {
	.wrapper {
		height: unset;
		width: 100%;
	}
}

.disabled {
	user-select: none;
	pointer-events: none;
}

.article-bg {
	position: absolute;
	aspect-ratio: 1;
	height: 400% !important;
	top: -90% !important;
	left: 10% !important;
	background: #fff;
	transition: all 1s;
}

.article-bg p, .article-bg img {
	scale: 0;
}

#logo, #past, #present, #future, #beyond {
	position: absolute;
	border-radius: 50%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
}

.bubble {
	height: 100%;
	width: 100%;
	background: #fff;
	color: #000;
	border-radius: 50%;
	container-type: size;
	position: relative;
}

.bubble > * {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	height: 60%;
	aspect-ratio: 1;
}

.has-text > p {
	font-size: 30cqw;
	line-height: 2em;
	clip-path: rect(0% 100% 100% 100%);
}

.has-text > img {
	clip-path: rect(0% 100% 100% 0%);
}

.has-text:hover > p {
	clip-path: rect(0% 100% 100% 0%);
}

.has-text:hover > img {
	clip-path: rect(0% 0% 100% 0%);
}

button.bubble:not(:disabled):hover {
	scale: 1.2;
}

.article {
	background: white;
	position: absolute;
	height: 66%;
	width: 66%;
	top: 17%;
	left: 17%;
	visibility: hidden;
	clip-path: rect(-5% 105% -5% -5%);
	z-index: 2;
	container-type: size;
	display: flex;
}

.article.shown {
	visibility: visible;
	clip-path: rect(-5% 105% 105% -5%);
}

.article div {
	position: relative;
	font-size: 1.6rem;
	height: 100%;
	width: 50%;
	padding: 2%;
	overflow: auto;
}

.article div:first-child {
	display: flex;
	align-items: center;
	overflow: hidden;
}

.article img {
	width: 100%;
	font-weight: normal;
	filter: grayscale() contrast(20) brightness(0.8) contrast(20);
}

#left, #right {
	z-index: 2;
	position: absolute;
	height: 10%;
	aspect-ratio: 1;
	top: 45%;
	background: none;
	background-size: 100%;
	visibility: hidden;
}

#left:not(:disabled), #right:not(:disabled) {
	visibility: visible;
	clip-path: rect(-5% 105% 105% -5%);
}

#left {
	left: 5%;
	background-image: url(../img/left.svg);
	clip-path: rect(-5% 105% 105% 105%);
}

#right {
	right: 5%;
	background-image: url(../img/right.svg);
	clip-path: rect(-5% -5% 105% -5%);
}

.left-away {
	transform: translateX(-200%) scale(0);
}

.right-away {
	transform: translateX(200%) scale(0);
}

#invert-top, #invert-article {
	height: 10%;
	aspect-ratio: 2;
	position: absolute;
	top: 2%;
	left: 2%;
	background: #000;
	border-radius: 10000px;
	background-image: url(../img/theme.svg);
	background-size: 100%;
}

.knob {
	height: 80%;
	aspect-ratio: 1;
	background: #fff;
	border-radius: 50%;
	margin: 5%;
	transition: margin 0.5s;
}

#invert-article {
	z-index: 997;
	visibility: hidden;
	clip-path: rect(-5% -5% 105% -5%);
}

#invert-article:not(:disabled) {
	visibility: visible;
	clip-path: rect(-5% 105% 105% -5%);
}

#load {
	display: flex;
	align-items: center;
	justify-content: center;
	mix-blend-mode: multiply;
}

#load div {
	height: 0%;
	aspect-ratio: 1;
	background: #fff;
	border-radius: 50%;
}

.expand {
	pointer-events: none;
}

#load.expand > div {
	height: 250%;
}

#bg {
	position: absolute;
	aspect-ratio: 1;
	border-radius: 50%;
	height: 100%;
	transform: translate(70%, 140%) scale(4);
	background: #000;
}

#filter {
	z-index: 999;
	pointer-events: none;
	aspect-ratio: 1;
	height: 300vmax;
	border-radius: 50%;
	margin: -150vmax;
	position: absolute;
	top: 7%;
	left: 9.5%;
	scale: 0;
	transition: scale 0.5s;
	backdrop-filter: invert();
}

#filter.active {
	scale: 1;
	transition: scale 1s;
}

#return {
	background: none;
	position: absolute;
	bottom: 2%;
	right: 2%;
	height: 15%;
	aspect-ratio: 1;
	border-radius: 100%;
	visibility: hidden;
	clip-path: rect(-5% 105% -5% -5%);
	background-image: url("../img/return.svg");
	background-size: 100%;
}

#return:not(:disabled) {
	visibility: visible;
	clip-path: rect(-5% 105% 105% -5%);
}

.line {
	background: white;
	position: absolute;
}
