/* ==========================================================================
   第二新卒やり直しのススメ - 共通スタイルシート
   完全スマホファースト（幅375px完全適合・横スクロールゼロ保証）
   実在No.1サイト（第二新卒ジョブリッジ）TTP構造準拠
   ========================================================================== */

:root {
  --primary: #0f766e;          /* 安心・再出発のディープティール */
  --primary-dark: #115e59;     /* ダークティール */
  --primary-light: #14b8a6;    /* ライトティール */
  --primary-bg: #f0fdfa;       /* 爽やかなティール背景 */
  --accent: #ea580c;           /* 行動を促すビビッドオレンジ */
  --accent-hover: #c2410c;
  --gold: #d97706;             /* 1位・完全無料バッジ */
  --gold-bg: #fffbeb;
  --danger: #dc2626;           /* デメリット・注意点 */
  --danger-bg: #fef2f2;
  --success: #059669;          /* メリット・おすすめ */
  --success-bg: #ecfdf5;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.78;
  color: var(--text-main);
  background-color: var(--bg-page);
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* PR告知バー */
.ad-disclosure-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 10px;
}

/* ヘッダー ＆ ピル型横スクロールナビ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 14px 8px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.site-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-logo:hover {
  text-decoration: none;
}

.header-diag-btn {
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-diag-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.pill-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar {
  display: none;
}

.pill-nav a {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pill-nav a.active,
.pill-nav a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  text-decoration: none;
}

/* メインコンテナ */
.main-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 14px 48px;
}

/* パンくず */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ヒーロー / ファーストビュー */
.hero-box {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.update-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-box h1 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-hero-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 3px 0 #9a3412;
}

.btn-hero-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--primary-dark);
}

.btn-hero-secondary:hover {
  background: var(--primary-bg);
  text-decoration: none;
}

/* 記事タイトルエリア（個別記事用） */
.article-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.article-header .update-badge {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid #99f6e4;
}

.article-header h1 {
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 12px;
}

.quick-answer-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text-main);
}

.quick-answer-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

/* セクション共通 */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

h2 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--text-main);
  padding-left: 12px;
  border-left: 5px solid var(--primary);
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 18px 0 10px;
}

p {
  font-size: 15px;
  margin-bottom: 12px;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

li {
  font-size: 14.5px;
  margin-bottom: 6px;
}

/* 状況別タブ切替（TTP勝ちパターン②） */
.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.tab-btn {
  appearance: none;
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* TOP3 カード */
.rank-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  background: #ffffff;
}

.rank-card.rank-1 {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 30%);
}

.rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rank-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-num {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.rank-1 .rank-num {
  background: var(--gold);
}

.rank-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
}

.score-pill {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid #99f6e4;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.free-pill {
  background: var(--gold-bg);
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.rank-points {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 12px;
}

.rank-points li {
  font-size: 13.5px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
}

.rank-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* 1行収束ボタン ＋ マイクロコピー */
.action-wrap {
  margin-top: 12px;
  text-align: center;
}

.action-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 10px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 3px 0 #9a3412;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.micro-copy {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

/* 1分適性診断（縦1列均一スマホボタン） */
.diag-box {
  background: #f0fdfa;
  border: 2px solid #5eead4;
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  margin-bottom: 20px;
}

.diag-step-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.diag-question {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.diag-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-opt-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.diag-opt-btn:hover,
.diag-opt-btn:active {
  background: var(--primary);
  color: #ffffff;
}

.diag-result {
  display: none;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  margin-top: 10px;
}

.diag-result.show {
  display: block;
}

.diag-reset-btn {
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  cursor: pointer;
}

/* 1列目Sticky固定 横スワイプ比較表 */
.table-scroll-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 4px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border-color);
  padding: 10px 8px;
  vertical-align: middle;
  text-align: left;
}

.compare-table thead th {
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8fafc;
  font-weight: 800;
  min-width: 124px;
  max-width: 140px;
  border-right: 2px solid var(--border-color);
}

.compare-table thead th:first-child {
  background: var(--primary-dark);
  z-index: 3;
}

.table-mini-btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* メリット・デメリット対比ボックス */
.merit-demerit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}

.merit-box {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.demerit-box {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.box-heading {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.merit-box .box-heading {
  color: #065f46;
}

.demerit-box .box-heading {
  color: #991b1b;
}

/* 数値ハイライト・公的データ枠 */
.stat-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 12px 0 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.stat-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
}

.stat-num {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* FAQアコーディオン */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.faq-a {
  display: none;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.faq-item.open .faq-a {
  display: block;
}

/* 関連記事リンク一覧 */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.article-link-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
}

.article-link-card:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  text-decoration: none;
}

.article-link-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-bg);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.article-link-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.45;
}

/* フッター */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 24px 16px;
  font-size: 12.5px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #e2e8f0;
}

@media (min-width: 700px) {
  .hero-box h1 { font-size: 26px; }
  .article-header h1 { font-size: 24px; }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
  .hero-actions { flex-direction: row; }
  .merit-demerit-grid { grid-template-columns: 1fr 1fr; }
  .article-list { grid-template-columns: 1fr 1fr; }
}
