@charset "utf-8";

/* 見出し */
h3 {
    font-weight: bold;
    color: #AA2619;
}
h4 {
    font-weight: bold;
    margin-top: 20px;
    background-color: #185b7e;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 35px;
    position: relative;
    color: #fff;
    font-size: 2rem;
    margin-top: 30px;
}
h4::after {
    content: " ";
    display: block;
    position: absolute;
    left: 0;
    top: calc(50% - 2px);
    border-top: 4px solid #fff;
    width: 20px;
}
h5 {
    color: #606c76;
    margin-top: 15px;
    font-size: 2.0rem;
    font-weight: 700;
}

/* ナビゲーション */
nav.top-nav {
    background: #333;
    box-shadow: 0 -2px 5px 5px #ccc;
    padding: 0;
    height: 70px;
    background-image: url("../img/nav_bg.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 70px;
    white-space: nowrap;
}
nav.top-nav::after {
    content: " ";
    display: block;
    position: absolute;
    left: 30px;
    top: 0;
    border-left: 4px solid #a92317;
    height: 70px;
}
nav.top-nav, main.main, div.container, footer {
    max-width: 100%;
}
.top-nav-title {
    display: flex;
    align-items: center;
}

/* ログイン情報 */
.login-customer,
.site-name {
    color: #eee;
    padding: 0rem;
    padding-left: 40px;
    margin-left: 20px;
}
.site-name a {
    color: #eee;
}
.login-customer-name {
    font-weight: bold;
    margin-right: 2rem;
}
.profile {
    background-color: #ccc;
    padding: 1px 7px;
    border-radius: 3px;
    margin-left: 10px;
}
.profile a {
    color: #333;
    font-size: 1.1rem;
}

.top-nav-links {
    display: flex;
    list-style: none;
}
.top-nav-links,
.top-nav-links a {
    color: #ccc;
    cursor: default;
}
.top-nav-links a:any-link {
    cursor: pointer;
}
.top-nav-links a:hover,
.top-nav-links a:focus {
    color: #fff;
}
.top-nav-links .right-link {
    font-size: 2.5rem;
    text-align: center;
    width: 150px;
    height: 100%;
    padding: 0;
    display: inline-block;
}

.top-nav-links > li {
    padding: 0 3px;
    position: relative;
    margin: 7px 10px 7px 0;
    border-left: solid 5px transparent;
    transition: all 0.2s;
}
.top-nav-links > li:hover {
    border-left: solid 5px #a92317;
}
.top-nav-links > li.right-link {
    margin: 0;
    border-left: solid 5px transparent;
}
.top-nav-links > li  span,
.top-nav-links > li  a {
        display: block;
}
.top-nav-links > li > ul {
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: #ddd;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 10px 0 0 0;
    position: absolute;
    margin-top: 0;
    left: -5px;
    font-size: inherit;
    border-left: solid 5px #a92317;
    transition: all 0.2s;
}
.top-nav-links > li:hover > ul {
    visibility: visible;
    opacity: 1;
}
.top-nav-links > li > ul > li {
    margin: 0;
    padding: 3px 3px;
}

/* ページャ */
.paginator {
    margin-top: 10px;
}
.paginator a i.faicon {
    margin-right: 0.7rem;
    margin-left: 0.7rem;
}

/* フォーム */
fieldset > legend {
    margin-top: 10px;
    border-left: 10px solid #a92317;
    padding-left: 10px;
    width: 100%;
}
fieldset > legend.no-decoration {
    border: 0;
    padding-left: 0;
}
div.radio label[for],
div.checkbox label[for] {
    font-weight: normal;
    font-size: 100%;
}
div.radio input,
div.checkbox input {
    margin-right: 5px;
}
input.with-unit {
    width: 100px;
    margin-right: 0.5rem;
}
input:disabled,
textarea:disabled,
select:disabled
{
    background-color: #eee;
}
select:disabled
{
    /* 2019-11 以降の Chromium が Disabled な SELECT に opacity:0.7 を適用する謎仕様をキャンセル
       https://chromium.googlesource.com/chromium/src.git/+/01773ab7cb0175a157808f2ff7674b97b03a7b8c */
    opacity: 1;
}
select[multiple] {
    height: auto;
}
div.input.required label:after {
    content: ' *';
    color: #AA2619;
    padding-left: 3px;
}
div.input.required label:has(input):after {
    content: '';
}
.checkbox label {
    margin-bottom: 0;
}

.narrow-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.narrow-checkboxes .checkbox {
    width: 5em;
}

fieldset .flex {
    display: flex;
    margin-left: 30px;
    gap: 10px;
}
fieldset .flex > .input {
    flex-grow: 0;
}
fieldset .flex > .input label {
    margin: 0;
}
input[type=text].name,
input[type=email].email,
input[type=password].password,
input[type=number].short {
    width: 30em;
}
textarea {
    height: auto;
}
textarea.mail-template-body {
    height: 300px;
}

/* リンク */
.button, button, input[type=button], input[type=reset], input[type=submit] {
    font-size: 1.5rem;
}
a i.faicon {
    margin-right: 0.7rem;
}

/* テーブル */
.view table th,
.view table td {
    width: 50%;
}

table.horizontal th,
table.horizontal td {
    width: auto;
}
table.horizontal  td.datetime {
    width: 12em;
}
table.horizontal  td.yearmonth {
    width: 6em;
}
.row.datetime-span {
    margin-left: 0;
}

/* フッタ */
footer {
    margin-top: 20px;
    text-align: center;
}
footer .links a {
    margin: 0 10px;
    color: #606c76;
}
footer .links span {
    margin: 0 10px;
}

/* 問い合わせ編集履歴 */
.histories {
    margin: 10px 0;
    padding: 10px;
    background: #eee;
    border-radius: 5px;
    font-size: 1.0rem;
}
.histories li {
    margin-bottom: 0;
}

/* 送信ボタン */
.row.post-buttons form {
    margin-top: 30px;
    padding-right: 10px;
}

/* 各種見た目 */
.error-message {
    color: #ff4a4a;
    margin-bottom: 3rem;
}

.hint{
    color: #888;
    font-size: 0.9em;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* 画面の説明 */
.description {
    border-left: 10px solid #ccc;
    padding-left: 10px;
    margin: 30px 0;
}
.description li {
    margin-bottom: auto;
}

/* パスワード入力欄 */
.password-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}
.password-input-wrapper.short {
    width: 30em;
}
.password-input-wrapper > * {
    margin-bottom: 0;
}
.toggle-password-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* テーブル */
thead tr th {
    border-bottom: 1px solid #333;
}
th, td {
    padding: 0.8rem 1.5rem;
}
td.actions {
    text-align: right;
    white-space: nowrap;
}
td.actions a {
    border: 1px solid #666;
    background: #eee;
    padding: 5px 7px;
    border-radius: 3px;
    white-space: nowrap;
}
td.actions a.delete-link,
a.delete-link {
    border: 1px solid #be3131;
    background: #be3131;
    color: #fff;
}
td.actions a.confirm-link,
a.confirm-link {
    border: 1px solid #1eb902;
    background: #1eb902;
    color: #fff;
}
td.actions a.confirm-link.cancel,
a.confirm-link.cancel,
td.actions a.cancel-link {
    border: 1px solid #a8a0bd;
    background: #a8a0bd;
    color: #fff;
}
td.actions a.send-link,
a.send-link {
    border: 1px solid #2aa9e4;
    background: #2aa9e4;
    color: #fff;
}
td.actions a.disabled,
a.disabled,
a.disabled:hover {
    background: #f7f7f7 !important;
    color: #ccc !important;
    border-color: #eee !important;
    cursor: not-allowed !important;
}
tr.disabled {
    background: #f7f7f7;
}
tr.disabled td,
tr.disabled td a {
    color: #999;
}
table.nowrap td,
td.nowrap {
    white-space: nowrap;
}

td.error {
    color: red;
}

/* ファイルタイプ */
/* https://colorhunt.co/palette/d9f8c4f9f9c5fad9a1f37878 */
.type {
    padding: 1px 5px;
    border-radius: 3px;
    width: 8em;
}
.type[data-file-type="1"] {
    background: #D9F8C4;
}
.type[data-file-type="2"] {
    background: #F9F9C5;
}
.type[data-file-type="3"] {
    background: #FAD9A1;
}

/* 担当者・ユーザタイプ */
/* https://colorhunt.co/palette/bffff0f0ffc2ffe4c0ffbbbb */
.type[data-admin-type="1"] {
    background: #FFBBBB;
}
.type[data-user-type="1"],
.type[data-user-app-admin="1"],
.type[data-admin-type="2"] {
    background: #FFE4C0;
}
.type[data-user-type="2"],
.type[data-user-app-admin="0"],
.type[data-admin-type="3"] {
    background: #BFFFF0;
}

ul.no-list {
    list-style: none;
}
td ul li {
    margin-bottom: 0;
}
td ul li:last-child {
    margin-bottom: 0;
}
td ul ul {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 100%;
}

/* ダウンロード期限切れ */
tr.expired {
    color: #ccc;
}

.flat-form .input label {
    text-wrap: nowrap;
}
.flat-form .input {
    display: flex;
}
.flat-form .input label {
    width: 160px;
    font-size: 1.0em;
}
.flat-form .input.radio label:not(:first-child) {
    width: auto;
    margin-right: 5rem;
    display: block;
}
.input.select fieldset legend {
    font-weight: normal;
    font-size: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.input.select fieldset .checkbox {
    margin-left: 3rem;
}
.input.select fieldset .checkbox input {
    margin-bottom: 0;
}

select optgroup {
    font-style: normal;
    background: #eee;
}

.bordered {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 15px;
}

#required-filname-prefix {
    font-weight: bold;
    background: #eee;
}

.action-buttons {
    margin-top: 30px;
}

.multiple-checkboxes {
    display: flex;
    width: calc(100% - 150px);
    flex-wrap: wrap;
    align-items: stretch;
}
.multiple-checkboxes label {
    margin-right: 4rem;
    margin-bottom: 0;
    font-weight: normal;
    text-wrap: nowrap;
}
.flat-form .input .multiple-checkboxes label {
    width: auto;
    min-width: 150px;
}

/* 報告書の状態 */
.status {
    border-radius: 3px;
    padding: 3px 7px;
    background: #ccc;
    color: #fff;
    white-space: nowrap;
    width: 5em;
}
.status-0 { /* 確認待ち */
    background: #1eb902;
}
.status-1 { /* 送信保留 */
    background: #4172db;
}
.status-2 { /* 未受領（送信済） */
    background: #ffc219;
}
.status-3 { /* 受領済 */
    background: #aaa;
}
.status-4 { /* 送信取消 */
    background: #a8a0bd
}
.new-label {
    background: #AA2619;
    color: #fff;
    padding: 3px 7px;
    border-radius: 3px;
}

/* ツールチップ */
.tooltip {
    border: 1px solid #666;
    border-radius: 3px;
    background: #fff;
    display: none;
    position: absolute;
    min-width: 200px;
    width: 400px;
    font-size: 1.2rem;
    box-shadow: 3px 3px 5px 2px rgba(0,0,0,0.3);;
}
.tooltip .title {
    background: #ccc;
    padding: 3px 15px;
}
.tooltip .content {
    padding: 7px 15px;
}

/* 検索フォーム */
.search-form {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 7px;
    margin-bottom: 30px;
}
.search-form .row .column {
    /* flex 子要素が内容幅で親を押し広げないようにする */
    min-width: 0;
}
.search-form .input input,
.search-form select {
    background: #fff;
}
.search-form select:disabled {
    background: #eee;
}
.search-form .submit {
    text-align: center;
}
.search-form .submit input[type=submit],
.search-form .submit button[type=submit] {
    border: 1px solid #888;
    background: #888;
}
.search-form .submit button[type=reset] {
    border-color: #888;
    color: #888;
    background: #fff;
}

/* フォーム行: ラベル以外の要素が内容幅で広がり過ぎないようにする */
.flat-form .input > :not(label) {
    flex: 1 1 auto;
    min-width: 0;
}

/* API */
.hint-api {
    color: #aaa;
}

/* エラーメッセージ */
div.message ul {
    margin-top: 1em;
}
div.message ul li {
    margin-bottom: 0;
}

/* 登録・更新日時 */
.edit-info {
    margin-bottom: 15px;
    background-color: #eee;
    border-radius: 5px;
    padding: 10px;
    color: #888;
    font-size: 1.3rem;
}
.edit-info table th,
.edit-info table td {
    width: auto;
    padding: 3px;
    border-width: 0px;
}
.edit-info table th {
    width: 7rem;
}
.edit-info table td.date {
    width: 18rem;
}

.main-user .edit-info {
    font-size: 0.8rem;
    background-color: #fff;
    padding: 0;
}
.main-user .edit-info table th,
.main-user .edit-info table td {
    padding: 0;
}
.main-user .edit-info table th {
    width: 5rem;
}

/* パスワードリセット期限切れ */
.expired-error .faicon {
    font-size: 5rem;
    float: left;
    margin-right: 10px;
}
.expired-error p {
    margin-bottom: 10px;
}

.label {
    font-size: 1.1rem;
    background: #e2e2e2;
    color: #444;
    padding: 3px 5px;
    border-radius: 3px;
}

.buttons {
    margin-top: 20px;
}

.wrap {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}
