html {
    background: #f9f8f5;
}

body {
    font-family: 'Arial', 'メイリオ';
}

header {
    background: #6abfb0;
    padding: 15px 0;
    position: relative;
}

.navbar-brand .navbar-item,
header div.logo {
    display: block;
    font-size: 23px;
    text-align: center;
    color: #fff;
    font-family: 'BIZ UDPGothic', sans-serif;
}

main {
    width: 100%;
    padding: 0px 10px;
    margin: 0 auto;
}

.flash {
    text-align: center;
    position: relative;
    margin: 10px 0 20px;
}

.flash span.close {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 19px;
}

span.req {
    font-size: 8pt;
    color: #fff;
    background: #f33;
    border-radius: 6px;
    padding: 2px 4px;
    margin: 4px;
    vertical-align: middle;
    float: right;
}

::placeholder {
    color: #aaa;
}

.label {
    font-size: 1.1em;
}

.box:not(.narrow) {
    overflow-x: scroll;
}

.box.narrow {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.box.mid {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.box:first-of-type {
    margin-top: 1.5rem;
}

div.table-container {
    max-height: 80vh;
    overflow-y: scroll;
}

table.list {
    table-layout: auto;
    width: auto;
}

table.list.fixed {
    table-layout: fixed;
    width: 100%;
}

table.list tr:nth-child(2n + 1) {
    background: #fcfcfc;
}

table.list th {
    background: #f7f4ef;
    vertical-align: middle;
    font-weight: normal;
    text-align: center;
    padding: 7px;
    border: 1px solid #ccc;
    color: #7b756e;
    font-size: 15px;
    position: sticky;
    top: 0;
    z-index: 15;
}

table.list td {
    font-weight: normal;
    text-align: center;
    padding: 7px;
    border: 1px solid #ccc;
    vertical-align: middle;
    font-size: 15px;
}

table.list tr.total td {
    background: #fffccc;
}

table.vertical td.left,
table.vertical th.left,
table.list td.left,
table.list th.left {
    text-align: left;
}

table.vertical td.right,
table.vertical th.right,
table.list td.right,
table.list th.right {
    text-align: right;
}

table.vertical {
    width: 100%;
    max-width: 700px;
    border: 1px solid #ccc;
}

table.vertical th {
    padding: 7px;
    background: #f7f4ef;
    vertical-align: middle;
    font-size: 15px;
    width: 40%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    text-align: left;
    font-weight: normal;
}

table.vertical td {
    padding: 7px;
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.data {
    background: #f0f0f0;
    padding: 10px;
}

.staff_role {
    padding: 8px;
}

.staff_role .control {
    display: flex;
    justify-content: center;
}

table.list th.sorting {
    background: #ffa;
}

/*報告書作成画面*/

.datetime_parent {
    position: relative;
}

.datetime_act {
    z-index: 10;
    position: absolute;
    right: 5px;
    top: 43px;
    padding: 18px 14px;
}

input[type='number'].right {
    text-align: right;
}

.message-body {
    font-size: 1.5em;
    text-align: center;
    padding: 0.5em;
}

.toggle_box {
    display: none;
    margin-top: 1em;
    border: 2px solid #888;
    padding: 1em;
}

.toggle_box.open {
    display: block;
}

nav.breadcrumb {
    background: #f8f8f8;
    padding: 10px;
    border: 1px solid #cacaca;
    border-radius: 4px;
}

table.cw {
    width: 100%;
}

table.cw td {
    border: 1px solid #ccc;
    padding: 10px;
    width: 35%;
    font-size: 22px;
    vertical-align: middle;
}

table.cw td.head {
    width: 15%;
    background: #eee;
    font-size: 15px;
}

.radio_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em 2em;
    border: none;
    padding: 10px;
}

.radio_wrap label {
    display: flex;
    align-items: center;
    gap: 0 0.5em;
    position: relative;
    cursor: pointer;
}

.radio_wrap label::before,
.radio_wrap label::after {
    border-radius: 50%;
    content: '';
}

.radio_wrap label::before {
    width: 18px;
    height: 18px;
    border: 2px solid #dee5eb;
    box-sizing: border-box;
}

.radio_wrap label::after {
    position: absolute;
    top: 50%;
    left: 9px;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background-color: #dee5eb;
}

.radio_wrap label:has(:checked)::after {
    background-color: #0e3653;
}

.radio_wrap input {
    display: none;
}

.checkbox_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 2em;
    border: none;
}

.checkbox_wrap label {
    display: flex;
    align-items: center;
    gap: 0 0.5em;
    position: relative;
    cursor: pointer;
    line-height: unset;
}

.checkbox_wrap label::before,
.checkbox_wrap label:has(:checked)::after {
    content: '';
    box-sizing: initial;
}

.checkbox_wrap label::before {
    width: 17px;
    height: 17px;
    border-radius: 3px;
    background-color: #e6edf3;
}

.checkbox_wrap label:has(:checked)::before {
    background-color: #0e3653;
}

.checkbox_wrap label:has(:checked)::after {
    position: absolute;
    top: 6px;
    left: 6px;
    transform: rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

.checkbox_wrap input {
    display: none;
}

.accordion-item {
    margin-bottom: 1em;
    max-width: 480px;
}

.accordion-button {
    width: 100%;
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    outline: none;
    transition: 0.4s;
    font-size: 1em;
    border: 1px solid #666;
}

.accordion-button:hover {
    background-color: #f8f8f8;
}

.accordion-button:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion-button.active:after {
    content: '\2212';
}

.accordion-content {
    max-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #fff;
    margin-bottom: 10px;
}

.accordion-content-inner {
    padding: 10px;
    border: 1px solid #666;
    border-top: none;
}

table.list th[size='50'],
table.list td[size='50'] {
    width: 50px;
}

table.list th[size='75'],
table.list td[size='75'] {
    width: 75px;
}

table.list th[size='100'],
table.list td[size='100'] {
    width: 100px;
}

table.list th[size='125'],
table.list td[size='125'] {
    width: 125px;
}

table.list th[size='150'],
table.list td[size='150'] {
    width: 150px;
}

table.list th[size='175'],
table.list td[size='175'] {
    width: 175px;
}

table.list th[size='200'],
table.list td[size='200'] {
    width: 200px;
}

table.list th[size='225'],
table.list td[size='225'] {
    width: 225px;
}

table.list th[size='250'],
table.list td[size='250'] {
    width: 250px;
}

table.list th[size='275'],
table.list td[size='275'] {
    width: 275px;
}

table.list th[size='300'],
table.list td[size='300'] {
    width: 300px;
}

table.list th[size='325'],
table.list td[size='325'] {
    width: 325px;
}

table.list th[size='350'],
table.list td[size='350'] {
    width: 350px;
}

table.list th[size='375'],
table.list td[size='375'] {
    width: 375px;
}

table.list th[size='400'],
table.list td[size='400'] {
    width: 400px;
}

table.list th[size='425'],
table.list td[size='425'] {
    width: 425px;
}

table.list th[size='450'],
table.list td[size='450'] {
    width: 450px;
}

table.list th[size='500'],
table.list td[size='500'] {
    width: 500px;
}
