/* ---------- Index gradient ---------- */

.index_gradient {
    position: absolute;
    z-index: -1;
    top: -400px;
    left: calc(50% - 400px);
    width: 800px;
    height: 800px;
    background: rgb(245,245,247);
    background: radial-gradient(circle, rgba(245,245,247,1) 30%, rgba(41,151,255,0.2) 50%, rgba(245,245,247,1) 70%);
}

/* ---------- Index logo ---------- */

.index_logo {
    width: 200px;
    margin: 200px calc(50% - 100px) 50px calc(50% - 100px);
    padding: 0;
}

.index_logo1 {
    fill: var(--p-black);
}

.index_logo2 {
    fill: var(--p-black);
}

.index_logo3 {
    fill: none;
    stroke: var(--p-black);
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 2px;
}

/* ---------- Index text ---------- */

.index_text {
    width: 400px;
    margin: 0 calc(50% - 200px);
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-medium);
    text-align: center;
    line-height: 32px;
}

/* ---------- Index button ---------- */

.index_div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1024px;
    margin: 50px calc(50% - 512px) 0 calc(50% - 512px);
    padding: 0;
}

.index_button {
    margin: 0;
    padding: 12px;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
    background-color: var(--p-blue);
    border: none;
    outline: solid 2px var(--p-blue);
    outline-offset: -2px;
    border-radius: 15px;
    transition-duration: 200ms;
    cursor: pointer;
}

.index_button:hover {
    background-color: var(--p-light-blue);
}

/* ---------- Index text ---------- */

.index_title {
    width: 924px;
    margin: 0 calc(50% - 462px);
    padding: 100px 0 0 0;
    color: var(--p-black);
    font-family: order;
    font-size: var(--p-extra-large);
}

/* ---------- Container ---------- */

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1024px;
    margin: 50px calc(50% - 512px) 0 calc(50% - 512px);
    padding: 0;
}

.container_text {
    width: 400px;
    margin: 0;
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-light);
    text-align: center;
    line-height: 32px;
}

.container_img {
    width: 400px;
    height: 400px;
    margin: 0;
    padding: 0;
}

/* ---------- Box ---------- */

.box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 1024px;
    margin: 150px calc(50% - 512px);
    padding: 0;
}

.box_div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 225px;
    height: 225px;
    margin: 0 calc(50% - 112.5px);
    padding: 0;
    border-radius: 30px;
    outline: solid 2px var(--p-blue);
    background-color: var(--p-light-blue);
}

.box_text {
    width: calc(100% - 56px);
    margin: 0 28px;
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
    text-align: center;
}

.box_text_bold {
    font-size: var(--p-light);
    font-weight: bold;
}

.box_text_max {
    width: calc(100% - 50px);
    margin: 0 25px;
    padding: 0;
    color: var(--p-black);
    font-family: order;
    font-size: var(--p-extra-large);
    text-align: center;
}

.box_svg {
    width: 72px;
    margin: 0;
    padding: 0;
    fill: var(--p-black);
}

/* ---------- Text separator ---------- */

.text_separator {
    width: 500px;
    margin: 150px calc(50% - 250px) 50px calc(50% - 250px);
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-light);
    text-align: center;
    line-height: 32px;
}

/* ---------- Slide ---------- */

.slide {
    position: relative;
    overflow: hidden;
    width: 1024px;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 50px calc(50% - 512px) 0 calc(50% - 512px);
}

.slide_div {
    display: block;
    width: 1024px;
    aspect-ratio: 135 / 76;
    margin: 0;
    padding: 0;
    position: absolute;
    border-radius: 30px;
    transition: transform 750ms ease-in-out, opacity 750ms ease-in-out;
}

