@charset "utf-8";
html,body{
    margin: 0;
    padding: 0;
    color: #333;
    font-family: sans-serif, Arial;
    overflow: hidden;
}

.main{
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

/* スクロールバー */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 10px 10px #909090;
    border: solid 4px transparent;
}

/*========= ボタンのためのCSS ===============*/
.openbtn1{
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #fff;
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height:50px;
    border-radius: 25px;
}

/*×に変化*/  
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
}

.openbtn1 span:nth-of-type(1) {
    top:15px; 
}

.openbtn1 span:nth-of-type(2) {
    top:23px;
}

.openbtn1 span:nth-of-type(3) {
    top:31px;
}


.openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn1.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}


/*========= サイドバーCSS ===============*/
.side-bar{
    position:fixed;
    z-index: 1;
    top:0;
    left: -120%;
    width: 400px;
    /* width: 30vw; */
    height: 100vh;
    background-color: #FFFFFF;
    /*動き*/
    transition: all 0.4s;
}

/*アクティブクラスがついたら位置を0に*/
.side-bar.panelactive{
    left: 0;
}

.side-bar-header{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.side-bar-header.h3{
    text-align: center;
}

.filter,.allergen,.shop-list{
    padding-left: 1rem;
    padding-right: 1rem;

}

/*リストのレイアウト設定*/
.shop-list ul {
    padding: 0;
    margin-top: 0;
}

.shop-list ul li{
    list-style: none;
}

.shop-list ul li a{
    text-decoration: none;
    padding:5px;
    display: block;
    letter-spacing: 0.1em;
    /* font-weight: bold; */
    color: #333;

}

.container.shop-list {
    max-height: 60vh;
    overflow-y: auto; 
}

/* アレルギーチェックボックス */
.container.allergen {
    max-height: 20vh;
    overflow-y: auto; 
}

input[type=checkbox] {
    display: none;
}
.checkbox03 {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    width: auto;
}
.checkbox03::before {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    content: '';
    display: block;
    height: 16px;
    left: 5px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 16px;
}
.checkbox03::after {
    border-right: 6px solid #2589d0;
    border-bottom: 3px solid #2589d0;
    content: '';
    display: block;
    height: 20px;
    left: 7px;
    margin-top: -16px;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: rotate(45deg) translate3d(0,2px,0) scale3d(.7,.7,1);
    transition: transform .2s ease-in-out, opacity .2s ease-in-out;
    width: 9px;
}
input[type=checkbox]:checked + .checkbox03::before {
    border-color: #666;
}
input[type=checkbox]:checked + .checkbox03::after {
    opacity: 1;
    transform: rotate(45deg) scale3d(1,1,1);
}

/* セレクトボックス */
.selectbox {
    position: relative;
}

.selectbox::before,
.selectbox::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.selectbox::before {
    display: inline-block;
    right: 0;
    width: 2.8em;
    height: 2.1em;
    border-radius: 0 3px 3px 0;
    background-color: #2589d0;
}

.selectbox::after {
    position: absolute;
    top: 50%;
    right: 1.4em;
    transform: translate(50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
}

.selectbox select {
    appearance: none;
    /* min-width: 200px; */
    min-width: 100%;
    height: 2.1em;
    padding: .4em 3.6em .4em .8em;
    border: none;
    border-radius: 3px;
    background-color: #f2f2f2;
    font-size: 1em;
    cursor: pointer;
}

.selectbox select:focus {
    outline: 2px solid #2589d0;
}

/* アコーディオンメニュー */
.accordion-005 {
    max-width: 500px;
}

.accordion-005:not([open]) {
    margin-bottom: 7px;
}

.accordion-005 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    border-left: 5px solid #2589d0;
    background-color: #f2f2f2;
    font-weight: 600;
    cursor: pointer;
}

.accordion-005 summary::-webkit-details-marker {
    display: none;
}

.accordion-005 summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #c2c2c2;
    border-right: 3px solid #c2c2c2;
    content: '';
    transition: transform .3s;
}

.accordion-005[open] summary::after {
    transform: rotate(225deg);
}

.accordion-005 .container {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: 1em 1em 1em 1em;
    transition: transform .5s, opacity .5s;
}

.accordion-005[open] .container {
    transform: none;
    opacity: 1;
}

.map{
    height: 100%;
    width: 100%;
    background-color: aquamarine;
}

.main.panelactive .map {
    transition: all 0.2s;
    filter: brightness(0.7); /* マップ要素を少し暗くする */
}

@media screen and (max-width: 767px) {
    body,html{
        font-size: 90%;
    }

    .side-bar{
        width: 300px;
    }
    
    .shop-list ul {
        margin-bottom: 80px; /* safariのアドレスバーを考慮して余白を配置 */
    }
}
