/* CareerBridge — 大学×企業 就職ルートDB
   トーン: 紺の見出し・水色のアクセント・黄色マーカー・赤のCTA・灰色地に白カード */
:root {
  --navy: #123c62;
  --blue: #14a1e3;
  --blue-deep: #005bac;
  --blue-pale: #f1faff;
  --blue-light: #e8f7ff;
  --text: #3f4549;
  --muted: #666d71;
  --line: #d2dadf;
  --bg: #f6f6f6;
  --white: #fff;
  --yellow: #f8e067;
  --yellow-pale: #fde89a;
  --yellow-box: #fff7d1;
  --red: #f44741;
  --red-deep: #da3a35;
  --orange: #ef6c1a;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック", "メイリオ", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue-deep); }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* マーカー・強調 */
.marker { background: linear-gradient(transparent 58%, var(--yellow) 58%); font-weight: 700; }
.em-red { color: var(--red); font-weight: 700; }
.num { font-family: "Open Sans", "Noto Sans JP", sans-serif; font-weight: 800; }

/* PR表記 */
.pr-bar { background: var(--white); border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); padding: 4px 0; }

/* ヘッダー */
.site-header { background: var(--white); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.site-logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; }
.site-logo b { color: var(--blue); }
.site-logo small { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.85rem; padding: 6px 10px; border-radius: 6px; }
.site-nav a:hover { background: var(--blue-pale); }

/* ヒーロー */
.hero { background: linear-gradient(135deg, #e8f7ff 0%, #f1faff 55%, #ffffff 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { position: relative; padding: 36px 16px 40px; text-align: center; }
.hero-date { position: absolute; top: 0; left: 16px; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 0.8rem; padding: 6px 12px 8px; line-height: 1.3; }
.hero-ribbon { display: inline-block; background: var(--navy); color: var(--white); font-weight: 700; font-size: 0.85rem; padding: 6px 18px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { margin: 0 0 6px; color: var(--navy); font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.35; font-weight: 900; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { margin: 0 auto 22px; max-width: 680px; font-size: 0.95rem; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; margin: 0 auto; }
.hero-point { background: var(--white); border-radius: 10px; box-shadow: 0 3px 10px rgba(18,60,98,0.08); padding: 14px 8px 12px; }
.hero-point .check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-deep); color: var(--white); font-size: 0.75rem; font-weight: 900; }
.hero-point strong { display: block; color: var(--navy); font-size: 1.05rem; font-weight: 900; margin-top: 4px; background: linear-gradient(transparent 60%, var(--yellow) 60%); width: fit-content; margin-left: auto; margin-right: auto; }
.hero-point span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* 検索 */
.finder { background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(18,60,98,0.1); padding: 18px; margin: -22px auto 0; max-width: 760px; position: relative; }
.finder-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: end; }
.finder label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--navy); }
.finder select { width: 100%; font: inherit; font-size: 0.95rem; padding: 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--text); }
.finder .arrow { color: var(--blue); font-weight: 900; padding-bottom: 10px; }
.finder-note { font-size: 0.75rem; color: var(--muted); margin: 8px 0 0; }

