/* Common / This settings override the Bootstrap settings */
html, body {
  width: 100%;
  color: #444444;
  background: #fff;
}

/*
-----------------------------------------
font
-----------------------------------------
*/
a {
  color: #057CBE;
}

a:hover {
  color: #057CBE;
}

h1,
.h1 {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  padding: 15px 0;
  border-top: #ddd 2px solid;
  border-bottom: #ddd 2px solid;
}

h2,
.h2 {
  font-size: 1.3em;
  font-weight: bold;
}

.page-header small {
  font-size: 0.8em;
  color: #333;
}

.strong {
  font-weight: bold;
}

/* color */
.success {
  color: #A94442;
}

.error {
  color: #A94442;
}

/*
-----------------------------------------
header 
-----------------------------------------
*/
#header {
  border: none;
  border-top: 4px solid #315FB4;
  border-bottom: 1px solid #e5e5e5;
  -webkit-border-radius: 0 !important;
          border-radius: 0 !important;
  margin: 0 auto 0 auto;
  background-color: #f2f2f2;
  min-height: 80px;
}
#header .navbar-brand {
  padding-left: 135px;
  background: url(../images/logo.png) no-repeat 10px 10px;
  color: #666666;
  font-size: 16px;
  height: 80px;
  line-height: 50px;
}
#header .navbar-brand:hover {
  opacity: 0.8;
  -moz-opacity: 0.8;
  filter: alpha(opacity=80);
}
#header #gnav-right {
  overflow: hidden;
}
#header .navbar-right.nav-pills {
  line-height: 50px;
}
#header .navbar-right.nav-pills .navbar-text {
  color: #444;
  margin-right: 20px;
}
#header .navbar-right.nav-pills .navbar-btn {
  margin: 25px 0;
}
#header .navbar-text {
  color: #444;
  margin-left: 0;
  margin-right: 15px;
}
#header .sm_menu {
  display: none;
}

@media (min-width: 768px) {
  .xs_menu.navbar-collapse.collapse {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #header .navbar-right.nav-pills {
    line-height: 50px;
  }
  #header .navbar-right.nav-pills .navbar-btn {
    margin: 25px 0;
  }
  #header .sm_menu {
    display: block;
    border-top: #e5e5e5 1px solid;
  }
}
@media (max-width: 767px) {
  #header {
    min-height: 50px;
  }
  #header .navbar-brand {
    padding-left: 80px;
    background-size: auto 34px;
    height: 50px;
    font-size: 14px;
    line-height: inherit;
  }
  #header #gnav-right {
    display: none;
  }
  #header .xs_menu {
    overflow: hidden;
    max-height: inherit;
  }
}
.sub-header {
  line-height: 1.4;
}
.sub-header span {
	font-weight: normal;
	font-size: 13px;
	margin-left: 0.5em;
}

/*
-----------------------------------------
main_menu 
-----------------------------------------
*/
@media (max-width: 991px) {
  .main_menu {
    display: none;
  }
}
/*
-----------------------------------------
navigation 
-----------------------------------------
*/
#gnav {
  margin: 0 auto;
  background: #f2f2f2;
  border-top: 1px solid #e5e5e5;
}

#gnav li a {
  color: #555;
}

#gnav li a:hover {
  color: #fff;
  background-color: #ff9d00;
  -webkit-border-radius: 0 !important;
          border-radius: 0 !important;
}

.navbar-toggle,
.navbar-inverse .navbar-toggle {
  border-color: #ccc;
}

.navbar-toggle {
  background-color: #315FB4;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
  background-color: #315FB4;
  -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.4);
          box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.4);
}

.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
  border-color: #e5e5e5;
}

.nav-pills .fa {
  width: 1em;
  color: #315FB4;
  margin-right: 8px;
}

/* --- tomo-card --- */
.t_card {
  font-size: 13px;
  border-color: #F4DCE0;
}
.t_card h3,
.t_card p {
  text-align: center;
}
.t_card p.sub {
  font-size: 12px;
  background-color: transparent;
}
.t_card .panel-heading {
  background-color: #FFEFF2;
  border-color: #F4DCE0;
}
.t_card .panel-heading h3 {
  font-size: 13px;
  margin-top: 0;
}
.t_card .panel-heading h3 strong {
  font-size: 18px;
  display: block;
}
.t_card dl {
  margin: 0 auto;
  padding: 5px 0;
  border: #ddd 1px solid;
}
.t_card strong {
  color: #c7254e;
}

