/* ==========================================================================
   Recruit entry page
   ========================================================================== */

.recruit-site .c-main {
  background: #f6f6f1;
}

.r-entry-hero {
  padding: 3rem 0 1rem;
}

.r-entry-hero__title {
  font-size: clamp(calc(28px * var(--fs-scale)), 3vw, calc(40px * var(--fs-scale)));
  font-weight: var(--c-font-weight-main);
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 0;
}

.r-breadcrumb {
  text-align: right;
  margin-top: 28px;
  margin-bottom: 0;
  margin-right: 2em;
  font-size: calc(13px * var(--fs-scale));
  color: var(--c-muted);
}

.r-breadcrumb a {
  color: var(--c-muted);
}

.r-breadcrumb a:hover {
  color: var(--recruit-primary);
}

.r-breadcrumb__sep {
  opacity: 0.7;
}

.r-job-nav--entry {
  padding: 8rem 0 3rem;
  background: transparent;
}

.r-job-nav--entry .r-job-nav__list {
  padding: 0 50px;
}

.r-entry-body {
  background: #fff;
  border-radius: 160px 0 0 0;
  margin-left: 60px;
}

.r-job-block {
  padding: 40px 0 24px;
  background: transparent;
}

.r-job-block[hidden] {
  display: none !important;
}

.c-container > .r-job-block {
  max-width: 100%;
}

.r-job-block__title.c-title-line,
.r-form-section__title.c-title-line {
  display: table;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: calc(32px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  color: var(--recruit-primary);
  text-align: center;
}

.r-job-block__title.c-title-line {
  margin-bottom: 48px;
}

/* Employment tabs */
.r-entry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.r-entry-tabs__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  background: #e8e8e8;
  color: var(--recruit-text);
  font-size: calc(22px * var(--fs-scale));
}

.r-entry-tabs__btn.is-active {
  background: var(--recruit-primary);
  color: #fff;
}

.r-entry-tabs__panel {
  padding: 0;
}

.r-entry-tabs__panel[hidden] {
  display: none !important;
}

/* Spec table */
.r-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.r-spec-table th,
.r-spec-table td {
  padding: 22px 8px 22px 0;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  text-align: left;
  line-height: 1.8;
}

.r-spec-table th {
  width: 22%;
  min-width: 160px;
  font-weight: var(--c-font-weight-bold);
  color: var(--recruit-text);
  padding-right: 24px;
}

.r-spec-table td {
  background: #fff;
  white-space: pre-wrap;
  padding-left: 32px;
}

.r-spec-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--recruit-muted);
}

/* LINE */
.r-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  padding: 8px 16px 8px 12px;
  background: #eaf7ee;
  color: var(--recruit-text) !important;
  font-weight: var(--c-font-weight-bold);
  font-size: calc(13px * var(--fs-scale));
  line-height: 1.4;
  border: 1px solid #06c755;
  border-radius: 2px;
}

.r-line-btn img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.r-line-btn__arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #06c755;
  border-bottom: 2px solid #06c755;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.r-line-btn:hover {
  background: #06c755;
  color: #fff !important;
}

.r-line-btn:hover .r-line-btn__arrow {
  border-color: #fff;
}

/* Entry form */
.r-form-section {
  padding: 72px 0 96px;
  background: transparent;
}

.r-form-section__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.r-form-section__title.c-title-line {
  grid-column: 2;
  margin-top: 0;
  margin-bottom: 0;
}

.r-form-section__head .r-line-btn {
  grid-column: 3;
  justify-self: end;
}

.r-form-stage {
  margin: 0 auto;
}

.r-form-section .wpcf7-form > p {
  margin: 0;
}

.r-form__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px 28px;
  padding: 20px 0;
  border-bottom: 1px solid #d8e8e4;
  align-items: start;
}

.r-form__row:first-of-type {
  border-top: 1px solid #d8e8e4;
}

.r-form__label {
  margin: 0;
  padding-top: 10px;
  font-weight: var(--c-font-weight-bold);
}

.r-form__req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--recruit-primary);
  color: #fff;
  font-size: 11px;
  font-weight: var(--c-font-weight-bold);
  border-radius: 2px;
  vertical-align: middle;
  letter-spacing: 0;
}

.r-form__note {
  display: inline-block;
  margin-left: 6px;
  font-size: calc(12px * var(--fs-scale));
  font-weight: 400;
  color: var(--recruit-muted);
}

.r-form-section .wpcf7-form-control-wrap {
  display: block;
}

.r-form-section input.r-form__input,
.r-form-section input.wpcf7-text,
.r-form-section input.wpcf7-email,
.r-form-section input.wpcf7-tel,
.r-form-section input.wpcf7-number,
.r-form-section input.wpcf7-date,
.r-form-section select.r-form__select,
.r-form-section select.wpcf7-select,
.r-form-section textarea.r-form__textarea,
.r-form-section textarea.wpcf7-textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--recruit-text);
  background: #fff;
  box-sizing: border-box;
}

