/* 仕訳の登録例（journal-examples.html。scripts/build-journal-examples.cjs が生成）— blog.css の上に重ねる */
html.theme-ocean .journal-examples {
  max-width: 52rem;
}

html.theme-ocean .journal-examples-lead {
  margin: 0.5rem 0 0;
  line-height: 1.8;
  color: var(--cream);
}

html.theme-ocean .journal-examples-intro {
  margin: 0 0 1.5rem;
  color: var(--cream);
  line-height: 1.8;
}

html.theme-ocean .journal-examples-intro p {
  margin: 0 0 0.7rem;
}

html.theme-ocean .journal-examples-index {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 10px;
}

html.theme-ocean .journal-examples-index h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}

html.theme-ocean .journal-examples-index h3 {
  margin: 0.8rem 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cream);
}

html.theme-ocean .journal-examples-index ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 1.5rem;
}

html.theme-ocean .journal-examples-index li {
  break-inside: avoid;
  margin: 0;
}

html.theme-ocean .journal-examples-index a {
  display: block;
  padding: 0.3rem 0;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

html.theme-ocean .journal-examples-index a:hover {
  text-decoration: underline;
}

html.theme-ocean .example {
  margin: 0 0 2.25rem;
  scroll-margin-top: 5rem;
}

/* 場面の分類（売上・入金 など）。例のタイトル（h3）・手順の見出し（h4）より大きく */
html.theme-ocean .blog-article-body h2.example-category {
  margin: 2.75rem 0 1.25rem;
  scroll-margin-top: 5rem;
}

html.theme-ocean .blog-article-body .example h3.example-title {
  margin-top: 0;
  font-size: 1.15rem;
}

html.theme-ocean .blog-article-body .example h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}

html.theme-ocean .example-when {
  font-weight: 600;
}

html.theme-ocean .example-table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.55);
}

html.theme-ocean .example-table th,
html.theme-ocean .example-table td {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  text-align: left;
  vertical-align: top;
  color: var(--cream);
  overflow-wrap: anywhere;
}

html.theme-ocean .example-table th {
  background: rgba(var(--brand-blue-rgb), 0.1);
  font-weight: 700;
  white-space: nowrap;
}

html.theme-ocean .example-table .amount {
  text-align: right;
  white-space: nowrap;
}

html.theme-ocean .example-notes {
  font-size: 0.95rem;
}

html.theme-ocean .example-blog {
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  html.theme-ocean .journal-examples-index ol {
    columns: 1;
  }

  html.theme-ocean .journal-examples-index a {
    padding: 0.55rem 0;
  }

  /* 表は1行ずつのカードにして、横スクロールを出さない */
  html.theme-ocean .example-table,
  html.theme-ocean .example-table tbody,
  html.theme-ocean .example-table tr,
  html.theme-ocean .example-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  html.theme-ocean .example-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  html.theme-ocean .example-table tr {
    margin-bottom: 0.6rem;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 8px;
    overflow: hidden;
  }

  html.theme-ocean .example-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    border: 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
    text-align: right;
  }

  html.theme-ocean .example-table td:last-child {
    border-bottom: 0;
  }

  html.theme-ocean .example-table td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
  }

  html.theme-ocean .example-table .amount {
    white-space: normal;
  }
}
