/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 100vw;
  --logo-height: 34px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


.light, :root {
  --accent-1: #fbfdff;
  --accent-2: #f3faff;
  --accent-3: #e6f3ff;
  --accent-4: #d6ecff;
  --accent-5: #c5e2ff;
  --accent-6: #aed5ff;
  --accent-7: #90c3ff;
  --accent-8: #65a9ff;
  --accent-9: #004293;
  --accent-10: #1854a6;
  --accent-11: #1e6fdc;
  --accent-12: #002c7c;

  --accent-a1: #0080ff04;
  --accent-a2: #0095ff0c;
  --accent-a3: #0085ff19;
  --accent-a4: #0089ff29;
  --accent-a5: #0080ff3a;
  --accent-a6: #007bff51;
  --accent-a7: #0076ff6f;
  --accent-a8: #0071ff9a;
  --accent-a9: #004293;
  --accent-a10: #00429de7;
  --accent-a11: #005cd7e1;
  --accent-a12: #002c7c;

  --accent-contrast: #fff;
  --accent-surface: #f0f9ffcc;
  --accent-indicator: #004293;
  --accent-track: #004293;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.3% 0.005 257.9);
      --accent-2: oklch(98.2% 0.0145 257.9);
      --accent-3: oklch(96% 0.0301 257.9);
      --accent-4: oklch(93.7% 0.0562 257.9);
      --accent-5: oklch(90.6% 0.081 257.9);
      --accent-6: oklch(86.4% 0.1039 257.9);
      --accent-7: oklch(80.9% 0.1339 257.9);
      --accent-8: oklch(73.5% 0.1834 257.9);
      --accent-9: oklch(39.7% 0.1462 257.9);
      --accent-10: oklch(45.7% 0.1462 257.9);
      --accent-11: oklch(55.8% 0.1834 257.9);
      --accent-12: oklch(32.4% 0.1462 257.9);

      --accent-a1: color(display-p3 0.0235 0.5137 1 / 0.016);
      --accent-a2: color(display-p3 0.0196 0.5569 0.9137 / 0.044);
      --accent-a3: color(display-p3 0.0118 0.4863 0.9608 / 0.091);
      --accent-a4: color(display-p3 0.0078 0.4667 0.949 / 0.146);
      --accent-a5: color(display-p3 0.0039 0.4235 0.9451 / 0.204);
      --accent-a6: color(display-p3 0.0039 0.4157 0.949 / 0.287);
      --accent-a7: color(display-p3 0.0039 0.3922 0.9529 / 0.393);
      --accent-a8: color(display-p3 0 0.3647 0.949 / 0.542);
      --accent-a9: color(display-p3 0 0.1725 0.5098 / 0.902);
      --accent-a10: color(display-p3 0 0.1922 0.5529 / 0.836);
      --accent-a11: color(display-p3 0 0.2667 0.7882 / 0.781);
      --accent-a12: color(display-p3 0 0.1216 0.4353 / 0.946);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.949 0.9725 1 / 0.8);
      --accent-indicator: oklch(39.7% 0.1462 257.9);
      --accent-track: oklch(39.7% 0.1462 257.9);
    }
  }
}


