body {
      font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f0f2f5;
    }

    .container {
      width: 1000px;
      margin: 0 auto;
      background: white;
      padding: 10px 25px;
      box-sizing: border-box;
    }

    .no-print-area {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8f9fa;
      padding: 8px 15px;
      border-bottom: 1px solid #ddd;
      margin-bottom: 10px;
    }

    .header-title-container {
      text-align: center;
      padding-top: 40px;
      margin-bottom: 0;
      border-bottom: none;
    }

    .header-title-text {
      display: inline-flex;
      align-items: center;
      font-size: 24px;
      font-weight: bold;
    }

    .display-year-number {
      font-size: 32px;
      margin: 0 10px;
      min-width: 1em;
    }

    .info-inputs-container {
      display: flex;
      justify-content: space-between;
      margin-top: 45px;
      margin-bottom: 45px;
      font-size: 16px;
    }

    .info-field {
      display: flex;
      align-items: flex-end;
    }

    .info-label {
      white-space: nowrap;
      margin-right: 10px;
    }

    .info-underline {
      border-bottom: 1px solid #000;
      min-height: 24px;
    }

    .main-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      border: 2px solid #000;
    }
    .main-table th,
    .main-table td {
      border: 1px solid #000;
      padding: 0 2px;
      font-size: 11px;
    }
    .main-table th {
      background-color: #f2f2f2;
      height: 24px;
    }
    .main-table td {
      height: 34px;
      vertical-align: middle;
    }

    .division-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      grid-template-rows: 1fr 1fr;
      height: 100%;
      align-items: center;
    }

    .checkbox-item {
      display: flex;
      align-items: center;
      font-size: 8.5px;
      white-space: nowrap;
      letter-spacing: -0.5px;
    }

    input[type="checkbox"] {
      transform: scale(0.8);
      margin: 0 2px 0 0;
    }

    input[type="text"],
    input[type="number"] {
      width: 100%;
      border: none;
      font-size: 13px;
      font-weight: bold;
      text-align: center;
      background: transparent;
      box-sizing: border-box;
    }

    /* 自動計算欄は編集できない見た目に（差引金額のみ） */
    .readonly-cell {
      background: #f7f7f7;
    }

    .footer-area {
      display: flex;
      justify-content: flex-start;
      align-items: flex-end;
      margin-top: 20px;
      gap: 60px;
    }

    .calc-table {
      border-collapse: collapse;
      border: 1.5px solid #000;
    }
    .calc-table td {
      border: 1px solid #000;
      font-size: 10px;
      padding: 2px 8px;
      height: 22px;
    }
    .calc-title {
      font-weight: bold;
      font-size: 13px !important;
      border-bottom: 1.5px solid #000 !important;
    }
    .label-cell {
      width: 190px;
    }
    .val-cell {
      width: 160px;
      text-align: right;
    }
    .id-cell {
      width: 30px;
      text-align: center;
      font-weight: bold;
      border: 1.5px solid #000 !important;
    }

    .qr-container {
      text-align: center;
      margin-bottom: 35px;
    }
    .qr-caption {
      font-size: 13px;
      font-weight: bold;
      margin-bottom: 10px;
      line-height: 1.4;
    }
    .qr-code-img {
      width: 100px;
      height: 100px;
      border: 1px solid #ccc;
    }

    @media print {
      .no-print-area {
        display: none;
      }
      .container {
        width: 100%;
        padding: 0;
        margin: 0;
      }
      body {
        background: white;
      }
      @page {
        size: A4 portrait;
        margin: 5mm 10mm;
      }
    }

/* ===== 共通固定フッター ===== */
:root {
  --sakurayama-footer-height: 56px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--sakurayama-footer-height) + 14px) !important;
  box-sizing: border-box;
}

.site-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  min-height: var(--sakurayama-footer-height) !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: rgba(248, 251, 255, 0.97) !important;
  border-top: 1px solid rgba(21, 101, 192, 0.28) !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer .sakurayama-copyright {
  margin: 0 !important;
  color: #1565c0 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.site-footer .sakurayama-copyright a {
  color: #1565c0 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.site-footer .sakurayama-copyright a:hover,
.site-footer .sakurayama-copyright a:focus-visible {
  color: #0d47a1 !important;
  text-decoration: underline !important;
}

@media (max-width: 480px) {
  :root {
    --sakurayama-footer-height: 52px;
  }
  .site-footer .sakurayama-copyright {
    font-size: 0.94rem !important;
  }
}

@media print {
  body {
    padding-bottom: 0 !important;
  }
  .site-footer {
    display: none !important;
  }
}

/* HTMLから外部化した要素別スタイル */
.html-style-001 { font-size: 14px; font-weight: bold; }
.html-style-002 { font-size: 18px; width: 60px; text-align: center; }
.html-style-003 { padding: 8px 20px; cursor: pointer; font-weight: bold; }
.html-style-004 { width: 50%; }
.html-style-005 { flex-grow: 1; }
.html-style-006 { width: 5%; }
.html-style-007 { width: 40%; }
.html-style-008 { flex-grow: 1; }
.html-style-009 { width: 14%; }
.html-style-010 { width: 20%; }
.html-style-011 { width: 32%; }
.html-style-012 { width: 12%; }
.html-style-013 { width: 12%; }
.html-style-014 { width: 10%; }
.html-style-015 { border: none; width: 5px; }
.html-style-016 { border: none; }
.html-style-017 { border: none; }
.html-style-018 { border: none; }
.html-style-019 { border: none; }
.html-style-020 { border: none; }
.html-style-021 { border: none; }
