@charset "utf-8";

/*
------------------------
form
------------------------
*/

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="range"]),
textarea,
select {
    background-color: #FFFFFF;
    border: solid 1px var(--border-color);
    font-family: sans-serif;
    padding: 8px 12px;
    line-height: 22px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
       -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
            box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: solid 1px #333333;
}

textarea {
    resize: vertical;
    vertical-align: bottom;
    font-family: sans-serif;
    width: 98%;
    min-height: 80px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
       -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

select {
    background-image: url("../../images/select.svg");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
    padding-right: 20px;
    -webkit-appearance: none;
       -moz-appearance: none;
        -ms-appearance: none;
         -o-appearance: none;
            appearance: none;
}

select::-ms-expand {
    display: none; /* デフォルトのスタイルを無効(IE用) */
}

select .group {
    background-color: #E8E8E8;
}

label {
    cursor: pointer;
}

button {
    position: relative;
    display: block;
    font-size: 13px;
    line-height: 13px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    word-break: keep-all;
    white-space: nowrap;
    user-select: none;
    -webkit-box-shadow: 4px 4px 5px 0px var(--box-shadow-color);
       -moz-box-shadow: 4px 4px 5px 0px var(--box-shadow-color);
            box-shadow: 4px 4px 5px 0px var(--box-shadow-color);
    -webkit-appearance: none;
       -moz-appearance: none;
        -ms-appearance: none;
         -o-appearance: none;
            appearance: none;
}

button>a,
button>span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
}

button img {
    height: 16px;
    margin: 0 4px;
}

button p {
    flex-shrink: 0;
    line-height: 16px;
    margin: 0 4px;
}

button[type="button"] {
    color: var(--third-font-color);
    background-color: var(--third-background-color);
    border: solid 1px var(--third-background-color);
}

button[type="button"]:hover {
    background-color: var(--third-background-color-hover);
    border: solid 1px var(--third-background-color-hover);
}

button[type="button"] a {
    color: var(--third-font-color) !important;
}

button[type="submit"] {
    color: var(--fourth-font-color);
    background-color: var(--fourth-background-color);
    border: solid 1px var(--fourth-background-color);
}

button[type="submit"]:hover {
    background-color: var(--fourth-background-color-hover);
    border: solid 1px var(--fourth-background-color-hover);
}

button[type="button"].accent,
button[type="submit"].accent,
button[type="button"].unlink {
    color: var(--accent-font-color);
    background-color: var(--accent-background-color);
    border: solid 1px var(--accent-background-color);
}

button[type="button"].accent:hover,
button[type="submit"].accent:hover,
button[type="button"].unlink:hover {
    background-color: var(--accent-background-color-hover);
    border: solid 1px var(--accent-background-color-hover);
}

button[type="button"] .notice {
    min-width: 12px;
    height: 12px;
    font-size: 0.8em;
    margin-left: auto;
}

button[type="button"].gray-out {
    cursor: no-drop;
}

button[type="button"].js-tooltip {
    cursor: pointer;
}

.button-area-send-mail {
    display: flex;
    position: relative;
}

.button-area-send-mail select {
    margin-right: 12px;
}

.button-area-toggle {
    display: flex;
    gap: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: fit-content;
    color: #EB6455;
    background-color: #F9F6F4;
    font-weight: bold;
    padding: 5px 22px;
    border-radius: 8px;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-box-shadow: 4px 4px 5px 0px var(--box-shadow-color);
       -moz-box-shadow: 4px 4px 5px 0px var(--box-shadow-color);
            box-shadow: 4px 4px 5px 0px var(--box-shadow-color);
}

.button-area-toggle p {
    user-select: none;
}

input[type="checkbox"],
input[type="radio"] {
    color: #FFFFFF;
    background-color: #FFFFFF;
    border: solid 2px var(--third-background-color);
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    transition:all .15s ease-out 0s;
    cursor: pointer;
    display: inline-block;
    outline: none;
    border-radius: 10%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-appearance: none;
       -moz-appearance: none;
        -ms-appearance: none;
         -o-appearance: none;
            appearance: none;
}

input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate,
input[type="radio"]:checked::before {
    background-color: var(--third-background-color) !important;
}

input[type="checkbox"][disabled],
input[type="checkbox"][disabled]:hover,
input[type="radio"][disabled],
input[type="radio"][disabled]:hover {
    background-color: #999999 !important;
    border: solid 2px #999999 !important;
}

/* チェックボックス */
input[type="checkbox"]::before,
input[type="checkbox"]::after {
    background-color: #FFFFFF;
    position: absolute;
    content: "";
    transition: all .2s ease-in-out;
}

input[type="checkbox"]::before {
    left: 2px;
    top: 6px;
    width: 0;
    height: 2px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
       -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
         -o-transform: rotate(45deg);
}

