html {
    background: #f0f3f4;
}

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

.navbar-brand .navbar-item,
header div.logo {
    display: block;
    margin: 0 auto;
    font-size: 23px;
    text-align: center;
    color: #fff;
    font-family: 'Merriweather', 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: #ccc;
}

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

.css_hidden {
    display: none;
}

.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 th,
table.list td {
    white-space: nowrap;
}

table.list {
    width: 100%;
}

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

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

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

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

.ellipsis {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 共通style.css */
.check_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

label.check_item {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

label.check_item:after,
label.check_item:before {
    position: absolute;
    content: '';
    background: #bbbbbb1a;
}

label.check_item:after {
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
}

label.check_item:before {
    left: 5px;
    width: 8px;
    height: 14px;
    border-right: 3px solid #045388;
    border-bottom: 3px solid #045388;
    transform: rotate(45deg) translateY(-1px) translateX(-1px);
    opacity: 0;
}

label.check_item.checked:before {
    opacity: 1;
}

.accordion {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.accordion-item {
    margin-bottom: 1em;
}

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

/* 共通style.css */
.radio_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

input[type='radio'] {
    display: none;
}

label.radio_item {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

label.radio_item:after,
label.radio_item:before {
    position: absolute;
    content: '';
    background: #bbbbbb1a;
}

label.radio_item:after {
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 50%;
}

label.radio_item:before {
    left: 4px;
    width: 10px;
    height: 10px;
    background: #0171bd;
    border-radius: 50%;
    position: absolute;
    opacity: 0;
}

label.radio_item.checked:before {
    opacity: 1;
}
