:root {
  color-scheme: light;
  font-family:
    "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #1d2939;
  background: #f4f7f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #d7e0e6;
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 1040px);
  min-height: 70px;
  margin: 0 auto;
}

.product-name,
.step {
  margin: 0;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-link {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 150px;
  height: 28px;
}

.product-name {
  padding-left: 20px;
  border-left: 1px solid #d7e0e6;
  color: #475467;
  font-size: 14px;
}

.product-navigation {
  display: flex;
  align-items: center;
}

.product-navigation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  text-decoration: none;
}

.product-navigation-link:hover,
.product-navigation-link[aria-current="page"] {
  color: #1b4c92;
}

.navigation-toggle,
.navigation-backdrop {
  display: none;
}

.page {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.intro {
  margin-bottom: 36px;
}

.step {
  color: #1b4c92;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.intro-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.document-draft-panel {
  margin-bottom: 28px;
}

.document-draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 32px;
  border-bottom: 1px solid #e4e9ed;
}

summary.document-draft-heading {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

summary.document-draft-heading::-webkit-details-marker {
  display: none;
}

.document-draft-panel:not([open]) .document-draft-heading {
  border-bottom-color: transparent;
}

.document-draft-heading h2 {
  margin-top: 6px;
  font-size: 20px;
}

.document-draft-heading p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.document-draft-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.document-draft-heading button {
  flex: 0 0 auto;
  min-width: 210px;
}

.document-draft-chevron {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid #1b4c92;
  border-bottom: 2px solid #1b4c92;
  transform: rotate(225deg);
  transition: transform 160ms ease;
}

.document-draft-panel:not([open]) .document-draft-chevron {
  transform: rotate(45deg);
}

.document-draft-list-header,
.document-draft-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) minmax(180px, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.document-draft-list-header {
  padding: 12px 32px;
  color: #667085;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.document-draft-item {
  padding: 18px 32px;
  border-top: 1px solid #e4e9ed;
}

.document-draft-list-header + .document-draft-list .document-draft-item:first-child {
  border-top: 0;
}

.document-draft-primary,
.document-draft-secondary,
.document-draft-date {
  min-width: 0;
  margin: 0;
}

.document-draft-primary {
  color: #101828;
  font-weight: 800;
}

.document-draft-secondary,
.document-draft-date {
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.document-draft-date span {
  display: block;
}

.document-draft-actions {
  display: flex;
  gap: 8px;
}

.document-draft-actions button {
  min-width: 0;
  padding: 9px 13px;
  font-size: 13px;
}

.document-draft-actions .document-draft-delete {
  border: 1px solid #b42318;
  color: #b42318;
  background: #ffffff;
}

.document-draft-actions .document-draft-delete:hover {
  color: #ffffff;
  background: #b42318;
}

.document-draft-empty {
  margin: 0;
  padding: 24px 32px;
  color: #667085;
  text-align: center;
}

.document-draft-status {
  min-height: 1.5em;
  margin: 0;
  padding: 0 32px 18px;
  color: #1b4c92;
  font-size: 13px;
  font-weight: 700;
}

.dummy-fill-button {
  flex: 0 0 auto;
  min-width: auto;
  padding: 11px 16px;
  border: 1px solid #1b4c92;
  color: #1b4c92;
  background: #ffffff;
  font-size: 14px;
}

.dummy-fill-button:hover {
  color: #1b4c92;
  background: #ffffff;
}

.card {
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgb(16 24 40 / 7%);
}

.form-section + .form-section {
  margin-top: 24px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  border-bottom: 1px solid #e4e9ed;
  color: #ffffff;
  background: #1b4c92;
}

summary.card-heading {
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease;
}

summary.card-heading:hover {
  background: #1b4c92;
}

summary.card-heading::-webkit-details-marker {
  display: none;
}

summary.card-heading:focus-visible {
  outline: 3px solid rgb(27 76 146 / 24%);
  outline-offset: -3px;
}

.form-section:not([open]) .card-heading {
  border-bottom-color: transparent;
}

.card-heading-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(225deg);
  transition: transform 160ms ease;
}

.form-section:not([open]) .accordion-chevron {
  transform: rotate(45deg);
}

.card-heading h2 {
  margin-top: 6px;
  font-size: 20px;
}

.card-heading .step,
.card-heading .property-title-context {
  color: #ffffff;
}

form {
  padding: 0;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px 28px;
  padding: 32px;
}

.field {
  grid-column: span 6;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-half {
  grid-column: span 6;
}

.field-third {
  grid-column: span 4;
}

.field[data-property-hierarchy-field] {
  grid-column: span 3;
}

.field-room-number {
  grid-column: 1 / span 3;
}

.field.field-row-start {
  grid-column: 1 / span 3;
}

.field-two-thirds {
  grid-column: span 8;
}

.field-quarter {
  grid-column: span 3;
}

.property-title-context {
  margin-left: 8px;
  color: #1b4c92;
  font-size: 0.82em;
  white-space: nowrap;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.field .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #1b4c92;
}

.multi-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

#leaseTypeGroup {
  flex-wrap: nowrap;
}

.field .multi-checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.multi-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #1b4c92;
}

