/* ===== Modern TOC (Article Index) ===== */
.article-index { 
  /* configurable theme */ 
  --toc-bg: #ffffff; 
  --toc-fg: #1f2937; 
  --toc-muted: #6b7280; 
  --toc-accent: #5865f2;      /* main accent */ 
  --toc-accent-2: #8b5cf6;    /* gradient end */ 
  --toc-border: #e5e7eb; 
  --toc-shadow: 0 10px 30px rgba(0,0,0,.06); 

  background: var(--toc-bg); 
  color: var(--toc-fg); 
  border: 1px solid var(--toc-border); 
  border-radius: 16px; 
  padding: 1.25rem 1.25rem 1.1rem; 
  box-shadow: var(--toc-shadow); 
  position: relative; 
  overflow: hidden; 
  max-width: 500px;
  margin: 0 auto;
}


/* heading */
.article-index .mokuji { 
  display:flex; 
  align-items:center; 
  gap:.6rem; 
  font-weight:800; 
  letter-spacing:.02em; 
  margin:-1.25rem -1.25rem 1rem -1.25rem; /* 枠いっぱいに広げる */ 
  padding:0.8rem 1.25rem; 
  background: linear-gradient(90deg, var(--toc-accent), var(--toc-accent-2)); 
  color:#fff; 
  border-top-left-radius: 16px; 
  border-top-right-radius: 16px; 
}
.article-index .mokuji::before { 
  content:"📑"; 
  font-size:1.05rem; 
  line-height:1; 
}

/* reset lists */
.article-index > ol{
  counter-reset: main-section;
  list-style:none;
  margin:0;
  padding:0;
}

/* top-level item */
.article-index > ol > li{
  counter-increment: main-section;
  position:relative;
  padding:.55rem .5rem .55rem 3.2rem;
  border-radius:12px;
  transition: background .25s ease, transform .06s ease;
}

/* number badge */
.article-index > ol > li::before{
  content: counter(main-section);
  position:absolute;
  left:.85rem; top:.64rem;
  width:1.9rem; height:1.9rem;
  display:grid; place-items:center;
  font-weight:800; font-size:.95rem; color:#fff;
  background: linear-gradient(135deg, var(--toc-accent), var(--toc-accent-2));
  border-radius:999px;
  box-shadow: 0 6px 16px rgba(88,101,242,.25);
}

/* item hover */
.article-index > ol > li:hover{
  background: linear-gradient(180deg, rgba(88,101,242,.06), rgba(139,92,246,.06));
}

/* links */
.article-index a{
  color: var(--toc-fg);
  text-decoration:none;
  font-weight:700;
  transition: color .2s ease, transform .2s ease;
}
.article-index a:hover{
  color: var(--toc-accent);
}

/* second level */
.article-index > ol > li > ol{
  counter-reset: sub-section;
  list-style:none;
  margin:.4rem 0 .2rem 0;
  padding-left:3.2rem; /* align with badges */
  border-left: 2px dashed rgba(88,101,242,.25);
  font-size: 13px;
  line-height: 13px;

}

/* second-level items */
.article-index > ol > li > ol > li{
  counter-increment: sub-section;
  position:relative;
  padding:.38rem .5rem .38rem 1.1rem;
  color: var(--toc-muted);
  font-weight:600;
  border-radius:10px;
  transition: background .2s ease, color .2s ease;
}

/* 1-1 label + chevron */
.article-index > ol > li > ol > li::before{
  content: counter(main-section) "-" counter(sub-section) "  ›";
  position:absolute;
  left: -1.75rem; top:.42rem;
  font-variant-numeric: tabular-nums;
  color: var(--toc-accent);
  font-weight:800;
  opacity:.85;
}

/* sub link hover */
.article-index > ol > li > ol > li a:hover{
  color: var(--toc-accent);
  transform: translateX(2px);
}

/* responsive tweaks */
@media (max-width: 768px){
  .article-index{ padding: .9rem .9rem .8rem; border-radius:14px; }
  .article-index > ol > li{ padding-left:2.9rem; }
  .article-index > ol > li::before{ left:.65rem; }
  .article-index > ol > li > ol{ padding-left:2.2rem; }
}

/* ========== アコーディオン（「もっと見る」エリア） ================== */
/* .animated：CSSアニメ時間（フェードなど汎用） */
.animated {
  -webkit-animation-duration: 1s; animation-duration: 1s;
  -webkit-animation-fill-mode: both; animation-fill-mode: both;
}

