/* style.css - 採用LP（中山運輸）スマホ最適化版 */

:root {
  --brand-primary: #0E5BAA;
  --brand-primary-dark: #094786;
  --brand-secondary: #F5A623;
  --brand-secondary-dark: #d68b10;
  --brand-accent: #003567;
  --bg-soft: #F8F9FA;
}

* { -webkit-tap-highlight-color: rgba(14,91,170,0.1); }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

html, body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  overflow-x: hidden;
}

body {
  background-color: #fff;
  color: #222;
  line-height: 1.7;
}

main { min-height: 60vh; }

img { max-width: 100%; height: auto; }

/* ── ナビゲーション ────────────────── */
.navbar.bg-white {
  border-bottom: 1px solid #e8ecef;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.brand-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  max-height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
}

.brand-main {
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 0.95rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.brand-sub {
  font-size: 0.72rem;
  color: #6c757d;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-tel-link {
  text-decoration: none;
  color: var(--brand-primary);
  border: 1px solid #e0e6ec;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-tel-link:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.nav-tel-link:hover .text-muted {
  color: rgba(255,255,255,0.85) !important;
}

.nav-tel-mobile {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 26px;
    max-width: 88px;
    max-height: 26px;
  }
  .brand-main { font-size: 0.85rem; }
  .brand-sub { font-size: 0.65rem; }
  .navbar.bg-white {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .navbar .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ── 共通ボタン ────────────────── */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { min-height: 38px; }

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: 8px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-cta {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}
.btn-cta:hover, .btn-cta:focus {
  background-color: var(--brand-secondary-dark);
  border-color: var(--brand-secondary-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .btn-cta {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    width: 100%;
  }
  .btn-lg { padding: 0.7rem 1rem; font-size: 1rem; }
}

/* ── LINEボタン ────────────────── */
.btn-line {
  background-color: #06C755;
  border-color: #06C755;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.25);
}
.btn-line:hover, .btn-line:focus {
  background-color: #05a948;
  border-color: #05a948;
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
  transform: translateY(-1px);
}
.btn-line.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}
.text-line { color: #06C755 !important; }

.alert-line-soft {
  background: linear-gradient(135deg, #f0fbf3 0%, #e3f7ea 100%);
  border: 1px solid #b9e6c5;
  border-radius: 12px;
  color: #1d6b39;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 575.98px) {
  .alert-line-soft { flex-direction: column; align-items: flex-start !important; gap: 0.5rem; }
  .alert-line-soft .btn { width: 100%; margin-left: 0 !important; }
}

/* ── ヒーロー ────────────────── */
.hero-pro {
  min-height: auto;
  overflow: hidden;
  background-color: var(--brand-accent);
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,53,103,0.88) 0%, rgba(14,91,170,0.7) 100%);
}

.hero-eyebrow {
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #ffc77b;
  font-size: 0.78rem;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (min-width: 576px) { .hero-title { font-size: 2.1rem; } }
@media (min-width: 768px) { .hero-title { font-size: 2.6rem; } }
@media (min-width: 992px) { .hero-title { font-size: 3rem; } }

.hero-lead {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
@media (min-width: 768px) { .hero-lead { font-size: 1.05rem; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-actions .btn { min-width: 200px; }
@media (max-width: 575.98px) {
  .hero-actions .btn { width: 100%; min-width: 0; }
}

.hero-line-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}
.hero-line-note strong { color: #b3ffd1; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #003567;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .hero-badge { font-size: 0.85rem; padding: 0.45rem 0.9rem; }
}

@media (max-width: 575.98px) {
  .hero-pro .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .hero-pro .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* ── セクション見出し ────────────────── */
.section-heading { margin-bottom: 1.5rem; }

.section-eyebrow {
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--brand-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-accent);
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (min-width: 576px) { .section-title { font-size: 1.6rem; } }
@media (min-width: 768px) { .section-title { font-size: 2rem; } }

.section-lead {
  font-size: 0.9rem;
}
@media (min-width: 576px) { .section-lead { font-size: 1rem; } }

/* ── 数字で見る ────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 14px;
  padding: 1rem 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 576px) { .stat-card { padding: 1.5rem 1rem; } }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(14, 91, 170, 0.12);
}

.stat-icon img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
@media (min-width: 576px) { .stat-icon img { height: 48px; margin-bottom: 0.75rem; } }

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  word-break: keep-all;
}
@media (min-width: 576px) { .stat-value { font-size: 2.2rem; } }

.stat-unit {
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.15rem;
  color: var(--brand-primary-dark);
}
@media (min-width: 576px) { .stat-unit { font-size: 0.95rem; } }

.stat-label {
  font-size: 0.78rem;
  color: #555;
  margin-top: 0.4rem;
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 576px) { .stat-label { font-size: 0.85rem; } }

/* ── フィルタ ────────────────── */
.filter-bar {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
@media (min-width: 576px) { .filter-bar { padding: 1.25rem; } }

.filter-bar label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #555;
}

.form-select, .form-control {
  min-height: 44px;
  font-size: 16px; /* iOSの自動ズーム抑制 */
}

/* ── 求人カード ────────────────── */
.job-card {
  background: #fff;
  border: 1px solid #ebeef1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  overflow: hidden;
}

.job-card:hover, .job-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(14, 91, 170, 0.12);
}

.job-card .card-img-top {
  height: 160px;
  object-fit: cover;
  background-color: #e9ecef;
}
@media (min-width: 576px) { .job-card .card-img-top { height: 180px; } }

.job-card .placeholder-img {
  height: 160px;
  background: linear-gradient(135deg, #5680b8 0%, #2a4f80 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 3rem;
}
@media (min-width: 576px) { .job-card .placeholder-img { height: 180px; } }

.job-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.badge-area, .badge-category, .badge-subcategory, .badge-employment {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.35em 0.6em;
}
.badge-area { background-color: #e7f1fb; color: var(--brand-primary-dark); }
.badge-category { background-color: #fff4e1; color: var(--brand-secondary-dark); }
.badge-subcategory { background-color: #f4ecff; color: #6f42c1; }
.badge-employment { background-color: #eceff1; color: #455a64; }

/* ── 福利厚生 ────────────────── */
.benefit-card {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 576px) { .benefit-card { padding: 1.25rem; gap: 1rem; } }

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 91, 170, 0.08);
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fff4e1 0%, #ffe7c4 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-secondary-dark);
  font-size: 1.5rem;
}
@media (min-width: 576px) { .benefit-icon { width: 48px; height: 48px; font-size: 1.6rem; } }

.benefit-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@media (min-width: 576px) { .benefit-icon img { width: 32px; height: 32px; } }

.welfare-mini { padding: 0.5rem 0.25rem; }

/* ── 社員カード ────────────────── */
.staff-card {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(14, 91, 170, 0.12);
}

.staff-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #cfd8e3 0%, #a4b3c4 100%);
  overflow: hidden;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.staff-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 4rem;
}

.staff-body {
  padding: 1rem;
}
@media (min-width: 576px) { .staff-body { padding: 1.25rem; } }

.staff-dept {
  font-size: 0.75rem;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #222;
}

.staff-message {
  font-size: 0.88rem;
  color: #555;
  margin: 0;
  line-height: 1.7;
}

/* ── CTA バンド ────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.cta-band .btn-cta { display: inline-flex; }

@media (max-width: 575.98px) {
  .cta-band .btn { width: 100%; margin-bottom: 0.5rem; }
  .cta-band .me-2 { margin-right: 0 !important; }
}

/* ── 求人詳細 ────────────────── */
.detail-hero {
  border-radius: 12px;
  overflow: hidden;
  background-color: #e9ecef;
  margin-bottom: 1.25rem;
  max-height: 360px;
}

.detail-hero img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.detail-section {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
@media (min-width: 576px) { .detail-section { padding: 1.25rem 1.5rem; } }

.detail-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  border-left: 4px solid var(--brand-secondary);
  padding-left: 0.6rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 576px) { .detail-section h2 { font-size: 1.15rem; } }

.detail-section dl { margin: 0; }
.detail-section dt {
  color: #777;
  font-weight: 500;
  font-size: 0.85rem;
}
.detail-section dd {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.detail-cta {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.sticky-cta { position: static; }
@media (min-width: 992px) {
  .sticky-cta { position: sticky; top: 90px; }
}

/* スマホ用：求人詳細の下部固定応募バー */
.mobile-apply-bar {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-apply-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid #e3e6ea;
    padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom)) 0.85rem;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
    z-index: 1030;
    gap: 0.5rem;
    align-items: center;
  }
  .mobile-apply-bar .btn { flex: 1 1 auto; }
  body.has-mobile-bar { padding-bottom: 84px; }
}

/* ── フォーム ────────────────── */
.form-section {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
}
@media (min-width: 576px) { .form-section { padding: 1.5rem; } }

.form-section h2 {
  font-size: 1rem;
}
@media (min-width: 576px) { .form-section h2 { font-size: 1.15rem; } }

.required-mark, .optional-mark {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  display: inline-block;
  white-space: nowrap;
}
.required-mark { color: #d9534f; background: #fdecea; }
.optional-mark { color: #6c757d; background: #eef0f2; font-weight: 600; }

.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(14, 91, 170, 0.15);
}

.invalid-feedback { display: block; }

.form-check-input { width: 1.2em; height: 1.2em; margin-top: 0.2em; }
.form-check-label { line-height: 1.5; }

/* ── 完了ページ ────────────────── */
.complete-icon { font-size: 4rem; color: #28a745; }

/* ── フッタ ────────────────── */
footer {
  background-color: #f4f6f8;
  border-top: 1px solid #e3e6ea;
  margin-top: 3rem;
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)) 0;
  font-size: 0.85rem;
  color: #6c757d;
}
@media (min-width: 576px) { footer { padding: 2rem 0; font-size: 0.9rem; } }

footer a { color: var(--brand-primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .me-3 { margin-right: 1rem !important; }
@media (max-width: 575.98px) {
  footer .text-md-end a { display: inline-block; margin-bottom: 0.4rem; margin-right: 0.75rem !important; }
}

/* ── 関連求人 ────────────────── */
.related-jobs { margin-top: 2rem; }
.related-jobs h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── ブレッドクラム ────────────────── */
.breadcrumb { flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.85rem; }
.breadcrumb-item.active { color: #6c757d; }
