/* ===== Careers (WPBakery-safe, no Tailwind, px-based) ===== */
#careers-wrap {
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background: #fff;
}
#careers-wrap * { box-sizing: border-box; }
#careers-wrap a { text-decoration: none; }
#careers-wrap .container { max-width: 1200px; margin: 0 auto; padding: 64px 16px; }
#careers-wrap .section { padding: 48px 16px; }
#careers-wrap .grid { display: grid; gap: 24px; }
#careers-wrap .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 16px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
}
#careers-wrap .btn:active { transform: translateY(1px); }
#careers-wrap .btn-primary { background: #00adef; color: #fff; }
#careers-wrap .btn-primary:hover { background: #22549d; }
#careers-wrap .btn-outline { background: #fff; color: #00adef; border-color: #00adef; }
#careers-wrap .btn-outline:hover { color: #fff; border-color: #22549d; background: #22549d; }
#careers-wrap .card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 6px 16px rgba(2,6,23,.06);
}
#careers-hero .grid-hero { grid-template-columns: 1fr 1fr; align-items: center; }
#careers-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e3e8ff;
  background: #f1f5ff; color: #334155; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
#careers-hero h1 { margin: 10px 0 6px; font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
#careers-hero p.lead { font-size: 18px; color: #475569; margin: 10px 0 20px; }
#careers-hero p.lead-just { text-align: justify; }
#careers-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
#careers-hero .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#careers-hero .stat { text-align: center; padding: 16px; }
#careers-hero .stat .num { font-size: 22px; font-weight: 800; }
#careers-hero .stat .label { font-size: 13px; color: #64748b; margin-top: 4px; }
#careers-hero .media {
  border-radius: 20px; border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0); padding: 8px;
}
#careers-hero .media-in {
  border-radius: 14px; overflow: hidden; background: #fff; width: 100%;
  aspect-ratio: 4 / 3; display: flex;
}
#careers-hero .media-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
#careers-wrap h2.title { text-align: center; font-size: 28px; margin: 6px 0 8px; }
#careers-wrap p.sub {
  text-align: center; color: #64748b; max-width: 680px; margin: 8px auto 0; font-size: 15px;
}
#careers-value .grid-cards,
#careers-benefits .grid-cards,
#careers-process .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
#careers-wrap .card.pad { padding: 24px; }
#careers-wrap .icon-badge {
  display: inline-flex; width: 36px; height: 36px; border-radius: 12px; align-items: center;
  justify-content: center; background: #00adef; color: #fff; font-size: 18px;
}
#careers-wrap .card h3 { margin: 10px 0 6px; font-size: 18px; }
#careers-wrap .card p, #careers-wrap .card li { color: #475569; font-size: 14px; line-height: 1.55; }
#careers-listing .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#careers-listing .field { position: relative; }
#careers-listing .input, #careers-listing .select {
  width: 90%; padding: 12px 14px; border-radius: 12px; border: 1px solid #cbd5e1;
  outline: none; font-size: 14px;
}
#careers-listing .input:focus, #careers-listing .select:focus {
  border-color: #00adef; box-shadow: 0 0 0 2px #c4f0ff;
}
#careers-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
#careers-wrap .job-card { padding: 20px; }
#careers-wrap .job-card h4 { font-size: 18px; margin: 0; word-wrap: break-word; overflow-wrap: anywhere; }
#careers-wrap .job-meta {
  margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; color: #64748b; font-size: 13px;
}
#careers-wrap .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
#careers-wrap .tag {
  display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 4px 8px; font-size: 12px; color: #334155; background: #fff;
}
#careers-wrap .empty { grid-column: 1 / -1; text-align: center; padding: 32px; color: #64748b; }
#careers-wrap .job-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
#careers-listing .cta { text-align: center; padding: 24px; margin-top: 24px; }
#careers-listing .cta p { color: #64748b; font-size: 14px; margin: 0 0 8px; }
#careers-wrap .cta .btn {
  display: inline-flex !important; width: auto !important; max-width: 100%;
  margin: 12px auto 0 auto; text-align: center;
}
#careers-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
#careers-modal.show { display: block; }
#careers-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
#careers-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(92vw, 560px); background: #fff; border: 1px solid #e5e7eb;
  border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 24px;
}
#careers-close {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
#careers-dialog * { box-sizing: border-box; }
#careers-dialog h3, #careers-dialog p, #careers-dialog label { margin: 0; }
#careers-dialog label {
  display: block; margin-bottom: 6px; line-height: 1.25; color: #334155; font-weight: 600; font-size: 13px;
}
#careers-dialog .field { margin-top: 12px; }
#careers-dialog .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#careers-dialog .form-grid .field { margin-top: 0; min-width: 0; }
#careers-dialog .control {
  width: 100% !important; height: 44px !important; padding: 10px 12px !important;
  border: 1px solid #cbd5e1 !important; border-radius: 12px !important;
  background: #fff !important; box-shadow: none !important; outline: none !important; font: inherit !important;
}
#careers-dialog input[type="file"].control { height: auto !important; padding: 8px 12px !important; }
#careers-dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
#careers-dialog .actions .btn { min-width: 140px; }
@media (max-width: 1024px) {
  #careers-hero .grid-hero { grid-template-columns: 1fr; }
  #careers-jobs { grid-template-columns: 1fr; }
  #careers-value .grid-cards,
  #careers-benefits .grid-cards,
  #careers-process .grid-cards { grid-template-columns: 1fr; }
}
#careers-wrap .job-card .btn {
  font-size: 13px !important; font-weight: 100 !important; padding: 15px 5px !important;
  border-radius: 5px !important; line-height: 1.2 !important; white-space: nowrap;
}
@media (max-width: 420px) {
  #careers-wrap { overflow-x: hidden; }
  #careers-wrap .job-head { flex-wrap: wrap; }
  #careers-wrap .job-head .btn { margin-top: 8px; margin-left: auto; }
  #careers-hero h1 { font-size: 32px; }
  #careers-hero .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  #careers-hero .stats { grid-template-columns: 1fr; }
}
#careers-wrap .btn:focus,
#careers-wrap .input:focus,
#careers-wrap .select:focus,
#careers-close:focus {
  outline: 2px solid #00adef; outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #careers-wrap .btn { transition: none; }
}
/* ===== Japanese layout fix ===== */
html[lang="ja"] body,
html[lang="ja"] #careers-wrap,
html[lang="ja"] #careers-wrap input,
html[lang="ja"] #careers-wrap select,
html[lang="ja"] #careers-wrap button,
html[lang="ja"] #careers-wrap textarea {
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}

