/* ============================================================
   フォーサイトジャパン — Main Stylesheet
   Design: Professional Japanese business standard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a3557;
  --blue:   #2563a8;
  --blue-l: #f8f3e3;
  --accent: #c9a227;
  --gold:   #c9a227;
  --gold-d: #a9821f;
  --gold-l: #f8f3e3;
  --gray:   #f5f6f8;
  --text:   #1f2937;
  --muted:  #6b7280;
  --border: #e2e8f0;
  --white:  #ffffff;
  --max-w:  1100px;
  --radius: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex; flex-direction: column; gap: 2px;
}
.logo-ja { font-size: 11px; color: var(--muted); font-weight: 400; }
.logo-en {
  font-size: 20px; font-weight: 700;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #d4aa40 0%, #f5e28a 30%, #c9a227 55%, #a9821f 80%, #d4aa40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-en span {
  background: linear-gradient(90deg, #e9d08a 0%, #c9a227 50%, #a9821f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: unset;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 13px; font-weight: 500; color: var(--text);
  padding: 6px 10px; border-radius: var(--radius);
  white-space: nowrap;
}
nav a:hover { background: var(--gray); color: var(--navy); text-decoration: none; }

.btn-contact {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-d) 100%);
  color: var(--navy) !important;
  padding: 8px 18px !important; border-radius: 4px;
  font-weight: 700 !important; font-size: 13px !important;
}
.btn-contact:hover { background: var(--gold-d); color: var(--white) !important; text-decoration: none !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: .3s; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2563a8 100%);
  color: var(--white);
  padding: 72px 24px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700; line-height: 1.4;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px; opacity: .9;
  max-width: 600px; margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #e9d08a 0%, var(--gold) 40%, var(--gold-d) 100%);
  color: var(--navy);
  padding: 14px 32px; border-radius: 4px;
  font-weight: 700; font-size: 15px;
  display: inline-block; transition: filter .2s;
  box-shadow: 0 2px 8px rgba(169,130,31,.35);
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-secondary {
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(201,162,39,.7);
  color: #f0d97a;
  padding: 12px 28px; border-radius: 4px;
  font-weight: 700; font-size: 15px;
  display: inline-block; transition: .2s;
}
.btn-secondary:hover { background: rgba(201,162,39,.15); text-decoration: none; }

/* ── Sections ── */
section { padding: 64px 24px; }
.section-gray { background: var(--gray); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 12px;
  position: relative;
}
.section-head h2::after {
  content: ''; display: block;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #e9d08a, var(--gold-d));
  margin: 12px auto 0;
}
.section-head p { color: var(--muted); font-size: 14px; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: var(--max-w); margin: 0 auto; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.card-icon { font-size: 32px; margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.card a.more {
  display: inline-block; margin-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--blue);
}

/* ── Steps ── */
.steps { max-width: 720px; margin: 0 auto; }
.step {
  display: flex; gap: 20px; margin-bottom: 28px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--navy); color: var(--white);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.step-body h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--muted); }

/* ── Table ── */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; max-width: 720px; margin: 0 auto; }
.info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
}
.info-table th {
  background: var(--gray); font-weight: 700;
  color: var(--navy); width: 200px; text-align: left;
}
.info-table td { background: var(--white); }

/* ── License box ── */
.license-box {
  background: var(--gold-l); border: 1px solid #d4b56a;
  border-radius: 6px; padding: 16px 20px;
  font-size: 13px; max-width: 720px; margin: 24px auto 0;
}
.license-box strong { color: var(--navy); }

