/* ============================================================
   合同会社ヴェルミナ (Vaermina) — Site Styles
   Clean / light / trustworthy
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --ink: #0f1b2d;
  --ink-soft: #384a63;
  --muted: #6b7c93;
  --line: #e4e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-alt: #eef3fa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 27, 45, .05);
  --shadow: 0 12px 32px rgba(15, 27, 45, .08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .12);
  --maxw: 1120px;
  --grad: linear-gradient(120deg, var(--blue), var(--cyan));
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-en: "Manrope", var(--font-jp);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(37, 99, 235, .34); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark svg { border-radius: 10px; box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-family: var(--font-en); font-weight: 800; font-size: 1.22rem; letter-spacing: .01em; }
.brand-ja { font-size: .68rem; color: var(--muted); letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(55% 60% at 8% 20%, rgba(37, 99, 235, .16), transparent 62%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  opacity: .5;
}
.hero-inner { max-width: 820px; }
.hero-eyebrow {
  font-family: var(--font-en); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .8rem; color: var(--blue); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 900; letter-spacing: .01em;
  font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.28; color: var(--ink);
}
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 26px; font-size: 1.06rem; color: var(--ink-soft); max-width: 640px; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { margin-top: 56px; display: flex; gap: 42px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-en); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.hero-stats span { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.hero-stats li + li { padding-left: 42px; border-left: 1px solid var(--line); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-label {
  font-family: var(--font-en); font-weight: 700; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.section-label::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: 14px; letter-spacing: .02em; }
.section-desc { margin-top: 16px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-catch { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.6; color: var(--ink); margin-bottom: 22px; }
.about-lead p + p { margin-top: 18px; color: var(--ink-soft); }
.about-points { display: flex; flex-direction: column; gap: 18px; }
.about-points li {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px 26px 78px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.about-points li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pt-num {
  position: absolute; left: 26px; top: 26px; font-family: var(--font-en); font-weight: 800;
  font-size: 1.05rem; color: #fff; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--grad);
}
.about-points h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.about-points p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4e0f5; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  color: var(--blue); background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(6, 182, 212, .1));
  margin-bottom: 20px;
}
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card-tags li { font-size: .76rem; font-weight: 600; color: var(--blue-dark); background: var(--bg-alt); padding: 5px 12px; border-radius: 999px; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; }
.flow li {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.flow li::before {
  content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px;
  background: var(--grad); border-radius: 0 0 3px 3px;
}
.flow-step { font-family: var(--font-en); font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: var(--blue); }
.flow li h3 { font-size: 1.06rem; font-weight: 700; margin: 12px 0 8px; }
.flow li p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--grad); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 0; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.cta-inner p { margin-top: 10px; opacity: .92; }

/* ---------- Company ---------- */
.company-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { text-align: left; padding: 20px 28px; vertical-align: top; border-bottom: 1px solid var(--line); }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th { width: 210px; font-weight: 700; color: var(--ink); background: var(--bg-soft); font-size: .93rem; }
.company-table td { color: var(--ink-soft); }
.biz-list { display: flex; flex-direction: column; gap: 6px; }
.biz-list li { position: relative; padding-left: 18px; }
.biz-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-info h3 { font-size: 1.1rem; margin-bottom: 20px; }
.contact-info dt { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; margin-top: 18px; }
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd { color: var(--ink-soft); }
.contact-info dd a { color: var(--blue-dark); font-weight: 600; }
.ph-note { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.req { font-size: .68rem; color: #fff; background: var(--blue); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field textarea { resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.form-note { font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.form-result { margin-top: 16px; font-size: .9rem; font-weight: 600; text-align: center; }
.form-result.ok { color: #0a7d43; }
.form-result.err { color: #e5484d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd8e8; padding-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand .brand-en { color: #fff; font-size: 1.4rem; }
.footer-brand p { margin-top: 6px; font-size: .9rem; }
.footer-addr { color: #8ea1bd; font-size: .82rem !important; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: flex-start; }
.footer-nav a { font-size: .9rem; color: #cdd8e8; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer-bottom small { color: #8ea1bd; font-size: .8rem; }

/* ---------- To-top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; transform: translateY(-120%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .nav-toggle { display: flex; }

  .hero { padding: 128px 0 80px; }
  .hero-stats { gap: 26px; }
  .hero-stats li + li { padding-left: 26px; }
  .section { padding: 72px 0; }
  .flow { grid-template-columns: 1fr; }
  .company-table th { width: 130px; padding: 16px; font-size: .84rem; }
  .company-table td { padding: 16px; }
  .cta-inner { padding: 48px 0; }
}

@media (max-width: 420px) {
  .brand-ja { display: none; }
  .hero-stats li + li { padding-left: 0; border-left: 0; }
}
