/* ========================================
      リセットcss
 ========================================= */

 *,
 *::before,
 *::after {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
 }
 
 html,
 body,
 h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 ul,
 ol,
 dl,
 li,
 dt,
 dd,
 p,
 div,
 span,
 img,
 a,
 table,
 tr,
 th,
 td {
   border: 0;

   font-weight: normal;
   margin: 0;
   padding: 0;
   vertical-align: baseline;
 }
 
 header,
 footer,
 nav,
 section,
 article,
 main,
 aside,
 figure,
 figcaption {
   display: block;
 }
 
 ol,
 ul {
   list-style: none;
 }
 
 img {
   height: auto;
   max-width: 100%;
   vertical-align: middle;
 }
 
 a {
   color: inherit;
   text-decoration: none;
 }
 
 button {
   border: none;
   margin: 0;
   padding: 0;
   -webkit-box-shadow: none;
   background: transparent;
   box-shadow: none;
   cursor: pointer;
   font: inherit;
 }
 
 input,
 select,
 textarea {
   color: inherit;
   font: inherit;
   vertical-align: top;
 }
 
 /* ========================================
        ベースcss
   ========================================= */
 
 html {
   -webkit-text-size-adjust: 100%;
   scroll-behavior: smooth;
 }
 
 body {
   font-size: 16px;
   -webkit-font-feature-settings: "pkna" 1;
   background-color: #fff;
   color: #333;
   font-family: "Noto Sans JP", sans-serif;
   font-feature-settings: "pkna" 1;
   font-weight: 400;
   line-height: 1.8;
   -webkit-animation: fadeIn 1s ease 0s 1 normal;
   animation: fadeIn 1s ease 0s 1 normal;
 }
 
 body.is-checked {
   overflow: hidden;
 }
 
 img {
   height: auto;
   max-width: 100%;
 }
 
 a {
   color: inherit;
   text-decoration: none;
 }
 
 * {
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
 }
 
 /* ========================================
      inner_css
   ========================================= */
 
 .l-prtoc-inner {
   margin-left: auto;
   margin-right: auto;
   max-width: 1320px;
   padding-left: clamp(1.063rem, -0.159rem + 6.11vw, 3.75rem);
   padding-right: clamp(1.063rem, -0.159rem + 6.11vw, 3.75rem);
 }
 
 .l-prtoc-inner--720 {
   margin-left: auto;
   margin-right: auto;
   max-width: 720px;
   padding-left: clamp(1.063rem, -0.159rem + 6.11vw, 3.75rem);
   padding-right: clamp(1.063rem, -0.159rem + 6.11vw, 3.75rem);
 }
 
 /* ========================================
       header_css
   ========================================= */
 
 .l-prtoc-header {
   background-color: #fff;
   height: auto;
   width: 100%;
   -webkit-transition: background-color 0.3s ease, -webkit-transform 0.5s ease;
   transition: background-color 0.3s ease, -webkit-transform 0.5s ease;
   transition: transform 0.5s ease, background-color 0.3s ease;
   transition: transform 0.5s ease, background-color 0.3s ease, -webkit-transform 0.5s ease;
 }
 
 .l-prtoc-header__inner {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-pack: center;
   -ms-flex-pack: center;
   justify-content: center;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: center;
   gap: 32px;
   height: auto;
   padding-bottom: 14px;
   padding-top: 14px;
 }
 
 .l-prtoc-header__logo {
   -webkit-transition: all 0.3s ease;
   transition: all 0.3s ease;
 }
 
 .l-prtoc-header__logo-img {
   display: block;
   height: auto;
   min-width: 170px;
   max-width: 220px;
   -webkit-transition: all 0.3s ease;
   transition: all 0.3s ease;
 }
 
 /* ========================================
       メインコンテンツ
   ========================================= */
 
 .l-prtoc__head-flex--column {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
   flex-direction: column;
   gap: 24px;
   margin-bottom: 24px;
   padding-top: 24px;
 }
 
 .l-prtoc__head-contents {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
   flex-direction: column;
   gap: 16px;
 }
 
 .l-prtoc__pr-text {
   -ms-flex-item-align: end;
   align-self: flex-end;
   background: #f7f7f7;
   font-size: clamp(0.75rem, 0.704rem + 0.19vw, 0.875rem);
   margin-right: 0;
   padding: 12px 24px;
   width: -webkit-fit-content;
   width: -moz-fit-content;
   width: fit-content;
 }
 
 .l-prtoc-fv-image {
   height: auto;
   width: 100%;
   -o-object-fit: cover;
   object-fit: cover;
 }
 
 .l-prtoc__contents {
   -webkit-box-flex: 7;
   -ms-flex: 7;
   flex: 7;
 }
 
 .l-prtoc__layout {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
   flex-direction: column;
   gap: 54px;
 }
 
 /* サイドバー */
 
 .l-prtoc__sidebar {
   -webkit-box-flex: 3;
   -ms-flex: 3;
   flex: 3;
   height: auto;
   margin-bottom: 80px;
   margin-left: auto;
   margin-right: auto;
   max-width: 456px;
   min-width: 300px;
   width: 100%;
 }
 
 /* 広告バナー */
 
 .l-prtoc__ads {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
   flex-direction: column;
   gap: 24px;
 }
 
 .l-prtoc__ads-item {
   margin-left: auto;
   margin-right: auto;
   max-width: 300px;
   -webkit-transition: all 0.3s ease;
   transition: all 0.3s ease;
 }
 
 .l-prtoc__ads-item img {
   width: 100%;
 }
 
 .l-prtoc-title {
   -webkit-box-flex: 6;
   -ms-flex: 6;
   color: #333;
   flex: 6;
   font-size: clamp(1.25rem, 1.064rem + 0.76vw, 1.75rem);
   font-weight: 700;
   height: auto;
 }
 
 .l-prtoc-title--bottom {
   border-bottom: 2px solid #333;
   padding-bottom: 48px;
 }
 
 .l-prtoc-fv__image-wrapper {
   -webkit-box-flex: 4;
   -ms-flex: 4;
   flex: 4;
   height: auto;
   margin-left: auto;
   margin-right: auto;
   max-width: 100%;
 }
 
 .l-prtoc-details {
   margin-bottom: 40px;
 }
 
 /* 記事詳細部分の見出しデザイン */
 
 .l-prtoc-details-secondhead {
   border-bottom: 4px solid #f0f0f0;
   color: #333;
   display: inline-block;
   font-size: clamp(1.25rem, 1.157rem + 0.38vw, 1.5rem);
   font-weight: 500;
   margin-bottom: clamp(1.5rem, 1.314rem + 0.76vw, 2rem);
   margin-top: 32px;
   padding: clamp(0.75rem, 0.564rem + 0.76vw, 1.25rem) 16px;
   position: relative;
   width: 100%;
   background-color: #f7f7f7;
   border-left: 4px solid #FF8600;
   /* padding-left: 16px; */
 }
 

 
 .l-prtoc-details-text {
   letter-spacing: 0.4px;
   line-height: 190%;
 }
 
 /* h3 */
 
 .l-prtoc-details-thirdhead {
    border-bottom: 3px solid #f0f0f0;
   color: #333;
   font-size: clamp(1.125rem, 1.032rem + 0.38vw, 1.25rem);
   font-weight: 500;
   margin-bottom: 20px;
   margin-top: 28px;
   padding-bottom: 8px;
   position: relative;
 }

 .l-prtoc-details-thirdhead::before {
    background: #FF8600;
    bottom: -4px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: 20%;
  }
 
 .l-prtoc-details img {
   margin-top: 24px;
   margin-bottom: 24px;
   display: block;
   max-width: 100%;
   height: auto;
 }
 
