﻿.pdf-export-container {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 210mm;
  height: auto;
  background: #fff;
  color: #222;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  padding: 10mm;
  box-sizing: border-box;
  overflow: hidden;
}

.pdf-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5mm;
  flex-shrink: 0;
}

.pdf-logo {
  display: block;
  height: 3.5mm;
  width: auto;
}

.pdf-header {
  margin-bottom: 4mm;
  padding-bottom: 3mm;
  border-bottom: 2px solid #333;
}

.pdf-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pdf-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.pdf-header-meta {
  font-size: 8px;
  color: #aaa;
  text-align: right;
  white-space: nowrap;
  margin-top: 0;
}

.pdf-subtitle {
  font-size: 11px;
  color: #000;
  line-height: 1.4;
  margin-top: 3px;
}

.pdf-section {
  margin-bottom: 4mm;
}

/* =========== Gallery =========== */
.pdf-section-gallery-row {
  display: flex;
  align-items: flex-start;
  gap: 4mm;
  margin-bottom: 4mm;
}

.pdf-gallery-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  background: #f0f0f0;
  border: 0.5px solid #ccc;
}

.pdf-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========== Salespoints / Features =========== */
.pdf-section-features {
  page-break-inside: avoid;
}

.pdf-sp-large {
  display: flex;
  gap: 3mm;
  align-items: flex-start;
  margin-bottom: 4mm;
  padding-bottom: 4mm;
  border-bottom: 1px solid #ddd;
}

.pdf-sp-large .pdf-sp-img {
  width: 56mm;
  height: 42mm;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 2mm;
}

.pdf-sp-large .pdf-sp-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.pdf-sp-large .pdf-sp-desc {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
}

.pdf-sp-grid {
  display: flex;
  flex-direction: column;
}

.pdf-sp-pair {
  display: flex;
  gap: 0;
}

.pdf-sp-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pdf-sp-col:first-child {
  padding-right: 3mm;
}

.pdf-sp-col:last-child {
  padding-left: 3mm;
}

.pdf-sp-vline {
  width: 1px;
  background: #ccc;
  flex-shrink: 0;
}

.pdf-sp-item {
  display: flex;
  gap: 2mm;
  align-items: flex-start;
  padding: 2.5mm 0;
}

.pdf-sp-item .pdf-sp-img {
  width: 30mm;
  height: 22.5mm;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 2mm;
}

.pdf-sp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-sp-text {
  flex: 1;
  min-width: 0;
}

.pdf-sp-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.pdf-sp-desc {
  font-size: 10px;
  color: #555;
  line-height: 1.4;
}

.pdf-sp-hline {
  height: 1px;
  background: #e0e0e0;
  margin: 0;
}

.pdf-sp-col-left .pdf-sp-hline:last-child,
.pdf-sp-col-right .pdf-sp-hline:last-child {
  display: none;
}

/* =========== Section Divider =========== */
.pdf-section-divider {
  display: flex;
  align-items: center;
  margin: 5mm 0 4mm;
  gap: 3mm;
}

.pdf-section-divider::before,
.pdf-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}

.pdf-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

/* =========== Specs + SKU =========== */
.pdf-section-specs-skus {
  page-break-inside: avoid;
}

.pdf-specs-skus-row {
  display: flex;
  gap: 4mm;
}

.pdf-specs-left {
  flex: 1;
}

.pdf-skus-right {
  flex: 0 0 24%;
}

.pdf-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.pdf-spec-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.pdf-spec-table td {
  padding: 0.8mm 2mm;
  vertical-align: top;
}

.pdf-spec-k {
  width: 38%;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.pdf-spec-v {
  color: #555;
}

/* =========== SKU list (型番 / JAN) =========== */
.pdf-section-sku-list {
  page-break-inside: avoid;
}

.pdf-sku-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.pdf-sku-list-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.pdf-sku-list-table td {
  padding: 0.8mm 2mm;
  vertical-align: middle;
}

.pdf-sku-list-pn {
  width: 28%;
  font-weight: 600;
  color: #333;
}

.pdf-sku-list-jan {
  width: 32%;
  color: #555;
}

.pdf-sku-list-bc {
  width: 40%;
}

.pdf-sku-list-bc img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 100%;
}

.pdf-sku-grid {
  display: flex;
  flex-direction: column;
  gap: 2mm;
}

.pdf-sku-item {
  width: 100%;
  text-align: center;
}

.pdf-sku-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 1mm;
  margin-bottom: 3px;
}

.pdf-sku-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-sku-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* =========== SKU Barcode =========== */
.pdf-sku-barcode {
  margin-top: 2mm;
  padding-top: 1.5mm;
  border-top: 1px solid #ddd;
}

.pdf-sku-barcode-label {
  font-size: 7px;
  color: #999;
  margin-bottom: 1mm;
}

.pdf-sku-barcode-row {
  display: flex;
  gap: 2mm;
  align-items: flex-end;
}

.pdf-sku-barcode-img {
  flex: 0 0 auto;
}

.pdf-sku-barcode-img img {
  display: block;
  max-height: 42px;
  width: auto;
}