.special-note-picker {
  margin-bottom: 12px;
  border: 1px solid #9aaac1;
  border-radius: 8px;
  background: #ffffff;
}

.special-note-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  color: #23344d;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.special-note-picker summary::-webkit-details-marker {
  display: none;
}

.special-note-picker-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #1b4c92;
  border-bottom: 2px solid #1b4c92;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.special-note-picker[open] .special-note-picker-chevron {
  transform: rotate(225deg);
}

.special-note-picker-panel {
  border-top: 1px solid #d5deea;
}

.special-note-picker-options {
  display: grid;
  max-height: 320px;
  overflow-y: auto;
}

.special-note-picker-options > p {
  margin: 0;
  padding: 18px 16px;
  color: #667085;
}

.field .special-note-picker-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #e4e9ed;
  font-weight: 500;
  cursor: pointer;
}

.special-note-picker-option:hover {
  background: #f4f7fb;
}

.special-note-picker-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1b4c92;
}

.special-note-picker-option span {
  display: grid;
  gap: 3px;
}

.special-note-picker-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

.special-note-picker-actions button {
  min-height: 40px;
  padding: 0 18px;
}

.required {
  margin-left: 8px;
  color: #b42318;
  font-size: 12px;
}

.required.direct-input-available {
  color: #1976a8;
}

.unit-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  color: #1d2939;
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

#propertyAbout,
#propertySpecialNotes {
  min-height: 224px;
}

input[readonly],
textarea[readonly],
select:disabled {
  color: #475467;
  background: #f2f4f7;
}

input[type="number"],
.unit-input input {
  text-align: right;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1b4c92;
  outline: 3px solid rgb(27 76 146 / 14%);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #d92d20;
}

.error,
.room-status,
.field-help {
  margin: 9px 0 0;
  font-size: 13px;
}

.error {
  color: #b42318;
  font-weight: 700;
}

.room-status {
  color: #667085;
}

.field-help {
  color: #667085;
}

.room-status[data-state="matched"] {
  color: #067647;
  font-weight: 700;
}

.room-status[data-state="pending"] {
  color: #93370d;
  font-weight: 700;
}

.room-status[data-state="unmatched"] {
  color: #b42318;
  font-weight: 700;
}

.global-error {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  color: #b42318;
  background: #fef3f2;
  font-weight: 700;
}

.global-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #a6f4c5;
  border-radius: 8px;
  color: #05603a;
  background: #ecfdf3;
  font-weight: 700;
}

.master-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid #d7e0e6;
  border-radius: 10px;
  background: #ffffff;
}

.master-links span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.master-links a,
.master-back a,
.master-actions a,
.master-form-actions a {
  color: #1b4c92;
  font-weight: 700;
}

.master-links a[aria-current="page"] {
  color: #163c73;
  text-decoration-thickness: 3px;
}

.master-page {
  width: min(100% - 40px, 1320px);
}

.master-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.master-page-heading h1,
.master-form-page h1 {
  margin-top: 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: #1b4c92;
  font-weight: 800;
  text-decoration: none;
}

.master-table-wrap {
  overflow-x: auto;
}

.master-table-section + .master-table-section {
  margin-top: 32px;
}

.master-table-section h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.master-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.master-table th,
.master-table td {
  min-width: 130px;
  padding: 16px;
  border-bottom: 1px solid #e4e9ed;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.master-table th {
  color: #344054;
  background: #eef5fc;
  white-space: nowrap;
}

.master-text {
  min-width: 260px;
  max-width: 420px;
  white-space: pre-wrap;
}

.master-actions {
  min-width: 150px;
  white-space: nowrap;
}

.master-actions > a,
.master-actions > form {
  display: inline-block;
  vertical-align: middle;
}

.master-actions form {
  margin: 0 0 0 14px;
}

.danger-button {
  min-width: auto;
  padding: 7px 11px;
  border: 1px solid #b42318;
  color: #b42318;
  background: #fef3f2;
  font-size: 13px;
}

.danger-button:hover {
  border-color: #b42318;
  color: #ffffff;
  background: #b42318;
}

.master-form-page {
  max-width: 900px;
}

.master-back {
  margin: 14px 0 28px;
}

.master-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  padding: 32px;
}

.property-master-form-page {
  max-width: 1180px;
}

.property-master-form {
  margin-bottom: 42px;
}

