.tkc-upsert-purpose-dialog {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.tkc-upsert-purpose {
    border: solid 1px #444;
    max-width: calc((100% - 6px) - 2em);
    max-height: calc((100% - 6px) - 2em);
}

.tkc-upsert-purpose .dialog-header{
    height: 30px;
    background-color: #429091;
    text-align: right;
    padding: 0 16px;
}

.tkc-upsert-purpose .dialog-close {
    display: block;
    position: relative;
    margin-left: calc(100% - 20px);
    width: 30px;
    height: 30px;
}

.tkc-upsert-purpose .dialog-close::before,
.tkc-upsert-purpose .dialog-close::after {
    /* 共通設定 */
    content: "";
    position: absolute;
    top: 50%;
    right: 50%;
    /* 棒の幅（太さ） */
    width: 2px;
    /* 棒の高さ */
    height: 20px;
    background: #ffffff;
    cursor: pointer;
}


.tkc-upsert-purpose > .dialog-contents{
    padding: 16px 3em;
    background: #ffffff;
}

.tkc-upsert-purpose .dialog-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tkc-upsert-purpose .dialog-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.tkc-upsert-purpose .dialog-title{
    font-weight: bold;
    font-size: 13pt;
    display: inline-block;
    margin: 8px 0;
    
}
.tkc-upsert-purpose .req{
    font-size: 10pt;
    margin-left: 8px;
    color: #ffffff;
    background-color: red;
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
}
.tkc-upsert-purpose label{
    display: inline-block;
    margin: 4px 0;
}

.tkc-upsert-purpose label input{
    margin-right: 16px;
}
.tkc-upsert-purpose .purpose-text{
    margin-left: 16px;
    width: 16em;
}
.tkc-upsert-purpose .pdf-message{
    text-align: center;
    margin: 24px 0 8px 0;
}
.button-area{
    text-align: center;
    margin: 8px 0;
}
.button-area button{
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-align: center;
    text-decoration: none;
    word-break: break-word;
    box-sizing: border-box;
    transition: all .1s ease-in;
    padding-top: calc(0.6em + 2px);
    padding-bottom: calc(0.6em + 2px);
    font-size: 1rem;
    background-color: var(--vk-color-primary);
    border-radius: var(--vk-size-radius);
}
.tkc-upsert-purpose .invalid_message{
    display: none;
    color: red;
}
.tkc-upsert-purpose input.invalid{
    background-color: #efe0de;
}