/* 箇条書きデザイン */
.l-prtoc-details-list {
    list-style: none;
    margin-bottom: 20px;
    margin-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .l-prtoc-details-list li {
    display: block;
    padding-left: 20px;
    position: relative;
  font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    margin-top: 10px;
  }
  
  .l-prtoc-details-list li::before {
    background-color: #FF8600;
    border-radius: 50%;
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    height: 6px;
    width: 6px;
  }
 
 .l-prtoc-details__four-head {
   color: #333;
   display: block;
   font-size: clamp(1rem, 0.954rem + 0.19vw, 1.125rem);
   font-weight: 700;
   margin-bottom: clamp(0.625rem, 0.532rem + 0.38vw, 0.875rem);
   margin-top: 16px;
 }

/* チェックマーク箇条書き */
.l-prtoc-details-checklist {
    list-style: none;
    margin-bottom: 20px;
    margin-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .l-prtoc-details-checklist li {
    display: block;
    padding-left: 32px;
    position: relative;
  font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    margin-top: 12px;
  }
  
  .l-prtoc-details-checklist li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
    background-color: #FF8600;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }
  

 /* 数字付き箇条書き */
.l-prtoc-details ol {
    list-style: none;
    margin-bottom: 20px;
    margin-top: 20px;
    counter-reset: list-counter;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .l-prtoc-details ol li {
    display: block;
    padding-left: 36px;
    position: relative;
  font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    margin-top: 12px;
    counter-increment: list-counter;
  }
  
  .l-prtoc-details ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: #FF8600;
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 24px;
  }
  
 
 /* ========================================
       目次
   ========================================= */
 
 .l-prtoc-toc-container {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   -ms-flex-direction: column;
   flex-direction: column;
   gap: 32px;
 }
 
 .l-prtoc-toc {
   display: none;
 }
 
 .l-prtoc-toc--sp {
   -webkit-transition: all 0.3s;
   border: 1px solid #d9d9d9;
   display: block;
   margin-bottom: 24px;
   padding: 20px 20px;
   transition: all 0.3s;
 }
 
 #js-prtoc-toc-list {
   max-height: 0;
   opacity: 0;
   overflow: hidden;
   -webkit-transition: max-height 0.3s ease, opacity 0.3s ease;
   transition: max-height 0.3s ease, opacity 0.3s ease;
 }
 
 #js-prtoc-toc-list.is-open {
   max-height: 1000px;
   opacity: 1;
 }
 
 .l-prtoc-toc__title--flex {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-pack: justify;
   -ms-flex-pack: justify;
   justify-content: space-between;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: center;
 }
 
 .l-prtoc-toc__toggle-button {
   color: #116fc9;
   font-size: 14px;
   padding-right: 20px;
   text-decoration: underline;
 }
 
 .l-prtoc-toc__toggle-button--close {
   color: #116fc9;
   display: none;
   font-size: 14px;
   padding-right: 20px;
   text-decoration: underline;
 }
 
 .l-prtoc-toc::-webkit-scrollbar {
   width: 4px;
 }
 
 .l-prtoc-toc::-webkit-scrollbar-thumb {
   background-color: #ccc;
   border-radius: 4px;
 }
 
 .l-prtoc-toc::-webkit-scrollbar-thumb:hover {
   background-color: #aaa;
 }
 
 .l-prtoc-toc::-webkit-scrollbar-track {
   background-color: #f4f4f4;
 }
 
 .l-prtoc-toc__title {
   border-bottom: 4px double #d9d9d9;
   font-size: 14px;
   font-weight: bold;
   margin-bottom: 16px;
   padding-bottom: 8px;
 }
 
 .l-prtoc-toc__list {
   list-style: none;
   padding-left: 0;
 }
 
 .l-prtoc-toc__item {
    font-size: clamp(0.875rem, 0.852rem + 0.1vw, 1rem);
   font-weight: 500;
   margin-bottom: 8px;
   padding-left: 16px;
   position: relative;
 }
 
 .l-prtoc-toc__item::before {
   color: #FF8600;
   content: "■";
   font-size: 6px;
   left: 0;
   margin-top: 10px;
   position: absolute;
   top: 0;
 }
 
 .l-prtoc-toc__link {
   width: 100%;
   -webkit-transition: all 0.3s;
   transition: all 0.3s;
   font-weight: 500;
 }
 
 .l-prtoc-toc__sublist {
   list-style: none;
   margin-top: 8px;
 }
 
 .l-prtoc-toc__subitem {
    font-size: clamp(0.75rem, 0.727rem + 0.1vw, 0.813rem);
   margin-bottom: 8px;
   padding-left: 16px;
   position: relative;
 }
 
 .l-prtoc-toc__subitem::before {
   color: #FF8600;
   content: "◻︎";
   font-size: 10px;
   left: 0;
   margin-top: 5px;
   position: absolute;
   top: 0;
 }
 
 /* ========================================
       footer_css
   ========================================= */
 
 .l-prtoc-footer {
   background: #484039;
   color: #fff;
   width: 100%;
 }
 
 .l-prtoc-footer__inner {
   margin-left: auto;
   margin-right: auto;
   padding: 32px;
 }
 
 .l-prtoc-footer__container-flex {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   width: 100%;
   -webkit-box-pack: center;
   -ms-flex-pack: center;
   gap: 20px;
   justify-content: center;
 }
 
 .l-prtoc-footer__nav-list {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -ms-flex-wrap: wrap;
   flex-wrap: wrap;
   -webkit-box-pack: center;
   -ms-flex-pack: center;
   gap: 40px;
   justify-content: center;
 }
 
 .l-prtoc-footer__nav-link {
   font-size: clamp(0.875rem, 0.839rem + 0.18vw, 1rem);
   font-weight: 500;
   -webkit-transition: all 0.3s ease;
   text-decoration: underline;
   transition: all 0.3s ease;
 }
 
 .l-prtoc-footer__copyright {
   background: #484039;
   font-size: 12px;
   padding: 8px 30px;
   text-align: center;
 }
 
 /* ========================================
       hover効果
   ========================================= */
 
 @media (any-hover: hover) {
   .l-prtoc__ads-item:hover {
     opacity: 0.7;
   }
 
   .l-prtoc-toc__link:hover {
     color: #FF8600;
   }
 
   .l-prtoc-footer__nav-link:hover {
     color: #FF8600;
   }
 }
 
 /* ========================================
       レスポンシブ（タブレット）
   ========================================= */
 
 @media screen and (min-width: 768px) and (max-width: 1023px) {
   .l-prtoc__ads-item {
     max-width: 300px;
   }
 
   .l-prtoc-toc {
     display: none;
   }
 
   .l-prtoc-toc--sp {
     border: 1px solid #d9d9d9;
     display: block;
     padding: 20px 16px;
   }
 
   .l-prtoc-footer__copyright {
     font-size: 13px;
   }
 }
 
 /* ========================================
       レスポンシブ（PC）
   ========================================= */
 
 @media screen and (min-width: 1024px) {
   .l-prtoc-inner--720 {
     max-width: 1320px;
   }
 
   .l-prtoc-header {
     -webkit-transform: translateY(0);
     transform: translateY(0);
   }
 
   .l-prtoc-header__inner {
     -webkit-box-pack: justify;
     -ms-flex-pack: justify;
     justify-content: center;
   }
 
   .l-prtoc-header__logo-img {
     height: auto;
     width: clamp(11.25rem, 7.639rem + 14.81vw, 18.75rem);
   }
 
   .l-prtoc__head-flex--column {
     display: -webkit-box;
     display: -ms-flexbox;
     display: flex;
     -webkit-box-orient: vertical;
     -webkit-box-direction: normal;
     -ms-flex-direction: column;
     flex-direction: column;
     gap: 32px;
     margin-bottom: 48px;
     padding-top: 60px;
   }
 
   .l-prtoc__contents {
     margin-bottom: 80px;
   }
 
   .l-prtoc__layout {
     -webkit-box-orient: horizontal;
     -webkit-box-direction: normal;
     -ms-flex-direction: row;
     flex-direction: row;
     -webkit-box-pack: justify;
     -ms-flex-pack: justify;
     gap: 60px;
     justify-content: space-between;
   }
 
   .l-prtoc__sidebar {
     -webkit-box-flex: 3;
     -ms-flex: 3;
     flex: 3;
     max-width: 300px;
     position: sticky;
     top: 10px;
     -ms-flex-item-align: start;
     align-self: start;
   }
 
   .l-prtoc__ads-item {
     width: 300px;
   }
 
   .l-prtoc-toc-container {
     margin-top: 48px;
   }
 
   .l-prtoc-toc {
     display: block;
     margin-bottom: 24px;
     max-height: 400px;
     overflow-y: auto;
     padding-right: 8px;
   }
 
   .l-prtoc-toc--sp {
     display: none;
   }
 
   .l-prtoc-footer__copyright {
     font-size: 13px;
   }
 }
 
 /* ========================================
       アニメーション
   ========================================= */
 
 @keyframes fadeIn {
   0% {
     opacity: 0;
   }
 
   100% {
     opacity: 1;
   }
 }
 
 @-webkit-keyframes fadeIn {
   0% {
     opacity: 0;
   }
 
   100% {
     opacity: 1;
   }
 }
 
 /* TablePressテーブルスタイル */
