/* Text */
.lab-h2 {
  font-size: var(--lab-h2);
}

.lab-h3 {
  font-size: var(--lab-h3);
}

.lab-h4 {
  font-size: var(--lab-h4);
}

.lab-h5 {
  font-size: var(--lab-h5);
}

.lab-h6 {
  font-size: var(--lab-h6);
}

.lab-h7 {
  font-size: var(--lab-h7);
}

.lab-h8 {
  font-size: var(--lab-h8);
}

/* Page title */
.page-title {
  padding-bottom: 20px;
}
.page-title .small, .page-title span {
  display: inline-block;
}
.page-title .small {
  font-size: var(--lab-h7);
  font-weight: 600;
  color: var(--lab-color-secondary);
}
.page-title .title {
  font-weight: 600;
}
.page-title .title b {
  font-weight: 600;
}
.page-title.type1 {
  text-align: center;
}
.page-title.type1 .title {
  font-size: var(--lab-h2);
}
.page-title.type2 {
  text-align: center;
}
.page-title.type2 .small {
  margin-bottom: 5px;
}
.page-title.type2 .title {
  font-size: var(--lab-h3);
}
.page-title.type3 {
  text-align: center;
}
.page-title.type3 .small {
  margin-bottom: 5px;
}
.page-title.type3 .sub {
  margin-bottom: 6px;
  font-size: var(--lab-h7);
  color: var(--lab-gray-80);
}
.page-title.type3 .title {
  margin-top: 8px;
  font-size: var(--lab-h3);
}
.page-title.type4 .small {
  margin-bottom: 8px;
}
.page-title.type4 .title p {
  font-size: var(--lab-h2);
  font-weight: 600;
}
.page-title.type4 .title p span {
  font-size: var(--lab-h4);
  font-weight: 500;
  color: var(--lab-gray-70);
}
.page-title.type4 .title p ~ p {
  margin-top: 6px;
}
.page-title.type4 .txt {
  margin-top: 20px;
  font-size: var(--lab-h6);
  color: #878B92;
}

.ud-title-block .title {
  position: relative;
  font-size: var(--lab-h3);
  line-height: 140%;
}
.ud-title-block .title::before {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  height: 80%;
  background-color: var(--lab-color-secondary);
}
.ud-title-block span {
  padding-left: 4px;
  font-size: var(--lab-h7);
}
.ud-title-block.type1 .title {
  display: flex;
  align-items: center;
  padding-left: 13px;
}
.ud-title-block.type1 .title::before {
  top: 2px;
  width: 3px;
}
.ud-title-block.type2 .title {
  padding-left: 6px;
}
.ud-title-block.type2 .title::before {
  top: 3px;
  width: 2px;
}
.ud-title-block.type3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ud-title-block.type3 .title {
  font-size: var(--lab-h6);
  color: var(--lab-gray-80);
}
.ud-title-block.type3 [class^=ri-] {
  font-size: var(--lab-h3);
  color: var(--lab-color-primary);
}
.ud-title-block.type4 {
  text-align: center;
}
.ud-title-block.type4 .title {
  font-size: var(--lab-h3);
  font-weight: 600;
}
.ud-title-block.type4 .title::before {
  display: none;
}
.ud-title-block.type4 [class^=ri-] {
  display: block;
  margin: 0 auto 10px;
  font-size: 22px;
  color: var(--lab-color-point);
}

.lab-info-txt i,
.lab-info-txt .tit {
  font-size: var(--lab-h7);
  color: var(--lab-color-primary);
}

/* Button */
.lab-btn-lg {
  height: var(--lab-input-h-lg);
  font-size: var(--lab-h3);
  font-weight: 700;
}
.lab-btn-lg.ud-icon {
  gap: 10px;
}
.lab-btn-lg.ud-icon [class^=ri-] {
  margin-right: -10px;
}
.lab-btn-md {
  height: var(--lab-input-h-md);
  font-size: var(--lab-h3);
  font-weight: 700;
}
.lab-btn-md.ud-icon {
  gap: 10px;
}
.lab-btn-sm {
  height: var(--lab-input-h-sm);
  font-size: var(--lab-h5);
  font-weight: 600;
}
.lab-btn-xs {
  height: var(--lab-input-h-xs);
  font-size: var(--lab-h5);
  font-weight: 600;
}
.lab-btn.lab-fill-primary {
  background: var(--lab-color-primary);
  color: var(--color-white);
}
.lab-btn.lab-line-primary {
  border: 1px solid var(--lab-color-primary);
  color: var(--lab-color-primary);
}
.lab-btn.rounded-lg {
  border-radius: 18px;
}
.lab-btn.rounded-md {
  border-radius: 10px;
}
.lab-btn.lab-gradation {
  background: linear-gradient(90deg, #FF9927 1.43%, #F66E21 79.71%);
}

.back-btn {
  justify-content: left;
  height: 26px;
}

.md-select-sm {
  height: var(--lab-input-h-sm);
}

/* Card */
.lab-card {
  padding: 16px 10px 16px;
  border-radius: 30px 12px 20px 30px;
}
.lab-card .lab-card-title .sub {
  display: block;
}
.lab-card.type1 {
  border-radius: 8px;
}
.lab-card.type2 .lab-card-title .sub {
  margin-top: 10px;
  font-size: var(--lab-h4);
  font-weight: 400;
  line-height: 150%;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--lab-gray-80);
}
.lab-card.type2 .ud-btn-block {
  margin-top: var(--card-gap-30);
}
.lab-card.type2 .ud-btn-block .lab-btn {
  width: 100%;
  border-radius: 10px 9px 9px 22px;
  background: linear-gradient(90deg, #FF9927 1.43%, #F66E21 79.71%);
}
.lab-card.type3 {
  background-color: var(--color-fa);
}
.lab-card.type3 .tit {
  text-align: center;
}
.lab-card.lab-card-sty1 {
  background-color: var(--color-fa);
  border: 1px solid #E8EAEB;
}
.lab-card.lab-card-sty2 {
  background-color: var(--color-fa);
}
.lab-card.lab-card-sty3 {
  border: 1px solid #EFEFEF;
}
.lab-card-btn {
  margin-top: 16px;
}
.lab-card-btn .lab-btn {
  width: 100%;
}
.lab-card-btn .lab-btn.lab-line-primary {
  background: var(--color-white);
}

.lab-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #E6F1F9;
  border: 1px solid #C4E6FF;
  border-radius: 20px;
  font-size: var(--lab-h8);
  font-weight: 500;
  color: var(--lab-color-primary);
}

