/************************************
** common
************************************/

/* 全体 */
.content {
  margin-top: 0 !important;
}

.main,
.sidebar,
.footer {
  background: none !important;
}

/* 目次 */
#toc,
.sidebar-scroll .widget_toc .toc {
  border: 0;
  box-shadow: 0 8px 40px #131d300d;
  border-radius: 20px;
  margin: 40px auto 80px;
  padding: 0;
}

#toc .toc-title,
.sidebar-scroll .widget_toc .toc .toc-title {
  border-radius: 20px;
  box-shadow: 0 8px 40px #131d300d;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  padding: 20px 40px;
  position: relative;
}

.sidebar-scroll .widget_toc .toc .toc-title {
  font-size: 16px;
  padding: 10px 20px;
}

#toc .toc-title::before,
.sidebar-scroll .widget_toc .toc .toc-title::before {
  background-color: #0cbf5a;
  border: 1px solid #0cbf5a;
  border-radius: 24px;
  content: "";
  display: inline-block;
  height: 0;
  left: auto;
  margin: 0;
  padding: 14px 20px;
  position: absolute;
  right: 40px;
  transform: translateY(-50%);
  top: 50%;
  transition: 0.5s;
  width: 0;
}

.sidebar-scroll .widget_toc .toc .toc-title::before {
  right: 20px;
}

#toc .toc-title::after,
.sidebar-scroll .widget_toc .toc .toc-title::after {
  border-color: #fff transparent transparent transparent;
  border-style: solid;
  border-width: 6px 6px 0 6px;
  content: "";
  display: inline-block;
  height: 0;
  margin: 0;
  position: absolute;
  right: 55px;
  transform: translateY(-50%);
  top: 50%;
  transition: 0.5s;
  width: 0;
}

.sidebar-scroll .widget_toc .toc .toc-title::after {
  right: 35px;
}

#toc .toc-title:hover::before,
.sidebar-scroll .widget_toc .toc .toc-title:hover::before {
  background-color: #fff;
  border: 1px solid #0cbf5a;
  transition: 0.5s;
}

#toc .toc-title:hover::after,
.sidebar-scroll .widget_toc .toc .toc-title:hover::after {
  border-color: #0cbf5a transparent transparent transparent;
  transition: 0.5s;
}

#toc .toc-checkbox:checked ~ .toc-content {
  padding: 40px;
}

#toc.toc-checkbox:not(:checked) ~ .toc-content {
  overflow: hidden;
  padding: 0;
}

#toc .toc-list {
  padding: 0;
}

.sidebar-scroll .widget_toc .toc .toc-checkbox:checked ~ .toc-content {
  max-height: 55dvh;
  overflow-y: scroll;
  padding: 20px;
}

.sidebar-scroll .widget_toc .toc .toc-checkbox:not(:checked) ~ .toc-content {
  max-height: 0;
  overflow-y: hidden;
  padding: 0;
}

#toc .toc-list,
.sidebar-scroll .widget_toc .toc .toc-list {
  padding: 0;
}

#toc .toc-list li:first-child,
.sidebar-scroll .widget_toc .toc .toc-list li:first-child {
  border-top: 1px solid #ddd;
}

#toc .toc-list li,
.sidebar-scroll .widget_toc .toc .toc-list li {
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  margin: 0 !important;
  padding: 14px 30px;
  position: relative;
}

.sidebar-scroll .widget_toc .toc .toc-list li {
  font-size: 14px;
}

#toc .toc-list li ol,
.sidebar-scroll .widget_toc .toc .toc-list li ol {
  padding-left: 0;
}

#toc .toc-list li ol li,
.sidebar-scroll .widget_toc .toc .toc-list li ol li {
  border-bottom: 0;
  margin: 14px 0 0 !important;
  padding: 0 0 0 30px;
}

#toc .toc-list li ol li:first-child,
.sidebar-scroll .widget_toc .toc .toc-list li ol li:first-child {
  border-top: 0;
}

#toc .toc-list li:before,
.sidebar-scroll .widget_toc .toc .toc-list li:before {
  background-color: #0cbf5a;
  border-radius: 10px;
  content: "";
  height: 10px;
  left: 10px;
  top: 22px;
  width: 10px;
}

.sidebar-scroll .widget_toc .toc .toc-list li:before {
  top: 20px;
}