input[type="checkbox"]::after {
    right: 9px;
    bottom: 3px;
    width: 2px;
    height: 0;
    transform: rotate(40deg);
    -webkit-transform: rotate(40deg);
       -moz-transform: rotate(40deg);
        -ms-transform: rotate(40deg);
         -o-transform: rotate(40deg);
            transition-delay: .2s;
}

input[type="checkbox"]:checked::before {
    left: 1px;
    top: 10px;
    width: 6px;
    height: 2px;
}

input[type="checkbox"]:checked::after {
    right: 5px;
    bottom: 1px;
    width: 2px;
    height: 14px;
}

input[type="checkbox"]:indeterminate::before,
input[type="checkbox"]:indeterminate::after {
    width: 7px;
    height: 2px;
    transform: rotate(0);
    -webkit-transform: rotate(0);
       -moz-transform: rotate(0);
        -ms-transform: rotate(0);
         -o-transform: rotate(0);
}

input[type="checkbox"]:indeterminate::before {
    left: 1px;
    top: 7px;
}

input[type="checkbox"]:indeterminate::after {
    right: 1px;
    bottom: 7px;
}

/* ラジオボタン */
input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

input[type="radio"]::before {
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    margin: 4px;
    border-radius: 50%;
    transform: scale(0);
    transition: all ease-out 250ms;
}

.label-radio {
    display: block;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
       -moz-appearance: none;
        -ms-appearance: none;
         -o-appearance: none;
            appearance: none;
}

input[type="number"] {
    -webkit-appearance: textfield;
       -moz-appearance: textfield;
        -ms-appearance: textfield;
         -o-appearance: textfield;
            appearance: textfield;
}

input[type="file"] {
    display: none;
}


/* tab */

@media only screen and (min-width: 641px) and (max-width: 1100px) {
    input[type="checkbox"],
    input[type="radio"] {
        width: 25px;
        height: 25px
    }
    input[type="checkbox"]:checked::before {
        top: 14px;
        width: 9px;
    }
    input[type="checkbox"]:checked::after {
        height: 17px;
        right: 6px;
        bottom: 2px;
    }
    input[type="radio"]::before {
        width: 13px;
        height: 13px;
    }
}


/* sp */

@media only screen and (max-width: 640px) {
    input[type="checkbox"],
    input[type="radio"] {
        width: 30px;
        height: 30px
    }
    input[type="checkbox"]:checked::before {
        top: 16px;
        width: 12px;
    }
    input[type="checkbox"]:checked::after {
        height: 22px;
        right: 8px;
        bottom: 2px;
    }
    input[type="radio"]::before {
        width: 18px;
        height: 18px;
    }
}


/*
------------------------
file-area
------------------------
*/

.file-area {
    color: var(--content-font-color);
    background-color: var(--content-background-color);
    border: dashed 5px var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    font-weight: normal;
}

.file-area.drag {
    background-color: #999999;
}

.file-area:hover {
    background-color: #DADADA;
}

.file-area .select-files {
    color: var(--fourth-font-color);
    background-color: var(--fourth-background-color);
    display: flex;
    gap: 8px;
    width: fit-content;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 20px;
    border-radius: 8px;
    font-weight: bold;
}

.file-area .js-file-name {
    margin-left: 8px;
}

[disabled],
[disabled]:hover {
    background-color: #999999 !important;
    border: solid 1px #999999 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

[readonly] {
    background-color: rgba(0, 0, 0, 0) !important;
    border: transparent 1px solid !important;
    box-shadow: none !important;
}


/*
------------------------
フォーム幅
------------------------
*/

.single {
    width: 100%;
}


/*
------------------------
history
------------------------
*/

#history {
    display: flex;
    align-items: center;
    color: var(--main-content-font-color);
    background-color: var(--main-content-background-color);
    padding: 16px;
    border-radius: 16px;
    gap: 12px;
}

#history label {
    color: var(--second-font-color);
    background-color: var(--second-background-color);
    display: block;
    line-height: 20px;
    padding: 8px;
    border-radius: 2px;
    min-width: 238px;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
}

#history label select {
    color: var(--second-font-color);
    background-color: var(--second-background-color);
    border: none;
    padding: 0 20px 0 6px;
    line-height: 12px;
    font-size: 12px;
    box-shadow: none;
}


/* sp */

@media only screen and (max-width: 640px) {
    #history label:first-of-type {
        display: none;
    }
}


/*
------------------------
text button
------------------------
*/

.text-button {
    display: flex;
    gap: 12px;
}

.text-button>div:first-of-type {
    flex-grow: 1;
}

.text-button>div:last-of-type {
    width: 80px;
}

.text-button>div .js-input-area,
.text-button>div button {
    width: 100%;
}

.text-button .js-tooltip-target {
    top: 48px;
}


/*
------------------------
free
------------------------
*/

.free-search {
    display: flex;
    margin-bottom: 12px;
}

.free-search .type {
    margin-right: 12px;
}

.free-search .free-word {
    flex-grow: 1;
}

.free-search .free-word>div {
    width: 100%;
}
