nav {
  display: none;
}

.tab {
  width: calc(100%/3);
  padding:12px 0;
  background-color: #eee;
  border-bottom: 3px solid #eaa4a4;
  text-align: center;
  display: block;
  color: #eaa4a4;
  float: left;
  text-align: center;
  font-weight: bold;
  transition: all 0.2s ease;
}
.tab:hover {
  opacity: 0.6;
}
input[name="tab"] {
  display: none;
}

input:checked + .tab {
  background-color: #eaa4a4;
  color: #eee;
}

#date-and-number {
  text-align: right;
}
h1 {
  text-align: center;
}
body {
  font-family: sans-serif;
}
header {
  display: flex;
}

#header-left {
  width: 60%;
  float:left;
}

#header-right {
  width: 40%;
  float:right;
}
#mitsumori_content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10mm auto;
}
#mitsumori_content table th{
  background: #eaa4a4;
}
#mitsumori_content table tr:nth-child(odd) td {
  background: #fadadd;
}
#mitsumori_content table td:nth-child(1) {
  padding-left: 5mm;
}
#mitsumori_content table td:nth-child(2), td:nth-child(3) {
  text-align: center;
}
#mitsumori_content table td:nth-child(4), td:nth-child(5) {
  text-align: right;
  padding-right: 5mm;
}
#mitsumori_content table th {
  padding: 0;
}

dt {
  float: left ;
  clear: left ;
  width: 44mm ;
  margin: 2mm 0;
}

dd {
  float: left ;
  margin: 2mm 0;
}

@page {
  size: A4;
  margin: 0;
}
@media print {
  body {
    width: 210mm;
  }
  html, body {
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
}

.sheet {
  width: 210mm;
  height: 296mm;
  page-break-after: auto;
  position: relative;
}

.margin-container {
  margin: 5mm;
  width: 200mm;
  position: relative;
  top: 0;
  left: 0;
}


@media screen {
  body {
    background: #eee;
  }
  .sheet {
    background: white;
    box-shadow: 0 .5mm 2mm rgba(0,0,0,.3);
    margin: auto;
  }
  .drag {
    background: #eee;
  }
  nav {
    display: table;
    height: inherit;
    width: 100%;
    margin-bottom: 3mm;
  }
}