.slide_div1 {
    background-image: url("../../../source/assets/images/slide/slide5.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(1040px);
    opacity: 0.5;
}

.slide_div2 {
    background-image: url("../../../source/assets/images/slide/slide1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(0px);
    opacity: 1;
}

.slide_div3 {
    background-image: url("../../../source/assets/images/slide/slide2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-1040px);
    opacity: 0.5;
}

.slide_div4 {
    background-image: url("../../../source/assets/images/slide/slide3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-2080px);
    opacity: 0;
}

.slide_div5 {
    background-image: url("../../../source/assets/images/slide/slide4.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(2080px);
    opacity: 0;
}

.slide_controls {
    display: flex;
    justify-content: space-between;
    width: 176px;
    height: 48px;
    margin: 16px calc(50% - 88px) 150px calc(50% - 88px);
}

.slide_button {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    border-radius: 500px;
    background-color: var(--p-light-grey);
    cursor: pointer;
}

.slide_svg {
    width: 40px;
    height: 40px;
    margin: 4px;
    padding: 0;
    fill: var(--p-black);
    border-radius: 500px;
}

.slide_svg_right {
    position: relative;
    left: 2px;
}

/* ---------- Index message ---------- */

.message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
    margin: 150px calc(50% - 230px) 50px calc(50% - 230px);
    padding: 30px 30px 0 30px;
    background-color: var(--p-blue);
    border-radius: 30px;
}

.message_text {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--p-white);
    font-family: order;
    font-size: var(--p-medium);
    text-align: center;
    line-height: 48px;
}

.message_text_color {
    display: inline-block;
    color: var(--p-black);
}

.message_quote_start {
    transform: rotate(-25deg) scale(2);
}

.message_quote_end {
    transform: rotate(25deg) scale(2);
}

.message_text_underline {
    text-decoration: underline var(--p-black) 5px;
}

.message_img {
    width: 160px;
    margin: -25px 0 0 0;
    padding: 0;
}

/* ---------- Index contact ---------- */

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 50px);
    height: 100vh;
    max-height: 1280px;
    min-height: 800px;
    margin: 50px 25px 0 25px;
    padding: 0;
    background-image: url("../../../source/assets/images/circle.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
}

.contact_title {
    width: 350px;
    margin: 0 calc(50% - 175px);
    padding: 0;
    color: var(--p-black);
    font-family: order;
    font-size: var(--p-medium);
}

.contact_sub_title {
    width: 350px;
    margin: 10px calc(50% - 175px) 0 calc(50% - 175px);
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
}

.contact_div {
    width: 300px;
    margin: 10px calc(50% - 175px) 0 calc(50% - 175px);
    padding: 25px;
    background-color: rgba(245, 245, 247, 0.5);
    border-radius: 30px;
}

.contact_div_title {
    width: 100%;
    margin: 0 0 10px 0;
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
}

.contact_div_input {
    width: calc(100% - 50px);
    margin: 0;
    padding: 10px 40px 10px 10px;
    border: none;
    border-radius: 15px;
    outline-offset: -2px;
    outline: solid 2px var(--p-white);
    background-color: var(--p-white);
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
    transition-duration: 200ms;
}

.contact_div_input:focus {
    outline: solid 2px var(--p-black);
}

.contact_div_textarea {
    width: calc(100% - 20px);
    height: 150px;
    margin: 0 0 25px 0;
    padding: 10px;
    outline: solid 2px var(--p-white);
    outline-offset: -2px;
    border: none;
    border-radius: 15px;
    background-color: var(--p-white);
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
    resize: none;
    transition-duration: 200ms;
}

.contact_div_textarea:focus {
    outline: solid 2px var(--p-black);
}

.contact_div_button {
    width: 150px;
    height: 40px;
    margin: 0 75px;
    padding: 0;
    outline: solid 2px var(--p-black);
    outline-offset: -2px;
    border-radius: 15px;
    border: none;
    background-color: var(--p-black);
    color: var(--p-white);
    font-family: inter;
    font-size: var(--p-extra-light);
    cursor: pointer;
    transition-duration: 200ms;
}

.contact_div_button:hover {
    color: var(--p-black);
    background-color: var(--p-white);
}

/* ---------- Contact check ---------- */

.check_div {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    margin: 0 0 25px 0;
    padding: 0;
}

.check_box {
    position: absolute;
    width: 24px;
    height: 24px;
    margin: 0 8px 0 0;
    padding: 0;
}

.check_svg {
    display: none;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
}

.check_svg_green {
    fill: var(--p-green);
}

.check_svg_red {
    fill: var(--p-red);
}

#textarea_count {
    position: relative;
    bottom: 25px;
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
    text-align: right;
}

/* ---------- Notice ---------- */

.notice {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 1024px;
    margin: 150px calc(50% - 512px);
    padding: 0;
}

.notice_card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    width: 400px;
    margin: 0;
    padding: 0;
    background-color: var(--p-black);
    border-radius: 30px;
    outline: solid var(--p-blue) 3px;
    outline-offset: -1px;
    transition-duration: 500ms;
}

