/* ============================================================
   Tsubame Logistics — RECRUIT-FORM PAGE STYLES
   募集要項詳細 + エントリーフォーム集約ページ用
   2026.05
   ============================================================ */

/* recruit.cssの.rc-*トークンを継承して使用 */

.recruit-form {
  background: var(--rc-paper);
}

/* ============================================================
   01 HERO + BREADCRUMB
   ============================================================ */
.rf-hero {
  position: relative;
  padding: 100px 24px 70px;
  overflow: hidden;
}
.rf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rf-hero__bg svg {
  width: 100%;
  height: 100%;
}
.rf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.rf-breadcrumb {
  text-align: left;
  margin-bottom: 32px;
}
.rf-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rc-ink-3);
}
.rf-breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.rf-breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
  color: var(--rc-ink-3);
}
.rf-breadcrumb a {
  color: var(--rc-ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rf-breadcrumb a:hover { color: var(--rc-red); }
.rf-breadcrumb [aria-current="page"] {
  color: var(--rc-red);
  font-weight: 700;
}

.rf-hero__en {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--rc-red);
  margin: 0 0 14px;
}
.rf-hero__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  margin: 0 0 24px;
  font-feature-settings: "palt";
}
.rf-hero__lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--rc-ink-2);
  margin: 0 auto 36px;
  max-width: 700px;
}

.rf-hero__anchors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.rf-hero__anchors a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--rc-ink);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.rf-hero__anchors a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.rf-hero__anchors a::before {
  content: '↓';
  font-size: 11px;
  opacity: 0.6;
}
.rf-hero__anchor--cta {
  background: var(--rc-red) !important;
  color: #fff !important;
  border-color: var(--rc-red) !important;
}
.rf-hero__anchor--cta::before {
  color: #fff;
  opacity: 1 !important;
}
.rf-hero__anchor--cta:hover {
  background: var(--rc-red-deep) !important;
  box-shadow: 0 6px 18px rgba(230,0,18,0.4) !important;
}

@media (max-width: 768px) {
  .rf-hero { padding: 64px 16px 48px; }
  .rf-hero__anchors { gap: 8px; }
  .rf-hero__anchors a {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ============================================================
   セクション共通(再利用)
   ============================================================ */
.rf-section-head {
  margin-bottom: 56px;
}
.rf-section-head--center {
  text-align: center;
}
.rf-section-sub {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--rc-ink-3);
}
.rf-section-head--center .rf-section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   02 POSITIONS
   ============================================================ */
.rf-positions {
  padding: 100px 24px;
  background: var(--rc-paper);
}
.rf-positions__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* タブ */
.rf-tabs {
  display: flex;
  gap: 0;
  background: var(--rc-paper-warm);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.rf-tab {
  flex: 1;
  min-width: 140px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--rc-ink-2);
  transition: all 0.25s ease;
}
.rf-tab__label {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.rf-tab__count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rc-ink-3);
}
.rf-tab:hover {
  color: var(--rc-ink);
}
.rf-tab.is-active {
  background: #fff;
  color: var(--rc-red);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.rf-tab.is-active .rf-tab__count {
  color: var(--rc-red);
  opacity: 0.85;
}
.rf-tab-panel {
  display: block;
}
.rf-tab-panel[hidden] {
  display: none;
}

/* ジョブカード */
.rf-job-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rf-job {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rf-job:hover {
  border-color: var(--rc-red);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.rf-job__head {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(180deg, var(--rc-paper-warm) 0%, transparent 100%);
  border-bottom: 1px solid var(--rc-line);
}
.rf-job__no {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--rc-red);
  letter-spacing: 0.02em;
  text-align: center;
}
.rf-job__head-body {
  min-width: 0;
}
.rf-job__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  margin: 0 0 6px;
  line-height: 1.4;
  font-feature-settings: "palt";
}
.rf-job__catch {
  font-size: 13px;
  line-height: 1.7;
  color: var(--rc-ink-2);
  margin: 0;
}
.rf-job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.rf-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: #F0F0EC;
  color: var(--rc-ink-2);
}
.rf-tag--main {
  background: var(--rc-ink);
  color: #fff;
}
.rf-tag--accent {
  background: rgba(230,0,18,0.10);
  color: var(--rc-red);
}
.rf-tag--soft {
  background: rgba(123,165,201,0.18);
  color: #2C4863;
}

