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

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
p,
ul,
dl,
dd,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
}

/* Base */
:root {
  --color-text: #171717;
  --color-muted: #6b6b6b;
  --color-subtle: #9a9a9a;
  --color-line: #dddddd;
  --color-error: #b3261e;
  --color-bg: #ffffff;
  --content-width: 680px;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f2f2f0 92%, #1a1a1a 100%);
}

body.security-level-1 {
  background:
    linear-gradient(180deg, #f1f1ee 0%, #f1f1ee 70%, #d2d2ce 92%, #1a1a1a 100%);
}

body.security-level-2 {
  background:
    linear-gradient(180deg, #e5e5e0 0%, #e5e5e0 70%, #c1c1bb 92%, #1a1a1a 100%);
}

::selection {
  color: #ffffff;
  background: #171717;
}

/* Layout */
.page {
  width: min(100%, var(--content-width));
  min-height: calc(100vh - 104px);
  margin-inline: auto;
  padding: 58px 22px 84px;
}

main {
  display: block;
}

/* Header */
.site-header {
  padding: 28px 0 54px;
}

.site-kicker {
  color: var(--color-subtle);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-title {
  margin-top: 18px;
  color: var(--color-text);
  font-size: clamp(2.8rem, 13vw, 5rem);
  font-weight: 500;
  line-height: 1.18;
}

.site-catch {
  margin-top: 22px;
  color: #303030;
  font-size: clamp(1.15rem, 4.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.7;
}

.subpage-header {
  padding-bottom: 42px;
}

/* Section */
.intro-section {
  display: grid;
  gap: 24px;
  padding: 18px 0 48px;
  font-size: 1.02rem;
}

.content-section {
  padding: 36px 0;
  border-top: 1px solid var(--color-line);
}

.section-title {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.short-line {
  margin-top: 18px;
  font-weight: 500;
}

.info-block {
  display: grid;
  gap: 4px;
}

.small-text {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.text-flow {
  display: grid;
  gap: 18px;
}

.emphasis {
  /* color: var(--color-accent-soft); */
  font-weight: 600;
}
/* Worksなどで画像を本文内に置いたときの見え方 */
.case-image {
  display: block;
  margin-top: 24px;
  border: 1px solid var(--color-line);
}

@media (min-width: 768px) {
  .case-image-dm {
    max-width: 420px;
    margin-inline: auto;
  }
}

.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus-visible {
  color: #ffffff;
  background: #171717;
}


.wbr-text {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.media-list {
  display: grid;
  gap: 18px;
  list-style: none;
}

.media-list li {
  display: grid;
  gap: 4px;
}

.media-name {
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.question-title {
  margin-bottom: 14px;
  color: var(--color-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
}

.contact-action {
  margin-top: 28px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  background: #171717;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: #333333;
}

.case-detail {
  display: grid;
  gap: 22px;
}

.case-detail div {
  display: grid;
  gap: 6px;
}

.case-detail dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
}

.case-detail dd {
  line-height: 1.95;
}

.placeholder-box,
.quote-box {
  margin-top: 24px;
  padding: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--color-line);
}


.quote-box {
  color: var(--color-text);
}

.content-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  list-style: none;
}

.content-list li {
  position: relative;
  padding-left: 1.1em;
}

.content-list li::before {
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 0.34em;
  height: 0.34em;
  content: "";
  background: currentColor;
  border-radius: 50%;
  opacity: 0.45;
}

.restriction-list {
  margin-top: 24px;
}

.case-detail-continued {
  margin-top: 28px;
}

.client-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.form-label {
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.6;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--color-line);
  border-radius: 0;
  outline: none;
}

.form-control:focus {
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-control.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.form-error-message {
  color: var(--color-error);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.6;
}

.button-primary {
  min-height: 48px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 500;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 0;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #333333;
}

.page-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 38px;
}

.page-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-decoration: none;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.page-links a::after {
  width: 0.42em;
  height: 0.42em;
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.page-links a:hover,
.page-links a:focus-visible {
  color: #000000;
}


/* Menu */
.menu-nav {
  display: grid;
  border-top: 1px solid var(--color-line);
}

.menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  color: var(--color-text);
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}

.menu-nav a::after {
  width: 0.46em;
  height: 0.46em;
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  color: #000000;
  background: rgba(0, 0, 0, 0.035);
}


/* Footer */
.site-footer {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: 0 22px 34px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

/* Utilities */
.pc-only {
  display: none;
}

/* Responsive */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .page {
    padding-top: 82px;
    padding-bottom: 110px;
  }

  .site-header {
    padding-bottom: 70px;
  }

  .content-section {
    padding: 44px 0;
  }

  .pc-only {
    display: block;
  }
}

@media (max-width: 380px) {
  .page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-title {
    font-size: 2.55rem;
  }
}

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