/* ==========================================================================
   Source Japan — 生産者募集ページ（日本語 / suppliers）
   Design tokens shared with the buyer site; Japanese typography:
   headings in Mincho (Shippori Mincho), body in Noto Sans JP.
   ========================================================================== */

:root {
  --green: #3f7a4e;
  --green-dark: #2f5c3a;
  --green-tint: #eef4ef;
  --green-border: #cfe1d1;
  --green-wash: #f4f9f4;
  --green-label: #7fa088;
  --sage: #8fae86;
  --tan: #c9b98a;
  --amber: #b06a3a;
  --amber-tint: #f6ece3;
  --ink: #191917;
  --body: #45453f;
  --muted: #6b6b64;
  --faint: #8b8b85;
  --ghost: #a8a8a2;
  --border: #ececea;
  --border-light: #f2f2ef;
  --bg: #fafaf8;
  --chip-bg: #f6f6f3;

  --font-sans: 'Noto Sans JP', system-ui, sans-serif;
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans JP', monospace;
}

section#apply .section-head {
    text-align: center;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #e4e4df; border-radius: 6px; border: 2px solid #fff; }

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em;
  color: var(--green); text-transform: uppercase;
}

/* --- Buttons --------------------------------------------------------------- */
.btn-primary {
  background: var(--green); border: none; color: #fff;
  font-size: 13px; font-weight: 500; padding: 9px 17px; border-radius: 9px;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
  background: #fff; border: 1px solid var(--border); color: var(--body);
  font-size: 13px; padding: 8px 16px; border-radius: 9px;
}
.btn-secondary:hover { border-color: #d6d6d2; }
.btn-lg { font-size: 14px; padding: 13px 24px; border-radius: 11px; }

/* --- Top nav --------------------------------------------------------------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center; gap: 30px;
  padding: 0 32px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-mono); font-size: 13px;
}
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; color: var(--ghost); text-transform: uppercase; }
.topnav-links { display: flex; gap: 24px; font-size: 13px; }
.topnav-links a { color: var(--faint); }
.topnav-links a:hover { color: var(--ink); }
.spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* --- Hero ------------------------------------------------------------------ */
.hero { background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 84px 32px 78px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--green); text-transform: uppercase; margin-bottom: 22px; background: var(--green-tint); border: 1px solid var(--green-border); border-radius: 20px; padding: 6px 13px; }
.hero h1 { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1.03; margin: 0 0 22px; }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 500px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-metrics { display: flex; gap: 34px; margin-top: 40px; }
.hero-metric-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.hero-metric-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--ghost); text-transform: uppercase; margin-top: 4px; }

.hero-panel { display: flex; flex-direction: column; gap: 12px; }
.hero-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 17px 18px;
}
.hero-card-icon {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: var(--green-tint); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.hero-card-title { font-size: 14px; font-weight: 600; }
.hero-card-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* --- Section scaffold ------------------------------------------------------ */
.section { max-width: 1120px; margin: 0 auto; padding: 88px 32px; }
.section-head {margin-bottom: 44px; }
.section-title { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 14px 0 0; }
.section-sub { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }

/* --- Value props ----------------------------------------------------------- */
.value-band { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.value-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 18px;
  background: var(--green-tint); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.value-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 9px; }
.value-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* --- Categories ------------------------------------------------------------ */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 20px 20px; display: flex; flex-direction: column; min-height: 168px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-card:hover { border-color: #d6d6d2; box-shadow: 0 8px 26px rgba(0,0,0,.06); transform: translateY(-2px); }
.category-card.live { border-color: var(--green-border); }
.category-glyph {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--green-tint); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 20px;
}
.category-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.category-card p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.category-status { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.category-count { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: var(--ghost); text-transform: uppercase; }
.category-pill {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 20px; padding: 3px 9px;
}
.category-pill.live { color: var(--green-dark); background: var(--green-tint); border: 1px solid var(--green-border); }
.category-pill.soon { color: var(--faint); background: var(--chip-bg); border: 1px solid var(--border); }

/* --- Suppliers section ----------------------------------------------------- */
.region-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.region-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--body);
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 7px 14px;
}
.region-chip .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--sage); flex: none; }
.region-chip .count { font-family: var(--font-mono); font-size: 10px; color: var(--ghost); }

