/* =========================================================
   エリオット株式会社 コーポレートサイト 共通スタイル
   固定ページ（src/public）と Django アプリ（src/app）で共用
   ========================================================= */

:root {
  --c-navy: #0b1f3a;
  --c-navy-2: #132c52;
  --c-primary: #1d5bd8;
  --c-primary-d: #1546a8;
  --c-accent: #19b6c9;
  --c-text: #1f2937;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fc;
  --c-danger: #d93a3a;
  --c-success: #12965a;

  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
  --shadow-h: 0 16px 40px rgba(11, 31, 58, .14);
  --container: 1120px;
  --header-h: 72px;

  --ff: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --ff-en: "Inter", "Segoe UI", "Helvetica Neue", Arial, var(--ff);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; color: var(--c-navy); }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-navy); color: #fff; padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 4px 20px rgba(11, 31, 58, .06); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--c-navy); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-family: var(--ff-en); font-weight: 800; font-size: 18px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-family: var(--ff-en); font-size: 11px; letter-spacing: .12em; color: var(--c-muted); font-weight: 600; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--c-text); font-size: 14px; font-weight: 600;
}
.global-nav a:hover { background: var(--c-bg-soft); text-decoration: none; }
.global-nav a[aria-current="page"] { color: var(--c-primary); }
.global-nav .nav-cta a { background: var(--c-primary); color: #fff; padding: 9px 20px; margin-left: 8px; }
.global-nav .nav-cta a:hover { background: var(--c-primary-d); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--c-navy);
  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; }
  .global-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .global-nav { transform: none; opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .global-nav a { border-radius: var(--radius-s); padding: 12px 14px; font-size: 15px; }
  .global-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(25, 182, 201, .35), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(29, 91, 216, .45), transparent 60%),
              var(--c-navy);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-family: var(--ff-en); font-size: 13px; letter-spacing: .2em; font-weight: 700;
  color: var(--c-accent); margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); font-weight: 800; letter-spacing: .02em; margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #7fd6ff, var(--c-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero (下層ページ) */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 182, 201, .45), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero .en { font-family: var(--ff-en); font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--c-accent); }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 6px 0 8px; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 0; }

.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px rgba(29, 91, 216, .3); }
.btn-primary:hover { background: var(--c-primary-d); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--c-line); color: var(--c-text); background: #fff; }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Section ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .en { display: block; font-family: var(--ff-en); font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { color: var(--c-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Card */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: rgba(29, 91, 216, .35); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: 15px; }
.card .more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--c-primary); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(29, 91, 216, .12), rgba(25, 182, 201, .18));
  color: var(--c-primary);
}
.card-icon svg { width: 26px; height: 26px; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 32px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 20px; height: 20px; 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Strength / numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); }
.stat .num { font-family: var(--ff-en); font-size: 40px; font-weight: 800; color: var(--c-navy); line-height: 1.1; }
.stat .num small { font-size: 16px; margin-left: 2px; }
.stat .label { color: var(--c-muted); font-size: 14px; margin-top: 6px; }

/* ---------- Content (下層ページ本文) ---------- */
.content-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; gap: 24px; } }

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--c-bg-soft); border-radius: var(--radius); padding: 22px 20px;
}
.toc-title { font-size: 12px; font-family: var(--ff-en); letter-spacing: .16em; font-weight: 700; color: var(--c-muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--c-text); font-size: 14px; line-height: 1.5;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--ff-en); font-weight: 700; color: var(--c-primary); font-size: 12px; padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: #fff; text-decoration: none; }
@media (max-width: 900px) { .toc { position: static; } }

.article > section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--c-line); }
.article > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.article h2 {
  font-size: clamp(21px, 2.6vw, 26px); padding-left: 16px; margin-bottom: 20px; position: relative;
}
.article h2::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--c-primary), var(--c-accent));
}
.article h3 { font-size: 18px; margin-top: 28px; }

.note {
  background: var(--c-bg-soft); border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; font-size: 14px; color: var(--c-muted);
}

/* Definition table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.def-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.def-table th, .def-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--c-line); }
.def-table th { width: 28%; min-width: 120px; background: var(--c-bg-soft); font-weight: 700; color: var(--c-navy); white-space: nowrap; }
.def-table tr:first-child th, .def-table tr:first-child td { border-top: 1px solid var(--c-line); }
.def-table ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 600px) {
  .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { border-bottom: 0; padding-bottom: 8px; }
  .def-table td { padding-top: 10px; }
  .def-table tr:first-child td { border-top: 0; }
}

/* Case card (参考費用) */
.case {
  border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.case-head {
  padding: 28px 32px; background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2)); color: #fff;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.case-head .tag { font-family: var(--ff-en); font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--c-accent); }
