/* --- Common ---*/
:root {
	--page-padding: 7.5rem;
}

html, body {
	font-family: 'Inter', 'Segoe UI', sans-serif;
	color: #1C1C1C;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}

.page-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.page-content {
	flex: 1;
}

.page-padding {
	padding-inline: var(--page-padding);
}

/*  */
.image-wrapper {
	position: relative;
	overflow: hidden;
}

.image-wrapper-image {
	object-fit: cover;
	display: block;
}

.image-wrapper-content {
	position: absolute;
}

/*  */
.border-radius-5 {
	border-radius: 5px;
}

/*  */
.primary-button {
	display: inline-block;
	border: 1px solid;
	border-radius: 5px;
	background-color: white;
	box-shadow: 0 0 0 rgba(0,0,0,0);
	transition: 
		transform 0.25s ease,
		background-color 0.25s ease;
}

.primary-button:hover {
	transform: translateY(-5px);
	background-color: #D7D7D7;
}

.primary-button a {
	color: #1C1C1C;
	font-weight: bold;
	text-decoration: none;
}

/*  */
.flex {
	display: flex;
}

 .justify-spacebetween {
	justify-content: space-between;
 }
 
 .flex-1 {
	flex: 1;
 }
.justify-center {
	justify-content: center;
}

.flex-column {
	flex-direction: column;
}
 
/* Logo */
.logo-section {
	padding-bottom: 0.5rem;
	background-color: #F2F2F2;
	font-weight: bold;
}

.logo-first-char {
	font-size: 3.5rem;
}

.logo-next-char {
	font-size: 2.5rem;
}


/* Navigation bar */
.navi-bar {
	display: flex;
	background: linear-gradient(to bottom, #FFFFFF, #E5E5E5);
}

.navi-item {
	padding: 0.25rem 1rem;
	display: inline-block;
	border-right: 1px solid #B2B2B2;
}

.navi-item a {
	font-size: 1.2rem;
	color: #1C1C1C;
	text-decoration: none;
}

.navi-item:hover {
	background: linear-gradient(to bottom, #EAEAEA, #A1A1A1);
}

.navi-selected {
	background: linear-gradient(to bottom, #6E6E6E, #1C1C1C);
}

.navi-selected a {
	color: white; 
}

/* Slogan */
.slogan-section {
	display: flex;
	align-items: center;
	position: relative;
	height: 12rem;
	background-color: #1C1C1C;
}

.slogan-image {
	position: absolute;
	height: 10rem;
	background-color: white;
	left: var(--page-padding);
	right: var(--page-padding);
	display: flex;
	align-items: center;
}

.slogan-image-icon {
	transform-origin: center;
	padding-left: 3rem;
}

.slogan-image-text {
	padding-left: 2rem;
	font-weight: bold;
	font-size: 2.25rem;
}

.slogan-image-text-2nd {
	padding-left: 15rem;
	padding-right: 1rem;
}

/* Footer */
.footer {
	margin-top: 1.5rem;
}
.footer-text {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	text-align: right;
	font-size: 0.85rem;
}

@media (max-width: 48rem) {
	:root {
		--page-padding: 1.5rem;
	}
	
	.navi-item {
		padding: 0.25rem 0.5rem;
	}

	.navi-item a {
		font-size: 1rem;
	}
	
	/* Slogan */
	.slogan-section {
		height: 8rem;
	}
	
	.slogan-image {
		height: 6rem;
	}
	
	.slogan-image-icon {
		transform: scale(0.75);
		padding-left: 1.5rem;
	}

	.slogan-image-text {
		font-size: 1.75rem;
		padding-left: 0.5rem;
	}

	.slogan-image-text-2nd {
		padding-left: 0;
		padding-right: 1rem;
	}
}


/* --- Home page --- */
/* Signup */
.signup-section {
	padding-top: 1.5rem;
}

.home-signup-image {
	width: 100%;
	min-height: 12rem;
	aspect-ratio: 10 / 3;
}

.home-signup-content {
	bottom: 2rem;
	left: 2rem;
}

.signup-content-header {
	color: white;
	font-size: 1.75rem;
	font-weight: bold;
}

.home-signup-button {
	margin-top: 0.25rem;
	padding: 0.5rem 1.5rem;
}

.home-signup-button a {
	font-size: 1.75rem;
}


/* Description */
.description-section {
	padding-top: 1.5rem;
	text-align: center;
}

.description-header {
	font-weight: bold;
	font-size: 2rem;
}


/* Merit card */
.merit-card-section {
	margin-top: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 1rem;
}

.merit-card {
	width: 18rem;
	min-width: 18rem;
	display: flex;
	flex-direction: column;
	border: 2px solid #1C1C1C;
	border-radius: 5px;
}

.merit-card-text {
	min-height: 5rem;
	max-height: 5rem;
}

.merit-card-header {
	font-weight: bold;
	font-size: 1.25rem;
	padding-left: 0.5rem;
}

.merit-card-description {
	padding-inline: 0.5rem;
}

.merit-card-icon {
	min-height: 10rem;
	max-height: 10rem;
	border-top: 2px solid #1C1C1C;
	display: flex;
	justify-content: center;
	align-items: center;
}


/* Manual link */
.manual-link {
	padding-top: 1rem;
	font-size: 1.25rem;
	text-align: center;
}

@media (max-width: 48rem) {
	/* Signup */
	.signup-content {
		bottom: 1rem;
		left: 1rem;
	}

	.signup-content-header {
		font-size: 1.25rem;
	}
	
	.home-signup-button {
		margin-top 0.5rem;
		padding: 0.25rem 0.75rem;
	}
	
	.home-signup-button a {
		font-size: 1.25rem;
	}
	
	/* Description */
	.description-header {
		font-size: 1.5rem;
	}
	
	.description-content {
		font-size: 0.75rem;
	}
	
	/* Merit card */
	.merit-card-section {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	
	.merit-card {
		width: 15rem;
		min-width: 15rem;
	}
	
	.merit-card-text {
		min-height: 4rem;
		max-height: 4rem;
	}

	.merit-card-header {
		font-size: 1rem;
	}

	.merit-card-description {
		font-size: 0.75rem;
	}

	.merit-card-icon {
		min-height: 8rem;
		max-height: 8rem;
	}
	
	/* Manual link */
	.manual-link {
		font-size: 1rem;
	}
	
	/* Footer */
	.footer-text {
		font-size: 0.65rem;
	}
}


/* --- User manual page --- */
.manual-section {
	margin-top: 1.5rem;
	padding-inline: var(--page-padding);
	width: 100%;
	display: flex;
}

.manual-group-panel {
	display: flex;
	flex-direction: column;
}

.manual-group {
	margin-bottom: 1rem;
	min-width: 15rem;
	border: 1px solid #1C1C1C;
	border-radius: 2px;
}

.manual-group-header {
	display: flex;
	justify-content: space-between;
	padding-inline: 0.5rem;
	background-color: #1C1C1C;
	color: white;
	cursor: pointer;
}

.manual-toggle-button {
	transition: transform 0.3s ease;
}

.manual-group.collapsed .manual-group-body {
	display: none;
}

.manual-group.collapsed .manual-toggle-button {
	transform: scaleY(-1);
}

.manual-group-item-wrapper {
	text-decoration: none;
}

.manual-group-item {
	border-top: 1px solid #B2B2B2;
	padding-left: 1rem;
	padding-top: 0.1rem;
	padding-bottom: 0.1rem;
	font-size: 0.85rem;
	color: #1C1C1C;
	transition: background-color 0.25s ease;
}

.manual-group-item:hover {
	background-color: #DBDBDB;
}

.manual-detail {
	flex: 1;
	margin-left: 2rem;
	min-width: 0;
}

.manual-detail-header {
	border: 1px solid #1C1C1C;
	border-radius: 5px 5px 0 0;
	padding: 0.25rem 0.5rem;
	background-color: #1C1C1C;
	color: white;
	font-size: 1.25rem;
}

.manual-detail-content {
	border: 1px solid #1C1C1C;
	border-radius: 0 0 5px 5px;
	padding: 0.5rem 1rem;
}

.manual-signup-section {
	margin-top: 1rem;
	padding-inline: var(--page-padding);
	width: 100%;
}

.manual-signup-wrapper {
	display: flex;
	align-items: center;
	background-color: #EEEEEE;
	border: 1px solid #1C1C1C;
	border-radius: 5px;
}

.manual-signup-image {
	height: 7rem;
}

.manual-signup-image img {
	height: 100%;
	width: auto;
	object-fit: cover;
	display: block;
	border-radius: 5px 0 0 5px;
}

.manual-signup-text-group {
	padding-left: 1rem;
}


.manual-signup-button {
	margin-top: 0.5rem;
	padding: 0.15rem 0.75rem;
}

.manual-signup-button a {
	font-size: 1.25rem;
}

@media (max-width: 48rem) {
	.manual-section {
		flex-direction: column-reverse;
	}
	.manual-group {
		margin-bottom: 0.5rem;
	}
	.manual-detail {
		margin-left: 0;
		margin-bottom: 1rem;
	}
	
	.manual-detail-content {
		padding: 0.25rem 0.5rem;
		font-size: 0.75rem;
	}
	
	.manual-signup-text {
		font-size: 0.8rem;
	}
	
	.manual-signup-button {
		margin-top: 0.25rem;
		padding: 0.1rem 0.5rem;
	}

	.manual-signup-button a {
		font-size: 1rem;
	}
}


/* --- Member page --- */
.member-slogan {
	margin-top: 1rem;
	font-size: 1.25rem;
	font-weight: bold;
}

.signup-login-section {
	margin-top: 1rem;
	display: flex;
}

.signup-login-image {
	width: 100%;
	min-height: 12rem;
	aspect-ratio: 10 / 3;
}

.signup-login-button {
	margin-top: 0.25rem;
	padding: 0.25rem 1rem;
}

.signup-login-button a {
	font-size: 1.25rem;
}

.content-vertical-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	bottom: 2rem;
}

.signup-login-content-header {
	color: white;
	font-size: 1.25rem;
	font-weight:bold;
}

.first-image-radius {
	border-radius: 5px 0 0 5px;
}

.second-image-radius {
	border-radius: 0 5px 5px 0;
}

@media (max-width: 48rem) {
	.signup-login-section {
		flex-direction: column;
	}
	
	.first-image-radius {
		border-radius: 5px 5px 0 0;
	}

	.second-image-radius {
		border-radius: 0 0 5px 5px;
	}
}
