.print-area {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: white;
  color: black;
  box-sizing: border-box;
}

.header-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 10px;
}

.header-meta {
  display: flex;
  justify-content: space-between;
  font-size: 28px;
  margin-bottom: 20px;
}

/* meta-rightを左へ50px寄せる */
.header-meta .meta-right {
  margin-right: 200px;
}


.koutsuhi-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 10px;
}

.koutsuhi-table th,
.koutsuhi-table td {
  border: 1px solid #000;
  padding: 4px;
  text-align: center;
  font-size: 12px;
  height: 26px;
}

.koutsuhi-table th:nth-child(1),
.koutsuhi-table td:nth-child(1) { width: 20%; }

.koutsuhi-table th:nth-child(2),
.koutsuhi-table td:nth-child(2) { width: 15%; }

.koutsuhi-table th:nth-child(3),
.koutsuhi-table td:nth-child(3),
.koutsuhi-table th:nth-child(4),
.koutsuhi-table td:nth-child(4),
.koutsuhi-table th:nth-child(5),
.koutsuhi-table td:nth-child(5),
.koutsuhi-table th:nth-child(6),
.koutsuhi-table td:nth-child(6),
.koutsuhi-table th:nth-child(7),
.koutsuhi-table td:nth-child(7),
.koutsuhi-table th:nth-child(8),
.koutsuhi-table td:nth-child(8) { width: 8.3%; }

.koutsuhi-table th:nth-child(9),
.koutsuhi-table td:nth-child(9) { width: 15%; }

.total {
  text-align: right;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

.signature-section {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border: #000 solid 2px;
}

.sig-right {
  width: 40%;
  padding: 5px;
  box-sizing: border-box;
}
.sig-center {
  width: 40%;
  padding: 5px;
  box-sizing: border-box;
  text-align: center;
  font-size: 20px;
  margin-top: 14px;
}
.sig-left {
  width: 20%;
  padding: 5px;
  box-sizing: border-box;
  font-size: 20px;
  text-align: center;
  border-right: #000 solid 2px;
}

.notice {
  margin-top: 20px;
  font-size: 12px;
  font-style: italic;
}

.no-print {
  margin-top: 20px;
  padding: 6px 12px;
  font-size: 14px;
}

@media print {
  .no-print {
    display: none;
  }

  body {
    margin: 0;
    -webkit-print-color-adjust: exact;
  }

  .print-area {
    width: 100%;
    page-break-after: always;
  }

  @page {
    size: A4 landscape;
    margin: 10mm;
  }
}

.cat {
  max-width: 120px;
  max-height: 120px;
}

/* ▼▼ 合計金額テーブル（50%幅・右寄せ・セル比率 20:30）▼▼ */
.koutsuhi-total-table {
  width: 50%;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 20px;
  margin-left: auto; /* ← 右寄せ */
}

.koutsuhi-total-row td {
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #000;
  padding: 6px;
  text-align: center;
  white-space: nowrap;
}

.koutsuhi-total-row .kind-cell {
  width: 40%; /* テーブル幅50%に対して20% */
  background-color: #f9f9f9;
}

.koutsuhi-total-row .money-cell {
  width: 60%; /* テーブル幅50%に対して30% */
  background-color: #f9f9f9;
}



.aaa{
  margin: auto;
  text-align: center;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
}

.aab{
  max-width: 100%;
  margin: auto;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  font-size: 20px;
  padding: 15px;
  margin-top: 30px;
}

.admin-table,
.admin-table thead,
.admin-table tbody,
.admin-table th,
.admin-table td,
.admin-table tr {
  /* default styles can be here or in your HTML */
}

@media screen and (max-width: 768px) {
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
  }

  .admin-table td {
    text-align: left;
    padding: 8px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .admin-table td:nth-child(3) {
    text-align: center;
    padding-top: 10px;
  }
}

.aa1{
  margin: auto;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}
.tttt{
  margin: auto;
  text-align: center;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  border: solid 2px red;
}

.tttt, .tttt th,.tttt td{
  border: 2px solid #333;
  border-collapse: collapse;
}
.tttt th{
  font-size: 25px;
}
.tttt td{
  height: 35px;
  font-size: 20px;
}
.shinsei{
  margin: auto;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
  background-image: url('/static/img/Shinsei.png');
}

.ae{
  margin: auto;
  text-align: center;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
}

.ae2{
  width: 100%;
  display: flex;
  justify-content:space-around;
  margin: auto;
  margin-bottom: 30px;
}

.ae2 img{
  width: 150px;
}

.btn01 {
  width: 150px;
  height: 100px;
  background-color: white;
  color: #555;
  border: 3px solid #555;
  border-radius: 15px;
  text-align: center;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animal{
  background-image: url('/static/img/body.png');
  background-size: cover;          /* 画面全体に拡大 */
  background-repeat: no-repeat;    /* 繰り返しなし */
  background-position: center;     /* 中央に配置 */
  background-attachment: fixed;
}