/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --icon-size: 50px;
    --drawer-icon-size: 166px;
    --drawer-font-size: 16px;
    --drawer-width: 432px;
}

.ecosystem_map_group {
    max-width: 1600px;
    margin: 0 auto;
}

.ecosystem_map {
    position: relative;
    background-color: #cff2bc;
    line-height: 0;
    overflow: hidden;
}

.ecosystem_map .pin {
    position: absolute;
    width: var(--icon-size);
    height: var(--icon-size);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.ecosystem_map .pin:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 5;
}

.ecosystem_map .pin img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.ecosystem_map .drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: var(--drawer-width);
    line-height: 1.3;
    transition: all 1s ease;
    box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.75);
    /* transform: translateX( calc( -1 * var(--drawer-width) ) ); */
    transform: translateX( 18px );
}

.ecosystem_map .drawer.active {
    transform: translateX( calc( -1 * var(--drawer-width) ) );
}

.ecosystem_map .drawer .ecosystem_map_drawer_inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ecosystem_map_drawer_inner .color_box {
    flex: 1 1 auto;
}

.ecosystem_map_drawer_inner .color_box .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
}

.ecosystem_map_drawer_inner .color_box .icon img {
    width: var(--drawer-icon-size);
    height: var(--drawer-icon-size);
    display: block;
    line-height: 0;
    object-fit: contain;
}

.ecosystem_map_drawer_inner .color_box .drawer_content {
    padding: 30px 30px;
}

.ecosystem_map_drawer_inner .color_box .drawer_content_title {
    margin-bottom: 20px;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: var(--drawer-font-size);
    line-height: 1.3;
    font-weight: 500;
    color: #fff;
}

.ecosystem_map_drawer_inner .color_box .drawer_content_text {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: var(--drawer-font-size);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
}

.ecosystem_map_drawer_inner .color_box .drawer_content_place_title {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: var(--drawer-font-size);
    font-weight: 500;
    line-height: 1.3;
    font-style: italic;
    color: #fff;
}

.ecosystem_map_drawer_inner .white_box {
    background-color: #fcfcfc;
    flex: 0 0 auto;
    padding: 50px 30px;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: var(--drawer-font-size);
    font-weight: 500;
    line-height: 1.3;
    color: #000;
    /* box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.15); */
}

.ecosystem_map_drawer_inner .white_box strong {
    font-weight: 700;
}

.ecosystem_map_drawer_inner .white_box a {
    color: #000;
}

.ecosystem_map_drawer_inner .white_box a:hover {
    color: #000;
    text-decoration: underline;
}

.ecosystem_map_drawer_inner .close_btn {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    position: absolute;
    top: 12px;
    right: 18px;
    margin: 0;
    padding: 0;
    z-index: 1;
    opacity: .5;
    transition: all .3s ease;
}

.ecosystem_map_drawer_inner .close_btn:hover,
.ecosystem_map_drawer_inner .close_btn:focus {
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
}


/* modaecosystem_map_modall */

.ecosystem_map_modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
}

.ecosystem_map_modal_flex {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.ecosystem_map_modal_content {
    position: relative;
}

.ecosystem_map_modal_close_btn {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    position: absolute;
    top: 12px;
    right: 18px;
    margin: 0;
    padding: 0;
    z-index: 1;
    opacity: .5;
    transition: all .3s ease;
}

.ecosystem_map_modal_close_btn:hover,
.ecosystem_map_modal_close_btn:focus {
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
}

.ecosystem_map_modal_inner {
    display: flex;
    /* display: none; */
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--drawer-width);
}

.ecosystem_map_modal_content {
    width: 100%;
    max-width: var(--drawer-width);
    transform: translate(0);
}

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

	:root {
    	--drawer-icon-size: 100px;
	}

	.ecosystem_map_drawer_inner .white_box {
    	padding: 30px 30px;
	}
}


@media only screen and (max-width : 1459px) {
    .ecosystem_map .drawer {
        display: none;
    }

    body.no-scroll {
        overflow-y: scroll;
    }
}

@media only screen and (min-width : 1460px) {
    .ecosystem_map_modal {
        display: none !important;
    }

    body.no-scroll {
        overflow-y: auto;
    }
}

@media only screen and (max-width : 1199px) {
    :root {
        --icon-size: 40px;
    }
}

@media only screen and (max-width : 1023px) {
    :root {
        --icon-size: 30px;
    }
}

@media only screen and (max-width : 767px) {
    :root {
        --icon-size: 30px;
    }

    .ecosystem_map_drawer_inner .color_box .icon {
        padding-top: 35px;
    }

    .ecosystem_map_drawer_inner .color_box .drawer_content {
        padding: 20px;
    }

    .ecosystem_map_drawer_inner .white_box {
        padding: 20px;
    }
}

@media only screen and (max-width : 424px) {
    :root {
        --drawer-icon-size: 100px;
        --drawer-font-size: 14px;
    }
}

/* ecosystem_map_legend */

.ecosystem_map_legend {
    /* -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 60px;
    -moz-column-gap: 60px;
    column-gap: 60px; */
    padding: 20px;
    background-color: #f0f0f0;
    display: flex;
    flex-wrap: wrap;
}

.ecosystem_map_legend_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* break-inside: avoid-column;
    page-break-inside: avoid;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0; */
    flex: 0 0 33.333%;
}

.ecosystem_map_legend_item img {
    flex: 0 0 var(--icon-size);
    margin-right: 18px;
    width: var(--icon-size);
    height: var(--icon-size);
    display: block;
    line-height: 0;
}

.ecosystem_map_legend_item span {
    flex: 0 0 calc( 100% - var(--icon-size) - 18px );
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: var(--drawer-font-size);
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}

@media only screen and (max-width : 1024px) {
    .ecosystem_map_legend_item {
        flex: 0 0 100%;
    }
}

