.breadcrumbs {
  padding: 20px 40px 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  color: rgba(26, 26, 24, 0.38);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.breadcrumbs__link,
.breadcrumbs__current {
  min-width: 0;
  color: rgba(26, 26, 24, 0.68);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.breadcrumbs__link:hover {
  color: #1a1a18;
}

.breadcrumbs__current {
  color: #1a1a18;
}

.article-toc {
  position: relative;
  margin: 0 0 40px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(26, 26, 24, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 255, 71, 0.28) 0, rgba(232, 255, 71, 0.28) 58px, rgba(255, 255, 255, 0.82) 58px, rgba(255, 255, 255, 0.82) 100%);
  box-shadow: 0 16px 36px rgba(26, 26, 24, 0.06);
}


.article-toc__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #1a1a18;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

/* 開閉シェブロン */
.article-toc__toggle {
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: transform 0.22s ease, opacity 0.2s;
}
.article-toc__title:hover .article-toc__toggle { opacity: 0.85; }
.article-toc[data-collapsed] .article-toc__toggle {
  transform: rotate(-90deg);
}

.article-toc__title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #e8ff47;
  box-shadow: 0 0 0 4px rgba(232, 255, 71, 0.26);
}

.article-toc__list {
  list-style: none;
  display: grid;
  gap: 2px;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
  max-height: 2000px;
  opacity: 1;
}

.article-toc[data-collapsed] .article-toc__list {
  max-height: 0;
  opacity: 0;
}

.article-toc__item--h3 {
  padding-left: 18px;
}

.article-toc__link {
  display: block;
  padding: 6px 12px;
  border-radius: 5px;
  color: #30302d;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.72);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.article-toc__link:hover {
  color: #1a1a18;
  background: rgba(232, 255, 71, 0.44);
  transform: translateX(2px);
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 88px;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 16px 20px 0;
  }

  .breadcrumbs__link,
  .breadcrumbs__current {
    font-size: 10px;
  }

  .article-toc {
    margin-bottom: 32px;
    padding: 18px 16px 14px;
  }

  .article-toc__title {
    font-size: 12px;
  }

  .article-toc__link {
    padding: 9px 10px;
  }
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: #1a1a18;
  letter-spacing: 0.1em;
  background: #e8ff47;
  margin-top: 48px;
}

footer a {
  color: inherit;
  text-decoration: none;
}
