/*ヘッダー*/
header {
    display: flex;
    position: fixed;
    background-color: rgb(247, 247, 247);
    justify-content: space-between; 
    align-items: center; 
    height: 5rem; 
    width: 100%;
    padding: 10px 5px 5px 20px;
    top: 0;
    z-index: 10;
    border-bottom: 8px solid;
    border-image: linear-gradient(120deg, rgb(98, 137, 255), #46d7ac) 1;
    box-sizing: border-box;
}

header h1 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(94, 94, 94);
    
}

header h3 {
    font-size: 1.2rem;
    margin: 4% 0;
    margin-right: 20px;
    color: rgb(94, 94, 94);
}

.header-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Google iconのcss */
.header-icon {
    font-size: 200%;
    color:#666;
}

.icon-label {
    font-size: 80%;
    font-weight: bold;
    padding: 3px 5px;
    border-radius: 4px;
    color: rgb(94, 94, 94);
}

/* Google fontの幅を確保 */
#header-icon-symbol {
    width: 30px;
    height: 32px;
}

/* サイドバー本体 */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* 初期 */
    width: 50%;
    height: 100%;
    background: #333;
    color: white;
    padding: 20px;
    transition: right 0.5s ease;
    z-index: 50;
    font-size: 10px;
    padding-top: 0;
    box-sizing: content-box;
}


.sidebar-content{
    display: inline-flex;
    align-items: center; 
}

.sideber-close{
    font-size: 350%;
    position: absolute;
    margin-right: 2%;
    right: 0;
}

.sidebar-icon{
    font-size: 20px;
    padding: 20px 1px;
    border-bottom: 2px solid #5d5d5d;
    min-width: 200px;
}

.sidebar.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 10;
}

.overlay.active {
    display: block;
}

#collected-st {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#collected-st .st {
    width: 100%;
    height: 100%;
    padding: 5px;
    border: 2px dashed #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #aaa;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

#collected-st .st.active {
    border: 2px solid rgb(120, 170, 249);
    color: rgb(90, 138, 204);
    background-color: #e2eaff;
    transform: scale(1.1); 
}

#remain-count {
    font-size: 24px;
    font-weight: bold;
    color: #ff4757;
    margin: 0 5px;
}


.collect-back {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 1000; 
}


.collect-back[style*="display: block"] {
    display: flex !important; 
    align-items: center;
    justify-content: center;
}


.collect-details {
    position: relative;
    background-color: #ffffff;
  
    margin: 0 auto;
    text-align: center;
    width: 92%;    
    max-width: 500px;    
    
    padding: 60px 10px;   
    border-radius: 20px;  

    box-shadow: 0 4px 25px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.collect-details .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.collect-details .close:hover {
    color: #333;
}

/* PC用 */
@media (min-width: 1024px) {
    .sidebar {
        width: 30%;
        font-size: 10px;
    }
    
    .camera-wrapper {
        margin: 0 3.0% 1.0% 0;
        font-size: 150%;
    }

    .guide-icon{
        line-height: 1;
        margin-top: 4px;
    }
}