/* ============================================================
   Chaintope — Fonts
   FLAGGED SUBSTITUTION: the original Chaintope brand fonts were
   not provided. These are open-source Google Fonts chosen to
   match the brand character:
   - Jost      : geometric sans echoing the geometric chaintope
                 wordmark (perfectly round o's, single-story a).
   - IBM Plex Sans / JP : neutral, trustworthy UI + body face with
                 full Japanese coverage (the company is bilingual JP/EN).
   - IBM Plex Mono : hashes, addresses, code, ledger data.
   IBM Plex is open-source — fitting for an open-source blockchain
   company. Replace with the official brand fonts when available.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+JP:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Chaintope Design System: docs/upstream/60_design_system/chaintope-design-system/tokens/
   CSS のトークン定義を元ファイルから取り込む。 */

/* colors.css */
/* ============================================================
   Chaintope — Color tokens
   Key color is the logo green. Base is white. The system leans
   on a clean white canvas, a confident brand green, and a deep
   slate-green ink for text — an "environmental + trustworthy" feel.
   ============================================================ */
:root {
  /* --- Brand greens (the key color family) --- */
  --green-700: #00712d;   /* deepest, pressed states */
  --green-600: #00913a;   /* PRIMARY brand green (logo) */
  --green-500: #1eaa39;   /* bright logo facet, accents */
  --green-400: #40ad6b;   /* soft green */
  --green-300: #8fd6a8;   /* tints */
  --green-200: #c6ebd2;
  --green-100: #e7f6ec;   /* faint green wash */
  --green-50:  #f3faf5;   /* near-white green tint */

  /* --- Slate-green ink (the dark logo color = primary text) --- */
  --ink-900: #1d2b23;     /* darkest heading ink */
  --ink-800: #30483a;     /* PRIMARY ink (logo dark) */
  --ink-700: #3d5346;
  --ink-600: #556b5e;
  --ink-500: #64766b;     /* muted text */
  --ink-400: #8a988f;     /* disabled / placeholder */

  /* --- Neutrals (warm-cool greys, base white) --- */
  --white:    #ffffff;
  --paper:    #fbfcfb;    /* off-white page */
  --mist:     #f4f6f5;    /* subtle surface */
  --cloud:    #eef1ef;    /* card alt / hover */
  --line:     #e2e7e4;    /* hairline borders */
  --line-strong: #cbd4ce;
  --slate-300: #b1bab5;
  --slate-200: #cbd1ce;

  /* --- Tapyrus product accents (blockchain product) --- */
  --tapyrus-blue: #1660a8;
  --tapyrus-blue-700: #114c84;
  --tapyrus-cyan: #00a9c8;
  --tapyrus-cyan-100: #d6f3f9;

  /* --- Semantic status --- */
  --success: #00913a;
  --success-bg: #e7f6ec;
  --warning: #c97a16;
  --warning-bg: #fbf0dd;
  --danger:  #c83737;
  --danger-bg: #fbe7e7;
  --info: #1660a8;
  --info-bg: #e6eff6;

  /* ===========================================================
     Semantic aliases — reference these in components
     =========================================================== */
  --bg-page: var(--paper);
  --bg-canvas: var(--white);
  --surface-card: var(--white);
  --surface-subtle: var(--mist);
  --surface-sunken: var(--cloud);
  --surface-brand: var(--green-600);
  --surface-brand-soft: var(--green-100);

  --text-strong: var(--ink-900);
  --text-body: var(--ink-800);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-400);
  --text-on-brand: var(--white);
  --text-brand: var(--green-600);
  --text-link: var(--green-700);

  --border-subtle: var(--line);
  --border-default: var(--line-strong);
  --border-brand: var(--green-600);

  --accent: var(--green-600);
  --accent-hover: var(--green-700);
  --accent-soft: var(--green-100);
  --focus-ring: color-mix(in srgb, var(--green-500) 55%, transparent);
}


