@charset "UTF-8";

html {
    font-size: 62.5%;
}

body {
    overflow: visible;
}

.hs-w {
    width: 100%;
}

@media screen and (min-width: 1000px) {
    .hs-w {
        width: 50%;
    }
}

/* sec01 */
.container01 {
    width: 100%;
    height: 45vw;
    position: relative;
    background-image: url("../images/idea/06_MV.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

/* sec02 */

#sec02 {
    padding-bottom: 20%;

    h2.headline {
        max-width: 1100px;
        margin: 0 auto;
        text-align: center;
        font-size: 2rem;
        padding-block: 12px;
        background-color: var(--color-main);
        color: #fff;
        border-radius: 100vh;
        margin-bottom: 60px;
        ;
    }
}

.history__wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.history__item {
    display: block;
    position: relative;

    &:last-of-type {
        &>.image__wrapper{
            position: static;
            width: 100%;
            text-align: center;
        }
    }
}

.history__item__year {
    padding-right: 24px;
    flex-shrink: 0;
}

.history__item__year h3 {
    color: var(--color-main);
    font-size: 3.8rem;
    font-weight: 700;
}

.history__item__content {
    flex: 1 1 auto;
    padding-top: 1.6rem;
}

.history__item__content__wrapper {
    display: flex;
    column-gap: 16px;
    padding-left: 16px;
    padding-bottom: 32px;
    align-items: baseline;
    position: relative;
    flex-direction: column;
}

.history__item__content__wrapper::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-main);
    position: absolute;
    top: 4px;
    left: -9px;
}

.history__item__content__wrapper.__s::before {
    width: 16px;
    height: 16px;
    left: -7px;
}

.history__item__content__wrapper.__sg::before {
    background-color: #8cbc94;
}

.history__item__content__wrapper::after {
    position: absolute;
    content: "";
    display: block;
    width: 2px;
    height: 100%;
    background-color: var(--color-main);
    top: 8px;
    left: 0;
    z-index: -1;
}

.history__item__content__wrapper.__pt::after {
    top: -12px;
    height: 200%
}


.history__item__content__year {
    flex-shrink: 0;
    margin-left: 8px;
}

.history__item__content__year>.headline {
    background-color: var(--color-main);
    color: #fff;
    border-radius: 100vh;
    font-size: 1.4rem;
    width: 140px;
    text-align: center;
}

.history__item__content__year>.headline {
    background-color: var(--color-main);
    color: #fff;
    border-radius: 100vh;
    font-size: 1.4rem;
    width: 140px;
    text-align: center;
}

.history__item__content__text {
    font-size: 1.6rem;
    width: 100%;
    flex: 1 1 100%;
    position: relative;
}

.history__item__content__text>.text {
    margin-bottom: 1rem;
}

.history__item__content__text>.image__wrapper {
    display: block;
    margin-top: 16px;

    & img {
        /* display: block; */
        width: 100%;
        margin-top: 16px;
    }
}

.history__item {
    & .__01 {
        position:relative;
        bottom: 0;
    }
    & .__02 {
        display: block;
    }

    & .__03 {
        display: block;
    }

    & .__04 {
        display: block;
    }

    & .__05 {
        display: block;

        & img {
            width: 100%;
        }
    }

    & .__246 {
        max-width: 246px;
    }

    & .__252 {
        max-width: 252px;
    }

    & .__255 {
        max-width: 255px;
    }

    & .__275 {
        max-width: 275px;
    }

    & .__355 {
        max-width: 355px;
    }
}

#sec02 .contents:nth-child(2) {
    /* margin-top: min(3vw, 60px); */
    padding-bottom: 12%;
}

#sec02 .contents div p {
    line-height: 1.5;
    /* padding: 4.4vw 0; */
}




/* pc */
@media screen and (min-width: 999.8px) {
    h2 {
        font-size: 3.5rem;
    }

    /* sec01 */
    .container01 {
        width: 100%;
        height: 27vw;
        position: relative;
        background-image: url("../images/idea/06_MV.jpg");
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
    }

    /* sec02 */
    #sec02 {
        padding-bottom: 0;
    }

    #sec02 .contents {
        margin-top: 0;
        padding-bottom: 0;
    }

    #sec02 h2.headline {
        font-size: 2.4rem;
        padding-block: 16px;
    }
    
    .history__item__content__wrapper {
        flex-direction: row;
    }    

    .history__item__content__text>.image__wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
        margin-top: 16px;
        width: fit-content;
    
        /* & img {
            width: 100%;
        } */
    }
    
    .history__item__content__text {
        flex-basis: auto;
    }
    
    .history__item {
        & .__01 {
            position:relative;
            bottom: max(-136px, -10vw);
        }
    
        & .__02 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            margin-bottom: -50%;
            column-gap: 16px;
            height: 40px;
    
            & .image__wrapper {
                display: block;
                position: relative;
                top: max(-405px, -25vw);

                & img {
                    width: min(21.3vw, 275px);
                }
            }
        }
    
        & .__03 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            height: 80px;
            column-gap: 16px;
    
            & .image__wrapper {
                display: block;
                position: relative;
                top: -50%;
                margin-top: 0;
            }
        }
    
        & .__04 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            height: 40px;
            column-gap: 16px;
    
            & .image__wrapper {
                display: block;
                position: relative;
                top: -55.5%;
                margin-top: 0;
            }
        }
    
        & .__05 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            column-gap: 16px;
            height: max(80px, 3vw);
    
            & .image__wrapper {
                display: block;
                position: relative;
                top: max(-300px, -15vw);
                margin-top: 0;
                text-align: right;
                z-index:-1;
    
                &>img{
                    width: min(19.3vw, 252px);
                    /* width: 100%; */
                }
            }
        }
    }
}

@media screen and (min-width: 1000px) {
    
    .history__item {
    
        &:last-of-type {
            &>.image__wrapper{
                display: inline-block;
                position: relative;
                margin-top: 16px;
            }
        }
    }
}

@media screen and (min-width: 1200px) {
    .history__item {
        position: relative;
    
        &:last-of-type {
            &>.image__wrapper{
                display: inline-block;
                position: absolute;
                bottom: 0;
                right: 0;
                width: auto;
                z-index: -1;
                
                & > img {
                    width:clamp(180px, 18.96vw, 364px)
                }
            }
        }
    }    
}
