:root {
    /* --main-content-width: calc(100% - 4rem); */
    --main-content-padding-left: 2rem;
    --main-content-padding-right: 2rem;
    --accent-color: rgb(30 174 219);
    --border-radius-common: 1rem;
    --secondary-color: #221f26;
    --color-nice-grey: rgb(64, 62, 67);

    --main-content-padding-left-mobile: 1rem;
    --main-content-padding-right-mobile: 1rem;
}

@media only screen and (max-width: 1200px) {
    :root {
        --main-content-width: calc(100% - 2rem);
    }
}

.space-1rem {
    height: 1rem;
}
.headline-text {
    font-size: 2.1rem;
    font-weight: 400;
    /* color: rgb(64 62 67); */
    color: black;
}
.standard-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgb(64 62 67 / .8);
}
.bar-light-grey {
    width: 100%;
    height: 1px;
    background-color: var(--color-nice-grey);
}






html {
    font-size: 100%;
}

body {
    /* Custom Font */
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;

    padding: 0;
    margin: 0;
}

#hero {
    /* Background */
    background-image: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0, 0.2) 100%), url('assets/images/kyoutofuukei_own.jpg');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 200px);

    /* Ordering of Elements */
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    color: white;
    font-weight: 300;
}

#hero h1 {
    font-size: 4rem;
}
#hero #hero-message {
    font-size: 1.7rem;
}
#hero .language-tag-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: start;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 1rem;
}
.language-tag-container > .language-tag {
    display: inline-flex;
    margin-left: .5rem;
    margin-right: .5rem;
    /* flex: 0 0 25%; */

    font-size: 1.5rem;
    color: white;
    height: 2.5rem;
    line-height: 2.4rem;
    font-weight: 300;

    padding-right: 12px;
    border-radius: 1.5rem;
    overflow: hidden;
    /* background-color: white; */
    backdrop-filter: blur(1px);
    border: solid 1px rgb(255 255 255 / 0.25);
}
.language-tag-container-smaller > .language-tag{
    font-size: 1.1rem;
    height: 2.1rem;
    line-height: 1.9;
}
.language-tag img {
    height: 100%;
    margin-right: 10px;
    width: 3rem;
    /* border-right: solid 2px black; */
}


.section {
    padding-left: var(--main-content-padding-left);
    padding-right: var(--main-content-padding-right);
    box-sizing: border-box;
    /* width: calc(100% - (2 * var(--main-content-padding-left))); */
    text-align: center;
    padding-bottom: 5rem;
    padding-top: 5rem;
}
.section-grey {
    background-color: #f7f7f8;
}
.section h2 {
    /* padding-top: 3rem; */
    margin-top: 0;
}



.overlay {
    width: calc(100% - 2 * var(--main-content-padding-left));
    margin-left: var(--main-content-padding-left);
    /* margin-right: var(--main-content-padding-right); */
    text-align: center;
    background-color: white;
    /* border-radius: 3rem; */
    

    text-align: center;
    position:relative;
    transform: translate(0, -2rem);

    h2 {
        padding-top: 4rem;
        margin-top: 0;
    }
}

#triangle-bottom-right {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 0 2rem 2rem;
    border-color: transparent transparent white transparent;

    position: absolute;
    left: -2rem;
}

#triangle-bottom-left {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 2rem 0 0 2rem;
    border-color: transparent transparent transparent white;
    transform: rotate(0deg);

    position: absolute;
    right: -2rem;
}

#service-examples {
    display: flex;
    flex-direction: row;   
}
.service-example {
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fefefe;
}
#service-examples .service-example:nth-of-type(2) {
    position:relative;
    transform: translate(0rem, 3rem);
}
.service-example img {
    width: 100%;
}
.service-example h2 {
    padding-top: 2rem;
    font-size: 1.4rem;
    color: black;
    font-weight: 500;
}
.service-example h3 {
    font-size: 1.3rem;
    font-weight: 400;
}
.service-example svg {
    color: var(--accent-color);
    width: 3rem;
    height:100%; /* Nessecary for some reason */
    margin-left: .5rem;
    margin-right: .5rem;
}
.service-example .svg-icon-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.service-example .service-example-content {
    padding: 15px;
    padding-bottom: 25px;
}

