@import url("https://fonts.googleapis.com/css2?family=DotGothic16&display=swap");

:root {
  --text: #111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #1d4ed8;
  --bg: #ffffff;
  --max-width: 680px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
}

.page {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo img {
  height: 22px;
  width: auto;
}

.hamburger {
  width: 40px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger__lines {
  width: 18px;
  height: 12px;
  display: grid;
  align-content: space-between;
}

.hamburger__lines span {
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.content {
  padding: 14px;
}

.sc-1haexwf-0.dIKcBc {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 6px 0 12px;
}

.sc-1haexwf-11.grpPCu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin: 0 0 12px;
}

.sc-1haexwf-11.grpPCu img {
  height: 22px;
  width: auto;
}

.article {
  font-size: 16px;
}

.article h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 18px 0 12px;
  font-weight: 800;
}

.article p {
  margin: 0 0 14px;
}

.article figure {
  margin: 14px 0;
}

.article figure img {
  max-width: 70%;
  margin: 0 auto;
}

.article figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.sc-seff6s-0.ckdfxO {
  margin: 22px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: rgb(148, 148, 148);
  font-weight: normal;
}

.footer-spacer {
  height: 24px;
}

@media (min-width: 900px) {
  body {
    background: #f6f7f8;
  }

  .page {
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  }
}

/* =========================================================
   Keyword marker（白背景前提の蛍光ハイライト）
   ========================================================= */
.keyword-marker {
  /*
    theme
    - default: light background (白背景想定)
    - on-dark: dark background (黒背景想定)
  */
  --km-text: rgba(18, 16, 14, 0.9);
  /* “核”の面（蛍光っぽい黄〜黄緑寄りに） */
  --km-core-1: rgba(255, 255, 190, 0.92);
  --km-core-2: rgba(220, 255, 90, 0.62);
  --km-halo-white: rgba(255, 255, 255, 0.32);
  --km-halo-gold: rgba(220, 255, 90, 0.92);
  /* 白背景でも見えるよう、黄発光はかなり強め */
  --km-glow-gold: rgba(220, 255, 90, 0.95);
  /* light では少し影を足す / dark では消す */
  --km-drop-shadow: rgba(0, 0, 0, 0.05);

  /* 形状 */
  --km-radius: 0.08em;

  /* 白背景で「薄い」を避けるための塗り（ハイライトのベタ面） */
  --km-fill: rgba(235, 255, 70, 0.38);

  /* 外側オーラ（::after）用。on-dark でまとめて調整できるよう変数化 */
  --km-outer-white: rgba(255, 255, 255, 0.28);
  --km-outer-gold: rgba(235, 255, 70, 1);
  --km-outer-blur: 28px;

  position: relative;
  display: inline-block;
  vertical-align: baseline;

  /* 余白を増やす（ハイライトっぽさ） */
  padding: 0.34em 1.08em;
  margin: 0 0.16em;

  color: var(--km-text);
  font-family: "DotGothic16", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.25;

  /* 本体は“発光の核”だけ薄く存在させ、境界は作らない */
  background:
    radial-gradient(120% 220% at 50% 35%, var(--km-core-1) 0%, var(--km-core-2) 56%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(0deg, var(--km-fill), var(--km-fill));
  border: 0;
  /* pill(999px) だと形の主張が出やすいので、角丸はかなり弱めに */
  border-radius: var(--km-radius);

  box-shadow:
    0 10px 18px var(--km-drop-shadow),
    inset 0 0 1.35em rgba(220, 255, 90, 0.32),
    inset 0 0 3.4em rgba(255, 255, 230, 0.24),
    0 0 22px rgba(255, 255, 255, 0.22),
    0 0 160px var(--km-glow-gold),
    0 0 360px rgba(235, 255, 70, 0.86);

  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.25),
    0 0 34px var(--km-glow-gold),
    0 0 90px rgba(235, 255, 70, 0.92);

  /* “蛍光”っぽさの押し出し */
  filter: saturate(1.25) contrast(1.05);

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.keyword-marker::before {
  position: absolute;
  inset: -0.62em -0.95em;
  z-index: -1;
  content: "";
  background:
    radial-gradient(closest-side, var(--km-halo-white), rgba(255, 255, 255, 0) 72%),
    radial-gradient(closest-side, var(--km-halo-gold), rgba(235, 255, 70, 0) 70%);
  filter: blur(22px);
  opacity: 1;
  transform: scale(0.98);
  pointer-events: none;

  animation: keyword-marker-aura 3.2s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* 追加の“外側オーラ”層（白背景でも存在感が出るように強化） */
.keyword-marker::after {
  position: absolute;
  inset: -1.15em -1.55em;
  z-index: -2;
  content: "";
  background:
    radial-gradient(closest-side, var(--km-outer-white), rgba(255, 255, 255, 0) 68%),
    radial-gradient(closest-side, var(--km-outer-gold), rgba(235, 255, 70, 0) 68%);
  filter: blur(calc(var(--km-outer-blur) + 8px));
  opacity: 1;
  transform: scale(1);
  pointer-events: none;

  animation: keyword-marker-aura 3.2s ease-in-out infinite;
  animation-delay: 1.05s;
}

@keyframes keyword-marker-aura {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* 明示的にダーク/ライトで最適化したい場合の補助（任意） */
.keyword-marker.on-dark {
  --km-text: rgba(255, 255, 255, 0.94);
  --km-core-1: rgba(255, 255, 190, 0.34);
  --km-core-2: rgba(220, 255, 90, 0.22);
  --km-halo-white: rgba(255, 255, 255, 0.36);
  --km-halo-gold: rgba(220, 255, 90, 0.92);
  --km-glow-gold: rgba(220, 255, 90, 0.9);
  --km-drop-shadow: rgba(0, 0, 0, 0);

  /* on-dark は背景側に光が溶けるので、外側オーラも少し強め */
  --km-outer-white: rgba(255, 255, 255, 0.44);
  --km-outer-gold: rgba(235, 255, 70, 1);
  --km-outer-blur: 38px;
}

@media (prefers-reduced-motion: reduce) {
  .keyword-marker::before,
  .keyword-marker::after {
    animation: none;
  }
}
