:root {
    --sec-width: 1500px;
    --border-radius: 8px;
    --back-color: white;
    --sec-color: gray;
    --text-color: black;
    --footer-color: white;
    --footer-back: #3b6e8f;
    --color-but1: white;
    --color-but2: #e31937;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    background: var(--back-color);

    line-height: 150%;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;

    font-weight: bold;
    font-size: 29px;
    color: white;

    width: fit-content;

    border: white 0 solid;
    border-radius: 50px;

    padding: 5px 20px 5px 20px;
}

button:active {
    outline: black solid 1px;
}

.top_arrow {
    position: absolute;

    right: 50%;
    transform: translateX(50%);

    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;

    border-top: 30px solid var(--footer-back);
}

.top_bar {
    width: 900px;

    position: absolute;

    border-top: #f6f6f6 4px solid;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 125px;
}

.header img {
    height: 90%;
}

.header a {
    cursor: pointer;
    height: 90%;
}

.content {
    /*width: 1500px;*/
}

.upper_section {
    display: flex;
    justify-content: center;

    height: fit-content;

    background: url("images/upper-image.webp") no-repeat;
    background-size: cover;

    color: white;
}

.top_image {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 320px;
}

.upper_section .man_left {
    height: 500px;
    margin-right: 15px;
    margin-top: 15px;
}

.upper_section .right_section {
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: center;

    width: 550px;
}

.upper_section .right_section h1 {
    line-height: 35px;
    font-size: 2rem;
    padding-bottom: 20px;
}

.upper_section button {
    margin-top: 35px;

    background-color: var(--color-but1);
    color: var(--footer-back);
}

.middle_section {
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.middle_section .column {
    margin-top: 40px;
    margin-bottom: 40px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    width: 1050px;
}

.middle_section .bottom.column {
    column-gap: 0;
}

.middle_section .top .text_peace {
    width: 220px;
}

.middle_section .top .text_peace:nth-child(3) {
    width: 250px;
}

.middle_section .bottom {
    justify-content: space-around;
}

.middle_section .bottom .text_peace {
    width: 260px;
}

.middle_section .bottom .text_peace:nth-child(1) {
    margin-left: 100px;
}

.middle_section .bottom .text_peace:nth-child(2) {
    margin-right: 50px;
    width: 250px;
}

.middle_section .text_peace h2 {
    color: var(--color-but2);
}

.middle_section .example_diagram img {
    width: 1050px;
}

.lower_section {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 50px;
}

.lower_section .upper_part {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 50px;

    width: 95%;

    margin-top: 75px;
}

.lower_section .upper_part .right img {
    width: 250px;
}

.lower_section .upper_part .right p {
    width: 500px;
    padding-left: 10px;
}

.lower_section .lower_part {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;

    text-align: center;

}

.lower_section .lower_part p {
    font-style: italic;
    padding-top: 20px;
    width: 500px;
}

.lower_section .lower_part .check_box {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 25px;
    margin-bottom: 25px;
}

.lower_section .lower_part .agree_button {
    margin-top: 15px;

    background: var(--color-but2);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;

    padding-right: 50px;
    padding-left: 50px;

    background-color: var(--footer-back);
    color: var(--footer-color);

    height: 90px;
}

.footer .right_logo {
    display: flex;
    align-items: center;

    height: 100%;
}

.footer .right_logo img {
    height: 60%;
}

@media screen and (max-width: 1100px) {
    .upper_section {
        padding: 0 20px;
    }

    .upper_section button {
        margin-top: 20px;
    }

    .upper_section .right_section {
        width: 100%;
    }

    .middle_section {
        width: 100%;
        padding: 20px;
    }

    .middle_section .column {
        flex-wrap: wrap;
        column-gap: 190px;
        width: 100%;
    }

    .middle_section .top .text_peace:nth-child(1) {
        width: 210px;
    }

    .middle_section .top .text_peace:nth-child(2) {
        width: 250px;
    }

    .middle_section .top .text_peace:nth-child(3) {
        width: 220px;
        margin: 20px auto 0;
    }

    .top_bar {
        width: 100%;
    }

    .middle_section .example_diagram img {
        width: 100%;
    }

    .middle_section .bottom .text_peace:nth-child(1) {
        margin: 0;
        width: 288px;
    }

    .middle_section .bottom .text_peace:nth-child(2) {
        margin: 0;
        width: 250px
    }

    .lower_section .upper_part {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .lower_section .upper_part .right {
        display: flex;
        flex-direction: column;
        align-items: center;

        margin-top: 50px;
    }

    .lower_section .upper_part .right p {
        margin-top: 10px;
        width: 95%;
        text-align: center;
    }

    .lower_section .upper_part .right img {
        margin-right: auto;
        margin-left: auto;
    }

    .lower_section .upper_part .left {
        width: 90%;
    }

}

@media screen and (max-width: 800px) {
    .upper_section .man_left {
        display: none;
    }

    .upper_section {
        padding: 50px 20px;
    }

    .middle_section {
        font-size: 0.8rem;
    }

    .middle_section .top .text_peace:nth-child(1) {
        width: 169px;
    }

    .middle_section .top .text_peace:nth-child(2) {
        width: 200px;
    }

    .middle_section .top .text_peace:nth-child(3) {
        width: 176px;
    }

    .middle_section .bottom .text_peace:nth-child(1) {
        width: 220px;
    }

    .middle_section .bottom .text_peace:nth-child(2) {
        width: 187px;
    }

    .middle_section .column {
        column-gap: 120px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .lower_section .upper_part .right p {
        font-size: 1rem;
    }

    .lower_section .lower_part p {
        font-size: 0.8rem;
    }

    .footer {
        flex-direction: column;
    }

    .footer .copyright {
        padding-top: 15px;
        font-size: 1rem;
    }
    .footer .right_logo {
        width: 400px;
        justify-content: center;
    }

    .footer .right_logo img {
        width: 90%;
        height: auto;
    }
}

@media screen and (max-width: 600px) {
    .header a {
        width: 90%;
        height: auto;
    }

    .upper_section {
        padding-right: 10px;
        padding-left: 10px;
    }

    .lower_section .lower_part p {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media screen and (max-width: 530px) {
    .middle_section .column {
        column-gap: 0;
    }
    .footer .copyright {
        font-size: 1rem;
    }
}

@media screen and (max-width: 450px) {
    .text_peace {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .middle_section  .top.column{
        margin-bottom: 0;
    }

    .middle_section .bottom.column {
        margin-top: 0;
    }

    .example_diagram {
        display: none;
    }

    .example_diagram_gone {
        display: block !important;
        margin-top: 15px;
    }

    .footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer .right_logo {
        width: 100%;
    }
}