/* 転職業界研究所 — 夜ポップ（動画のスライドと同じ配色）
   夜空の背景 ＋ 白いカード＋太いふち＋ずらした紫の影（ステッカー風）
   読みやすさ優先：本文は白いカードの上に濃い文字で置く */

:root {
  --night: #181334;      /* 背景の夜空 */
  --outline: #141028;    /* カードのふち */
  --shadow: #6246e6;     /* 影の紫 */
  --pink: #ff488c;
  --yellow: #ffd60a;
  --cyan: #00bef0;
  --mint: #00c896;
  --purple: #7c52ff;
  --orange: #ff8a1e;
  --ink: #201a3c;        /* カードの中の文字 */
  --ink-soft: #4a4470;
  --soft-text: #c4beec;  /* 夜空の上の小さい文字 */
  --card: #ffffff;
  --card-tint: #f6f4ff;
  --radius: 18px;
  --font: "M PLUS Rounded 1c", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 92% 6%, rgba(120, 40, 150, 0.55), transparent 38%),
    radial-gradient(circle at 4% 96%, rgba(20, 80, 150, 0.5), transparent 40%),
    radial-gradient(rgba(82, 72, 140, 0.55) 1.5px, transparent 1.6px);
  background-size: auto, auto, 32px 32px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

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

a { color: #4b2fd6; text-underline-offset: 3px; }
a:hover { color: var(--pink); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── ヘッダー ── */
.site-header { padding: 18px 0 8px; }
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: 0.02em;
}
.logo:hover { color: var(--yellow); }
.logo-mark {
  display: inline-block; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--outline); border-radius: 8px; padding: 0 8px; font-size: 14px;
  transform: rotate(-4deg); box-shadow: 3px 3px 0 var(--shadow);
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--soft-text); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 4px 10px; border-radius: 999px;
}
.nav a:hover { color: var(--outline); background: var(--yellow); }

/* ── ステッカー風カード ── */
.card {
  background: var(--card);
  border: 4px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--shadow);
  padding: 28px 28px;
  margin: 0 0 32px;
}

