html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background-color: #111;
    width: 100%;
    margin: 0;
    padding: 0;
    color: rgb(214, 214, 214);
}

main {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5vmin;
}

form {
    width: 40%;
    min-width: 800px;
    padding: 4rem 6rem;
    margin: 0;
    background-color: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.h1-title {
    display: flex;
    justify-content: baseline;
    width: min-content;
    align-items: center;
    position: relative;
    margin-top: 7rem;
    margin-bottom: 3rem;
}

h1 {
    margin: 0;
    font-size: 7vmin;
    font-weight: bolder;
    color: rgb(255, 255, 255);
}

h2 {
    font-size: 2.1vmin;
    margin: 0;
    margin-bottom: 1vmin;
    margin-top: 1vmin;
    font-weight: 150;
    margin-left: 2rem;
}

h3 {
    font-size: 2vmin;
    font-weight:500;
    margin: 0;
    margin-bottom: 5vmin;
}

.required{
    font-size: 1.8vmin;
    color: #ffffff;
    background-color: red;
    border-radius: 0.5vmin;
    margin-left: 1rem;
    padding: 0.2rem;
}

.name input{
    width: 80%;
    padding: 1.5vmin;
}

input{
    border: solid 1px #7a7a7a;
    border-radius: 0.5vmin;
    width: 90%;
    padding: 1%;
    font-size: 2.0vmin;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.inquiry-type input {
    width: auto;
}

.inquiry-type label {
    font-size: 1.8vmin;
    margin-left: 1.5rem;
}

.name{
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    align-items: center;
}

textarea{
    padding: 1%;
    font-size: 2.0vmin;
    width: 90%;
    border: solid 1px #7a7a7a;
    border-radius: 0.5vmin;
    resize: both;
    height: 10rem;
    margin-left: 1rem;
}

#submit{
    width: auto;
    font-size: 2.5vmin;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0.5vmin;
    border: solid 1px #7a7a7a;
    background-color: #9c9c9c;
    color: rgb(255, 255, 255);
}

@media screen and (max-width:965px) {
    h1 {
        font-size: 10vmin;
    }
    form {
        padding: 0;
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .section {
        width: 90%;
    }
    h2 {
        font-size: 4vmin;
        margin-left: 1rem;
    }
    h3 {
        width: 90%;
        margin-top: 4vmin;
        font-size: 3vmin;
        white-space: wrap;
    }
    .raw-name, .hurigana {
        width: 100%;
    }
    input {
        font-size: 4vmin;
        width: 90%;
    }
    .inquiry-type label {
        font-size: 3.4vmin;
        margin-left: 0.5rem;
    }
    textarea {
        font-size: 4vmin;
        width: 90%;
    }
    .name {
        flex-direction: column;
        align-items: flex-start;
    }
    #submit {
        font-size: 4vmin;
        margin-bottom: 14vmin;
    }
}