/* 即ヒメとどけ隊 ブログ共通スタイル
   LP(index.html)のCSS変数をそのまま継承して統一感を保つ */

:root {
  --bg: #0A0E1A;
  --bg-deep: #060810;
  --surface: #121729;
  --surface-2: #1A2038;
  --line: #262C48;
  --line-soft: #1C2140;
  --ink: #F2F4FA;
  --ink-soft: #ADB4CC;
  --ink-faint: #676E8C;
  --accent: #FF7A45;
  --accent-soft: #FFB088;
  --accent-glow: rgba(255, 122, 69, 0.35);
  --signal: #45E0C7;
  --signal-soft: rgba(69, 224, 199, 0.14);
  --warn: #FF5D73;
  --sans: "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Noto Sans Mono JP", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

a { color: var(--accent-soft); }
a:hover { color: var(--accent); }

/* ===== ヘッダー ===== */
.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site-head .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.brand .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  flex: none;
}
.head-cta {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--signal);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.head-cta:hover { border-color: var(--signal); color: var(--signal); }

/* ===== 記事本体 ===== */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 4rem;
}

.crumbs {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent-soft); }
.crumbs span { margin: 0 0.4rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.article h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 1.1rem 0 0;
}

.meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 1.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 2rem 0 0;
}
.lede b { color: var(--ink); font-weight: 700; }

/* 目次 */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin: 2.6rem 0;
}
.toc h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
  margin: 0 0 0.9rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toc li { font-size: 0.9rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-soft); }

/* 見出し */
.article h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 3.6rem 0 1.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line-soft);
}
.article h3 {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--ink);
  margin: 2.4rem 0 0.8rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}
.article p { margin: 0 0 1.35rem; }
.article p:last-child { margin-bottom: 0; }
.article strong { color: var(--ink); font-weight: 700; }

.article ul, .article ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article li { color: var(--ink-soft); }
.article li strong { color: var(--ink); }

/* 表 */
.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin: 0 0 1.35rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
}
thead td {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  white-space: nowrap;
}
td {
  padding: 0.75rem 1rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}
thead td { border-top: none; }
td.lbl { color: var(--ink); font-weight: 700; white-space: nowrap; }
td .ok { color: var(--signal); font-weight: 700; }
td .no { color: var(--ink-faint); }
td .mono { color: var(--signal); }

/* 補足ボックス */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.35rem;
}
.note .t {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.note p { margin: 0 0 0.8rem; font-size: 0.9rem; }
.note p:last-child { margin-bottom: 0; }

.note.warn { border-left-color: var(--warn); }
.note.warn .t { color: var(--warn); }

/* 数式・計算の見せ方 */
.calc {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 0 0 1.35rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--ink);
  overflow-x: auto;
}
.calc .op { color: var(--ink-faint); }
.calc .res { color: var(--accent); font-weight: 700; }

/* FAQ */
.faq-q {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2rem 0 0.7rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--signal);
}

/* CTA */
.cta {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  margin: 3.2rem 0;
  text-align: center;
}
.cta h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
  padding: 0;
  border: none;
  font-weight: 800;
}
.cta p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 44ch;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--accent);
  color: #14100C;
  box-shadow: 0 8px 28px var(--accent-glow);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: #14100C; }

/* 著者 */
.author {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 3rem 0 0;
}
.author .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 22%, transparent 24%),
              radial-gradient(circle at 50% 50%, transparent 0 44%, var(--signal) 46% 52%, transparent 54%);
  background-color: var(--bg-deep);
}
.author .n { font-weight: 800; font-size: 0.92rem; margin: 0 0 0.3rem; }
.author p { margin: 0; font-size: 0.83rem; color: var(--ink-soft); line-height: 1.8; }

/* ===== 記事一覧 ===== */
.list-head { max-width: 780px; margin: 0 auto; padding: 3.4rem 1.5rem 0; }
.list-head h1 { font-size: clamp(1.7rem, 4.4vw, 2.2rem); font-weight: 800; margin: 1rem 0 0; }
.list-head p { color: var(--ink-soft); margin: 1rem 0 0; max-width: 56ch; }

.posts {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 1.5rem 1.7rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateX(2px); color: inherit; }
.post-card .cat {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
}
.post-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 0.5rem 0 0.6rem;
  text-wrap: balance;
}
.post-card p { margin: 0; font-size: 0.87rem; color: var(--ink-soft); }
.post-card .d {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.9rem;
  display: block;
}

.soon {
  border: 1px dashed var(--line);
  border-left: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.7rem;
  background: transparent;
}
.soon .cat { color: var(--ink-faint); }
.soon h2 { color: var(--ink-faint); font-size: 1rem; }

/* ===== フッター ===== */
footer.site-foot {
  text-align: center;
  padding: 2.6rem 1.5rem 3.4rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  border-top: 1px solid var(--line-soft);
  line-height: 1.9;
}
.foot-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
}
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--accent-soft); }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .article { padding-top: 2.4rem; }
  .cta { padding: 1.8rem 1.3rem; }
  .author { flex-direction: column; gap: 0.9rem; }
}