.supplier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.supplier-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
}
.supplier-card:hover { border-color: #d6d6d2; box-shadow: 0 8px 26px rgba(0,0,0,.06); }
.supplier-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
.supplier-mono {
  width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; color: var(--green);
}
.supplier-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.supplier-region { font-size: 12px; color: var(--faint); margin-top: 3px; }
.supplier-verified {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-tint); border: 1px solid var(--green-border);
  border-radius: 20px; padding: 2px 8px 2px 5px;
}
.check-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; flex: none; }
.supplier-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.supplier-tag {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--muted);
  background: var(--chip-bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
}
.supplier-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid var(--border-light); padding-top: 15px; margin-top: auto; }
.supplier-stats .k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; color: var(--ghost); text-transform: uppercase; margin-bottom: 4px; }
.supplier-stats .v { font-size: 14px; font-weight: 600; }
.supplier-stats .v.accent { color: var(--green); }

.suppliers-foot { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.suppliers-foot-note { font-size: 13px; color: var(--faint); }

/* --- Process --------------------------------------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.process-step { position: relative; }
.process-num { font-family: var(--font-mono); font-size: 12px; color: var(--green); letter-spacing: .1em; margin-bottom: 12px; }
.process-step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.process-step p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* --- Register CTA band ----------------------------------------------------- */
.cta-band { background: var(--green); color: #fff; }
.cta-inner { max-width: 1120px; margin: 0 auto; padding: 64px 32px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .eyebrow { color: rgba(255,255,255,.7); }
.cta-band h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 0; max-width: 560px; }
.cta-band p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 14px 0 0; max-width: 520px; }
.btn-white { background: #fff; color: var(--green-dark); border: none; font-size: 14px; font-weight: 600; padding: 14px 26px; border-radius: 11px; }
.btn-white:hover { background: var(--green-wash); }
.btn-ghost-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); font-size: 14px; font-weight: 500; padding: 13px 24px; border-radius: 11px; }
.btn-ghost-white:hover { border-color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-blurb { font-size: 12.5px; line-height: 1.6; color: var(--faint); max-width: 280px; margin: 14px 0 0; }
.footer-col-title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ghost); text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { max-width: 1120px; margin: 0 auto; padding: 18px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--faint); }

/* --- Register modal -------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,20,18,.4);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 70;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 520px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 0; }
.modal-eyebrow { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--green); text-transform: uppercase; }
.modal-title { font-size: 19px; font-weight: 600; margin-top: 6px; letter-spacing: -.01em; }
.modal-sub { font-size: 12.5px; color: var(--faint); margin-top: 6px; max-width: 380px; line-height: 1.5; }
.modal-close {
  border: 1px solid var(--border); background: #fff; width: 30px; height: 30px;
  border-radius: 9px; font-size: 15px; color: var(--faint); flex: none;
}
.modal-body { padding: 22px 24px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--ghost); text-transform: uppercase; }
.field-input { display: block; width: 100%; margin-top: 6px; height: 40px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 13px; }
.field-input:focus { outline: none; border-color: var(--green); }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; cursor: pointer; }
.checkbox-stub { width: 16px; height: 16px; border: 1.5px solid #c4c4bd; border-radius: 5px; flex: none; }
.btn-modal-primary { width: 100%; border: none; background: var(--green); color: #fff; font-size: 13.5px; font-weight: 500; padding: 13px; border-radius: 11px; }
.btn-modal-primary:hover { background: var(--green-dark); }
.modal-foot { text-align: center; font-size: 12px; color: var(--faint); margin-top: 14px; }
.modal-foot a { color: var(--green); font-weight: 500; }

/* --- Toast ----------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 13px; padding: 12px 20px; border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Responsive ------------------------------------------------------------ */

