.top-item {
    width: 100%;
    height: 70vh;
    position: relative;
}

.top-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.top-image img {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: relative;
}

.top-image img::before {
    content: '';
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.title-line {
    background-color: #1f2c5c;
    content: '';
    display: block;
    height: 2px;
    margin-top: 8px;
}

.title-sub {
    font-size: 1.2rem;
}

.main-txt {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    text-align: center;
    font-weight: 700;
    padding: 70px 20px 20px 20px;
    font-size: 30px;
    letter-spacing: 0.18em;
    color: #1f2c5c;
    margin-bottom: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

/* contact ---------------------------------------------------------------------*/

.contents1 {
    padding-bottom: 80px;
}

.contact-txt {
    width: 80%;
    margin: 0 auto;
    text-align: left;
    padding-top: 50px;
}

.contact-table {
    width: 90%;
    margin: 0 auto;
    padding: 10px 0 80px 0;
}

.contact-table th {
    width: 35%;
    font-size: 1rem;
    letter-spacing: 0.5em;
    padding: 30px;
    border-bottom: 1px solid #dfdfdf;
}

.contact-table th span {
    font-size: 0.7rem;
    background: #ef3340;
    color: #fff;
    text-align: center;
    display: inline-block;
    padding: 2px 0 2px 5px;
}

.contact-table td {
    border-bottom: 1px solid #dfdfdf;
    text-align: left;
    padding: 30px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 10px;
    border: 1px solid #dddddd;
    font-size: 1em;
    width: 70%;
    font-family: "Hiragino Sans", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
}

input[type="submit"] {
    background: #1f2c5c;
    border: #1f2c5c 1px solid;
    color: #FFF;
    font-size: 1.2em;
    padding: 15px 50px;
    cursor: pointer;
    transition: 0.5s;
}

.submit:hover {
    background: #fff;
    border: #1f2c5c 1px solid;
    color: #1f2c5c;
}

.errormsg {
    color: #ef3340;
}

/* レスポンシブ対応 ------------------------------------------------*/
@media screen and (max-width:1050px) {
    .contact-table {
        width: 100%;
    }

    .contact-txt {
        width: 100%;
    }
}

@media screen and (max-width:900px) {
    .contact-table th {
        display: block;
        border-bottom: #dfdfdf dashed 1px;
        width: 80%;
    }

    .contact-table td {
        display: block;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    select {
        width: 90%;
    }
}