/* TechValue｜エンジニア市場価値診断 */
:root {
  --navy: #16294a;
  --navy-deep: #0c1c36;
  --navy-light: #22406e;
  --teal: #00b3c8;
  --teal-green: #14b8a6;
  --teal-dark: #0d9488;
  --orange: #f97316;
  --orange-dark: #ea6a0a;
  --bg: #f2f5f9;
  --card: #ffffff;
  --text: #2b3648;
  --muted: #64748b;
  --border: #d9e0e9;
  --link: #1d4ed8;
  --cream: #fdf8ec;
  --cream-border: #f0e3c4;
  --radius: 14px;
  --shadow: 0 3px 14px rgba(22, 41, 74, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%; /* iOS横向き時の勝手な文字拡大を防ぐ */
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-tap-highlight-color: rgba(20, 184, 166, 0.15);
}

.container { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.accent { color: var(--teal); }

a { color: var(--link); }

/* ---------- PR表記（ステマ規制対応・全広告ページ最上部） ---------- */
.pr-notice {
  background: var(--navy-deep);
  color: #b9c8dc;
  font-size: 10.5px;
  text-align: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- ヘッダー / フッター ---------- */
.site-header {
  background: var(--navy-deep);
  padding: 13px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 0.3px; }
.brand-accent { color: var(--teal); }
.brand-link { text-decoration: none; }

.header-pill {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  background: var(--navy-deep);
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  padding: 22px 0;
  margin-top: 48px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #c6d4e4;
  font-size: 12px;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
  font-size: 16px;
  padding: 14px 32px;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-primary {
  background: linear-gradient(180deg, #17b3a6, var(--teal-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.btn-cv {
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(249, 115, 22, 0.35);
}
.btn-lg { font-size: 18px; padding: 17px 20px; width: 100%; max-width: 440px; }

.btn-ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 26px;
}
.btn-ghost:disabled { opacity: 0.35; cursor: default; transform: none; }

/* ---------- ヒーロー（ダークネイビー・人物写真背景） ---------- */
.hero-dark {
  background:
    linear-gradient(90deg, rgba(12, 28, 54, 0.9) 0%, rgba(12, 28, 54, 0.6) 45%, rgba(12, 28, 54, 0.05) 100%),
    url("hero-bg.jpg") right center / cover no-repeat,
    var(--navy-deep);
  color: #fff;
  padding: 30px 0 26px;
  overflow: hidden;
}
.hero-inner { position: relative; }
.hero-copy { position: relative; z-index: 2; max-width: 62%; }
.hero-copy h1 {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-sub { font-size: 13px; color: #d4e0ee; line-height: 1.7; }

.hero-sample {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 14px 16px 10px;
  text-align: center;
  max-width: 340px;
  margin-top: 16px;
  backdrop-filter: blur(4px);
}
.hero-sample-label { font-size: 12px; font-weight: 700; color: #d4e0ee; }
.hero-sample-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.3;
  letter-spacing: -1px;
}
.hero-sample-unit { font-size: 18px; margin-left: 2px; }
.hero-sample-gap { font-size: 15px; font-weight: 800; color: #ffab63; }
.hero-sample-note { font-size: 10px; color: #93a6bd; margin-top: 4px; }

.hero-badges {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  margin-top: 14px;
}
.hero-badges li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 9px 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #e6eef7;
  line-height: 1.5;
}
.badge-icon { display: block; font-size: 16px; margin-bottom: 2px; }

/* ---------- おすすめ対象カード＋CTA ---------- */
.recommend-card { text-align: center; margin-top: 18px; }
.center-title { text-align: center; }
.recommend-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  border: none;
  padding: 0;
  margin-bottom: 14px;
}
.check-list {
  list-style: none;
  text-align: left;
  max-width: 340px;
  margin: 0 auto 18px;
}
.check-list li {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0 6px 30px;
  position: relative;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--teal-green);
  border-radius: 50%;
}
.time-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- SEOコンテンツ ---------- */
.seo-content { margin-top: 16px; }
.content-block {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  margin-bottom: 14px;
}
.content-block h2 {
  font-size: 19px;
  color: var(--navy);
  border-left: 4px solid var(--teal-green);
  padding-left: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.content-block p { font-size: 14px; margin-bottom: 12px; }
.content-block p:last-child { margin-bottom: 0; }

.factor-list { padding-left: 22px; margin-bottom: 12px; }
.factor-list li { font-size: 14px; margin-bottom: 10px; }
.factor-list li strong { color: var(--navy); }

.content-cta-wrap { text-align: center; margin-top: 18px; }

/* Q&Aアコーディオン */
.faq-acc { border-bottom: 1px dashed var(--border); }
.faq-acc summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding: 14px 34px 14px 28px;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--teal-green);
  border-radius: 6px;
}
.faq-acc summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
}
.faq-acc[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 4px 16px 28px; }
.faq-body p { font-size: 13.5px; }
.faq-body .factor-list li { font-size: 13.5px; }

.operator p { font-size: 13px; color: var(--muted); }

/* ---------- 診断フォーム ---------- */
#quiz { padding: 28px 0 60px; }

.progress-wrap { margin-bottom: 24px; }
.progress-bar {
  height: 9px;
  background: #dde3ea;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--teal-green);
  border-radius: 999px;
  transition: width 0.3s;
}
.progress-text { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: right; }

.step { display: none; }
.step.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step h2 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }

.choice {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 15px;
}
.choice:hover { border-color: var(--teal-green); }
.choice input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  accent-color: var(--teal-green);
  flex-shrink: 0;
}
.choice:has(input:checked) {
  border-color: var(--teal-green);
  background: #f0faf9;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.quiz-nav .btn-primary { border-radius: 999px; }

/* ---------- 結果ページ ---------- */
.result { padding-top: 20px; }
.result > section { margin-bottom: 14px; }

.result-title {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.result-hero {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  text-align: center;
}
.result-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.junior-title { color: var(--navy); font-size: 24px; margin: 8px 0 14px; }
.result-note-text { font-size: 13px; color: var(--text); }
.result-hero .btn { margin-top: 18px; }

.result-hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.result-hero-main { flex: 1; min-width: 0; }

.mv-figure { color: var(--teal-dark); font-weight: 800; line-height: 1.25; }
.mv-num { font-size: 38px; letter-spacing: -1px; }
.mv-unit { font-size: 19px; margin-left: 2px; }

.gap-badge {
  display: inline-block;
  background: #fff;
  color: var(--orange-dark);
  border: 1.5px solid var(--orange);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 16px;
  margin: 8px 0 6px;
}
.current-line { font-size: 12px; color: var(--muted); }

/* 年収比較ミニグラフ */
.mv-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.chart-col { text-align: center; width: 74px; }
.chart-col p { font-size: 9.5px; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.bar { width: 34px; margin: 0 auto; border-radius: 6px 6px 0 0; }
.bar-now { background: #c3cdd9; }
.bar-mv { background: linear-gradient(180deg, #2dd4bf, var(--teal-dark)); }
.chart-arrow {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal-dark);
  align-self: flex-start;
  margin-top: 8px;
}

/* キャリアタイプ（ネイビーカード） */
.type-card {
  background: linear-gradient(135deg, var(--navy-deep), #1a3358);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.type-side {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cfe0f2;
  text-align: center;
  line-height: 1.6;
}
.type-main h2 { font-size: 19px; font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.type-icon { margin-right: 8px; }
.type-main p { font-size: 12px; color: #dbe6f1; }

/* おすすめエージェント */
.section-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.agents-note { font-size: 11px; font-weight: 600; color: var(--muted); }

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.agent-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(22, 41, 74, 0.15); }
.agent-first { border: 2px solid var(--teal-green); }

.agent-rank {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  padding: 5px 0;
}
.agent-first .agent-rank { background: var(--teal-green); }
.agent-second .agent-rank { background: #9aa7b6; }

.agent-logo {
  font-size: 28px;
  margin: 12px 0 4px;
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  background: #f2f6f9;
  border-radius: 50%;
}
.agent-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  line-height: 1.4;
  padding: 0 8px;
}
.agent-desc {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  padding: 4px 10px 10px;
  flex: 1;
}
.agent-btn {
  font-size: 13px;
  padding: 9px 24px;
  border-radius: 999px;
  color: #fff;
}
.agent-btn-teal { background: linear-gradient(180deg, #17b3a6, var(--teal-dark)); }
.agent-btn-navy { background: linear-gradient(180deg, var(--navy-light), var(--navy)); }

/* おすすめポイント */
.point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.point-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.point-label { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.point-icon { font-size: 20px; margin: 4px 0 2px; }
.point-strong { font-size: 12.5px; font-weight: 800; color: var(--navy); line-height: 1.5; }

/* メインCTA */
.main-cta { text-align: center; margin: 18px 0 14px; }
.cta-note { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* 公式バナー */
.banner-block { text-align: center; margin-top: 16px; }
.banner-block img { max-width: 100%; height: auto; }
.banner-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

/* フリーランス（＋αの選択肢）カード */
.freelance-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 14px;
}
.freelance-badge {
  display: inline-block;
  background: #e6f7f9;
  color: #0e7490;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  margin-bottom: 8px;
}
.freelance-card h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.freelance-lead { font-size: 13px; text-align: left; margin-bottom: 12px; }
.freelance-card .check-list { max-width: 100%; margin-bottom: 4px; }
.freelance-card .check-list li { font-size: 13px; font-weight: 500; }
.btn-cv-sub { margin-top: 14px; }

/* 免責ボックス */
.disclaimer-box {
  background: #e7ebf1;
  border-radius: 10px;
  padding: 13px 15px;
}
.disclaimer-box p { font-size: 11px; color: var(--muted); line-height: 1.8; }

.tracking { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 追従CTAバー ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(12, 28, 54, 0.96);
  backdrop-filter: blur(6px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(12, 28, 54, 0.3);
}
.sticky-text {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.sticky-bar .btn-cv {
  flex: 1;
  max-width: 260px;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 999px;
}
body.has-sticky-cta .site-footer { padding-bottom: 92px; }

/* ---------- 法的ページ ---------- */
.legal { padding-top: 28px; }
.legal-title { font-size: 22px; color: var(--navy); line-height: 1.5; margin-bottom: 4px; }
.legal-date { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.legal-list { padding-left: 22px; }
.legal-list li { font-size: 13.5px; margin-bottom: 8px; }
.legal-back { margin-top: 24px; }
.legal-back a { font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-back a:hover { text-decoration: underline; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .brand { font-size: 20px; }
  .hero-copy h1 { font-size: 22px; }
  .step h2 { font-size: 19px; }
  .content-block { padding: 22px 18px; }
  .mv-num { font-size: 33px; }
  .type-main h2 { font-size: 17px; }
}
@media (max-width: 380px) {
  .hero-copy { max-width: 100%; }
  /* 極小画面では文字の可読性を優先して写真の上の暗幕を強める */
  .hero-dark {
    background:
      linear-gradient(90deg, rgba(12, 28, 54, 0.94) 0%, rgba(12, 28, 54, 0.8) 55%, rgba(12, 28, 54, 0.45) 100%),
      url("hero-bg.jpg") right center / cover no-repeat,
      var(--navy-deep);
  }
  .mv-chart { display: none; }
  .point-strong { font-size: 11.5px; }
}
@media (min-width: 641px) {
  .hero-dark {
    padding: 44px 0 36px;
    /* PCでは横長にトリミングされるため、頭が切れないよう上端基準で表示。
       中央〜左の余白は画像左側のネイビー＋ネットワーク模様が広がる */
    background:
      linear-gradient(90deg, rgba(12, 28, 54, 0.9) 0%, rgba(12, 28, 54, 0.55) 45%, rgba(12, 28, 54, 0) 75%),
      url("hero-bg.jpg") right top / cover no-repeat,
      var(--navy-deep);
  }
  .hero-copy h1 { font-size: 30px; }
  .hero-sample { max-width: 380px; }
}