.case-head h2 { color: #fff; margin: 4px 0 0; padding: 0; font-size: 22px; }
.case-head h2::before { display: none; }
.case-price { text-align: right; }
.case-price .label { font-size: 12px; color: rgba(255, 255, 255, .7); }
.case-price .value { font-family: var(--ff-en); font-size: 32px; font-weight: 800; line-height: 1.1; }
.case-price .value small { font-size: 15px; margin-left: 2px; font-family: var(--ff); }
.case-body { padding: 28px 32px; }
.case-body > p { color: var(--c-muted); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: rgba(29, 91, 216, .08); color: var(--c-primary);
}
@media (max-width: 600px) {
  .case-head, .case-body { padding: 22px 20px; }
  .case-price { text-align: left; }
}

/* Link list */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.link-list a {
  display: block; padding: 18px 22px; border: 1px solid var(--c-line); border-radius: var(--radius-s);
  color: inherit; transition: border-color .2s, box-shadow .2s;
}
.link-list a:hover { text-decoration: none; border-color: var(--c-primary); box-shadow: var(--shadow); }
.link-list .ttl { font-weight: 700; color: var(--c-navy); display: flex; align-items: center; gap: 6px; }
.link-list .ttl::after { content: "↗"; font-size: 13px; color: var(--c-primary); }
.link-list .desc { font-size: 14px; color: var(--c-muted); margin-top: 4px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--c-primary), var(--c-accent));
  color: #fff; border-radius: 24px; padding: clamp(40px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: 0 20px 50px rgba(29, 91, 216, .28);
}
.cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta .btn { background: #fff; color: var(--c-primary); box-shadow: none; }
.cta .btn:hover { background: var(--c-navy); color: #fff; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-row { margin-bottom: 24px; }
.form-row label, .form-row .label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; color: var(--c-navy); }
.badge-req, .badge-opt { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; line-height: 1.6; }
.badge-req { background: var(--c-danger); color: #fff; }
.badge-opt { background: var(--c-line); color: var(--c-muted); }
.form-control {
  width: 100%; font: inherit; font-size: 16px; color: var(--c-text);
  padding: 13px 16px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(29, 91, 216, .15); }
textarea.form-control { min-height: 200px; resize: vertical; line-height: 1.7; }
select.form-control {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.form-row.has-error .form-control { border-color: var(--c-danger); }
.field-error { color: var(--c-danger); font-size: 14px; margin: 6px 0 0; }
.help { color: var(--c-muted); font-size: 13px; margin: 6px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-s); padding: 14px 18px; margin-bottom: 24px; font-size: 15px; }
.alert-error { background: #fdeeee; color: #a42323; border: 1px solid #f6caca; }
.alert-info { background: #eef4ff; color: var(--c-primary-d); border: 1px solid #cddcfb; }

.steps { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 0 auto 40px; max-width: 560px; counter-reset: step; }
.steps li { flex: 1; text-align: center; position: relative; font-size: 13px; font-weight: 700; color: var(--c-muted); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 8px;
  border-radius: 50%; background: var(--c-line); color: var(--c-muted); font-family: var(--ff-en); position: relative; z-index: 1;
}
.steps li + li::after { content: ""; position: absolute; top: 18px; right: 50%; width: 100%; height: 2px; background: var(--c-line); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--c-primary); color: #fff; }
.steps li.is-current { color: var(--c-primary); }
.steps li.is-done + li::after, .steps li.is-done + li.is-current::after { background: var(--c-primary); }

.confirm-table td { white-space: pre-wrap; word-break: break-word; }

.complete { text-align: center; padding: 24px 0; }
.complete-icon {
  width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(18, 150, 90, .12); color: var(--c-success);
}
.complete-icon svg { width: 40px; height: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo-text small { color: rgba(255, 255, 255, .5); }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 14px; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .5); font-family: var(--ff-en); }

.page-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-navy); color: #fff; box-shadow: var(--shadow-h);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.page-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.page-top svg { width: 20px; height: 20px; }

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

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: 48px; }
.muted { color: var(--c-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
