/* ============================================================
   はまぐる求人ナビ — style.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --accent:   #FF6B35;
  --accent2:  #FF9500;
  --navy:     #1A2744;
  --navy-lt:  #243258;
  --blue:     #0095D9;
  --green:    #00B37A;
  --gold:     #F5A623;
  --border:   #2e2e2e;
  --bg:       #F8F7F4;
  --white:    #ffffff;
  --text:     #1A1A1A;
  --muted:    #6B7280;
  --shadow:   3px 3px 0 var(--border);
  --radius:   12px;
  --t:        0.2s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ──── ヘッダー ──── */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-top {
  background: var(--navy-lt);
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 12px;
}
.header-top a { color: rgba(255,255,255,0.7); transition: color var(--t); }
.header-top a:hover { color: var(--accent2); }
.header-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow);
}
.logo-sub { font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.6); display: block; }
.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  gap: 0;
}
.header-search input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  font-family: inherit;
}
.header-search button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.header-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.btn-post {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.btn-post:hover { transform: translate(2px,2px); box-shadow: none; }
.btn-login {
  padding: 10px 16px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-size: 13px;
  transition: var(--t);
}
.btn-login:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ──── カテゴリバー ──── */
.category-bar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.category-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
}
.cat-tab {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--t);
  cursor: pointer;
}
.cat-tab:hover, .cat-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ──── コンテンツレイアウト ──── */
.page-container { max-width: 1160px; margin: 0 auto; padding: 28px 20px; }
.content-grid   { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.job-list       { display: flex; flex-direction: column; gap: 14px; }

/* ──── 求人カード ──── */
.job-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.job-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--border); }
.job-card.boosted { border-color: var(--gold); box-shadow: 3px 3px 0 var(--gold); }
.job-card.boosted::before {
  content: '🚀 上位表示';
  position: absolute;
  top: -12px; left: 12px;
  background: var(--gold);
  color: var(--border);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 100px;
  border: 2px solid var(--border);
}
.job-thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.job-thumb-placeholder {
  width: 72px; height: 72px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.job-info { min-width: 0; }
.job-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.job-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.job-company { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  background: #F3F4F6;
  color: var(--muted);
}
.job-salary {
  text-align: right;
  flex-shrink: 0;
}
.salary-label { font-size: 11px; color: var(--muted); }
.salary-value { font-size: 18px; font-weight: 900; color: var(--accent); white-space: nowrap; }
.salary-note  { font-size: 11px; color: var(--muted); }
.job-actions  { display: flex; gap: 6px; margin-top: 12px; }
.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.btn-detail:hover { transform: translate(2px,2px); box-shadow: none; }
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.btn-apply:hover { transform: translate(2px,2px); box-shadow: none; }

/* ──── 外部求人セクション ──── */
.external-section {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.external-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.external-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.external-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: var(--t);
}
.external-card:hover { background: var(--white); transform: translate(-1px,-1px); box-shadow: 2px 2px 0 var(--border); }
.external-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #eee;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.external-name  { font-size: 13px; font-weight: 700; }
.external-desc  { font-size: 11px; color: var(--muted); }

/* ──── サイドバー ──── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.sidebar-card-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.boost-explain {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.boost-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}
.boost-price-row.current { background: rgba(245,166,35,0.15); border: 1px solid var(--gold); }

/* ──── 求人詳細 ──── */
.detail-hero {
  background: var(--navy);
  color: #fff;
  padding: 36px 20px;
}
.detail-container { max-width: 900px; margin: 0 auto; }
.detail-category { margin-bottom: 10px; }
.detail-title { font-size: 28px; font-weight: 900; line-height: 1.3; margin-bottom: 12px; }
.detail-company { font-size: 15px; color: rgba(255,255,255,0.7); }
.yt-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  margin: 20px 0;
}
.yt-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.detail-section { margin-bottom: 24px; }
.detail-section h3 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  width: 140px;
  border-bottom: 1px solid #eee;
  color: var(--muted);
}
.detail-table td { padding: 10px 14px; border-bottom: 1px solid #eee; }
.apply-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: #fff;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.apply-cta .fee-note {
  font-size: 11px;
  margin-top: 10px;
  opacity: 0.8;
}

/* ──── 求人投稿フォーム ──── */
.post-container { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.post-title { font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 28px; }
.form-section { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.form-section-title { font-size: 14px; font-weight: 900; color: var(--navy); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--t);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.submit-area {
  text-align: center;
  padding: 24px 0;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.btn-submit:hover { transform: translate(2px,2px); box-shadow: none; }

/* ──── ブースト入札UI ──── */
.boost-auction {
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 18px;
  background: rgba(245,166,35,0.06);
}
.boost-current-bid { font-size: 24px; font-weight: 900; color: var(--gold); }
.boost-input-row { display: flex; gap: 8px; margin-top: 12px; }
.boost-amount-input {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.btn-boost {
  padding: 11px 20px;
  background: var(--gold);
  color: var(--border);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 2px 2px 0 var(--border);
}

/* ──── フッター ──── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-brand .site-logo { font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--t); }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ──── ユーティリティ ──── */
.pill { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.pill-orange { background: rgba(255,107,53,0.12); color: var(--accent); border: 1px solid rgba(255,107,53,0.3); }
.pill-blue   { background: rgba(0,149,217,0.12);  color: var(--blue);   border: 1px solid rgba(0,149,217,0.3); }
.pill-green  { background: rgba(0,179,122,0.12);  color: var(--green);  border: 1px solid rgba(0,179,122,0.3); }
.pill-gray   { background: #F3F4F6; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; font-weight: 700; }
.alert-success { background: rgba(0,179,122,0.1); border: 2px solid var(--green); color: var(--green); }
.alert-error   { background: rgba(239,68,68,0.1);  border: 2px solid #EF4444; color: #EF4444; }

/* ──── レスポンシブ ──── */
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .job-card { grid-template-columns: auto 1fr; }
  .job-salary { grid-column: 1 / -1; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-search { display: none; }
  .detail-title { font-size: 20px; }
}
