@charset "UTF-8";
.msac__section p {
  margin: 0;
}
.msac__section p + p {
  margin-top: 1em;
}
.msac__section + .msac__section {
  margin-top: 60px;
}

.msac__grid {
  --min: 30ch;
  --gap: 1rem;
  display: grid;
  grid-gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));
}

.msac__section-content {
  margin-top: 20px;
}

.msac__caution {
  color: red;
  font-size: 80%;
}

.msac__section-title {
  font-weight: 600;
}

.msac__section-fields {
  display: flex;
  gap: 16px;
}

.msac__section-field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.msac__section-field input {
  width: 100%;
  border: 1px solid #aaa;
  padding: 6px 8px;
}
.msac__section-field input::-moz-placeholder {
  color: #ff6363;
}
.msac__section-field input::placeholder {
  color: #ff6363;
}
.msac__section-field input:-moz-read-only {
  outline: none;
  border: 1px solid #ddd;
  background: #f5f5f5;
}
.msac__section-field input:read-only {
  outline: none;
  border: 1px solid #ddd;
  background: #f5f5f5;
}
.msac__section-field input[name=number-undercarriage-stages] {
  color: #ff6363;
}
.msac__section-field .unit {
  white-space: nowrap;
}

.msac__section-field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
@media (min-width: 960px) {
  .msac__section-field-row {
    flex-direction: row;
  }
}
.msac__section-field-row .msac__section-field-label {
  width: min(100%, 430px);
}

#gauge-section {
  overflow: auto;
}
@media (max-width: 600px) {
  #gauge-section::before {
    display: inline-block;
    padding-bottom: 1em;
    color: red;
    content: "※左から右にスクロールできます→→";
  }
}
#gauge-section .msac__section-fields {
  width: 460px;
}

#last-section {
  overflow: auto;
}
@media (max-width: 1080px) {
  #last-section::before {
    display: inline-block;
    padding-bottom: 1em;
    color: red;
    content: "※左から右にスクロールできます→→";
  }
}

.msac__last-results {
  display: flex;
  width: 870px;
  gap: 16px;
  font-size: 13px;
}

.msac__last-results-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.msac__last-results-field .msac__section-field {
  margin-top: 20px;
}

.msac__last-results-operator,
.msac__section-operator,
.msac__last-results-equal {
  align-self: center;
  flex: 0 0 32px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 600;
}

.msac__last-results-equal {
  color: #ff6363;
}

.msac__last-results-label {
  font-weight: 600;
}

.msac__clear {
  display: flex;
  justify-content: center;
}

.msac__clear-button {
  transition: opacity 0.3s ease-in-out;
  display: grid;
  place-content: center;
  padding: 0.5em 1em;
  outline: none;
  border: 1px solid #ddd;
  background: #ff93b0;
  font-size: 1em;
}
.msac__clear-button:active {
  background: red;
}
.msac__clear-button:hover {
  opacity: 0.8;
}