/* /jobs/assets/css/job.mobile.css */

:root {
  --ala-navy: #153b6b;
  --ala-gold: #c6924a;
  --ala-bg: #eef2f6;
  --ala-card: #ffffff;
  --ala-soft: #f7fafe;
  --ala-line: #dbe4ef;
  --ala-text: #1f2937;
  --ala-muted: #667085;
  --ala-shadow: 0 8px 22px rgba(21, 59, 107, 0.08);
  --ala-radius: 16px;
  --header-height: 62px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", Arial, sans-serif;
  background: var(--ala-bg);
  color: var(--ala-text);
  line-height: 1.6;
}
a { color: inherit; }

.mobile-fixed-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(21, 59, 107, 0.1);
  backdrop-filter: blur(10px);
}
.mobile-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.mobile-menu-button,
.mobile-back-link {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ala-line);
  background: #ffffff;
  color: var(--ala-navy);
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(21, 59, 107, 0.08);
}
.mobile-site-title-wrap { min-width: 0; }
.mobile-site-title {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 850;
  color: var(--ala-navy);
  letter-spacing: 0.03em;
}
.mobile-site-subtitle {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--ala-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 10px 38px;
}
.hero-panel {
  background: linear-gradient(135deg, rgba(21, 59, 107, 0.98), rgba(37, 92, 145, 0.94));
  color: #ffffff;
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: var(--ala-shadow);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-panel h1 {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 850;
  text-align: center; 
}
.hero-panel p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.72;
  opacity: 0.92;
}
.country-switch {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.country-switch-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
}
.country-switch-btn.active {
  background: #ffffff;
  color: var(--ala-navy);
  border-color: #ffffff;
}

.job-section { margin-top: 16px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--ala-navy);
}
.section-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ala-muted);
}
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card {
  background: var(--ala-card);
  border: 1px solid var(--ala-line);
  border-radius: var(--ala-radius);
  box-shadow: var(--ala-shadow);
  overflow: hidden;
}
.job-card-link {
  display: block;
  text-decoration: none;
}
.job-card-main { padding: 15px 15px 13px; }
.job-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
  color: var(--ala-navy);
}
.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.job-card-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ala-soft);
  border: 1px solid #e0e8f2;
  color: #344054;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 650;
}
.job-card-abstract {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--ala-text);
}
.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d7e1ec;
  color: var(--ala-muted);
  font-size: 11.5px;
}
.job-card-more {
  flex: 0 0 auto;
  color: var(--ala-gold);
  font-weight: 800;
}
.load-more-sentinel {
  padding: 20px 10px 28px;
  text-align: center;
  color: var(--ala-muted);
  font-size: 12.5px;
}

body.mobile-nav-open { overflow: hidden; }
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1210;
  width: min(70vw, 280px); /* 修改为70% */
  transform: translateX(-104%);
  transition: transform 0.24s ease;
  pointer-events: none;
}
.mobile-nav-drawer.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-nav-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  border-right: 1px solid rgba(21, 59, 107, 0.1);
  box-shadow: 18px 0 32px rgba(21, 59, 107, 0.14);
}
.mobile-nav-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(21, 59, 107, 0.08);
}
.mobile-nav-title {
  color: var(--ala-gold);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 850;
}
.mobile-nav-subtitle {
  margin-top: 5px;
  color: var(--ala-muted);
  font-size: 11.5px;
  line-height: 1.4;
}
.mobile-nav-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(21, 59, 107, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ala-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 24px;
}
.mobile-nav-group + .mobile-nav-group { margin-top: 18px; }
.mobile-nav-group-title {
  margin: 0 0 9px 2px;
  color: var(--ala-navy);
  font-size: 14px;
  font-weight: 850;
}
.mobile-nav-country-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-country-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #d9e3ef;
  background: #ffffff;
  color: var(--ala-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.mobile-country-tab.active {
  background: var(--ala-navy);
  color: #ffffff;
  border-color: var(--ala-navy);
}
.mobile-nav-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d9e3ef;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ala-navy);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  box-shadow: 0 4px 10px rgba(21, 59, 107, 0.04);
}