.light, :root {
  --grayscale-1: #fdfcfd;
  --grayscale-2: #faf9fb;
  --grayscale-3: #f2eff3;
  --grayscale-4: #eae7ec;
  --grayscale-5: #e3dfe6;
  --grayscale-6: #dbd8e0;
  --grayscale-7: #d0cdd7;
  --grayscale-8: #bcbac7;
  --grayscale-9: #8e8c99;
  --grayscale-10: #84828e;
  --grayscale-11: #65636d;
  --grayscale-12: #211f26;

  --grayscale-a1: #55005503;
  --grayscale-a2: #2b005506;
  --grayscale-a3: #30004010;
  --grayscale-a4: #20003618;
  --grayscale-a5: #20003820;
  --grayscale-a6: #14003527;
  --grayscale-a7: #10003332;
  --grayscale-a8: #08003145;
  --grayscale-a9: #05001d73;
  --grayscale-a10: #0500197d;
  --grayscale-a11: #0400119c;
  --grayscale-a12: #020008e0;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #8e8c99;
  --grayscale-track: #8e8c99;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.991 0.988 0.992);
      --grayscale-2: color(display-p3 0.98 0.976 0.984);
      --grayscale-3: color(display-p3 0.946 0.938 0.952);
      --grayscale-4: color(display-p3 0.915 0.906 0.925);
      --grayscale-5: color(display-p3 0.886 0.876 0.901);
      --grayscale-6: color(display-p3 0.856 0.846 0.875);
      --grayscale-7: color(display-p3 0.814 0.804 0.84);
      --grayscale-8: color(display-p3 0.735 0.728 0.777);
      --grayscale-9: color(display-p3 0.555 0.549 0.596);
      --grayscale-10: color(display-p3 0.514 0.508 0.552);
      --grayscale-11: color(display-p3 0.395 0.388 0.424);
      --grayscale-12: color(display-p3 0.128 0.122 0.147);

      --grayscale-a1: #55005503;
      --grayscale-a2: #2b005506;
      --grayscale-a3: #30004010;
      --grayscale-a4: #20003618;
      --grayscale-a5: #20003820;
      --grayscale-a6: #14003527;
      --grayscale-a7: #10003332;
      --grayscale-a8: #08003145;
      --grayscale-a9: #05001d73;
      --grayscale-a10: #0500197d;
      --grayscale-a11: #0400119c;
      --grayscale-a12: #020008e0;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.555 0.549 0.596);
      --grayscale-track: color(display-p3 0.555 0.549 0.596);
    }
  }
}


.dark {
  --accent-1: #05161e;
  --accent-2: #071c26;
  --accent-3: #002b40;
  --accent-4: #003956;
  --accent-5: #004769;
  --accent-6: #00577e;
  --accent-7: #006a96;
  --accent-8: #0080b4;
  --accent-9: #59cbff;
  --accent-10: #4dc0f4;
  --accent-11: #57c9fd;
  --accent-12: #bbf1ff;

  --accent-a1: #0054f708;
  --accent-a2: #008cf811;
  --accent-a3: #0094fb2e;
  --accent-a4: #009afd46;
  --accent-a5: #00a3fd5b;
  --accent-a6: #00aafd72;
  --accent-a7: #00b1ff8c;
  --accent-a8: #00b4ffad;
  --accent-a9: #59cbff;
  --accent-a10: #50c8fff3;
  --accent-a11: #58cbfffd;
  --accent-a12: #bbf1ff;

  --accent-contrast: #0a2531;
  --accent-surface: #00243580;
  --accent-indicator: #59cbff;
  --accent-track: #59cbff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(19% 0.0284 231.1);
      --accent-2: oklch(21.6% 0.034 231.1);
      --accent-3: oklch(27.1% 0.0652 231.1);
      --accent-4: oklch(32.1% 0.0854 231.1);
      --accent-5: oklch(37.1% 0.097 231.1);
      --accent-6: oklch(42.5% 0.1068 231.1);
      --accent-7: oklch(48.7% 0.1199 231.1);
      --accent-8: oklch(55.7% 0.1402 231.1);
      --accent-9: oklch(79.7% 0.1261 231.1);
      --accent-10: oklch(76.4% 0.1261 231.1);
      --accent-11: oklch(79.2% 0.1261 231.1);
      --accent-12: oklch(93% 0.0669 231.1);

      --accent-a1: color(display-p3 0 0.3804 0.9961 / 0.026);
      --accent-a2: color(display-p3 0 0.5961 0.9922 / 0.061);
      --accent-a3: color(display-p3 0 0.5882 0.9961 / 0.169);
      --accent-a4: color(display-p3 0.1176 0.6157 1 / 0.263);
      --accent-a5: color(display-p3 0.1765 0.6549 1 / 0.341);
      --accent-a6: color(display-p3 0.2275 0.6784 1 / 0.432);
      --accent-a7: color(display-p3 0.2627 0.702 1 / 0.531);
      --accent-a8: color(display-p3 0.2941 0.7137 1 / 0.656);
      --accent-a9: color(display-p3 0.4824 0.8 1 / 0.979);
      --accent-a10: color(display-p3 0.4588 0.7961 0.9961 / 0.932);
      --accent-a11: color(display-p3 0.4745 0.7961 1 / 0.97);
      --accent-a12: color(display-p3 0.7843 0.9451 1 / 0.992);

      --accent-contrast: #0a2531;
      --accent-surface: color(display-p3 0.0235 0.1412 0.2039 / 0.5);
      --accent-indicator: oklch(79.7% 0.1261 231.1);
      --accent-track: oklch(79.7% 0.1261 231.1);
    }
  }
}