.notice_card_left:hover {
    filter: drop-shadow(0 10px 12px rgba(0,0,0,0.6));
    transform: rotate(-7deg) translate(10px, -10px) scale(1.1);
}

.notice_card_right:hover {
    filter: drop-shadow(0 10px 12px rgba(0,0,0,0.6));
    transform: rotate(7deg) translate(10px, -10px) scale(1.1);
}

.notice_div {
    width: 225px;
    margin: 25px;
    padding: 0;
}

.notice_star_div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100px;
    margin: 0;
    padding: 0;
}

.notice_star {
    width: 16px;
    margin: 0;
    padding: 0;
    fill: var(--p-yellow);
}

.notice_text {
    width: 100%;
    margin: 10px 0 0 0;
    padding: 0;
    color: var(--p-white);
    font-family: inter;
    font-size: var(--p-extra-light);
    line-height: 24px;
}

.notice_img {
    width: 125px;
    height: 244px;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 30px 30px 0;
}

.notice_img1 {
    background-image: url("../../../source/assets/images/notice1.jpg");
}

.notice_img2 {
    background-image: url("../../../source/assets/images/notice2.jpg");
}

/* ---------- Alert ---------- */

.alert {
    position: fixed;
    z-index: 9;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 300px;
    padding: 10px;
    background-color: var(--p-white);
    border: solid 2px var(--p-white);
    border-radius: 15px;
    transition-property: transform;
    transition-duration: 200ms;
    transform: scale(0);
    transform-origin: bottom right;
}

#alert_success {
    background-image: linear-gradient(
        180deg,
        rgba(0, 219, 91, 0.25) 0%,
        rgba(0, 219, 91, 0.25) 100%
    );
}

#alert_empty {
    background-image: linear-gradient(
        180deg,
        rgba(251, 188, 4, 0.25) 0%,
        rgba(251, 188, 4, 0.25) 100%
    );
}

#alert_error {
    background-image: linear-gradient(
        180deg,
        rgba(255, 0, 0, 0.25) 0%,
        rgba(255, 0, 0, 0.25) 100%
    );
}

.alert_div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    background-color: var(--p-white);
    border-radius: 50%;
}

.alert_svg {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
}

.alert_svg_success {
    fill: var(--p-green);
}

.alert_svg_empty {
    fill: var(--p-yellow);
}

.alert_svg_error {
    fill: var(--p-red);
}

.alert_text {
    width: 250px;
    margin: 0 0 0 10px;
    padding: 0;
    color: var(--p-black);
    font-family: inter;
    font-size: var(--p-extra-light);
}

/* ---------- Resize ---------- */