#steps-container {
    padding-left: 30%;
    width: 50%;
    /* margin-left: auto;
    margin-right: auto; */
}
.step {
    display: flex;
    margin-bottom: 1rem;
}
.step h1 {
    display: block;
    margin: 0;
    background-color: var(--accent-color);
    border-radius: 10rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 2.4rem;
    color: white;
    margin-right: 2rem;
    width: 2.5rem;
}
.step h2 {
    margin: 0;
    padding: 0;
    color: black;
    font-size: 1.5rem;
    font-weight: 400;
}
.step .step-right-half {
    text-align: left;
}

#contact-form-container {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius-common);
}
#contact-form {
    text-align: left;
}
#contact-form button {
    display: block;
    /* color: white; */
    background-color: var(--accent-color);
    border-width: 0px;
    border-radius: var(--border-radius-common);
    width: 100%;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    color: rgb(255 255 255 / 1);
    /* padding: .5rem; */
    line-height: 3rem;
}
#contact-form h3 {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 1.3rem;
}
#contact-form textarea, #contact-form input {
    width: 100%;
    border: solid 1px grey;
    font-size: 1.2rem;
    border-radius: var(--border-radius-common);
    padding: 1rem;
    box-sizing: border-box;
}
#contact-form textarea {
    /* resize: vertical; */
}
#contact-form h4 {
    text-align: center;
    font-weight: 300;
    margin-top: 0;
}


#footer-container {
    background-color: var(--secondary-color);
}
#footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5rem;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-bottom: 1rem;
    /* padding */

    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(255 255 255 / .8);
}
#footer-info-grid {
    display: grid;
    column-gap: 3rem;
    grid-template-columns: 1fr 1fr 1fr;
}
#footer-info-grid a {
    color: inherit;
}
#footer-language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* grid-template-columns: repeat(auto-fit, minxmax(40%, minmax(100px, 1fr))); */
}
#footer-language-grid p {
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 1rem;
}
#footer svg {
    display: inline-block;
    vertical-align: text-bottom;
    height: 1.5rem;
}
#footer .footer-middle-section-text {
    margin-left: 1rem;
    line-height: 2.5rem;
}
#footer-endtext {
    text-align: center;
    color: rgb(255 255 255 / .5);
    margin-bottom: 0;
}

@media only screen and (max-width: 1400px) {
    #steps-container {
        padding-left: 20%;
        width: 70%;
    }
}
@media only screen and (max-width: 1100px) {
    #footer-info-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 900px) {
    #steps-container {
        padding-left: 10%;
        width: 90%;
    }
}
@media only screen and (max-width: 768px) {
    /* Tablet */
    #steps-container {
        padding-left: 0%;
        width: 99%;
    }

    #service-examples {
        flex-direction: column;
    }
    #service-examples .service-example:nth-of-type(2) {
        transform: translate(0px, 0px);
    }
    .section {
        padding-left: var(--main-content-padding-left-mobile);
        padding-right: var(--main-content-padding-right-mobile);
    }

    .language-tag {
        font-size: 1rem !important;
        line-height: 1.7rem !important;
        height: 1.8rem !important;
    }
    .language-tag-container-smaller > .language-tag {
        font-size: 1rem !important;
        line-height: 1.3rem;
        height: 1.4rem;
    }
}

@media only screen and (max-width: 600px) {
    #hero {
        padding-left: var(--main-content-padding-left-mobile);
        padding-right: var(--main-content-padding-right-mobile);
    }
    #hero > h1 {
        font-size: 2.5rem;
    }
    #hero-message {
        font-size: 1rem !important;
    }
    .language-tag-container {
        gap: .5rem !important;
        margin-bottom: .5rem !important;
    }
    .language-tag > img {
        width: 2rem !important;
        margin-right: 4px !important;
    }

    #footer {
        padding-top: 2rem;
        padding-left: var(--main-content-padding-left-mobile);
        padding-right: var(--main-content-padding-right-mobile);
        font-size: 0.9rem;
    }
    #contact-form-container {
        padding: 0.5rem;
    }
    #contact-form textarea, #contact-form input {
        font-size: 0.9rem;
    }
    #contact-form button {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width: 425px) {
    /* Mobile L */
    .standard-text {
        font-size: 1rem;
        font-weight: 300;
    }
    .headline-text {
        font-size: 1.8rem;
        font-weight: 400;
    }
    .section {
        padding-bottom: 2.5rem;
        padding-top: 2.5rem;
    }
}



