* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif; background: #fafafa; color: #333; line-height: 1.9; overflow-x: hidden; }
.header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 960px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.2rem; font-weight: 700; color: #6366f1; text-decoration: none; }
.logo span { color: #94a3b8; font-weight: 400; font-size: .8rem; margin-left: 6px; }
.nav { display: flex; gap: 20px; }
.nav a { color: #64748b; font-size: .85rem; text-decoration: none; }
.nav a:hover { color: #6366f1; }
.hero { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; padding: 48px 20px; text-align: center; }
.hero h1 { font-size: 1.7rem; margin-bottom: 8px; }
.hero p { font-size: .95rem; opacity: .85; }
.main { max-width: 960px; margin: 0 auto; padding: 32px 20px; }
.breadcrumb { font-size: .8rem; color: #94a3b8; margin-bottom: 20px; }
.breadcrumb a { color: #6366f1; text-decoration: none; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.card h2 { font-size: 1.15rem; font-weight: 600; color: #1e293b; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.card h2 .icon { margin-right: 6px; }

/* Salary highlight */
.salary-hero { text-align: center; padding: 32px 20px; }
.salary-big { font-size: 3.2rem; color: #6366f1; font-weight: 700; line-height: 1.2; }
.salary-big small { font-size: 1.2rem; font-weight: 400; color: #64748b; }
.salary-sub { display: flex; justify-content: center; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.salary-sub-item { text-align: center; }
.salary-sub-item .label { font-size: .8rem; color: #94a3b8; }
.salary-sub-item .value { font-size: 1.3rem; font-weight: 600; color: #1e293b; }

/* Tables */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th { text-align: left; padding: 12px 14px; background: #f8fafc; font-size: .85rem; color: #64748b; font-weight: 500; width: 30%; border-bottom: 1px solid #f1f5f9; }
.info-table td { padding: 12px 14px; font-size: .9rem; border-bottom: 1px solid #f1f5f9; }

/* Bar chart */
.bar-chart { margin-top: 8px; }
.bar-row { display: flex; align-items: center; margin-bottom: 8px; }
.bar-label { width: 80px; font-size: .85rem; color: #64748b; flex-shrink: 0; }
.bar-track { flex: 1; background: #f1f5f9; border-radius: 6px; height: 28px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; transition: width .5s; }
.bar-value { font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.bar-value-out { font-size: .8rem; font-weight: 600; color: #6366f1; margin-left: 8px; white-space: nowrap; }

/* Job grid for index */
.category-title { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid #6366f1; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 32px; }
.job-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; transition: all .2s; }
.job-card:hover { border-color: #6366f1; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(99,102,241,.12); }
.job-card .job-name { font-size: 1rem; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.job-card .job-salary { font-size: .9rem; color: #6366f1; font-weight: 600; }
.job-card .job-salary small { font-size: .75rem; color: #94a3b8; font-weight: 400; }

/* Tags / related */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 14px; border-radius: 20px; font-size: .8rem; background: #f0f0ff; color: #6366f1; border: 1px solid #e0e0ff; text-decoration: none; display: inline-block; }
.tag:hover { background: #6366f1; color: #fff; }

/* Ad space */
.ad-space { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 16px; text-align: center; color: #94a3b8; font-size: .8rem; margin: 20px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* Search */
.search-box { display: flex; gap: 8px; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.search-box input { flex: 1; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 1rem; }
.search-box input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.search-box button { padding: 12px 24px; background: #6366f1; color: #fff; border: none; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.search-box button:hover { background: #4f46e5; }

/* Description text */
.desc-text { font-size: .92rem; color: #475569; line-height: 1.9; }
.desc-text p { margin-bottom: 12px; }

/* Footer */
.footer { text-align: center; padding: 32px 20px; color: #94a3b8; font-size: .8rem; border-top: 1px solid #e5e7eb; background: #fff; margin-top: 40px; }
.footer a { color: #6366f1; text-decoration: none; }

/* Stats row */
.stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.stat-box { flex: 1; min-width: 120px; background: #f8fafc; border-radius: 8px; padding: 14px; text-align: center; }
.stat-box .stat-label { font-size: .75rem; color: #94a3b8; }
.stat-box .stat-value { font-size: 1.2rem; font-weight: 700; color: #6366f1; }

/* Affiliate sections */
.affiliate-card { background: #fffdf5; border: 1px solid #f0e6c0; }
.affiliate-card h2 { border-bottom-color: #f0e6c0; }
.affiliate-items { display: flex; flex-direction: column; gap: 20px; }
.affiliate-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; }
.affiliate-label { font-size: 1rem; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.affiliate-desc { font-size: .85rem; color: #64748b; margin-bottom: 14px; }
.affiliate-buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.affiliate-btn { display: inline-block; padding: 12px 28px; border-radius: 10px; font-size: .95rem; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: all .2s; }
.affiliate-btn-main { background: #6366f1; color: #fff; }
.affiliate-btn-main:hover { background: #4f46e5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.25); }
.affiliate-btn-sub { font-size: .85rem; color: #6366f1; text-decoration: none; font-weight: 500; }
.affiliate-btn-sub:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.3rem; }
  .salary-big { font-size: 2.4rem; }
  .salary-sub { gap: 16px; }
  .job-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .nav { display: none; }
  .bar-label { width: 60px; font-size: .75rem; }
  .search-box { flex-direction: column; }
  .search-box button { width: 100%; }
}