@media only screen and (max-width: 1148px) {
    .index_gradient {
        left: 0;
        width: 100%;
    }

    .index_title {
        width: calc(90% - 50px);
        margin: 0 5% 0 calc(5% + 50px);
    }

    .index_div {
        width: 90%;
        margin: 50px 5% 0 5%;
    }
    
    .container {
        flex-direction: column;
        justify-content: center;
        width: 90%;
        margin: 50px 5% 0 5%;
    }

    .container_text {
        margin: 0 0 50px 0;
    }

    .box {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        width: 90%;
        margin: 150px 5%;
    }

    .box_div_left {
        margin: 0 0 0 calc(100% - 225px);
    }

    .box_div_right {
        margin: 0 calc(100% - 225px) 0 0;
    }

    .slide {
        position: relative;
        overflow: hidden;
        width: 90%;
        aspect-ratio: 16 / 9;
        margin: 0;
        padding: 50px 5% 0 5%;
    }
    
    .slide_div {
        position: absolute;
        display: block;
        width: 90%;
        aspect-ratio: 135 / 76;
        margin: 0;
        padding: 0;
        border-radius: 30px;
        transition: transform 750ms ease-in-out, opacity 750ms ease-in-out;
    }
    
    .slide_div1 {
        transform: translateX(calc(100% + 16px));
    }
    
    .slide_div2 {
        transform: translateX(0px);
    }
    
    .slide_div3 {
        transform: translateX(calc(-100% - 16px));
    }
    
    .slide_div4 {
        transform: translateX(calc(-200% - 32px));
    }
    
    .slide_div5 {
        transform: translateX(calc(200% + 32px));
    }

    .notice {
        flex-direction: column;
        justify-content: center;
        width: 90%;
        margin: 150px 5%;
    }

    .notice_card_left {
        margin: 0 0 50px 0;
    }

}

@media only screen and (max-width: 778px) {
    .index_text {
        width: 330px;
        margin: 0 calc(50% - 165px);
        font-size: var(--p-light);
    }

    .index_title {
        font-size: var(--p-large);
    }

    .container_text {
        font-size: var(--p-extra-light);
    }

    .text_separator {
        width: 90%;
        margin: 150px 5% 50px 5%;
        font-size: var(--p-extra-light);
    }

    .message_text {
        font-size: var(--p-light);
    }

    .message {
        width: 330px;
        margin: 150px calc(50% - 195px) 50px calc(50% - 195px);
    }

    .contact_title {
        font-size: var(--p-light);
    }
}

@media only screen and (max-width: 600px) {
    .box {
        grid-template-columns: 1fr;
    }

    .box_div_left, .box_div_right {
        margin: 0 calc(50% - 112.5px);
    }

    .notice_card_left:hover {
        filter: none;
        transform: none;
    }
    
    .notice_card_right:hover {
        filter: none;
        transform: none;
    }
}

@media only screen and (max-width: 480px) {
    .index_text {
        width: 90%;
        margin: 0 5%;
    }

    .index_title {
        width: 90%;
        margin: 0 5% 0 5%;
    }

    .container_text {
        width: 100%;
    }

    .container_img {
        width: 100%;
        height: 100%;
    }

    .message {
        width: calc(100% - 60px);
        margin: 150px 15px 50px 15px;
        padding: 15px 15px 0 15px;
    }

    .contact {
        width: calc(100% - 30px);
        margin: 50px 15px 0 15px;
        padding: 0;
    }

    .contact_title, .contact_sub_title {
        width: calc(100% - 30px);
        margin: 0 15px;
    }

    .contact_div {
        width: calc(100% - 30px);
        margin: 10px 0 0 0;
        padding: 15px;
        background-color: rgba(245, 245, 247, 0.5);
        border-radius: 30px;
    }

    .contact_div_button {
        margin: 0 calc(50% - 75px);
    }

    .notice_card {
        width: 100%;
    }

    .notice_div {
        width: calc(70% - 20px);
        margin: 15px 10px;
        padding: 0;
    }

    .notice_img {
        width: calc(30% + 10px);
        /* height: 296px; */
    }

    .alert {
        bottom: 28px;
        right: 13px;
        width: calc(100% - 50px);
    }

    .alert_text {
        width: calc(100% - 40px);
    }
}

@media only screen and (max-width: 425px) {
}

@media only screen and (max-width: 375px) {
}

@media only screen and (max-width: 320px) {
}