/* ── FAQ ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.faq-q::before { content: 'Q. '; color: var(--gold-d); }
.faq-a { font-size: 14px; color: var(--muted); padding-left: 28px; }
.faq-a::before { content: 'A. '; color: var(--gold-d); font-weight: 700; }

/* ── CTA Band ── */
.cta-band {
  background: var(--navy); color: var(--white);
  text-align: center; padding: 56px 24px;
}
.cta-band h2 { font-size: clamp(18px, 3vw, 26px); font-weight: 700; margin-bottom: 12px; }
.cta-band p { font-size: 14px; opacity: .85; margin-bottom: 28px; }

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; max-width: 860px; margin: 0 auto;
}
.contact-info h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.contact-tel { font-size: 26px; font-weight: 700; color: var(--navy); margin: 8px 0; }
.contact-tel a { color: var(--navy); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-group label span { color: var(--gold-d); margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group textarea { height: 120px; resize: vertical; }

.btn-submit {
  background: linear-gradient(135deg, #e9d08a 0%, var(--gold) 40%, var(--gold-d) 100%);
  color: var(--navy);
  border: none; padding: 14px 40px;
  font-size: 15px; font-weight: 700; border-radius: 4px;
  cursor: pointer; width: 100%; transition: filter .2s;
  box-shadow: 0 2px 8px rgba(169,130,31,.3);
}
.btn-submit:hover { filter: brightness(1.07); }

/* ── Page Header (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white); padding: 48px 24px;
}
.page-hero .container { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb { font-size: 12px; opacity: .7; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.4; }
.page-hero p { font-size: 14px; opacity: .85; margin-top: 10px; max-width: 600px; }

/* ── Service list ── */
.service-list { max-width: 760px; margin: 0 auto; }
.service-block { margin-bottom: 40px; }
.service-block h3 {
  font-size: 18px; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--gold); padding-left: 14px;
  margin-bottom: 14px;
}
.service-block p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.service-block ul { list-style: none; padding: 0; }
.service-block ul li {
  font-size: 14px; color: var(--muted);
  padding: 4px 0 4px 18px; position: relative;
}
.service-block ul li::before { content: '✓'; color: var(--gold-d); position: absolute; left: 0; font-weight: 700; }

/* ── Tag chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: var(--gold-l); color: var(--gold-d);
  border: 1px solid #d4b56a; padding: 4px 12px;
  border-radius: 20px; font-size: 13px; font-weight: 500;
}

/* ── Highlight box ── */
.highlight-box {
  background: var(--gold-l); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 0 6px 6px 0;
  margin: 24px 0; font-size: 14px;
}
.highlight-box strong { color: var(--navy); }

.warning-box {
  background: #fff8f0; border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 0 6px 6px 0;
  margin: 24px 0; font-size: 14px;
}

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: var(--max-w); margin: 0 auto; }
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.blog-card-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 700; color: var(--gold-d); background: var(--gold-l); padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.blog-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: var(--muted); }

/* ── Footer ── */
footer {
  background: var(--navy); color: rgba(255,255,255,.8);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand .logo-en { color: var(--white); font-size: 18px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-brand .footer-lic { font-size: 11px; margin-top: 12px; opacity: .6; }
footer h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: 13px; color: rgba(255,255,255,.7); }
footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ── Industry grid (特定技能) ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.industry-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.09); transform: translateY(-2px); }
.industry-card--new { border: 1.5px solid var(--gold); background: var(--gold-l); }
.industry-icon { font-size: 26px; }
.badge-new {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: var(--gold); color: var(--navy);
  padding: 1px 5px; border-radius: 3px; vertical-align: middle;
  margin-left: 2px;
}
@media (max-width: 768px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Compare table ── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: center; }
.compare-table thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.compare-table th:first-child { text-align: left; }
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--navy); background: var(--gray); }
.compare-table tr:nth-child(even) td:not(:first-child) { background: #f9fafb; }

/* ── Job categories grid (gijin-jinbun) ── */
.job-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.job-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.job-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.job-icon { font-size: 28px; line-height: 1; }
.job-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.5; }

/* ── Concern cards (jobseeker) ── */
.concern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.concern-card {
  background: var(--gold-l); border: 1px solid rgba(201,162,39,.3);
  border-left: 4px solid var(--gold); border-radius: 6px;
  padding: 14px 16px; font-size: 13px; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: 10px; line-height: 1.6;
}
.concern-card::before { content: "✦"; color: var(--gold); font-size: 11px; flex-shrink: 0; }

/* ── Job examples small grid ── */
.job-sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.job-sm-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 10px; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--navy);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 80px 24px 24px;
    gap: 8px; z-index: 99;
  }
  nav.open a { font-size: 16px; padding: 12px 16px; }
  .hamburger { display: flex; z-index: 100; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .concern-grid { grid-template-columns: repeat(2, 1fr); }
  .job-sm-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 20px; }
  section { padding: 48px 20px; }
}
