/* お問い合わせフォーム（固定ページ「お問い合わせ」/contact/）。色は採用ページの #entrybox に合わせている。 */
.npi-contact {
    width: 950px;
    max-width: 100%;
    margin: 0 auto 70px auto;
    box-sizing: border-box;
}
.npi-contact [hidden] {
    display: none !important;
}
/* smart.css にハンバーガーメニュー用の label { position: fixed; top: 0; left: 0; } があり、
   スマホではフォームの見出しまで画面左上に固定されてしまうため打ち消す。 */
.npi-contact label {
    position: static;
    top: auto;
    left: auto;
}
.npi-contact__form {
    background-color: #f4faff;
    padding: 50px 10%;
}
.npi-contact__row {
    margin-bottom: 28px;
}
.npi-contact__row > label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.npi-contact__req,
.npi-contact__opt {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
}
.npi-contact__req {
    background-color: #0e61fe;
    color: #fff;
}
.npi-contact__opt {
    background-color: #d5dfea;
    color: #333;
}
/* smart.css の input, select { transform: scale(0.9); } も打ち消す（textarea だけ幅がずれるため） */
.npi-contact input[type="text"],
.npi-contact input[type="email"],
.npi-contact input[type="tel"],
.npi-contact select,
.npi-contact textarea {
    display: block;
    width: 100%;
    margin: 0;
    transform: none;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #c5d3e3;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 16px; /* 16px 未満だと iPhone で入力時に拡大される */
    line-height: 1.6;
    color: #222;
}
.npi-contact textarea {
    min-height: 220px;
    resize: vertical;
}
.npi-contact input:focus,
.npi-contact select:focus,
.npi-contact textarea:focus {
    outline: 2px solid #0e61fe;
    outline-offset: 0;
    border-color: #0e61fe;
}
.npi-contact__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.npi-contact__consent label {
    display: block;
    position: relative;
    padding-left: 30px;
    font-weight: bold;
    cursor: pointer;
}
.npi-contact__consent input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    margin: 0;
    transform: none;
}
.npi-contact__note {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #555;
}
.npi-contact__submit {
    text-align: center;
    margin-top: 36px;
}
.npi-contact__submit button {
    display: inline-block;
    width: 40%;
    min-width: 240px;
    padding: 20px;
    border: 0;
    border-radius: 100px;
    background-color: #0e61fe;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}
.npi-contact__submit button:hover {
    opacity: 0.85;
}
.npi-contact__submit button:disabled {
    opacity: 0.5;
    cursor: default;
}
.npi-contact__error {
    margin-bottom: 30px;
    padding: 16px 20px;
    border: 1px solid #e3a5a5;
    background-color: #fff4f4;
    color: #a40000;
}
.npi-contact__error p {
    margin: 0;
}
#npi-contact-error-msg {
    white-space: pre-line;
}
.npi-contact__thanks {
    padding: 50px 10%;
    background-color: #f4faff;
    text-align: center;
}
.npi-contact__thanks h3 {
    margin: 0 0 20px 0;
}

@media screen and (max-width: 640px) {
    .npi-contact {
        width: 90%;
    }
    .npi-contact__form,
    .npi-contact__thanks {
        padding: 30px 5%;
    }
    .npi-contact__submit button {
        width: 100%;
        min-width: 0;
    }
}