.mobile-nav-region {
  background: #f7fafe;
  font-weight: 850;
}



.mobile-nav-city-list {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0 4px 8px;
}

.mobile-nav-city-list.active {
  display: flex;
}

.mobile-nav-region {
  position: relative;
  padding-right: 34px;
}

.mobile-nav-region000::after {
  content: "＋";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ala-muted);
  font-size: 14px;
  font-weight: 850;
}

.mobile-nav-region.expanded::after {
  content: "−";
}

.mobile-nav-region-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 7px;
  align-items: stretch;
}

.mobile-nav-region-row .mobile-nav-region {
  min-width: 0;
  padding-right: 12px;
}

.mobile-nav-region::after {
  content: none !important;
}

.mobile-nav-region-toggle {
  width: 38px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #d9e3ef;
  background: #ffffff;
  color: var(--ala-muted);
  font-size: 16px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(21, 59, 107, 0.04);
}

.mobile-nav-region-row.expanded .mobile-nav-region-toggle {
  background: var(--ala-bg);
  border-color: var(--ala-bg);
  color: var(--ala-navy);
}

.mobile-nav-region.selected {
  background: var(--ala-bg);
  border-color: var(--ala-bg);
}


.mobile-nav-city-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #d9e3ef;
  background: #ffffff;
  color: #344054;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}