/*
-----------------------------------------
footer 
-----------------------------------------
*/
#page_top {
  text-align: right;
  margin: 30px 0 20px;
}
#page_top a {
  color: #444;
}
@media (max-width: 991px) {
  #page_top {
    text-align: center;
    margin: 0;
    margin-top: 30px;
  }
  #page_top a {
    display: block;
    padding: 20px 0;
  }
}

#footer {
  padding: 20px 0;
  background: url(../images/footer_bg.jpg) repeat #315FB4;
  border-top: #1F4689 1px solid;
}
#footer #copyrights {
  text-align: center;
  color: #fff;
  font-size: 12px;
  margin-bottom: 0;
}

/*
-----------------------------------------
block 
-----------------------------------------
*/
.block {
  border: 1px solid #ccc;
  background: white;
  margin: 1em 0em;
  border-top: none;
}

.panel-form {
  border-color: #ddd;
  background-color: #f5f5f5;
}

/*
-----------------------------------------
panel
-----------------------------------------
*/
.panel-info {
  border-color: #5092DC;
  margin-bottom: 50px;
}
.panel-info-table {
  border-color: #5092DC;
  margin-bottom: 50px;
}
.panel-info-table .panel-body {
	width: 100%;
	padding: 5px 15px;
	display: table;
}
.panel-info-table .panel-body p {
	display: table-row;
}
.panel-info-table .panel-body p span {
	display: table-cell;
	border-bottom: solid 1px #ddd;
	padding:10px 0;
}
.panel-info-table .panel-body p:last-child span {
	border: none;
}
.panel-info-table .panel-body p span.date {
	width: 100px;
}
.panel-info-table .panel-body p span.value {
	padding-right: 20px;
}
.panel-info-table .panel-body p span.author {
	width: 100px;
}
@media (max-width: 768px) {
	.panel-info-table .panel-body {
		display: block;
		padding-top: 10px;
	}
	.panel-info-table .panel-body p {
		display: block;
	}
	.panel-info-table .panel-body p span {
		width: 100%!important;
		display: block;
		border-bottom: none;
		padding-top: 0;
		padding-bottom: 0;
	}
	.panel-info-table .panel-body p span.date {	
		padding-bottom: 5px;
	}
	.panel-info-table .panel-body p span.value {
	}
	.panel-info-table .panel-body p span.author {
		text-align: right;
		padding-top: 5px;
		padding-bottom: 10px;
		border-bottom: solid 1px #ddd;
	}
	.panel-info-table .panel-body p:last-child span.author {
		border: none;
	}
	.sub-header span {
		display: block;
		margin-top: 5px;
		margin-left: 0;
	}
}



/*
-----------------------------------------
act
-----------------------------------------
*/
#act-info {
  margin-bottom: 50px;
  border: #cee 2px solid;
  border-radius: 5px
}

#event-info {
  margin-bottom: 50px;
  border: #ecd 2px solid;
  border-radius: 5px;
}



/*
-----------------------------------------
table 
-----------------------------------------
*/
table,
table.table {
  margin-bottom: 20px;
  border-bottom: solid 1px #ddd;
  background-color: #fff;
  font-size: 13px;
}

table th {
  background-color: #E9EFFB;
}
table th.date {
  width: 10em;
}
table th.subject {
  width: 12em;
}

table.table > thead > tr > th {
  border-bottom: solid 1px #7CBBDD;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
  background-color: transparent;
}

.table-striped > tbody > tr:nth-child(even) > td,
.table-striped > tbody > tr:nth-child(even) > th {
  background-color: #f8f8f8;
}

.table-striped > tbody > tr > th,
.table-striped > tbody > tr > td {
  line-height: 2em;
}

.table > tbody > tr > td > div {
  padding: 0;
  line-height: 2.5em;
}
@media (min-width: 768px) {
  .table > tbody > tr > td > div + div {
    padding-left: 10px;
  }
}
.table > tbody > tr > td > div .checkbox-inline {
  line-height: 20px;
}

/* --- th_col --- */
.table-th_col th {
  vertical-align: middle !important;
}
.table-th_col tr > th.title {
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .table-th_col tr {
    border-top: 1px solid #DDD !important;
  }
  .table-th_col tr > * {
    display: block !important;
    border: none !important;
    width: 100% !important;
  }
  .table-th_col tr th {
    border-bottom: 1px solid #DDD !important;
  }
}
/* ---  --- */
table + h2 {
  margin-top: 40px;
}

