/* 山陰アルバイト情報 — スタッフページ（job.san-in.jp Lightning風） */
:root {
  --primary:        #337ab7;
  --primary-dark:   #296292;
  --primary-vivid:  #3886c9;
  --primary-soft:   #eaf3fb;
  --line-green:     #06c755;
  --line-green-dark:#05b14a;
  --text:           #1f2328;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --bg:             #ffffff;
  --bg-alt:         #f6f8fb;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", "Segoe UI", sans-serif;
  background: var(--bg-alt); color: var(--text); line-height: 1.75;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; margin: 0 0 16px; letter-spacing: .02em; font-weight: 700; color: #111827; }
h2 { font-size: 20px; margin: 0 0 12px; color: var(--primary-dark); font-weight: 700; }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--text); font-weight: 700; }
ul { padding-left: 20px; }
.note { color: var(--text-muted); font-size: 13px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* topbar — Lightning風（細めバー + 下線アクセント） */
.topbar {
  background: var(--bg); border-bottom: 3px solid var(--primary);
  padding: 14px 0; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 var(--border);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.topbar .brand {
  display: flex; flex-direction: column; gap: 2px; line-height: 1.2;
  color: var(--primary-dark); font-weight: 700; font-size: 17px;
  text-decoration: none;
}
.topbar .brand .brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: .04em; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--text); font-size: 14px; padding: 6px 12px;
  border-radius: 6px; font-weight: 500;
}
.topbar nav a:hover { background: var(--primary-soft); text-decoration: none; color: var(--primary-dark); }
.topbar nav a.logout { color: #b91c1c; }
.topbar nav a.logout:hover { background: #fef2f2; color: #991b1b; }
.topbar nav a.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--primary);
}
.topbar nav a.active:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* topbar CTA (landing right side button) */
.topbar nav a.topbar-cta {
  background: var(--primary); color: #fff; font-weight: 700;
  padding: 8px 16px; border-radius: 6px;
}
.topbar nav a.topbar-cta:hover { background: var(--primary-dark); color: #fff; }

/* landing sections */
.section { padding: 36px 0 24px; }
.band-soft { background: var(--primary-soft); padding: 12px 0; margin-top: 32px; }
.band-soft .section { padding: 36px 0; }
.hero-lg { padding: 64px 0; border-radius: 0; margin-top: 0; }
.hero-lg .hero-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.hero-eyebrow { display: inline-block; font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.78); font-weight: 700; }
.hero h1 { font-size: 36px; line-height: 1.5; margin: 8px 0 16px; color: #fff; }
@media (max-width: 700px) { .hero-lg { padding: 44px 0; } .hero h1 { font-size: 24px; line-height: 1.55; } }
.btn-line-lg {
  display: inline-block; background: var(--line-green); color: #fff; font-weight: 700;
  padding: 14px 24px; border-radius: 8px; font-size: 15px; min-width: 260px; text-align: center;
}
.btn-line-lg:hover { background: var(--line-green-dark); color: #fff; text-decoration: none; }

/* cols-2 / cols-3 */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 700px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.voice-card p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.75; }
.voice-card { padding: 16px 18px; background: #fff; border-left: 3px solid var(--primary); }

/* flow steps */
.flow-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-steps li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px 18px; text-align: center; position: relative; }
.flow-num {
  width: 44px; height: 44px; margin: 0 auto 10px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.flow-body h3 { color: var(--primary-dark); margin: 0 0 6px; font-size: 15px; }
.flow-body p  { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 900px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .flow-steps { grid-template-columns: 1fr; } }

/* qa-list */
.qa-list { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 24px; margin: 18px 0 0; }
.qa-list dt {
  font-weight: 700; color: var(--primary-dark); padding: 16px 0 6px;
  border-top: 1px solid var(--border); position: relative; padding-left: 28px;
}
.qa-list dt:first-of-type { border-top: 0; }
.qa-list dt::before { content: 'Q'; position: absolute; left: 0; top: 14px; color: var(--primary); font-weight: 800; }
.qa-list dd {
  margin: 0 0 16px 28px; color: var(--text); font-size: 14px; line-height: 1.8; position: relative;
}
.qa-list dd::before { content: 'A'; position: absolute; left: -28px; top: 0; color: var(--line-green); font-weight: 800; }

/* photo strip (works下の実写4枚並び) */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.photo-strip img {
  width: 100%; height: 140px; object-fit: cover; border-radius: 8px;
  display: block; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip img { height: 120px; } }

/* contact LINE tile QR */
.ct-qr {
  width: 80px; height: 80px; margin: 0 auto 8px; display: block;
  background: #fff; border-radius: 6px; padding: 4px;
}

/* contact CTA hero */
.contact-cta { margin-top: 32px; padding: 56px 0; }
.contact-cta .contact-h { font-size: 26px; color: #fff; margin: 8px 0 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile {
  display: block; background: rgba(255,255,255,.96); color: var(--primary-dark);
  padding: 22px 20px; border-radius: 10px; text-align: center;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.contact-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); text-decoration: none; color: var(--primary-dark); }
.contact-tile.line { background: var(--line-green); color: #fff; }
.contact-tile.line:hover { background: var(--line-green-dark); color: #fff; }
.ct-label  { font-size: 12px; letter-spacing: .15em; opacity: .85; }
.ct-action { font-size: 18px; font-weight: 700; margin-top: 6px; }
.ct-note   { font-size: 11px; opacity: .8; margin-top: 4px; }
.muted-light { color: rgba(255,255,255,.85); font-size: 13px; }

/* LINE 友だち追加モーダル */
.line-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.line-modal[hidden] { display: none; }
.lm-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.62); animation: lmFade .15s ease-out; }
.lm-panel {
  position: relative; background: #fff; border-radius: 14px; padding: 32px 28px 26px;
  max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: lmPop .18s ease-out;
}
@keyframes lmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lmPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lm-close {
  position: absolute; top: 8px; right: 12px; background: none; border: 0;
  font-size: 26px; color: #9ca3af; cursor: pointer; padding: 4px 10px; line-height: 1;
}
.lm-close:hover { color: #111827; }
.lm-panel h3 { margin: 0 0 8px; color: var(--primary-dark); font-size: 18px; }
.lm-panel p  { font-size: 13px; color: var(--text); margin: 4px 0; line-height: 1.7; }
.lm-qr { width: 200px; height: 200px; margin: 14px auto 4px; display: block; border-radius: 6px; }
.lm-panel .lm-cta { display: inline-block; margin-top: 10px; padding: 12px 24px; font-size: 14px; min-width: 220px; }

/* footer (job.san-in.jp 風シンプルフッター) */
.site-footer {
  background: #1f2937; color: rgba(255,255,255,.78); padding: 32px 0 18px; margin-top: 56px;
  font-size: 13px;
}
.site-footer .container { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.site-footer .ft-brand { color: #fff; font-weight: 700; font-size: 15px; }
.site-footer .ft-links a { color: rgba(255,255,255,.85); margin: 0 10px; }
.site-footer .ft-cright { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 8px; }

/* main */
main.container { padding-top: 32px; padding-bottom: 64px; }

/* card */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px 28px; margin-top: 20px;
}

/* hero (job.san-in.jp の Lightning ヒーロー風) */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-vivid) 100%);
  color: #fff; border-radius: 12px; padding: 44px 40px;
  margin-top: 20px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero::after {
  content: ''; position: absolute; right: 60px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: #fff; font-size: 30px; margin: 0 0 12px; letter-spacing: .02em; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 15px; margin: 0 0 22px; line-height: 1.8; }
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .hero-actions .btn-primary {
  background: #fff; color: var(--primary-dark);
}
.hero .hero-actions .btn-primary:hover { background: rgba(255,255,255,.92); color: var(--primary-dark); }
.hero .hero-actions .btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6);
  padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 14px;
}
.hero .hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* section heading (Lightning風・eyebrow と見出しは2行) */
.section-title { text-align: center; margin: 40px 0 22px; }
.section-title .eyebrow {
  display: block; font-size: 11px; letter-spacing: .3em; color: var(--primary);
  font-weight: 700; text-transform: uppercase; margin-bottom: 10px;
}
.section-title h2 {
  margin: 0 auto; font-size: 26px; color: var(--text);
  display: inline-block; padding-bottom: 10px; border-bottom: 3px solid var(--primary);
}
.section-desc { text-align: center; color: var(--text-muted); margin: 12px 0 24px; line-height: 1.8; }

