div.role {
    margin: 10px auto;
    width: 150px;
    border: solid 1px black;
    text-align: center;
    font-size: 1.2rem;
    background-color: #fff;
}
div.affiliation {
    width: 200px;
    margin-left: auto;
    margin-top: 0px;
    padding: 5px;
    border: solid 1px black;
}
div.nameplate {
    display: block;
    position: absolute;
    width: 200px;
    height: 80px;
    left: 150px;
    top: 150px;
    padding: 5px;
    border: solid 1px black;
    background-color: #ddd;
}
div.page-title {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}
div.contents {
    display: block;
    align-items: center;
    width: 100%;
}
div.form-head {
    text-align: center;
    border: solid 1px black;
}
div.form-body {
    display: flex;
}
div.form-body2 {
    display: block;
    text-align: center;
}
div.condition {
    width: 860px;
    margin: 10px auto;
}
div.condition-box {
    text-align: center;
    border: 1px solid black;
    padding: 10px;
}
div.flexbox {
    text-align: center;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    border-bottom: 1px solid #000;
}
div.checkcrit{
    margin-right: 50px;
    margin-left: auto;
    text-align:left;
    width: 400px;
}
div#critview{
    display:none;
    padding:10px 20px 0 20px;
    background-color: #ddd;
    box-shadow: 3px 3px #668AD8;
    border: solid 1px #888;
    cursor: move;
    z-index: 1000;
}
/* --- 業績評価入力 --- */
div.table-frame {
    margin: 0 10px;
}
div.number {
    height: 28px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    width: 100%;
    padding: 2px;
}
textarea {
    width: 100%;
}
input[name="weight"] {
    margin: 0 10px;
}
select[name="evastep"] {
    margin: 0 5px;
}
/* --- --- */
table.worksheet {
    margin: 50px;
    width: 100%;
}
table.results {
    width: 100%;
}
table.checksum {
    margin: 0 auto;
    width: 800px;
}
table.section{
    width: 100%;
    border: dashed 1px white;
    margin-top: 0; 
}
table.datecnf {
    text-align: center;
    margin-top: 30px;
    width: 100%;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}
table.datecnf td {
    border:1px solid #000;
    height: 39px;
    padding: 5px;
}
td.tbl-up{
    width: 32.5%;
}
td.weight {
    width: 80px;
    vertical-align: middle;
}
td.target {
    padding:5px;
    border:1px solid black;
}
td.evalution {
    text-align: center;
    border:1px solid black;
}
th.colname {
    width: 130px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    text-align: center;
    border:1px solid black;
}
th.colname1 {
    width: 40px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    text-align: center;
    border:1px solid black;
}
th.colname2 {
    width: 70px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    text-align: center;
    border:1px solid black;
}
th.colname3 {
    width: 60px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    text-align: center;
    border:1px solid black;
}
th.colname4 {
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    text-align: center;
    border:1px solid black;
}
th.title {
    padding-left: 5px;
    border:1px solid black;
}
th.configure {
    width: 100%;
    padding-left: 5px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    color: #fff;
    border:1px solid black;
}
th.average {
    padding:5px;
    text-align: center;
    color: white;
    border:1px solid black;
    background-color: gray;
}
th.target {
    width: 400px;
    padding:5px;
    font-size: x-large;
    font-weight:bold;
    color: black;
    border:1px solid black;
    background-color: white;
}
td.sum_val {
    width: 150px;
    text-align: center;
    font-size: x-large;
    font-weight:bold;
    color: black;
    border:1px solid black;
}
span.box{
    display: block;
    height: 50px;
    margin: 20px auto 0px auto;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    border: solid 1px black;
    color: #fff;
    padding-top: 12px;
    padding-left: 10px;
}
div.menu-box {
    display: block;
    width: 80%;
    max-width: 600px;
    min-width: 350px;
    margin: 0 auto; 
}
div.eva-box{
    margin: 0 auto;
    border: 1px solid #000;
    display: flex;
    width: 350px;
}
div.row-box {
    width: 100%;
    margin:0 auto;
}
div.val-box{
    height: 250px;
    margin: 0 200px;
    border: 1px solid #000;
}
div.checklist{
    position: absolute;
    right: 0;
    margin-right: 20px;
}
.btn-master {
    margin: 20px 28px; 
    width: 240px; 
    height: 80px;
}
.btn-logout {
    width: 150px;
    height: 30px;
    border-radius: 15px 15px 15px 15px;
}
button#submit {
    width: 190px;
    height: 55px;
    color: #fff;
    background: #6b6b6b;
    border: 0px;
}
div.search-box {
    display:block;
    width: 100%;
    margin: 10px 20px;
    text-align:left;
}
label.keyname {
    width:100px;
    text-align: center;
    margin:3px;
    background: linear-gradient(to bottom, #3b0fa3, #b648b0);
    border: 1px inset #000;
    color: white;
}
div.card {
    position: relative;
    display: flex;
    margin: 50px auto;
    padding: 30px 50px;
    width: 700px;
    background-color: #fff;
}
div.button_box {
    display: block;
    float: none;
    width: 100%;
    text-align: center;
    margin-top:20px;
}
div#footer {
    display: block;
    float: none;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-bottom:100px;
}
div.datesetup{
    margin: 0 20%;
}
#pagetop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 見た目 */
    width: 60px;
    aspect-ratio: 1/1;
    background-color: #808080;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
    /* デフォルトは非表示 */
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
/* 矢印 */
.pagetop-arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(20%) rotate(-45deg);
}
/* スクロールされたときに適用されるCSS */
#pagetop.visible {
    opacity: 1;
    visibility: visible;
}