/*
-----------------------------------------
form
-----------------------------------------
*/
label[for],
input[type="checkbox"],
input[type="radio"],
input[type="button"],
input[type="image"],
input[type="reset"],
input[type="submit"],
select, option, button {
  cursor: pointer;
}

optgroup {
  cursor: default;
}

textarea {
  min-height: 200px;
}

.input-inline {
  display: inline-block;
}

.input-file {
  display: none !important;
}

.input-file-dummy {
  -webkit-border-radius: 4px 0 0 4px !important;
          border-radius: 4px 0 0 4px !important;
}

.input-description {
  color: #999;
}

/*
-----------------------------------------
button
-----------------------------------------
*/
.btn-default {
  background-color: #f9f9f9;
  background-image: -webkit-linear-gradient(top, #fefefe, #f3f3f3);
  background-image: -moz-linear-gradient(top, #fefefe, #f3f3f3);
}

.btn-default:hover {
  border-color: #ccc;
  -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.2);
          box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-finish {
  color: #fff;
  border-color: #30569D;
  background-color: #4778CC;
  background-image: -webkit-linear-gradient(top, #4778CC, #345BA6);
  background-image: -moz-linear-gradient(top, #4778CC, #345BA6);
}

.btn-finish:hover {
  color: #fff;
  -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.4);
          box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.4);
}

/*
-----------------------------------------
tab
-----------------------------------------
*/
.nav-tabs {
  margin: 15px 0;
}

/*
-----------------------------------------
icon
-----------------------------------------
*/
.fa {
  margin-right: 5px;
}

/*
-----------------------------------------
information calendar
-----------------------------------------
*/
.info_calendar table tr > * {
  color: #444444;
}
.info_calendar table th {
  text-align: center;
}
.info_calendar table td {
  height: 5em;
}
.info_calendar table td span {
  display: block;
  margin-top: 1em;
}
@media (max-width: 480px) {
  .info_calendar table td {
    padding: 5px !important;
  }
  .info_calendar table td span {
    font-size: 10px;
  }
}
.info_calendar .holiday,
.info_calendar .rest {
  background-color: #FFF4F4;
}
.info_calendar .holiday {
  color: #c7254e;
}
.info_calendar .course {
  background-color: #FFFCF2;
}
.info_calendar .test {
  background-color: #F1F9ED;
}
.info_calendar span.label {
  border: #ddd 1px solid;
  font-size: 1em;
  font-weight: normal;
  color: #444444;
  display: inline-block;
}
@media (max-width: 480px) {
  .info_calendar span.label {
    font-size: 11px;
    margin-top: 5px;
  }
}
.info_calendar .btn {
  margin-top: 2em;
}

/*
-----------------------------------------
timetable calendar
-----------------------------------------
*/
.timetable_caps {
	text-align: right;
	overflow: hidden;
}
.timetable_caps .attention {
	text-align: left;
	float: left;
}
.timetable_caps .sheet {
  	min-width:2em;
	min-height:1.5em;
	display: inline-block;
	background-color: #315FB4;
	color: #fff;
	text-align: center;
	padding: 1px 4px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	vertical-align:middle;
	margin-right: 3px;
}
.timetable_calendar {
	overflow: auto;
	white-space: nowrap;
}
.timetable_calendar {
	width: 100%;
}
.timetable_calendar table tr > * {
  color: #444444;
}
.timetable_calendar table th {
  text-align: center;
}
.timetable_calendar table td {
  height: 5em;
}
.timetable_calendar table td.past {
	background-color: #f9f9f9;
	opacity: .6;
}
.timetable_calendar table td.today {
	background-color: #FFF3BB;
}
.timetable_calendar table td .date {
	display: block;
}
.timetable_calendar table td .time {
	padding:3px 5px;
	margin-bottom: 4px;
	display: block;
	background-color: #eee;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	line-height: 1.4em;
	position: relative;
	border: solid 1px #ddd;
}
.timetable_calendar table td .time .t {
	display: block;
	font-weight: bold;
}
.timetable_calendar table td .time .course {
	display: block;
	background-color: transparent;
	list-style: none;
	padding: 3px 0 0 0;
	margin: 0;
}
.timetable_calendar table td .time .sheet {
	min-width:2em;
	display: inline-block;
	background-color: #315FB4;
	color: #fff;
	text-align: center;
	padding: 1px 4px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	position: absolute;
	top: -2px;
	right: -2px;
}
.timetable_calendar table td.past .time .sheet,
.timetable_calendar table td .time .sheet.none {
	background-color: #bbb;
}


@media (max-width: 480px) {
  .timetable_calendar table td {
    padding: 5px !important;
  }
  .timetable_calendar table td span {
    font-size: 10px;
  }
  .timetable_caps .attention {
	text-align: left;
	float: none;
	display: block;
	margin-bottom:10px;
	}
}

@media (max-width: 768px) {
	.timetable_calendar table td .time {
		margin-bottom: 10px;
	}
	.timetable_calendar table td .time .sheet {
		top: -5px;
		right: -10px;
		vertical-align: middle;
	}
}

/*
-----------------------------------------
teacher
-----------------------------------------
*/
@media (min-width: 768px) {
  .sm_menu.teacher {
    display: block !important;
    border-top: 1px solid #E5E5E5;
  }

  button.teacher_s_menu {
    display: none;
  }
}
@media (min-width: 992px) {
  .sm_menu.teacher_s {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .sm_menu.teacher_s.collapse {
    display: block !important;
    height: auto !important;
  } 
}
.sm_menu.teacher_s {
  margin-top: 10px;
}

.alert.alert-info.teacher_s {
  margin-top: 30px;
  overflow: hidden;
}
.alert.alert-info.teacher_s button {
  display: block;
  float: right;
}
.alert.alert-info.teacher_s span {
  float: left;
}

.error_text,
.logout_text {
  padding-top: 100px;
}
.error_text p,
.logout_text p {
  font-size: 16px;
}

.btn_center {
  text-align: center;
}
.btn_center a:first-child {
  margin-right: 10px;
}

/*
student
-----------------------------------------
*/
.alert_header {
  margin-top: 20px;
}

/*
-----------------------------------------
login,upload
-----------------------------------------
*/
#login.wrapper,
#upload.wrapper {
  width: 100%;
  padding-top: 10%;
}
#login.wrapper .alert,
#upload.wrapper .alert {
  max-width: 340px;
  margin: 0 auto 20px;
  line-height: 2;
}
#login.wrapper .alert .strong,
#upload.wrapper .alert .strong {
  display: block;
  margin-top: 20px !important;
}
#login.wrapper .alert:first-child,
#upload.wrapper .alert:first-child {
  margin-top: -8%;
}
#login.wrapper p.text-center,
#upload.wrapper p.text-center {
  margin-bottom: 20px;
}
#login.wrapper .form-signin,
#upload.wrapper .form-signin {
  max-width: 340px;
  padding: 15px;
  margin: 0 auto;
  background-color: #fff;
  -webkit-border-radius: 4px;
          border-radius: 4px;
  -webkit-box-shadow: 0 1px 2px 2px #CFCFCF;
  box-shadow: 0 1px 2px 2px #CFCFCF;
}
#login.wrapper .form-signin .form-signin-heading,
#upload.wrapper .form-signin .form-signin-heading {
  background: url(../images/logo.png) no-repeat center;
  height: 80px;
  border: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 40px;
  text-align: center;
}
#login.wrapper .form-signin .form-signin-heading span,
#upload.wrapper .form-signin .form-signin-heading span {
  display: block;
  padding-top: 80px;
  font-size: 16px;
}

#login.wrapper {
  height: 100%;
}
#login .form-signin .checkbox {
  margin-bottom: 10px;
  font-weight: normal;
}
#login .form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}
#login .form-signin .form-control:focus {
  z-index: 2;
}
#login .form-signin .label-id {
  width: 115px;
  -webkit-border-bottom-left-radius: 0;
          border-bottom-left-radius: 0;
}
#login .form-signin input[type="text"] {
  -webkit-border-bottom-right-radius: 0;
          border-bottom-right-radius: 0;
}
#login .form-signin .label-pw {
  width: 115px;
  border-top: none;
  -webkit-border-top-left-radius: 0;
          border-top-left-radius: 0;
}
#login .form-signin input[type="password"] {
  border-top: none;
  -webkit-border-top-right-radius: 0;
          border-top-right-radius: 0;
}
#login .form-signin .reset {
  padding: 20px 0 0 0;
}

#upload .form-signin .alert-danger {
  margin-top: 10px;
  margin-bottom: 10px;
}
#upload + .text-center {
  margin-top: 30px;
}
