/* Node Single Page Styles */

.node-single-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.node-single-container {
  padding: 0;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.breadcrumb-link {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #666;
}

.breadcrumb-current {
  color: #333;
  font-weight: bold;
}

/* Node Header */
.node-header {
  margin-bottom: 40px;
}

.category-badge {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.cat-red {
  background-color: #dc3545;
}

.node-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.3;
}

.node-id {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.premium-notice {
  margin-bottom: 20px;
}

.premium-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.premium-box strong {
  display: block;
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.contact-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.contact-link:hover {
  background-color: #0052a3;
}

/* Content Sections */
.node-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.section-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

/* Warning Section */
.warning-box {
  background-color: #fff3cd;
  border: 2px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
}

.warning-box p {
  margin: 0;
  color: #856404;
  font-weight: 500;
}

/* Info Sections */
.info-box, .data-box, .rules-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.info-box p, .data-box p, .rules-box p {
  margin: 0 0 10px 0;
  color: #333;
}

.rules-box table {
  width: 100%;
  border-collapse: collapse;
}

.rules-box th,
.rules-box td {
  padding: 6px 12px;      /* ← セルの内側に余白を追加 */
  text-align: left;       /* 左寄せ */
  vertical-align: middle; /* 行中央に揃える */
}

.rules-box th {
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.rules-box td {
  border-bottom: 1px solid #eee;
}



.data-items {
  font-weight: bold;
  color: #333;
}

.data-note {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.rules-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  color: #333;
}

.rules-list li:before {
  content: """;
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #333;
}

/* Evidence Section - Different design */
.evidence-box {
  background-color: #fff;
  border-left: 4px solid #0066cc;
  padding: 20px;
  margin-left: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evidence-box p {
  margin: 0 0 10px 0;
}

.evidence-link {
  color: #0066cc;
  text-decoration: none;
  word-break: break-all;
  font-family: monospace;
  font-size: 13px;
}

.evidence-link:hover {
  text-decoration: underline;
}

/* Accordion */
.accordion-section {
  margin-top: 40px;
}

.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background-color: #f8f9fa;
  border: none;
  padding: 15px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  background-color: #e9ecef;
}

.accordion-toggle {
  font-size: 14px;
  color: #666;
}

.accordion-content {
  padding: 20px;
  background-color: white;
  display: none;
}

.api-note {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-top: 15px;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 600px;
}

.params-table th {
  background-color: #f8f9fa;
  padding: 12px 16px;
  text-align: left;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.params-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: top;
  word-wrap: break-word;
}

.params-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Code Sections */
.code-section {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 30px;
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  z-index: 0;
}

.copy-btn:hover {
  background-color: #5a6268;
}

pre {
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 4px !important;
  padding: 20px 40px 20px 20px !important;
  font-family: 'Courier New', monospace !important;
  font-size: 14px !important;
  overflow-x: auto !important;
  white-space: pre !important;
  margin: 0 !important;
  max-height: 300px !important;
  overflow-y: auto !important;
}

pre code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: inherit !important;
}

/* Sample Code Section */
.sample-code-section {
  margin-top: 40px;
}

.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 0;
  border-bottom: 2px solid #dee2e6;
}

.tab-btn {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-bottom: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
}

.tab-btn.active {
  background-color: white;
  color: #333;
  border-bottom: 2px solid white;
  margin-bottom: -2px;
}

.tab-btn:not(.active):hover {
  background-color: #e9ecef;
}

.tab-content {
  display: none;
  position: relative;
  background: white;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.tab-content.active {
  display: block;
}

.tab-content pre {
  border: none !important;
  border-radius: 0 0 8px 8px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .node-single-section {
    padding: 30px 15px;
  }

  .node-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .premium-box {
    padding: 15px;
  }

  .accordion-header {
    padding: 12px 15px;
    font-size: 14px;
  }

  .code-block {
    font-size: 12px;
    padding: 15px;
  }

  .copy-btn {
    position: static;
    margin-bottom: 10px;
    display: block;
    width: fit-content;
  }
}