/* ============================================================
   色やフォントの設定（ここを変えると全体が変わります）
   ============================================================ */
:root {
  --bg: #0b0b0d;          /* 背景（ほぼ黒） */
  --bg-2: #141417;        /* 少し明るい黒（アイコンの箱など） */
  --text: #f2f0ea;        /* 文字（少しあたたかい白） */
  --muted: #8b8a86;       /* 薄い文字 */
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6f9fd4;      /* 差し色（落ち着いた青）※ここを変えると全体の差し色が変わる（ボタンと帯の光 .hero-cta / .ticker の色も合わせて変える） */
  --accent-ink: #0b0b0d;  /* 差し色の上に乗る文字の色 */
  /* フォント（--font・--font-en）と角の丸み（--radius）は common.css で共通管理 */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }

/* ---------- 背景（縦のガイド線と斜めのライン） ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-cols {
  position: absolute;
  inset: 0;
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.05) calc(50% - 0.5px), rgba(255, 255, 255, 0.05) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.bg-slash {
  position: absolute;
  top: -10%;
  right: -25%;
  width: 75%;
  height: 120%;
  background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  animation: drift 14s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 60%);
          mask-image: linear-gradient(200deg, #000 10%, transparent 60%);
}

.inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 一番上のバー ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.logo-mark { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); }
.topbar-meta { display: flex; gap: 24px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  animation: blink 1.6s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { to { transform: translate(-60px, 24px); } }

/* ---------- ヒーロー ---------- */
.hero { padding-top: clamp(48px, 10vw, 112px); }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.hero-kicker::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.hero-title { margin: 0; }
.hero-en {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(4.2rem, 24vw, 15rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-left: -0.05em;
}
.hero-en .line { display: block; }
.hero-en .line-2 { padding-left: min(1.58em, calc(100% - 1.95em)); } /* LISの位置：Lの左端がOとVの中間にくる（画面が狭いときは、はみ出さない所まで） */
/* 「LIS」は白から差し色へのなめらかなグラデーション */
.hero-en .outline {
  color: transparent;
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 35%, var(--text) 70%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  animation: flow 7s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
/* 「VA」に右上から黒い実線（背景色）を数本入れて、文字を切り込んだように見せる */
.hero-en .va {
  position: relative;
  padding-right: 0.08em;     /* 文字の右端が切れないように */
  margin-right: -0.08em;
}
.hero-en .va::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  /* 背景の斜線と同じ角度（-55deg）の線を8本、Aのあたりに（太さは各 2%） */
  background: linear-gradient(-55deg,
    transparent 0 8%,
    var(--bg) 8.0% 10.0%,
    transparent 10.0% 12.5%,
    var(--bg) 12.5% 14.5%,
    transparent 14.5% 17.0%,
    var(--bg) 17.0% 19.0%,
    transparent 19.0% 21.5%,
    var(--bg) 21.5% 23.5%,
    transparent 23.5% 26.0%,
    var(--bg) 26.0% 28.0%,
    transparent 28.0% 30.5%,
    var(--bg) 30.5% 32.5%,
    transparent 32.5% 35.0%,
    var(--bg) 35.0% 37.0%,
    transparent 37.0% 39.5%,
    var(--bg) 39.5% 41.5%,
    transparent 41.5% 100%);
  /* 右上の角から左下へ向かって描かれていく */
  animation: slash-in 1s cubic-bezier(.6, 0, .2, 1) 1.2s both;
}
@keyframes slash-in {
  from { clip-path: inset(0 0 100% 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
/* 「O」を差し色の丸いリングに置きかえる（ボタンと同じリズムでやわらかく光る） */
.hero-en .o,
.notfound .o {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.02em 0 0;
  border: 0.15em solid var(--accent);
  border-radius: 50%;
  vertical-align: 0;
  position: relative;
  box-shadow: 0 0 18px 2px rgba(111, 159, 212, 0.45), inset 0 0 14px rgba(111, 159, 212, 0.35);
  animation:
    pop 0.9s cubic-bezier(.3, 1.6, .5, 1) 0.35s both,
    glow-ring 2.8s ease-in-out infinite,
    orbit 6s linear infinite;
}
/* リングのまわりを回る光の粒 */
.hero-en .o::after,
.notfound .o::after {
  content: "";
  position: absolute;
  top: -0.135em;
  left: 50%;
  width: 0.12em;
  height: 0.12em;
  margin-left: -0.06em;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.7), 0 0 24px 6px rgba(111, 159, 212, 0.8);
}
@keyframes pop { from { scale: 0; } }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes glow-ring {
  50% { box-shadow: 0 0 30px 6px rgba(111, 159, 212, 0.65), inset 0 0 20px rgba(111, 159, 212, 0.5); }
}
.hero-ja-name {
  display: block;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--muted);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 48px;
  margin-top: clamp(28px, 5vw, 56px);
  padding: 28px 0 clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.hero-copy {
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.hero-copy em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(transparent 84%, var(--accent) 84%, var(--accent) 94%, transparent 94%) no-repeat left / 100% 100%;
}
/* 表示されたときに、下線が左からスッと引かれる */
.js .hero-copy em { background-size: 0% 100%; transition: background-size 0.9s cubic-bezier(.7, 0, .2, 1) 0.5s; }
.js .hero-copy em + br + em { transition-delay: 0.9s; }
.js .hero-copy.is-visible em { background-size: 100% 100%; }
.hero-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hero-lead { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-cta {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 22px 18px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  /* ボタンがやわらかく光り、ゆっくり呼吸するように明るさが変わる */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 18px 2px rgba(111, 159, 212, 0.55),
    0 0 48px 6px rgba(111, 159, 212, 0.28);
  animation: glow 2.8s ease-in-out infinite;
  transition: box-shadow 0.3s;
}
@keyframes glow {
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35) inset,
      0 0 26px 4px rgba(111, 159, 212, 0.75),
      0 0 70px 14px rgba(111, 159, 212, 0.38);
  }
}
.hero-cta:hover {
  animation-play-state: paused;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 0 30px 6px rgba(111, 159, 212, 0.85),
    0 0 90px 20px rgba(111, 159, 212, 0.45);
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(.7, 0, .2, 1);
}
.hero-cta:hover::before { transform: scaleX(1); transform-origin: left; }
.hero-cta .arrow { font-family: var(--font-en); transition: transform 0.3s; }
.hero-cta:hover .arrow { transform: translateY(3px); }

/* ---------- 斜めに流れる帯 ---------- */
.ticker-wrap { position: relative; padding: 56px 0; overflow: hidden; overflow-x: clip; overflow-y: visible; } /* 横だけ切り、上下は光がはみ出せるように */
.ticker-wrap::before {
  /* 帯の後ろに、逆向きの細い線を交差させる */
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
  transform: rotate(2.5deg);
}
.ticker {
  position: relative;
  margin: 0 -5%;
  padding: 13px 0;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-2.5deg);
  overflow: hidden;
  white-space: nowrap;
  /* 帯もボタンと同じリズムでやわらかく光る */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 20px 2px rgba(111, 159, 212, 0.5),
    0 0 54px 8px rgba(111, 159, 212, 0.25);
  animation: glow-band 2.8s ease-in-out infinite;
}
@keyframes glow-band {
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35) inset,
      0 0 28px 4px rgba(111, 159, 212, 0.7),
      0 0 76px 14px rgba(111, 159, 212, 0.35);
  }
}
.ticker-track { display: inline-flex; animation: marquee 30s linear infinite; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  letter-spacing: 0.06em;
}
.ticker-track span::after { content: "✦"; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- セクションの見出し ---------- */
.section { padding-top: clamp(56px, 9vw, 112px); scroll-margin-top: 16px; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px 24px;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--text);
}
.section-no {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-bottom: 0.6em;
}
.section-title { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.section-en {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-en);
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.count {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  padding-bottom: 0.6em;
}

/* ---------- ツールの一覧（1行ずつのリスト） ---------- */
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-card {
  --tool: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 84px 64px 1fr 56px;
  align-items: center;
  gap: 24px;
  padding: 30px 16px 30px 0;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: color 0.3s, padding 0.4s cubic-bezier(.7, 0, .2, 1);
}
/* マウスを乗せると差し色が左からサッと広がる */
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(.7, 0, .2, 1);
}
@media (hover: hover) {
  .tool-card:hover { color: var(--accent-ink); padding-left: 16px; }
  .tool-card:hover::before { transform: scaleX(1); transform-origin: left; }
  .tool-card:hover .tool-num { -webkit-text-stroke-color: var(--accent-ink); }
  .tool-card:hover .tool-icon { background: var(--accent-ink); border-color: var(--accent-ink); }
  .tool-card:hover .tool-desc { color: rgba(11, 11, 13, 0.75); }
  .tool-card:hover .tool-go { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
  .tool-card:hover .tool-go span { transform: rotate(-45deg); }
  .tool-card:hover .badge-new { background: var(--accent-ink); color: var(--accent); }
}
.tool-card:active::before { transform: scaleX(1); transform-origin: left; transition-duration: 0.2s; }
.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.tool-num {
  font-family: var(--font-en);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  transition: -webkit-text-stroke-color 0.3s;
}
.tool-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--tool);
  transition: background 0.3s, border-color 0.3s;
}
.tool-body { display: block; min-width: 0; }
.tool-name { display: block; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 900; line-height: 1.4; }
.tool-desc {
  display: block;
  margin-top: 6px;
  max-width: 46em;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  transition: color 0.3s;
}
.tool-go {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tool-go span { display: block; transition: transform 0.35s; }
.badge-new {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px 1px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: 0.3em;
  transition: background 0.3s, color 0.3s;
}

/* JavaScriptが動かないとき用の簡易表示 */
noscript .tool-card { display: block; padding: 20px 0; font-weight: 700; }

.coming-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.pulse { width: 8px; height: 8px; background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111, 159, 212, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(111, 159, 212, 0); }
}

