@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color */
  --bg: #FFFFFF;
  --bg-soft: #F5F4F1;       /* header / footer background */
  --card-bg: #FFFFFF;
  --border: #E4E3DE;
  --text: #2B2B2E;
  --text-muted: #5C5C61;

  --purple: #4B2A73;        /* primary CTA / headings accent */
  --purple-dark: #3B2059;
  --purple-hover: #5F3691;
  --teal: #2F9E86;          /* logo / tag / secondary accent */
  --teal-dark: #24856F;

  --banner-start: #1E3A3A;  /* gradient banner strip, left */
  --banner-end: #4B2E83;    /* gradient banner strip, right */

  /* Type */
  --font-display: 'Poppins', 'Arial', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius-sm: 8px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}

h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 600; }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 17px; }

p { margin: 0 0 16px; color: var(--text-muted); max-width: 62ch; }

/* ---------- Top bar ---------- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0;
  line-height: 1;
}
.topbar-contact {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.topbar-contact strong { color: var(--purple); font-weight: 600; }

/* ---------- Page banner (gradient strip, matches kodevent.com interior pages) ---------- */
.page-banner {
  background: linear-gradient(100deg, var(--banner-start) 0%, var(--banner-end) 100%);
  padding: 18px 0;
}
.page-banner-label {
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 60px; border-bottom: 1px solid var(--border); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 18px; max-width: 46ch; }
.hero-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.hero-card .stat {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}
.hero-card .stat-label { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.hero-card-tags { font-size: 13px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--purple-hover); }
.btn-secondary {
  background: #FFFFFF;
  color: var(--purple);
  border: 1px solid var(--purple);
}
.btn-secondary:hover { background: var(--bg-soft); }

/* ---------- Hero decorative accents ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--purple); top: -180px; right: -100px; }
.hero::after { width: 300px; height: 300px; background: var(--teal); bottom: -160px; left: 6%; }
.hero .hero-grid { position: relative; z-index: 1; }

/* ---------- Hero checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.check-list svg { flex: none; margin-top: 2px; }

.badge-row-plain { font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.badge-row-plain strong { color: var(--purple); font-weight: 600; }

/* ---------- Tinted section background ---------- */
.section-tint { background: linear-gradient(180deg, rgba(75,42,115,0.04), rgba(47,158,134,0.045)); }

/* ---------- Benefit / value-prop grid ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.benefit-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.benefit-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(75,42,115,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--purple);
}
.benefit-icon.teal { background: rgba(47,158,134,0.10); color: var(--teal); }
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { font-size: 14px; margin: 0; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--banner-start) 0%, var(--banner-end) 100%);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 26px; }
.cta-band .btn { background: #FFFFFF; color: var(--purple); }
.cta-band .btn:hover { background: #F2F0FA; }

.field-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
}
.field-file input[type="file"] { display: none; }
.field-file .upload-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: #FFFFFF;
  color: var(--text);
  font-size: 13px;
}

.form-state { display: none; margin-top: 14px; font-size: 14px; border-radius: var(--radius-sm); padding: 12px 14px; }
.form-state.loading { background: var(--bg-soft); color: var(--text-muted); }
.form-state.error-message { background: rgba(200, 60, 60, 0.08); color: #A83232; }
.form-state.sent-message { background: rgba(47, 158, 134, 0.10); color: var(--teal-dark); }

/* ---------- Trust bar ---------- */
.trustbar { padding: 26px 0; border-bottom: 1px solid var(--border); }
.trustbar-label { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.trustbar-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.trustbar-row span {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Section ---------- */
.section { padding: 60px 0; }
.section-border { border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 32px; }

/* ---------- Case cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.case-card .industry {
  display: inline-block;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.case-card h3 {
  color: var(--purple);
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.case-card p { font-size: 14px; margin: 0; }

/* ---------- Process (numbered — genuinely sequential) ---------- */
.process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; counter-reset: step; }
.process-item { border-top: 3px solid var(--teal); padding-top: 16px; }
.process-item::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  display: block;
  margin-bottom: 10px;
}
.process-item h3 { font-size: 16px; margin-bottom: 6px; }
.process-item p { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--purple);
  font-size: 20px;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; font-size: 14px; }

/* ---------- Form ---------- */
.form-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-soft); padding: 36px 0; border-top: 1px solid var(--border); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); }

.footer-row a.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-row a.social-link:hover { color: var(--purple); }
.footer-row a.social-link svg { flex: none; }

/* ---------- Plain list (replaces chip/pill pattern) ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; }
.plain-list li { font-size: 15px; color: var(--text); padding-left: 16px; position: relative; }
.plain-list li::before { content: "–"; position: absolute; left: 0; color: var(--teal); }

.check-list.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .case-grid, .form-section { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
