html {
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

body {
	/* font-family: Inter, SF Pro, Segoe UI, Roboto, Oxygen, Ubuntu, Helvetica Neue, Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; */
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "BIZ UDPGothic", "Noto Sans JP", Inter, SF Pro, Segoe UI, Roboto, Oxygen, Ubuntu, Helvetica Neue, Helvetica, Arial, sans-serif;
}

nav.panel, aside .menu {
	position: sticky;
	/* top: 5rem; */
	top: 0.5rem;
	margin-top: 0.5rem;
	margin-left: 0.5rem;
	display: inline-block;
	vertical-align: top;
	width: 100%;
	max-height: 100vh;
	overflow-y: auto;
	padding-bottom: 2rem;
}

.hero-body .subtitle {
	margin-top: 0.5rem;
}

aside.menu::-webkit-scrollbar {
	display: none;
}

aside.menu .menu-category {
	margin-top: 1rem;
	margin-bottom: 0.6rem;
}

h2.title {
	border-left: 8px solid #3273dc;
	padding-left: 0.7rem;
}

h3.title {
	border-left: 6px solid #999;
	padding-left: 0.7rem;
}
/*h2.title {
	text-indent: -1.5rem;
	padding-left: 2rem;
}*/

h2.title .icon-text {
	padding-top: 0.3rem;
	padding-bottom: 0.25rem;
	display: flex;
	align-items: center;
}

h2.title .icon-text .icon {
	margin-left: 0.2rem;
	margin-right: 0.2rem;
	font-size: 1.4rem;
}

.menu-list.is-small li, details ul.is-small li, .notification p.is-small, .notification ul.is-small li {
	font-size: small;
}

.menu-list li.chapter > a > span {
	position: absolute;
	left: 2.2rem;
}

.menu-list li.chapter > a.is-active {
	background-color: grey;
}

figure.teacher.is-64x64 img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
}

figure.teacher.is-128x128 img {
	width: 128px;
	height: 128px;
	object-fit: cover;
	border-radius: 12px;
	border: 4px solid white;
}

.notification ul {
	margin-top: 0;
	margin-bottom: 0.4rem;
}

details div {
	margin-left: 1rem;
	margin-top: 0.4rem;
}

details summary {
	cursor: pointer;
}

#modal-container, #modal-html-container {
	display: none;
	position: fixed;
	background: rgba(0, 0, 0, .6);
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99;
}

#modal-html-container {
	cursor: pointer;
}

#modal-container {
	cursor: zoom-out;
}

#modal-container div {
	display: flex;
	height: 100vh;
	justify-content: center;
	align-items: center;
}

#modal-html-container div.content {
	display: flex;
	height: 100vh;
	justify-content: center;
	align-items: center;
}

#modal-html-container div.content > div {
	min-width: 50%;
	max-width: calc(100vw - 30px);
	max-height: calc(100vh - 30px);
	overflow: auto;
	/* background-color: white; */
	border-radius: 0.5rem;
	padding: 1rem;
} 

#modal-html-container div.content div.message-from-teacher {
	max-width: min(calc(80vw - 30px), 600px);
	padding: 1.5rem 2.5rem;
}

#modal-html-container div.content div.notification {
	max-width: min(calc(80vw - 30px), 1000px);
	padding: 1.5rem 2.5rem;
}

#modal-html-container div.content div.message-from-teacher .is-narrow p {
	margin-top: 0.5rem;
	text-align: center;
}

.teacher-info h4 {
	margin-bottom: 0.2rem;
}

/* .teacher-info .content ul {
	margin-top: 0.2rem;
} */

.teacher-info .keywords {
	font-size: small;
	text-indent: -0.5rem;
	margin-left: 1rem;
}

ul.theme-notification {
	margin-top: -0.5rem !important;
	margin-bottom: 0.8rem !important;
	list-style-type: none !important;
}

ul.theme-notification li {
	font-size: 0.7rem;
}

ul.theme-notification li:before {
	font-size: 0.7rem;
	content: "※";
	margin-left: -0.7rem;
	margin-right: 0.3rem;
}

#modal-container div img {
	max-width: calc(100vw - 30px);
	max-height: calc(100vh - 30px);
}

img.popup {
	cursor: zoom-in;
	width: 300px;
}

.teacher-nav {
	margin: 0.5rem auto;
}

.teacher-nav div span {
	display: inline-block;
	margin-bottom: 0.2rem;
}

div.space {
	height: 2rem;
}

div.space.menu-last {
	height: 75vh;

}
div.space.main-last {
	height: 30vh;
}

