/* =========================================================
   nav-list.css
   1. パンくず
   2. TOC
   3. .section-list
   素の ul/ol/details は list.css。
   ========================================================= */

/* ---------------------------------------------------------
   1. パンくず
   マクロ側で区切りアイコンを出している前提。
   ::before の自動区切りは出さない。
   --------------------------------------------------------- */
.breadcrumb,
.breadcrumbs ol {
  display: block;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.breadcrumb-item,
.breadcrumbs ol li {
  display: inline;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item,
.breadcrumbs ol li + li {
  padding-left: 0;
}

.breadcrumb-item::before,
.breadcrumb-item + .breadcrumb-item::before,
.breadcrumbs ol li + li::before {
  content: none;
  display: none;
}

.breadcrumb-item .material-icons {
  display: inline-block;
  margin: 0 0.15em;
  vertical-align: middle;
  font-size: 1em;
}

.breadcrumb-item.active {
  font-weight: 650;
}

/* ---------------------------------------------------------
   2. TOC
   枠線に「目次」ラベルを重ねる。
   中身は ol/ul どちらでも可。
   --------------------------------------------------------- */
.toc-container,
.post-toc {
  position: relative;
  box-sizing: border-box;
  max-width: 400px;
  margin: 24px 0;
  padding: 24px 16px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.post-toc {
  display: inline-block;
  min-width: 200px;
  max-width: 100%;
  padding: 25px 25px 20px 20px;
  margin: 30px 0;
}

.toc-title,
.post-toc .toc-title {
  position: absolute;
  top: 0;
  left: 16px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
}

.post-toc .toc-title {
  top: -12px;
  left: 15px;
  transform: none;
  padding: 0 10px;
  background: #fff;
  color: #555;
  font-size: 0.95rem;
  font-weight: 700;
}

.toc-title-text {
  padding: 0 8px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  font-weight: 700;
}

.toc-list,
#TableOfContents ul,
#TableOfContents ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-list .toc-list {
  margin-top: 6px;
  padding-left: 16px;
}

#TableOfContents ul {
  list-style-type: decimal;
}

#TableOfContents ul ul {
  margin-top: 5px;
  list-style-type: circle;
}

.toc-item,
#TableOfContents li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.toc-link,
#TableOfContents a {
  color: #333;
  font-size: 0.95rem;
  text-decoration: none;
}

.toc-link:hover,
#TableOfContents a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   3. .section-list
   セクション一覧。1項目=1リンクの箱。
   --------------------------------------------------------- */
.section-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-list ul li {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 18px;
}

.section-list ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  color: #2b3a44;
  font-family: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.12em;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(160, 196, 214, 0.7);
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.section-list ul li a::after {
  content: "›";
  font-size: 0.95em;
  opacity: 0.35;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.section-list ul li a:hover {
  color: #1a4b63;
  background: linear-gradient(#fff, #f4fbff);
  border-color: #7fb4c9;
  box-shadow:
    0 8px 22px rgba(90, 140, 165, 0.12),
    0 0 0 4px rgba(206, 239, 255, 0.45);
  transform: translateY(-2px);
}

.section-list ul li a:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.section-list ul li a:focus-visible {
  outline: 2px solid #7fb4c9;
  outline-offset: 3px;
}
