* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'メイリオ', Meiryo,'ヒラギノ角ゴシック','Hiragino Sans','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;
  background: #ebebeb;
  color: #333333;
}

pre {
  background: #f5f5f5;
  padding: 15px;
  line-height: 1.6em;
  border: 1px solid #dadada;
  border-radius: 4px;
}

a {
  color: #df8493;
  text-decoration: none;
  transition: color .3s, background .3s, opacity .3s;
}

input[type=text], input[type=number], input[type=password], input[type=email] {
  padding: 5px;
  margin-left: 10px;
}

input:focus, select:focus, button:focus {
    outline-color: #ffa0b0;
}

#container {
  width: 100%;
  max-width: 900px;
  min-height: 100vh;
  position: relative;
  margin: 0 auto;
  padding-bottom: 60px;
  background: white;
  box-shadow: 0 0 10px #0000001c;
}

dl {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  margin-bottom: 30px;
}

dl dt {
  font-weight: bold;
  font-size: 14px;
  width: 100%;
  margin-bottom: 5px;
}

dl dd {
  font-size: 14px;
  width: 100%;
  margin: 0;
}

dl dd input[type=number],
dl dd input[type=password] {
  margin-left: 0;
}

dl p {
  margin-top: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table td {
    border: 1px dotted #d9d9d9;
    width: 140px;
    text-align: center;
}

table tr {
    border: 1px solid #d9d9d9;
}

table.logs td {
  text-align: left;
  font-size: 14px;
}

label, button, select, input[type=submit] {
  cursor: pointer;
}

button {
    background: #333333;
    border: 1px solid #333333;
    border-radius: 3px;
    color: white;
    transition: .3s;
    padding: 5px 15px;
}

.login {
    background: white;
    width: fit-content;
    margin: 20px auto;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px #0000001f;
}

.login label {
  font-size: 14px;
  margin: auto;
  display: block;
  text-align: center;
}

input[type="submit"] {
    padding: 5px 10px;
    margin-left: 5px;
}

button:hover {
  background: #686868;
}

table td, table th {
  padding: 5px;
}

aside {
    width: 100%;
    padding: 20px 10px;
}

div#contents {
    width: 100%;
    padding: 20px 30px 20px 20px;
}

header div#header {
  display: flex;
  background: #333333;
  border-top: 5px solid #e5798c;
  justify-content: space-between;
  padding: 20px 10px;
}

div#changepass {
    background: #ffdee4;
    width: 100%;
    margin: 0;
    padding: 5px;
    top: 100%;
    left: 0;
    right: 0;
}

div#changepass p {
    margin: 10px auto;
    text-align: center;
    color: #d90c0d;
    font-weight: bold;
}

header div#header h1 {
  margin: 0;
  font-size: 20px;
}

header div#header h1 a {
color: #ffffff;
text-shadow: 0 0 5px #00000094;
}

button#logout {
    border: none;
    background: white;
    color: #333333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 0 5px #00000064;
    cursor: pointer;
}

button#logout:hover {
  background: #d8e4ed;
}

p.loginmessage {
    background: pink;
    max-width: 500px;
    padding: 20px;
    font-weight: bold;
    border-radius: 5px;
    margin: 40px auto;
}

p.loginmessage.alert {
    color: #cc1111;
}

p.loginmessage.logout {
    background: #acebe8;
    color: #1e4f65;
}

main {
  display: flex;
  flex-direction: column-reverse;
}

.wrap_message {
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

p.message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6em;
    width: 100%;
}

p.meta {
    font-size: 11px;
    text-align: right;
    color: #c0bbbb;
    margin: 0;
    padding-left: 15px;
}

p.meta.url {
    margin-top: 0;
}

.inner_message {
    padding: 5px;
    transition: .5s;
}

.inner_message:hover {
    background: #f3f9fd;
}

span.material-icons {
    vertical-align: bottom;
}

ul#menu {
  list-style: none;
  padding-left: 0;
}

ul#menu li a {
  display: block;
  position: relative;
  font-size: 15px;
  padding: 5px;
  margin: 5px 0;
  transition: .3s;
  color: #333333;
}

ul#menu li a:hover {
  background: #f3f9fd;
}

ul#menu li a:after {
  display: block;
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(-45deg);
  margin: auto;
  top: 0;
  bottom: 0;
  right: 15px;
  transition: .3s;
}

ul#menu li a:hover:after {
right: 12px;
}

p.meta.url:not(:last-of-type) {
    border-bottom : 1px dashed #e1e1e1;
    padding-bottom : 10px;
    margin-bottom : 10px;
}

p.meta a {
    color: #f8acc3;
}

p.meta a:hover {
  opacity: .6;
}

div.page {
  display: flex;
  justify-content: space-between;
}

div.page a {
  display: block;
  background: #333333;
  color: white;
  padding: 10px;
  border-radius: 5px;
}

ul.list_month {
  list-style: none;
  padding: 0;
}

