/* ==========================================================================
   LiveAgent Support JP — Monochrome Minimal
   Layout: category cards with subcategory pills + article lists
   Palette: grayscale only (AgentMail aesthetic)
   ========================================================================== */

/* Override theme's Material Symbols @font-face (prevent 313KB fallback load) */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
  src: local('Material Symbols Outlined');
}

/* System fonts only — no external loading (per DESIGN.md) */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --la-font: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN',
             'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --la-font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --la-text:       #111827;
  --la-text-sub:   #6b7280;
  --la-text-muted: #9ca3af;
  --la-border:     #e5e7eb;
  --la-border-soft:#f3f4f6;
  --la-bg:         #ffffff;
  --la-bg-hover:   #f9fafb;
  --la-icon-bg:    #f3f4f6;

  --la-radius:    12px;
  --la-radius-sm: 8px;
  --la-shadow:    0 1px 2px rgba(0,0,0,0.04);
  --la-shadow-hover: 0 2px 8px rgba(0,0,0,0.06);
}

/* Dark mode overrides — dark bg, blue borders on hover */
[data-dark-mode] {
  --la-text:       #e5e7eb;
  --la-text-sub:   #9ca3af;
  --la-text-muted: #6b7280;
  --la-border:     #374151;
  --la-border-soft:#1f2937;
  --la-bg:         #111827;
  --la-bg-hover:   #1f2937;
  --la-icon-bg:    #1f2937;
  --la-shadow:     0 1px 2px rgba(0, 0, 0, 0.2);
  --la-shadow-hover: 0 2px 8px rgba(0, 82, 204, 0.15);
}

/* Blue border on hover in dark mode */
[data-dark-mode] .lad-card:hover {
  border-color: #4a6fa5 !important;
}

/* Dark mode: fix text visibility on hover */
[data-dark-mode] .lad-card:hover .lad-card__title {
  color: #ffffff !important;
}

[data-dark-mode] .lad-card__header:hover .lad-card__title {
  color: #ffffff !important;
}

[data-dark-mode] .lad-articles__item a:hover {
  color: #e5e7eb !important;
}

[data-dark-mode] .lad-pill:hover {
  background: #1f2937;
  border-color: #4a6fa5;
  color: #e5e7eb;
}

[data-dark-mode] .lad-pill:hover .lad-pill__num {
  background: #4a6fa5;
  color: #ffffff;
}

[data-dark-mode] .docs-content p,
[data-dark-mode] .docs-content li,
[data-dark-mode] .docs-content td,
[data-dark-mode] article p,
[data-dark-mode] article li,
[data-dark-mode] article td {
  color: #d1d5db !important;
}

[data-dark-mode] .docs-content th,
[data-dark-mode] article th {
  background: #1f2937 !important;
  color: var(--la-text-sub) !important;
}

[data-dark-mode] .docs-content code,
[data-dark-mode] article code {
  background: #1f2937;
}

[data-dark-mode] .docs-content blockquote,
[data-dark-mode] article blockquote {
  background: #1f2937 !important;
  border-left-color: #374151 !important;
}

[data-dark-mode] .docs-content blockquote p,
[data-dark-mode] article blockquote p {
  color: #9ca3af !important;
}

[data-dark-mode] .docs-content a,
[data-dark-mode] article a {
  color: #e5e7eb !important;
}

[data-dark-mode] .docs-content a:hover,
[data-dark-mode] article a:hover {
  color: #fff !important;
}

/* Dark mode: icons to theme blue */
[data-dark-mode] .lad-card__icon .material-symbols-outlined {
  color: #4a6fa5 !important;
}

[data-dark-mode] .lad-card__icon {
  background: rgba(74, 111, 165, 0.15) !important;
}

[data-dark-mode] .lad-card__arrow {
  color: #4a6fa5 !important;
}

[data-dark-mode] .sidebar-home-link .material-symbols-outlined {
  color: #4a6fa5 !important;
}

[data-dark-mode] .sidebar-home-link a {
  color: #9ca3af !important;
}

[data-dark-mode] .sidebar-home-link a:hover {
  color: #4a6fa5 !important;
}

/* Sidebar chevrons / dropdown arrows */
[data-dark-mode] .sidebar-dropdown > .btn::after,
[data-dark-mode] .sidebar-menu .btn::after {
  color: #4a6fa5 !important;
  border-color: #4a6fa5 !important;
}