/* Tablet / small laptop */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .supplier-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 46px; }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .topnav { gap: 16px; padding: 0 20px; }
  .topnav-links { display: none; }
  .hero-inner { padding: 60px 24px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .hero h1 br { display: none; }
  .hero-lead { font-size: 16px; }
  .section { padding: 64px 24px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .process-grid { grid-template-columns: 1fr; }
  .process-grid { gap: 26px; }
  .section-title { font-size: 28px; }
  .cta-inner { padding: 52px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-band h2 { font-size: 27px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer-bottom-inner { padding: 18px 24px; }
}

/* Phone */
@media (max-width: 560px) {
  .topnav { height: 58px; padding: 0 16px; }
  .brand-sub { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-cta .btn-primary { padding: 8px 14px; font-size: 12.5px; }

  .hero-inner { padding: 44px 16px 44px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-lg { text-align: center; }
  .hero-metrics { gap: 22px; flex-wrap: wrap; }
  .hero-metric-value { font-size: 24px; }

  .section { padding: 52px 16px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
  .category-grid, .supplier-grid { grid-template-columns: 1fr; }

  .suppliers-foot { gap: 10px; }
  .suppliers-foot .btn-lg { width: 100%; text-align: center; }

  .cta-inner { padding: 40px 16px; }
  .cta-band h2 { font-size: 23px; }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-actions .btn-white, .cta-actions .btn-ghost-white { text-align: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 16px; }
  .footer-bottom-inner { padding: 16px; flex-direction: column; gap: 6px; }

  .form-grid { grid-template-columns: 1fr; }
  .modal { border-radius: 14px; }
  .toast { left: 16px; right: 16px; bottom: 16px; transform: translateY(20px); text-align: center; }
  .toast.show { transform: translateY(0); }
}

/* ==========================================================================
   Japanese supplier-recruitment page — typography & extra components
   ========================================================================== */

/* Headings in Mincho for a refined, trustworthy (老舗-friendly) tone */
.hero h1, .section-title, .cta-band h2, .value-card h3, .process-step h3, .faq-item h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}
.hero h1 { font-size: 40px; letter-spacing: .01em; line-height: 1.28; }
.section-title { font-size: 30px; letter-spacing: .01em; line-height: 1.4; }
.cta-band h2 { font-size: 28px; letter-spacing: .01em; line-height: 1.4; }
.hero-lead, .section-sub { line-height: 1.9; }

/* Eyebrow labels: gentler spacing for mixed JP/latin */
.eyebrow { letter-spacing: .1em; }

/* Hero proof chips */
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-proof span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--body);
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 7px 15px;
}
.hero-proof .check-dot { width: 15px; height: 15px; font-size: 9px; }
.check-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; flex: none; }

/* Highlighted "free / no commission" card */
.value-card.hl { background: var(--green); border-color: var(--green); }
.value-card.hl .value-icon { background: rgba(255,255,255,.16); color: #fff; }
.value-card.hl h3 { color: #fff; }
.value-card.hl p { color: rgba(255,255,255,.88); }
.value-card .price-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--green-dark); background: var(--green-tint); border: 1px solid var(--green-border);
  border-radius: 20px; padding: 4px 12px; display: inline-block; margin-bottom: 16px;
}
.value-card.hl .price-tag { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }

/* Conditions list */
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.cond-item { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.cond-item .check-dot { margin-top: 4px; }
.cond-item h3 { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.cond-item p { font-size: 13px; line-height: 1.75; color: var(--muted); margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.faq-item { border-top: 1px solid var(--border); padding-top: 18px; }
.faq-item h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.faq-item p { font-size: 13.5px; line-height: 1.85; color: var(--muted); margin: 0; }

/* Body copy inside value/process cards a touch airier for JP */
.value-card p { font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.process-step p { line-height: 1.85; }

@media (max-width: 860px) {
  .cond-grid, .faq-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .hero h1 { font-size: 31px; }
  .section-title { font-size: 25px; }
}
