/* =============================================
   LSIGN 採用ページ専用スタイル
   ============================================= */

/* ── Page Hero ── */
.p-page-hero {
  background: #fff;
  padding: 80px 0 60px;
}
@media (max-width: 768px) { .p-page-hero { padding: 50px 0 40px; } }

.p-page-hero__en {
  font-family: 'Jost', sans-serif;
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 700;
  color: #AF2823;
  line-height: 1;
  letter-spacing: 0.04em;
  display: block;
}
.p-page-hero__ja {
  font-size: 16px;
  color: #444;
  margin-top: 12px;
  font-weight: 500;
}

/* ── Section ── */
.l-section--recruit {
  padding: 80px 0;
  background: #f8f8f8;
}
@media (max-width: 768px) { .l-section--recruit { padding: 50px 0; } }

/* ── Section Header ── */
.c-recruit-section-header { margin-bottom: 50px; }
.c-recruit-section-header__en {
  font-family: 'Jost', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: #000;
  display: block;
  letter-spacing: 0.06em;
  line-height: 1;
}
.c-recruit-section-header__ja {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  font-weight: 500;
}

/* ── Tab Nav ── */
.c-tab-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 50px;
}
.c-tab-nav__item {
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 100px;
  border: 2px solid #ddd;
  background: #fff;
  color: #888;
  transition: all 0.2s;
  user-select: none;
}
.c-tab-nav__item.is-active {
  background: #AF2823;
  border-color: #AF2823;
  color: #fff;
}
.c-tab-nav__item:not(.is-active):hover {
  border-color: #AF2823;
  color: #AF2823;
}

/* ── Job Card Grid ── */
.c-job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 992px) { .c-job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .c-job-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ── Job Card ── */
.c-job-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.c-job-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.c-job-card.is-hidden { display: none; }

.c-job-card__body {
  padding: 24px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-job-card__dept {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}
.c-job-card__title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: #000;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 12px;
}
.c-job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.c-job-card__tag {
  font-size: 11px;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 20px;
  color: #555;
  font-weight: 500;
}
.c-job-card__tag--type {
  background: #000;
  color: #fff;
}
.c-job-card__desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-top: 8px;
  flex: 1;
}
.c-job-card__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.c-job-card__arrow {
  width: 32px;
  height: 32px;
  background: #AF2823;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.c-job-card__arrow::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg) translateX(-1px);
}

/* ── Job Detail Hero ── */
.p-job-detail__hero {
  background: #fff;
  padding: 80px 0 60px;
  border-bottom: 1px solid #e8e8e8;
}
@media (max-width: 768px) { .p-job-detail__hero { padding: 50px 0 40px; } }

.p-job-detail__hero-dept {
  font-size: 12px;
  font-weight: 700;
  color: #AF2823;
  letter-spacing: 0.12em;
  background: rgba(175,40,35,0.1);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.p-job-detail__hero-title {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #000;
}
.p-job-detail__hero-company {
  font-size: 15px;
  color: #666;
}
.p-job-detail__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.p-job-detail__hero-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  background: #f0f0f0;
  color: #333;
  letter-spacing: 0.04em;
}
.p-job-detail__hero-tag--red { background: #AF2823; color: #fff; }

/* ── Detail Body ── */
.p-job-detail__body {
  padding: 70px 0;
  background: #f8f8f8;
}
@media (max-width: 768px) { .p-job-detail__body { padding: 40px 0; } }

.p-job-detail__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 992px) {
  .p-job-detail__layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Detail Section ── */
.c-detail-section { margin-bottom: 50px; }
.c-detail-section:last-child { margin-bottom: 0; }

.c-detail-section__title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 28px;
  position: relative;
}
.c-detail-section__title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: #AF2823;
}

/* ── Detail Table ── */
.c-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.c-detail-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid #eee;
  width: 140px;
  vertical-align: top;
}
.c-detail-table td {
  font-size: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.8;
}
.c-detail-table td a { color: #AF2823; }

/* ── Sidebar ── */
.p-job-detail__sidebar {
  position: relative;
  align-self: start;
}
.c-sidebar-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.c-sidebar-card__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}
.c-sidebar-card__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}
.c-sidebar-card__item:last-child { border-bottom: none; }
.c-sidebar-card__label {
  color: #777;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 4.5em;
}
.c-sidebar-card__value {
  color: #000;
  font-weight: 500;
  text-align: left;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-all;
}

