/* ===== 求人ページ専用CSS ===== */

:root {
  --rc-bg: #f4f1ee;
  --rc-surface: #ffffff;
  --rc-line: #e2d9d2;
  --rc-text: #231815;
  --rc-muted: #7a6f66;
  --rc-green: #2f8d4f;
  --rc-beige: #e7ccb1;
  --rc-radius-lg: 22px;
  --rc-radius-md: 14px;
  --rc-shadow: 0 10px 28px rgba(35, 24, 21, 0.08);
  --rc-shadow-soft: 0 6px 16px rgba(35, 24, 21, 0.06);
  --rc-container: min(92vw, 980px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--rc-bg);
  color: var(--rc-text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.03em;
  padding-bottom: 52px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.rc-container {
  width: var(--rc-container);
  margin-inline: auto;
}

/* ---- Header ---- */
.sub-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--rc-line);
  background: rgba(244, 241, 238, 0.95);
  backdrop-filter: blur(8px);
}

.sub-header .rc-container {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand { font-weight: 700; font-size: 0.95rem; margin: 0; }

.header-links { display: flex; flex-wrap: wrap; gap: 8px; }

.header-links a {
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  background: #fff;
  min-height: 40px;
  padding: 8px 14px;
  display: inline-grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ---- Section共通 ---- */
.rc-section {
  padding: clamp(40px, 10vw, 64px) 0;
}

.rc-section-head {
  margin-bottom: 28px;
}

.rc-section-head .eyebrow {
  margin: 0;
  color: var(--rc-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rc-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1.4;
}

/* ---- Hero ---- */
.recruit-hero {
  position: relative;
  min-height: 360px;
  height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.recruit-hero__bg {
  position: absolute;
  inset: 0;
  background-size: 130% auto;
  background-position: 0% 30%;
}

.recruit-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35,24,21,0.65) 0%, rgba(35,24,21,0.2) 50%, rgba(35,24,21,0.05) 100%);
}

.recruit-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px clamp(32px, 8vw, 56px);
}

.recruit-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.recruit-hero__sub {
  margin: 10px 0 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ---- 数字で見る ---- */
.rc-numbers {
  background: rgba(47, 141, 79, 0.06);
}

.rc-numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rc-number-card {
  background: var(--rc-surface);
  border-radius: var(--rc-radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--rc-shadow-soft);
}

.rc-number-card svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  color: var(--rc-green);
}

.rc-number-card .number {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--rc-text);
  line-height: 1.2;
}

.rc-number-card .number small {
  font-size: 0.6em;
  font-weight: 700;
}

.rc-number-card .label {
  display: block;
  font-size: 0.85rem;
  color: var(--rc-muted);
  margin-top: 4px;
}

/* ---- ギャラリー ---- */
.rc-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rc-gallery-grid .photo {
  border-radius: var(--rc-radius-md);
  overflow: hidden;
}

.rc-gallery-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}

.rc-gallery-grid .photo:hover img {
  transform: scale(1.03);
}

.rc-gallery-grid .photo.span-2 {
  grid-column: span 2;
}

.rc-gallery-grid .photo.span-2 img {
  aspect-ratio: 3 / 2;
}

/* ---- 募集職種カード ---- */
.rc-jobs-grid {
  display: grid;
  gap: 16px;
}

.rc-job-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-md);
  padding: 20px;
  box-shadow: var(--rc-shadow-soft);
  border-top: 4px solid var(--rc-green);
}

.rc-job-card.beige-top {
  border-top-color: var(--rc-beige);
}

.rc-job-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.rc-job-card dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.rc-job-card .dl-row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rc-line);
  font-size: 0.9rem;
  align-items: baseline;
}

.rc-job-card .dl-row:last-child {
  border-bottom: none;
}

.rc-job-card dt {
  font-weight: 700;
  color: var(--rc-muted);
  font-size: 0.82rem;
}

.rc-job-card dd {
  margin: 0;
}

/* ---- 応募の流れ ---- */
.rc-flow-lead {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--rc-muted);
}

.rc-bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(47, 141, 79, 0.08) 0%, rgba(47, 141, 79, 0.15) 100%);
  border: 1px solid rgba(47, 141, 79, 0.25);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--rc-text);
}

