:root {
  --brand: #FF6519;
  --brand-dark: #C03A00;
  --brand-darker: #7A2400;
  --brand-light: #FFB088;
  --ink: #1f1f1f;
  --ink-sub: #555;
  --card-border: #E5E5E5;
  --bg: #f5f5f5;

  --sheet-w: 210mm;
  --sheet-h: 297mm;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.sheet {
  width: var(--sheet-w);
  min-height: var(--sheet-h);
  margin: 16px auto;
  padding: 12mm 10mm 10mm;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  position: relative;
  background: linear-gradient(90deg, var(--brand-darker) 0%, var(--brand-dark) 35%, var(--brand) 100%);
  color: #fff;
  border-radius: 4px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}

.header__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}

.header__subtitle {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.header__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.header__badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 24px;
  white-space: nowrap;
  z-index: 1;
}

/* Grid */
.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
  flex: 1;
}

/* Card */
.card {
  position: relative;
  border: 1.4px solid var(--brand);
  border-radius: 6px;
  padding: 8px 12px 10px;
  background: #fff;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card__no {
  position: absolute;
  top: 5px;
  right: 9px;
  font-size: 10px;
  color: var(--ink-sub);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.card__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.card__name .honorific {
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
  color: var(--ink-sub);
}

.card__company {
  font-size: 12px;
  color: var(--ink-sub);
  line-height: 1.3;
  font-weight: 600;
}

.card__desc {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.4;
  flex: 1;
  word-break: break-word;
}

.card__industry {
  margin-top: 4px;
  display: inline-block;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.card__industry:empty {
  display: none;
}

/* Footer */
.footer {
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
}

.footer__note {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Actions (画面のみ) */
.actions {
  text-align: center;
  margin: 12px 0 24px;
}

.actions button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,101,25,0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,101,25,0.5);
}

/* Print */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html, body { background: #fff; }
  .sheet {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .no-print { display: none !important; }
  .card { break-inside: avoid; }
}
