/* ============================================================
   しごとものがたり (shigoto-story) — 再構築テーマ
   運営: 株式会社みらい編集
   Plain HTML/CSS, mobile-first, responsive, accessible.
   現行サイト(Next.js/Vercel)のデザインを忠実に再現したもの。
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --bg: #ffffff;
  --text: #2f2f2f;
  --muted: #6b6b6b;
  --light: #f4f3f1;     /* セクション背景・タグpill */
  --border: #e6e4e0;
  --green: #3f8f64;     /* ブランドグリーン */
  --green-d: #347a54;
  --gold: #e6b62e;      /* ゴールド */
  --gold-d: #d8a32f;
  --accent: #e23a54;    /* 募集中/新着強亿の赤 */
  --dark: #2f2f2f;      /* ダークカード/締切間近バッジ */
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.05);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--font); color:var(--text);
  background:var(--bg); line-height:1.75; font-size:16px;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; line-height:1.4; font-weight:700; }
button{ font-family:inherit; cursor:pointer; }

/* skip link (a11y) */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--dark); color:#fff;
  padding:.6rem 1rem; z-index:200; border-radius:0 0 var(--radius-sm) 0;
}
.skip-link:focus{ left:0; }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 20px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(6px);
  border-bottom:1px solid var(--border);
}
.site-header__inner{
  max-width:var(--maxw); margin:0 auto; padding:18px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.brand{ font-size:20px; font-weight:700; letter-spacing:.02em; color:var(--text); }
.main-nav ul{ display:flex; gap:34px; align-items:center; }
.main-nav a{ font-size:15px; color:var(--text); transition:color .15s; }
.main-nav a:hover{ color:var(--green); }
.nav-toggle{
  display:none; background:none; border:0; padding:6px;
  width:42px; height:42px;
}
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--text); margin:5px auto; transition:.2s; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:.85em 1.8em; border-radius:999px; font-weight:700; font-size:15px;
  border:1px solid transparent; transition:transform .12s, background .15s, box-shadow .15s;
}
.btn:hover{ transform:translateY(-1px); }
.btn--primary{ background:var(--green); color:#fff; }
.btn--primary:hover{ background:var(--green-d); }
.btn--dark{ background:var(--dark); color:#fff; }
.btn--outline{ background:#fff; color:var(--text); border-color:var(--border); }
.btn--outline:hover{ border-color:var(--green); color:var(--green); }
.btn--block{ width:100%; }

/* ---------- Section scaffolding ---------- */
.section{ padding:56px 0; }
.section--light{ background:var(--light); }
.section__title{ font-size:24px; margin-bottom:28px; }
.section__title small{ display:block; font-size:13px; color:var(--muted); font-weight:500; margin-top:6px; }

/* ============================================================
   HOME — ピックアップ（公式セレクト カルーセル）
   ============================================================ */
.picks{ padding:34px 0 8px; }
.carousel{
  display:flex; gap:18px; overflow-x:auto; padding:4px 4px 18px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
}
.carousel::-webkit-scrollbar{ height:8px; }
.carousel::-webkit-scrollbar-thumb{ background:#dcd9d4; border-radius:999px; }
.pick-card{
  position:relative; flex:0 0 auto; width:360px; min-height:228px;
  border-radius:var(--radius); overflow:hidden; color:#fff;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:26px; scroll-snap-align:start; box-shadow:var(--shadow);
  transition:transform .15s, box-shadow .15s;
}
.pick-card:hover{ transform:translateY(-3px); box-shadow:0 10px 30px rgba(0,0,0,.14); }
.pick-card--wide{ width:430px; }
.pick-card__label{ font-size:12px; opacity:.92; margin-bottom:10px; letter-spacing:.04em; }
.pick-card__title{ font-size:21px; line-height:1.5; font-weight:700; }
.pick-card__tags{ margin-top:12px; display:flex; flex-wrap:wrap; gap:8px; }
.pick-card__tags span{ font-size:11px; background:rgba(255,255,255,.25); padding:3px 9px; border-radius:999px; }
/* color / image variants (差し替え用: background-image を後からWPで設定) */
.bg-green{ background:linear-gradient(150deg,#479a6e,#3f8f64); }
.bg-gold { background:linear-gradient(150deg,#ecc04a,#e6b62e); }
.bg-dark { background:linear-gradient(150deg,#3a3a3a,#2f2f2f); }
.bg-photo-1{ background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.78)),linear-gradient(135deg,#7c8a6a,#54624a); }
.bg-photo-2{ background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.78)),linear-gradient(135deg,#6b5a44,#3b2f24); }
.bg-photo-3{ background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.78)),linear-gradient(135deg,#5a6b78,#2f3a44); }
.bg-photo-4{ background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.7)),linear-gradient(135deg,#8a7d6a,#564a3b); }

/* ============================================================
   求人カード（共通）
   ============================================================ */
.job-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px;
}
.job-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .15s, box-shadow .15s;
}
.job-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.job-card__media{ position:relative; aspect-ratio:16/10; background:var(--light); overflow:hidden; }
.job-card__media img{ width:100%; height:100%; object-fit:cover; }
.job-card__ph{ width:100%; height:100%; background:linear-gradient(135deg,#e9e6e1,#d7d2cb); }
.job-card__body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.job-card__title{ font-size:16px; font-weight:700; line-height:1.55; }
.job-card__meta{ font-size:13px; color:var(--muted); line-height:1.7; margin-top:auto; }
.job-card__meta b{ font-weight:500; color:#555; }
.job-card__tags{ display:flex; flex-wrap:wrap; gap:6px; }

/* ステータス / バッジ */
.badge{
  position:absolute; top:12px; left:12px; z-index:2;
  font-size:12px; font-weight:700; padding:4px 11px; border-radius:6px; color:#fff;
}
.badge--open{ background:var(--accent); }   /* 募集中 */
.badge--closed{ background:#9a9a9a; }        /* 募集終了 */
.badge--sample{ background:rgba(47,47,47,.62); left:auto; right:12px; font-weight:500; } /* 軽い【サンプル】表示 */
.tag-pill{
  display:inline-block; font-size:12px; color:#555; background:var(--light);
  border:1px solid var(--border); padding:4px 11px; border-radius:999px;
}
.tag-pill:hover{ background:#eceae6; }

/* 一覧ステータスのインライン版 */
.status{ display:inline-block; font-size:12px; font-weight:700; padding:3px 10px; border-radius:6px; color:#fff; }
.status--open{ background:var(--accent); }
.status--closed{ background:#9a9a9a; }
.status--new{ background:var(--gold); }
.status--deadline{ background:var(--dark); }
.status--sample{ background:#6b6b6b; }

/* keyword tags section */
.kw-lead{ color:var(--muted); margin:-12px 0 22px; }
.kw-tags{ display:flex; flex-wrap:wrap; gap:10px; }

/* more link row */
.row-more{ text-align:center; margin-top:30px; }

/* ============================================================
   求人一覧 — タグ絞り込み（追加：タグ動線修正 v2）
   ============================================================ */
.job-filter{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 22px; }
.filter-chip{
  font-size:13px; color:#555; background:var(--light);
  border:1px solid var(--border); padding:6px 14px; border-radius:999px;
  transition:background .15s, color .15s, border-color .15s;
}
.filter-chip:hover{ background:#eceae6; }
.filter-chip.is-active{ background:var(--green); color:#fff; border-color:var(--green); }
.filter-chip:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
.filter-status{ font-size:14px; color:var(--muted); margin:0 0 18px; }
.empty-state{
  text-align:center; color:var(--muted); background:var(--light);
  border:1px solid var(--border); border-radius:var(--radius);
  padding:48px 24px; font-size:15px; line-height:1.9;
}
.empty-state[hidden]{ display:none; }

/* ============================================================
   下層ページ共通（breadcrumb / page head）
   ============================================================ */
.breadcrumb{ font-size:13px; color:var(--muted); padding:26px 0 4px; }
.breadcrumb a:hover{ color:var(--green); }
.breadcrumb span{ margin:0 .5em; }
.page-head{ padding:6px 0 30px; }
.page-head h1{ font-size:30px; margin-bottom:14px; }
.page-head p{ color:var(--muted); max-width:680px; }

/* ============================================================
   会社概要
   ============================================================ */
.spec-table{ width:100%; border-collapse:collapse; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.spec-table th,.spec-table td{ text-align:left; padding:18px 22px; border-bottom:1px solid var(--border); vertical-align:top; font-size:15px; }
.spec-table tr:last-child th,.spec-table tr:last-child td{ border-bottom:0; }
.spec-table th{ width:180px; color:var(--muted); font-weight:500; background:#fafafa; }
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:8px; }
.feature-card{ border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.feature-card h3{ font-size:17px; margin-bottom:8px; }
.feature-card p{ color:var(--muted); font-size:14px; margin:0; }

/* ============================================================
   求人詳細
   ============================================================ */
.job-detail{ max-width:840px; margin:0 auto; }
.job-detail__badges{ display:flex; gap:8px; margin-bottom:14px; }
.job-detail h1{ font-size:30px; line-height:1.45; }
.job-detail__sub{ color:var(--muted); font-size:14px; margin:10px 0 22px; }
.job-detail__hero{ border-radius:var(--radius); overflow:hidden; margin-bottom:34px; aspect-ratio:16/9; }
.job-detail__hero .job-card__ph{ aspect-ratio:16/9; }
.job-block{ margin-bottom:30px; }
.job-block h2{ font-size:20px; margin-bottom:12px; padding-left:14px; border-left:4px solid var(--green); }
.job-block p{ margin:0; }
.quote{ background:var(--light); border-radius:var(--radius); padding:22px 26px; font-size:17px; color:#444; }
.req-table th{ width:140px; }
.cta-box{ background:var(--light); border-radius:var(--radius); padding:32px; text-align:center; margin:36px 0; }
.cta-box h2{ border:0; padding:0; font-size:20px; margin-bottom:8px; }
.cta-box p{ color:var(--muted); margin:0 0 18px; }
.company-box{ border:1px solid var(--border); border-radius:var(--radius); padding:24px; margin:30px 0; }
.company-box h3{ font-size:16px; margin-bottom:4px; }
.company-box .loc{ color:var(--muted); font-size:13px; margin-bottom:8px; }
.company-box p{ margin:0; font-size:14px; color:#555; }

/* ============================================================
   採用支援 (recruit-with-us)
   ============================================================ */
.hero-cta{ background:var(--light); border-radius:var(--radius); padding:52px 40px; text-align:center; }
.hero-cta .eyebrow{ color:var(--green); font-weight:700; font-size:13px; letter-spacing:.06em; }
.hero-cta h1{ font-size:30px; margin:12px 0 16px; line-height:1.5; }
.hero-cta p{ color:var(--muted); max-width:640px; margin:0 auto 24px; }
.value-grid,.plan-grid{ display:grid; gap:22px; }
.value-grid{ grid-template-columns:repeat(3,1fr); }
.flow-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.flow-card{ border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.flow-card .num{ font-size:26px; font-weight:700; color:var(--gold); }
.flow-card h3{ font-size:16px; margin:6px 0 6px; }
.flow-card p{ color:var(--muted); font-size:13px; margin:0; }
.plan-grid{ grid-template-columns:repeat(3,1fr); }
.plan-card{ border:1px solid var(--border); border-radius:var(--radius); padding:28px; display:flex; flex-direction:column; }
.plan-card.is-featured{ border-color:var(--green); box-shadow:var(--shadow); }
.plan-card h3{ font-size:18px; }
.plan-card .price{ font-size:24px; font-weight:700; margin:8px 0 16px; }
.plan-card ul{ display:flex; flex-direction:column; gap:10px; font-size:14px; }
.plan-card li::before{ content:"✓"; color:var(--green); font-weight:700; margin-right:.5em; }
.note{ font-size:12px; color:var(--muted); margin-top:14px; }

/* ============================================================
   お問い合わせ フォーム
   ============================================================ */
.form{ max-width:620px; margin:0 auto; }
.form .field{ margin-bottom:22px; }
.form label{ display:block; font-weight:700; font-size:14px; margin-bottom:8px; }
.form input,.form select,.form textarea{
  width:100%; padding:13px 15px; border:1px solid var(--border);
  border-radius:var(--radius-sm); font-family:inherit; font-size:15px; background:#fff; color:var(--text);
}
.form input:focus,.form select:focus,.form textarea:focus{ outline:2px solid var(--green); border-color:var(--green); }
.form textarea{ min-height:160px; resize:vertical; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{ border-top:1px solid var(--border); padding:48px 0 40px; }
.site-footer__inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; align-items:center; }
.site-footer .brand{ font-size:18px; }
.footer-nav ul{ display:flex; flex-wrap:wrap; gap:26px; }
.footer-nav a{ font-size:14px; color:var(--muted); }
.footer-nav a:hover{ color:var(--green); }
.copyright{ width:100%; color:var(--muted); font-size:13px; margin-top:8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:860px){
  .job-grid{ grid-template-columns:repeat(2,1fr); }
  .feature-grid,.value-grid,.plan-grid{ grid-template-columns:1fr; }
  .flow-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  body{ font-size:15px; }
  .nav-toggle{ display:block; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0; background:#fff;
    border-bottom:1px solid var(--border); display:none; padding:8px 0 16px;
  }
  .main-nav.is-open{ display:block; }
  .main-nav ul{ flex-direction:column; gap:0; }
  .main-nav a{ display:block; padding:14px 20px; border-top:1px solid var(--border); }
  .job-grid{ grid-template-columns:1fr; }
  .flow-grid{ grid-template-columns:1fr; }
  .section{ padding:42px 0; }
  .page-head h1,.job-detail h1,.hero-cta h1{ font-size:24px; }
  .spec-table th{ width:120px; padding:14px; }
  .spec-table td{ padding:14px; }
  .pick-card{ width:300px; }
  .pick-card--wide{ width:330px; }
}