/* =============================
   Utility Classes
============================= */

body {
  font-family: "Tsukushi A Round Gothic", sans-serif;
  margin: 0;
  padding: 20px;
  background: #f9f9f9;
}

.address-input {
  width: 250px;
  padding: 6px;
  font-size: 14px;
  margin-right: 5px;
  margin-bottom: 5px;
}

.right-align {
  text-align: right;
}

input[type=number].right-align {
  text-align: right;
}

/* =============================
   Header
============================= */

.estimate-container {
  background: white;
  padding: 30px;
  max-width: 1000px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* =============================
   Bady
============================= */


/* =============================
   Tablle
============================= */

.estimate-table table {
  width: 100%;
  border-collapse: collapse;
}

.estimate-table th,
.estimate-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

/* =============================
   Estimate Table Styling
============================= */
#estimateTable {
  border-collapse: collapse;
  width: 100%;
  border: 2px solid #000; /* 外枠：太線 */
}

#estimateTable th,
#estimateTable td {
  border: 1px solid #aaa; /* 内側：細線 */
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

/* 交互色 */
#estimateTable tbody tr:nth-child(odd) {
  background-color: #f0f8ff; /* 薄水色 */
}

/* 入力と選択肢のサイズ */
#estimateTable input,
#estimateTable select {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 4px;
}

#estimateTable input,
#estimateTable select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
}

/* フォーカス時にも枠線を出さない */
#estimateTable input:focus,
#estimateTable select:focus {
  outline: none;
  border: none;
}

/* ラベル（th）中央寄せ・列幅指定 */
#estimateTable th:nth-child(1) {
  width: 200px;
  min-width: 140px;
  text-align: center;
}
#estimateTable td:nth-child(1) {
  width: 200px;
  min-width: 140px;
  text-align: right;
}

/* 単価 */
#estimateTable th:nth-child(2) {
  width: 80px;
  text-align: center;
}
#estimateTable td:nth-child(2) {
  width: 80px;
  text-align: right;
}

/* 単位 */
#estimateTable th:nth-child(3) {
  width: 30px;
  text-align: center;
}
#estimateTable td:nth-child(3) {
  width: 30px;
  text-align: right;
}

/* 数量 */
#estimateTable th:nth-child(4) {
  width: 20px;
  text-align: center;
}
#estimateTable td:nth-child(4) {
  width: 20px;
  text-align: right;
}

/* 金額 */
#estimateTable th:nth-child(5) {
  width: 80px;
  text-align: center;
}
#estimateTable td:nth-child(5) {
  width: 80px;
  text-align: right;
}

/* 課税率 */
#estimateTable th:nth-child(6) {
  width: 20px;
  text-align: center;
}
#estimateTable td:nth-child(6) {
  width: 20px;
  text-align: right;
}

/* 課税額 */
#estimateTable th:nth-child(7) {
  width: 80px;
  text-align: center;
}
#estimateTable td:nth-child(7) {
  width: 80px;
  text-align: right;
}

#estimateTable input[type="number"] {
  text-align: right;
}