/* Search icon */
[data-dark-mode] #flexsearch-button .material-icons {
  color: #4a6fa5 !important;
}

/* Sidebar toggle icon */
[data-dark-mode] #close-sidebar .menu-icon::after {
  color: #4a6fa5 !important;
}

/* Dark mode toggle icon */
[data-dark-mode] #mode {
  color: #4a6fa5 !important;
}

/* Active sidebar item accent */
[data-dark-mode] .sidebar-dropdown.active > .btn {
  color: #4a6fa5 !important;
}

/* --------------------------------------------------------------------------
   2. Global
   -------------------------------------------------------------------------- */
body,
.docs-content,
.sidebar-wrapper,
.sidebar-menu,
.navbar {
  font-family: var(--la-font) !important;
  -webkit-font-smoothing: antialiased;
  color: var(--la-text);
}

/* --------------------------------------------------------------------------
   3. Content Area
   -------------------------------------------------------------------------- */
.lad-content {
  max-width: 960px;
  padding: 2rem 0 4rem;
}

.lad-intro {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--la-text-sub);
  line-height: 1.75;
}

.lad-intro p { margin-bottom: 0.75rem; }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.lad-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--la-border);
}

.lad-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--la-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lad-hero__sub {
  font-size: 0.875rem;
  color: var(--la-text-sub);
  margin: 0;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. Section Header (sub-pages)
   -------------------------------------------------------------------------- */
.lad-section-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--la-border);
}

.lad-section-header__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--la-text);
  margin: 0 0 0.375rem;
}

.lad-section-header__desc {
  font-size: 0.84rem;
  color: var(--la-text-sub);
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Grid
   -------------------------------------------------------------------------- */
.lad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.875rem;
  align-items: start;
}

/* --------------------------------------------------------------------------
   7. Card
   -------------------------------------------------------------------------- */
.lad-card {
  background: var(--la-bg);
  border: 1px solid var(--la-border);
  border-radius: var(--la-radius);
  overflow: hidden;
  box-shadow: var(--la-shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.lad-card:hover {
  box-shadow: var(--la-shadow-hover);
  border-color: #d1d5db;
}

/* --------------------------------------------------------------------------
   8. Card Header
   -------------------------------------------------------------------------- */
.lad-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.lad-card__header--plain {
  cursor: default;
}

.lad-card__header:hover {
  text-decoration: none !important;
}

.lad-card__header:hover .lad-card__title {
  color: #000;
}

/* --------------------------------------------------------------------------
   9. Icon
   -------------------------------------------------------------------------- */
.lad-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--la-radius-sm);
  background: var(--la-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lad-card__icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--la-text);
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* --------------------------------------------------------------------------
   10. Meta
   -------------------------------------------------------------------------- */
.lad-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lad-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--la-text);
  line-height: 1.35;
  transition: color 0.12s ease;
}

.lad-card__count {
  font-size: 0.72rem;
  color: var(--la-text-muted);
}

.lad-card__arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--la-text-muted);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.lad-card__header:hover .lad-card__arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   11. Card Body
   -------------------------------------------------------------------------- */
.lad-card__body {
  padding: 0 1.125rem 0.625rem;
  border-top: 1px solid var(--la-border-soft);
}

/* --------------------------------------------------------------------------
   12. Pills
   -------------------------------------------------------------------------- */
.lad-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.3rem;
  padding: 0.5rem 0 0.25rem;
}

.lad-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 2px 0.4rem;
  background: var(--la-border-soft);
  border: 1px solid var(--la-border);
  border-radius: 16px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--la-text-sub);
  text-decoration: none !important;
  line-height: 1.3;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.lad-pill:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: var(--la-text);
  text-decoration: none !important;
}

.lad-pill__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border-radius: 8px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #4b5563;
  min-width: 17px;
  height: 16px;
  transition: background 0.12s ease, color 0.12s ease;
}

[data-dark-mode] .lad-pill__num {
  background: #374151;
  color: #d1d5db;
}

/* Sidebar article count badge */
.article-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  border-radius: 8px;
  padding: 0 5px;
  margin-left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4b5563;
  min-width: 18px;
  height: 17px;
  vertical-align: middle;
  line-height: 1;
}

[data-dark-mode] .article-count-badge {
  background: #374151;
  color: #d1d5db;
}

.lad-pill:hover .lad-pill__num {
  background: #d1d5db;
  color: var(--la-text-sub);
}

