.kosei-nenkin-tool {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
}

.kosei-nenkin-tool form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kosei-nenkin-tool input,
.kosei-nenkin-tool select {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.kosei-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.kosei-buttons button {
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  color: white;
}

.btn-calc {
  background-color: #007bff;
}

.btn-clear {
  background-color: #6c757d;
}

.btn-print {
  background-color: #17a2b8;
}

.kosei-result table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.kosei-result th, .kosei-result td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
}

.huto {
  font-weight: bold;
}
/* 通常時の表示調整 */
.kosei-result {
  display: none;
}
.kosei-result.show {
  display: block;
}

/* 印刷時のスタイル */
@media print {
  body * {
    visibility: hidden;
  }
  .kosei-nenkin-tool,
  .kosei-nenkin-tool * {
    visibility: visible;
  }
  .kosei-nenkin-tool {
    position: absolute;
    left: 0;
    top: 0;
    width: 90%;
    background: #fff;
  }
  .kosei-buttons,
  form,
  select,
  input,
  button {
    display: none !important;
  }
  #result {
    display: block !important;
  }
}