/* スペック表 */
.rf-job__spec {
  padding: 24px 28px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.rf-job__spec > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 16px 12px 0;
  border-bottom: 1px dashed var(--rc-line);
  align-items: start;
}
.rf-job__spec > div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.rf-job__spec > div:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--rc-line);
}
.rf-job__spec > div:nth-child(even) {
  padding-left: 24px;
}
.rf-job__spec > div:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
  padding-left: 0;
  padding-right: 16px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--rc-line);
}
.rf-job__spec > div:last-child dt {
  font-weight: 900;
}
.rf-job__spec dt {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rc-ink-3);
  margin: 0;
  padding-top: 2px;
}
.rf-job__spec dd {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: var(--rc-ink);
  margin: 0;
}

.rf-job__apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 28px;
  background: var(--rc-ink);
  color: #fff;
  border: 0;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.10em;
  transition: background 0.2s ease, transform 0.2s ease;
  font-feature-settings: "palt";
}
.rf-job__apply:hover {
  background: var(--rc-red);
}
.rf-job__apply svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.rf-job__apply:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .rf-positions { padding: 64px 16px; }
  .rf-tabs { margin-bottom: 32px; }
  .rf-tab { min-width: 100px; padding: 12px 14px; }
  .rf-tab__label { font-size: 13px; }
  .rf-job__head {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }
  .rf-job__no {
    text-align: left;
    font-size: 28px;
  }
  .rf-job__tags { justify-content: flex-start; }
  .rf-job__spec {
    padding: 16px 20px;
    grid-template-columns: 1fr;
  }
  .rf-job__spec > div {
    grid-template-columns: 90px 1fr;
    padding: 10px 0 !important;
    border-right: 0 !important;
  }
  .rf-job__spec > div:nth-last-child(2) {
    border-bottom: 1px dashed var(--rc-line);
  }
}

/* ============================================================
   03 BENEFITS RECAP
   ============================================================ */
.rf-benefits-recap {
  padding: 80px 24px;
  background: var(--rc-paper-warm);
}
.rf-benefits-recap__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rf-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rf-benefits-list li {
  background: #fff;
  border: 1px solid var(--rc-line);
  padding: 16px 20px;
  border-radius: var(--rc-radius-card);
  position: relative;
  padding-left: 44px;
}
.rf-benefits-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--rc-red);
  border-radius: 50%;
}
.rf-benefits-list li::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.rf-benefits-list span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  font-feature-settings: "palt";
}
.rf-benefits-recap__more {
  text-align: center;
  font-size: 14px;
  color: var(--rc-ink-2);
  margin: 0;
}
.rf-benefits-recap__more a {
  color: var(--rc-red);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--rc-red);
}
.rf-benefits-recap__more a:hover {
  opacity: 0.7;
}
@media (max-width: 900px) {
  .rf-benefits-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rf-benefits-recap { padding: 56px 16px; }
}
@media (max-width: 480px) {
  .rf-benefits-list { grid-template-columns: 1fr; }
}

/* ============================================================
   04 FLOW
   ============================================================ */
.rf-flow {
  padding: 100px 24px;
  background: var(--rc-paper);
}
.rf-flow__inner {
  max-width: 980px;
  margin: 0 auto;
}
.rf-flow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  counter-reset: step;
}
.rf-flow__list::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--rc-red) 0%, var(--rc-red) 50%, var(--rc-line) 100%);
  z-index: 0;
}
.rf-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  z-index: 1;
}
.rf-flow__step-no {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--rc-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 6px 18px rgba(230,0,18,0.30);
  position: relative;
  z-index: 2;
}
.rf-flow__step-no-en {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.rf-flow__step-no-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}
.rf-flow__step-body {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  padding: 22px 28px;
  flex: 1;
}
.rf-flow__step-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(17px, 2.2vw, 20px);
  letter-spacing: 0.04em;
  color: var(--rc-ink);
  margin: 0 0 8px;
  font-feature-settings: "palt";
}
.rf-flow__step-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--rc-ink-2);
  margin: 0;
}
.rf-flow__step-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.rf-flow__step-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .rf-flow { padding: 64px 16px; }
  .rf-flow__list::before { left: 28px; }
  .rf-flow__step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .rf-flow__step-no {
    width: 60px;
    height: 60px;
  }
  .rf-flow__step-no-num { font-size: 20px; }
  .rf-flow__step-icon { display: none; }
  .rf-flow__step-body { padding: 18px 20px; }
}

