@charset "UTF-8";

/*
----------------------------------------
エッコの歴史
----------------------------------------
*/

.history-content .inner {
    max-width: 1240px;
}

.with_enbig.ttl-01 {
    margin: 21.5rem 0 3.7rem;
    position: relative;
}

.ttl-01::before {
    position: absolute;
    content: '';
    width: 53.9rem;
    height: 35rem;
    top: -16.8rem;
    left: calc(50% + 0.5rem);
    transform: translate(-50%);
    background: url(../img/history/ttl-img.png) center/cover no-repeat;
}

.enbig {
    font-size: 24rem;
    letter-spacing: .04em;
}

.ttl-01 h2 {
    margin: -5.2rem 0 0 2rem;
}

.ttl-01 h2 span {
    font-size: 4.0rem;
    color: #222;
    font-weight: 700;
    position: relative;
    text-align: center;
    letter-spacing: .04em;
    padding: 0 5.2rem;
}

.ttl-01 h2 span::before,
.ttl-01 h2 span::after {
    position: absolute;
    content: '';
    width: 3.7rem;
    height: 6.2rem;
    top: 0.5rem;
    background: url(../img/history/ttl-line.png) center/cover no-repeat;
}

.ttl-01 h2 span::before {
    left: -1.2rem;
    transform: scale(-1,1);
}

.ttl-01 h2 span::after {
    right: 0;
}

@media screen and ( max-width: 750px ) {
    .with_enbig.ttl-01 {
        margin: 130px 0 30px;
    }

    .ttl-01::before {
        width: 270px;
        height: 175px;
        top: -135px;
        left: 50%;
    }

    .enbig {
        font-size: 70px;
    }

    .with_enbig.ttl-01 .jp {
        margin: -25px 0 0 0;
        padding: 0;
    }

    .ttl-01 h2 span {
        font-size: 24px;
        padding: 0 25px;
    }

    .ttl-01 h2 span::before,
    .ttl-01 h2 span::after {
        width: 19px;
        height: 31px;
        top: 5px;
    }

    .ttl-01 h2 span::before {
        left: -1.2rem;
    }
}

/* history-tree */
.history-tree {
    padding: 7.9rem 2rem 15.2rem;
    position: relative;
}

.history-tree::before {
    content: "";
    width: 2.3rem;
    height: 2.3rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 50%;
    border-width: 0.6rem;
    border-style: solid;
    border-color: #e74921;
    box-sizing: border-box;
    z-index: 1;
}


.history-tree__row {
    display: flex;
    position: relative;
    margin-left: 0.4rem;
    position: relative;
}

.history-tree__row::after,
.history-tree__row:first-child::before {
    content: "";
    height: 14.2rem;
    display: block;
    position: absolute;
    top: calc(50% + 0.6rem);
    left: calc(50% - 0.15rem);
    transform: translateX(-50%);

    --circle-size: 0.6rem;
    --gap: 1.2rem;
    --color: #222222;
    width: fit-content;
    background: 
    repeating-radial-gradient(
        circle at center,
        var(--color) 0,
        var(--color) calc(var(--circle-size) / 2),
        transparent calc(var(--circle-size) / 2),
        transparent calc(var(--circle-size) + var(--gap))
    );
    background-size: calc(var(--circle-size) + var(--gap)) calc(var(--circle-size) + var(--gap));
    background-position: calc(var(--circle-size) / 2) calc(var(--circle-size) / 2);
    padding: 0 1.2rem;
}

.history-tree__row:nth-child(2n) {
    flex-direction: row-reverse;
    margin-right: -0.3rem;
}

.history-tree__row:nth-child(2n)::after {
    left: calc(50% - 0.3rem);
}

.history-tree__row:first-child::before {
    top: -5.3rem;
}

.history-tree__row:last-child::after {
    height: 22rem;
}