/* --------------------------------------------------------------------------
   13. Article List
   -------------------------------------------------------------------------- */
/* Expandable article list */
.lad-articles__hidden {
  display: none;
}
.lad-articles--expanded .lad-articles__hidden {
  display: list-item;
}

/* Full-width card for direct articles */
.lad-card--full {
  grid-column: 1 / -1;
}

/* Article list (single column) */
.lad-articles--two-col {
  display: block;
}

/* Flat article list (no card frame) */
.lad-articles--flat {
  margin-top: 0 !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Rich article list (B+C+D style)
   -------------------------------------------------------------------------- */
.lad-article-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lad-article-list__item {
  list-style: none !important;
}

.lad-article-list__item::before,
.lad-article-list__item::marker {
  content: none !important;
  display: none !important;
}

.lad-article-list__item {
  border-bottom: 1px solid var(--la-border);
}

.lad-article-list__item:last-child {
  border-bottom: none;
}

.lad-article-list__item:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

[data-dark-mode] .lad-article-list__item:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.lad-article-list__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none !important;
  color: var(--la-text) !important;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.lad-article-list__link:hover {
  background: rgba(74, 111, 165, 0.06);
}

[data-dark-mode] .lad-article-list__link:hover {
  background: rgba(74, 111, 165, 0.12);
}

.lad-article-list__icon {
  font-size: 1.1rem;
  color: var(--la-text-muted);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.lad-article-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.lad-article-list__title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--la-text);
}

.lad-article-list__link:hover .lad-article-list__title {
  color: #4a6fa5;
}

.lad-article-list__desc {
  font-size: 0.75rem;
  color: var(--la-text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lad-articles {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.375rem 0 0 !important;
}

.lad-pills + .lad-articles {
  margin-top: 0.375rem !important;
  padding-top: 0.375rem !important;
  border-top: 1px solid var(--la-border-soft);
}

.lad-articles__item {
  margin: 0 !important;
  padding: 0.1rem 0 !important;
  line-height: 1.3 !important;
}

.lad-articles__item a {
  font-size: 0.78rem;
  color: var(--la-text-sub);
  text-decoration: none !important;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.12s ease;
  line-height: 1.35;
}

.lad-articles__item a:hover {
  color: var(--la-text);
  text-decoration: none !important;
}

.lad-articles__more {
  margin: 0.375rem 0 0 !important;
  padding: 0 !important;
}

.lad-articles__more a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--la-text);
  text-decoration: none !important;
}

.lad-articles__more a:hover {
  text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   14. Article Page Typography
   -------------------------------------------------------------------------- */
.docs-content h1, article h1 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--la-text) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.35 !important;
  margin-bottom: 1.5rem !important;
}

.docs-content h2, article h2 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--la-text) !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--la-border) !important;
}

.docs-content h2:first-of-type, article h2:first-of-type {
  margin-top: 1rem !important;
  border-top: none !important;
  padding-top: 0 !important;
}

.docs-content h3, article h3 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--la-text) !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
}

.docs-content p, article p {
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #374151 !important;
  margin-bottom: 1.25rem !important;
}

.docs-content a, article a {
  color: var(--la-text) !important;
  text-decoration: none !important;
}

.docs-content a:hover, article a:hover {
  color: #000 !important;
  text-decoration: underline !important;
}

/* Lists */
.docs-content ul, .docs-content ol, article ul, article ol {
  margin-top: 0.5rem !important;
  margin-bottom: 1.25rem !important;
  padding-left: 1.25rem !important;
}

.docs-content li, article li {
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
  margin-bottom: 0.375rem !important;
  color: #374151 !important;
}

/* Tables */
.docs-content table, article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem !important;
  font-size: 0.84rem !important;
}

.docs-content th, article th {
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--la-text-sub) !important;
  background: #f9fafb !important;
  padding: 0.5rem 0.75rem !important;
  border-bottom: 1px solid var(--la-border) !important;
  text-align: left;
}

.docs-content td, article td {
  padding: 0.6rem 0.75rem !important;
  border-bottom: 1px solid var(--la-border-soft) !important;
  color: #374151 !important;
}

/* Code blocks (reference: IDR-Docs) */
.docs-content pre, article pre {
  margin: 1rem 0 1.5rem !important;
  padding: 1rem !important;
  border-radius: var(--la-radius-sm);
  font-size: 0.75rem !important;
  line-height: 1.6 !important;
  overflow-x: auto;
}

