﻿
/*                                                                      */
/* 【exLabel】                                                          */
/*                                                                      */
/* 機能： 汎用表示ラベル                                                */
/*                                                                      */
/* 備考： ラベルと言いつつinput[type=text]を使用してください            */
/*                                                                      */
.exLabel {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    place-items: center;
    background-color: #ffffff;
    color: #333333;
    border: none;
    border-radius: 0px;
    border-bottom: solid 1.5px #333333;
    outline: none;
    padding: 0.2em 0.5em;
    width: 10em;
    text-align: left;
}
.exTable .exLabel {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    place-items: center;
    background-color: transparent;
    color: #333333;
    border: none;
    outline: none;
    padding: 0;
    text-align: left;
}

/*                                                                      */
/* 【exTitleLabel】                                                     */
/*                                                                      */
/* 機能： 汎用タイトルラベル                                            */
/*                                                                      */
/* 備考： ラベルの張りたい要素をdivで囲むこと。                         */
/*                                                                      */
.exTitleLabel {
    display: flex;
    flex-direction: row;
}

    .exTitleLabel > label {
        font-family: 'メイリオ', 'Meiryo', sans-serif;
        font-size: 16px;
        display: grid;
        place-items: center;
        background-color: #77af9c;
        color: #ffffff;
        border-radius: 5px;
        padding: 0.2em 0.5em;
        margin-right: 2px;
        width: 10em;
    }

/*                                                                      */
/* 【exTextBox, exNumBox, exDateBox】                                   */
/*                                                                      */
/* 機能： 汎用テキストボックス                                          */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */
.exTextBox, .exNumBox, .exDateBox {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    border: 1px solid #333333;
    border-radius: 5px;
    transition: 0.3s;
    background-color: lemonchiffon;
    padding: 0.2em 0.5em;
    width: 10em;
    outline: none;
}
.exTable .exTextBox,
.exTable .exNumBox,
.exTable .exDateBox {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    border: none;
    border-radius: 0px;
    transition: 0.3s;
    background-color: transparent;
    padding: 0 0;
    outline: none;
}
    .exTextBox:focus, .exNumBox:focus, .exDateBox:focus {
        transition: 0.3s;
        background-color: lightskyblue;
    }

    .exTextBox:disabled, .exNumBox:disabled, .exDateBox:disabled {
        background-color: #e2e2e2;
        opacity: 0.8;
    }

    .exTextBox:read-only, .exNumBox:read-only, .exDateBox:read-only {
        user-select: none;
        background-color: transparent;
    }


/*                                                                      */
/* 【exTextArea】                                                       */
/*                                                                      */
/* 機能： 汎用テキストエリア                                            */
/*                                                                      */
/* 備考： label + textarea                                              */
/*                                                                      */
.exTextArea{
    display: flex;
    flex-direction: column;
}
.exTextArea > label{
    color: #77af9c;
}
.exTextArea > textarea {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    border: 1px solid #77af9c;
    border-radius: 5px;
    transition: 0.3s;
    background-color: #ffffff;
    padding: 0.2em 0.5em;
    outline: none;
    resize: none;
}

    .exTextArea > textarea:focus {
        transition: 0.3s;
        box-shadow: 0 0 5px 1px #77af9c;
    }

    .exTextArea > textarea:disabled {
        background-color: #e2e2e2;
        opacity: 0.8;
    }

    .exTextArea > textarea:read-only {
        user-select: none;
        box-shadow: none;
    }


/*                                                                      */
/* 【exSelectBox】                                                      */
/*                                                                      */
/* 機能： 汎用セレクトボックス                                          */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */
.exSelectBox {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    border: 1px solid #333333;
    border-radius: 5px;
    transition: 0.3s;
    background-color: lemonchiffon;
    padding: 0.2em 0.5em;
    width: 10em;
    outline: none;
}

    .exSelectBox:focus {
        transition: 0.3s;
        background-color: lightskyblue;
    }

    .exSelectBox option {
        transition: 0.3s;
        background-color: lemonchiffon;
    }

    .exSelectBox:disabled {
        background-color: #e2e2e2;
        opacity: 0.8;
    }



/*                                                                      */
/* 【exRadioButton】                                                    */
/*                                                                      */
/* 機能： RadioButton(input[type='radio'])                              */
/*                                                                      */
/* 備考： classは[input+label]を含んだdivに対して設定すること。         */
/*                                                                      */

/* 通常時 */
.exRadioButton {
    margin: 0.2em 0.5em;
    width: 8.0em;
}
.exRadioButton input {
    margin: 0 5px;
    outline: none;
}
.exRadioButton input::after{
    width: 1.2em;
    height: 1.2em;
    border-radius: 1.2em;
    top: -2px;
    left: -1px;
    position: relative;
    background-color: #c2c2c2;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 2px solid white;
    cursor: pointer;
}
    .exRadioButton > label {
        font-family: 'メイリオ', 'Meiryo', sans-serif;
        font-size: 16px;
        position: relative;
        text-align: center;
        color: #333333;
        background: #ffffff;
        padding: 0.2em 0.5em 0.2em 0.5em;
        cursor: pointer;
    }

/* 選択時 */
.exRadioButton input:checked::after {
    background-color: #77AF9C;
}