/* --- 2024/11/25 ---*/
@media screen and (max-width: 480px) {
    div.condition {
        width: 100%;
        margin: 10px 0;
    }
    div.role {
        position: absolute;
        margin: 0;
        top: 0px;
        left: 50px;
    }
    div.affiliation {
        width: auto;
        margin-left: auto;
        margin-top: 0px;
        padding: 5px;
        border: solid 1px black;
    }
    div.nameplate {
        position: flex;
        left: 0px;
        top: 30px;
    }
    .btn-logout{
        width: 80px;
    }
    div.hrader{
        display: grid;
        font-size: 10px;
    }
    div.info{
        width: auto;
        margin: 0 auto;
    }
    ul{
        width: auto;
        margin-left: 0%;
    }
    li{
        display: flex;
        padding:15px;
        border-bottom:1px solid #000;
    }
    .label{
        background-color:blue;
        border-radius:3px;
        color:#fff;
        padding:2px 5px;
        margin:0 20px;
    }
    .text{
        font-size: 16px;
    }
    button{
        margin: 20px 10%; 
        width: 50px; 
        height: 40px;
    }
    table.results {
        width: 350px;
        margin-left: 0%;
    }
    div.menu-box{
        margin-left: 0%;
    }
    span.box{
        width: 100%;
    }
    .btn-master {
        margin: 25px 7%; 
        width: 120px; 
        height: 80px;
        font-size: 10px;
    }
    p{
        font-size: 12px;
    }
    
    .cp_box1 label:after {/*続きボタン*/
        z-index: 2;
        bottom: 20px;
        width: 200px;
        content: '続きをよむ';
        color: #ffffff;
        background: #1b2538;
        border-radius: 20px;
    }
    .cp_box1 label::before {
        content: '';
        position: absolute;
        line-height: 2.5rem;
    }
    .cp_box1 label:after {
        z-index: 2;
        bottom: 20px;
        width: 10em;
        content: '続きをよむ';
        color: #ffffff;
        background: #1b2538;
        border-radius: 20px;
    }
    .cp_box1 label::before {
        position: absolute;
        bottom: 35px;
        left: calc(50% - 3.5em);
        z-index: 3;
        width: 10px;
        height: 5px;
        background: #ffffff;
        clip-path: polygon(50% 100%, 0 0, 100% 0)
    }
    /*ロゴ*/
    #stm-title img{
        width: 200px;
        height: auto;
    }
    div.card{
        width: 350px;
        height: auto;
    }
    #btn-close{
        width: auto;
        height: auto;
    }

    /* シマ　employee*/
    #first_name, #last_name, #conv_staff_cd{
        width: 100px;
    }
}
/* criteria */
label.drag-and-drop {
    margin-bottom: 5px;
    cursor: pointer;
    padding: 0 20px;
    border: 1px solid #434343;
    background-color: #888;
    box-shadow: 3px 3px #668AD8;
    color: white;
    border-radius: 10px;
    z-index: 1000;
    position: fixed;
    top: 230px;
    left: 150px;
}
div.checkcrit {
    margin-right: 50px;
    margin-left: auto;
    text-align: left;
    width: 400px;
    position: relative;
}
div#critview {
    display: none;
    padding: 10px 20px 0 20px;
    background-color: #ddd;
    box-shadow: 3px 3px #668AD8;
    border: solid 1px #888;
    position: fixed;
    top: 260px;
    left: 150px;
    width: 300px;
}
#drag-container {
    position: relative;
    width: 10%;
    height: 10%;
}

html, body {
    height: auto !important;
    overflow: auto !important;
}