.l-prtoc-details .tablepress {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.875rem, 0.852rem + 0.1vw, 0.938rem);
  }
  
  .l-prtoc-details .tablepress thead th {
    background-color: #3CB1DF;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #5a89b3;
  }
  
  .l-prtoc-details .tablepress tbody td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
  }
  
  .l-prtoc-details .tablepress tbody tr:nth-child(odd) td {
    background-color: #f9f9f9;
  }
  
  .l-prtoc-details .tablepress tbody tr:hover td {
    background-color: #f0f0f0;
  }

  /* テーブル横スクロール対応 */
.l-prtoc-details .tablepress-scroll-wrapper,
.l-prtoc-details figure.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.l-prtoc-details .tablepress {
  min-width: 500px;
  width: 100%;
}

/* スマホでスクロールバー常時表示 */
@media screen and (max-width: 767px) {
  .l-prtoc-details .tablepress-scroll-wrapper,
  .l-prtoc-details figure.wp-block-table {
    overflow-x: scroll;
  }

  .l-prtoc-details .tablepress-scroll-wrapper::-webkit-scrollbar,
  .l-prtoc-details figure.wp-block-table::-webkit-scrollbar {
    height: 8px;
    -webkit-appearance: none;
  }

  .l-prtoc-details .tablepress-scroll-wrapper::-webkit-scrollbar-thumb,
  .l-prtoc-details figure.wp-block-table::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 4px;
  }

  .l-prtoc-details .tablepress-scroll-wrapper::-webkit-scrollbar-track,
  .l-prtoc-details figure.wp-block-table::-webkit-scrollbar-track {
    background-color: #f0f0f0;
  }
}

  
  
  
  /* 中央揃え・右揃え対応 */