.r-form-section textarea.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}

.r-form-section input:focus,
.r-form-section select:focus,
.r-form-section textarea:focus {
  outline: none;
  border-color: var(--recruit-primary);
  box-shadow: 0 0 0 3px rgba(57, 141, 120, 0.18);
}

.r-form__controls--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.r-form__controls--stack {
  display: flex;
  flex-direction: column;
}

.r-form__controls--stack > p {
  display: contents;
}

.r-form__controls--stack .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
  margin-top: 16px;
}

.r-form__address {
  display: flex;
  flex-direction: column;
}

.r-form__address > p:not(.r-form__zip) {
  display: contents;
}

.r-form__zip + .wpcf7-form-control-wrap,
.r-form__address .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
  margin-top: 16px;
}

.r-form__zip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 16px;
  max-width: 260px;
}

.r-form__zip .wpcf7-form-control-wrap {
  flex: 1;
}

.r-form__hint {
  font-size: calc(12px * var(--fs-scale));
  color: var(--recruit-muted);
  margin: 6px 0 0;
}

.r-form__checks .wpcf7-list-item,
.r-form__radios .wpcf7-list-item {
  margin: 0 20px 8px 0;
}

.r-form-section .wpcf7-list-item-label {
  font-size: calc(18px * var(--fs-scale));
}

.r-form__checks--qual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.r-form__checks--qual .wpcf7-form-control-wrap[data-name="qualifications-other"],
.r-form__checks--qual .wpcf7-form-control-wrap:last-of-type {
  flex: 1 1 180px;
  min-width: 160px;
}

.r-form__experience {
  display: flex;
  align-items: center;
  gap: 8px;
}

.r-form__experience .wpcf7-form-control-wrap {
  width: 120px;
}

.r-form__unit {
  font-size: calc(14px * var(--fs-scale));
}

.r-form__dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.r-form__date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: calc(12px * var(--fs-scale));
  font-weight: var(--c-font-weight-bold);
}

.r-form__footer {
  padding-top: 36px;
  text-align: center;
}

.r-form__privacy {
  margin: 0 0 20px !important;
  font-size: calc(15px * var(--fs-scale));
  line-height: 1.7;
}

.r-form__privacy a {
  color: #2e7fb7;
}

.r-form__agree {
  display: flex;
  justify-content: center;
  margin: 0 0 28px !important;
}

.r-form-section .wpcf7-acceptance {
  margin: 0;
}

.r-form__submit-wrap {
  text-align: center;
}

