@charset "utf-8";

/*
------------------------
form
------------------------
*/

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
textarea,
select {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    padding: 4px 6px;
    line-height: 22px;
    border: solid 1px #E7E7E7;
    background-color: #FFFFFF;
    border-radius: 2px;
    -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;
}

input {
    padding-bottom: 5px;
}

textarea {
    border: solid 1px #E7E7E7;
    resize: vertical;
    vertical-align: bottom;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    width: 98%;
    min-height: 80px;
    border-radius: 2px;
    -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 {
    -webkit-appearance: none;
            appearance: none; /* デフォルトのスタイルを無効 */
    background-image: url("../../images/select.svg");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
    padding-right: 20px;
}

select::-ms-expand {
    display: none; /* デフォルトのスタイルを無効(IE用) */
}

select .group {
    background-color: #E8E8E8;
}

label {
    cursor: pointer;
}

button {
    position: relative;
    display: block;
    padding: 0;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    word-break: keep-all;
    white-space: nowrap;
    color: #FFFFFF;
    -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;
}

button>a,
button>span {
    display: block;
    overflow: hidden;
    padding: 7px;
    color: #FFFFFF !important;
}

button img {
    height: 16px;
    margin-right: 4px;
}

button p {
    display: inline-block;
    line-height: 16px;
}

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: #1C4E8B;
    border: solid 1px #1C4E8B;
}

button[type="submit"].complete {
    color: var(--accent-font-color);
    background-color: var(--accent-background-color);
    border: solid 1px var(--accent-background-color);
}

button[type="submit"].complete:hover {
    background-color: #F23139;
    border: solid 1px #F23139;
}

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: #3267A0;
    border: solid 1px #3267A0;
}

button[type="button"] .notice {
    position: absolute;
    z-index: 1;
    top: -8px;
    left: -8px;
    line-height: 16px;
}

button[type="button"].gray-out {
    cursor: no-drop;
    border: solid 1px #C9C9C9;
}

button[type="button"].js-tooltip {
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

label input[type="checkbox"],
label input[type="radio"] {
    margin-left: 6px !important;
    margin-right: 6px !important;
}

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;
    height: 20px;
    width: 20px;
    transition:all .15s ease-out 0s;
    cursor: pointer;
    display: inline-block;
    margin: 4px;
    outline: none;
    border-radius: 10%;
    -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 {
    border: solid 2px #999999 !important;
    background-color: #999999 !important;
}

/* Checkbox */
input[type="checkbox"]:before,
input[type="checkbox"]:after {
    position: absolute;
    content: "";
    background-color: #FFFFFF;
    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 {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 3px;
    transform: scale(0);
    transition: all ease-out 250ms;
}

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="radio"]:before {
        width: 15px;
        height: 15px;
    }
    input[type="checkbox"]:checked:before {
        top: 14px;
        width: 9px;
    }
    input[type="checkbox"]:checked:after {
        height: 17px;
        right: 6px;
        bottom: 2px;
    }
}


/* sp */

@media only screen and (max-width: 640px) {
    input[type="checkbox"],
    input[type="radio"] {
        width: 30px;
        height: 30px
    }
    input[type="radio"]:before {
        width: 20px;
        height: 20px;
    }
    input[type="checkbox"]:checked:before {
        top: 16px;
        width: 12px;
    }
    input[type="checkbox"]:checked:after {
        height: 22px;
        right: 8px;
        bottom: 2px;
    }
}


/*
------------------------
file-area
------------------------
*/

.file-area {
    border: dashed 5px #CCCCCC;
    background-color: #F0F0F0;
    display: block;
    padding: 16px;
    cursor: pointer;
}

.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: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 22px;
}

.file-area .select-files img {
    height: 22px;
    margin-right: 4px;
}

.file-area .select-files p {
    display: inline-block;
    line-height: 22px;
}

.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%;
}

.half {
    width: 45%;
}

.quarter {
    width: 25%;
}


/* sp */

@media only screen and (max-width: 640px) {
    .single,
    .half {
        width: 100%;
    }
}


/*
------------------------
history
------------------------
*/

#history {
    position: relative;
    z-index: 0;
    width: calc(100% - 8px);
    padding: 8px 0 0 8px;
    background-color: #FFFFFF;
    border-radius: 2px;
    margin-bottom: 4px;
}

#history label {
    color: var(--second-font-color);
    background-color: var(--second-background-color);
    display: inline-block;
    line-height: 32px;
    padding: 0 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 2px;
}

#history button[type="button"] {
    display: inline;
    margin-bottom: 8px;
}

#history label select {
    color: var(--second-font-color);
    background-color: var(--second-background-color);
    border: none;
    margin: 0;
    padding: 4px 20px 4px 8px !important;
    line-height: 14px;
    font-size: 14px;
    box-shadow: none;
}


/* sp */

@media only screen and (max-width: 640px) {
    #history {
        padding-bottom: 1px;
    }
    #history label,
    #history button[type="button"] {
        display: block;
        margin: 0 8px 8px 0;
        overflow: hidden;
    }
}


/*
------------------------
text button
------------------------
*/

.text-button>div {
    float: left;
    margin-bottom: 8px;
}

.text-button>div:first-of-type {
    width: calc(100% - 88px);
    margin-right: 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;
}

.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;
}