/* 折りたたみコンテナ。初期は高さ固定で下をグラデで隠す */
.content-wrap {
  height: 150px;
  overflow: hidden;
  position: relative;
  margin: 0;
}

/* 折りたたみの開閉ボタン（共通見た目 + 下端に固定配置） */
.close-btn, .more-btn {
  display: block;
  width: 100%;
  padding: 45px 0 0;
  position: absolute;
  bottom: 0; left: 0;
  text-align: center;
  background: -moz-linear-gradient(top,rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 1) 60%);
  background: -webkit-linear-gradient(top,rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 1) 60%);
  background: linear-gradient(to bottom,rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 1) 60%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff',endColorstr='#ffffff',GradientType=0);
}
.close-btn { background: none; }

/* 閉じている時（高さ固定）／開いている時（高さ自動+下余白） */
.slide-up   { height: 150px; padding-bottom: 0; overflow: hidden; }
.slide-down { height: auto;  overflow: visible; padding-bottom: 50px; }

/* ボタン内のラベル（「もっと見る」/「閉じる」） */
.more-btn p{
  display: inline-block;
  color: #fff;
  cursor: pointer;
  background: #29B6F6;
  padding: 5px 20px;
  width: 25%;
  border-radius: 20px;
  font-size: 1.1rem;
}
.close-btn { padding:0; }
.close-btn p { background: #aaa; }

/* モバイル時の文字と幅の最適化 */
@media (max-width: 768px) {
  .more-btn p { font-size: 0.7rem; }
}
/* 追加の幅最適化（モバイル） */
@media (max-width: 768px) {
  .more-btn p { width: 35%; }
}


/* ==========  セクション直下のメインイメージ ============================= */
/* .plan-description img：各セクション冒頭の説明用画像 */

@media screen and (min-width: 768px) {
    .plan-description {
        margin-bottom: 30px;
    }
}

.plan-description img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  max-height: 400px;
  /* 装飾 */
  border-radius: 12px;                 /* 角丸 */
  box-shadow: 0 6px 18px rgba(0,0,0,0.15); /* ドロップシャドウ */
}
@media screen and (max-width: 768px) {
  .plan-description img { max-width: 100%; }
}

/* カード（.point-item）内に配置される小さめの .plan-description 画像 */
.point-item .plan-description { margin: 0.5rem 0; text-align: center; }
.point-item .plan-description img {
  width: 100%;
  max-width: 230px;                   /* カード内の最大幅 */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}
@media (max-width: 767px) {
  .point-item .plan-description img{
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
}

.Q-midashi h3 {
    color: white !important;
    margin-bottom: 0px !important;
}

.panel-point-section .osagashi {
  position: relative;
  margin: 0 10px;
  height: auto;
}

.panel-point-section .Q-midashi {
  font-family: monospace;
  display: flex;
  width: 100%;
  max-width: 600px;
  min-height: 33px;
  background-color: #1f7ae0;
  position: relative;
  border-radius: 8px;
  z-index: 2;
  padding: 10px;
  box-sizing: border-box;
  height: auto;
}

.panel-point-section .mitsukarimasenka {
  text-align: center;
  align-content: center;
}

.panel-point-section .mitsukarimasenka h3 {
  font-weight: bold;
  color: #fff;
  font-size: 16px;
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.panel-point-section .honbun-sita {
  letter-spacing: 0;
  position: static;
  margin-top: 10px;
  padding: 22px 20px;
  background-color: #eef5ff;
  text-align: left;
  align-content: center;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  box-sizing: border-box;
}


.panel-point-section .point-list li {
  padding: 12px 0;            
  border-bottom: 1px dashed #b9cff3;
}


.panel-point-section .point-title {
  display: block;             
  font-weight: 700;
  color: #0f4f9e;
  font-size: 20px;            
  line-height: 1.4;
  margin-bottom: 6px;         
  letter-spacing: 0.02em;     
}


.panel-point-section .point-text {
  display: block;         
  color: #1b1b1b;
  font-size: 16px;
  line-height: 1.8;    
  padding: 15px;
  word-break: break-word;
    font-family: sans-serif;
}


.panel-point-section .point-list {
  margin: 0;
  padding-left: 1.0em;       
  list-style: disc;
}


@media (max-width: 767px) {
  .panel-point-section .point-title {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .panel-point-section .point-text {
    font-size: 16px;
    line-height: 1.75;
    font-family: sans-serif;
    padding: 3px;
  }
}

p.info-text {
    margin-bottom: 22px!important;
}