/* セクション */
.section { padding: 44px 0; }
.panel { background: var(--white); border-radius: 4px; padding: 32px 24px; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-head .pill { display: inline-block; background: var(--orange); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 3px 16px; border-radius: 999px; position: relative; }
.sec-head .pill::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--orange); border-bottom: 0; }
.sec-head h2 { margin: 12px 0 0; color: var(--navy); font-size: clamp(1.35rem, 3.6vw, 1.9rem); font-weight: 900; line-height: 1.45; }
.sec-head h2 .big { color: var(--blue); font-size: 1.3em; font-family: "Open Sans", sans-serif; }
.sec-head p { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.sec-label { display: block; text-align: center; background: var(--bg); color: var(--navy); font-weight: 700; padding: 8px; margin-bottom: 22px; font-size: 0.9rem; }

/* 大学チップ */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.chip { display: block; text-align: center; text-decoration: none; background: var(--white); border: 2px solid var(--blue); color: var(--navy); font-weight: 700; padding: 10px 8px; border-radius: 8px; }
.chip:hover { background: var(--blue-pale); color: var(--navy); }
.chip small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.chip.is-soon { border-color: var(--line); color: var(--muted); pointer-events: none; background: #fafafa; }

/* ペアカード */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pair-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.pair-card .rank { position: absolute; top: -14px; left: 16px; background: var(--navy); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.pair-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.pair-route .node { background: var(--blue-pale); border-radius: 8px; padding: 8px 4px; font-weight: 900; color: var(--navy); font-size: 0.95rem; line-height: 1.4; }
.pair-route .to { color: var(--blue); font-weight: 900; }
.pair-stat { text-align: center; font-size: 0.85rem; }
.pair-stat .num { color: var(--red); font-size: 1.8rem; }
.pair-card p { margin: 0; font-size: 0.88rem; }
.pair-card .btn { margin-top: auto; }
.pair-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .pair-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pair-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.pair-card .ratio { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: -6px; }

/* 希望 → 現実 → 打ち手 */
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.story > div { border-radius: 10px; padding: 14px 16px; min-width: 0; }
.story .s-label { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--white); border-radius: 999px; padding: 1px 12px; margin-bottom: 6px; }
.story p { margin: 0; font-size: 0.9rem; }
.story .hope { background: var(--blue-pale); }
.story .hope .s-label { background: var(--blue); }
.story .real { background: #fdeeee; }
.story .real .s-label { background: var(--red); }
.story .move { background: var(--yellow-box); }
.story .move .s-label { background: var(--orange); }
.ratio-big { font-family: "Open Sans", sans-serif; font-weight: 800; color: var(--red); font-size: 1.6rem; }

/* ボタン（全ボタン共通：影で浮かせ、カーソルを合わせると沈む） */
.btn { display: block; text-align: center; text-decoration: none; font-weight: 700; border-radius: 8px; padding: 12px 16px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.08s ease; }
.btn-cta { background: var(--red); color: var(--white); box-shadow: 0 4px 0 #b9302b; }
.btn-cta:hover, .btn-cta:focus-visible { background: var(--red-deep); color: var(--white); transform: translateY(3px); box-shadow: 0 1px 0 #b9302b; }
.btn-main { background: var(--orange); color: var(--white); box-shadow: 0 4px 0 #b85212; }
.btn-main:hover, .btn-main:focus-visible { background: #d95f12; color: var(--white); transform: translateY(3px); box-shadow: 0 1px 0 #b85212; }
.btn:active { transform: translateY(4px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* 3ステップ */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--white); border-top: 4px solid var(--blue); border-radius: 0 0 10px 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.step .step-no { font-family: "Open Sans", sans-serif; color: var(--blue); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; }
.step h3 { margin: 4px 0 8px; color: var(--navy); font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.88rem; }

/* 要チェックボックス */
.check-box { position: relative; border: 2px solid var(--red); border-radius: 4px; padding: 26px 18px 16px; margin: 28px 0 20px; }
.check-box .tab { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--white); font-weight: 700; font-size: 0.8rem; padding: 2px 14px; border-radius: 3px; white-space: nowrap; }
.check-box p.lead { margin: 0; color: var(--navy); font-weight: 900; font-size: 1.05rem; }

/* 黄色チェックリスト */
.yellow-list { background: var(--yellow-pale); border-radius: 4px; padding: 16px 18px; margin: 16px 0; list-style: none; }
.yellow-list li { position: relative; padding-left: 26px; font-weight: 700; color: var(--navy); font-size: 0.92rem; margin: 4px 0; }
.yellow-list li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; background: var(--blue); color: var(--white); font-size: 0.7rem; line-height: 17px; text-align: center; border-radius: 3px; }

/* 編集部のポイント */
.point-box { border: 6px solid var(--yellow); background: var(--white); margin: 30px 0; position: relative; padding: 30px 20px 18px; }
.point-box .label { position: absolute; top: -18px; left: -6px; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 0.9rem; padding: 6px 28px 6px 14px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.point-box p { margin: 0 0 8px; }

/* 記事 */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 48px; }
.breadcrumb { font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.article { background: var(--white); padding: 28px 24px 36px; border-radius: 4px; }
.article-head .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; background: var(--navy); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 3px; }
.tag.light { background: var(--blue-light); color: var(--blue-deep); }
.article h1 { color: var(--navy); font-size: clamp(1.35rem, 3.8vw, 1.85rem); line-height: 1.5; margin: 12px 0 8px; font-weight: 900; }
.article-meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: 0 14px; flex-wrap: wrap; margin-bottom: 20px; }
.article h2 { background: var(--navy); color: var(--white); font-size: 1.2rem; line-height: 1.5; padding: 12px 16px; margin: 44px 0 18px; border-radius: 3px; }
.article h3 { color: var(--navy); border-left: 5px solid var(--blue); padding: 2px 0 2px 12px; font-size: 1.08rem; margin: 28px 0 12px; }
.article p { margin: 0 0 1em; }
.article ul, .article ol { padding-left: 1.4em; }

/* 結論ボックス */
.summary { border: 2px solid var(--navy); border-radius: 6px; margin: 24px 0; overflow: hidden; }
.summary-title { background: var(--navy); color: var(--white); font-weight: 700; padding: 8px 14px; font-size: 0.95rem; }
.summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.summary-stat { padding: 14px 10px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-stat:last-child { border-right: 0; }
.summary-stat .label { display: block; font-size: 0.75rem; color: var(--muted); }
.summary-stat .value { display: block; color: var(--navy); font-weight: 900; font-size: 1.05rem; line-height: 1.45; }
.summary-stat .value .num { color: var(--red); font-size: 1.9rem; }
.summary-body { padding: 14px 16px; font-size: 0.92rem; }
.summary-body p { margin: 0; }

/* 目次 */
.toc { background: var(--blue-pale); border: 1px solid #cfe9f7; border-radius: 6px; padding: 16px 20px; margin: 24px 0; }
.toc-title { font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 0.92rem; }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.scroll-hint { font-size: 0.72rem; color: var(--muted); margin: 0 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); min-width: 480px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
thead th { background: var(--navy); color: var(--white); font-weight: 700; text-align: center; }
tbody th { background: var(--bg); color: var(--navy); font-weight: 700; white-space: nowrap; }
td.n { text-align: right; font-family: "Open Sans", sans-serif; font-weight: 700; white-space: nowrap; }
tr.is-focus td, tr.is-focus th { background: #fff8d6; }
.bar { display: inline-block; height: 10px; background: var(--blue); border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.source { font-size: 0.75rem; color: var(--muted); margin-top: -6px; }

/* 体験談 */
.voice { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--blue-pale); border-radius: 10px; padding: 16px; margin: 16px 0; }
.voice .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); display: grid; place-items: center; color: var(--blue); font-weight: 900; font-size: 0.75rem; text-align: center; line-height: 1.3; }
.voice .who { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.voice.is-pending { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f2f2f2 10px, #f2f2f2 20px); border: 1px dashed var(--line); }

/* 広告CTA */
.ad-box { border: 2px solid var(--blue); border-radius: 10px; padding: 18px; margin: 24px 0; background: var(--white); }
.ad-box .pr { font-size: 0.7rem; color: var(--muted); }
.ad-box h4 { margin: 2px 0 8px; color: var(--navy); font-size: 1.05rem; }
.ad-box .btn { margin-top: 12px; }

/* 関連ペア */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related a, .related span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; text-decoration: none; color: var(--navy); font-weight: 700; background: var(--white); }
.related span { color: var(--muted); font-weight: 500; }
.related small { display: block; color: var(--muted); font-weight: 500; font-size: 0.72rem; }

/* 固定ページ */
.page { background: var(--white); max-width: 860px; margin: 24px auto 48px; padding: 28px 24px; border-radius: 4px; }
.page h1 { color: var(--navy); font-size: 1.6rem; margin-top: 0; }
.page h2 { color: var(--navy); border-bottom: 3px solid var(--blue); padding-bottom: 4px; font-size: 1.15rem; margin-top: 32px; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; padding: 10px; border: 2px solid var(--line); border-radius: 8px; }
.contact-form button { font: inherit; border: 0; cursor: pointer; }

/* フッター */
.site-footer { background: var(--navy); color: #dbe6ef; padding: 28px 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner strong { color: var(--white); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: #dbe6ef; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.copyright { text-align: center; font-size: 0.72rem; color: #9fb3c6; margin-top: 18px; }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero-inner { padding-top: 44px; }
  .hero-points { gap: 6px; }
  .hero-point strong { font-size: 0.9rem; }
  .finder-row { grid-template-columns: 1fr; }
  .finder .arrow { display: none; }
  .step-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .summary-stats { grid-template-columns: 1fr; }
  .summary-stat { border-right: 0; }
  .panel, .article, .page { padding: 22px 14px; }
  .site-nav a { padding: 4px 6px; font-size: 0.78rem; }
  .article h2 { font-size: 1.05rem; }
}