/* Text box */
.lab-text-box.type1 {
  padding: 16px 40px;
  background: rgba(153, 204, 91, 0.08);
  border: 1px solid var(--lab-color-secondary);
}
.lab-text-box.type1 .tit {
  font-size: var(--lab-h5);
  font-weight: 600;
  line-height: 150%;
  text-align: center;
}
.lab-text-box.type2 {
  padding: 16px 40px;
  background-color: var(--color-fa);
}

/* Survay */
.option-list-item {
  padding: 6px 4px;
  border-radius: 8px;
  overflow: hidden;
}
.option-list-item:has(input[type=radio]:checked) {
  border: 1px solid var(--lab-color-primary);
  background-color: #F3FBFD;
}
.option-list-item input[type=radio] {
  display: none;
}
.option-list-item input[type=radio]:checked + label {
  font-weight: 600;
  color: #0087BC;
}
.option-list-item input[type=radio]:checked + label::before {
  border-color: #0087BC;
  background-color: var(--color-white);
  color: #0087BC;
}
.option-list-title {
  position: relative;
  display: block;
  padding-left: 34px;
  font-size: var(--lab-h5);
  line-height: 150%;
  word-break: keep-all;
  cursor: pointer;
}
.option-list-title::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-ddd);
  font-size: var(--lab-h8);
  font-weight: 600;
  text-align: center;
}

/* Input */
.lab-input-combo {
  display: block;
}
.lab-input-combo legend {
  position: static;
  visibility: unset;
  width: auto;
  height: auto;
  line-height: 140%;
  margin-bottom: 8px;
  font-size: var(--lab-h5);
  font-weight: 600;
}
.lab-input-combo .lab-input-item {
  width: 100%;
}
.lab-input-combo .lab-input-item ~ .lab-input-item {
  margin-top: 8px;
}
.lab-input-combo .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.lab-input-combo .row .lab-input-item {
  flex: 1;
  margin-top: 0;
}

.lab-input-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.lab-input-item .ud-input {
  flex: 1;
  min-width: unset;
}
.lab-input-item .txt {
  padding-left: 8px;
  font-size: var(--lab-h5);
  font-weight: 400;
}

.lab-input-tit {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: var(--lab-h5);
  font-weight: 600;
}

/* Resopnsive */
/* Front container (mobile-first, capped at 1024px) */
.lab-container {
  width: 100%;
  max-width: var(--lab-container-max, 1024px);
  margin: 0 auto;
  padding-left: var(--lab-container-padding, 16px);
  padding-right: var(--lab-container-padding, 16px);
}

/* Card list spacing */
.mission-card-list {
  display: grid;
  gap: var(--card-gap);
}

/* Mobile first tweak */
.page-title.type4 .title p {
  line-height: 1.35;
}
.page-title.type4 .txt {
  line-height: 1.45;
}

.lab-card {
  padding: 14px 10px;
}

.lab-text-box.type1 {
  padding: 14px 16px;
}

/* Popup */
.pop-block .form-table {
  border-top: 0;
}
.pop-block .form-table tr {
  display: grid;
  grid-template-columns: 100%;
}
.pop-block .form-table th, .pop-block .form-table td {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 32px;
  padding: 6px 12px !important;
  text-align: left !important;
}
.pop-block .form-table th {
  background-color: #DCDFE6;
  border-bottom: 1px solid var(--color-ddd);
  border-bottom: 0;
  font-weight: 500;
}
.pop-block .form-table td .txt {
  font-size: var(--lab-h7);
}

@media screen and (max-width: 360px) {
  .check-block .input-combo .ud-input-item,
  .radio-block .input-combo .ud-input-item {
    min-width: unset;
  }
}
@media screen and (min-width: 360px) {
  .ud-input-item {
    min-width: unset;
  }
}
@media screen and (min-width: 768px) {
  .lab-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .lab-card {
    padding: 16px 12px;
  }
  .lab-text-box.type1 {
    padding: 16px 24px;
  }
  .lab-input-combo {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .lab-input-combo .lab-input-item + .lab-input-item {
    margin-top: 0;
  }
}
@media screen and (min-width: 1024px) {
  .lab-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .page-title {
    padding-bottom: 28px;
  }
  .page-title.type2 .small {
    margin-bottom: 8px;
  }
  .page-title.type3 .small {
    margin-bottom: 8px;
  }
  .page-title.type3 .sub {
    margin-bottom: 8px;
  }
  .page-title.type3 .title {
    margin-top: 8px;
  }
  .page-title.type4 .small {
    margin-bottom: 10px;
  }
  .page-title.type4 .txt {
    margin-top: 24px;
  }
  .ud-title-block.type3 {
    gap: 10px;
  }
  .ud-title-block.type4 [class^=ri-] {
    margin-bottom: 12px;
  }
  .lab-card {
    padding: 20px 16px;
  }
  .lab-text-box.type1 {
    padding: 18px 40px;
  }
}