html {
    background: #f5f5f5;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}
/* ===================================
   jnav - カスタムナビゲーション v2
   =================================== */

/* --- カスタムプロパティ --- */
:root {
    --jnav-bg: #3acf75;
    --jnav-accent: #3acf75;
    --jnav-text: #fff;
    --jnav-text-hover: #f0f0f0;
    --jnav-hover-bg: rgba(255, 255, 255, 0.3);
    --jnav-border-color: #ffffff;
    --jnav-radius: 4px;
}

/* --- ナビバー本体 --- */
.jnav {
    background: var(--jnav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}
.jnav.パートナー {
    --jnav-bg: #06b0cc;
    --jnav-accent: #06b0cc;
}
.jnav.顧客 {
    --jnav-bg: #3273dc;
    --jnav-accent: #3273dc;
}
.jnav-bar {
    height: 52px;
}

/* --- 共通リンク --- */
.jnav-link {
    color: var(--jnav-text);
    font-size: 15px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--jnav-radius);
    white-space: nowrap;
    transition: background-color 0.2s;
}

.jnav-link:hover {
    background: var(--jnav-hover-bg);
    color: var(--jnav-text);
}

/* --- ロゴ --- */
.jnav-logo {
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
}

.jnav-logo img {
    display: block;
    height: 28px;
}

/* --- ドロップダウン（PC のみ） --- */
.jnav-dropdown {
    position: relative;
}

.jnav-dropdown-trigger {
    color: var(--jnav-text);
    font-size: 15px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--jnav-radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.jnav-dropdown-trigger::after {
    content: '';
    border: solid var(--jnav-text);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg) translateY(-25%);
    margin-left: 6px;
}

.jnav-dropdown:hover .jnav-dropdown-trigger {
    background: var(--jnav-hover-bg);
}

.jnav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    z-index: 200;
}

.jnav-dropdown:hover .jnav-dropdown-menu {
    display: block;
}

.jnav-dropdown-menu .jnav-link {
    display: block;
    color: #333;
    font-size: 14px;
    padding: 0.6rem 1rem;
}

.jnav-dropdown-menu .jnav-link:hover {
    background: #f5f5f5;
    color: #333;
}

/* --- アカウント / ログアウト --- */
.jnav-account,
.jnav-logout {
    color: var(--jnav-text);
    font-size: 13px;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--jnav-border-color);
    border-radius: var(--jnav-radius);
    white-space: nowrap;
    transition: all 0.2s;
}

a.jnav-account:hover,
.jnav-logout:hover {
    background: var(--jnav-hover-bg);
    color: var(--jnav-text);
}

/* ===================================
   モバイル版の差分
   =================================== */
.jnav-bar--mobile {
    display: none;
    height: 48px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jnav-bar--mobile::-webkit-scrollbar {
    display: none;
}

/* モバイルではリンクとボタンを少し小さく */
.jnav-bar--mobile .jnav-link {
    font-size: 13px;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}

.jnav-bar--mobile .jnav-account,
.jnav-bar--mobile .jnav-logout {
    font-size: 12px;
    padding: 0.35rem 0.6rem;
}

/* ===================================
   レスポンシブ切り替え
   =================================== */
@media screen and (max-width: 1023px) {
    .jnav-bar--pc {
        display: none !important;
    }
    .jnav-bar--mobile {
        display: flex;
    }
}

@media screen and (min-width: 1024px) {
    .jnav-bar--pc {
        display: flex !important;
    }
    .jnav-bar--mobile {
        display: none !important;
    }
}

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

.flash {
    text-align: center;
    position: relative;
    margin: 10px 0 20px;
    animation: slideDown 0.7s ease-out;
}

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

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

::placeholder {
    color: #aaa;
}

.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;
    padding-bottom: 20px;
}

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,
table.list td {
}

table.list th:hover,
table.list td:hover {
    text-overflow: unset;
    overflow: unset;
    white-space: unset;
}

table.list th {
    vertical-align: middle;
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    background: #f8f8f8;
    color: #333;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

table.list td {
    font-weight: normal;
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}

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

td.right {
    text-align: right !important;
}

td.left {
    text-align: left !important;
}

table.vertical {
    width: 100%;
    max-width: 700px;
}

table.vertical th {
    padding: 7px;
    background: #f8f8f8;
    vertical-align: middle;
    font-size: 14px;
    width: 40%;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

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

.data {
    background: #f0f0f0;
    padding: 0.5em;
}

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

.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-right: 1px solid #666;
    border-left: 1px solid #666;
    border-bottom: 1px solid #666;
}

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

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

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

.toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    width: 45px;
    height: 20px;
    border-radius: 50px;
    background-color: #dddddd;
    transition: background-color 0.1s;
    cursor: pointer;
}

.toggle-button:has(:checked) {
    background-color: #4bd865;
}

.toggle-button::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    background-color: #fff;
    content: '';
    transition: left 0.1s;
}

.toggle-button:has(:checked)::after {
    left: 25px;
}

.toggle-button input {
    display: none;
}
