/* =========================================================
   制作サンプル: 企業サイト（複数ページ）
   株式会社リンクブリッジ / 人材紹介業を想定
   Clean & Minimal / 白基調・信頼感・グリーン系アクセント
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-alt: #f4f7f6;
  --c-ink: #16211e;
  --c-muted: #5a6b66;
  --c-brand: #1f7a5c;
  --c-brand-dark: #155c44;
  --c-brand-soft: #e6f2ed;
  --c-line: #e0e7e4;
  --c-font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
  --c-maxw: 1080px;
  --c-radius: 12px;
  --c-shadow: 0 12px 32px rgba(22, 33, 30, 0.08);
  --c-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --c-header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--c-header-h) + 12px); }
body {
  margin: 0; font-family: var(--c-font); color: var(--c-ink);
  background: var(--c-bg); line-height: 1.85; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-dark); }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

.c-container { width: 100%; max-width: var(--c-maxw); margin-inline: auto; padding-inline: 24px; }

/* ===== サンプルバナー ===== */
.sample-bar {
  background: #16211e; color: #e7f0ec; font-size: 0.8rem;
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center;
  padding: 8px 16px; text-align: center;
}
.sample-bar strong { color: #8fd6bb; }
.sample-bar a { color: #e7f0ec; text-decoration: underline; }

/* ===== Header ===== */
.c-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--c-ease), box-shadow 0.2s var(--c-ease);
}
.c-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 4px 18px rgba(22, 33, 30, 0.06); }
.c-header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--c-header-h); }
.c-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--c-ink); text-decoration: none; font-size: 1.02rem;
}
.c-logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--c-brand); color: #fff;
  display: grid; place-items: center; font-size: 0.9rem;
}
.c-nav-list { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.c-nav-list a { color: var(--c-muted); text-decoration: none; padding: 8px 14px; border-radius: 8px; }
.c-nav-list a:hover { color: var(--c-brand-dark); background: var(--c-alt); }
.c-nav-list a[aria-current="page"] { color: var(--c-brand-dark); font-weight: 700; }
.c-nav-cta { background: var(--c-brand); color: #fff !important; }
.c-nav-cta:hover { background: var(--c-brand-dark) !important; }

.c-nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-line);
  border-radius: 10px; background: #fff; position: relative; cursor: pointer;
}
.c-nav-toggle span,
.c-nav-toggle span::before,
.c-nav-toggle span::after {
  content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--c-ink);
  transition: transform 0.2s var(--c-ease), opacity 0.2s var(--c-ease);
}
.c-nav-toggle span { top: 21px; }
.c-nav-toggle span::before { top: -6px; }
.c-nav-toggle span::after { top: 6px; }
.c-nav-toggle[aria-expanded="true"] span { background: transparent; }
.c-nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.c-nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .c-nav-toggle { display: block; z-index: 2; }
  .c-nav-list {
    position: fixed; inset: var(--c-header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--c-shadow); padding: 6px 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.2s var(--c-ease), opacity 0.2s var(--c-ease), visibility 0.2s;
  }
  .c-nav-list.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .c-nav-list li { border-top: 1px solid var(--c-line); }
  .c-nav-list li:first-child { border-top: 0; }
  .c-nav-list a { border-radius: 0; padding: 15px 24px; }
  .c-nav-cta { text-align: center; margin: 8px 24px; border-radius: 8px; }
}

/* ===== Buttons ===== */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s var(--c-ease), background-color 0.2s var(--c-ease);
}
.c-btn:hover { transform: translateY(-2px); }
.c-btn-primary { background: var(--c-brand); color: #fff; }
.c-btn-primary:hover { background: var(--c-brand-dark); }
.c-btn-ghost { background: #fff; color: var(--c-brand-dark); border-color: var(--c-line); }
.c-btn-ghost:hover { border-color: var(--c-brand); }
.c-btn-block { width: 100%; }

/* ===== Page hero / breadcrumb ===== */
.c-page-hero {
  background:
    radial-gradient(900px 300px at 12% -20%, rgba(31, 122, 92, 0.12), transparent 60%),
    var(--c-alt);
  border-bottom: 1px solid var(--c-line);
  padding: clamp(40px, 7vw, 72px) 0;
}
.c-breadcrumb { font-size: 0.8rem; color: var(--c-muted); margin-bottom: 14px; }
.c-breadcrumb a { color: var(--c-muted); }
.c-page-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; }
.c-page-title small { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; color: var(--c-brand); margin-bottom: 8px; }
.c-page-lead { margin-top: 14px; color: var(--c-muted); max-width: 640px; }

/* ===== Top hero ===== */
.c-hero {
  background:
    radial-gradient(1000px 360px at 85% -10%, rgba(31, 122, 92, 0.14), transparent 60%),
    var(--c-bg);
  padding: clamp(52px, 9vw, 104px) 0 clamp(44px, 7vw, 80px);
  border-bottom: 1px solid var(--c-line);
}
.c-hero-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--c-brand); margin-bottom: 18px; }
.c-hero-title { font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.4; font-weight: 700; }
.c-hero-lead { margin-top: 22px; color: var(--c-muted); font-size: 1.05rem; max-width: 620px; }
.c-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ===== Section ===== */
.c-section { padding: clamp(52px, 8vw, 92px) 0; }
.c-section-alt { background: var(--c-alt); }
.c-section-head { max-width: 640px; margin-bottom: 40px; }
.c-section-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 10px; }
.c-section-title { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 700; }
.c-section-desc { margin-top: 14px; color: var(--c-muted); }