/* ============================================================
   05 FAQ
   ============================================================ */
.rf-faq {
  padding: 100px 24px;
  background: var(--rc-paper-warm);
}
.rf-faq__inner {
  max-width: 900px;
  margin: 0 auto;
}
.rf-faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rf-faq__item {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.rf-faq__item:hover {
  border-color: var(--rc-red);
}
.rf-faq__item details {
  width: 100%;
}
.rf-faq__item summary {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rf-faq__item summary::-webkit-details-marker { display: none; }
.rf-faq__q-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rc-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
}
.rf-faq__q-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rc-ink);
  letter-spacing: 0.04em;
}
.rf-faq__chev {
  width: 24px;
  height: 24px;
  color: var(--rc-ink-3);
  transition: transform 0.25s ease, color 0.2s ease;
}
.rf-faq__chev svg {
  width: 100%;
  height: 100%;
}
.rf-faq__item details[open] .rf-faq__chev {
  transform: rotate(180deg);
  color: var(--rc-red);
}
.rf-faq__a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 4px 24px 24px;
  margin-left: 54px;
  margin-right: 38px;
  border-top: 1px dashed var(--rc-line);
  padding-top: 18px;
}
.rf-faq__a-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rc-paper-warm);
  border: 2px solid var(--rc-ink);
  color: var(--rc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
}
.rf-faq__a p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.95;
  color: var(--rc-ink-2);
  margin: 0;
  padding-top: 4px;
}

@media (max-width: 768px) {
  .rf-faq { padding: 64px 16px; }
  .rf-faq__item summary { padding: 16px 18px; gap: 10px; grid-template-columns: 32px 1fr 20px; }
  .rf-faq__q-mark { width: 32px; height: 32px; font-size: 13px; }
  .rf-faq__a {
    grid-template-columns: 32px 1fr;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 18px 20px;
  }
  .rf-faq__a-mark { width: 32px; height: 32px; font-size: 13px; }
}

/* ============================================================
   06 FORM
   ============================================================ */
.rf-form-sec {
  padding: 100px 24px;
  background: var(--rc-grad-bg);
  position: relative;
}
.rf-form-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.rf-form-sec__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.rf-form {
  background: #fff;
  border-radius: 8px;
  padding: 48px 56px;
  box-shadow: var(--rc-shadow-card-hover);
}

.rf-form__progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 480px;
}
.rf-form__progress-step {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--rc-ink-3);
  text-align: center;
  line-height: 1.2;
  width: 56px;
}
.rf-form__progress-step small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 4px;
  color: inherit;
}
.rf-form__progress-step.is-active {
  color: var(--rc-red);
}
.rf-form__progress-line {
  height: 2px;
  background: var(--rc-line);
  position: relative;
}
.rf-form__progress-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rc-red);
  width: 0%;
}

/* Fieldset */
.rf-form__group {
  border: 0;
  padding: 0;
  margin: 0 0 36px;
}
.rf-form__group legend {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--rc-ink);
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--rc-red);
  width: 100%;
  font-feature-settings: "palt";
}

/* フィールド */
.rf-field {
  margin-bottom: 22px;
}
.rf-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rf-field label,
.rf-field__label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--rc-ink);
  margin: 0 0 8px;
}
.rf-required {
  display: inline-block;
  margin-left: 6px;
  color: var(--rc-red);
  font-size: 12px;
}

