/* ============================================
   ACCELLA Inc. — Renewal 2026
   Apple-minimal base × SaaS cards (mock4)
   ============================================ */

:root {
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --accent: #0066e0;
  --border: #e5e5ea;
  --font: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1040px, 90%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.header-inner {
  width: min(1040px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 16px;
}
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; }
.global-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  color: var(--text-dim);
}
.global-nav a { transition: color .2s; }
.global-nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 130px 20px 110px; }
.hero-eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-bottom: 26px;
}
.hero-lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-links {
  display: flex;
  gap: 34px;
  justify-content: center;
  font-size: 17px;
}
.hero-links a { color: var(--accent); }
.hero-links a:hover { text-decoration: underline; }
.hero-links a::after { content: " ›"; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-dim); }
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 8px;
}

/* ---------- Service cards (SaaS style) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 224, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}
.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.ic-ai  { background: #eef2ff; color: #4f46e5; }
.ic-fin { background: #ecfeff; color: #0891b2; }
.ic-app { background: #eff6ff; color: #2563eb; }
.ic-3d  { background: #ecfdf5; color: #059669; }
.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.card > p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.card ul {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.card li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 5px;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Legacy strip ---------- */
.legacy {
  margin-top: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 46px;
  align-items: baseline;
}
.legacy strong { font-size: 15px; white-space: nowrap; }
.legacy strong small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-dim);
}
.legacy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--text-dim);
}
.legacy li::before { content: "· "; color: var(--accent); font-weight: 700; }

/* ---------- Strengths ---------- */
.strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px 36px;
}
.strength span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
}
.strength h3 { font-size: 18px; font-weight: 600; margin: 8px 0 10px; }
.strength p { font-size: 14px; color: var(--text-dim); }

/* ---------- Company ---------- */
.company-table {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 38px;
}
.company-table > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.company-table > div:last-child { border-bottom: 0; }
.company-table dt {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dim);
}
.company-table dd { font-size: 15px; }

/* ---------- Timeline ---------- */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline li { position: relative; padding-bottom: 42px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.timeline-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
}
.timeline-body h3 { font-size: 17px; font-weight: 600; margin: 4px 0 6px; }
.timeline-body p { font-size: 14px; color: var(--text-dim); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn:disabled { opacity: .5; transform: none; cursor: default; }
.btn-primary { background: var(--accent); }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 38px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.required {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  vertical-align: 1px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b6b6bd; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 224, .15);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.form-field textarea { resize: vertical; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.contact-form .btn { display: block; width: 100%; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 44px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 15px; }
.footer-brand small {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-dim);
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-nav a:hover { color: var(--text); }
.copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; z-index: 110; }
  .global-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    font-size: 18px;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .global-nav.open { opacity: 1; pointer-events: auto; }

  .section { padding: 70px 0; }
  .hero { padding: 90px 20px 80px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .legacy { flex-direction: column; padding: 26px; }
  .company-table { padding: 6px 24px; }
  .company-table > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
