@charset "UTF-8";

/************** SimpleBar 必須レイアウト **************/
[data-simplebar], .simplebar-wrapper {
  position: relative;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
}

.simplebar-mask {
  direction: inherit;
  position: absolute;
  overflow: hidden;
  padding: 0;
  margin: 0;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: auto !important;
  height: auto !important;
  z-index: 0;
}

.simplebar-offset {
  direction: inherit !important;
  box-sizing: inherit !important;
  resize: none !important;
  position: absolute;
  top: 0;
  left: 0 !important;
  bottom: 0;
  right: 0 !important;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.simplebar-content-wrapper {
  direction: inherit;
  box-sizing: border-box !important;
  position: relative;
  display: block;
  height: 100%; /* これが重要 */
  width: auto;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.simplebar-content-wrapper::-webkit-scrollbar,
.simplebar-hide-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none !important;
}

.simplebar-content::before,
.simplebar-content::after {
  content: ' ';
  display: table;
}

.simplebar-placeholder {
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  pointer-events: none;
}

.simplebar-height-auto-observer-wrapper {
  box-sizing: inherit !important;
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  /* height: 1000%; */
  /* width: 1000%; */
  min-height: 1px;
  min-width: 1px;
  overflow: hidden;
  z-index: -1;
}

.simplebar-track {
  z-index: 1;
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.simplebar-scrollbar {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 10px;
}

.simplebar-scrollbar:before {
  position: absolute;
  content: '';
  background: black;
  border-radius: 7px;
  left: 2px;
  right: 2px;
  opacity: 0;
  transition: opacity 0.2s linear;
}

.simplebar-scrollbar.simplebar-visible:before {
  opacity: 0.5;
  transition: opacity 0s linear;
}

.simplebar-track.simplebar-vertical {
  top: 0;
  width: 11px;
}

.simplebar-track.simplebar-horizontal {
  left: 0;
  height: 11px;
}



/************** スクロールボックス 個別css **************/

/* simplebar スクロールボックス */
/* スクロールボックスの外枠 */
.p-scroll_box {
  width: 100%;
  height: 20rem;
  border: solid 1px #DDDDDD;
  border-radius: 2px;
  padding-top: 2rem;
  padding-left: 3rem;
  padding-right: 6.8rem;
  padding-bottom: 0.1rem;
}
/* スクロールボックスのテキスト */
.s-container .p-begginer__Page .p-scroll_box__inner__text {
  font-size: 1.4rem;
  line-height: 2;
  text-align: justify;
}

/* 外枠：幅をバーの分（右へ3.5rem + バーの幅0.8rem = 約5rem弱）広げて確保する */
.p-scroll_box__inner {
  width: calc(76.2rem + 5rem); 
  height: 16.9rem;
  position: relative;
  overflow: hidden;
}
/* SimpleBar本体：テキストエリアの幅を本来の 76.2rem に制限する */
.p-scroll_box__inner__scroll.js-slidebar {
  width: 76.2rem !important;
  height: 15.2rem !important;
  position: relative;
  overflow: visible !important;
}
/* 重要：テキストだけを隠すラッパー */
.p-scroll_box__inner__scroll.js-slidebar .simplebar-mask {
  overflow: hidden !important;
}
/* レールの背景とサイズ */
.p-scroll_box__inner__scroll.js-slidebar .simplebar-track.simplebar-vertical {
  background-color: #f5f5f5 !important;
  width: 0.8rem !important;
  height: 15.2rem !important;
  top: 0.3rem !important;
  /* 親の幅を広げたので、はみ出しではなく「親の右端」に寄せる */
  right: -3.7rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 2px !important;
}
/* つまみの色と形 */
.p-scroll_box__inner__scroll.js-slidebar .simplebar-scrollbar::before {
  background-color: #686868 !important;
  opacity: 1 !important;
  border-radius: 2px !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
}
/* 1. 内部のラッパー */
.p-scroll_box__inner__scroll.js-slidebar .simplebar-content-wrapper {
  height: 15.2rem !important;
  max-height: 15.2rem !important;
  overflow-y: auto !important;
  display: block !important;
}
/* 2. つまみ（scrollbar）が消えないように強制表示 */
.p-scroll_box__inner__scroll.js-slidebar .simplebar-scrollbar {
  visibility: visible !important;
  display: block !important;
}
/* 3. 中身のコンテンツエリア */
.p-scroll_box__inner__scroll.js-slidebar .simplebar-content {
  display: block !important;
  height: auto !important;
}

/* simplebar スクロールボックス SP */
@media (max-width: 767px) {
  .p-scroll_box {
    width: 34.2rem;
    margin-inline: auto;
    height: 12.8rem;
    border-radius: 4px;
    padding-top: 1.9rem;
    padding-left: 2rem;
    padding-right: 5.2rem;
    padding-bottom: 1.9rem;
  }
  .s-container .p-begginer__Page .p-scroll_box__inner__text {
    font-size: 1rem;
    line-height: 1.8;
  }
  .p-scroll_box__inner {
    width: calc(27rem + 5rem);
    height: 10.4rem;
    bottom: 0.3rem;
  }
  .p-scroll_box__inner__scroll.js-slidebar {
    width: 27rem !important;
    height: 10.4rem !important;
  }
  .p-scroll_box__inner__scroll.js-slidebar .simplebar-content-wrapper {
    height: 10.4rem !important;
    max-height: 10.4rem !important;
  }
  .p-scroll_box__inner__scroll.js-slidebar .simplebar-track.simplebar-vertical {
    height: 8rem !important;
    right: -2.5rem !important;
    top: 0.6rem !important;
  }
}
