/* 転職16タイプ診断 - 共通スタイル（モダン・テック系 / 2カラムブログ対応） */
:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --ink: #0f172a;         /* slate-900 */
  --sub: #64748b;         /* slate-500 */
  --line: #e7e9f2;
  --accent: #4f46e5;      /* indigo-600 */
  --accent-2: #7c3aed;    /* violet-600 */
  --accent-ink: #4338ca;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --dark: #0f172a;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 34px rgba(79, 70, 229, .16);
  --maxw: 760px;          /* 記事の読みやすい幅 */
  --maxw-wide: 1080px;    /* 2カラム用 */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75; letter-spacing: .01em; font-feature-settings: "palt";
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー（白・sticky・モダン） ===== */
.site-header {
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.site-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-header a { text-decoration: none; }
.brand { font-weight: 900; font-size: 18px; letter-spacing: -.01em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .logo {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800;
}
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-size: 14px; color: var(--sub); padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: #eef0f8; text-decoration: none; }
.nav a.cta { background: var(--grad); color: #fff; font-weight: 700; padding: 8px 16px; }
.nav a.cta:hover { background: var(--grad); opacity: .92; }

/* ===== フッター ===== */
.site-footer { margin-top: 64px; padding: 32px 0; background: #fff; border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; }
.site-footer .wrap-wide { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--sub); }

/* ===== PR表記（ステマ規制対応） ===== */
.pr-label { display: inline-block; background: #eef0fb; color: var(--accent-ink); border: 1px solid #d9dcf5; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 12px; margin: 0 0 14px; }
.pr-bar { background: #eef0fb; color: var(--accent-ink); border-bottom: 1px solid #d9dcf5; font-size: 12px; text-align: center; padding: 6px 12px; }

/* ===== ヒーロー（テック・グラデ） ===== */
.hero { position: relative; background: var(--grad); color: #fff; padding: 60px 0 66px; text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,.18), transparent),
  radial-gradient(500px 220px at 90% 100%, rgba(255,255,255,.12), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(25px, 6vw, 38px); line-height: 1.42; margin: 0 0 14px; letter-spacing: -.01em; }
.hero h1 b { color: #fde68a; }
.hero p { color: rgba(255,255,255,.9); margin: 0 auto 26px; max-width: 34em; }
.hero .badge { display: inline-block; font-size: 13px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 15px; margin-bottom: 18px; }

/* ===== ボタン ===== */
.btn { display: inline-block; text-decoration: none; font-weight: 800; cursor: pointer; border: none; border-radius: 11px; padding: 14px 30px; font-size: 16px; transition: transform .08s ease, box-shadow .2s, opacity .2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.btn-primary:hover { opacity: .94; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-grad:hover { opacity: .94; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== セクション・カード ===== */
section { padding: 40px 0; }
.section-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.section-lead { color: var(--sub); margin: 0 0 22px; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== 2カラムレイアウト ===== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding: 40px 0; align-items: start; }
.main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .sidebar { position: static; }
}

/* ===== サイドバーのウィジェット ===== */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 20px; }
.widget h4 { margin: 0 0 14px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.widget h4::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--grad); display: inline-block; }

/* プロフィールカード */
.profile { text-align: center; }
.avatar { width: 76px; height: 76px; border-radius: 50%; margin: 4px auto 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile .pname { font-weight: 800; font-size: 15px; }
.profile .pbio { color: var(--sub); font-size: 13px; margin: 8px 0 14px; text-align: left; }

/* 診断CTAカード（サイドバーの主役） */
.cta-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 22px 20px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-card h4 { color: #fff; display: block; font-size: 15px; margin: 0 0 6px; }
.cta-card h4::before { display: none; }
.cta-card p { font-size: 13px; color: rgba(255,255,255,.9); margin: 0 0 14px; }

/* カテゴリ・タグ・ランキング */
.list-links { list-style: none; margin: 0; padding: 0; }
.list-links li { border-top: 1px solid var(--line); }
.list-links li:first-child { border-top: none; }
.list-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; color: var(--ink); font-size: 14px; }
.list-links a:hover { color: var(--accent-ink); text-decoration: none; }
.list-links .num { color: var(--sub); font-size: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 12px; background: #eef0f8; color: var(--accent-ink); border-radius: 8px; padding: 5px 11px; }
.tag-cloud a:hover { background: #e3e6f6; text-decoration: none; }
.rank { counter-reset: r; }
.rank li { counter-increment: r; position: relative; padding-left: 30px; }
.rank a { display: block; padding: 10px 2px; font-size: 13.5px; line-height: 1.55; }
.rank li::before { content: counter(r); position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ===== 記事カード（一覧） ===== */
.post-list { display: grid; gap: 16px; }
.post-item { display: block; text-decoration: none; color: inherit; padding: 20px 22px; transition: transform .1s, box-shadow .2s, border-color .2s; }
.post-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cdd0ee; text-decoration: none; }
.post-item .cat { display: inline-block; font-size: 12px; color: var(--accent-ink); font-weight: 700; background: #eef0f8; padding: 2px 10px; border-radius: 999px; }
.post-item h3 { margin: 10px 0 6px; font-size: 17px; line-height: 1.5; letter-spacing: -.01em; }
.post-item p { margin: 0; color: var(--sub); font-size: 13px; }

/* ===== 診断（クイズ） ===== */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px 32px; margin-top: 28px; }
.progress { height: 8px; background: #e9ebf6; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress > i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .3s ease; }
.q-count { font-size: 13px; color: var(--sub); text-align: right; margin-bottom: 18px; }
.q-text { font-size: 19px; font-weight: 800; line-height: 1.5; margin: 4px 0 22px; letter-spacing: -.01em; }
.opt { display: block; width: 100%; text-align: left; background: #fafbff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; font-size: 15px; line-height: 1.6; cursor: pointer; transition: border-color .12s, background .12s, transform .06s; }
.opt:hover { border-color: var(--accent); background: #f3f2ff; }
.opt:active { transform: scale(.99); }
.opt b { color: var(--accent-ink); margin-right: 6px; }

/* ===== 結果 ===== */
.result-head { text-align: center; padding: 40px 0 8px; }
.result-emoji { font-size: 60px; line-height: 1; margin-bottom: 10px; }
.result-code { font-size: 13px; letter-spacing: .3em; color: var(--sub); }
.result-nick { font-size: clamp(26px, 7vw, 40px); font-weight: 900; margin: 8px 0 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.01em; }
.result-en { font-size: 13px; letter-spacing: .12em; color: var(--sub); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; }
.result-catch { font-size: 16px; color: var(--accent-ink); font-weight: 700; }
.axis-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.axis-tag { font-size: 12px; background: #eef0f8; color: var(--accent-ink); border-radius: 999px; padding: 5px 12px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; margin: 18px 0; }
.block h3 { margin: 0 0 12px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; background: #eef0f8; border-radius: 8px; padding: 6px 12px; }
.chip.warn { background: #fbeef0; color: #b4436b; }

/* ===== エージェント推薦 ===== */
.agent { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fff; }
.agent .slot { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--dark); border-radius: 6px; padding: 2px 10px; margin-bottom: 8px; }
.agent .slot.honmei { background: var(--grad); }
.agent .name { font-size: 18px; font-weight: 800; margin: 2px 0; }
.agent .meta { font-size: 12px; color: var(--sub); margin-bottom: 8px; }
.agent .meta b { color: var(--accent-ink); }
.agent .desc { font-size: 14px; margin: 0 0 14px; }

/* ===== 記事本文 ===== */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 26px; margin-top: 24px; }
.article h1 { font-size: 25px; line-height: 1.4; margin: 6px 0 18px; letter-spacing: -.01em; }
.article h2 { font-size: 19px; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article p { margin: 0 0 16px; }
.article ul { padding-left: 1.2em; }
.article .date { color: var(--sub); font-size: 13px; }
.cta-inline { text-align: center; margin: 28px 0; }

.center { text-align: center; }
.mt { margin-top: 20px; }
.muted { color: var(--sub); font-size: 13px; }

/* ===== ランディング用セクション（トップ1カラム） ===== */
.lp-section { padding: 52px 0; }
.lp-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-head { text-align: center; max-width: 40em; margin: 0 auto 34px; }
.lp-head .kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); background: #eef0ff; border-radius: 999px; padding: 5px 14px; margin-bottom: 12px; }
.lp-head h2 { font-size: clamp(22px, 5vw, 30px); margin: 0 0 10px; letter-spacing: -.02em; line-height: 1.4; }
.lp-head p { color: var(--sub); margin: 0; font-size: 15px; }

/* 特徴カード（アイコン背景を色分け＝16P風のカラフルさ） */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; text-align: center; }
.feature-card .ficon { width: 56px; height: 56px; border-radius: 16px; background: #eef0ff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.feature-card:nth-child(1) .ficon { background: #eef0ff; }
.feature-card:nth-child(2) .ficon { background: #e7f7f1; }
.feature-card:nth-child(3) .ficon { background: #fdeef7; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--sub); font-size: 14px; }

/* 4軸ビジュアル */
.axis-bars { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.axis-row .axis-name { text-align: center; font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.axis-line { display: flex; align-items: center; gap: 14px; }
.axis-line .pole { font-size: 14px; font-weight: 700; white-space: nowrap; width: 78px; }
.axis-line .pole.r { text-align: right; }
.axis-track { flex: 1; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #c7d2fe, #e9d5ff); position: relative; }
.axis-track::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow); }

/* 16タイプ グリッド */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-card { border-radius: 12px; padding: 15px 10px; text-align: center; text-decoration: none; border: 1px solid transparent; transition: transform .1s, box-shadow .2s; display: block; }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.type-card .tc-emoji { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.type-card .tc-code { font-size: 11px; letter-spacing: .18em; opacity: .65; }
.type-card .tc-nick { font-weight: 800; font-size: 13.5px; margin-top: 5px; line-height: 1.35; }
.type-card .tc-en { font-size: 9.5px; letter-spacing: .06em; opacity: .5; margin-top: 2px; text-transform: uppercase; }
.tc-a { background: #eaecff; border-color: #cdd3ff; color: #4338ca; }
.tc-b { background: #dff6ee; border-color: #b6e8d6; color: #0f766e; }
.tc-c { background: #fce3f1; border-color: #f6c8e2; color: #a21caf; }
.tc-d { background: #fff0dc; border-color: #ffdcaf; color: #b45309; }

/* 3ステップ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; text-align: center; position: relative; counter-increment: s; }
.step::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; }
.step:nth-child(1)::before { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.step:nth-child(2)::before { background: linear-gradient(135deg, #0ea5a4, #14b8a6); }
.step:nth-child(3)::before { background: linear-gradient(135deg, #db2777, #ec4899); }
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--sub); font-size: 13.5px; }

/* CTAバンド */
.cta-band { background: var(--grad); color: #fff; border-radius: 20px; padding: 44px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(21px, 5vw, 28px); margin: 0 0 10px; letter-spacing: -.01em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 auto 22px; max-width: 30em; }

@media (max-width: 760px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-section { padding: 40px 0; }
}

/* ===== 比較表 ===== */
.cmp-wrap { overflow-x: auto; margin: 16px 0 22px; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.cmp-table th { background: var(--dark); color: #fff; font-weight: 700; white-space: nowrap; }
.cmp-table tbody tr:nth-child(even) { background: #f7f8fd; }
.cmp-table .svc { font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.cmp-table .tag { display: inline-block; font-size: 11px; background: #eef0f8; color: var(--accent-ink); border-radius: 6px; padding: 2px 8px; }
