@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* ==========================================================================
   OmniView Ads — Legal pages
   特定商取引法表記 / プライバシーポリシー / 情報セキュリティ基本方針 / 利用規約
   Matches the LP design system (financial / security SaaS):
   navy base, confident blue brand, mist neutrals, tabular numerals.
   Placeholder text (__記入__) is highlighted in yellow until finalised.
   ========================================================================== */

:root {
  --brand: #2563EB;
  --brand-600: #1D4ED8;
  --brand-050: #EAF1FE;
  --navy-900: #0A1A2F;

  --ink: #0E2036;
  --ink-2: #33445B;
  --muted: #5E708A;
  --muted-2: #8496AE;
  --on-dark-muted: #9DB2CC;

  --paper: #FFFFFF;
  --mist: #F5F8FC;
  --mist-2: #EDF2F8;
  --line: #E4EAF2;
  --line-2: #D5DEEA;

  /* placeholder highlight — soft yellow */
  --hl: #FDE68A;
  --hl-ink: #7A5300;

  --radius: 14px;
  --radius-sm: 10px;

  --font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; color: var(--ink); }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.lgl-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lgl-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { height: 28px; width: auto; flex-shrink: 0; display: block; object-fit: contain; }
.brand .v { color: var(--brand); }
.lgl-back {
  font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.lgl-back:hover { color: var(--brand-600); text-decoration: none; }

/* ---------- Page hero ---------- */
.lgl-hero {
  background: linear-gradient(180deg, var(--mist), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 54px 0 42px;
}
.lgl-hero .eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-050);
  padding: 5px 12px; border-radius: 999px;
}
.lgl-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem); font-weight: 800; letter-spacing: -.01em;
  line-height: 1.35; color: var(--ink);
}
.lgl-hero .meta { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Body ---------- */
main { padding: 46px 0 72px; }
main .wrap { max-width: 820px; }

.lead {
  margin: 0 0 12px;
  padding: 18px 20px;
  font-size: 1.0rem; line-height: 2; color: var(--ink-2);
  background: var(--mist);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

h2 {
  margin: 46px 0 16px;
  padding-bottom: 10px;
  font-size: 1.16rem; font-weight: 700; line-height: 1.5; color: var(--ink);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
h3 { margin: 30px 0 10px; font-size: 1.02rem; font-weight: 700; color: var(--ink); }

p { margin: 0 0 16px; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

/* Lists — custom markers to match the brand */
ul, ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
li { position: relative; padding-left: 22px; margin: 0 0 10px; color: var(--ink-2); }
li:last-child { margin-bottom: 0; }
ul li::before {
  content: ""; position: absolute; left: 5px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
ol { counter-reset: ol; }
ol li { counter-increment: ol; }
ol li::before {
  content: counter(ol) "."; position: absolute; left: 0; top: 0;
  color: var(--brand-600); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Definition tables */
.deftable {
  width: 100%; border-collapse: collapse;
  margin: 10px 0 26px; font-size: .94rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.deftable th, .deftable td {
  text-align: left; vertical-align: top; padding: 14px 16px;
  border-bottom: 1px solid var(--line); line-height: 1.8;
}
.deftable tr:last-child th, .deftable tr:last-child td { border-bottom: 0; }
.deftable th {
  width: 36%; background: var(--mist); color: var(--ink); font-weight: 700;
}
.deftable td { color: var(--ink-2); }

/* Placeholder highlight (remove once finalised) */
.ph {
  background: var(--hl); color: var(--hl-ink); font-weight: 700;
  padding: 1px 6px; border-radius: 4px; font-size: .92em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Editorial note */
.note {
  margin: 34px 0 0; padding: 14px 18px;
  background: var(--mist-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--muted);
}

/* ---------- Footer ---------- */
.lgl-footer {
  background: var(--navy-900); color: var(--on-dark-muted);
  padding: 42px 0 34px; margin-top: 28px;
}
.lgl-footer nav {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding-bottom: 20px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.lgl-footer nav a { font-size: .88rem; color: var(--on-dark-muted); }
.lgl-footer nav a:hover { color: #fff; text-decoration: none; }
.lgl-footer .cpy { font-size: .8rem; color: var(--muted-2); }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .lgl-hero { padding: 40px 0 32px; }
  main { padding: 36px 0 60px; }
  h2 { margin-top: 38px; }

  /* stack the definition tables so long labels never get crushed */
  .deftable, .deftable tbody, .deftable tr, .deftable th, .deftable td { display: block; width: 100%; }
  .deftable tr { border-bottom: 1px solid var(--line); }
  .deftable tr:last-child { border-bottom: 0; }
  .deftable th {
    padding: 12px 14px 0; background: transparent; border-bottom: 0;
    font-size: .8rem; color: var(--muted);
  }
  .deftable td { padding: 4px 14px 14px; }
}

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