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

:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #d7d7d7;
  --color-accent: #7a6718;
  --color-speaker: #008a2e;
  --color-footer: #1d1d1d;
  --content-width: 560px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

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

.site-header {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 18px 14px 12px;
  border-bottom: 1px solid var(--color-border);
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  color: #111;
  text-decoration: none;
  line-height: 0.86;
  letter-spacing: 0.04em;
}

.site-logo__main {
  color: #6c6125;
  font-size: 1.45rem;
  font-weight: 900;
}

.site-logo__sub {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.article {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 14px 56px;
}

.article-title {
  margin: 16px 0 12px;
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-meta {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-author {
  margin: 0 0 2px;
  color: #1e48b5;
  font-weight: 500;
}

.lead {
  margin-top: 20px;
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.95;
}

.lead p,
.question,
.answer p,
.closing-text p {
  margin: 0 0 1.35em;
}

.article-photo {
  margin: 34px 0 42px;
}

.article-photo img,
.mock-profile {
  width: 100%;
  border: 1px solid #cfd6dd;
  background: #fff;
}

.article-photo figcaption {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.mock-profile {
  overflow: hidden;
  border-radius: 2px;
}

.mock-profile__cover {
  height: 112px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.04)),
    #1f2937;
}

.mock-profile__body {
  position: relative;
  padding: 48px 18px 20px;
}

.mock-profile__avatar {
  position: absolute;
  top: -38px;
  left: 18px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
}

.mock-profile__name {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.mock-profile__id {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.mock-profile__text {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.interview-section {
  margin-top: 42px;
}

.section-heading {
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid #b4aa78;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.question {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.9;
}

.answer {
  margin: 0 0 30px;
  font-size: 1.02rem;
  line-height: 1.95;
}

.speaker {
  float: left;
  margin-right: 0.9em;
  color: var(--color-speaker);
  font-weight: 900;
}

.answer::after {
  display: block;
  clear: both;
  content: "";
}

.closing-text {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  font-size: 1.02rem;
  line-height: 1.95;
}

.site-footer {
  display: grid;
  min-height: 170px;
  place-items: center;
  color: #c7c7c7;
  background: var(--color-footer);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

@media (min-width: 720px) {
  body {
    background: #f7f7f7;
  }

  .site-header,
  .article {
    background: #fff;
  }

  .site-header {
    padding-right: 22px;
    padding-left: 22px;
  }

  .article {
    padding-right: 22px;
    padding-left: 22px;
  }
}

/* =========================================================
   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;
  }
}
