@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap');
:root{
    --main-color: #00BFFF;
    --accent-color: #FF6347;
    --complementary-color-1: #32CD32;
    --complementary-color-2: #F0E68C;
    --auxiliary-color: #800080;
    --background-color: #F5F5F5;
    --text-color: #0f0f0f;
}
@media (prefers-color-scheme: dark){
    :root {
        --main-color: #008080;
        --accent-color: #FFA500;
        --complementary-color-1: #FFD700;
        --complementary-color-2: #C0C0C0;
        --auxiliary-color: #FF00FF;
        --background-color: #000000;
        --text-color: #f0f0f0;
        color-scheme: dark  ;
    }
}
body,
input,
button{
    font-family: -apple-system, 
        BlinkMacSystemFont, 
        'Helvetica Neue', 
        'Neue Haas Grotesk Text Pro', 
        'Segoe UI', 
        Roboto, 
        Oxygen, 
        Ubuntu, 
        Cantarell, 
        'Open Sans', 
        'ヒラギノ角ゴ ProN', 
        'Noto Sans JP', 
        system-ui, 
        sans-serif;
}
::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
    border: var(--background-color) 4px solid;
    border-radius: 200px;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover{
    border: var(--background-color) 3.5px solid;
}
::-webkit-scrollbar-thumb:active{
    border: var(--background-color) 3px solid;
}
::-webkit-scrollbar-track{
    background-color: transparent;
    border-radius: 200px;
}
::-webkit-scrollbar-corner{
    background-color: transparent;
}
dialog::-webkit-scrollbar-track{
    margin-top: 3px;
    margin-bottom: 3px;
}
html{
    height: 100%;
    width: 100%;
}
body{
    background-color: var(--background-color);
    color: var(--text-color);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: env(titlebar-area-y, 0);

    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /* overflow: hidden; */
}
header{
    background-color: var(--main-color);
}
#title-bar {
    top: env(titlebar-area-y, 0);
    left: env(titlebar-area-x, 0);
    min-height: env(titlebar-area-height, 32px);
    height: 48px;
    width: 100%;
    display: flex;
}
#title-bar-in{
    width: env(titlebar-area-width, 100%);
    display: flex;
}
#title-bar-title-out{
    -webkit-app-region: drag;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
main{
    overflow-y: scroll;
    flex: 1;
}
.csvTable{
    display: block;
    margin: 0 auto;
    overflow-x: auto;
    border-spacing: 0;
    white-space: nowrap;
}
.csvTable tbody {
    white-space: nowrap;
}
.csvTable th,
.csvTable td {
    padding: 3px 6px;
}
.csvTable > tbody > tr > th:first-child {
    position: sticky;
    left: 0;
    background: var(--background-color);
}
dialog{
    background-color: var(--background-color);
    border: 2px solid var(--main-color);
    border-radius: 10px;
    animation: dialogpopup 0.2s ease-out;
    transform: translateY(calc(max(env(titlebar-area-height, 32px), 48px) / 2));
    max-height: calc(100% - calc(max(env(titlebar-area-height, 32px), 48px)) - 20px);
    max-width: calc(100% - 20px);
    box-sizing: border-box;
}
@keyframes dialogpopup {
    0%{
        transform: translateY(calc(max(env(titlebar-area-height, 32px), 48px) / 2) + calc(20px));
        opacity: 0;
    }
}
dialog::backdrop{
    backdrop-filter: blur(10px);
    top: max(env(titlebar-area-height, 32px), 48px);
    animation: dialogpopup-backdrop 0.2s ease-out;
}
@keyframes dialogpopup-backdrop {
    0%{
        opacity: 0;
    }
}

dialog h1{
    margin-top: 0;
    margin-bottom: 0;
}
.butWithIcon{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    border-radius: 10px;
    border: none;
    padding: 5px;
    min-height: 32px;
}
.h1WithIcon{
    display: flex;
    align-items: center;
}
.h1WithIcon > span:first-child{
    font-size: 1.25em;
}

.inputFileGeneral {
    border-radius: 10px;
    background-color: var(--main-color);
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
.dialog-bottom-button{
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}
.dialog-bottom-button > button{
    flex: 1;
}
.but警告{
    background-color: #FF4500;
    color: white;
}
#tableContainer{
    flex: 1;
    overflow: hidden;
    display: flex;
}
#tableContainer > table{
    display: block;
    margin: 0 auto;
    overflow: auto;
    border-spacing: 0;
    flex: 1;
}
#tableContainer > table > tr > td{
    white-space: nowrap;
}
#tableContainer > table > tr >:first-child{
    position: sticky;
    left: 0;
    background: var(--background-color);
}
#csv-raw-table-dialog > form{
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}
#csv-raw-table-dialog{
    height: 100%;
}
#suggestion-container > table{
    border: var(--text-color) 2px solid;
    border-radius: 10px;
    margin: 20px 10px;
}
#search-view-color-dialogDiv{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.butWithIconSelect{
    display: flex;
    justify-content: left;
    align-items: center;
    background-color: transparent;
    border-radius: 10px;
    border: 2px solid var(--main-color);
    padding: 5px;
    gap: 5px;
}
#search-view-color-complete-color{
    font-weight: bold;
    color: var(--accent-color);
}