:root{
    /* --main-color:green; */
    /*ここからテーマカラー(色をテーマカラー毎に指定する)*/
    --main-color: rgba(101, 153, 19, 1);/*メインカラー*//*黄*/
    --main-color-50: rgba(241, 201, 50, 1);/*メインカラー透明度50*//*黄*/
    /*ここまで色を指定する*/
}

/*共通レイアウト設定*/
input:focus{
    outline: none;
}
img{
    max-width: 200vw;
}
/* 外枠 */
.box{
	width: 80%;
    margin: 5% auto 10% auto;
	/* border: solid 1px black; */
}
/*全体*/
#map-area{
    width:80vw;
    height:auto;
    display: flex;
}

/*------ 左側の詳細表示部分 ------*/
#build-name{
    text-align: center;
    color: var(--black-color);
    font-size: 1.45em;
    padding-bottom: 5px;
}
/* selectここから */
#select-box-list > *{
    display: none;
}
/* 1要素にしか適用しない jsから使用 */
#select-box-list > .select-box{
    display: block;
    text-align: center;
    position: relative;
    padding: 0;
    margin: 0 auto;
}
/* 三角形 */
.select-box::after{
    width: 0;
    height: 0;
    border-left: 0.32em solid transparent;
    border-right: 0.32em solid transparent;
    border-top: 0.45em solid var(--main-color);
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    content: "";
    z-index: 98;
    pointer-events: none;
}
.floor-select{
    width:100%;
    height:100%;
    text-align: center;
    text-align-last: center;
    color: var(--black-color);
    font-family: 'R-Font', 'G-Font';
    
    background-color: #0000;
    cursor: pointer;     
    -webkit-appearance: none;-moz-appearance: none;appearance: none;    
    /* background-image: url(/sys_img/default-assets/img/select-arrow.svg); */
    /* background-position: right 10px center; */

    font-size: 1.25em;
    border: solid 3px var(--main-color);
    border-radius: 3px;
    padding-bottom: 5px;
}
select.floor-select::-ms-expand {display: none;}
option{
    text-align: center;
}
/* selectここまで */
#map-detail{
    text-align: center;
}
/* 見取り図がロードされたら設定 */
#map-result #premap {
    display: none;
}
#map-result.mr #premap {
    display: block;
} 
/* 見取り図がロードされたら設定 ここまで */
#premap > img{
    width:100%;
    height: 100%;
    max-height: 50vh;
    object-fit: contain;
    margin: 0 auto;
}

/* 拡大画像ここから */
.lb {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    background: #000B;
    opacity: 0;
    transition: .3s opacity ease;
    pointer-events: none;
    z-index: 100;
}
.lb img {
    max-width: 100% !important;
    max-height: auto !important;
    cursor: pointer;
    object-fit: contain;
}
.lb img, .lb iframe {
    transform: scale(.85);
    transition: .3s all ease;
    background: #fff;
    
    width:auto;
    box-sizing: border-box;
    max-height: 100vh;
}
.lb:target {
    opacity: 1;
    pointer-events: auto;
    z-index: 101;
}
.lb:target img,
.lb:target iframe {
    transform: scale(1);
}
/* なんちゃって閉じるボタン*/
.lb::before,.lb::after {
    display: block;
    position: fixed;
    content: "";
    width: 48px;
    height:5px;
    top: 48px;
    right: 24px;
    background: #fff;
    border-radius: 4px;
}
.lb::before {
    transform: rotate(-315deg);
}
.lb::after {
    transform: rotate(315deg);
}
/* 拡大画像 */
.lb img, .lb iframe {
    padding: 2.5vw;
}
/* 拡大画像ここまで */

/*------ 右側のマップ ------*/
#viewbox{
    position: relative;
}
#zoom_in{
    display: block;
    width: 10%;
    height: 10%;
    min-width: 1.1rem;
    min-height: 1.1rem;
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: pointer;
}
#zoom_in > img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#viewbox.target {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #000B;
    transition: .3s opacity ease;
    z-index: 100;
}
#viewbox.target > .svg-box{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
#viewbox.target #zoom_in{
    display: none;
}