#modal-html-container div.content div.notification {
	margin-top: 1rem !important;
	margin-bottom: 1rem !important;
}

#admission-policy th, #admission-policy td {
	font-weight: normal;
	text-align: center;
	vertical-align: middle;
	min-width: 6rem;
	font-size: 0.8rem;
}

.carousel-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
	margin: 0 auto;
}

.carousel {
    overflow: hidden;
    flex: 1;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 33.33%;
    box-sizing: border-box;
    padding: 1px;
    background-color: #fff;
    border: 1px solid #fff;
    text-align: center;
	display: flex;
	align-items: center;
}

.carousel-item img {
	width: 100%;
	height: auto;
}

.carousel-button {
    background-color: #666;
    color: white;
    border: none;
	border-radius: 32px;
    padding: 6px 8px;
	margin: 2px;
    cursor: pointer;
}

.carousel-button:disabled {
    background-color: #bbb;
    cursor: not-allowed;
}

.banner-item {
	position: relative;
}

.banner-label {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	font-weight: bold;
	background-color: #eeec;
	border-radius: 0.3rem;
	color: #333;
	padding: 0.2rem 0.5rem;
	font-size: 0.8rem;
}

.carousel-header {
	width: 100%;
    max-width: 800px;
	margin: 0 auto;
	background-color: #555;
	color: white;
	font-weight: bold;
	text-align: center;
}

.indent {
	margin-left: 1rem;
}

.lecture {
	text-decoration: underline;
	text-decoration-style: wavy;
	text-decoration-color: #3337;
	text-underline-offset: 0.1rem;
}

p.link-button {
	margin-left: 2rem;
	margin-top: 0 !important;
	margin-bottom: 2rem !important;
}

.link-button + .link-button, div.link-note + .link-button {
	margin-top: -1.8rem !important;
}

.notification + .link-button {
	margin-top: -0.8rem !important;
}

.link-button + div.link-note {
	margin-top: -30px;
	font-size: small;
	margin-left: 2.4rem;
	margin-bottom: 2.2rem;
}

.exam-hidden, .exam-schedule-hidden {
	display: none;
}

#exam li .label {
	margin-top: 0.8rem;
	margin-bottom: 0.2rem;
}

#exam li .key {
	font-weight: 500;
	color: var(--bulma-link-bold);
	display: inline-block;
	vertical-align: top;
}

#exam li .value {
	font-weight: 500;
	display: inline-block;
}

#admission-policy dt {
	color: var(--bulma-success);
	font-weight: bold;
	font-size: 1.1;
	margin-top: 0.8rem;
}

.panel {
	break-inside: avoid;
}

.box .teacher-info {
	break-inside: avoid;
}

@media screen and (max-width: 768px) {
	#modal-html-container div.content div.message-from-teacher {
		max-width: min(calc(100vw - 30px), 600px);
	}
	
	#modal-html-container div.content div.notification {
		max-width: min(calc(100vw - 30px), 1000px);
	}

	figure.teacher.is-128x128 img {
		width: 64px;
		height: 64px;
		border-radius: 6px;
		border: 2px solid white;
	}

	#modal-html-container div.content div.message-from-teacher .is-narrow {
		font-size: small;
	}

	#modal-html-container div.content div.message-from-teacher .is-narrow figure {
		width: 68px;
		height: 68px
	}
}

@media print {
	.is-hidden-print {
		display: none !important;
	}

	#modal-container, #modal-html-container {
		background: none !important;
	}

	#modal-html-container {
		height: auto !important;
		overflow: auto !important;
		position: relative !important;
	}

	#modal-html-container div.content {
		height: auto !important;
		overflow: auto !important;
	}

	#modal-html-container div.content div.notification {
		background: none !important;
		max-width: 100%;
		max-height: none;
		overflow: auto;
	}

	#modal-html-container div.content div.notification .delete {
		display: none;
	}

	#modal-html-container div.content div.notification.message-from-teacher {
		color: black;
	}

	aside#menu {
		width: 0 !important;
		display: none !important;
	}

	article#main {
		width: 100%;
	}

	div.space.main-last, div.space.menu-last {
		height: 2rem;
	}
	
	article.column {
		width: 100%;
		flex: none;
		display: block;
	}

	.footer {
		padding: 1rem;
	}
}

	/* .card-content, .nobreak {
		break-inside: avoid;
	}

	.card {
		box-shadow: none;
		border: 1px solid grey;
	}
	.card-header {
		box-shadow: none;
		border-bottom: 1px solid grey;
	} */