ul.list_year {
  list-style: none;
  padding: 0;
}

ul.list_month li a {
    display: block;
    padding: 5px 10px;
    font-size: 12px;
    color: #333333;
}
ul.list_month li a:hover {
  color: #df8493;
  background: #f3f9fd;
}
ul.list_month li.month a {
  font-weight: bold;
  border-bottom: 1px dashed;
  position: relative;
  font-size: 14px;
}

ul.list_month li.month a:hover {
  color: inherit;
}

ul.list_year li.year {
  border: 1px solid;
}

ul.list_year li.year > a {
  display: block;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  position: relative;
}

ul.list_year li.year > a:after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 10px;
    transform: rotate(45deg);
    transition: .3s;
}

ul.list_year li.year:hover > a:after {
  transform: translateY(3px) rotate(45deg);
}

ul.list_year li.year:hover a + ul.child_ul {
  display: block;
}

ul.child_ul {
  font-weight: normal;
  display: none;
}

ul.child_ul ul.list_month {
    border-top: 1px solid;
}

.commands {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

form.single button {
    border: none;
    background: transparent;
    color: #c0bbbb;
    transition: .3s;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin: 0 5px;
}

form.single button:hover {
  opacity: .6;
}

form.single button:focus {
  outline: none;
}

form.single button span.material-icons {
    font-size: 21px;
}

span.material-icons.favorited {
    color: #ffa0b0;
}

label.label {
  margin-left: 10px;
}

label.label input[type=checkbox] {
  display: none;
}

form#archive {
    display: flex;
    justify-content: flex-end;
    margin: 20px auto;
}

span.checkbox{
  display: block;
  position: relative;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #999;
  border-radius: 2px;
  cursor: pointer;
}

input[type=checkbox]:checked + span.checkbox:before {
  content: '';
  position: absolute;
  z-index: 10;
  width: 5px;
  height: 8px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
  margin: auto;
  right: 0;
  left: 0;
}

input[type=checkbox]:checked + span.checkbox {
  background: pink;
}

select#selection {
    padding: 5px;
    margin-right: 15px;
}

footer {
    background: #333333;
    padding: 10px;
    width: 100%;
    position: absolute;
    bottom: 0;
}

footer p {
  text-align: right;
    margin: 0;
}

footer a {
    color: #b6656e;
    font-size: 12px;
}
@media only screen and (min-width: 750px) {
  aside {
      width: 220px;
  }

  div#contents {
      width: calc(100% - 220px);
  }
  main {
    flex-direction: row;
  }
  dl {
    flex-direction: row;
  }

  dl dd {
    width: calc(100% - 200px);
    margin: 0 0 0 20px;
    line-height: 2.6em;
  }

  dl dt {
    width: 200px;
    margin-bottom: 5px;
  }

  dl dd input[type=number],
  dl dd input[type=password] {
    margin-left: 10px;
  }
}

p#notice_memo {
    font-size: 12px;
    margin-top: 20px;
}

code {
  display: inline;
  background: #efefef;
  border: 1px solid #d0d0d0;
  font-size: 12px;
  word-break: break-all;
  padding: 2px 2px;
  border-radius: 2px;
}

span.red {
    color: #ff609b;
    font-weight: bold;
    font-size: 12px;
}

/* タブ */

.tab_wrap input[type="radio"][name="tab_btn"] {
  display: none;
}

.tab_area {
  font-size: 0;
  margin: 0 10px;
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid gray;
  position: relative;
  z-index: 5;
}

.tab_area label {
  width: fit-content;
  margin: 5px 10px -1px 0;
  display: block;
  padding: 5px 10px;
  border: 1px solid gray;
  background: #eaeaea;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: ease 0.2s;
  transition: ease 0.2s;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  position: relative;
  z-index: -1;
}

.tab_area label:hover {
  background: #f3f9fd;
}

.panel_area {
  position: relative;
}

.panel_area .tab_panel {
  width: 100%;
  position: relative;
  -webkit-transition: opacity .3s, height 0s;
  transition: opacity .3s, height 0s;
  opacity: 0;
  z-index: -1;
  height: 0;
  overflow: hidden;
}


.tab_panel p {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.6em;
}

#tab1:checked ~ .panel_area #panel1,
#tab2:checked ~ .panel_area #panel2,
#tab3:checked ~ .panel_area #panel3 {
  z-index: 1;
  opacity: 1;
  height: auto;
}

#tab1:checked ~ .tab_area .tab1_label,
#tab2:checked ~ .tab_area .tab2_label,
#tab3:checked ~ .tab_area .tab3_label {
  background: white;
  border-bottom: 1px solid white;
}

.system_message {
  background: #ccc;
  padding: 16px 20px;
  margin: 0 0 20px;

}
.system_message p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.system_message.success {
  background: #c1f5e5;
  border-left: 5px solid #1fc3b9;
}
.system_message.success p {
  color: #037775;
}