h1,
h2 {
	font-size: 1em;
	font-weight: normal;
}

html {
	height: 100%;
}

body {
	height: 100%;
	margin: 0;
	font-size: 12px;
	display: grid;
	grid-template-areas:
		'header header'
		'nav main';
	grid-template-columns: 240px 1fr;
	grid-template-rows: 41px 1fr;
}

body > header {
	grid-area: header;
	display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0 0.5rem;
	background: #5378cb;
	height: 41px;
	color: white;
	font-weight: bold;
}

body > header > img {
	width: 4em;
    height: 2em;
    object-fit: cover;
    vertical-align: text-bottom;
}

body > nav {
	grid-area: nav;
	width: 240px;
	background: #e5e7ea;
	height: 100%;
}

body > nav h1 {
	background: #383d4d;
	margin: 0;
	height: 51px;
	line-height: 51px;
	text-align: center;
	font-size: 1.2em;
	letter-spacing: -0.15em;
}

body > nav h1 > :nth-child(1) {
	color: white;
	font-family: 'Nanum Gothic';
}

body > nav h1 > :nth-child(2) {
	color: #d19b59;
}

body > nav h2 {
	margin: 0;
	padding: 22px 0 19px;
	text-align: center;
	font-size: 21px;
	font-weight: bold;
	letter-spacing: -0.1em;
	color: #383d4d;
}

body > nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body > nav > ul {
	border-bottom: 1px solid #5378cb;
}

body > nav ul > li > a {
	display: block;
	cursor: pointer;
}

body > nav > ul > li > a {
	padding: 9px 10px 10px;
	background: #7593d5;
	color: white;
	font-weight: bold;
}

body > nav > ul > li > ul > li > a {
	padding: 9px 10px 10px 30px;
	background: url(res/bg_aside_arrow.gif) no-repeat 20px 14px #eceff6;
	color: #5378cb;
	border: 1px solid #d5def2;
	border-bottom: 0;
	border-right: 0;
}

body > nav > ul > li > ul > li > a.selected {
	font-weight: bold;
}

main {
	grid-area: main;
	margin: 9px 19px 19px 19px;
	width: 981px;
	line-height: 1.5;
	float: left;
	padding-bottom: 100px;
	display: grid;
	grid-template-areas:
		'header header'
		'myInfo timetable'
		'helper timetable'
		'result timetable';
	grid-template-columns: 1fr 300px;
}

main > header {
	grid-area: header;
	margin-bottom: 15px;
	padding-bottom: 11px;
	background: url(res/tit_sec.gif) no-repeat left bottom;
	position: relative;
	vertical-align: baseline;
	-webkit-text-size-adjust: none;
}

main > header > h1 {
	min-height: 18px;
	background: url(res/tit_school.gif) no-repeat 2px 6px;
	padding-left: 27px;
	font-family: 'Nanum Gothic';
	font-size: 21px;
	letter-spacing: -0.1em;
	margin: 0;
}

table {
	line-height: 1.5;
	table-layout: fixed;
	width: 100%;
	border-collapse: collapse;
	border: 0;
	word-break: break-all;
}

table.data th,
col.head {
	font-weight: bold;
	text-align: center;
	background: #ecf0f9;
	color: #686868;
}

th,
td {
	margin: 0;
	padding: 4px 9px;
	border: 1px solid #d3d3d3;
}

table.list th:not([rowspan]) {
	background: #e5e7ea;
	text-align: center;
	border: 1px solid #d5d5d5;
}

#user-info th:not([rowspan]) {
	font-weight: normal;
	text-align: left;
	width: 50px;
}

#my-info {
	grid-area: myInfo;
	display: flex;
}

#score-info {
	width: 200px;
	margin-left: 6px;
	text-align: center;
}

#helper {
	grid-area: helper;
}

#helper td {
	height: 100%;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#helper > nav {
	background: url(res/line_tab.gif) repeat-x left bottom;
	overflow: hidden;
	margin: 0;
	margin-bottom: 20px;
	padding: 0;
	-webkit-text-size-adjust: none;
	vertical-align: baseline;
}

#helper > nav ul {
	list-style: none;
	padding: 0;
}

#helper > nav ul > li {
	margin-bottom: -1px;
	padding-bottom: 1px;
	margin: 2px -14px 0 0;
	font-weight: normal;
	text-align: center;
	float: left;
	padding: 0;
	position: relative;
}

#helper > nav ul a.selected {
	height: 34px;
	font-weight: bold;
	background: url(res/bg_tab_on.png) no-repeat left top;
	color: #5378cb;
	z-index: 31;
}

#helper > nav ul a.selected::after {
	content: '';
	background: url(res/bg_tab_on.png) no-repeat right top;
}

#helper > nav ul a {
	height: 33px;
	display: block;
	margin-right: 26px;
	padding: 0 8px 0 25px;
	line-height: 33px;
	background: url(res/bg_tab.png) no-repeat left top;
	color: #b9babc;
	position: relative;
	cursor: pointer;
}

#helper > nav ul a::after {
	content: '';
	background: url(res/bg_tab.png) no-repeat right top;
	margin-left: 4px;
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	right: -26px;
	top: 0;
	z-index: -1;
}

#helper tbody tr:hover {
	background: #cbddeb;
}

#helper tbody tr:active {
	background: #8fa4d2;
	color: white;
}

.tip {
	float: right;
	margin-bottom: 10px;
}

.centered {
	text-align: center;
}

#result {
	grid-area: result;
}

#result > header {
	margin-top: 19px;
	margin-bottom: 9px;
	padding-left: 17px;
	min-height: 23px;
	font-family: 'Nanum Gothic';
	font-size: 18px;
	text-shadow: 0 0 0 #9b9da3;
	line-height: 23px;
	background: url(res/sec_tit.gif) no-repeat 1px 45%;
	color: #383d4d;
}

#timetable {
	grid-area: timetable;
	float: right;
	text-align: center;
	margin-left: 12px;
}

.is-clicked::after {
	content: 'N';
	color: blue;
	font-weight: bold;
}

[data-done] .is-clicked::after {
	animation: switch-to-y 1s steps(1, end) forwards;
}

@keyframes switch-to-y {
	to {
		content: 'Y';
		color: red;
	}
}
