.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}
.gray {
    background-color: #f5f5f5;
}
.title {
    text-align: center;
}
.eng-title {
    font-family: "Jost";
    font-weight: 400;
    letter-spacing: 1pt;
    margin-top: 4rem;
    margin-bottom: 0;
}
.sub-title {
    letter-spacing: 0.1rem;
}
.frame {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 10rem;
    padding-bottom: 3rem;
    width: 960px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 80px 0 80px;
}
p {
    letter-spacing: 0.1rem;
}
.greeting {
    width: 100%;
    margin-top: 3rem;
    padding: 0 2rem 0 2rem;
    text-align: justify;
    text-justify: distribute;
    line-height: 1.6rem;
}
.divider {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-bottom: #dbdbdb 1px solid;
    box-sizing: border-box;
}
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
h2 {
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: white;
    background-color: #9b9b9b;
    padding: 0.3rem 1.4rem;
    margin: 0;
}
.desc-form {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1.1rem;
    margin-bottom: 1rem;
}
#mail_form {
    width: 100%;
}
main dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    margin: 0;
}
dt {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px #dbdbdb solid;
    padding: 0.6rem 1rem 0.6rem 1.4rem;
}
label {
    letter-spacing: 0.1rem;
}
dd {
    margin: 0;
    border-bottom: 1px #dbdbdb solid;
    padding: 0.6rem 0 0.6rem 1.4rem;
}
.label-content {
    justify-content: center;
}
input {
    padding-top: 1.4rem;
}
input, textarea {
    font-family: inherit;
    border: none;
    box-sizing: border-box;
    width: 100%;
    font-size: 1rem;
}
input:focus, textarea:focus {
    outline: none;
}
::placeholder {
    color: #dadada;
}
.required span:first-of-type::after {
    content: "※必須";
    color: red;
    font-size: 0.7rem;
    vertical-align: 0.2rem;
}
.error-message {
    color: red;
}
.confirm-button {
    background-color: white;
    border: 1px #2a2a2a solid;
    padding: 0.5rem 1.4rem;
    margin-top: 5rem;
    margin-bottom: 3rem;
    cursor: pointer;
    width: 150px;
    height: 45px;
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    color: #2a2a2a;
    transition: 0.3s;
    letter-spacing: 0.5rem;
}
.confirm-button:hover {
    background-color: #9b9b9b;
    border-color: #9b9b9b;
    color: white;
}
.confirm-button-chevron {
    width: 3rem;
    height: 2.8rem;
}
.confirm-button-chevron svg {
    height: 80%;
    width: auto;
    transition: padding-left 0.3s;
}
.confirm-button:hover .confirm-button-chevron svg {
    padding-left: 1.2rem;
}
@media screen and (max-width: 700px) {
    .frame {
        padding: 0 30px 0 30px; 
    }
    .desc-form {
        margin-bottom: 2.4rem;
    }
    main dl {
        grid-template-columns: auto;
    }
    dt {
        border: none;
        padding-top: 0;
        padding-bottom: 0;
    }
    dd {
        padding-top: 0;
        margin-bottom: 0.8rem;
    }
    input {
        padding-top: 1rem;
    }
    textarea {
        padding-top: 1rem;
    }
}
#confirm {
    display: none; /* grid */
    place-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    overflow: scroll;
}
#confirm-modal {
    background-color: white;
    width: 95vw;
    max-width: 750px;
    box-sizing: border-box;
    padding: 2rem;
    margin: 2.2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#confirm-modal p {
    margin-bottom: 2.4rem;
    font-size: 0.9rem;
}
#confirm-modal dl {
    row-gap: 1rem;
    width: 100%;
}
#confirm-mail-contents {
    white-space: pre-wrap;
    text-align: justify;
    text-justify: inter-character;
    margin: 0;
    padding-bottom: 1rem;
}
.confirm-label-content {
    justify-content: center;
}
.confirm-label-content > label {
    padding-bottom: 1rem;
}
#submit {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 5rem;
}
#cancel-submit {
    background-color: white;
    border: 1px #2a2a2a solid;
    cursor: pointer;
    border: 1px #444343 solid;
    color: #2a2a2a;
    transition: 0.3s;
    letter-spacing: 0.1rem;
    font-size: 1rem;
    width: 8rem;
    padding: 0.4rem;
}
#cancel-submit:hover {
    background-color: #9b9b9b;
    border-color: #9b9b9b;
    color: white;
}
#proceed-submit {
    background-color: #9b9b9b;
    border: 1px #9b9b9b solid;
    cursor: pointer;
    color: white;
    transition: 0.3s;
    font-size: 1rem;
    width: 8rem;
    padding: 0.4rem;
}
#proceed-submit>span {
    display: inline-block;
    width: 100%;
    letter-spacing: 0.6rem;
}
#proceed-submit>span:after {
    content: "";
    margin-left: -0.6rem;
}
#proceed-submit:hover {
    background-color: #9b9b9b;
    border-color: #9b9b9b;
    color: white;
}
#cancel-submit:hover,
#proceed-submit:hover {
    background-color: #2a2a2a;
    border-color: #2a2a2a;
    color: white;
}
