/* PDF出力専用スタイル */

/* 改ページ制御 */
.pdf-page-break {
  page-break-before: always;
}

.pdf-no-break {
  page-break-inside: avoid;
}

/* PDF全体のコンテナ */
.pdf-container {
  font-family: 'BIZ UDPGothic', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  max-width: 210mm;
  margin: 0 auto;
  padding: 20mm;
  background: white;
}

/* ヘッダー */
.pdf-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.pdf-title {
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 10px;
}

.pdf-date {
  font-size: 12px;
  color: #6b7280;
}

/* セクション */
.pdf-section {
  margin-bottom: 25px;
}

.pdf-step {
  margin-bottom: 30px;
}

.pdf-step-description {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9fafb;
  border-left: 4px solid #3b82f6;
}

.pdf-reform-points {
  margin-top: 20px;
}

/* フッター */
.pdf-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 10px;
  color: #6b7280;
}

/* 印刷時の調整 */
@media print {
  .pdf-container {
    padding: 15mm;
    font-size: 11px;
  }
  
  .pdf-title {
    font-size: 20px;
  }
  
  .pdf-page-break {
    page-break-before: always;
  }
  
  .pdf-no-break {
    page-break-inside: avoid;
  }
  
  /* 背景色を印刷時にも表示 */
  .pdf-step-description {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
  
  /* リンクの色を調整 */
  a {
    color: #1f2937 !important;
    text-decoration: underline;
  }
}

/* コンポーネントのPDF用調整 */
.pdf-container .section-title h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1f2937;
}

.pdf-container .reform-point {
  margin-bottom: 20px;
  page-break-inside: avoid;
}

.pdf-container .reform-point-header {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.pdf-container .reform-point-list {
  margin-left: 0;
}

.pdf-container .reform-point-list-item {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.pdf-container .reform-point-list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.pdf-container .profile-section {
  margin-bottom: 15px;
}

.pdf-container .profile-item {
  display: flex;
  margin-bottom: 8px;
  font-size: 11px;
}

.pdf-container .profile-item-label {
  font-weight: bold;
  min-width: 100px;
  margin-right: 10px;
}

.pdf-container .profile-item-value {
  flex: 1;
}

/* 説明文のスタイル調整 */
.pdf-container .step-description {
  font-size: 11px;
  line-height: 1.5;
}

.pdf-container .step-description p {
  margin-bottom: 10px;
}

.pdf-container .step-description ul {
  margin: 8px 0;
  padding-left: 20px;
}

.pdf-container .step-description li {
  margin-bottom: 4px;
}

/* 色付きボックスのPDF用調整 */
.pdf-container .bg-blue-50 {
  background-color: #eff6ff !important;
  border: 1px solid #dbeafe;
}

.pdf-container .bg-green-50 {
  background-color: #f0fdf4 !important;
  border: 1px solid #dcfce7;
}

.pdf-container .bg-yellow-50 {
  background-color: #fefce8 !important;
  border: 1px solid #fef3c7;
}

.pdf-container .bg-purple-50 {
  background-color: #faf5ff !important;
  border: 1px solid #e9d5ff;
}

/* PDFヘッダーのスタイル */
.pdf-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  page-break-inside: avoid;
}

.pdf-header-left {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  color: #1f2937;
}

.customer-name-container {
  display: inline-block;
  position: relative;
}

.customer-name-underline {
  border-bottom: 2px solid #1f2937;
  padding-bottom: 2px;
  padding-right: 30px;
  display: inline-block;
  min-width: 120px;
  text-align: left;
}

.customer-sama {
  position: absolute;
  bottom: 0;
  right: 0;
  padding-bottom: 2px;
  border-bottom: 2px solid #1f2937;
}

.pdf-header-right {
  flex: 0 0 auto;
}

.pdf-logo {
  height: 60px;
  width: auto;
}


/* リフォームポイントの行間調整 */
.pdf-container .reform-point-list-item {
  margin-bottom: 6px; /* 8pxから6pxに縮小 */
  line-height: 1.4; /* より詰めた行間 */
}

/* 印刷時の調整 */
@media print {
  .pdf-header-custom {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }
  
  .pdf-logo {
    height: 50px;
  }
  
  .pdf-container .reform-point-list-item {
    margin-bottom: 4px;
    line-height: 1.3;
  }
}