.compact-checkboxes {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.compact-checkboxes legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.compact-checkboxes label {
  display: inline-flex;
  align-items: center;
  margin-right: 22px;
}

.compact-checkboxes input {
  width: auto;
  margin-right: 7px;
}

.form-subheading {
  margin: 4px 0 -10px;
  font-size: 18px;
}

.nested-master-section {
  margin-top: 42px;
}

.nested-master-section .master-page-heading {
  margin-bottom: 18px;
}

.nested-master-section h2,
.nested-master-section p {
  margin: 0;
}

.nested-master-section p {
  margin-top: 6px;
  color: #667085;
}

.master-form-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
}

.request-page {
  max-width: 800px;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px;
}

.request-conditional[hidden] {
  display: none;
}

.request-form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 4px;
}

.request-form-actions button {
  min-width: 140px;
}

.cancel-link {
  color: #475467;
  font-weight: 700;
}

.success-dialog {
  width: min(calc(100% - 40px), 560px);
  padding: 30px;
  border: 0;
  border-radius: 14px;
  color: #1d2939;
  box-shadow: 0 24px 80px rgb(16 24 40 / 24%);
}

.success-dialog::backdrop {
  background: rgb(16 24 40 / 48%);
}

.success-dialog h2 {
  color: #05603a;
  font-size: 22px;
}

.success-dialog p {
  margin: 16px 0 24px;
  line-height: 1.8;
}

.success-dialog form {
  display: flex;
  justify-content: flex-end;
}

.success-dialog button {
  min-width: 120px;
}

.output-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 30px 32px;
  border-radius: 14px;
  color: #ffffff;
  background: #163c73;
}

.output-panel h2 {
  font-size: 20px;
}

.output-panel button {
  flex: 0 0 auto;
  color: #163c73;
  background: #ffffff;
}

.output-panel button:hover {
  background: #e8eef7;
}

.field .error {
  line-height: 1.5;
}

.unit-input span {
  flex: 0 0 auto;
  color: #667085;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 220px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #1b4c92;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #143a70;
}

button:focus-visible {
  outline: 3px solid rgb(27 76 146 / 24%);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 760px) {
  body.navigation-open {
    overflow: hidden;
  }

  .header-inner {
    justify-content: space-between;
    width: calc(100% - 24px);
    min-height: 64px;
  }

  .brand-logo {
    width: 132px;
    height: auto;
  }

  .navigation-toggle {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 44px;
    gap: 5px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: none;
  }

  .navigation-toggle:hover {
    background: #eef4fb;
    box-shadow: none;
    transform: none;
  }

  .navigation-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: #1b4c92;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .navigation-open .navigation-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navigation-open .navigation-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navigation-open .navigation-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navigation-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgb(15 23 42 / 42%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .navigation-open .navigation-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .product-navigation {
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    width: min(84vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding: 80px 20px 24px;
    background: #ffffff;
    box-shadow: -12px 0 32px rgb(15 23 42 / 18%);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform 200ms ease, visibility 200ms ease;
  }

  .navigation-open .product-navigation {
    visibility: visible;
    transform: translateX(0);
  }

  .product-navigation-link {
    justify-content: flex-start;
    min-height: 52px;
    padding: 12px 14px;
    border-left: 0;
    border-bottom: 1px solid #e4eaf0;
    color: #344054;
    font-size: 15px;
    font-weight: 700;
  }

  .product-navigation-link[aria-current="page"] {
    border-radius: 8px;
    background: #eef4fb;
    color: #1b4c92;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 24px, 1040px);
    padding-top: 44px;
  }

  .card-heading,
  .fields-grid {
    padding: 24px 20px;
  }

  .intro-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .document-draft-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .document-draft-heading-actions {
    width: 100%;
  }

  .document-draft-heading button {
    flex: 1 1 auto;
    width: 100%;
  }

  .document-draft-chevron {
    flex: 0 0 auto;
  }

  .document-draft-list-header {
    display: none;
  }

  .document-draft-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }

  .document-draft-item:first-child {
    border-top: 0;
  }

  .document-draft-actions {
    margin-top: 6px;
  }

  .document-draft-actions button {
    flex: 1 1 0;
    width: auto;
  }

  .document-draft-empty {
    padding: 22px 20px;
  }

  .document-draft-status {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dummy-fill-button {
    width: 100%;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .field,
  .field-half,
  .field-quarter,
  .field-third,
  .field-two-thirds,
  .field-wide,
  .field[data-property-hierarchy-field],
  .field-room-number,
  .field.field-row-start {
    grid-column: auto;
  }

  .field[data-property-hierarchy-field],
  .field-room-number {
    grid-column: auto !important;
  }

  .output-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .master-page-heading,
  .master-form-actions,
  .request-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .master-page-heading .button-link {
    width: 100%;
  }

  .master-form {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .request-form {
    padding: 24px 20px;
  }

  .master-form .field,
  .master-form .field-wide,
  .master-form-actions {
    grid-column: auto;
  }

  button {
    width: 100%;
  }
}