.r-form-section input.wpcf7-submit.r-form__submit,
.r-form-section input.wpcf7-submit,
.r-form-section input.wpcf7-submit.c-btn {
  width: 320px;
  max-width: 100%;
  height: 65px;
  border: 2px solid var(--recruit-primary);
  border-radius: 0;
  background: var(--recruit-primary);
  color: #fff;
  font-size: calc(16px * var(--fs-scale));
  font-weight: var(--c-font-weight-bold);
  cursor: pointer;
  box-shadow: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.r-form-section input.wpcf7-submit:hover,
.r-form-section input.wpcf7-submit.c-btn:hover {
  background: #fff;
  color: var(--recruit-primary) !important;
  border-color: var(--recruit-primary);
  transform: none;
  box-shadow: none;
}

.r-form-section input.wpcf7-submit:disabled,
.r-form-section input.wpcf7-submit:disabled:hover {
  background: var(--recruit-primary);
  color: #fff;
  border-color: var(--recruit-primary);
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.r-footer::before {
  display: none;
}

.r-form-section .wpcf7-not-valid-tip,
.r-form-section .wpcf7-response-output {
  font-size: calc(13px * var(--fs-scale));
}

.r-form-section .wpcf7-not-valid-tip {
  color: #c0392b;
  margin-top: 6px;
}

.r-form-confirm {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.r-form-confirm[hidden] {
  display: none !important;
}

.r-form-confirm__lead {
  text-align: center;
  font-weight: var(--c-font-weight-bold);
  margin-bottom: 24px;
}

.r-form-confirm__list {
  margin: 0 0 36px;
}

.r-form-confirm__list dt,
.r-form-confirm__list dd {
  padding: 14px 0;
  border-bottom: 1px solid #d8e8e4;
  margin: 0;
}

.r-form-confirm__list dt {
  font-weight: var(--c-font-weight-bold);
  font-size: calc(14px * var(--fs-scale));
}

.r-form-confirm__list dd {
  padding-top: 0;
  white-space: pre-wrap;
}

.r-form-confirm__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.r-form-confirm__actions .c-btn {
  box-shadow: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.r-form-confirm__actions .c-btn:hover,
.r-form-confirm__actions button.c-btn:hover {
  transform: none;
  box-shadow: none;
}

.r-form-confirm__actions .c-btn--primary:hover {
  background: #fff;
  color: var(--c-primary) !important;
}

.r-form-confirm__actions .c-btn--outline:hover {
  background: var(--c-primary);
  color: #fff !important;
}

.r-form-stage.is-confirming .wpcf7 {
  display: none;
}

/* Thanks */
.r-entry-thanks[hidden] {
  display: none !important;
}

.r-entry-thanks {
  min-height: calc(100vh - var(--recruit-header-h));
  display: flex;
  flex-direction: column;
  padding: 40px 0 96px;
}

.r-entry-thanks .c-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.r-entry-thanks__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 16px 80px;
}

.r-entry-thanks .r-entry-thanks__title {
  font-size: calc(28px * var(--fs-scale));
  font-weight: var(--c-font-weight-bold);
  color: var(--recruit-text);
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-bottom: 1.4em;
}

.r-entry-thanks .r-entry-thanks__text {
  font-size: calc(15px * var(--fs-scale));
  color: var(--recruit-text);
  line-height: 2;
  margin-bottom: 48px;
}

.r-entry-thanks__text a {
  color: var(--recruit-primary);
  text-decoration: underline;
}

.r-entry-thanks__text a:hover {
  color: var(--recruit-primary-dark);
}

.r-entry-thanks__btn {
  box-shadow: none;
  width: 360px;
  max-width: 100%;
  padding-left: 56px;
  padding-right: 24px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.r-entry-thanks__btn .c-btn__arrow {
  right: auto;
  left: 18px;
}

.r-entry-thanks__btn .c-btn__arrow--back::after {
  transform: translate(-35%, -50%) rotate(135deg);
}

.r-entry-thanks__btn:hover,
.corporate-site a.c-btn.r-entry-thanks__btn:hover {
  transform: none;
  box-shadow: none;
  background: #fff;
  color: var(--recruit-primary) !important;
  border-color: var(--recruit-primary);
}

.r-entry-thanks__btn:hover .c-btn__arrow {
  background: var(--recruit-primary);
}

.r-entry-thanks__btn:hover .c-btn__arrow::after {
  border-color: #fff;
}

.recruit-site.is-entry-thanks .r-entry-hero,
.recruit-site.is-entry-thanks .r-entry-body {
  display: none !important;
}

.recruit-site.is-entry-thanks .c-main {
  background: #fff;
}

@media screen and (max-width: 1000px) {
  .r-entry-body {
    margin-left: 24px;
    border-radius: 80px 0 0 0;
  }

  .r-job-nav--entry .r-job-nav__list {
    padding: 0 24px;
  }
}

@media screen and (max-width: 767px) {
  .r-entry-hero {
    padding: 2.5rem 0 1rem;
  }

  .r-breadcrumb {
    bottom: 12px;
  }

  .r-entry-tabs {
    flex-direction: column;
  }

  .r-job-nav--entry {
    padding: 4rem 0 1rem;
  }

  .r-entry-body {
    margin-left: 0;
    border-radius: 0;
  }

  .r-job-nav--entry .r-job-nav__list {
    padding: 0 16px;
  }

  .r-job-block__title.c-title-line,
  .r-form-section__title.c-title-line {
    font-size: 25px;
  }

  .r-job-block__title.c-title-line {
    margin-bottom: 32px;
  }

  .r-spec-table th,
  .r-spec-table td {
    display: block;
    width: 100%;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .r-spec-table th {
    border-bottom: 0;
    padding-bottom: 4px;
    min-width: 0;
    font-size: 16px;
  }

  .r-spec-table td {
    padding-top: 0;
    font-size: 16px;
  }

  .r-form-section__head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .r-form-section__title.c-title-line,
  .r-form-section__head .r-line-btn {
    grid-column: 1;
    justify-self: center;
    max-width: 300px;
  }


  .r-form__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .r-form__label {
    padding-top: 0;
    font-size: 16px;
  }

  .r-form__controls--2,
  .r-form__dates {
    grid-template-columns: 1fr;
  }

  .r-entry-tabs__btn {
    min-width: 0;
    flex: 1 1 0;
    font-size: 18px;
  }

  .r-line-btn {
    min-width: 0;
    width: 100%;
  }

  .r-entry-thanks {
    min-height: 0;
    padding: 24px 0 72px;
  }

  .r-entry-thanks__inner {
    padding: 48px 8px 56px;
  }

  .r-entry-thanks .r-entry-thanks__title {
    font-size: 20px;
  }

  .r-entry-thanks .r-entry-thanks__text {
    font-size: 14px;
    margin-bottom: 36px;
  }

  .r-entry-thanks__btn {
    width: 100%;
    max-width: 280px;
  }
}
