* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


/* Common */
.font-15 {
    font-size: 15px !important;
}

.font-30 {
    font-size: 30px !important;
}

.active {
    color: #21baa6;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-8 {
    margin-top: 8px !important;
}

.mt-16 {
    margin-top: 16px !important;
}

.mt-24 {
    margin-top: 24px !important;
}

.mt-32 {
    margin-top: 32px !important;
}

.mt-64 {
    margin-top: 64px !important;
}

.mb-64 {
    margin-bottom: 64px !important;
}

.col {
    float: left;
}

.col-full {
    width: 100%;
}

.col-half {
    width: 50%;
}

/* Main */
html {
    font-family: Arial, Helvetica, sans-serif;
}

#header {
    height: 70px;
    background-color: #edeff5;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
}

#nav > li {
    height: 70px;
    display: inline-block;
    list-style: none;
    justify-content: space-around;
    align-items: center;
    padding: 24px;
}

#nav > li > a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

#nav .subnav li:hover a,
#nav > li:hover > a {
    color: #21baa6;
    transition: all 0.5s ease;
}

#nav li:last-child {
    position: relative;
}

#nav .subnav {
    display: none;
    padding: 0 38px;
    line-height: 45px;
    margin-top: 25px;
    margin-left: -40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: absolute;
    background-color: #edeff5;
    list-style-type: none;
}

#nav .subnav a {
    line-height: 20px;
    color: #000;
    text-decoration: none;
}

#nav li:hover .subnav {
    display: block;
}

#wrap {
    padding: 22px;
    position: absolute;
    right: 0;
    display: none;
}

#wrap:hover {
    cursor: pointer;
    opacity: 0.7;
}

#more-icon {
    float: right;
    cursor: pointer;
    font-size: 24px;
    display: none;
}

.menu-bar {
    width: 20px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;    
}

#footer {
    color: #fff;
    height: 300px;
}   

.contact-section {
    display: grid;
    grid-template-areas: 
    "top top top top"
    "phone blank btn blank1"
    "email blank btn blank1";
    margin-left: 20%;
    width: 70%;
    justify-content: space-between;
}

.text-content {
    grid-area: top;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-size: 40px;
}

.phone-content {
    grid-area: phone;
}

.email-content {
    grid-area: email;
}

.contact-btn {
    grid-area: btn;
    border: 2px solid #000;
    padding: 20px 50px;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    background: none;
    color: #fff;
}

.contact-btn:hover,
.contact-btn a:hover {
    color: #000;
    background-color: #edeff5;
    cursor: pointer;
    transition: all 0.5s ease;
}

.contact-btn a {
    color: #fff;
    text-decoration: none;
}

#contact-form.open {
    display: flex;
}

#contact-form {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 110vh;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    background-color: rgba(0,0,0,0.4);
}

#container {
    background: #fff;
    width: 800px;
    padding: 25px 40px 10px 40px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    animation: contactOpen ease 0.5s;
}

#container .close-btn {
    font-size: 12px;
    font-weight: 700;
    float: right;
    margin-top: -25px;
    margin-right: -40px;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    background-color: #edeff5;
}

#container .close-btn:hover {
    background-color: red;
    color: #fff;
    transition: all 0.5s ease;
}

#container .contact-text {
    text-transform: uppercase;
    letter-spacing: 10px;
    line-height: 1.4;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}

#container form {
    padding: 30px 0 0 0;
}

#container form .contact-form-row {
    display: flex;
    margin: 32px 0;
}

form .contact-form-row .contact-input {
    width: 100%;
    height: 40px;
    margin: 0 20px;
    position: relative;
}

form .contact-form-row .contact-textarea {
    height: 70px;
}

