/* css/toc.css */

.page-toc{
  margin: 18px 0 22px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.9);
}

.page-toc__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.page-toc__title{
  font-weight: 700;
  font-size: 16px;
}

.page-toc__toggle{
  appearance: none;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.page-toc__list{
  margin: 0;
  padding-left: 18px;
}

.page-toc__list li{
  margin: 6px 0;
  line-height: 1.35;
}

.page-toc__list a{
  text-decoration: none;
  font-weight: 400;          /* 太字化しない（高さ変化を防ぐ） */
  display: inline-block;
  padding: 2px 4px;
  border-radius: 6px;
}

.page-toc__list a:hover{
  text-decoration: underline;
}

.page-toc.is-collapsed .page-toc__list{
  display: none;
}

/* 現在位置の強調は背景＋下線だけ（高さを変えない） */
.page-toc__list a.is-active{
  font-weight: 400;
  text-decoration: underline;
  background: rgba(65,105,225,.10);
}

/* アンカー位置が詰まりすぎないように */
#sec01, #sec02, #sec03, #sec04, #sec05, #sec06, #sec07, #sec08, #sec09{
  scroll-margin-top: 16px;
}

/* ===== 追記：dアカウント手順（説明文＋画像）用 ===== */
/* 既存のtoc.cssの末尾に、そのまま追加してください */

/* 連続ステップを読みやすくする「カード」 */
.step-card{
  margin: 0 1rem 2rem;
  padding: 14px 14px 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  box-shadow: 5px 5px 20px rgba(0,0,0,0.06);
}

.step-lead{
  margin: 0 0 12px;
  line-height: 1.9;
}

/* 画像は中央寄せ＋角丸＋影（newstyle.cssの雰囲気に合わせて控えめ） */
.step-figure{
  margin: 0;
  text-align: center;
}
.step-figure img{
  display: block;
  margin: 0 auto;
  max-width: 560px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 10px 10px rgba(0,0,0,0.08);
}

/* アンカー位置が詰まりすぎないように（15ステップ対応） */
#sec01, #sec02, #sec03, #sec04, #sec05, #sec06, #sec07, #sec08, #sec09, #sec10,
#sec11, #sec12, #sec13, #sec14, #sec15{
  scroll-margin-top: 16px;
}

/* ===== dアカウント手順画像サイズ調整（最大幅350px） ===== */
.step-figure img{
  max-width: 350px;   /* ← ここで上限を制限 */
  width: 100%;        /* 画面が狭い場合は自動縮小 */
  height: auto;
}