/* =========================================================
   日本補助金士協会 — コーポレートサイト サンプル
   テーマ：誠実・信頼・専門性（伴走型コンサルティング）
   ========================================================= */

:root {
  --navy: #0f2c4d;
  --navy-2: #15395f;
  --gold: #c79a4b;
  --gold-light: #e3c585;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #e4e8ee;
  --bg: #f7f8fa;
  --bg-soft: #eef1f5;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 44, 77, .06);
  --shadow-md: 0 14px 40px rgba(15, 44, 77, .12);
  --maxw: 1120px;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(92%, var(--maxw)); margin-inline: auto; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- Headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .22em; font-weight: 700;
  color: var(--gold); text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.4; color: var(--navy); }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.sec-lead { color: var(--muted); max-width: 720px; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; transition: .25s ease; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: #2a1e05; box-shadow: 0 10px 26px rgba(199,154,75,.35); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-light); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 38px; height: 38px; }
.brand .name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.brand .name small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--gold); font-family: var(--sans); }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.menu a { font-size: .9rem; font-weight: 600; color: var(--ink); position: relative; padding: 4px 0; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu .cta { background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; }
.menu .cta::after { display: none; }
.menu .cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat;
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,44,77,.62) 0%, rgba(15,44,77,.5) 45%, rgba(15,44,77,.74) 100%);
  z-index: 0;
}
.hero .wrap, .page-hero .wrap, .cta-band .wrap { position: relative; z-index: 1; }
.hero .wrap { padding: 120px 0 100px; }
.hero .eyebrow { justify-content: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.3; margin-bottom: 26px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead { font-size: 1.1rem; max-width: 620px; margin: 0 auto 40px; color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
/* stats band (moved out of hero) */
.stats-band { background: var(--navy); color: #fff; }
.stats-band .wrap { padding: 36px 0; }
.hero-badges { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.hero-badges div { border-left: 2px solid var(--gold); padding-left: 16px; }
.hero-badges b { font-family: var(--serif); font-size: 1.7rem; color: #fff; display: block; }
.hero-badges span { font-size: .82rem; color: rgba(255,255,255,.8); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; color: #fff; padding: 92px 0 76px; overflow: hidden; isolation: isolate;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(15,44,77,.94), rgba(21,57,95,.8));
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 14px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.card h3 { font-size: 1.15rem; margin: 12px 0 10px; }
.card p { color: var(--muted); font-size: .92rem; }
.card .ico { width: 84px; height: 84px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--navy); }
.card .ico img { width: 72px; height: 72px; object-fit: contain; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-body h2 { margin-bottom: 18px; }
.split-body p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold);
  font-weight: 800; background: var(--bg-soft); width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-size: .7rem;
}

/* ---------- Funnel / 導線 ---------- */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.funnel .step {
  background: #fff; border: 1px solid var(--line); padding: 30px 24px; position: relative;
}
.funnel .step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.funnel .step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.funnel .step + .step { border-left: none; }
.funnel .step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; margin-bottom: 16px;
}
.funnel .step h4 { font-family: var(--sans); font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.funnel .step p { font-size: .85rem; color: var(--muted); }
.funnel .step::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 700; z-index: 2; background: var(--bg); padding: 2px;
}
.funnel .step:last-child::after { display: none; }

/* ---------- Voice / testimonial ---------- */
.voice { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.voice img { width: 100%; height: 220px; object-fit: cover; }
.voice .voice-body { padding: 26px 26px 30px; }
.voice .quote { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; margin-bottom: 14px; line-height: 1.7; }
.voice .who { font-size: .82rem; color: var(--muted); }

/* ---------- Section bg variants ---------- */
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy .sec-title { color: #fff; }
.bg-navy .sec-lead { color: rgba(255,255,255,.78); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; isolation: isolate;
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(15,44,77,.95), rgba(21,57,95,.88));
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 560px; margin-inline: auto; }

/* ---------- Column / posts ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post img { height: 190px; width: 100%; object-fit: cover; }
.post .post-body { padding: 22px 24px 26px; }
.post .tag { font-size: .72rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.post h3 { font-size: 1.05rem; margin: 8px 0 10px; }
.post .date { font-size: .78rem; color: var(--muted); }

/* ---------- Company table ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.info-table th { background: var(--bg-soft); color: var(--navy); width: 32%; font-weight: 700; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ---------- Form ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 44px; border: 1px solid var(--line); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; color: var(--navy); }
.field label .req { color: #c0392b; font-size: .75rem; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; transition: .2s; background: #fcfcfd;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.form-success { display: none; background: #eaf6ee; border: 1px solid #b6e0c2; color: #1f6b3b; padding: 18px 22px; border-radius: 10px; margin-bottom: 24px; font-size: .9rem; }
.form-success.show { display: block; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  box-shadow: 0 14px 34px rgba(199,154,75,.45);
}
@media (max-width: 720px){
  .float-cta { right: 14px; bottom: 14px; padding: 13px 22px; font-size: .85rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0b2138; color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .9rem; margin-bottom: 16px; letter-spacing: .08em; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand .name { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 921px){
  .funnel.cols-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 920px){
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel .step { border-radius: 0 !important; }
  .funnel .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  section { padding: 64px 0; }
  .menu {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s; z-index: 99;
  }
  .menu.open { transform: translateY(0); }
  .menu li { padding: 0 24px; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--bg-soft); }
  .menu .cta { text-align: center; margin: 12px 24px; }
  .nav-toggle { display: flex; }
  .g-2, .g-3, .g-4, .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 90px 0 80px; }
  .hero-badges { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 360px; margin-inline: auto; }
  .hero-badges div { border-left: none; position: relative; padding: 15px 0 15px 46px; text-align: left; border-top: 1px solid rgba(255,255,255,.16); }
  .hero-badges div:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
  .hero-badges div::before {
    content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%; background: rgba(199,154,75,.18);
    color: var(--gold-light); display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  }
  .hero-badges b { font-size: 1.2rem; margin-bottom: 2px; }
  .stats-band .wrap { padding: 24px 0; }
  .info-table th, .info-table td { padding: 14px 14px; font-size: .88rem; }
  .info-table th { width: 34%; }
  .form-card { padding: 28px 20px; }
}