.dark {
  --grayscale-1: #111113;
  --grayscale-2: #18191b;
  --grayscale-3: #212225;
  --grayscale-4: #272a2d;
  --grayscale-5: #2e3135;
  --grayscale-6: #363a3f;
  --grayscale-7: #43484e;
  --grayscale-8: #5a6169;
  --grayscale-9: #696e77;
  --grayscale-10: #777b84;
  --grayscale-11: #b0b4ba;
  --grayscale-12: #edeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #d8f4f609;
  --grayscale-a3: #ddeaf814;
  --grayscale-a4: #d3edf81d;
  --grayscale-a5: #d9edfe25;
  --grayscale-a6: #d6ebfd30;
  --grayscale-a7: #d9edff40;
  --grayscale-a8: #d9edff5d;
  --grayscale-a9: #dfebfd6d;
  --grayscale-a10: #e5edfd7b;
  --grayscale-a11: #f1f7feb5;
  --grayscale-a12: #fcfdffef;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #696e77;
  --grayscale-track: #696e77;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.067 0.067 0.074);
      --grayscale-2: color(display-p3 0.095 0.098 0.105);
      --grayscale-3: color(display-p3 0.13 0.135 0.145);
      --grayscale-4: color(display-p3 0.156 0.163 0.176);
      --grayscale-5: color(display-p3 0.183 0.191 0.206);
      --grayscale-6: color(display-p3 0.215 0.226 0.244);
      --grayscale-7: color(display-p3 0.265 0.28 0.302);
      --grayscale-8: color(display-p3 0.357 0.381 0.409);
      --grayscale-9: color(display-p3 0.415 0.431 0.463);
      --grayscale-10: color(display-p3 0.469 0.483 0.514);
      --grayscale-11: color(display-p3 0.692 0.704 0.728);
      --grayscale-12: color(display-p3 0.93 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #d8f4f609;
      --grayscale-a3: #ddeaf814;
      --grayscale-a4: #d3edf81d;
      --grayscale-a5: #d9edfe25;
      --grayscale-a6: #d6ebfd30;
      --grayscale-a7: #d9edff40;
      --grayscale-a8: #d9edff5d;
      --grayscale-a9: #dfebfd6d;
      --grayscale-a10: #e5edfd7b;
      --grayscale-a11: #f1f7feb5;
      --grayscale-a12: #fcfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.415 0.431 0.463);
      --grayscale-track: color(display-p3 0.415 0.431 0.463);
    }
  }
}

.light, :root {
  color-scheme: light;
  --accent: rgba(0, 66, 147, 1);
  --background: rgba(255, 255, 255, 1);
  --border: rgba(211, 216, 217, 1);
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: rgba(255, 255, 255, 1);
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(89, 203, 255, 1);
  --background: rgba(18, 20, 23, 1);
  --border: rgba(47, 58, 64, 1);
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: rgba(27, 31, 35, 1);
  --theme-color: #121417;
}

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

:root {
  --sp-blue: #004293;
  --sp-sky: #00a0e9;
}
body, .fern-docs, .fern-docs * :not(code):not(pre):not(.font-mono) {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}
code, pre, .font-mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Sidebar section titles like the original portal */
.fern-sidebar-group-title, .fern-sidebar-heading { font-weight: 700; }