@media screen and ( max-width: 1200px ) {
    .history-tree__row {
        margin-left: 0;
    }

    .history-tree__row:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and ( max-width: 960px ) {
    .history-tree__row::after,
    .history-tree__row:first-child::before {
        left: 50%;
    }

    .history-tree__row:nth-child(2n)::after {
        left: 50%;
    }
}

@media screen and ( max-width: 750px ) {
    .history-tree {
        padding: 87px 20px 50px;
    }

    .history-tree::before {
        width: 20px;
        height: 20px;
        top: -3px;
    }

    .history-tree__row {
        margin: 0 0 75px 0 !important;
    }

    .history-tree__row::after,
    .history-tree__row:first-child::before {
        height: 60px;
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translate(-50%,100%);
        --circle-size: 6px;
        --gap: 12px;
        padding: 0 12px;
    }

    .history-tree__row:first-child::before {
        top: -12px;
        bottom: auto;
        transform: translate(-50%,-100%);
    }

    .history-tree__row:last-child::after {
        height: 110px;
    }
}


/* 沿線 */
.history-tree-item {
    width: 100%;
    max-width: 48rem;
    display: block;
    padding: 5.2rem 2.4rem 3.0rem;
    background: #ffffff;
    border: 0.7rem solid #fafafa;
    border-radius: 2rem;
    box-shadow: 0 0.2rem 0 0 rgba(0, 0, 0, 0.05);
    position: relative;
}

.history-tree-item::before {
    content: "";
    width: 11.1rem;
    height: auto;
    aspect-ratio: 111 / 29;
    position: absolute;
    top: calc(50% - 1.2rem);
    transform: translateY(-50%);
    background: url(../img/history/tree-line.png) center/cover no-repeat;
}

.history-tree-item::after {
    content: "";
    width: 2.3rem;
    height: auto;
    aspect-ratio: 1;
    position: absolute;
    top: calc(50% - 0.9rem);
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    border-width: 0.6rem;
    border-style: solid;
    box-sizing: border-box;
    z-index: 1;
}


/* 左右 切り替わり */
.history-tree__row:nth-child( 2n - 1 ) .history-tree-item::before {
    right: -10.3rem;
}

.history-tree__row:nth-child( 2n - 1 ) .history-tree-item::after {
    right: -13.5rem;
}

.history-tree__row:nth-child( 2n ) .history-tree-item::before {
    top: calc(50% - 1.9rem);
    left: -10.8rem;
}

.history-tree__row:nth-child( 2n ) .history-tree-item::after {
    left: -14rem;
}


/* 左右 切り替わり　丸付き棒線 */
.history-tree__row:nth-child( 5n - 4 ) .history-tree-item::after {
    border-color: #f98b2b;
}

.history-tree__row:nth-child( 5n - 3 ) .history-tree-item::before {
    filter: brightness(0) saturate(100%) invert(50%) sepia(64%) saturate(506%) hue-rotate(87deg) brightness(90%) contrast(88%);
}
.history-tree__row:nth-child( 5n - 3 ) .history-tree-item::after {
    border-color: #29a251;
}

.history-tree__row:nth-child( 5n - 2 ) .history-tree-item::before {
    filter: brightness(0) saturate(100%) invert(34%) sepia(93%) saturate(774%) hue-rotate(135deg) brightness(93%) contrast(85%);
}
.history-tree__row:nth-child( 5n - 2 ) .history-tree-item::after {
    border-color: #13897b;
}

.history-tree__row:nth-child( 5n - 1 ) .history-tree-item::before {
    filter: brightness(0) saturate(100%) invert(51%) sepia(93%) saturate(5555%) hue-rotate(181deg) brightness(99%) contrast(89%);
}
.history-tree__row:nth-child( 5n - 1 ) .history-tree-item::after {
    border-color: #0e89cd;
}

.history-tree__row:nth-child( 5n ) .history-tree-item::before {
    filter: brightness(0) saturate(100%) invert(37%) sepia(26%) saturate(5944%) hue-rotate(350deg) brightness(94%) contrast(92%);
}
.history-tree__row:nth-child( 5n ) .history-tree-item::after {
    border-color: #e74921;
}

/* 年月 */
.history-tree-item__num {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: baseline;
    position: absolute;
    top: -5.7rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', sans-serif;
    color: #e74921;
}

.history-tree-item__num-year {
    font-size: 5.8rem;
}

.history-tree-item__num-month {
    font-size: 4rem;
}

.history-tree-item__ttl {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: calc( 36 / 22 );
    letter-spacing: 0;
    text-align: center;
}

.history-tree-item__ttl--orange {
    color: #e74921;
}

.history-tree-item__ttl--orange .num {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: .06em;
}

.history-tree-item__txt {
    margin-top: 1.2rem;
    padding: 0 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 2;
    color: #444444;
}

@media screen and ( max-width: 1240px ) {
    .history-tree-item {
        max-width: 38.71vw;
    }

    .history-tree-item::before {
        width: 8.95vw;
    }

    .history-tree-item::after {
        width: 1.85vw;
    }

    .history-tree__row:nth-child( 2n - 1 ) .history-tree-item::before {
        right: calc(2rem - 10.3vw);
    }

    .history-tree__row:nth-child( 2n - 1 ) .history-tree-item::after {
        right: calc(2rem - 12.6vw);
    }

    .history-tree__row:nth-child( 2n ) .history-tree-item::before {
        left: calc(2rem - 10.3vw);
    }

    .history-tree__row:nth-child( 2n ) .history-tree-item::after {
        left:calc(2rem - 12.9vw);
    }

}
@media screen and ( max-width: 960px ) {
    .history-tree-item {
        padding: 5.2rem 1.5rem 3.0rem;
    }

    .history-tree__row:nth-child( 2n - 1 ) .history-tree-item::after {
        right: calc(2rem - 12.9vw);
    }
}

@media screen and ( max-width: 750px ) {
    .history-tree-item {
        max-width: 100%;
        padding: 35px 15px 20px;
        border-radius: 25px 0 25px 0;
    }

    .history-tree-item::before,
    .history-tree-item::after {
        content: none;
    }

    .history-tree-item__num-year {
        max-width: 128px;
    }

    .history-tree-item__ttl {
        font-size: 18px;
    }

    .history-tree-item__txt {
        margin-top: 14px;
        padding: 0 5px;
        font-size: 15px;
        line-height: calc( 46 / 28 );
    }
}


/* 年月 2008 */
.history-tree-2008 {
    margin-bottom: 4.5rem;
}

@media screen and ( max-width: 750px ) {
    .history-tree-2008 .history-tree-item__ttl::after {
        content: "";
        display: inline-block;
        width: 92px;
        height: 68px;
        background: url( ../img/history/watch-image.png ) center / cover no-repeat;
        position: absolute;
        top: -84px;
        right: 1px;
    }
}


/* 年月 2012 */
.history-tree-2012 {
    margin-bottom: 2.5rem;
}

.history-tree-2012::before {
    content: "";
    display: inline-block;
    width: 18.4rem;
    height: 13.5rem;
    background: url( ../img/history/watch-image.png ) center / cover no-repeat;
    position: absolute;
    top: -19.7rem;
    right: 14.8rem;
}

@media screen and ( max-width: 750px ) {
    .history-tree-2012::before {
        content: none;
    }
}


/* 年月 2014 */
.history-tree-2014 {
    margin-bottom: 2.5rem;
}

.history-tree-2014 .history-tree-item {
    padding: 5.0rem 2.4rem 3.4rem;
}

.history-tree-2014 .history-tree-item__txt {
    margin-top: 1.1rem;
}

@media screen and ( max-width: 750px ) {
    .history-tree-2014 .history-tree-item {
        padding: 35px 25px 20px;
    }

    .history-tree-2014 .history-tree-item__txt {
        margin-top: 14px;
    }
}


/* 年月 2015 */
.history-tree-2015 {
    margin-bottom: 2.5rem;
}


/* 年月 2019 */
.history-tree-2019 {
    margin-bottom: 2.6rem;
}


/* 年月 2020 */
.history-tree-2020 {
    margin-bottom: 2.6rem;
}


/* 年月 2021 */
.history-tree-2021 {
    margin-bottom: 3rem;
}


/* 年月 2022 */
.history-tree-2022-01 {
    margin-bottom: 1rem;
}

.history-tree-2022-01 .history-tree-item {
    padding: 5.3rem 2.4rem 3.3rem;
}

.history-tree-2022-01 .history-tree-item__ttl {
    line-height: calc(32/22);
}

.history-tree-2022-01 .history-tree-item__txt {
    margin-top: 1.7rem;
}

.history-tree-2022-01::before {
    content: "";
    display: inline-block;
    width: 22.5rem;
    height: 18.4rem;
    background: url( ../img/history/pc-image.png ) center / cover no-repeat;
    position: absolute;
    bottom: -23.8rem;
    right: 12.7rem;
}

@media screen and ( max-width: 960px ) {
    .history-tree-2021 {
        margin-bottom: 1rem;
    }
}
@media screen and ( max-width: 750px ) {
    .history-tree-2022-01 .history-tree-item {
        padding: 35px 25px 20px;
    }

    .history-tree-2022-01 .history-tree-item_txt {
        margin-top: 14px;
    }

    .history-tree-2022-01::before {
        content: none;
    }

    .history-tree-2022-02::before {
        content: "";
        display: inline-block;
        width: calc( 225px / 2 );
        height: calc( 184px / 2 );
        background: url( ../img/history/pc-image.png ) center / cover no-repeat;
        position: absolute;
        bottom: -75px;
        left: -15px;
        z-index: 1;
    }
}


/* our-vision */
.history-our-vision {
    padding: 0 20px;
    text-align: center;
}

.history-our-vision__picture {
    max-width: 1000px;
    margin: 0 auto 6rem; 
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 0 0.4rem #fff inset;
    line-height: 0;
}

.history-our-vision__picture::after {
    content: "";
    display: inline-block;
    width: 32.7rem;
    height: 13rem;
    background: url( ../img/history/our_vision-happy.png ) center / cover no-repeat;
    position: absolute;
    bottom: -5rem;
    right: -9.5rem;
}

.history-our-vision__picture img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 2rem;
    z-index: -1;
}