/* typography.css */
/* ============================================================
   Chaintope — Typography tokens
   Display: Jost (geometric, brand wordmark character)
   Body/UI: IBM Plex Sans (+ JP fallback for Japanese)
   Mono:    IBM Plex Mono (hashes, addresses, ledger data)
   ============================================================ */
:root {
  --font-display: 'Jost', 'IBM Plex Sans JP', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', 'IBM Plex Sans JP', system-ui, -apple-system, sans-serif;
  --font-jp: 'IBM Plex Sans JP', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Type scale — 1.250 major-third-ish, tuned for clean decks + dense docs */
  --text-3xs: 0.6875rem;  /* 11px — dense table meta */
  --text-2xs: 0.75rem;    /* 12px — labels, captions */
  --text-xs:  0.8125rem;  /* 13px — dense UI */
  --text-sm:  0.875rem;   /* 14px — secondary body */
  --text-base: 1rem;      /* 16px — body */
  --text-md:  1.125rem;   /* 18px — lead body */
  --text-lg:  1.375rem;   /* 22px — card titles */
  --text-xl:  1.75rem;    /* 28px — section heads */
  --text-2xl: 2.25rem;    /* 36px — page titles */
  --text-3xl: 3rem;       /* 48px — hero */
  --text-4xl: 4rem;       /* 64px — display */
  --text-5xl: 5.5rem;     /* 88px — slide hero */

  /* Weights */
  --fw-light: 300;      /* @kind font */
  --fw-regular: 400;    /* @kind font */
  --fw-medium: 500;     /* @kind font */
  --fw-semibold: 600;   /* @kind font */
  --fw-bold: 700;       /* @kind font */

  /* Line heights */
  --lh-tight: 1.1;      /* @kind other */
  --lh-snug: 1.25;      /* @kind other */
  --lh-normal: 1.5;     /* @kind other */
  --lh-relaxed: 1.65;   /* @kind other */

  /* Letter spacing */
  --ls-tight: -0.02em;  /* @kind other */
  --ls-snug: -0.01em;   /* @kind other */
  --ls-normal: 0;       /* @kind other */
  --ls-wide: 0.04em;    /* @kind other */
  --ls-caps: 0.12em;    /* @kind other */
}


/* layout.css */
/* ============================================================
   Chaintope — Spacing, radius, shadow, layout tokens
   Clean 4px base grid. Generous whitespace for marketing/clean
   surfaces; tight steps available for information-dense internal
   documents and data tables.
   ============================================================ */
:root {
  /* Spacing — 4px base */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */
  --space-10: 8rem;     /* 128 */

  /* Radius — clean, lightly rounded; never pill-y for surfaces */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Borders */
  --border-width: 1px;
  --border-width-strong: 1.5px;

  /* Shadows — soft, green-tinted, low-spread. Trust over drama. */
  --shadow-xs: 0 1px 2px rgba(29, 43, 35, 0.06);
  --shadow-sm: 0 1px 3px rgba(29, 43, 35, 0.08), 0 1px 2px rgba(29, 43, 35, 0.04);
  --shadow-md: 0 4px 12px rgba(29, 43, 35, 0.08), 0 2px 4px rgba(29, 43, 35, 0.05);
  --shadow-lg: 0 12px 28px rgba(29, 43, 35, 0.10), 0 4px 10px rgba(29, 43, 35, 0.05);
  --shadow-xl: 0 24px 56px rgba(29, 43, 35, 0.14);
  --shadow-brand: 0 8px 24px rgba(0, 145, 58, 0.22);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  /* Layout */
  --container-sm: 640px;
  --container-md: 880px;
  --container-lg: 1120px;
  --container-xl: 1320px;
  --header-h: 72px;

  /* Motion — calm, confident; no bounce */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --dur-fast: 120ms;   /* @kind other */
  --dur-base: 200ms;   /* @kind other */
  --dur-slow: 320ms;   /* @kind other */
}
