.toc-005 {
    margin: 30px 10px 30px 10px;
    border-radius: 3px;
    background-color: #edecf3;
}

.toc-005 div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    background-color: #0c3e5a;
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
}

.toc-005 div::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}

.toc-005 ol {
    list-style-type: disc;
    margin: 0;
    overflow: hidden;
}

.toc-005 > ol {
    padding: 1em 1em 1em 3em;
}

.toc-005 ol ol {
    margin-top: 5px;
    padding-left: 1.1em;
}

.toc-005 li {
    padding: 5px 0;
    font-weight: 600;
    list-style-type: none;
}

.toc-005 li a:hover {
    color: #d6bf75;
 transition: 0.5s;
}

.toc-005 ol ol li {
    font-weight: 500;
    font-size: .9em;
}

.toc-005 a {
    color: #333;
    text-decoration: none;
}
.pic{
    text-align: center;
    width: 80%;
    border: none;
}


.pic2{
    text-align: center;
    width: 100px; /* 好きなサイズに調整 */
    height: auto; /* 高さは自動で比率を保つ */
}




/* === スライドショー（共通）=== */
.slide{
  position: relative;        /* コンテナはrelativeのまま */
  width: 100%;
  height: 400px;             /* 必要なら固定高さ。可変にするなら下のaspect-ratio案を採用 */
  overflow: hidden;
}

/* 画像を重ねてフェード */
.slide img{
  position: absolute;
  inset: 0;                  /* top:0; right:0; bottom:0; left:0; の省略 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshow 24s linear infinite;
}

/* 各コマの遅延（画像数3枚想定）*/
.slide img:nth-child(1){ animation-delay: 0s; }
.slide img:nth-child(2){ animation-delay: 8s; }
.slide img:nth-child(3){ animation-delay: 16s; }

/* フェードイン→表示→フェードアウト */
@keyframes slideshow{
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

/* 画像中央寄せだけでOKなら transform は不要
   もし左右にはみ出しが気になる場合は object-position 調整 */
.slide img{ object-position: center; }

/* 可変レイアウト案（高さ固定をやめたい場合）
.slide{
  aspect-ratio: 16 / 9;  高さは幅から自動算出
  height: auto;
}
*/

/* PC幅での画像枠（pic）はそのまま活かせます */
@media screen and (min-width: 768px){
  .pic{
    width: 60%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
}

/* アニメ苦手な方向け */
@media (prefers-reduced-motion: reduce){
  .slide img{ animation: none; opacity: 1; position: static; }
}
/* パソコン用（幅が768px以上のとき） */
@media screen and (min-width: 768px) {
    .pic {
        width: 60%;       /* パソコンでは60%の幅で表示 */
        max-width: 350px; /* 最大幅を制限 */
        margin: 0 auto;   /* 中央寄せ（ブロック要素の場合） */
        display: block;
    }
}

.kyutei_pic_one{
    width: 90%;
    margin: auto 5%;
}
@media screen and (min-width: 768px) {
    .kyutei_pic_one{
        width: 50%;
        margin: auto 25%;
    }
    
}
.kyutei_pic_two{
    width: 90%;
    margin: auto 5%;
}
@media screen and (min-width: 768px) {
.kyutei_pic_three{
    background-image: url('./img/example.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    width: 25%;
    margin: 40px auto;
    display: block; /* 中央寄せのため */
}
    
}
@media screen and (max-width: 767px) {
    .kyutei_pic_three{
    background-image: url('./img/example.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    width: 200px;
    height: 150px;
    margin: 40px auto;
    display: block; /* 中央寄せのため */
}
}