/* ===== Cards ===== */
.c-cards { display: grid; gap: 22px; }
.c-cards-3 { grid-template-columns: repeat(3, 1fr); }
.c-cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .c-cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .c-cards-3, .c-cards-2 { grid-template-columns: 1fr; } }

.c-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--c-radius);
  padding: 28px; transition: transform 0.2s var(--c-ease), box-shadow 0.2s var(--c-ease);
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--c-shadow); }
.c-card-ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--c-brand-soft);
  color: var(--c-brand-dark); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px;
}
.c-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.c-card p { font-size: 0.92rem; color: var(--c-muted); }

/* ===== Stats ===== */
.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.c-stat { background: #fff; border: 1px solid var(--c-line); border-radius: var(--c-radius); padding: 26px; text-align: center; }
.c-stat-num { font-size: 2rem; font-weight: 700; color: var(--c-brand-dark); }
.c-stat-label { font-size: 0.84rem; color: var(--c-muted); margin-top: 4px; }
@media (max-width: 760px) { .c-stats { grid-template-columns: 1fr 1fr; } }

/* ===== Reasons (numbered) ===== */
.c-reasons { display: grid; gap: 18px; }
.c-reason {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--c-radius); padding: 26px;
}
.c-reason-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.c-reason h3 { font-size: 1.05rem; margin-bottom: 8px; }
.c-reason p { font-size: 0.92rem; color: var(--c-muted); }

/* ===== Flow (steps) ===== */
.c-flow { display: grid; gap: 16px; counter-reset: step; }
.c-flow-item {
  position: relative; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--c-radius); padding: 24px 26px 24px 72px;
}
.c-flow-item::before {
  counter-increment: step; content: "STEP " counter(step);
  position: absolute; left: 22px; top: 24px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-brand);
}
.c-flow-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.c-flow-item p { font-size: 0.9rem; color: var(--c-muted); }

/* ===== Definition table ===== */
.c-deftable { border-top: 1px solid var(--c-line); }
.c-deftable > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px;
  padding: 18px 4px; border-bottom: 1px solid var(--c-line); font-size: 0.94rem;
}
.c-deftable dt { font-weight: 700; }
.c-deftable dd { color: var(--c-muted); }
@media (max-width: 620px) { .c-deftable > div { grid-template-columns: 1fr; gap: 4px; } }

/* ===== History ===== */
.c-history { border-left: 2px solid var(--c-line); padding-left: 24px; display: grid; gap: 22px; }
.c-history-item { position: relative; }
.c-history-item::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--c-brand); border: 3px solid #fff;
}
.c-history-year { font-weight: 700; color: var(--c-brand-dark); }
.c-history-item p { font-size: 0.92rem; color: var(--c-muted); }

