@charset "UTF-8";
* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  background: #eef1f5;
  color: #171717;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.7;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(760px, 1fr);
  min-height: 100vh;
}

.controlwrap {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid #d8dee8;
  padding: 18px;
}
.controlwrap select {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: #171717;
}
.controlwrap select:focus {
  outline: 2px solid #ffb36b;
  outline-offset: 1px;
}

.tool-section {
  padding: 14px 0;
  border-bottom: 1px solid #e7ebf0;
}
.tool-section:first-child {
  padding-top: 0;
}
.tool-section:last-child {
  border-bottom: 0;
}

.tool-heading,
.field-label {
  display: block;
  margin: 0 0 8px;
  color: #657184;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.taxform {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: #171717;
}
.taxform:focus {
  outline: 2px solid #ffb36b;
  outline-offset: 1px;
}

.btn {
  display: block;
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  background: #f7f9fc;
  color: #263241;
  padding: 10px 12px;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn + .btn {
  margin-top: 8px;
}
.btn:hover {
  background: #edf2f7;
}
.btn.on {
  border-color: #ff8a1d;
  background: #fff4e8;
  color: #9a4c00;
}

.btn-primary {
  border-color: #f06423;
  background: #f06423;
  color: #ffffff;
  font-weight: 700;
}
.btn-primary:hover {
  background: #db5518;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.two-col .btn {
  margin: 0;
}

.number-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.socialicons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.socialicons a {
  border: 1px solid #f1c9b6;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.socialicons a,
.link a {
  color: #d45216;
  text-decoration: none;
}
.socialicons a:hover,
.link a:hover {
  text-decoration: underline;
}

.printwrap {
  padding: 28px;
  overflow: auto;
}

.printarea {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 22mm 18mm 20mm;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.16);
  color: #111111;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}
.printarea h1 {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #111111;
  text-align: center;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .8em;
  text-indent: .8em;
}
.printarea table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  table-layout: fixed;
}
.printarea th,
.printarea td {
  border: 1px solid #333333;
  padding: 7px 9px;
  vertical-align: top;
}
.printarea th {
  background: #f2f3f5;
  font-size: 13px;
  font-weight: 700;
}
.printarea th:nth-child(1) {
  width: 34%;
}
.printarea th:nth-child(2) {
  width: 16%;
}
.printarea th:nth-child(3), .printarea th:nth-child(5) {
  width: 16%;
}
.printarea th:nth-child(4) {
  width: 18%;
}
.printarea tfoot {
  font-size: 14px;
  font-weight: 700;
}

.printheader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.9fr);
  gap: 18px 28px;
  margin-bottom: 20px;
}
.printheader .center {
  grid-column: 1 / -1;
}
.printheader .right {
  text-align: right;
  font-size: 13px;
  line-height: 1.55;
}

#tocorp,
#tohm {
  margin-bottom: 8px;
  font-size: 16px;
}

#cap1,
#date,
#contact,
#invoiceNumber {
  margin-bottom: 8px;
}

#invoiceNumber {
  color: #444444;
  font-size: 12px;
}

#totalwtax {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
  border-top: 2px solid #111111;
  border-bottom: 2px solid #111111;
  background: #f7f7f7;
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 700;
}
#totalwtax div:last-child {
  font-size: 19px;
  letter-spacing: .03em;
}

#printtitle {
  border-left: 5px solid #111111;
  padding-left: 10px;
  line-height: 1.3;
}

.line-input {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px dashed #f5bd83;
  background: transparent;
  padding: 0 2px;
}
.line-input:focus {
  outline: 2px solid #ffb36b;
  outline-offset: 1px;
}

.quantity-cell {
  white-space: nowrap;
}
.quantity-cell .line-input {
  width: calc(100% - 4.5em);
  min-width: 2.5em;
}

.unit {
  display: inline-block;
  min-width: 3.6em;
  max-width: 4.2em;
  white-space: nowrap;
  text-align: left;
}

.num {
  font-variant-numeric: tabular-nums;
}

#memo {
  margin-bottom: 10px;
}

.printfooter {
  margin-top: 18px;
  border-top: 1px solid #333333;
  padding-top: 12px;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

[contenteditable="true"] {
  min-width: 1em;
  min-height: 1.35em;
  border: 1px dashed #f5bd83;
  border-radius: 4px;
  padding: 0 2px;
}
[contenteditable="true"]:hover {
  border-color: #ff8a1d;
}
[contenteditable="true"]:focus {
  outline: 2px solid #ffb36b;
  outline-offset: 1px;
  border-color: #ff8a1d;
}

.editable-cell {
  width: 100%;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@page {
  size: A4;
  margin: 0;
}
@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .controlwrap {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d8dee8;
  }

  .printwrap {
    padding: 18px;
  }
}
@media print {
  body {
    background: #ffffff;
  }

  .app-shell {
    display: block;
  }

  .controlwrap {
    display: none;
  }

  .printwrap {
    padding: 0;
    overflow: visible;
  }

  .printarea {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    page-break-after: always;
  }
  .printarea th {
    background: transparent;
  }

  [contenteditable="true"],
  .line-input {
    border-color: transparent;
    outline: 0;
  }
}

/*# sourceMappingURL=style.css.map */