.l-prtoc-details .has-text-align-center {
    display: block;
    text-align: center;
  }
  
  .l-prtoc-details .has-text-align-right {
    display: block;
    text-align: right;
  }
  
  /* フォントサイズ変更対応 */
  .l-prtoc-details .has-small-font-size {
    font-size: 13px !important;
  }
  
  .l-prtoc-details .has-medium-font-size {
    font-size: 20px !important;
  }
  
  .l-prtoc-details .has-large-font-size {
    font-size: 36px !important;
  }
  
  .l-prtoc-details .has-x-large-font-size {
    font-size: 42px !important;
  }
  
/* カスタムpx指定のフォントサイズ対応 */
.l-prtoc-details p[style*="font-size"],
.l-prtoc-details span[style*="font-size"] {
  font-size: unset !important;
}
  
  
  /* 画像・ボタンホバーアニメーション */
  .l-prtoc-details a img {
    transition: all 0.3s ease;
  }
  
  .l-prtoc-details a img:hover {
    opacity: 0.7;
  }
  
  .l-prtoc-details a:hover {
    opacity: 0.8;
    transition: all 0.3s ease;
  }

  
/* 段落の余白 */
.l-prtoc-details p.l-prtoc-details-text {
    margin-bottom: 1.5em;
  }
  
  .l-prtoc-details p.l-prtoc-details-text:last-child {
    margin-bottom: 0;
  }


  /* テーブル横スクロール対応 */