/* services 3カード（STAFFING / EQUIPMENT / TIKEMIRU） */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 8px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.svc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(51,122,183,.10); border-color: var(--primary); }
.svc-card .svc-no { font-size: 11px; letter-spacing: .25em; color: var(--text-muted); font-weight: 700; }
.svc-card .svc-title { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin: 4px 0 0; }
.svc-card .svc-jp    { color: var(--text-muted); font-weight: 500; font-size: 12px; margin-left: 8px; }
.svc-card .svc-desc  { color: var(--text); font-size: 13.5px; line-height: 1.8; margin: 6px 0 8px; }
.svc-card .svc-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-card .svc-tags span {
  font-size: 11px; color: var(--primary-dark); border: 1px solid var(--primary-soft);
  background: var(--primary-soft); padding: 3px 8px; border-radius: 4px;
}
.svc-card .svc-link {
  font-size: 12px; color: var(--primary); margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.svc-card .svc-link a { color: var(--primary); }

/* 公開求人カード（DB動的取得） */
.public-jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
@media (max-width: 900px) { .public-jobs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .public-jobs { grid-template-columns: 1fr; } }
.public-jobs .loading, .public-jobs .empty {
  grid-column: 1 / -1; padding: 24px; text-align: center;
  background: #fff; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-muted);
}
.pjob {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.pjob:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(51,122,183,.08); border-color: var(--primary); }
.pjob.pjob-min .pj-body { padding-top: 18px; }
.pjob.pjob-min .pj-title { font-size: 17px; color: var(--primary-dark); margin-bottom: 4px; }
.pjob.pjob-min .pj-tags { margin-bottom: 8px; }
.pj-img { aspect-ratio: 16/9; background: #e5e7eb center/cover no-repeat; }
.pj-img-empty {
  background: var(--primary-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23337ab7' opacity='.4'><rect x='3' y='3' width='18' height='18' rx='2' fill='none' stroke='%23337ab7' stroke-width='1.5'/><path d='M3 16l5-5 4 4 3-3 6 6' stroke='%23337ab7' stroke-width='1.5' fill='none'/></svg>") center/40% no-repeat;
}
.pj-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pj-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pj-tag {
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.pj-area { font-size: 11px; color: var(--text-muted); }
.pj-title { font-size: 14.5px; line-height: 1.5; color: var(--text); margin: 2px 0 4px; font-weight: 700; }
.pj-meta { display: grid; grid-template-columns: 50px 1fr; gap: 4px 10px; font-size: 12px; margin: 0; }
.pj-meta dt { color: var(--text-muted); font-weight: 600; }
.pj-meta dd { margin: 0; color: var(--text); font-weight: 600; }
.pj-meta dd.pj-wage { color: var(--primary-dark); font-size: 15px; font-weight: 800; line-height: 1.4; }
.pj-wage-note { display: block; color: var(--text-muted); font-size: 10.5px; font-weight: 500; margin-top: 2px; letter-spacing: 0; }

/* 募集要項（job-spec） */
.job-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 8px; }
@media (max-width: 700px) { .job-spec-grid { grid-template-columns: 1fr; } }
.job-spec {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 10px;
}
.js-badge {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; align-self: flex-start;
}
.js-badge.tech { background: #92400e; }
.job-spec h3 { margin: 4px 0 6px; color: var(--text); font-size: 17px; }
.job-spec dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.job-spec dt { color: var(--text-muted); font-weight: 600; }
.job-spec dd { margin: 0; color: var(--text); font-weight: 600; }
.js-desc { color: var(--text-muted); font-size: 13px; margin: 8px 0 0; line-height: 1.75; border-top: 1px dashed var(--border); padding-top: 10px; }

/* 歓迎する方 */
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 8px; }
@media (max-width: 700px) { .welcome-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .welcome-grid { grid-template-columns: 1fr; } }
.welcome-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 18px; text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.welcome-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(51,122,183,.08); }
.wlc-icon { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.welcome-card h3 { color: var(--primary-dark); margin: 0 0 6px; font-size: 15px; }
.welcome-card p  { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.7; }

/* 身だしなみガイド */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 8px; }
@media (max-width: 700px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 8px; padding: 16px 18px;
}
.guide-card h3 { color: var(--primary-dark); margin: 0 0 8px; font-size: 14px; }
.guide-card ul { padding-left: 18px; margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.85; }

/* スタッフの声 */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 8px; }
@media (max-width: 700px) { .voice-grid { grid-template-columns: 1fr; } }
.voice-card-rich {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px; position: relative; overflow: hidden;
}
.voice-card-rich::before {
  content: '\201D'; position: absolute; top: -16px; right: 14px; font-size: 96px;
  color: var(--primary-soft); font-family: Georgia, serif; line-height: 1; pointer-events: none;
}
.vc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; position: relative; z-index: 1; }
.vc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; flex-shrink: 0;
}
.vc-name { font-weight: 700; color: var(--text); }
.vc-attr { font-size: 12px; color: var(--text-muted); }
.voice-card-rich p { margin: 0 0 10px; color: var(--text); font-size: 14px; line-height: 1.85; position: relative; z-index: 1; }
.voice-card-rich p:last-child { margin-bottom: 0; }