/* ===== Message / greeting ===== */
.c-message { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.c-message-photo {
  aspect-ratio: 3 / 4; border-radius: var(--c-radius);
  background: linear-gradient(150deg, #2f9c76, #1f7a5c); display: grid; place-items: center;
  color: #fff; font-weight: 700; letter-spacing: 0.1em;
}
.c-message p + p { margin-top: 14px; }
.c-message-sign { margin-top: 20px; font-weight: 700; }
@media (max-width: 720px) { .c-message { grid-template-columns: 1fr; } .c-message-photo { max-width: 200px; } }

/* ===== Job list (recruit) ===== */
.c-jobs { display: grid; gap: 16px; }
.c-job {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--c-radius); padding: 24px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center;
}
.c-job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-job-tag { font-size: 0.74rem; font-weight: 700; color: var(--c-brand-dark); background: var(--c-brand-soft); padding: 3px 10px; border-radius: 999px; }
.c-job h3 { font-size: 1.05rem; }
.c-job-meta { font-size: 0.86rem; color: var(--c-muted); }
@media (max-width: 620px) { .c-job { grid-template-columns: 1fr; } }

/* ===== CTA band ===== */
.c-cta {
  background: linear-gradient(150deg, var(--c-brand), var(--c-brand-dark));
  color: #fff; border-radius: 18px; padding: clamp(36px, 6vw, 56px); text-align: center;
}
.c-cta h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.c-cta p { margin-top: 12px; color: rgba(255, 255, 255, 0.86); }
.c-cta .c-btn { margin-top: 26px; background: #fff; color: var(--c-brand-dark); }
.c-cta .c-btn:hover { background: #eef7f3; }

/* ===== News ===== */
.c-news { display: grid; gap: 2px; }
.c-news-item {
  display: grid; grid-template-columns: 120px 100px 1fr; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--c-line); font-size: 0.92rem;
}
.c-news-date { color: var(--c-muted); }
.c-news-cat { font-size: 0.74rem; font-weight: 700; color: var(--c-brand-dark); background: var(--c-brand-soft); padding: 2px 10px; border-radius: 999px; justify-self: start; }
@media (max-width: 620px) { .c-news-item { grid-template-columns: 1fr; gap: 4px; } }

/* ===== Form ===== */
.c-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--c-radius); padding: 30px; max-width: 640px; }
.c-form-row { margin-bottom: 20px; }
.c-form-row label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 8px; }
.c-req { font-size: 0.66rem; font-weight: 700; color: #c0392b; background: rgba(192,57,43,0.09); padding: 2px 7px; border-radius: 4px; margin-left: 6px; }
.c-form input, .c-form select, .c-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: 8px; background: #fff;
  transition: border-color 0.15s var(--c-ease), box-shadow 0.15s var(--c-ease);
}
.c-form input:focus, .c-form select:focus, .c-form textarea:focus {
  outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(31,122,92,0.15);
}
.c-form textarea { resize: vertical; }
.c-form-error { font-size: 0.78rem; color: #c0392b; margin-top: 6px; }
.c-form-error:empty { margin-top: 0; }
.c-form-row.has-error input, .c-form-row.has-error textarea, .c-form-row.has-error select { border-color: #c0392b; }
.c-form-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c-form-check input { width: 18px; height: 18px; }
.c-form-check label { margin-bottom: 0; font-weight: 500; font-size: 0.9rem; }
.c-form-status { margin-top: 14px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.c-form-status.is-ok { color: var(--c-brand-dark); }
.c-form-status.is-ng { color: #c0392b; }
.c-form-hint { margin-top: 14px; font-size: 0.8rem; color: var(--c-muted); }

/* ===== Contact info side ===== */
.c-contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.c-contact-box { background: var(--c-alt); border: 1px solid var(--c-line); border-radius: var(--c-radius); padding: 26px; }
.c-contact-box dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-muted); margin-top: 16px; }
.c-contact-box dt:first-of-type { margin-top: 0; }
.c-contact-box dd { font-weight: 700; margin-top: 2px; }
@media (max-width: 860px) { .c-contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.c-footer { background: #12211d; color: #c4d3ce; padding: 52px 0 26px; }
.c-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.c-footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.c-footer-brand .c-logo-mark { background: var(--c-brand); }
.c-footer address { font-style: normal; font-size: 0.84rem; margin-top: 14px; line-height: 1.9; }
.c-footer h4 { font-size: 0.8rem; letter-spacing: 0.1em; color: #8fb3a8; margin-bottom: 12px; }
.c-footer-nav { display: grid; gap: 9px; font-size: 0.86rem; }
.c-footer-nav a { color: #c4d3ce; text-decoration: none; }
.c-footer-nav a:hover { color: #fff; }
.c-footer-copy { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; font-size: 0.78rem; color: #7f948e; }
@media (max-width: 720px) { .c-footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ===== reveal =====
   JS 動作時（html.js-anim）のみ初期状態を隠す。JS 無効時は常に表示。 */
.js-anim .c-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--c-ease), transform 0.6s var(--c-ease); }
.js-anim .c-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .c-reveal { opacity: 1; transform: none; transition: none; }
  .c-btn:hover, .c-card:hover { transform: none; }
}

.c-prose p + p { margin-top: 16px; }
.c-prose { color: var(--c-muted); max-width: 720px; }
.mt-cta { margin-top: 56px; }
