/* ── relmea / shared page styles ─────────────────────────────
   Used by all sub-pages under /pages/.
   Keeps relmea.html's TOP look — tokens, type, header, footer, buttons.
─────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-tint: #eef4ff;
  --ink: #0b1426;
  --ink-2: #3b485c;
  --ink-3: #6b7790;
  --line: #e5e8ee;
  --line-2: #eef0f4;
  --accent: #1a73e8;
  --accent-dark: #1558b8;
  --accent-soft: #e8f0fd;
  --warn: #d93025;
  --ok: #137333;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --shadow-soft: 0 1px 2px rgba(11,20,38,.04), 0 8px 24px rgba(11,20,38,.05);
  --shadow-cta: 0 8px 24px rgba(26,115,232,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-lg { padding: 20px 32px; font-size: 16px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px; letter-spacing: -.02em;
}
.brand-mark {
  width: 28px; height: 28px; display: inline-block; flex-shrink: 0;
}
.nav-main { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-main a:hover { color: var(--ink); }
.nav-main a.is-current { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 880px) { .nav-main { display: none; } }

/* ── Page hero ─────────────────────────────── */
.page-hero {
  padding: 64px 0 56px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-3); margin-bottom: 20px;
}
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs span { color: var(--ink-3); }
.page-hero .crumbs .sep { opacity: .5; }
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.03em;
  margin: 0 0 20px; max-width: 820px;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .lead {
  color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.85; max-width: 720px;
}
.page-hero .meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px;
  font-size: 13px; color: var(--ink-3);
}
.page-hero .meta span::before {
  content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px;
}

/* ── Section base ─────────────────────────── */
section.page-section { padding: 80px 0; }
section.page-section.alt { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.sec-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25; font-weight: 800;
}
.sec-head .lead { color: var(--ink-2); font-size: 15px; line-height: 1.85; }

/* ── Page article (long-form) ─────────────── */
.page-article {
  max-width: 760px; margin: 0 auto;
  font-size: 16px; line-height: 1.9;
}
.page-article > * + * { margin-top: 1.5em; }
.page-article h2 {
  font-size: 24px; font-weight: 800; line-height: 1.4;
  margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line);
}
.page-article h3 {
  font-size: 18px; font-weight: 700; margin-top: 2em;
}
.page-article p { color: var(--ink-2); }
.page-article ul, .page-article ol { padding-left: 1.4em; color: var(--ink-2); }
.page-article ul li, .page-article ol li { margin-bottom: .5em; }
.page-article strong { color: var(--ink); font-weight: 700; }
.page-article a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.page-article a:hover { border-bottom-color: var(--accent); }
.page-article hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

/* Definition table for legal pages */
.def-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.def-table th, .def-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
  text-align: left; vertical-align: top; line-height: 1.75;
}
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: 0; }
.def-table th {
  background: var(--bg-soft); color: var(--ink-2);
  font-weight: 600; width: 28%; min-width: 160px;
}
.def-table td { color: var(--ink-2); }
.def-table td b { color: var(--ink); font-weight: 700; }

/* ── Cards (services, products) ─────────────── */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--ink-3); }
.card .label {
  font-size: 11px; color: var(--accent); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.35; }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.card .price {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.card .price b { color: var(--ink); font-size: 16px; font-weight: 700; }
.card .more {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; margin-top: 4px;
}
.card .more:hover { background: var(--accent); }

/* ── Feature list (bullets) ─────────────── */
.feat-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; line-height: 1.7; color: var(--ink-2);
}
.feat-list li::before {
  content: "✓"; color: var(--accent); font-weight: 700;
  background: var(--bg); border: 1px solid var(--accent);
  border-radius: 99px; width: 24px; height: 24px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.feat-list li b { color: var(--ink); font-weight: 700; }

/* ── Final CTA card ─────────────── */
.final-cta-card {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: 56px 32px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.final-cta-card h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; line-height: 1.25; margin-bottom: 16px;
}
.final-cta-card .lead {
  color: var(--ink-2); font-size: 15.5px; line-height: 1.85;
  max-width: 520px; margin: 0 auto 28px;
}
.final-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final-cta-meta {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  margin-top: 28px; font-size: 13px; color: var(--ink-3);
}
.final-cta-meta span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 4px; }

/* ── Footer ─────────────── */
footer.site-footer {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.foot-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); }
.foot-brand p { font-size: 13px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; max-width: 280px; }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--ink-3);
}
