/* ============================================
   Recruit Page Styles
   ============================================ */

/* Header */
.btn--entry {
  background-color: #e53935;
  color: #fff;
}
.btn--entry:hover {
  background-color: #c62828;
}
.btn--entry-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.4em;
  font-size: var(--font-size-sm);
  font-weight: 700;
  background-color: #e53935;
  color: #fff;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s;
}
.btn--entry-sm:hover {
  background-color: #c62828;
}

.site-header__nav-list a.is-active {
  color: var(--color-accent-green);
  border-bottom: 2px solid var(--color-accent-green);
  padding-bottom: 2px;
}

/* ============================================
   Layout
   ============================================ */

.rc-layout {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.rc-layout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .rc-layout__grid {
    grid-template-columns: 1fr 240px;
  }
}

/* ============================================
   Hero
   ============================================ */

.rc-hero {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  position: relative;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .rc-hero {
    flex-direction: row;
    min-height: 300px;
  }
}

.rc-hero__content {
  flex: 1;
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rc-hero__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
}

.rc-hero__subtitle {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-accent-green);
  margin-bottom: var(--space-md);
}

.rc-hero__lead {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.rc-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 320px;
}

.btn--entry-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.6em;
  font-size: var(--font-size-sm);
  font-weight: 700;
  background-color: #e53935;
  color: #fff;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s;
  text-align: center;
}

.btn--entry-block:hover {
  background-color: #c62828;
}

.btn--info-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.6em;
  font-size: var(--font-size-sm);
  font-weight: 500;
  background-color: var(--color-bg-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn--info-block:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-text-muted);
}

.rc-hero__visual {
  flex: 0 0 35%;
  background: linear-gradient(135deg, #e0f0e8 0%, #c8e6d4 50%, #b8dcc8 100%);
  min-height: 180px;
  position: relative;
}

.rc-hero__visual::before {
  content: '';
  position: absolute;
  top: 30%;
  right: 20%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-green);
  opacity: 0.5;
}

@media (max-width: 767px) {
  .rc-hero__visual {
    display: none;
  }
}

.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.6em;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1px solid var(--color-primary-dark);
  border-radius: var(--border-radius-sm);
  color: var(--color-primary-dark);
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.btn--outline-dark:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

/* ============================================
   Section Common
   ============================================ */

.rc-section {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-xl);
}

.rc-section__heading {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.rc-section__intro {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

/* ============================================
   Position Cards
   ============================================ */

.rc-position {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-xl);
}

.rc-position__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.rc-position__number {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent-green);
  opacity: 0.3;
  flex-shrink: 0;
}

.rc-position__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin-bottom: 2px;
}

.rc-position__sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.rc-position__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.rc-position__depts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.rc-position__depts li {
  padding: 3px 12px;
  background: var(--color-bg-light);
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* Conditions Table */
.rc-position__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
}

.rc-position__table tr {
  border-bottom: 1px solid var(--color-border);
}

.rc-position__table tr:last-child {
  border-bottom: none;
}

.rc-position__table th {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.rc-position__table td {
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.rc-position__link {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-accent-green);
  transition: opacity 0.2s;
}

.rc-position__link:hover {
  opacity: 0.7;
}

/* ============================================
   Benefits Grid
   ============================================ */

.rc-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .rc-benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rc-benefit {
  padding: var(--space-lg);
  background: var(--color-bg-light);
  border-radius: var(--border-radius-md);
}

.rc-benefit__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent-green);
}

.rc-benefit ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.rc-benefit li {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.5;
}

.rc-benefit li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: var(--font-size-xs);
}

/* ============================================
   Selection Flow
   ============================================ */

.rc-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rc-flow__step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.rc-flow__step:last-child {
  border-bottom: none;
}

.rc-flow__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-accent-green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-flow__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
}

.rc-flow__step p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Link Items
   ============================================ */

.rc-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rc-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: color 0.2s;
}

.rc-link-item:last-child {
  border-bottom: none;
}

.rc-link-item:hover {
  color: var(--color-accent-green);
}

.rc-link-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent-green);
}

/* ============================================
   CTA
   ============================================ */

.rc-cta {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-bg-light);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-xl);
}

.rc-cta__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
}

.rc-cta__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.rc-cta__positions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.rc-cta__positions .btn {
  min-width: 160px;
}

.rc-cta__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 320px;
  margin: 0 auto;
}

.rc-cta__bottom .btn {
  width: 100%;
}

/* ============================================
   Sidebar
   ============================================ */

.rc-sidebar {
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .rc-sidebar {
    display: flex;
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    max-height: calc(100vh - var(--header-height) - var(--space-2xl));
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.rc-sidebar__box {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.rc-sidebar__heading {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent-green);
}

.rc-sidebar__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.rc-sidebar__nav li {
  border-bottom: 1px solid var(--color-border);
}

.rc-sidebar__nav li:last-child {
  border-bottom: none;
}

.rc-sidebar__nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.rc-sidebar__nav a:hover {
  color: var(--color-accent-green);
}

/* CTA */
.rc-sidebar__box--cta {
  background-color: var(--color-accent-green);
  border-color: var(--color-accent-green);
  text-align: center;
}

.rc-sidebar__cta-text {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.rc-sidebar__cta-btn {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: #e53935;
  font-weight: 700;
}

.rc-sidebar__cta-btn:hover {
  background: #fce4ec;
}
