html, body { 
    height: 100%; 
    margin: 0; 
    margin-top: 0 !important; 
}
body::-webkit-scrollbar {
    display: none;
}

.combined-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 55px); /* ナビゲーションフッターの高さを引く */
    padding: 20px;
}

.navigation-footer {
    background: #CCC;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flame_footer {
    margin: auto;
    text-align: center;
    font-size: 20%;
}

.flame_footer img {
    display: block;
    text-align: center;
    width: 30px;
    margin: auto;
}

.flame_footer span {
    display: inline-block;
    text-align: center;
    margin: 6px 20px 0;
    cursor: pointer;
}

.flame_footer span:hover {
    opacity: 0.7;
}

/* ページトップボタンのスタイル */
.pagetop {
    position: fixed;
    z-index: 1;
    opacity: 0;
    transition: .3s;
    cursor: default;
    box-shadow: none !important;
    filter: none !important;
    background: none !important;
    border-radius: 0 !important;
}
@media screen and (max-width: 767px) {
  .pagetop {
    right: -30px;
    bottom: -15px;
    -moz-transform: scale(0.4);
    -ms-transform: scale(0.4);
    -webkit-transform: scale(0.4);
    transform: scale(0.4);
  }
}
@media print, (min-width: 768px) {
  .pagetop {
    right: 20px;
    bottom: 20px;
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
.pagetop__show {
    opacity: 1;
    cursor: pointer;
}
.pagetop__show:hover {
    opacity: .6;
}
.pagetop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: none !important;
    filter: none !important;
    background: none !important;
    border-radius: 0 !important;
}

#wrapper {
    height: 100%;
    overflow-y: auto;
}

.main-content {
    padding: 0;
}

#footer {
    height: 100px;
    position: relative;
    bottom: 0px;
    width: 100%;
}
