/* =========================================================
   株式会社REVAL 空き家管理システム
   ブランドトーン: ネイビー #102048 / グレー #788088
   ========================================================= */

:root {
  --ieban-navy: #102048;
  --ieban-navy-deep: #0a1630;
  --ieban-navy-mid: #1c3260;
  --ieban-gray: #788088;
  --ieban-line: #d8dde7;
}

h1, h2, h3 {
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

/* ロゴ（社名横並び） */
.brand-logo { height: 28px; width: auto; display: block; }
.brand-logo--lg { height: 44px; }
.brand-logo--xl { height: 64px; }

/* ロゴマークのみ */
.brand-mark { height: 72px; width: auto; }

/* サイドバー用の白抜きロゴ枠 */
.brand-logo-frame {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ログイン画面の背景（ネイビーのグラデーション） */
.login-bg {
  background-color: var(--ieban-navy-deep);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(120, 128, 136, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(28, 50, 96, 0.9) 0%, transparent 55%),
    linear-gradient(150deg, #0a1630 0%, #102048 45%, #1c3260 100%);
}

/* 見出し下のアクセントライン */
.brand-rule { border-bottom: 2px solid var(--ieban-navy); }

/* =========================================================
   印刷（点検報告書 / 見積書 / 請求書）
   ========================================================= */
@media screen {
  #print-root { display: none; }
}

/* 画面表示中は印刷用ドキュメントを隠す */
.print-doc { display: none; }

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 12mm 16mm 12mm;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  /* 画面UIは印刷しない */
  .no-print,
  #toast-root,
  #modal-root,
  header.lg\:hidden,
  aside#sidebar {
    display: none !important;
  }

  #app { display: none !important; }

  /* 印刷専用ドキュメントのみ表示 */
  #print-root { display: block !important; }
  .print-doc { display: block !important; }

  .print-page {
    width: 100%;
    page-break-after: always;
  }
  .print-page:last-child { page-break-after: auto; }

  /* 表のヘッダーを各ページで繰り返す */
  thead { display: table-header-group; }
  tr, img { page-break-inside: avoid; }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
  }
  .print-table th,
  .print-table td {
    border: 0.6pt solid #666;
    padding: 4pt 5pt;
    vertical-align: top;
    text-align: left;
  }
  .print-table th {
    background: #eef1f6 !important;
    font-weight: 600;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-table td.c,
  .print-table th.c { text-align: center; }
  .print-table td.r,
  .print-table th.r { text-align: right; }

  .print-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1.4pt solid #102048;
    padding-bottom: 8pt;
    margin-bottom: 10pt;
  }
  .print-company { font-size: 9pt; line-height: 1.5; }
  .print-title {
    font-size: 17pt;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    margin: 6pt 0 2pt;
  }
  .print-subtitle {
    text-align: center;
    font-size: 8.5pt;
    color: #444;
    letter-spacing: 0.06em;
    margin-bottom: 10pt;
  }
  .print-meta {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin-bottom: 10pt;
  }
  .print-meta th,
  .print-meta td {
    border: 0.6pt solid #999;
    padding: 3.5pt 5pt;
    text-align: left;
  }
  .print-meta th {
    background: #f2f4f8 !important;
    width: 22%;
    font-weight: 600;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-section-title {
    font-size: 10pt;
    font-weight: 700;
    border-left: 3.5pt solid #102048;
    padding-left: 6pt;
    margin: 12pt 0 6pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5pt;
  }
  .print-photo {
    border: 0.6pt solid #999;
    padding: 2pt;
  }
  .print-photo img {
    width: 100%;
    height: 34mm;
    object-fit: cover;
    display: block;
  }
  .print-photo .cap {
    font-size: 7.5pt;
    color: #333;
    padding-top: 1.5pt;
  }
  .print-sign {
    margin-top: 14pt;
    display: flex;
    justify-content: space-between;
    font-size: 9pt;
  }
  .print-footer {
    margin-top: 10pt;
    border-top: 0.6pt solid #bbb;
    padding-top: 5pt;
    font-size: 7.5pt;
    color: #555;
    display: flex;
    justify-content: space-between;
  }
  .print-result-ok { color: #1a6b3c; }
  .print-result-action { color: #b3261e; font-weight: 700; }
  .print-amount {
    font-size: 12pt;
    font-weight: 700;
    text-align: right;
  }
}
