h1 {
  text-align: center;
}
body {
  background: #DDFFDD; /* fallback for old browsers */
  font-family: "Roboto", sans-serif;
}
.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
}
.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 15px 0 5px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
}
.form input[type="submit"] {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: #4CAF50;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
  margin: 15px 0 5px;
}
.form input[type="submit"]:hover,.form button:active,.form button:focus {
  background: #43A047;
}
.form .message {
  margin: 15px 0 0;
  color: #b3b3b3;
  font-size: 12px;
}

.form .register-form {
  display: none;
}

.error-message {
  color: #D8000C;
  background-color: #FFBABA;
  border: 1px solid #D8000C;
  padding: 10px;
  margin: 0 0 0;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}

.success-message {
  color: #1710ef;
  background-color: #dbd8ff;
  border: 1px solid #1710ef;
  padding: 10px;
  margin: 0 0 0;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}
/* ヘッダータブのスタイリング */
nav{
  border-bottom: 1px solid #ccc;
  background: #FFFFFF;
}
nav ul{
  /*display: table;*/
  display:flex;
  flex-wrap: nowrap;
  margin: 0 auto;
  padding: 0;
  width: 80%;
  text-align: center;
}
nav ul li{
  /*コレ*/width:100%;
  display: table-cell;
  min-width: 50px;
  border-right: 1px solid #ccc;
}
nav ul li:first-child{
  border-left: 1px solid #ccc;
}
nav ul li a{
  display: block;
  width: 100%;
  padding: 10px 0;
  text-decoration: none;
  color: #aaa;
}
nav ul li a:hover{
  background-color:#A9E688;
  border-bottom: 5px solid #A9E688;
}
nav ul li.current{
  font-weight: bold;
}
nav ul li.current a{
  border-bottom: 5px solid #4CAF50;
  color: #4CAF50;
}
/* グリーンボタンのスタイリング */
.buttonGR a {
    cursor: pointer;
    display: inline-flex;
    height: 80px;
    width: 200px;
    background: #4CAF50;
    border-radius: 3px;
    position: relative;
    justify-content: space-around;
    align-items: center;
    margin: 5%;
    max-width: 250px;
    padding: 10px 25px;
    font-family: "Noto Sans Japanese";
    color: #FFFFFF;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.buttonGR a:hover {
    background: #43A047;
    color: #FFFFFF;
}
.buttonGR a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.buttonGR a:hover:after {
    border-color: #FFF;
}
/* ブルーボタンのスタイリング */
.buttonBL a {
    cursor: pointer;
    display: inline-flex;
    height: 80px;
    width: 200px;
    background: #4c79af;
    border-radius: 3px;
    position: relative;
    justify-content: space-around;
    align-items: center;
    margin: 5%;
    max-width: 250px;
    padding: 10px 25px;
    font-family: "Noto Sans Japanese";
    color: #FFFFFF;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.buttonBL a:hover {
    background: #3550bc;
    color: #FFFFFF;
}
.buttonBL a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.buttonBL a:hover:after {
    border-color: #FFF;
}
/* グレーボタンのスタイリング */
.buttonGY a {
    cursor: pointer;
    display: inline-flex;
    height: 80px;
    width: 200px;
    background: #b7bab7;
    border-radius: 3px;
    position: relative;
    justify-content: space-around;
    align-items: center;
    margin: 5%;
    max-width: 250px;
    padding: 10px 25px;
    font-family: "Noto Sans Japanese";
    color: #FFFFFF;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.buttonGY a:hover {
    background: #a8aca8;
    color: #FFFFFF;
}
.buttonGY a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.buttonGY a:hover:after {
    border-color: #FFF;
}

.notice{
    overflow: auto;
    width: 95%;
    max-height: 200px;
    margin: 20px 20px 20px 20px;
    background: #FFF;
}
.notice table{
    margin: 0;
    border-spacing: 0;
}
.notice td{
    white-space: nowrap;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    background: #FFF;
    padding: 5px;
}
.notice th{
    white-space: nowrap;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    background: #f2f2f2;
    position: sticky;
    top: 0;
    left: 0;
}
.notice tr:first-child th{
    border-top: 1px solid #999;
}
.notice th:first-child{
    border-left: 1px solid #999;
}
.notice tr:first-child th:first-child{
    z-index: 1;
}

.noticebutton{
    cursor: pointer;
    display: inline-flex;
    height: 80px;
    width: 200px;
    background: #4CAF50;
    border-radius: 3px;
    position: relative;
    justify-content: space-around;
    align-items: center;
    margin: 5%;
    max-width: 250px;
    padding: 10px 25px;
    font-family: "Noto Sans Japanese";
    color: #FFFFFF;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.noticebutton:hover {
    background: #43A047;
    color: #FFFFFF;
}
.noticebutton:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.noticebutton:hover:after {
    border-color: #FFF;
}
/* ログアウトボタンのスタイリング */
.logoutbutton {
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    min-height: 34px;
    min-width: 64px;
    opacity: 1;
    pointer-events: auto;
    text-align: center;
    user-select: none;
    vertical-align: middle;
    background-color:#fff;
    color:#357a00;
    margin-left: 4px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.1s ease-out, border-color;
    border: 1px solid #357a00;
    padding: 3px 15px;
    text-decoration: none;
}

/* ダイアログボックスのスタイリング */
body.inactive {
    overflow: hidden;
}
#dialogFlat {
    width: 50%;
    max-height: 70%;
    border: none;
    padding: 0;
}
#dialogFlat::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}
#dialogFlat .header {
    background-color: #fff;
    color: #4CAF50;
    font-weight: bold;
    padding: 2em 2em 1em;
    position: sticky;
    top: 0;
}
#dialogFlat .body {
    background-color: #fff;
    padding: 0 2em 1em;
}
#dialogFlat .footer {
    background-color: #fff;
    padding: 0;
    position: sticky;
    bottom: 0;
    display: flex;
}
#dialogFlat .button {
    width: 50%;
    height: 4em;
    border: none;
    cursor: pointer;
}
#dialogFlat .button:hover {
    opacity: 0.8;
}
#dialogFlat .button.cancel {
    background-color: #abb1ad;
    color: #fff;
}
#dialogFlat .button.ok {
    background-color: #4CAF50;
    color: #fff;
}