/* ============================================
   nyuko-checklist.css
   入稿チェックリスト & NG事例集 共通スタイル
   ============================================ */

/* ----- Hero ----- */
.nc-hero {
  min-height: 320px;
  background: linear-gradient(135deg, #E65100 0%, #FF8F00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -15px -15px 30px -15px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}
.nc-hero--alert {
  background: linear-gradient(135deg, #c62828 0%, #e53935 50%, #ff7043 100%);
}
.nc-hero__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.08;
}
.nc-hero__content {
  position: relative;
  z-index: 1;
}
.nc-hero__icon {
  font-size: 4em;
  margin-bottom: 16px;
  opacity: 0.9;
}
.nc-hero__title {
  color: #fff;
  font-size: 2.2em;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.nc-hero__sub {
  font-size: 1.15em;
  margin: 0 0 20px 0;
  opacity: 0.92;
}
.nc-hero__badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.nc-hero__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92em;
  background: rgba(255,255,255,0.18);
  padding: 6px 16px;
  border-radius: 20px;
}
.nc-hero__badge i {
  font-size: 1.1em;
}

/* ----- Safety Banner ----- */
.nc-safety {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 32px;
  margin: 30px 0;
}
.nc-safety__heading {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e7d32;
  margin: 0 0 20px 0;
}
.nc-safety__heading i {
  margin-right: 8px;
}
.nc-safety__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.nc-safety__item {
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #e0e0e0;
}
.nc-safety__item-icon {
  font-size: 2em;
  color: #2e7d32;
  margin-bottom: 10px;
}
.nc-safety__item-title {
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 6px;
  color: #333;
}
.nc-safety__item-desc {
  font-size: 0.85em;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.nc-safety__message {
  font-size: 0.95em;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}
.nc-safety__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nc-safety__btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nc-safety__btn:hover {
  opacity: 0.85;
  text-decoration: none;
}
.nc-safety__btn--primary {
  background: #2e7d32;
  color: #fff;
}
.nc-safety__btn--secondary {
  background: #fff;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

/* ----- Check Card ----- */
.nc-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}
.nc-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nc-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.nc-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #E65100;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1em;
  flex-shrink: 0;
}
.nc-card__title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* OK/NG Diagram */
.nc-card__diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.nc-diagram {
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.nc-diagram--ok {
  background: #e8f5e9;
  border: 2px solid #4caf50;
}
.nc-diagram--ng {
  background: #fbe9e7;
  border: 2px solid #e53935;
}
.nc-diagram__label {
  font-weight: bold;
  font-size: 0.85em;
  margin-bottom: 10px;
  display: block;
}
.nc-diagram--ok .nc-diagram__label {
  color: #2e7d32;
}
.nc-diagram--ng .nc-diagram__label {
  color: #c62828;
}
.nc-diagram__visual {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Specific CSS Diagrams */

/* 1. Bleed */
.nc-viz-bleed {
  width: 100px;
  height: 70px;
  position: relative;
  margin: 0 auto;
}
.nc-viz-bleed__inner {
  width: 80px;
  height: 50px;
  background: #42a5f5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.nc-viz-bleed__outer {
  width: 100px;
  height: 70px;
  background: #90caf9;
  position: absolute;
  top: 0;
  left: 0;
}
.nc-viz-bleed--ng .nc-viz-bleed__outer {
  display: none;
}
.nc-viz-bleed--ng .nc-viz-bleed__inner {
  border: 2px dashed #e53935;
}
.nc-viz-bleed--ok .nc-viz-bleed__inner {
  z-index: 1;
}

/* 2. Trim marks */
.nc-viz-trim {
  width: 90px;
  height: 60px;
  position: relative;
  margin: 0 auto;
  background: #f5f5f5;
  border: 1px solid #ccc;
}
.nc-viz-trim__mark {
  position: absolute;
  width: 12px;
  height: 12px;
}
.nc-viz-trim__mark--tl { top: -2px; left: -2px; border-top: 2px solid #333; border-left: 2px solid #333; }
.nc-viz-trim__mark--tr { top: -2px; right: -2px; border-top: 2px solid #333; border-right: 2px solid #333; }
.nc-viz-trim__mark--bl { bottom: -2px; left: -2px; border-bottom: 2px solid #333; border-left: 2px solid #333; }
.nc-viz-trim__mark--br { bottom: -2px; right: -2px; border-bottom: 2px solid #333; border-right: 2px solid #333; }

/* 3. CMYK color */
.nc-viz-color {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.nc-viz-color__swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.nc-viz-color--cmyk .nc-viz-color__swatch:nth-child(1) { background: #00758f; }
.nc-viz-color--cmyk .nc-viz-color__swatch:nth-child(2) { background: #8b4e6e; }
.nc-viz-color--cmyk .nc-viz-color__swatch:nth-child(3) { background: #5f8f3e; }
.nc-viz-color--rgb .nc-viz-color__swatch:nth-child(1) { background: #00e5ff; }
.nc-viz-color--rgb .nc-viz-color__swatch:nth-child(2) { background: #e040fb; }
.nc-viz-color--rgb .nc-viz-color__swatch:nth-child(3) { background: #76ff03; }

/* 4. Resolution */
.nc-viz-resolution {
  width: 70px;
  height: 50px;
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  border-radius: 4px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7em;
  font-weight: bold;
}
.nc-viz-resolution--blur {
  filter: blur(3px);
  background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
}

/* 5. Outline */
.nc-viz-outline {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 auto;
}
.nc-viz-outline--ok {
  color: #333;
  font-family: serif;
}
.nc-viz-outline--ng {
  color: #999;
  font-family: 'Courier New', monospace;
  letter-spacing: -1px;
}

/* 6. Safety margin */
.nc-viz-margin {
  width: 100px;
  height: 60px;
  border: 2px solid #999;
  position: relative;
  margin: 0 auto;
}
.nc-viz-margin__safe {
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed #4caf50;
}
.nc-viz-margin__text {
  position: absolute;
  font-size: 0.55em;
  font-weight: bold;
  color: #333;
}
.nc-viz-margin--ok .nc-viz-margin__text {
  top: 12px;
  left: 12px;
}
.nc-viz-margin--ng .nc-viz-margin__text {
  top: 2px;
  left: 2px;
  color: #e53935;
}
.nc-viz-margin--ng .nc-viz-margin__safe {
  border-color: #e53935;
}

/* 7. Rich black ink bar */
.nc-viz-ink {
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
}
.nc-viz-ink__bar {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  position: relative;
}
.nc-viz-ink__bar--ok {
  background: linear-gradient(90deg, #00bcd4 40%, #e91e63 26%, #ffeb3b 20%, #212121 34%);
  width: 68%;
}
.nc-viz-ink__bar--ng {
  background: linear-gradient(90deg, #00bcd4 25%, #e91e63 25%, #ffeb3b 25%, #212121 25%);
  width: 100%;
}
.nc-viz-ink__label {
  font-size: 0.7em;
  color: #666;
  text-align: right;
}

/* 8. Image embed */
.nc-viz-embed {
  width: 60px;
  height: 40px;
  background: #e3f2fd;
  border: 2px solid #42a5f5;
  border-radius: 4px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}
.nc-viz-embed--ng {
  border-color: #e53935;
  background: #fbe9e7;
  color: #e53935;
}

/* 9. Layer */
.nc-viz-layer {
  width: 100px;
  margin: 0 auto;
}
.nc-viz-layer__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  margin-bottom: 2px;
  font-size: 0.65em;
  border-radius: 3px;
}
.nc-viz-layer__row--hidden {
  opacity: 0.4;
  background: #fff3e0;
  border-color: #ffcc02;
}
.nc-viz-layer__eye {
  font-size: 0.9em;
}

/* 10. File format */
.nc-viz-format {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.nc-viz-format__icon {
  width: 36px;
  height: 42px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6em;
  font-weight: bold;
  color: #fff;
}
.nc-viz-format__icon--ai { background: #ff9a00; }
.nc-viz-format__icon--psd { background: #31a8ff; }
.nc-viz-format__icon--pdf { background: #e53935; }
.nc-viz-format__icon--ng { background: #bdbdbd; }

/* Card body text */
.nc-card__section {
  margin-bottom: 14px;
}
.nc-card__section-title {
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 4px;
}
.nc-card__section-title i {
  margin-right: 6px;
}
.nc-card__section p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.7;
  color: #444;
}
.nc-card__option-note {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 0.88em;
  color: #e65100;
  margin-top: 14px;
}
.nc-card__option-note i {
  margin-right: 6px;
}

/* ----- Software Tabs ----- */
.nc-tabs {
  margin: 30px 0;
}
.nc-tabs .nav-tabs {
  border-bottom: 2px solid #E65100;
}
.nc-tabs .nav-tabs .nav-link {
  color: #666;
  font-weight: bold;
  font-size: 0.95em;
  border: none;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  transition: background 0.2s;
}
.nc-tabs .nav-tabs .nav-link:hover {
  background: #fff3e0;
  color: #E65100;
}
.nc-tabs .nav-tabs .nav-link.active {
  background: #E65100;
  color: #fff;
  border: none;
}
.nc-tabs .tab-content {
  padding: 20px 0;
}
.nc-tabs .table thead tr {
  background: #FF8F00;
  color: #fff;
}
.nc-tabs .table thead th {
  border: none;
}

/* ----- NG Case Card (print-data-errors) ----- */
.nc-case {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #e53935;
  border-radius: 0 12px 12px 0;
  padding: 28px;
  margin-bottom: 28px;
}
.nc-case__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.nc-case__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9em;
  flex-shrink: 0;
}
.nc-case__title {
  font-size: 1.15em;
  font-weight: bold;
  color: #c62828;
  margin: 0;
}
.nc-case__diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.nc-case__arrow {
  font-size: 1.5em;
  color: #999;
}
.nc-case__section {
  margin-bottom: 12px;
}
.nc-case__section-title {
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 4px;
}
.nc-case__section p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.7;
  color: #444;
}
.nc-case__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e9;
  padding: 8px 16px;
  border-radius: 6px;
  color: #2e7d32;
  font-weight: bold;
  font-size: 0.9em;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.2s;
}
.nc-case__link:hover {
  background: #c8e6c9;
  text-decoration: none;
  color: #1b5e20;
}

/* ----- Cross-link Banner ----- */
.nc-crosslink {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px;
  margin: 30px 0;
  text-align: center;
}
.nc-crosslink__title {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
}
.nc-crosslink__text {
  font-size: 0.95em;
  color: #666;
  margin: 0 0 16px 0;
}
.nc-crosslink__btn {
  display: inline-block;
  padding: 12px 28px;
  background: #E65100;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nc-crosslink__btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}
.nc-crosslink__btn--green {
  background: #2e7d32;
}

/* ----- Bottom CTA ----- */
.nc-bottom-cta {
  background: linear-gradient(135deg, #E65100 0%, #FF8F00 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}
.nc-bottom-cta__title {
  color: #fff;
  margin: 0 0 12px 0;
  font-size: 1.4em;
}
.nc-bottom-cta__text {
  font-size: 1.05em;
  opacity: 0.95;
  margin: 0 0 24px 0;
  line-height: 1.7;
}
.nc-bottom-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nc-bottom-cta__btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nc-bottom-cta__btn:hover {
  opacity: 0.88;
  text-decoration: none;
}
.nc-bottom-cta__btn--primary {
  background: #fff;
  color: #E65100;
}
.nc-bottom-cta__btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.nc-bottom-cta__phone {
  margin-top: 20px;
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 0.9em;
}

/* ----- FAQ ----- */
.nc-faq {
  margin: 30px 0;
}
.nc-faq__item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.nc-faq__question {
  padding: 16px 20px;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 0.95em;
  color: #333;
  transition: background 0.2s;
}
.nc-faq__question:hover {
  background: #f0f0f0;
}
.nc-faq__question i {
  color: #E65100;
  transition: transform 0.2s;
}
.nc-faq__question[aria-expanded="true"] i {
  transform: rotate(45deg);
}
.nc-faq__answer {
  padding: 0 20px;
}
.nc-faq__answer .collapse.show,
.nc-faq__answer .collapsing {
  padding: 16px 0;
}

/* ----- Related Article Cards ----- */
.nc-related {
  margin: 30px 0;
}
.nc-related__card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.3s;
  border: 1px solid #e0e0e0;
}
.nc-related__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nc-related__icon {
  font-size: 2.5em;
  color: #E65100;
  margin-bottom: 15px;
}
.nc-related__title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 10px;
}
.nc-related__desc {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}
.nc-related__btn {
  background: #E65100;
  color: #fff;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.9em;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nc-related__btn:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

/* ----- Responsive ----- */
@media (max-width: 767px) {
  .nc-hero {
    min-height: 240px;
    padding: 30px 16px;
    margin: -15px -15px 20px -15px;
  }
  .nc-hero__title {
    font-size: 1.6em;
  }
  .nc-hero__badges {
    gap: 10px;
  }
  .nc-hero__badge {
    font-size: 0.8em;
    padding: 4px 12px;
  }
  .nc-safety {
    padding: 20px 16px;
  }
  .nc-safety__grid {
    grid-template-columns: 1fr;
  }
  .nc-card {
    padding: 20px 16px;
  }
  .nc-card__diagram {
    grid-template-columns: 1fr;
  }
  .nc-tabs .nav-tabs .nav-link {
    font-size: 0.82em;
    padding: 8px 12px;
  }
  .nc-case__diagram {
    grid-template-columns: 1fr;
  }
  .nc-case__arrow {
    transform: rotate(90deg);
    text-align: center;
  }
  .nc-bottom-cta {
    padding: 28px 20px;
  }
  .nc-bottom-cta__btn {
    width: 100%;
    text-align: center;
  }
}