/* ---------- 特徴（3つ並び） ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.features li {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.features li:hover { background: rgba(255, 255, 255, 0.025); }
.feature-no { display: block; font-family: var(--font-en); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--accent); }
.feature-title { display: block; margin: 20px 0 8px; font-size: 1.35rem; font-weight: 900; }
.feature-text { display: block; color: var(--muted); font-size: 0.88rem; }

/* ---------- 広告スペース ---------- */
.ad-slot {
  margin: clamp(56px, 8vw, 96px) 0 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.ad-placeholder { font-size: 0.75rem; letter-spacing: 0.1em; color: #5d5c58; }

/* ---------- フッター ---------- */
.site-footer { margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 8px;
  font-family: var(--font-en);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.footer-row p { margin: 0; }
.footer-row a { text-decoration: none; transition: color 0.2s; }
.footer-row a:hover { color: var(--accent); }
.footer-logo {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(3.4rem, 19vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 8px);
  -webkit-background-clip: text;
          background-clip: text;
  transform: translateY(12%);
  user-select: none;
}

/* ---------- 動き（読み込み時・スクロール時） ---------- */
/* 文字がせり上がるときの「窓」。上下に余白をとって、Oの光が切れないようにする */
.js .hero-en { display: flex; flex-direction: column; } /* 行どうしの余白が重ならないように */
.js .hero-en .line { overflow: hidden; padding-top: 72px; padding-bottom: 72px; margin-top: -72px; margin-bottom: -72px; }
.js .hero-en .line > span { display: block; transform: translateY(calc(100% + 80px)); animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-en .line-2 > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .tool-card.reveal {
  transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1), color 0.3s, padding 0.4s cubic-bezier(.7, 0, .2, 1);
}

/* ---------- タブレット・スマホ向け ---------- */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features li { padding: 22px 20px 24px; }
  .feature-title { margin-top: 8px; }
  .topbar-meta .hide-sp { display: none; }
  .tool-card {
    grid-template-columns: 52px 1fr 44px;
    gap: 16px;
    padding: 24px 0;
    align-items: start;
  }
  .tool-num {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    -webkit-text-stroke: 0;
  }
  .tool-icon { width: 52px; height: 52px; font-size: 1.45rem; }
  .tool-go { width: 44px; height: 44px; font-size: 1rem; align-self: center; }
}
@media (max-width: 760px) and (hover: hover) {
  .tool-card:hover { padding-left: 10px; padding-right: 10px; }
  .tool-card:hover .tool-num { color: var(--accent-ink); }
}
@media (max-width: 420px) {
  .section-head { grid-template-columns: 1fr auto; }
  .section-no { grid-column: 1 / -1; padding-bottom: 0; }
}

/* ---------- ツールの区分（切り替えボタンと見出し） ---------- */
.tool-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 6px;
}
.tool-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.3s;
}
.tool-filter button:hover { color: var(--text); border-color: var(--accent); }
.tool-filter .f-count {
  min-width: 1.6em;
  padding: 0 6px;
  border-radius: calc(var(--radius, 8px) / 2);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-en);
  font-size: 0.68rem;
  line-height: 1.6;
  text-align: center;
}
.tool-filter button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 16px 1px rgba(111, 159, 212, 0.5);
}
.tool-filter button[aria-pressed="true"] .f-count { background: rgba(11, 11, 13, 0.18); }