/* 少し傾いた黄色ラベル */
.tag {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--outline); border-radius: 10px;
  padding: 2px 12px; font-weight: 900; font-size: 14px; line-height: 1.6;
  transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--shadow);
}
.tag.pink { background: var(--pink); color: #fff; }
.tag.cyan { background: var(--cyan); color: var(--ink); }

/* 見出し下の3本ライン（ピンク・黄・シアン） */
.tri-line { display: flex; gap: 8px; margin: 10px 0 18px; }
.tri-line span { display: block; width: 44px; height: 8px; border-radius: 99px; }
.tri-line span:nth-child(1) { background: var(--pink); }
.tri-line span:nth-child(2) { background: var(--yellow); }
.tri-line span:nth-child(3) { background: var(--cyan); }

/* ── トップのヒーロー ── */
.hero { padding: 28px 0 8px; text-align: center; color: #fff; }
.hero .tag { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(34px, 8vw, 64px); line-height: 1.2; margin: 6px 0 4px; font-weight: 900;
  text-shadow: 4px 4px 0 var(--shadow);
}
.hero .tri-line { justify-content: center; }
.hero-concept { font-size: clamp(18px, 4.2vw, 26px); font-weight: 900; margin: 0 0 10px; }
.hero-lead { color: var(--soft-text); max-width: 680px; margin: 0 auto 24px; }

/* ── セクション見出し（夜空の上） ── */
.section-title { color: #fff; font-size: clamp(22px, 5vw, 30px); font-weight: 900; margin: 40px 0 0; }
.section-title + .tri-line { margin-bottom: 22px; }

/* ── シリーズカード・記事カード ── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.series-card h3, .post-card h3 { margin: 12px 0 6px; font-size: 21px; line-height: 1.4; }
.series-card p, .post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.series-card { border-top-width: 14px; }
.series-card.pink { border-top-color: var(--pink); }
.series-card.cyan { border-top-color: var(--cyan); }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card > a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post-card img { border-bottom: 4px solid var(--outline); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 18px 20px 22px; }
.post-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--pink); }
.post-meta { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* ── 記事 ── */
.article-head { color: #fff; padding: 20px 0 6px; }
.article-head h1 {
  font-size: clamp(26px, 6vw, 40px); line-height: 1.35; margin: 14px 0 0; font-weight: 900;
  text-shadow: 3px 3px 0 var(--shadow);
}
.breadcrumb { font-size: 13px; color: var(--soft-text); margin: 4px 0 10px; }
.breadcrumb a { color: var(--soft-text); }
.dates { font-size: 13px; color: var(--soft-text); margin: 0; }

.pr-note {
  background: var(--card-tint); border: 3px dashed var(--purple); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; font-weight: 700; margin: 0 0 18px;
}

.article-body h2, .prose h2 {
  font-size: clamp(21px, 4.6vw, 27px); line-height: 1.45; margin: 40px 0 0; font-weight: 900;
}
.article-body h2:first-child, .prose h2:first-child { margin-top: 4px; }
.article-body h3, .prose h3 { font-size: 19px; margin: 28px 0 8px; border-left: 8px solid var(--pink); padding-left: 10px; line-height: 1.5; }
.article-body p, .prose p { margin: 0 0 16px; }
.article-body ul, .prose ul, .article-body ol, .prose ol { padding-left: 1.4em; margin: 0 0 18px; }
.article-body li, .prose li { margin-bottom: 6px; }
.article-body strong, .prose strong { background: linear-gradient(transparent 62%, rgba(255, 214, 10, 0.75) 62%); }

.figure { margin: 18px 0 22px; }
.figure img { border: 4px solid var(--outline); border-radius: 12px; width: 100%; }
.figure figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* 表（スマホでは表の中だけ横スクロール＝ページは横に揺れない） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; border: 3px solid var(--outline); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 2px solid #e6e2fb; text-align: left; vertical-align: top; }
thead th { background: var(--outline); color: #fff; font-weight: 800; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--card-tint); }
.info-table { min-width: 0; }
.info-table th { background: var(--outline); color: #fff; white-space: nowrap; width: 8em; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.hl td { background: #fff6c8; font-weight: 800; }

/* 大きな数字のタイル */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 18px; }
.stats-one { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.stats-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  border: 3px solid var(--outline); border-radius: 14px; padding: 12px 10px; text-align: center;
  box-shadow: 4px 4px 0 var(--shadow); background: #fff;
}
.stat .value { font-size: 28px; font-weight: 900; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.stat .unit { font-size: 15px; margin-left: 2px; }
.stat .label { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 4px; }
.stat.pink { border-top: 10px solid var(--pink); }
.stat.cyan { border-top: 10px solid var(--cyan); }
.stat.mint { border-top: 10px solid var(--mint); }
.stat.purple { border-top: 10px solid var(--purple); }
.stat.orange { border-top: 10px solid var(--orange); }

/* 注意書きボックス */
.notice {
  background: #fff6c8; border: 3px solid var(--outline); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 18px; font-size: 14.5px;
}
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-title { font-weight: 900; margin: 0 0 6px; }

/* ポイントボックス */
.point {
  background: var(--card-tint); border: 3px solid var(--purple); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 18px;
}
.point p:last-child, .point ul:last-child { margin-bottom: 0; }

/* 目次 */
.toc { background: var(--card-tint); border: 3px solid var(--outline); border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; }
.toc p { font-weight: 900; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc a { color: var(--ink); }

/* 動画の埋め込み枠（公開後に差し替え） */
.video-slot {
  border: 3px dashed var(--soft-text); border-radius: 12px; padding: 16px; text-align: center;
  color: var(--ink-soft); font-size: 14px; background: var(--card-tint); margin: 0 0 20px;
}

/* 送客枠（提携先が決まるまで中身は空） */
.cta-slot:empty { display: none; }

/* 出典リスト */
.sources { font-size: 14px; }
.sources li { word-break: break-all; }

/* 関連記事 */
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.related li a {
  display: block; border: 3px solid var(--outline); border-radius: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--ink); font-weight: 800; background: #fff; box-shadow: 4px 4px 0 var(--shadow);
}
.related li a:hover { box-shadow: 4px 4px 0 var(--pink); }

/* ── フッター ── */
.site-footer { margin-top: 48px; padding: 32px 0 40px; border-top: 4px solid var(--outline); background: rgba(20, 16, 40, 0.6); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; color: var(--soft-text); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); }
.footer-pr { color: var(--yellow); font-weight: 700; margin: 0 0 6px; }
.footer-disc { margin: 0 0 6px; }

/* ── スマホ ── */
@media (max-width: 760px) {
  .grid, .related { grid-template-columns: 1fr; }
  .stats, .stats-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-one { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px 18px; box-shadow: 6px 6px 0 var(--shadow); }
  .post-card { padding: 0; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .logo { font-size: 18px; }
  .nav a { font-size: 13px; padding: 3px 8px; }
  .card { padding: 20px 14px; border-width: 3px; }
  .stat .value { font-size: 22px; }
  .stats-three { grid-template-columns: minmax(0, 1fr); }
  .tri-line span { width: 34px; height: 7px; }
}