.l-prtoc-details .tablepress-scroll-wrapper,
.l-prtoc-details figure.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.l-prtoc-details .tablepress {
  min-width: 500px;
  width: 100%;
}

/* スクロールバーのスタイル */
.l-prtoc-details .tablepress-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.l-prtoc-details .tablepress-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.l-prtoc-details .tablepress-scroll-wrapper::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

/* ========================================
   ボタンスタイル
========================================= */

.l-prtoc-details .wp-block-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}

.l-prtoc-details .wp-block-button {
  min-width: 60%;
  animation: custom_pulse 2s ease-in-out infinite;
}

.l-prtoc-details .wp-block-button a {
  display: block;
  width: 100%;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  position: relative;
  top: 0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.l-prtoc-details .wp-block-button a:hover {
  box-shadow: none;
  top: 6px;
  opacity: 0.9;
  animation: none;
}

@media screen and (max-width: 767px) {
  .l-prtoc-details .wp-block-button {
    min-width: 280px;
    max-width: 100%;
  }
}

/* パルスアニメーション */
@keyframes custom_pulse {
  0% { transform: scale(1.05); }
  50% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

  
  

  /* ========================================
   サイドバー：バナーなし時の目次拡張
========================================= */

@media screen and (min-width: 1024px) {
    /* サイドバー全体の高さを画面に合わせる */
    .l-prtoc__sidebar {
      display: flex;
      flex-direction: column;
      height: calc(100vh - 80px); /* ヘッダー分を引く */
    }
  
    /* 目次コンテナが残りスペースを埋める */
    .l-prtoc-toc-container {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      min-height: 0; /* flexの子要素でoverflow動作させるため */
    }
  
    /* 目次ナビ自体も拡張 */
    .l-prtoc-toc {
      flex-grow: 1;
      max-height: 640px; /* 既存の max-height: 400px を上書き */
      overflow-y: auto;
    }
  
    /* バナーがある場合は目次の高さを制限 */
    .l-prtoc__sidebar:has(.l-prtoc__ads) .l-prtoc-toc {
      max-height: 400px;
      flex-grow: 0;
    }
  
    .l-prtoc__sidebar:has(.l-prtoc__ads) .l-prtoc-toc-container {
      flex-grow: 0;
    }
  
    /* バナーエリアの上余白 */
    .l-prtoc__ads {
      margin-top: 32px;
      flex-shrink: 0;
    }
  }

/* ========================================
   トップへ戻るボタン
========================================= */

.l-prtoc-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 134, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .l-prtoc-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
  }
  
  .l-prtoc-scroll-top:hover,
  .l-prtoc-scroll-top:active {
    background-color: rgba(255, 134, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  
  .l-prtoc-scroll-top__arrow {
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(-45deg);
    margin-top: 4px;
  }
  
  @media screen and (max-width: 767px) {
    .l-prtoc-scroll-top {
      bottom: 16px;
      right: 16px;
      width: 44px;
      height: 44px;
    }
  }
  
  

    /* ========================================
   追加CSS
========================================= */

  /* 段落の余白を無効化 */
.l-prtoc-details p.l-prtoc-details-text.no-margin {
    margin-bottom: 0;
  }
  

   /* PC/SP画像切り替え */
.l-prtoc-details .sp-only {
    display: none;
  }
  
  .l-prtoc-details .pc-only {
    display: block;
  }
  
  @media screen and (max-width: 767px) {
    .l-prtoc-details .sp-only {
      display: block;
    }
  
    .l-prtoc-details .pc-only {
      display: none;
    }
  }