/* ==========================================================
   Berufsoft — site styles
   ========================================================== */
:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f5f7fb;
  --c-text: #0f172a;
  --c-muted: #526077;
  --c-line: #e3e8f0;
  --c-primary: #1d4ed8;
  --c-primary-2: #06b6d4;
  --c-navy: #0b1530;
  --c-navy-2: #12224a;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --max: 1160px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  letter-spacing: .02em;
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: .03em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-navy); color: #e6ecf7; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .8em;
}
.section--dark .eyebrow { color: var(--c-primary-2); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.section-lead { color: var(--c-muted); max-width: 680px; }
.section--dark .section-lead { color: #a9b6cf; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none !important;
  font-family: inherit;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(29, 78, 216, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(29, 78, 216, .7); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none !important; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: 0;
}
.is-scrolled .logo, .is-solid .logo { color: var(--c-text); }

.nav ul { display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: .5em .9em; border-radius: 999px;
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.is-scrolled .nav a, .is-solid .nav a { color: var(--c-muted); }
.is-scrolled .nav a:hover, .is-solid .nav a:hover,
.is-scrolled .nav a[aria-current="page"], .is-solid .nav a[aria-current="page"] { color: var(--c-primary); background: #eef3ff; }
.nav .nav-cta a { background: #fff; color: var(--c-navy); margin-left: 8px; }
.is-scrolled .nav .nav-cta a, .is-solid .nav .nav-cta a { background: var(--c-primary); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; color: #fff;
}
.is-scrolled .nav-toggle, .is-solid .nav-toggle { color: var(--c-text); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle::before { top: 15px; } .nav-toggle span { top: 21px; } .nav-toggle::after { top: 27px; }
.nav-open .nav-toggle::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-open .nav { max-height: 80vh; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav a { color: var(--c-text) !important; padding: .8em 1em; border-radius: 10px; }
  .nav .nav-cta a { background: var(--c-primary) !important; color: #fff !important; margin: 8px 0 0; text-align: center; }
  .nav-open .site-header { background: #fff; }
  .nav-open .logo, .nav-open .nav-toggle { color: var(--c-text); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-navy);
  color: #fff;
  padding: calc(72px + clamp(64px, 12vw, 140px)) 0 clamp(80px, 12vw, 140px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(40% 50% at 80% 20%, rgba(6,182,212,.45), transparent 70%),
    radial-gradient(45% 55% at 15% 85%, rgba(29,78,216,.55), transparent 70%),
    radial-gradient(30% 40% at 55% 55%, rgba(99,102,241,.35), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) rotate(6deg); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  font-size: .82rem; color: #cfe7ff; margin-bottom: 24px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.2); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; letter-spacing: .02em; line-height: 1.25; margin-bottom: .5em; }
.hero h1 .grad {
  background: linear-gradient(90deg, #7dd3fc, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #c3cee3; max-width: 620px; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 80px); max-width: 720px; }
.hero-stats div { border-left: 2px solid rgba(125,211,252,.5); padding-left: 16px; }
.hero-stats strong { display: block; font-size: 1.05rem; color: #fff; }
.hero-stats span { font-size: .82rem; color: #9fb0cc; }
@media (max-width: 600px) { .hero-stats { grid-template-columns: 1fr; } }

/* Page hero (sub pages) */
.page-hero { padding: calc(72px + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.breadcrumb { font-size: .82rem; color: #9fb0cc; margin-bottom: 16px; }
.breadcrumb a { color: #cfe7ff; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d6f2; }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--c-muted); font-size: .94rem; }
.card .more { font-weight: 700; font-size: .88rem; color: var(--c-primary); }
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e0ebff, #dff8fc);
  color: var(--c-primary);
  margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: .78rem; padding: 3px 10px; border-radius: 999px;
  background: var(--c-bg-soft); color: var(--c-muted); border: 1px solid var(--c-line);
}

/* Check list */
.checklist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 14px 16px; font-size: .95rem;
}
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Plans (visit styles) */
.plan { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; }
.plan .num { font-size: .78rem; font-weight: 700; letter-spacing: .15em; color: var(--c-primary-2); }
.plan h3 { color: #fff; margin-top: .4em; }
.plan p { color: #a9b6cf; font-size: .94rem; margin: 0; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.callout {
  border-radius: var(--radius); padding: 28px;
  background: linear-gradient(135deg, #eef3ff, #e8fbfe);
  border: 1px solid #d5e2fb;
}
.callout strong { color: var(--c-primary); }

/* Works */
.work { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--c-line); }
.work:last-child { border-bottom: 1px solid var(--c-line); }
.work-label { font-size: .78rem; font-weight: 700; letter-spacing: .15em; color: var(--c-primary); }
.work h3 { font-size: 1.3rem; margin-top: .3em; }
.work p { color: var(--c-muted); }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; gap: 8px; } }

/* Language list */
.stack-group h3 { font-size: 1rem; color: var(--c-muted); font-weight: 700; margin-bottom: 14px; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span {
  padding: 10px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line);
  font-weight: 600; font-size: .95rem;
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: clamp(40px, 6vw, 64px);
  background: linear-gradient(135deg, var(--c-navy-2), #0e3a6b);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.45), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3em; }
.cta-band p { color: #b8c6e0; margin: 0; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.req { font-size: .7rem; color: #fff; background: #e11d48; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid #cfd8e6; border-radius: 10px; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(29,78,216,.12); background: #fff; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #cfd8e6; background: #fbfcfe; transition: all .2s; }
.chips input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(29,78,216,.2); }
.form-note { font-size: .82rem; color: var(--c-muted); }
.form-status { font-weight: 700; padding: 12px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #ecfdf5; color: #047857; }
.form-status.err { display: block; background: #fff1f2; color: #be123c; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: #9fb0cc; padding: 56px 0 32px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.footer-nav a { color: #c3cee3; }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
}

/* Company profile */
.company-table { margin: 0; border-top: 1px solid var(--c-line); }
.company-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--c-line); }
.company-table dt { font-weight: 700; color: var(--c-muted); }
.company-table dd { margin: 0; }
.biz-list { display: grid; gap: 6px; }
.biz-list li { position: relative; padding-left: 18px; }
.biz-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2)); }
.todo { color: #be123c; font-weight: 700; }
@media (max-width: 640px) { .company-table > div { grid-template-columns: 1fr; gap: 4px; } }