.docs-content pre code, article pre code {
  font-family: var(--la-font-mono) !important;
  font-size: 0.75rem !important;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.docs-content code, article code {
  font-family: var(--la-font-mono) !important;
  font-size: 0.8125em !important;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--la-icon-bg);
}

/* --------------------------------------------------------------------------
   Code Tabs (pill-style — reference: intwk.co.jp)
   -------------------------------------------------------------------------- */
.code-tabs {
  margin: 1rem 0 1.5rem;
}

.code-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.code-tabs__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--la-border);
  background: var(--la-bg-hover);
  cursor: pointer;
  font-family: var(--la-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--la-text-sub);
  border-radius: 9999px;
  transition: all 0.15s;
  line-height: 1.4;
}

.code-tabs__btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: var(--la-text);
}

.code-tabs__btn.active {
  color: #fff;
  background: #374151;
  border-color: #374151;
}

.code-tabs__content {
  border: 1px solid var(--la-border);
  border-radius: var(--la-radius-sm);
  background: var(--la-bg);
  overflow: hidden;
}

.code-tabs__pane {
  display: none;
}

.code-tabs__pane.active {
  display: block;
}

.code-tabs__pane pre {
  margin: 0 !important;
  border: none !important;
  border-radius: 0;
  max-height: 400px;
  overflow: auto;
}

[data-dark-mode] .code-tabs__btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

[data-dark-mode] .code-tabs__btn:hover {
  background: #374151;
  color: #e5e7eb;
}

[data-dark-mode] .code-tabs__btn.active {
  background: #4a6fa5;
  border-color: #4a6fa5;
  color: #fff;
}

/* Blockquotes */
.docs-content blockquote, article blockquote {
  margin: 1rem 0 1.5rem !important;
  padding: 0.875rem 1rem !important;
  border-left: 3px solid var(--la-border) !important;
  background: #f9fafb !important;
  border-radius: 0 var(--la-radius-sm) var(--la-radius-sm) 0;
}

.docs-content blockquote p, article blockquote p {
  margin: 0 !important;
  color: var(--la-text-sub) !important;
}

/* --------------------------------------------------------------------------
   15a. Collapsible details/summary
   -------------------------------------------------------------------------- */
.docs-content details {
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--la-border);
  border-radius: var(--la-radius-sm);
  padding: 0;
}

.docs-content details summary {
  padding: 0.625rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--la-text);
  cursor: pointer;
  background: var(--la-bg-hover);
  border-radius: var(--la-radius-sm);
}

.docs-content details[open] summary {
  border-bottom: 1px solid var(--la-border);
  border-radius: var(--la-radius-sm) var(--la-radius-sm) 0 0;
}

.docs-content details > :not(summary) {
  padding: 0 1rem;
}

.docs-content details ul {
  padding-left: 1.5rem !important;
}

/* --------------------------------------------------------------------------
   15. YouTube
   -------------------------------------------------------------------------- */
.youtube-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--la-radius);
  background: var(--la-icon-bg);
}

.youtube-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: var(--la-radius);
}

/* --------------------------------------------------------------------------
   16. Sidebar
   -------------------------------------------------------------------------- */
.sidebar-wrapper, #sidebar {
  font-size: 0.84rem !important;
}

.sidebar-menu a,
.sidebar-nested-link,
.sidebar-wrapper li a,
#sidebar li a,
.sidebar-menu li {
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
}

.sidebar-menu .btn {
  font-size: 0.84rem !important;
}

.sidebar-wrapper .sidebar-header,
#sidebar .sidebar-header {
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .lad-content { padding: 1.5rem 0 3rem; }
  .lad-hero__title { font-size: 1.25rem; }
  .lad-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .lad-card__title { white-space: normal; }
  .lad-articles__item a { white-space: normal; overflow: visible; }
}

/* --------------------------------------------------------------------------
   17b. TOC fix (prevent overlap with content)
   -------------------------------------------------------------------------- */
.docs-toc-mobile {
  position: relative !important;
  z-index: 100;
  background: var(--la-bg) !important;
  border: 1px solid var(--la-border);
  border-radius: var(--la-radius-sm);
  margin-bottom: 1rem;
}