/* feature row（事業内容の特徴 4列） */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 14px; text-align: center; border-left: 4px solid var(--primary);
  transition: transform .12s, box-shadow .12s;
}
.feature:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(51,122,183,.08); }
.feature strong { display: block; color: var(--primary-dark); font-size: 17px; line-height: 1.3; }
.feature span   { display: block; color: var(--text-muted); font-size: 12px; margin-top: 6px; }
@media (max-width: 700px) { .feature-row { grid-template-columns: 1fr 1fr; } }

/* mission quote (COMPANY) */
.mission {
  font-size: 18px; color: var(--primary-dark); font-style: italic;
  border-left: 4px solid var(--primary); padding: 4px 0 4px 16px; margin: 0 0 18px;
  background: var(--primary-soft); border-radius: 0 6px 6px 0;
}

/* 取引先 chips */
.client-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.client-list li {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; color: var(--text);
}

/* 4-up works grid (Lightning WORKS風) */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 18px 0; }
.work-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 18px; text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.work-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(51,122,183,.12); border-color: var(--primary); }
.work-card .wc-icon {
  width: 80px; height: 80px; margin: 0 auto 14px;
  background: var(--primary-soft); color: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  overflow: hidden;
}
.work-card .wc-icon img { width: 56px; height: 56px; object-fit: contain; }
.work-card h3 { color: var(--primary-dark); margin: 0 0 6px; font-size: 16px; }
.work-card p  { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* login / status pages（topbar 分を引いて中央寄せ） */
.login-wrap {
  min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: linear-gradient(180deg, #eff6ff, #f7f8fa);
}
.login-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 36px 32px; max-width: 520px; width: 100%; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.login-card h1 { font-size: 22px; margin: 0 0 14px; line-height: 1.4; }
.login-card .lead { color: #374151; margin: 0 0 24px; }
.btn-line {
  display: inline-block; background: #06c755; color: #fff; font-weight: 700;
  padding: 14px 28px; border-radius: 8px; font-size: 16px; min-width: 240px;
}
.btn-line:hover { background: #05b14a; color: #fff; text-decoration: none; }
.login-card .note { margin-top: 24px; font-size: 12px; color: #6b7280; }

/* nav active */
.topbar nav a.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }

/* generic utilities */
.muted { color: #6b7280; }
.small { font-size: 11px; }
.right { text-align: right; }
.alert {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 8px 0;
}

/* quick grid (home shortcuts) */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0; }
.quick-card {
  background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 20px 22px; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(51,122,183,.12); text-decoration: none; }
.qc-title { font-size: 17px; font-weight: 700; color: var(--primary-dark); }
.qc-desc  { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* kv (definition list) */
dl.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: #6b7280; font-size: 13px; padding-top: 4px; }
dl.kv dd { margin: 0; padding-top: 4px; font-size: 14px; color: #1f2328; word-break: break-all; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { padding-top: 8px; border-top: 1px solid #f1f3f5; } }

/* tabs */
.tabs { display: flex; gap: 4px; margin: 16px 0 0; border-bottom: 2px solid #e5e7eb; }
.tab {
  background: transparent; border: 0; padding: 10px 18px; font-size: 14px;
  color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab:hover { color: #1f2328; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* month selector */
.month-select { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.month-select select { padding: 6px 10px; font-size: 14px; border: 1px solid #d1d5db; border-radius: 6px; min-width: 200px; }

/* summary stats */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.summary .stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; text-align: center; }
.summary .stat .lbl { color: #6b7280; font-size: 12px; }
.summary .stat .v   { font-size: 20px; font-weight: 700; margin-top: 6px; }
.summary .stat.net  { background: #06c755; border-color: #06c755; color: #fff; }
.summary .stat.net .lbl { color: rgba(255,255,255,.85); }

/* tables */
.table-wrap { overflow-x: auto; }
table.payslip-table, table.work-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.payslip-table th, .payslip-table td, .work-table th, .work-table td {
  border: 1px solid #e5e7eb; padding: 8px 10px; vertical-align: top;
}
.payslip-table th, .work-table th { background: #f9fafb; font-weight: 600; text-align: left; color: #374151; }
.payslip-table tr.row-emp   { background: #eff6ff; }
.payslip-table tr.row-other { background: #fffbeb; }
.payslip-table tr.row-unk   { background: #f3f4f6; }

/* badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.badge-ok      { background: #d1fae5; color: #047857; }
.badge-no      { background: #fee2e2; color: #b91c1c; }
.badge-pend    { background: #fef3c7; color: #92400e; }
.badge-neutral { background: #e5e7eb; color: #374151; }

/* filters (jobs) */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 12px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6b7280; }
.filters label.f-chk { flex-direction: row; align-items: center; gap: 6px; color: #1f2328; }
.filters input[type=search], .filters select {
  padding: 8px 10px; font-size: 14px; border: 1px solid #d1d5db; border-radius: 6px;
}
.filters button {
  background: var(--primary); color: #fff; border: 0; padding: 9px 18px; font-size: 14px;
  border-radius: 6px; cursor: pointer; font-weight: 600;
}
.filters button:hover { background: var(--primary-dark); }
@media (max-width: 700px) { .filters { grid-template-columns: 1fr; } }

/* job cards */
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.job-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.jc-img   { aspect-ratio: 16/9; background: #e5e7eb center/cover no-repeat; }
.jc-body  { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.jc-title { font-size: 15px; margin: 0; line-height: 1.4; }
.jc-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jc-row   { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; }
.jc-row b { color: #1f2328; font-weight: 600; }
.jc-status { margin-top: auto; padding-top: 6px; }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; }
.pagination button {
  background: #fff; color: var(--primary); border: 1px solid #d1d5db; padding: 6px 14px;
  font-size: 13px; border-radius: 6px; cursor: pointer;
}
.pagination button:disabled { color: #9ca3af; cursor: not-allowed; background: #f3f4f6; }

/* photo uploader (mypage edit form) */
.photo-uploader { display: flex; gap: 16px; align-items: flex-start; margin: 4px 0 6px; }
.photo-uploader .avatar { width: 80px; height: 80px; }
.photo-actions { display: flex; flex-direction: column; gap: 6px; }
.photo-actions .hint { margin: 4px 0 0; color: #6b7280; font-size: 11px; }
.lbl-label { display:block; font-size:13px; color:#374151; margin-bottom: 4px; }

/* profile top (avatar + name) */
.profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #f1f3f5; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; background: #e5e7eb center/cover no-repeat;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); flex-shrink: 0;
}
.avatar-empty { background: #e5e7eb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'><circle cx='12' cy='8' r='4'/><path d='M2 22a10 10 0 0 1 20 0'/></svg>") center/56% no-repeat; }
.profile-name { display: flex; flex-direction: column; gap: 6px; }
.profile-name .pn-name { font-size: 18px; font-weight: 700; color: #111827; }

/* card head with title + actions */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-actions { display: flex; gap: 8px; }

/* buttons */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 8px 16px; font-size: 14px; font-weight: 600;
  border-radius: 6px; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; line-height: 1.4; text-align: center;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover   { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: #374151; border-color: #d1d5db; }
.btn-secondary:hover { background: #f3f4f6; color: #111827; text-decoration: none; }

/* form-edit */
.form-edit { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.form-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #374151; }
.form-edit input[type=text], .form-edit input[type=tel], .form-edit input[type=url], .form-edit input[type=search],
.form-edit input[type=email], .form-edit select, .form-edit textarea {
  padding: 8px 10px; font-size: 14px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit;
}
.form-edit input:focus, .form-edit select:focus, .form-edit textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.form-edit textarea { resize: vertical; }
.form-edit .hint { color: #6b7280; font-size: 11px; font-weight: normal; }
.form-edit .req  { color: #b91c1c; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.form-msg { font-size: 13px; color: #6b7280; }
.form-msg.ok { color: #047857; }
.form-msg.ng { color: #b91c1c; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* back link */
.back { margin: 0 0 12px; }
.back a { color: #6b7280; font-size: 13px; }

/* detail page */
.detail-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; margin-top: 8px; }
.detail-hero { aspect-ratio: 21/9; background: #e5e7eb center/cover no-repeat; }
.detail-content { padding: 24px 28px; }
.detail-header { margin-bottom: 16px; }
.detail-tags { display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.detail-section { margin: 18px 0; padding-top: 14px; border-top: 1px solid #f1f3f5; }
.detail-section h3 { font-size: 14px; margin: 0 0 6px; color: #374151; }
.detail-section p  { margin: 0; white-space: pre-wrap; line-height: 1.7; color: #1f2328; }

/* apply section */
.apply-section {
  background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px;
  padding: 20px 22px; margin-top: 22px;
}
.apply-section.applied { background:#ecfdf5; border-color:#a7f3d0; }
.apply-section > h3 { margin: 0 0 14px; font-size: 15px; color: #111827; }
.form-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; margin-bottom: 14px; }
.form-row .form-label { font-size: 13px; color: #374151; padding-top: 8px; line-height: 1.4; }
.form-row .form-input textarea, .form-row .form-input input[type=text] {
  width: 100%; padding: 8px 10px; font-size: 14px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit;
}
.form-row .opt { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; cursor: pointer; font-size: 14px; color:#1f2328; }
.agree-box { border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 16px 12px; margin: 14px 0; background: #fff; }
.agree-box legend { font-size: 12px; color: #374151; padding: 0 6px; font-weight: 600; }
.agree-item { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; line-height: 1.5; }
.agree-item input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.agree-item span { flex: 1; font-size: 13px; color: #1f2328; }
.apply-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-secondary.danger { color: #b91c1c; border-color: #fecaca; }
.btn-secondary.danger:hover { background: #fef2f2; color: #991b1b; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form-row .form-label { padding-top:0; } .detail-content { padding: 18px; } }

/* clickable job card */
.job-card { cursor: pointer; transition: transform .1s, box-shadow .1s, border-color .1s; }
.job-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); border-color: var(--primary); }
.job-card:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* responsive */
@media (max-width: 600px) {
  .topbar nav { gap: 12px; font-size: 13px; }
  h1 { font-size: 20px; }
  .card, .login-card { padding: 18px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary .stat .v { font-size: 16px; }
  .payslip-table th, .payslip-table td { padding: 6px 6px; font-size: 11px; }
  .modal-panel { padding: 18px; }
}