#toc .toc-list li ol li:before {
  top: 8px;
}

.sidebar-scroll .widget_toc .toc .toc-list li ol li:before {
  top: 6px;
}

@media screen and (max-width: 834px) {
  #toc .toc-checkbox:checked ~ .toc-content {
    padding: 20px;
  }

  #toc .toc-list li,
  .sidebar-scroll .widget_toc .toc .toc-list li {
    padding: 14px 0 14px 30px;
  }

  #toc .toc-list li,
  .sidebar-scroll .widget_toc .toc .toc-list li {
    font-size: 14px;
  }

  #toc .toc-list li ol li,
  .sidebar-scroll .widget_toc .toc .toc-list li ol li {
    padding: 0 0 0 30px;
  }
}

/* 見出し */
h1 {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  margin: 24px auto !important;
}

h2 {
  background: #f3fcf4 !important;
  color: #333 !important;
  font-size: 24px !important;
  line-height: 1.6 !important;
  margin: 80px 0 40px !important;
  padding: 16px 24px !important;
  position: relative !important;
  text-align: left !important;
}
h2::before {
  background: #0cbf5a;
  content: "";
  height: 20px;
  left: -5px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
}

h3 {
  background: none !important;
  border: 0 !important;
  color: #333 !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  margin: 40px 0 20px !important;
  padding: 0 !important;
}
h3::after {
  background: #0cbf5a !important;
  content: "";
  display: block !important;
  height: 4px !important;
  margin: 10px 0 0 !important;
  width: 40px !important;
}

h4 {
  border-bottom: 1px solid !important;
  border-image: linear-gradient(to right, #0cbf5a 0%, #f7d02e 100%);
  border-image-slice: 1;
  font-size: 18px !important;
  line-height: 1.6 !important;
  margin: 0 0 20px !important;
  padding: 0 0 12px !important;
}

h5 {
  border-bottom: 0 !important;
  font-size: 16px !important;
  display: flex !important;
  line-height: 1.6 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}
h5::before {
  background: #333;
  content: "";
  display: block;
  flex-shrink: 0;
  height: 1px;
  margin: 11px 10px 0 0;
  width: 34px;
}

@media screen and (min-width: 834px) {
  h1 {
    font-size: 28px !important;
    margin: 96px auto 48px !important;
  }

  h4 {
    font-size: 20px !important;
    padding-bottom: 10px !important;
  }

  h5 {
    font-size: 14px !important;
  }
  h5::before {
    margin: 13px 16px 0 0 !important;
    width: 40px !important;
  }
}

/* リスト */
ol li {
  margin: 0 0 12px !important;
}

/* タブ見出しボックス */
.cocoon-block-tab-caption-box {
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 16px #f7f7f8 inset;
  padding: 32px 48px;
}
.cocoon-block-tab-caption-box .tab-caption-box-label {
  background-color: #777;
  border-radius: 50px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
  padding: 2px 16px;
}
.cocoon-block-tab-caption-box .tab-caption-box-content {
  border: 0;
  padding: 0;
}

html
  body
  .tab-caption-box.has-key-color-border-color:not(.not-nested-style)
  .box-content {
  border: 0;
}

@media screen and (max-width: 834px) {
  .cocoon-block-tab-caption-box {
    padding: 32px;
  }
}

/* ラベルボックス */
.cocoon-block-label-box .label-box-label {
  background: #fff !important;
  border-radius: 50px !important;
  display: inline-block !important;
  margin-left: 24px !important;
  padding: 2px 16px !important;
}
.cocoon-block-label-box .label-box-content {
  padding: 24px !important;
}

/* マーカー */
.marker-under {
  background: linear-gradient(transparent 80%, #f7d02e 80%) !important;
  background-repeat: no-repeat !important;
  background-size: 0% 100% !important;
  display: inline;
  transition: background-size 1.5s;
}

.marker-under.on {
  background-size: 100% 100% !important;
}

/* ボタン */
.bnt-m {
  align-items: center;
  display: flex;
  justify-content: center;
}
.btn-m::after {
  content: "\f105";
  font-size: 20px;
  font-family: FontAwesome;
  margin-right: 12px;
  position: absolute;
  right: 8px;
  transition: all 0.2s ease;
}
.btn-m:hover::after {
  right: 4px !important;
}