.c-entry-btn {
  display: block;
  background: #AF2823;
  color: #fff;
  text-align: center;
  padding: 18px 30px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition: background 0.2s;
  border-radius: 4px;
  margin-top: 20px;
  text-decoration: none;
}
.c-entry-btn:hover { background: #8f1e1a; color: #fff; }

.c-sidebar-note {
  margin-top: 16px;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* ── Breadcrumb (recruit pages) ── */
.c-recruit-breadcrumb {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.c-recruit-breadcrumb__list {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.c-recruit-breadcrumb__item {
  font-size: 12px;
  color: #777;
}
.c-recruit-breadcrumb__item a { color: #777; text-decoration: underline; }
.c-recruit-breadcrumb__item a:hover { color: #AF2823; }
.c-recruit-breadcrumb__sep { color: #bbb; font-size: 12px; }

/* ── Back Link ── */
.c-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #AF2823;
  margin-bottom: 40px;
  transition: gap 0.2s;
  text-decoration: none;
}
.c-back-link::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #AF2823;
  border-bottom: 2px solid #AF2823;
  transform: rotate(45deg);
}
.c-back-link:hover { gap: 12px; color: #AF2823; }

/* ── Entry Form ── */
.p-entry-form {
  background: #ebebeb;
  padding: 80px 0;
  border-top: 4px solid #AF2823;
}
@media (max-width: 768px) { .p-entry-form { padding: 50px 0; } }

.p-entry-form__title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 700;
  color: #AF2823;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.p-entry-form__subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 50px;
}

/* CF7 form wrapper styles */
.p-entry-form .wpcf7-form {
  background: #fff;
  border-radius: 4px;
  padding: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
@media (max-width: 768px) { .p-entry-form .wpcf7-form { padding: 30px 20px; } }

.p-entry-form .wpcf7-form p { margin-bottom: 24px; }

.p-entry-form .wpcf7-form input[type="text"],
.p-entry-form .wpcf7-form input[type="email"],
.p-entry-form .wpcf7-form input[type="tel"],
.p-entry-form .wpcf7-form input[type="date"],
.p-entry-form .wpcf7-form select,
.p-entry-form .wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  background: #fff;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.p-entry-form .wpcf7-form input:focus,
.p-entry-form .wpcf7-form select:focus,
.p-entry-form .wpcf7-form textarea:focus {
  outline: none;
  border-color: #AF2823;
  box-shadow: 0 0 0 3px rgba(175,40,35,0.1);
}
.p-entry-form .wpcf7-form input[type="submit"] {
  background: #AF2823;
  color: #fff;
  border: none;
  padding: 18px 60px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  display: block;
  margin: 0 auto;
}
.p-entry-form .wpcf7-form input[type="submit"]:hover { background: #8f1e1a; }

.p-entry-form .wpcf7-form .wpcf7-not-valid-tip { font-size: 12px; color: #AF2823; }
.p-entry-form .wpcf7-response-output { font-size: 13px; padding: 10px 16px; margin-top: 20px; }

/* ── Entry Form Grid ── */
.p-entry-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .p-entry-form__grid { grid-template-columns: 1fr; } }

.p-entry-form__group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.p-entry-form__required {
  display: inline-block;
  background: #AF2823;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  line-height: 1.5;
  flex-shrink: 0;
}

.p-entry-form__privacy-box {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 12px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}
.p-entry-form__privacy-box a { color: #AF2823; text-decoration: underline; }

.p-entry-form__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-bottom: 28px;
}
.p-entry-form__agree .wpcf7-list-item { margin: 0; }
.p-entry-form__agree .wpcf7-list-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.p-entry-form__agree a { color: #AF2823; }

.p-entry-form__submit { text-align: center; }

.p-entry-form .wpcf7-form input[readonly] {
  background: #f8f8f8;
  color: #444;
  cursor: default;
}

/* ── Recruit RECRUIT nav item highlight ── */
.c-global-nav__item--recruit > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #AF2823;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.c-global-nav__item--recruit:hover > a::after { transform: scaleX(1); }