.rf-field input[type="text"],
.rf-field input[type="email"],
.rf-field input[type="tel"],
.rf-field input[type="number"],
.rf-field select,
.rf-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--rc-paper-warm);
  border: 1px solid var(--rc-line);
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rc-ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.rf-field input:focus,
.rf-field select:focus,
.rf-field textarea:focus {
  outline: 0;
  border-color: var(--rc-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230,0,18,0.10);
}
.rf-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cpath d='M6 9 L12 15 L18 9' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.rf-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ラジオ・チェック */
.rf-radio-group,
.rf-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-radio-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
.rf-check-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.rf-check-group--3col {
  grid-template-columns: repeat(3, 1fr);
}
.rf-radio,
.rf-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--rc-ink);
  font-weight: 500;
}
.rf-radio--inline {
  margin-right: 0;
}
.rf-radio input[type="radio"],
.rf-check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--rc-line);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
.rf-radio input[type="radio"] {
  border-radius: 50%;
}
.rf-check input[type="checkbox"] {
  border-radius: 3px;
}
.rf-radio input[type="radio"]:checked,
.rf-check input[type="checkbox"]:checked {
  border-color: var(--rc-red);
  background: var(--rc-red);
}
.rf-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.rf-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(-45deg);
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.rf-radio:hover input,
.rf-check:hover input {
  border-color: var(--rc-red);
}

/* プライバシー */
.rf-form__privacy {
  margin: 32px 0 28px;
  padding: 20px 24px;
  background: var(--rc-paper-warm);
  border-radius: 4px;
  text-align: center;
}
.rf-check--privacy {
  font-weight: 700;
  font-size: 14px;
  justify-content: center;
}
.rf-check--privacy a {
  color: var(--rc-red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--rc-red);
}

/* 送信ボタン */
.rf-form__submit {
  text-align: center;
}
.rf-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 56px;
  background: var(--rc-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.10em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(230,0,18,0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-feature-settings: "palt";
}
.rf-form__btn:hover {
  background: var(--rc-red-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(230,0,18,0.45);
}
.rf-form__btn svg {
  width: 20px;
  height: 20px;
}
.rf-form__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--rc-ink-3);
}

/* ---- Contact Form 7 のマークアップ対応 ---- */
.rf-form .wpcf7-form-control-wrap {
  display: block;
}
/* ラジオ・チェック(CF7は label > input + span で出力される) */
.rf-form .wpcf7-list-item {
  margin: 0;
}
.rf-field .wpcf7-list-item label,
.rf-form__privacy .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}
.rf-form .wpcf7-list-item input[type="radio"],
.rf-form .wpcf7-list-item input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--rc-line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
/* 任意項目の択一(性別)は exclusive なチェックボックスなので、見た目をラジオに揃える */
.rf-form .wpcf7-list-item input[type="radio"],
.rf-form .wpcf7-exclusive-checkbox input[type="checkbox"] {
  border-radius: 50%;
}
.rf-form .wpcf7-list-item input:checked {
  border-color: var(--rc-red);
  background: var(--rc-red);
}
.rf-form .wpcf7-list-item input[type="radio"]:checked::after,
.rf-form .wpcf7-exclusive-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.rf-form .wpcf7-list-item input[type="checkbox"]:not(.wpcf7-exclusive-checkbox input):checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(-45deg);
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.rf-form .wpcf7-list-item label:hover input {
  border-color: var(--rc-red);
}
.rf-form__privacy .wpcf7-list-item label {
  font-weight: 700;
  font-size: 14px;
}
.rf-form__privacy a {
  color: var(--rc-red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--rc-red);
}

/* エラー表示・送信結果 */
.rf-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-red);
}
.rf-form .wpcf7-not-valid {
  border-color: var(--rc-red);
}
.rf-form .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}
.rf-form__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.rf-form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}
.rf-form__setup {
  padding: 16px;
  border: 1px dashed var(--rc-red);
  font-size: 13px;
  text-align: center;
}

/* ステップ表示: 済んだステップの線を赤に */
.rf-form__progress-line.is-done::before {
  width: 100%;
}

/* ?job= で求人が指定されている時: 第1希望は求人で確定するので隠す */
.is-job-fixed .rf-field--position {
  display: none;
}
.rf-entry-job {
  margin: 0 0 36px;
  padding: 22px 26px;
  border: 2px solid var(--rc-red);
  border-radius: 6px;
  background: var(--rc-paper-warm);
}
.rf-entry-job__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rc-red);
}
.rf-entry-job__title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--rc-ink);
}
.rf-entry-job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--rc-ink-2);
}
.rf-entry-job__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rc-red);
  text-decoration: none;
  border-bottom: 1px solid var(--rc-red);
}
.rf-entry-notice {
  margin: 0 0 36px;
  padding: 16px 20px;
  border-left: 4px solid var(--rc-red);
  background: var(--rc-paper-warm);
  font-size: 14px;
  line-height: 1.8;
  color: var(--rc-ink);
}

