@charset "utf-8";
/* CSS Document */

.scroll-container {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
 height: 100%;
  padding: 10px 15px 15px 10px;
  overflow: hidden;
  border-radius: 6px;
 
}
.scroll-wrap1 {
 height:400px;
}

.scroll-wrap2 {
 height:100px;
}

.scroll-content{
  width: 100%;
  height: 100%;
  padding-right: 10px;
  padding-bottom: 10px;
  overflow-y: scroll;
  scrollbar-width: none;/* Firefox */
}

.scroll-content-horizontal {
  width: 100%;
height: 100%;
  padding-right: 10px;
  padding-bottom: 10px;
  overflow-x: scroll;
  scrollbar-width: none;
}

.scroll-content::-webkit-scrollbar,.scroll-content-horizontal::-webkit-scrollbar {
  display: none;/* Chrome, Safari, Edge */
}

.custom-scrollbar {
  position: absolute;
  background: rgba(165, 143, 134,0.4);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;

}

/* 縦スクロールバー */
.custom-scrollbar.vertical {
  top: 5px;
  right: 3px;
  width: 6px;
  height: calc(100% - 15px);
}

/* 横スクロールバー */
.custom-scrollbar.horizontal {
  bottom: 3px;
  left: 5px;
  width: calc(100% - 15px);
  height: 6px;
  
}

/* 非表示時 */
.custom-scrollbar.hidden {
  display: none;
}

.scroll-container:hover .custom-scrollbar {
  opacity: 1;
  pointer-events: auto;
}

.custom-thumb {
  position: absolute;
  background: #664343;
  border-radius: 3px;
  transition: background 0.2s;
  cursor: grab;

}

.custom-thumb:hover {
  background: #832C38;
}

.custom-scrollbar.vertical .custom-thumb {
  width: 100%;
}

.custom-scrollbar.horizontal .custom-thumb {
  height: 100%;
}
/* スマホでは常時表示 */
@media (hover: none) and (pointer: coarse) {
  .custom-scrollbar {
    opacity: 1;
    pointer-events: auto;
  }
}