.history-our-vision__ttl--ja {
    padding: 1.4rem 4.7rem 3.2rem;
    display: inline-block;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: calc(46/24);
    color: #e74921;
    background: url( ../img/history/history-frame.png ) center / cover no-repeat;
}

.history-our-vision__ttl--en {
    display: block;
    margin: 0.1rem auto 2.4rem;
    width: fit-content;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 7.2rem;
    letter-spacing: 0.06em;
    line-height: calc(100/72);
    position: relative;
}

.history-our-vision__ttl--en::before {
    content: "";
    display: inline-block;
    width: 12.8rem;
    height: 8.9rem;
    background: url( ../img/history/pencil.png ) center / cover no-repeat;
    position: absolute;
    top: -5.9rem;
    left: -7.7rem;
}

.history-our-vision__txt {
    font-weight: 500;
    font-size: 2.1rem;
    letter-spacing: 0;
    line-height: 2;
}

@media screen and ( max-width: 1200px ) {
    .history-our-vision__picture::after {
        right: -1.9rem;
    }
}

@media screen and ( min-width: 961px ) {
    .history-our-vision__txt br.tb {
        display: none;
    }
}

@media screen and ( max-width: 750px ) {
    .history-our-vision__picture {
        margin-bottom: 14px;
    }

    .history-our-vision__picture {
        margin: 0 auto 35px; 
        border-radius: 15px;
        box-shadow: 0 0 0 2px #fff inset;
    }

    .history-our-vision__picture::after {
        width: 164px;
        height: 65px;
        bottom: -25px;
        right: -10px;
    }

    .history-our-vision__picture img {
        border-radius: 15px;
    }

    .history-our-vision__ttl--ja {
        font-size: 16px;
        line-height: 1.8;
        background-size: contain;
        padding: 8px 30px 20px;
    }

    .history-our-vision__ttl--en {
        font-size: 50px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .history-our-vision__ttl--en::before {
        width: 64px;
        height: 45px;
        top: -30px;
        left: -25px;
    }

    .history-our-vision__txt {
        font-size: 16px;
        text-align: left;
    }
    
    .history-our-vision__txt br.tb {
        display: none;
    }
}
