/* ===========================================================
   CRJ WEB — notes.css
   注釈・免責事項ページ専用(左 sticky 目次 + 本文)
   =========================================================== */

.notes-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 120px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

/* ===========================================================
   暫定版バナー
   =========================================================== */
.notes-draft-banner {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 14px 40px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  color: var(--fg);
  line-height: 1.75;
}

.notes-draft-banner strong {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-right: 10px;
}

/* ===========================================================
   左: sticky 目次
   =========================================================== */
.notes-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 12px;
}

.notes-toc-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  font-weight: 600;
  margin-bottom: 14px;
}

.notes-toc-item {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--fg-muted);
  border-left: 2px solid transparent;
  letter-spacing: -0.005em;
  line-height: 1.45;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notes-toc-item:hover {
  color: var(--fg);
  border-left-color: var(--line);
}

.notes-toc-item.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

/* ===========================================================
   右: 本文
   =========================================================== */
.notes-body {
  max-width: 760px;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg);
}

.notes-body > p {
  margin-bottom: 28px;
  color: var(--fg-muted);
}

.notes-section {
  margin-bottom: 64px;
  scroll-margin-top: 96px;
}

.notes-section:not(:first-of-type) {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.notes-section-num {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-subtle);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.notes-section h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 28px;
}

.notes-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.notes-section h3:first-of-type {
  margin-top: 0;
}

.notes-section p {
  margin-bottom: 16px;
  color: var(--fg);
}

.notes-section ul,
.notes-section ol {
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
}

.notes-section ul li,
.notes-section ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.8;
  color: var(--fg);
}

.notes-section ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--fg-muted);
}

.notes-section ol {
  counter-reset: step;
}

.notes-section ol > li {
  counter-increment: step;
  padding-left: 32px;
}

.notes-section ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.notes-section ol > li strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.notes-note {
  background: var(--bg-alt);
  padding: 14px 18px;
  border-left: 2px solid var(--fg-muted);
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin: 16px 0 24px;
  border-radius: 0 6px 6px 0;
}

.notes-meta {
  margin-top: 72px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.8;
}

.notes-meta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.notes-meta-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-subtle);
  font-weight: 600;
  min-width: 90px;
  padding-top: 4px;
}

.notes-disclaimer {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.85;
}

.notes-disclaimer strong {
  color: var(--accent);
  font-weight: 600;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .notes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 48px 24px 80px;
  }

  .notes-draft-banner {
    padding: 12px 24px;
  }

  /* モバイル:目次を横スクロール形式で上部に */
  .notes-toc {
    position: static;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
  }

  .notes-toc::-webkit-scrollbar {
    display: none;
  }

  .notes-toc-title {
    display: none;
  }

  .notes-toc-item {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .notes-toc-item.is-active {
    background: var(--fg);
    color: #fff;
    border-color: var(--fg);
  }

  .notes-section h2 {
    font-size: 19px;
  }

  .notes-body {
    font-size: 14px;
  }
}
