@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho&display=swap');

.container {
    display: flex; 
    flex-direction: column; 
    height: auto;
}

.contact-container {
    margin: 30px auto;
    width: 100%;
    max-width:550px;
    background: rgba(0,0,0,0.8);
    padding:30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.contact-container .title h1{
    color: #FFF9EC;
    text-align:center;
    margin-bottom: 25px;
}

.contact-form{
    display:flex;
    flex-direction: column;
}

.input-fields{
    display:flex;
    flex-direction:column;
}

.input-fields,
.msg{
    width:100%;
}

.input-fields .input, 
.msg textarea{
    margin:10px 0;
    background: transparent;
    border: 0px;
    border-bottom: 2px solid #FFF9EC;
    padding: 10px;
    color: #FFF9EC;
    width: 100%;
}

.msg textarea{
    height: 178px;
}

::-webkit-input-placeholder {
    color: #707070;
}

::-moz-input-placeholder {
    color: #707070;
}

::-ms-input-placeholder {
    color: #707070;
}

.contact-btn {
    background: #39b7dd;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    width:100%;
}

.contact-btn:hover {
    color: #2e2e2e;
}

.back-btn {
    display: inline-block;
    margin: 10px auto;
    width: 100%;
    max-width:550px;
    padding: 10px 50px;
    font-size: 16px;
    color: #ececec;
    background-color: #757e87; /* ボタンの背景色 */
    border: none;
    border-radius: 5px; /* ボタンの角を丸める */
    text-align: center;
    text-decoration: none; /* リンクの下線を消す */
    cursor: pointer; /* ホバー時のカーソルをポインターにする */
}

.back-btn:hover {
    color: #2e2e2e;
}

.error-message
{
    color: red;
    margin: 10px auto;
}


@media screen and (max-width: 768px){
    .contact-form{
        flex-direction: column;
    }
    .msg textarea{
        height: 80px;
    }
    .input-fields,
    .msg{
        width: 100%;
    }
}  