html[lang="ja"] #careers-wrap {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  color: #1f2937;
}

html[lang="ja"] #careers-wrap .grid-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
}

html[lang="ja"] #careers-wrap .eyebrow {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

html[lang="ja"] #careers-wrap h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 10px 0 18px;
  word-break: keep-all;
}

html[lang="ja"] #careers-wrap .lead {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  word-break: auto-phrase;
}

html[lang="ja"] #careers-wrap .lead-just {
  text-align: left;
}

html[lang="ja"] #careers-wrap .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

html[lang="ja"] #careers-wrap .stat {
  padding: 20px 18px;
  text-align: center;
}

html[lang="ja"] #careers-wrap .stat .num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

html[lang="ja"] #careers-wrap .stat .label {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
}

html[lang="ja"] #careers-wrap .title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: 0;
}

html[lang="ja"] #careers-wrap .sub {
  font-size: 16px;
  line-height: 1.8;
}

html[lang="ja"] #careers-wrap .grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

html[lang="ja"] #careers-wrap .card.pad h3 {
  font-size: 22px;
  line-height: 1.4;
  margin-top: 10px;
}

html[lang="ja"] #careers-wrap .card.pad p {
  font-size: 15px;
  line-height: 1.85;
}

html[lang="ja"] #careers-wrap .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

html[lang="ja"] #careers-wrap .input,
html[lang="ja"] #careers-wrap .select,
html[lang="ja"] #careers-wrap .control {
  min-height: 48px;
  font-size: 15px;
  line-height: 1.5;
}

html[lang="ja"] #careers-wrap #careers-dialog {
  max-width: 760px;
}

html[lang="ja"] #careers-wrap label {
  font-size: 14px;
  line-height: 1.6;
}

html[lang="ja"] #careers-wrap .btn {
  white-space: nowrap;
}

html[lang="ja"] #careers-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Tablet ===== */
@media (max-width: 991px) {
  html[lang="ja"] #careers-wrap .grid-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  html[lang="ja"] #careers-wrap .grid-cards {
    grid-template-columns: 1fr;
  }

  html[lang="ja"] #careers-wrap .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  html[lang="ja"] #careers-wrap h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  html[lang="ja"] #careers-wrap .lead {
    font-size: 16px;
    line-height: 1.85;
  }

  html[lang="ja"] #careers-wrap .stats {
    grid-template-columns: 1fr;
  }

  html[lang="ja"] #careers-wrap .title {
    font-size: 24px;
  }

  html[lang="ja"] #careers-wrap .card.pad h3 {
    font-size: 20px;
  }
}