* {
  box-sizing: border-box;
}

/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}
input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}
input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}

body {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.8em;
  font-family: 'メイリオ', Meiryo,'ヒラギノ角ゴシック','Hiragino Sans','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;
  background-color   : #e8eded;
  background-image   : radial-gradient(#ffffff 7%, transparent 10%),
                       radial-gradient(#ffffff 7%, transparent 10%);
  background-position: 0 0, 12px 12px;
  background-size    : 24px 24px;
  color: #333333;
}

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

h2 {
  font-size: 20px;
}

h3 {
  font-size: 17px;
  margin-top: 60px;
  border-left: 4px solid #8bc2cb;
  padding-left: 15px;
}

code {
  padding: 2px 4px;
  margin: 0 5px;
}

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

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

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

ul li {
  margin-bottom: 15px;
}

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;
}

dl.dtsmall dt {
  width: 70px;
}

dl.dtsmall dd {
  width: calc(100% - 70px);
  margin-left: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    line-height: 1.6em;
}

table th {
  background: #efefef;
}

table th a {
  color: #2baebb;
}

th.week_6 {
  color: #577cca;
}

th.week_0 {
  color: #a24141;
}

table tr th:first-of-type {
  width: 35%;
  max-width: 200px;
}

table td {
    border: 1px dotted #d9d9d9;
    width: 140px;
}

table td.right {
  text-align: right;
  font-weight: bold;
}

table tr td:last-of-type {
  width: 55px;
}

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

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 {
    width: -moz-fit-content;
    width: fit-content;
    margin: 80px auto;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
}

.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 #8bc2cb;
  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 {
    background: #daf8f1;
    padding: 14px 20px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6em;
    width: 100%;
}

p.message.done {
  background: #daf8f1;
  padding: 14px 20px;
  font-weight: bold;
  color: #347371;
  border-left: 4px solid #5dd9af;
}

p.message.error {
  background: #f8dae0;
  padding: 14px 20px;
  font-weight: bold;
  color: #641111;
  border-left: 4px solid #d95d5f;
}

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 {
  margin-bottom: 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;
  margin: 20px auto;
}

div.page a {
  display: block;
  background: #f2f2f2;
  color: #000;
  padding: 5px 15px;
  border-radius: 1px;
  font-size: 13px;
}

div.page a span.material-icons {
  font-size: 17px;
  vertical-align: middle;
}

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

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

footer a {
    color: #8bc2cb;
    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;
}

p.memo, .tab_panel p.memo {
  font-size: 12px;
  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;
}

div#pagenation {
  margin: 20px auto 40px;
  display: flex;
}

div#pagenation a {
  display: block;
  background: #333333;
  color: white;
  padding:5px 12px;
  font-size: 13px;
  border-radius: 4px;
}

div#pagenation a:hover {
  background: #8b8b8b;
}

span.star {
    color: #e0cf16;
    vertical-align: top;
    font-size: 90%;
    display: inline-block;
    margin: 0 0 0 3px;
}

@media only screen and (min-width: 750px) {
  div#pagenation a {
    padding: 10px 20px;
  }
}

div#pagenation a.prev {
  margin: 0 auto 0 0;
}

div#pagenation a.next {
  margin: 0 0 0 auto;
}

div#pagenation a.first {
  margin-right: 5px;
}

div#pagenation a.last {
  margin-left: 5px;
}

div#pagenation .current {
  margin: 0;
  font-size: 12px;
  display: flex;
}

div#pagenation .current p {
  margin: auto 0;
}
button.fav_button {
  background: transparent;
  border: none;
  padding: 3px;
  margin-left: 5px;
  color: #ccc;
}
button.fav_button:hover {
  color: #ffd1d5;
}
button.fav_button.faved {
  color: #ff4f6e;
}

div#message {
  background: #e1faeb;
  padding: 1px;
  text-align: center;
  font-weight: bold;
  color: #0d8087;
}

form.searchbox {
    margin: 0 0 0 auto;
    display: block;
    width: fit-content;
}