.rc-bonus-badge strong {
  color: var(--rc-green);
  font-weight: 800;
}

.rc-bonus-badge-icon {
  font-size: 1.1em;
}

.rc-steps-v2 {
  display: grid;
  gap: 0;
  justify-items: center;
}

.rc-step-v2 {
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--rc-shadow-soft);
  width: 100%;
}

.rc-step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: rgba(47, 141, 79, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.rc-step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--rc-green);
}

.rc-step-v2 .step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--rc-green);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.rc-step-v2 h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.rc-step-v2 p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rc-muted);
  line-height: 1.7;
}

.rc-step-arrow {
  width: 2px;
  height: 28px;
  background: var(--rc-line);
  position: relative;
  margin: 0 auto;
}

.rc-step-arrow::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--rc-line);
}

/* ---- 入社祝い金 ---- */
.rc-bonus-card {
  background: linear-gradient(135deg, #2f8d4f 0%, #3aaa60 100%);
  color: #fff;
  border-radius: var(--rc-radius-lg);
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(47, 141, 79, 0.25);
}

.rc-bonus-label {
  margin: 0 0 8px;
  font-size: 0.88rem;
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.rc-bonus-amount {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 700;
}

.rc-bonus-amount strong {
  font-size: clamp(2.8rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 2px;
}

.rc-bonus-amount small {
  font-size: 0.6em;
}

.rc-bonus-top {
  padding-top: 0;
  padding-bottom: 0;
}

.rc-bonus-sub {
  margin: 10px 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.rc-bonus-notes {
  margin-top: 20px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-md);
  padding: 16px 20px;
}

.rc-bonus-notes-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rc-muted);
}

.rc-bonus-notes ul {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.rc-bonus-notes li {
  font-size: 0.82rem;
  color: var(--rc-muted);
  line-height: 1.8;
}

.rc-bonus-notes li::before {
  content: "※";
  margin-left: -1em;
}

/* ---- 応募フォーム ---- */
.rc-form-lead {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--rc-muted);
}

.rc-form {
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius-lg);
  padding: clamp(20px, 5vw, 36px);
  box-shadow: var(--rc-shadow-soft);
}

.rc-form-group {
  margin-bottom: 20px;
}

.rc-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.rc-form-group .required {
  font-size: 0.72rem;
  color: #fff;
  background: #c0392b;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
  vertical-align: middle;
}

.rc-form-group input[type="text"],
.rc-form-group input[type="tel"],
.rc-form-group input[type="email"],
.rc-form-group select,
.rc-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--rc-text);
  transition: border-color 0.2s;
}

.rc-form-group input:focus,
.rc-form-group select:focus,
.rc-form-group textarea:focus {
  outline: none;
  border-color: var(--rc-green);
  box-shadow: 0 0 0 3px rgba(47, 141, 79, 0.12);
}

.rc-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.rc-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6f66' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.rc-radio-group {
  display: flex;
  gap: 20px;
}

.rc-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  cursor: pointer;
}

.rc-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rc-green);
}

.rc-form-submit {
  margin-top: 28px;
  text-align: center;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 48px;
  font-size: 1.05rem;
}

/* ---- CTA ---- */
.rc-cta {
  text-align: center;
  padding: clamp(40px, 10vw, 64px) 0;
}

.rc-cta .cta-message {
  margin: 0 0 8px;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
}

.rc-cta .cta-tel {
  margin: 0 0 20px;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rc-cta .cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  background: #fff;
  min-height: 48px;
  padding: 12px 28px;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-dark {
  background: #231815;
  border-color: #231815;
  color: #fff;
}

/* ---- 固定CTA (モバイル) ---- */
.sub-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #231815;
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(35, 24, 21, 0.15);
}

.sub-fixed-cta a {
  color: #fff;
  text-decoration: none;
}

/* ---- Fade-in アニメーション ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Desktop (760px+) ---- */
@media (min-width: 760px) {
  .recruit-hero {
    height: 60vh;
  }

  .rc-numbers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rc-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rc-jobs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rc-steps-v2 {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
  }

  .rc-step-arrow {
    width: 40px;
    height: 2px;
    background: var(--rc-line);
  }

  .rc-step-arrow::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: -4px;
    transform: translateY(-50%);
    border-left: 7px solid var(--rc-line);
    border-right: none;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
}
