/* =========================================================
   LAVAS AI研修 LP — Design System
   モバイルファースト / lavas.co.jp のトーン準拠
   （モダン・洗練・信頼感、Next-Gen AI Training）
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --ink: #0b1120;          /* 見出し・本文の濃色 */
  --ink-soft: #334155;     /* 本文 */
  --ink-mute: #64748b;     /* 補足テキスト */
  --brand: #4f46e5;        /* indigo-600 */
  --brand-strong: #4338ca; /* indigo-700 */
  --brand-2: #7c3aed;      /* violet（グラデ用） */
  --brand-tint: #eef2ff;   /* 薄い背景 */

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-panel: #f1f5f9;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --white: #ffffff;

  /* Feedback */
  --ok: #059669;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #fcd34d;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;

  /* Radius / Shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(30, 27, 75, .16);

  /* Layout */
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 40px);
  --gradient: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; font-weight: 700; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--panel { background: var(--bg-panel); }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.section-lead {
  color: var(--ink-mute);
  font-size: 1.02rem;
  max-width: 46em;
}
.text-center { text-align: center; }
.center-block { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--brand-strong); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.15rem; letter-spacing: .02em; }
.brand-logo:hover { text-decoration: none; }
.brand-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); }
.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; padding: 11px 22px; font-size: .95rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 10vw, 96px);
  background:
    radial-gradient(70% 120% at 85% -10%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(60% 110% at 0% 0%, rgba(79, 70, 229, .12), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .84rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-full); box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  font-size: clamp(1.85rem, 6.4vw, 3.1rem);
  line-height: 1.32;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1rem, 2.6vw, 1.15rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__actions .btn { flex: 1 1 auto; min-width: 220px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; color: var(--ink-mute); font-size: .9rem; }
.hero__trust strong { color: var(--ink); font-size: 1.25rem; font-weight: 800; margin-right: 4px; }
.hero__trust .trust-item { display: flex; align-items: baseline; gap: 6px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-strong);
  margin-bottom: 16px; font-size: 1.3rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-mute); font-size: .96rem; }

/* Problem cards */
.problem-card { display: flex; gap: 14px; align-items: flex-start; }
.problem-card .q { flex: 0 0 auto; font-weight: 800; color: var(--brand); font-size: 1.4rem; line-height: 1.2; }

/* ---------- Steps (flow) ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 22px 24px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 800;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.step p { color: var(--ink-mute); font-size: .93rem; }

/* ---------- Grant notice（助成金の必須注記） ---------- */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--r-md); padding: 18px 20px;
  color: #78350f; font-size: .9rem; line-height: 1.85;
}
.notice strong { color: #92400e; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-md); max-width: 640px;
}
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .label { color: var(--ink-soft); }
.price-row .value { font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- Booking / TimeRex ---------- */
.booking-embed {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md);
  min-height: 620px; overflow: hidden;
}
.booking-embed iframe { width: 100%; min-height: 620px; border: 0; display: block; }
.embed-placeholder {
  min-height: 320px; display: grid; place-items: center; text-align: center;
  color: var(--ink-mute); padding: 40px 24px; gap: 8px;
}
.embed-placeholder .ph-title { font-weight: 700; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow-md); max-width: 560px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field .req { color: #dc2626; font-size: .8rem; margin-left: 4px; }
.field input {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); background: #fff; }
.field input::placeholder { color: #94a3b8; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: 14px; }
.form-note a { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .92rem; border-radius: var(--r-sm); padding: 12px 14px; display: none; }
.form-status.is-error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-status.is-loading { display: block; background: var(--brand-tint); color: var(--brand-strong); border: 1px solid #c7d2fe; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--brand); font-weight: 700; flex: 0 0 auto; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 0 18px; color: var(--ink-mute); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient); color: #fff; text-align: center;
  border-radius: var(--r-lg); padding: clamp(36px, 7vw, 60px) var(--pad);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 4.4vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .92); margin-bottom: 26px; }
.cta-band .btn--ghost { background: #fff; color: var(--brand-strong); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: 52px 32px; font-size: .92rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; margin-bottom: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-col li { margin-bottom: 8px; }
.footer-info { color: #94a3b8; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; color: #94a3b8; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Thanks pages ---------- */
.thanks {
  min-height: 72vh; display: grid; place-items: center; text-align: center;
  padding: clamp(48px, 10vw, 96px) var(--pad);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(79,70,229,.1), transparent 60%), var(--bg);
}
.thanks__icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 2rem;
  box-shadow: var(--shadow-lg);
}
.thanks h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 14px; }
.thanks p { color: var(--ink-mute); max-width: 40em; margin: 0 auto 10px; }
.thanks__actions { margin-top: 28px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-mute); font-size: .85rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; padding-top: 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .97rem; }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: .95rem; vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--ink); width: 34%; font-weight: 700; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: clamp(28px, 5vw, 44px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