@media (max-width: 760px) {
  /* スマホでは1列に並べて、横にスクロール */
  .tool-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .tool-filter::-webkit-scrollbar { display: none; }
  .tool-filter button { flex: 0 0 auto; }
}
.tool-group { margin-top: 30px; }
.tool-group[hidden] { display: none; }
.group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.group-no {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.group-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.group-en {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.group-count {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ---------- フッターのリンク（プライバシーポリシー・運営者情報） ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-row { flex-wrap: wrap; }

/* ---------- 下層ページ（プライバシーポリシー・運営者情報・404） ---------- */
.page { padding: clamp(40px, 8vw, 80px) 0 0; }
.page-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.page-kicker::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.page-title {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
}
.page-title .u-line { background: linear-gradient(transparent 84%, var(--accent) 84%, var(--accent) 94%, transparent 94%); }
.page-lead {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* 本文（番号つきの見出し） */
.doc { max-width: 760px; counter-reset: doc; }
.doc section {
  counter-increment: doc;
  margin-top: 28px;
  padding: 24px 20px 22px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--text);
  border-radius: var(--radius, 8px);
  background: rgba(255, 255, 255, 0.025);
}
.doc h2 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.doc h2::before {
  content: counter(doc, decimal-leading-zero) " /";
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.doc p { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.9; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 12px; padding: 0; list-style: none; }
.doc ul li { position: relative; padding: 4px 0 4px 20px; font-size: 0.95rem; line-height: 1.8; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.95em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.doc a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a.hero-cta { color: var(--accent-ink); text-decoration: none; overflow-wrap: normal; }   /* ボタンの文字色は本文リンクの色にしない */
.doc-date {
  margin: 28px 0 0;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}

/* 運営者情報の表 */
.info { margin: 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 8em 1fr; gap: 6px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.info dt { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.info dd { margin: 0; font-size: 0.98rem; line-height: 1.7; }
.info .pending {
  display: inline-block;
  padding: 1px 10px;
  border: 1px dashed var(--line);
  border-radius: calc(var(--radius, 8px) / 2);
  color: var(--muted);
  font-size: 0.85rem;
}
.back-row { margin-top: 32px; }

/* 404 */
.notfound { padding: clamp(56px, 12vw, 120px) 0 0; text-align: left; }
.notfound .code {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(5rem, 30vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.notfound .code .o { font-size: 1em; }
.notfound .page-title { word-break: keep-all; }   /* 決めた位置（<wbr>）でだけ改行する */

@media (max-width: 520px) {
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .doc section { padding: 20px 16px 18px; }
}

/* ---------- 角の丸み（common.css の --radius で一括管理） ---------- */
.hero-cta,
.tool-card,
.tool-card::before,
.tool-icon,
.tool-go,
.ad-slot { border-radius: var(--radius, 8px); }
.badge-new { border-radius: calc(var(--radius, 8px) / 2); }

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-en .line > span { transform: none; }
  .js .hero-copy em { background-size: 100% 100%; }
}