/* Job Card refinements v3 */
.job-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.job-card-location {
  min-width: 0;
  color: var(--ala-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-card-date {
  flex: 0 0 auto;
  color: var(--ala-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}
.job-card-keyline {
  margin-top: 10px;
}
.job-card-salary {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ec;
  border: 1px solid #efd3aa;
  color: #9a641d;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}
.job-card-tags.compact {
  margin-top: 8px;
  gap: 6px;
}
.job-card-tags.compact .job-card-tag {
  font-size: 11px;
  padding: 3px 8px;
}
.job-card-footer > span:first-child {
  font-weight: 650;
}

.detail-panel {
  background: #ffffff;
  border: 1px solid var(--ala-line);
  border-radius: 20px;
  box-shadow: var(--ala-shadow);
  padding: 18px 16px 22px;
}
.detail-eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ala-soft);
  border: 1px solid var(--ala-line);
  color: var(--ala-gold);
  font-size: 11.5px;
  font-weight: 800;
}
.detail-panel h1 {
  margin: 12px 0 0;
  color: var(--ala-navy);
  font-size: 21px;
  line-height: 1.4;
}
.detail-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
  background: var(--ala-soft);
  border: 1px solid var(--ala-line);
  font-size: 13px;
}
.detail-block { margin-top: 18px; }
.detail-block h2 {
  margin: 0 0 8px;
  color: var(--ala-navy);
  font-size: 16px;
}
.detail-text {
  font-size: 13.5px;
  line-height: 1.82;
  color: var(--ala-text);
}
.apply-fixed-area {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ala-line);
}
.apply-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d2a15d 0%, #b98234 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(198, 146, 74, 0.22);
}
.apply-fixed-area p {
  margin: 10px 0 0;
  color: var(--ala-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 420px) {
  .mobile-page { padding: 10px 8px 34px; }
  .hero-panel { border-radius: 18px; padding: 18px 16px; }
  .hero-panel h1 { font-size: 19px; }
  .job-card-main { padding: 14px 13px 12px; }
  .job-card-title { font-size: 15.5px; }
  .mobile-nav-drawer { width: min(84vw, 300px); }
}


/* Apply Form V4 */

.apply-panel {
  background: #ffffff;
  border: 1px solid var(--ala-line);
  border-radius: 20px;
  box-shadow: var(--ala-shadow);
  padding: 18px 16px 22px;
}

.apply-panel h1 {
  margin: 12px 0 0;
  color: var(--ala-navy);
  font-size: 21px;
  line-height: 1.4;
}

.apply-intro {
  margin: 14px 0 0;
  color: var(--ala-text);
  font-size: 13.5px;
  line-height: 1.75;
}

.apply-job-summary {
  margin-top: 14px;
  padding: 13px 13px;
  border-radius: 15px;
  background: var(--ala-soft);
  border: 1px solid var(--ala-line);
}

.apply-job-label {
  color: var(--ala-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.apply-job-title {
  margin-top: 4px;
  color: var(--ala-navy);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 850;
}

.apply-job-note {
  margin-top: 5px;
  color: var(--ala-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.apply-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  color: var(--ala-navy);
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 850;
}

.form-field label span {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff2e0;
  color: #a66d22;
  font-size: 10px;
  font-weight: 850;
}

.form-field label small {
  margin-left: 5px;
  color: var(--ala-muted);
  font-size: 11px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ala-text);
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 12px;
  outline: none;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 132px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(21, 59, 107, 0.35);
  box-shadow: 0 0 0 3px rgba(21, 59, 107, 0.08);
}

.form-error {
  color: #b42318;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.form-error-global {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4f2;
  border: 1px solid #ffd1cc;
}

.apply-submit-button {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #d2a15d 0%, #b98234 100%);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(198, 146, 74, 0.22);
}

.apply-note {
  margin: 0;
  color: var(--ala-muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.apply-success-panel p {
  margin: 14px 0 0;
  color: var(--ala-text);
  font-size: 13.5px;
  line-height: 1.75;
}

.apply-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apply-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--ala-line);
  background: #ffffff;
  color: var(--ala-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.apply-mail-note {
  padding: 11px 12px;
  border-radius: 14px;
  background: #f7fafe;
  border: 1px solid var(--ala-line);
  color: var(--ala-navy) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}


.detail-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-job-id {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--ala-line);
  color: var(--ala-muted);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 850;
}


.form-error-global {
  line-height: 1.65;
}


/* Keyword Search V8 */

.search-panel {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid var(--ala-line);
  border-radius: 18px;
  box-shadow: var(--ala-shadow);
  padding: 12px;
}

.keyword-search-form {
  margin: 0;
}

.keyword-search-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  align-items: center;
}

.keyword-search-row input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ala-text);
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 14px;
  outline: none;
  font-family: inherit;
}

.keyword-search-row input[type="search"]:focus {
  border-color: rgba(21, 59, 107, 0.35);
  box-shadow: 0 0 0 3px rgba(21, 59, 107, 0.08);
}

.keyword-search-row button {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--ala-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  font-family: inherit;
  cursor: pointer;
}

.keyword-search-clear {
  margin-top: 8px;
  text-align: right;
}

.keyword-search-clear a {
  color: var(--ala-muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}


/* Resume Upload V9 */

.resume-upload-prompt {
  margin-top: 16px;
  padding: 14px 13px;
  border-radius: 16px;
  background: #fffaf2;
  border: 1px solid #f0d7ad;
}

.resume-upload-prompt h2 {
  margin: 0;
  color: var(--ala-navy);
  font-size: 16px;
  line-height: 1.4;
}

.resume-upload-prompt p {
  margin: 8px 0 13px;
  color: var(--ala-text);
  font-size: 13px;
  line-height: 1.7;
}

.file-field input[type="file"] {
  padding: 11px 12px;
  border-radius: 14px;
  background: #ffffff;
  font-size: 14px;
}

.upload-note {
  margin: -2px 0 0;
  color: var(--ala-muted);
  font-size: 12px;
  line-height: 1.65;
}

.uploaded-file-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploaded-file-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fafe;
  border: 1px solid var(--ala-line);
  color: var(--ala-navy);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}



.menu-reminder {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #f4deae;
  background: linear-gradient(180deg, #fff6df 0%, #ffefc9 100%);
  color: #6c4a12;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(198, 146, 74, 0.12);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.menu-reminder p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.menu-reminder-icon {
  font-size: 15px;
  line-height: 1;
}

.menu-reminder.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
}

.hero-panel {
  margin-top: 12px;
}

/*
@media (min-width: 768px) {
  .menu-reminder { display: none; }
}
*/


.mobile-nav-city-link.selected {
  background: var(--ala-bg);
  border-color: var(--ala-bg);
}