/* 確認画面 */
.rf-confirm {
  margin: 0 0 40px;
  border-top: 1px solid var(--rc-line);
}
.rf-confirm__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rc-line);
}
.rf-confirm dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--rc-ink);
}
.rf-confirm dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rc-ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rf-form__submit--confirm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
}
.rf-form__submit--confirm .wpcf7-spinner {
  flex-basis: 100%;
  margin-top: 0;
}
.rf-form__back {
  padding: 18px 36px;
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--rc-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.rf-form__back:hover {
  border-color: var(--rc-red);
  color: var(--rc-red);
}

/* 確認・完了ページのヘッダー(入力ページより低く) */
.rf-hero--sub {
  padding-bottom: 48px;
}

/* 完了画面 */
.rf-form--thanks {
  text-align: center;
}
.rf-thanks__title {
  margin: 0 0 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--rc-ink);
}
.rf-thanks__text {
  margin: 0 0 36px;
  font-size: 14px;
  line-height: 2;
  color: var(--rc-ink-2);
}
.rf-form--thanks .rf-form__btn {
  text-decoration: none;
}

@media (max-width: 768px) {
  .rf-form-sec { padding: 64px 16px; }
  .rf-form { padding: 28px 24px; }
  .rf-entry-job { padding: 18px 18px; }
  .rf-entry-job__title { font-size: 17px; }
  .rf-confirm__row { grid-template-columns: 1fr; gap: 4px; }
  .rf-form__back { width: 100%; }
  .rf-thanks__title { font-size: 19px; }
  .rf-thanks__text { text-align: left; }
  .rf-form__progress {
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 6px;
    margin-bottom: 28px;
  }
  .rf-field--row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rf-check-group,
  .rf-check-group--3col {
    grid-template-columns: 1fr;
  }
  .rf-form__btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 15px;
  }
}

/* ============================================================
   07 CONTACT BACKUP
   ============================================================ */
.rf-contact {
  padding: 80px 24px;
  background: var(--rc-paper);
}
.rf-contact__inner {
  max-width: 900px;
  margin: 0 auto;
}
.rf-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rf-contact__card {
  background: #fff;
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-card);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rf-contact__card:hover {
  border-color: var(--rc-red);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.rf-contact__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}
.rf-contact__icon svg {
  width: 100%;
  height: 100%;
}
.rf-contact__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.10em;
  color: var(--rc-ink-2);
  margin: 0 0 10px;
}
.rf-contact__num {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: 0.04em;
  color: var(--rc-red);
  margin: 0 0 12px;
  word-break: break-all;
}
/* メール: カード全体をリンクに(href は mailto.js が付ける) */
a.rf-contact__card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.rf-contact__card:not([href]):hover {
  border-color: var(--rc-line);
  box-shadow: none;
}
/* 電話のリンク(inc/contact-links.php) */
.rf-contact__link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a.rf-contact__link[href]:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* 電話: PCでは発信リンク・ホバー効果を無効化(モバイル幅のみ有効) */
@media (min-width: 769px) {
  .rf-contact__link.js-tel {
    pointer-events: none;
    cursor: default;
  }
  .rf-contact__card--tel:hover {
    border-color: var(--rc-line);
    box-shadow: none;
  }
}
.rf-contact__note {
  font-size: 12px;
  color: var(--rc-ink-3);
  margin: 0;
}
@media (max-width: 600px) {
  .rf-contact__grid { grid-template-columns: 1fr; }
  .rf-contact { padding: 56px 16px; }
}

/* Cloudflare Turnstile(CF7) - キー未設定時は中身が空になるので非表示 */
.rf-form__turnstile { display: flex; justify-content: center; margin-bottom: 16px; }
.rf-form__turnstile:empty { display: none; }
