/* recruitトップビジュアル用スタイル */
.recruit-top-visual {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin-bottom: 32px;
}

.recruit-top-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  padding-top: 80px;
}

.recruit-top-texts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 5vw;
  pointer-events: none;
}

.recruit-top-title {
  color: var(--primary-color);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  margin-left: 70px;
  line-height: 1.1;
  background: none;
  pointer-events: auto;
  transform: scaleX(1.3);
}

.recruit-top-message {
  background: var(--primary-color);
  color: #fff;
  font-size: 1.5rem;
  padding: 2px 0px 2px 10px;
  margin-bottom: 0;
  line-height: 2;
  box-shadow: 0 2px 12px #2B30BB22;
  pointer-events: auto;
  display: inline-block;
  margin-bottom: 5px;
}

.recruit-top-message>div+div {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .recruit-top-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    margin-left: 30px;
    margin-top: 90px;
  }

  .recruit-top-texts {
    padding: 18px 2vw;
  }

  .recruit-top-message {
    font-size: 0.6rem;
    padding: 6px 8px;
    line-height: 1.4;
    max-width: 90%;
  }

  .recruit-message {
    font-size: 0.9rem !important;
    padding: 10px 12px 10px 12px !important;
    margin-bottom: 0 !important;
  }

  .pc-nav {
    display: none !important;
  }

  .sp-nav {
    display: block !important;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background: #fff;
    margin: 0;
    padding-bottom: 2rem;
  }

  .recruit-nav-buttons {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 5rem;
  }

  .recruit-nav-buttons .sp-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .recruit-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    position: relative;
    text-align: center;
    width: calc(50% - 0.25rem);
    margin: 0;
  }

  .recruit-tab-link .tab-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s;
    color: #FF9F1C;
    font-size: 1.1em;
  }

  .recruit-tab-link:hover,
  .recruit-tab-link:focus {
    background-color: var(--primary-color);
    color: #fff;
  }

  /* メインコンテンツの上部マージンを削除 */
  main {
    padding-top: 0;
  }

  /* recruit-job-contentの上部マージンを追加 */
  .recruit-job-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    margin: 0.4rem 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px #2B30BB11 !important;
    background: #fff !important;
  }

  .recruit-job-content-label {
    min-width: 100px !important;
    max-width: 100px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 1.0rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.2rem 0.5rem !important;
    letter-spacing: 0.05em !important;
    word-break: keep-all !important;
    white-space: normal !important;
  }

  .recruit-job-content-body {
    flex: 1 1 0% !important;
    padding: 1rem 0.7rem !important;
    font-size: 0.95rem !important;
    color: var(--text-color) !important;
    background: #fff !important;
    line-height: 1.8 !important;
  }

  .recruit-job-point {
    font-size: 0.8rem !important;
  }
}

@media (min-width: 701px) {
  .sp-nav {
    display: none !important;
  }
}

.recruit-message {
  margin-bottom: 0;
  max-width: 900px;
  margin: 40px auto 32px auto;
  padding: 24px 16px 18px 16px;
  text-align: center;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 2;
  border-radius: 12px;
}

.recruit-job-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 36px auto 40px auto;
  max-width: 1040px;
}

.recruit-job-btn {
  width: 240px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary-color);
  background: #fff;
  border: 1px solid var(--primary-color);
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  outline: none;
  text-align: center;
  letter-spacing: 0.01em;
  padding: 0;
}

.recruit-job-btn .recruit-job-arrow {
  margin-left: 0.7em;
  color: #FF9F1C;
  font-size: 1.1em;
  transition: transform 0.3s;
}

.recruit-job-btn:hover,
.recruit-job-btn:focus,
.recruit-job-btn.active {
  background: var(--primary-color);
  color: #fff;
}

@media (max-width: 1100px) {
  .recruit-job-buttons {
    max-width: 100%;
    gap: 16px;
    justify-content: center;
  }

  .recruit-job-btn {
    width: 22vw;
    min-width: 160px;
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  .recruit-job-buttons {
    gap: 12px;
  }

  .recruit-job-btn {
    width: 45vw;
    min-width: 140px;
    max-width: 240px;
  }

  .recruit-message {
    text-align: left;
    padding: 0px 30px 30px 30px !important;
  }

  .pc-br {
    display: none;
  }

  .recruit-entry-section {
    margin-left: 0.7rem !important;
    margin-right: 0.7rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

}

@media (max-width: 600px) {
  .recruit-job-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    max-width: 98vw;
  }

  .recruit-job-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
    height: 48px;
  }
}

.recruit-job-content {
  display: flex;
  max-width: 1100px;
  margin: 16px auto 16px auto;
  background: #fff;
  box-shadow: 0 2px 12px #2B30BB11;
  overflow: hidden;
}

.recruit-job-content-label {
  background: var(--primary-color);
  color: #fff;
  font-size: 1.15rem;
  min-width: 180px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  letter-spacing: 0.05em;
  white-space: normal !important;
  word-break: break-all !important;
}

.recruit-job-content-body {
  color: var(--text-color);
  background: #fff;
  padding: 20px 20px 20px 20px;
  font-size: 1.05rem;
  line-height: 2;
  flex: 1 1 0%;
}

.recruit-job-content-body p {
  margin-bottom: 18px;
}

.recruit-job-content-body p:last-child {
  margin-bottom: 0;
}

/* 休日・福利厚生リストの先頭アイコンを■に */
.recruit-job-content-body ul li::before {
  content: '■';
  color: #2B30BB;
  margin-right: 0.5em;
  font-size: 1em;
}

.recruit-job-content-body ul {
  list-style: none !important;
  color: inherit !important;
  padding-left: 0;
  margin-left: 0;
}

.recruit-entry-section {
  border: 2px solid var(--primary-color);
  max-width: 900px;
  margin: 36px auto 48px auto;
  padding: 48px 16px 48px 16px;
  background: #fff;
  text-align: center;
}

.recruit-entry-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.recruit-entry-btn {
  display: inline-flex;
  align-items: center;
  background: #FF9F1C;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 100px;
  padding: 18px 38px 18px 32px;
  text-decoration: none;
  box-shadow: 0 2px 8px #ff9f1c22;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  position: relative;
  margin: 0 auto;
  gap: 18px;
}

.recruit-entry-btn:hover,
.recruit-entry-btn:focus {
  background: #F59300;
  color: #fff;
  box-shadow: 0 4px 16px #ff9f1c33;
}

.recruit-entry-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2B30BB;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  font-size: 1.3em;
  box-shadow: 0 1px 4px #2B30BB11;
  transition: background 0.2s, color 0.2s;
}

.recruit-entry-btn:hover .recruit-entry-arrow {
  background: #fff;
  color: #F59300;
}

.recruit-job-point {
  font-weight: 500;
  color: #2B30BB;
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  line-height: 2;
}