@charset "utf-8";

/* =========================================================
   EasyMail / gray theme  — mailform inspired design
   ========================================================= */


/* -- Reset & Base ---------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    color: #454545;
    font-family: sans-serif;
    background: #f0f0f0;
    line-height: 1.8;
}


/* -- Form wrapper ---------------------------------------- */

.js_main_form {
    width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 7px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
}


/* -- dl / dt / dd --------------------------------------- */

.js_main_form dl {
    width: 90%;
    margin: 0 auto;
    border-bottom: 1px solid #cccccc;
    overflow: hidden; /* clearfix */
}

.js_main_form dl::after {
    content: "";
    display: block;
    clear: both;
}

.js_main_form dl dt {
    width: 30%;
    float: left;
    padding: 35px 2% 25px 0;
    text-align: right;
    font-weight: normal;
}

.js_main_form dl dd {
    width: 65%;
    float: right;
    padding: 30px 0 25px 5%;
    text-align: left;
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .js_main_form {
        width: 95%;
    }

    .js_main_form dl dt {
        width: auto;
        float: none;
        padding: 25px 0 10px;
        text-align: left;
        font-weight: bold;
    }

    .js_main_form dl dd {
        width: auto;
        float: none;
        padding: 0 0 20px;
    }
}


/* -- Required / Optional badge -------------------------- */

.badge-required,
.badge-optional {
    display: inline-block;
    font-size: 80%;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}

.badge-required {
    background: #d9534f;
    border: 1px solid #d43f3a;
}

.badge-optional {
    background: #337ab7;
    border: 1px solid #2e6da4;
}

/* 従来の ※ マーク（EasyMail標準）は非表示 */
.js_input_control .text-danger {
    display: none;
}


/* -- Inputs / Textarea / Select -------------------------- */

.js_main_form input[type="text"],
.js_main_form input[type="email"],
.js_main_form input[type="tel"],
.js_main_form input[type="number"],
.js_main_form input[type="url"],
.js_main_form input[type="date"],
.js_main_form input[type="datetime-local"],
.js_main_form input[type="month"],
.js_main_form input[type="time"],
.js_main_form input[type="password"] {
    display: block;
    width: 100%;
    padding: 7px 2%;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background: #fafafa;
    font-size: 16px;
    font-family: inherit;
    line-height: normal;
    -webkit-appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: auto;
    color: #495057;
}

.js_main_form input[type="text"]:focus,
.js_main_form input[type="email"]:focus,
.js_main_form input[type="tel"]:focus,
.js_main_form input[type="number"]:focus,
.js_main_form input[type="url"]:focus,
.js_main_form input[type="date"]:focus,
.js_main_form input[type="datetime-local"]:focus,
.js_main_form input[type="month"]:focus,
.js_main_form input[type="time"]:focus,
.js_main_form input[type="password"]:focus,
.js_main_form select:focus,
.js_main_form textarea:focus {
    box-shadow: 0 0 5px #55ccff;
    border: 1px solid #55ccff;
    background: #ffffff;
    outline: 0;
}

/* Textarea */
.js_main_form textarea {
    display: block;
    width: 100%;
    min-height: 180px;
    padding: 7px 2%;
    resize: vertical;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background: #fafafa;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    -webkit-appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: auto;
    color: #495057;
}

/* Select wrapper (カスタム矢印) */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    top: calc(50% - 5px);
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666666;
    border-bottom: 2px solid #666666;
    transform: rotate(45deg);
    pointer-events: none;
}

.js_main_form select {
    display: block;
    width: 100%;
    padding: 7px 2%;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background: #f0f0f0;
    font-size: 16px;
    font-family: inherit;
    line-height: normal;
    color: #495057;
    -webkit-appearance: none;
    cursor: pointer;
    height: auto;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* File input */
.js_main_form input[type="file"] {
    display: block;
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    color: #495057;
}


/* -- Radio / Checkbox (box style) ----------------------- */

.js_main_form ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.js_main_form ul li label {
    display: block;
    margin-top: 8px;
    padding: 7px 2%;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background: #f0f0f0;
    font-size: 16px;
    font-family: inherit;
    line-height: normal;
    cursor: pointer;
}

.js_main_form ul li:first-child label {
    margin-top: 0;
}

.js_main_form ul li label:hover {
    background: #e8e8e8;
}

.js_main_form input[type="radio"],
.js_main_form input[type="checkbox"] {
    display: inline;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 8px 0 0;
    border: none;
    background: none;
    box-shadow: none;
    -webkit-appearance: auto;
    cursor: pointer;
}

/* col-md-N などで横並び時のラベル間隔 */
.js_main_form [class*="_wrap"] {
    padding: 2px 4px 2px 0;
}


/* -- Error / Confirm messages --------------------------- */

.err_msg {
    display: none;
    color: #cc0000;
    background: #fff0f0;
    border: 1px solid #cc0000;
    border-radius: 3px;
    padding: 4px 10px;
    margin-top: 4px;
    width: 100%;
    font-size: 85%;
}

.conf_msg {
    display: none;
    color: #495057;
    font-size: 95%;
    margin-top: 4px;
    width: 100%;
}

.font80 {
    font-size: 80%;
    color: #666;
}


/* -- zp_address block ----------------------------------- */

.js_main_form .js_zip {
    width: 160px !important;
    display: inline-block !important;
}

.js_main_form .js_pref {
    width: 180px !important;
    display: inline-block !important;
}


/* -- first_last_name ------------------------------------ */

.js_main_form input[name="last_name"],
.js_main_form input[name="first_name"] {
    display: inline-block;
    width: 48%;
}

.js_main_form input[name="first_name"] {
    margin-left: 4%;
}


/* -- choice image --------------------------------------- */

.choice_img {
    max-height: 100px;
    display: block;
    margin-bottom: 4px;
}


/* -- Buttons -------------------------------------------- */

/* 確認・送信・戻るボタン行 */
.js_main_form ~ .row,
.row.mt-5 {
    padding-bottom: 30px;
}

.btn-primary {
    background: #5cb85c;
    border-color: #4cae4c;
    color: #ffffff;
    font-size: 16px;
    padding: 10px 30px;
    border-radius: 3px;
    transition: background .2s;
}

.btn-primary:hover {
    background: #449d44;
    border-color: #398439;
    color: #ffffff;
}

.btn-outline-primary {
    background: #ffffff;
    border-color: #337ab7;
    color: #337ab7;
    font-size: 16px;
    padding: 10px 30px;
    border-radius: 3px;
    transition: background .2s;
}

.btn-outline-primary:hover {
    background: #337ab7;
    color: #ffffff;
}

.btn:disabled,
.btn[disabled] {
    background: #999999 !important;
    border-color: #999999 !important;
    cursor: not-allowed;
}


/* -- Confirm view hide ---------------------------------- */

.js_conf_control {
    display: none;
}