.docs-toc-mobile .dropdown-menu {
  z-index: 1050 !important;
  position: absolute !important;
  background: var(--la-bg) !important;
  border: 1px solid var(--la-border);
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Desktop TOC - fix stacking */
.docs-toc {
  position: sticky !important;
  top: 1rem;
  z-index: 1;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   17c. API method badges (GET/POST/PUT/DELETE)
   -------------------------------------------------------------------------- */
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: #fffef5;
  border: 1px solid #e5e1c8;
  border-radius: var(--la-radius-sm);
  margin: 0.5rem 0 1rem;
  font-family: var(--la-font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
}

[data-dark-mode] .api-endpoint {
  background: #1a1a14;
  border-color: #3d3b2e;
}

.api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--la-font);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  color: #fff;
}

.api-method--get { background: #4a90d9; }
.api-method--post { background: #49b675; }
.api-method--put { background: #e5a335; }
.api-method--delete { background: #e54f4f; }

/* --------------------------------------------------------------------------
   18. Theme overrides
   -------------------------------------------------------------------------- */
.card { padding: 0 !important; min-height: auto !important; }
.card .card-body { padding: 0 !important; }

/* Hide prev/next navigation links */
#doc-nav,
#doc-nav + *,
.doc-hr {
  display: none !important;
}

/* Breadcrumbs */
.breadcrumb,
.breadcrumb-item,
.breadcrumb-item a {
  font-size: 0.72rem !important;
}

.breadcrumb-item .material-icons {
  font-size: 14px !important;
}

/* Add spacing between breadcrumbs and content */
.docs-content > .mb-0.d-flex {
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.docs-content > .mb-0.d-flex > h1.content-title {
  margin-bottom: 0.5rem !important;
}

/* --------------------------------------------------------------------------
   18b. Sidebar logo (light/dark mode)
   -------------------------------------------------------------------------- */
.sidebar-logo {
  max-width: 160px;
  height: auto;
}

.sidebar-logo--dark {
  display: none;
}

[data-dark-mode] .sidebar-logo--light {
  display: none;
}

[data-dark-mode] .sidebar-logo--dark {
  display: inline;
}

/* --------------------------------------------------------------------------
   19. Sidebar home link
   -------------------------------------------------------------------------- */
.sidebar-home-link {
  padding: 0.5rem 1rem 0.25rem;
  border-bottom: 1px solid var(--la-border);
  margin-bottom: 0.25rem;
}

.sidebar-home-link a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--la-text-sub);
  text-decoration: none !important;
  padding: 0.25rem 0;
  transition: color 0.12s ease;
}

.sidebar-home-link a:hover {
  color: var(--la-text);
  text-decoration: none !important;
}

.sidebar-home-link .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* --------------------------------------------------------------------------
   19b. Sidebar external links (footer)
   -------------------------------------------------------------------------- */
#sidebar {
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-content {
  flex: 1;
  overflow-y: auto;
}

.sidebar-external-links {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--la-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sidebar-external-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--la-text-sub);
  text-decoration: none !important;
  padding: 0.3rem 0;
  transition: color 0.12s ease;
}

.sidebar-external-links a:hover {
  color: var(--la-text);
}

.sidebar-external-links .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

[data-dark-mode] .sidebar-external-links a:hover {
  color: #4a6fa5;
}

/* --------------------------------------------------------------------------
   20. Fix list dots / markers globally
   -------------------------------------------------------------------------- */
.sidebar-menu,
.sidebar-menu ul,
.sidebar-submenu ul,
.lad-articles,
.lad-pills {
  list-style: none !important;
  list-style-type: none !important;
}

.sidebar-menu li,
.sidebar-submenu li,
.lad-articles li {
  list-style: none !important;
  list-style-type: none !important;
}

.sidebar-menu li::before,
.sidebar-submenu li::before,
.sidebar-menu li::marker,
.sidebar-submenu li::marker,
.lad-articles li::before,
.lad-articles li::marker {
  content: none !important;
  display: none !important;
}

/* Sidebar toggle icon - swap hamburger for panel icons via CSS */
#close-sidebar .menu-icon {
  font-size: 0 !important;    /* hide original "menu" text */
  width: 20px;
  height: 20px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

#close-sidebar .menu-icon::after {
  font-family: 'Material Symbols Outlined';
  content: 'left_panel_open';
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

.page-wrapper.toggled #close-sidebar .menu-icon::after {
  content: 'left_panel_close';
}

/* Also kill any underline dots on links inside cards */
.lad-card a,
.lad-card a:link,
.lad-card a:visited,
.lad-pill,
.lad-pill:link,
.lad-pill:visited {
  text-decoration: none !important;
  text-decoration-style: none !important;
  text-decoration-line: none !important;
}

/* =========================================================
   特設ページ (content/ja/special/) — サイドバーセクション
   ========================================================= */
.sidebar-special-section {
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid var(--la-border, #e5e7eb);
  border-bottom: 1px solid var(--la-border, #e5e7eb);
  background: var(--la-bg-subtle, #fafafa);
}
.sidebar-special-section .sidebar-section-heading {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--la-text-muted, #6b7280);
  padding: 0.25rem 0.25rem 0.4rem;
}
.sidebar-special-list { list-style: none; padding: 0; margin: 0; }
.sidebar-special-list li { margin: 0; }
.sidebar-special-list a {
  display: block; padding: 0.35rem 0.5rem; font-size: 0.8rem;
  color: var(--la-text, #1f2937); text-decoration: none;
  border-radius: 4px; line-height: 1.35;
}
.sidebar-special-list a:hover {
  background: var(--la-bg-hover, #f3f4f6);
  color: var(--la-accent, #0366d6);
}
/* Dark mode overrides for 特設ページ sidebar section */
[data-dark-mode] .sidebar-special-section {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-dark-mode] .sidebar-special-section .sidebar-section-heading {
  color: #9ca3af;
}
[data-dark-mode] .sidebar-special-list a {
  color: #e5e7eb;
}
[data-dark-mode] .sidebar-special-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #60a5fa;
}

/* =========================================================
   キャンペーン／特設ページ本体
   ========================================================= */
body.campaign-page {
  margin: 0; font-family: 'Noto Sans JP', 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a; background: #fafafa; line-height: 1.75;
}
body.campaign-page * { box-sizing: border-box; }

.campaign-topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e5e7eb; }
.campaign-topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; }
.campaign-back-link, .campaign-brand-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #374151; text-decoration: none; transition: color .15s; }
.campaign-back-link:hover, .campaign-brand-link:hover { color: #0366d6; }
.campaign-back-link .material-symbols-outlined { font-size: 18px; }
.campaign-brand-link { font-weight: 600; }

.campaign-main { max-width: 880px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.campaign-updated { text-align: right; margin: 0 0 -0.5rem; }
.campaign-updated-pill { display: inline-block; padding: 0.25rem 0.75rem; background: #eff6ff; color: #0366d6; font-size: 0.78rem; font-weight: 600; border-radius: 999px; letter-spacing: 0.02em; }
.campaign-article h1 { font-size: 2.4rem; line-height: 1.35; margin: 1.5rem 0 1rem; font-weight: 700; color: #1a1a1a; }
.campaign-article h2 { font-size: 2rem; line-height: 1.4; margin: 3rem 0 1.25rem; font-weight: 700; border-left: 5px solid #0366d6; padding-left: 1rem; color: #1a1a1a; }
.campaign-article h3 { font-size: 1.45rem; line-height: 1.45; margin: 2rem 0 0.85rem; font-weight: 700; color: #1a1a1a; }
.campaign-article h4 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; font-weight: 700; color: #1a1a1a; }
.campaign-article p { font-size: 1rem; line-height: 1.85; }
.campaign-article p { margin: 0.75rem 0; }
.campaign-article hr { border: none; border-top: 1px solid #e5e7eb; margin: 2.5rem 0; }
.campaign-article table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.campaign-article th, .campaign-article table td { border: 1px solid #e5e7eb; padding: 0.6rem 0.75rem; text-align: left; }
.campaign-article th { background: #f3f4f6; font-weight: 600; }
.campaign-article a { color: #0366d6; }

.campaign-hero { margin: 1.5rem 0 2.5rem; padding: 3rem 2rem; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: #f9fafb; border-radius: 12px; text-align: center; }
.campaign-hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; opacity: 0.7; margin-bottom: 1rem; font-family: 'Inter', sans-serif; }
.campaign-hero .badge { display: inline-block; padding: 0.35rem 0.85rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 0.78rem; margin-bottom: 1.5rem; }
.campaign-hero .badge .highlight { color: #fbbf24; }
.campaign-hero .hero-status-bar { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.campaign-hero .hero-status-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
.campaign-hero .hero-status-pill .material-symbols-outlined { font-size: 1.15rem; font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24; }
.campaign-hero .hero-status-pill.ended { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.campaign-hero .hero-status-pill.warning { background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%); color: #fff; border: 1px solid rgba(251, 191, 36, 0.7); font-size: 1.02rem; padding: 0.6rem 1.15rem; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); animation: hero-pulse 2.4s ease-in-out infinite; }
.campaign-hero .hero-status-pill.warning strong { color: #fff; font-weight: 800; font-size: 1.15em; padding: 0 0.1em; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.campaign-hero .hero-status-source { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; font-size: 0.78rem; color: rgba(255,255,255,0.75); margin: 0 0 1.5rem; font-family: 'Inter', sans-serif; letter-spacing: 0.03em; }
.campaign-hero .hero-status-source .material-symbols-outlined { font-size: 1rem; color: #38bdf8; font-variation-settings: 'FILL' 1, 'wght' 500; }
@keyframes hero-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6); }
}
@media (max-width: 600px) {
  .campaign-hero .hero-status-bar { flex-direction: column; gap: 0.5rem; }
  .campaign-hero .hero-status-pill.warning { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-hero .hero-status-pill.warning { animation: none; }
}
.campaign-hero .hero-title { font-size: 2.4rem; font-weight: 700; line-height: 1.35; margin: 0 0 1rem; color: #fff; border: none; padding: 0; }
.campaign-hero .hero-title .accent { color: #fbbf24; }
.campaign-hero .hero-subtitle { font-size: 1rem; opacity: 0.85; margin: 0; }

.inbox-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.inbox-panel { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.inbox-panel.before .panel-label { background: #f3f4f6; color: #374151; }
.inbox-panel.after .panel-label { background: #fef2f2; color: #991b1b; }
.inbox-panel .panel-label { padding: 0.5rem 0.85rem; font-size: 0.8rem; font-weight: 600; }
.inbox-panel .inbox-table { width: 100%; font-size: 0.82rem; }
.inbox-panel .inbox-table td { border: none; border-bottom: 1px solid #f3f4f6; padding: 0.5rem 0.75rem; }
.inbox-panel .muted { color: #9ca3af; }
.tag { display: inline-block; padding: 0.15rem 0.5rem; font-size: 0.7rem; border-radius: 4px; font-weight: 600; }
.tag-gmail { background: #e0e7ff; color: #3730a3; }
.tag-domain { background: #dcfce7; color: #166534; }
.tag-missing { background: #fee2e2; color: #991b1b; }

.check-box { background: #f0f9ff; border-left: 4px solid #0ea5e9; padding: 1.25rem 1.5rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; }
.check-box h3 { margin-top: 0; font-size: 1rem; }
.check-steps { padding-left: 1.25rem; }
.check-steps li { margin: 0.5rem 0; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.timeline-item { text-align: center; padding: 1rem; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; }
.timeline-item.past { opacity: 0.55; }
.timeline-item.current { border-color: #f59e0b; background: #fffbeb; }
.timeline-item.future { border-color: #dc2626; background: #fef2f2; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: #9ca3af; margin: 0 auto 0.5rem; }
.timeline-item.current .timeline-dot { background: #f59e0b; }
.timeline-item.future .timeline-dot { background: #dc2626; }
.timeline-date { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
.timeline-desc { font-size: 0.8rem; line-height: 1.5; }

.misconception { background: #fef9c3; border-left: 4px solid #eab308; padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; margin: 1rem 0; }
.misconception h4 { margin-top: 0; color: #854d0e; }

.keyfact { background: #f3f4f6; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid #6b7280; }
.keyfact.highlight { background: #eff6ff; border-left-color: #2563eb; }
.keyfact.warning { background: #fef2f2; border-left-color: #dc2626; }
.keyfact h4 { margin-top: 0; }
.keyfact.summer-deal { position: relative; background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 60%, #fee2e2 100%); border-left: 4px solid #f97316; padding: 1.6rem 1.75rem 1.4rem; box-shadow: 0 4px 18px rgba(249, 115, 22, 0.12); }
.keyfact.summer-deal .summer-deal-badge { position: absolute; top: -0.7rem; left: 1.5rem; background: linear-gradient(135deg, #f97316 0%, #dc2626 100%); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; padding: 0.3rem 0.8rem; border-radius: 999px; font-family: 'Inter', sans-serif; box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3); }
.keyfact.summer-deal h4 { margin-top: 0.4rem; color: #9a3412; font-size: 1.15rem; }
.keyfact.summer-deal p { margin-bottom: 0.85rem; }
.keyfact.summer-deal p strong { color: #b91c1c; }
.keyfact.summer-deal .summer-timeline { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.45rem; }
.keyfact.summer-deal .summer-timeline li { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(249, 115, 22, 0.25); border-radius: 6px; padding: 0.55rem 0.85rem; font-size: 0.9rem; }
.keyfact.summer-deal .summer-timeline li strong { display: inline-block; min-width: 9.5em; color: #c2410c; font-weight: 700; }

.solution-hero { background: linear-gradient(135deg, #0366d6 0%, #0052a3 100%); color: #f9fafb; padding: 2rem; border-radius: 12px; margin: 2rem 0; text-align: center; box-shadow: 0 10px 30px rgba(3, 102, 214, 0.25); }
.solution-hero .solution-eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; opacity: 0.65; margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }
.solution-hero h2 { border: none; padding: 0; color: #fff; font-size: 1.6rem; margin: 0.5rem 0 0.75rem; }
.solution-hero p { opacity: 0.9; margin: 0; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.benefit-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.5rem 1.25rem; }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #0366d6; margin-bottom: 0.75rem; }
.benefit-icon .material-symbols-outlined { font-size: 32px; font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 32; }
.benefit-card h3 { font-size: 1.05rem; margin: 0.35rem 0 0.6rem; font-weight: 700; color: #1a1a1a; }
.benefit-card p { font-size: 0.88rem; margin: 0; color: #4b5563; line-height: 1.7; }

.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; }
.steps-list li { counter-increment: step; padding: 1rem 1rem 1rem 3.5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 0.75rem; position: relative; }
.steps-list li::before { content: counter(step); position: absolute; left: 0.85rem; top: 1rem; width: 2rem; height: 2rem; background: #0366d6; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }
.step-title { font-weight: 600; margin-bottom: 0.4rem; }
.step-time { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.5rem; background: #f3f4f6; color: #6b7280; font-size: 0.72rem; border-radius: 4px; font-weight: 500; }

.campaign-banner { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 1px solid #f59e0b; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.campaign-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #b45309; flex-shrink: 0; }
.campaign-icon .material-symbols-outlined { font-size: 26px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 26; }
.campaign-banner h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.campaign-banner p { margin: 0; font-size: 0.88rem; }
.campaign-banner code { background: #fff; padding: 0.15rem 0.45rem; border-radius: 4px; font-weight: 700; }

.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.cta-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cta-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.cta-card.primary { border-color: #0366d6; background: linear-gradient(135deg, #0366d6 0%, #0052a3 100%); color: #fff; }
.cta-card.primary h3,
.cta-card.primary p,
.cta-card.primary .cta-label,
.cta-card.primary .cta-button { color: #fff; }
.cta-card .cta-label { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.92; font-family: 'Inter', sans-serif; }
.cta-card h3 { margin: 0.5rem 0 0.75rem; font-size: 1.1rem; line-height: 1.4; }
.cta-card p { font-size: 0.85rem; margin: 0 0 1rem; opacity: 0.88; flex: 1; }
.cta-card .cta-button { font-weight: 600; font-size: 0.88rem; }
.cta-card.primary .cta-button { color: #fff; }

.final-cta { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: #fff; padding: 2.5rem 1.5rem; border-radius: 12px; text-align: center; margin: 2.5rem 0 1rem; }
.final-cta h2 { border: none; padding: 0; color: #fff; font-size: 1.6rem; margin: 0 0 0.75rem; }
.final-cta p { margin: 0 0 1.25rem; opacity: 0.9; }
.btn-primary-lg { display: inline-block; padding: 0.85rem 2rem; background: #fbbf24; color: #0f172a; font-weight: 700; border-radius: 999px; text-decoration: none; transition: background .15s; }
.btn-primary-lg:hover { background: #f59e0b; color: #0f172a; }

.campaign-footer { border-top: 1px solid #e5e7eb; background: #fff; margin-top: 3rem; }
.campaign-footer-inner { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #6b7280; }
.campaign-footer nav { display: flex; gap: 1.25rem; }
.campaign-footer nav a { color: #374151; text-decoration: none; }
.campaign-footer nav a:hover { color: #0366d6; }

@media (max-width: 720px) {
  .campaign-hero { padding: 2rem 1.25rem; }
  .campaign-hero .hero-title { font-size: 1.6rem; }
  .inbox-comparison { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .campaign-footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