.exRadioButton input:checked + label {
    border: 2px solid #77AF9C;
    border-radius: 5px;
}
.exRadioButton input:focus + label{
    background-color: #77AF9C;
    color: #ffffff;
}

    /* disabeled */
    .exRadioButton input:disabled::after {
        background-color: #e2e2e2;
        cursor: default;
    }
    .exRadioButton input:disabled + label {
        color: #333333;
        opacity: 0.6;
        cursor: default;
    }
    .exRadioButton input:checked:disabled + label {
        border-color: #333333;
    }


/*                                                                      */
/* 【exButton】                                                         */
/*                                                                      */
/* 機能： button(submit, input[type='button'])                          */
/*                                                                      */
/* 備考： buttonのサイズ、フォントのサイズは親のcssにて設定すること。   */
/*                                                                      */

/* 通常時 */
.exButton {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    text-align: center;
    background-color: #ffffff;
    color: #77AF9C;
    border: 2px solid #77AF9C;
    border-radius: 5px;
    box-shadow: 2px 2px 2px rgba(0,0,0,.2);
    transition: 0.3s;
    outline: none;
}

/* focus・hover時 */
*.exButton:focus {
    background-color: #77AF9C;
    color: #ffffff;
    transition: 0.3s;
}

.exButton:hover {
    background-color: #77AF9C;
    color: #ffffff;
    outline: none;
    transition: 0.3s;
}

.exButton:disabled {
    background-color: #e2e2e2;
    color: #77AF9C;
    border-color: #77AF9C;
    opacity: 0.4;
}


/*                                                                      */
/* 【exTable 】                                                         */
/*                                                                      */
/* 機能： 汎用テーブル                                                  */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */
.exTable {
    border-collapse: collapse;
    border: solid 2px #757575;
}
    /*ヘッダ*/
    .exTable thead {
        border-bottom: solid 1px #757575;
    }
    .exTable thead th {
        padding: 0.2em 0.5em;
        color: #ffffff;
        background-color: #8cd790;
    }
    .exTable thead th:not(:first-child) {
        border-left: solid 1px #ffffff;
    }
    /*明細*/
    .exTable tbody td {
        padding: 0.2em 0.5em;
    }
    .exTable tbody tr:not(:first-child) {
        border-top: dashed 1px #757575;
    }
    .exTable tbody .tdHidden {
        display: none;
    }


/*                                                                      */
/* 【modalWindow】                                                      */
/*                                                                      */
/* 機能： モーダルウィンドウ                                            */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */
.modalWindow {
    display: none;
    width: 50em;
    height: 60%;
    z-index: 102;
    position: fixed;
    top: 20%;
}

.modalBar {
    display: flex;
    align-items: center;
    height: 2.0em;
    width: 100%;
    background-color: #77af9c;
    border-radius: 5px 5px 0 0;
}

    .modalBar .title {
        color: white;
        padding-left: 1.0em;
        font-size: 18px;
    }

    .modalBar .btnClose {
        position: absolute;
        left: calc(100% - 30px);
        background-color: #e2e2e2;
        color: #333333;
        font-size: 20px;
        font-weight: 700;
        border-radius: 5px;
        height: 30px;
        width: 30px;
        outline: none;        
    }

    .modalBar .btnClose:hover {
        background-color: red;
        color: white;
    }

.modalContents {
    width: 100%;
    height: 100%;
    border: none;
}

.modalOvarlay {
    z-index: 101;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-color: rgba(0,0,0,0.75);
}


/*                                                                      */
/* 【helpButton】                                                       */
/*                                                                      */
/* 機能： 画像ボタン(ヘルプ画面呼出用)                                  */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */

/* 通常時 */
.helpButton {
    background-image: url("../IMG/search.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
    outline: none;
}
.exTable .helpButton {
    position: relative;
    top: 3px;
    width: 1.5em;
}


/*                                                                      */
/* 【Context】                                                          */
/*                                                                      */
/* 機能： コンテキスト                                                  */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */
.ContextMenu {
    display: none;
    position: fixed;
    width: 20em;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 1px 1px 1px rgba(0,0,0,.2);
    z-index: 1000;
}

    .ContextMenu.show {
        display: block;
    }

    .ContextMenu ul {
        list-style: none;
        padding: 0.1em 0;
    }

    .ContextMenu ul li {
        font-size: 14px;
        color: #757575;
    }

    .ContextMenu ul li label {
        display: block;
        position: relative;
        margin-bottom: 0.1em;
        padding: 0.5em;
        line-height: 1;
        color: #ffffff;
        background: #77af9c;
        cursor: pointer;
    }

    .ContextMenu ul li input{
        display: none;
    }
    .ContextMenu ul li ul li {
        padding: 0 0 0 1.0em;
        overflow-y: hidden;
        max-height: 0;
        transition: all 0.5s;
        cursor: pointer;
    }
    .ContextMenu ul li ul li:hover {
        background-color: #e5e5e5;
    }
    .ContextMenu input:checked ~ ul li {
        max-height: 2.0em;
        opacity: 1;
    }


/*                                                                      */
/* 【】                                                                 */
/*                                                                      */
/* 機能： コピー機能エフェクト                                          */
/*                                                                      */
/* 備考：                                                               */
/*                                                                      */
.copyFLG{
    display: none;
}
.copyFLG:checked ~ textarea {
    border: 1px solid #ffa500;
    box-shadow: 0 0 5px 1px #ffa500;
    background: #fffac4;
}
.copyFLG:checked ~ input {
    border: 1px solid #ffa500;
    box-shadow: 0 0 5px 1px #ffa500;
}