/* Hero */
.sp-hero {
  background: linear-gradient(90deg, #c8eeff 0%, #59cbff 55%, #00a0e9 100%);
  padding: 56px 24px 52px;
  margin: -32px calc(50% - 50vw) 0;
  width: 100vw;
}
.sp-hero-inner { max-width: 1100px; margin: 0 auto; }
.sp-badge {
  display: inline-block; background: #fff; border: 1px solid #d3d8d9; border-radius: 6px;
  padding: 4px 10px; font-weight: 700; font-size: 15px; color: #000;
}
.sp-hero h1 { margin: 18px 0 14px; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.2; font-weight: 900; color: #000; letter-spacing: -0.01em; }
.sp-hero p { font-size: clamp(15px, 1.7vw, 20px); font-weight: 700; color: #111; line-height: 1.7; margin: 0; }
.sp-hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.sp-btn {
  display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease;
}
.sp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 66, 147, .25); }
.sp-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 66, 147, .25); }
.sp-btn-primary { background: var(--sp-blue); color: #fff !important; }
.sp-btn-ghost { background: rgba(255, 255, 255, .85); color: var(--sp-blue) !important; border: 1px solid rgba(0, 66, 147, .25); }

.sp-wrap { max-width: 1100px; margin: 0 auto; padding: 8px 24px 64px; }
.sp-lead { font-weight: 700; font-size: 17px; line-height: 1.9; margin: 32px 0 8px; }
.sp-wrap h2 { margin-top: 40px; font-weight: 900; }
.sp-wrap ul { list-style: none; padding-left: 0; margin: 12px 0 0; }
.sp-wrap li { padding: 5px 0; }
.sp-wrap li a::before { content: '▶'; font-size: 9px; margin-right: 8px; color: #555; }
.sp-wrap li a { text-decoration: none; font-weight: 500; }
.sp-wrap li a:hover { text-decoration: underline; }
.sp-wrap li a:focus-visible { text-decoration: underline; }

/* Cards */
.fern-card { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); border-radius: 6px; transition: box-shadow .2s ease, transform .2s ease; }
.fern-card:hover { box-shadow: 0 8px 22px rgba(0, 66, 147, .18); transform: translateY(-2px); }
.fern-card:focus-visible { box-shadow: 0 8px 22px rgba(0, 66, 147, .18); transform: translateY(-2px); }

/* Tables: keep wide spec tables scrollable, with sticky-looking header */
.prose table, .fern-prose table { font-size: 13.5px; }
.prose thead th, .fern-prose thead th { background: #f5f5f5; white-space: nowrap; }
.prose td, .prose th, .fern-prose td, .fern-prose th { vertical-align: top; }

/* Images (Fern wraps them in zoom spans) */
[data-rmiz] img { border: 1px solid #d3d8d9; border-radius: 6px; background: #fff; }
@media (max-width: 640px) {
 .sp-hero { padding: 36px 16px; } .sp-wrap { padding: 8px 16px 48px; } 
}

/* ---- Dark mode ---- */
/* ヒーローは、ブランドの水色のバナーとして、ライトと同じ見た目のままにする（文字は黒）。 */
.dark .sp-wrap li a::before { color: #9aa7ad; }
.dark .prose thead th, .dark .fern-prose thead th { background: #232a30; }
.dark .fern-card { box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.dark .fern-card:hover { box-shadow: 0 8px 22px rgba(89, 203, 255, .18); }
.dark .fern-card:focus-visible { box-shadow: 0 8px 22px rgba(89, 203, 255, .18); }
/* ロゴの画像は背景が白（透過なし）なので、ダークでは白い角丸の板の上に載せる。 */
.dark [data-fern-logo] img {
  background: #fff; padding: 4px 8px; border-radius: 6px;
}
/* 画像（スクリーンショット・遷移図）は、白い背景のまま枠を付けて表示する。 */
.dark [data-rmiz] img { border-color: #2f3a40; }