/* 以下SVG */
#view path{
    opacity: 0;
}
#view g{
    cursor: pointer;
}
#view g:hover path, .svg-emphasis path{
    opacity: 0.6 !important;
    fill: #ff0;
}
/* SVGここまで */
/* 以下下部ボタン */
.map-button-base{
    white-space: nowrap;
}
.selection{
    white-space: nowrap;
    position: relative;
    margin: 0.1em;
    padding: 0 0.1em;
    cursor: pointer;
}
.map-button{
    opacity: 0;
    width: 1em;
    height: 1em;
    margin: 0;
}
/* radioボタン風 */
.selection::before{
    content:"";
    position: absolute;
    display: block;
    box-sizing: border-box;
    height: 1em;
    width: 1em;
    border-radius: 50%;
    border: gray solid;
    top:50%;
    right: 100%;
    transform: translate(0%, -50%);
}
.map-button:checked + .selection::before{
    border-color: var(--main-color);
}
.map-button:checked + .selection::after{
    content:"";
    position: absolute;
    display: block;
    box-sizing: border-box;
    height: 0.5em;
    width: 0.5em;
    border-radius: 50%;
    background-color: var(--main-color);
    margin-right: 0.25em;
    top:50%;
    right: 100%;
    transform: translate(0%, -50%);
}

/*PC用レイアウト設定*/
@media (min-width: 500px){
    .select-box{
        width:50%;
    }

    #map-area{
        flex-direction: row-reverse;
        justify-content: space-around;
    }

    /* 左側の詳細表示部分 */
    div#map-result{
        width:40%;
        max-height: 100vh;
    }
    #map-detail{
        width:90%;
        min-height: 80%;
        
        /*background-image: url(/sys_img/default-assets/map/arrow.png);
        background-size:contain;
        background-repeat: no-repeat;
        background-position: center;*/
        margin: 20px auto;
    }

    /* 左側の選択部分 */
    div#map-view{
        width:60%;
        max-height: 100vh;
    }

}

/*スマホ用レイアウト設定*/
@media (max-width: 499px) {
    .select-box{
        width:60%;
    }
    
    #map-area{
        flex-direction: column;
        justify-content: flex-start;
        /*画像を一定範囲内に収めるための設定*/
        height: 80vh;
    }
    /* 左側の詳細表示部分 */
    #map-result{
        margin-bottom: 1rem;
    }
    /* 見取り図がロードされたら設定 */
    div#map-result.mr{
        width: 100%;

        display: flex;
        flex-direction: column;
        flex: 1 1;
        /*画像を一定範囲内に収めるための設定*/
        min-height: 300px;
    }
    /* 見取り図がロードされたら設定 ここまで */

    #map-result > *{
        flex: 0 0;
    }
    #map-result > #map-detail{
        min-height: 0;
        width:90%;
        /*background-image: url(/sys_img/default-assets/map/arrow.png);
        background-size:contain;
        background-repeat: no-repeat;
        background-position: center;*/
        margin: 0 auto;
        flex: 1 1 auto;
    }
    #map-result.mr #premap{
        display: flex;
        flex-direction: column;
    }
    #premap{
        height: 100%;
    }
    #premap > * {
        min-height: 0;
    }
    #premap > img{
        flex: 1 1 auto;
    }
    #premap > div{
        flex: 0 0 auto;
    }
    
    /* 右側の選択部分 */
    div#map-view{
        width:100%;
        height:auto;
        flex: 0 0 auto;
        /* フッター回避 50px(本体) + 5px*2(padding) + 5px(遊び) */
        padding-bottom: 65px;
    }
    .selection{
        font-size: 1.1em;
    }
    #viewbox.target{
        overflow: scroll;
    }
    #viewbox.target .svg-box{
        width: 100vh;
    }
    #viewbox.target #view{
        width: 100vh;
    }
}