.contact-input input,
.contact-textarea textarea {
    display: block;
    height: 100%;
    width: 100%;
    border: none;
    font-size: 17px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.contact-textarea textarea {
    padding-top: 10px;
}

:focus {
    outline: none;
}

.contact-input input:focus ~ label,
.contact-textarea textarea:focus ~ label,
.contact-input input:valid ~ label,
.contact-textarea textarea:valid ~ label {
    transform: translateY(-20px);
    color: #21baa6;
    font-size: 14px;
}

.contact-input label {
    position: absolute;
    bottom: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-textarea label {
    width: 100%;
    bottom: 40px;
    background-color: #fff;
}

.contact-input .underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
}

.contact-input .underline:before,
.contact-input .underline:after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background: #21baa6;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.contact-input input:focus ~ .underline:before, .underline:after,
.contact-textarea textarea:focus ~ .underline:before, .underline:after,
.contact-input input:valid ~ .underline:before, .underline:after,
.contact-textarea textarea:valid ~ .underline:before, .underline:after {
    transform: scaleX(1);    
}

.submit-btn .contact-input{
    height: 45px !important;
    width: 25% !important;
    overflow: hidden;
}

.submit-btn .contact-input .inner {
    height: 100%;
    width: 300%;
    position: absolute;
    left: -100%;
    background-color: #21baa6;
}

.submit-btn .contact-input:hover .inner {
    opacity: 0.8;
    transition: all 0.5s ease;
}

.submit-btn .contact-input input {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}


/* Animation contact form when open */
@keyframes contactOpen {
    from {
        opacity: 0;
        transform: translateY(-200px);
    } 
    to {
        opacity: 1;
        transform: translateY(0);
    }      
}

/* PC */
@media (min-width: 1025px) {
    #nav {
        float: right;
        margin-right: 400px;
    }
    
}

/* Tablet */
@media (min-width: 740px) and (max-width: 1024px) {
    .contact-section {
        display: block;
    }

    .email-content {
        margin-top: 4px;
    }

    .contact-btn {
        margin-top: 48px;
    }
}

/* Mobile Iphone6/7/8 upper */
@media (min-width: 321px) and (max-width:739px) {
    #header {
        background-color: #edeff5;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    #nav {
        display: block;
    }

    #nav > li {
        display: block;
    }

    #nav .subnav {
        position: initial;
        margin-right: -25px;
    }

    #more-icon {
        display: block;
    }

    #more-icon:hover {
        color: #21baa6;
        transition: all 0.5s ease;
    }

    #wrap {
        display: block;
    }

    .contact-section {
        display: block;
    }

    .text-content {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .email-content {
        margin-top: 4px;
    }

    .contact-btn {
        margin-top: 36px;
        padding: 16px 40px;
        font-size: 17px;
    }

    #container .close-btn {
        font-size: 12px;
        font-weight: 700;
        float: right;
        top: 0;
        right: 0;
        cursor: pointer;
        border: none;
        padding: 10px 20px;
        background-color: #edeff5;
    }

    #container .contact-text {
        font-size: 15px;
    }

    #container form {
        padding: 0;
    }

    #container form .contact-form-row {
        display: block;
    }

    .contact-input input {
        font-size: 14px;
    }

    .contact-input label {
        font-size: 14px;
    }

    .contact-input input:focus ~ label,
    .contact-input input:valid ~ label {
        font-size: 12px;
    }

    form .contact-form-row .contact-input {
        margin: 35px 0 !important;
    }

    .submit-btn .contact-input {
        width: 100% !important;
    }

    .submit-btn .contact-input input {
        font-size: 14px;
    }
}

/* Mobile Iphone 5/SE */
@media (max-width:320px) {
    #header {
        background-color: #edeff5;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    #nav {
        display: block;
    }

    #nav > li {
        display: block;
    }

    #nav .subnav {
        position: initial;
        margin-right: -25px;
    }

    #more-icon {
        display: block;
    }

    #more-icon:hover {
        color: #21baa6;
        transition: all 0.5s ease;
    }

    #wrap {
        display: block;
    }

    .contact-section {
        display: block;
    }

    .text-content {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .phone-content,
    .email-content {
        font-size: 14px;
        margin-top: 4px;
    }

    .contact-btn {
        margin-top: 36px;
        padding: 15px 36px;
        font-size: 14px;
    }

    #container .close-btn {
        font-size: 10px;
        font-weight: 700;
        float: right;
        margin-top: -25px;
        margin-right: -40px;
        cursor: pointer;
        border: none;
        padding: 5px 10px;
        background-color: #edeff5;
    }

    #container .contact-text {
        font-size: 12px;
        letter-spacing: 2px;
    }

    #container form {
        padding: 0;
    }

    #container form .contact-form-row {
        display: block;
    }

    .contact-input input {
        font-size: 12px;
    }

    .contact-input label {
        font-size: 12px;
    }

    .contact-input input:focus ~ label,
    .contact-input input:valid ~ label {
        font-size: 9px;
    }

    form .contact-form-row .contact-input {
        margin: 0 !important;
    }

    .submit-btn .contact-input {
        width: 100% !important;
    }

    .submit-btn .contact-input input {
        font-size: 12px;
    }
}