/* =============================================
   転職ガイドナビ - style.css
   情報サイト王道デザイン（infobyinfo.com準拠）
   ============================================= */

/* ---------- CSS変数（カラーパレット） ---------- */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1340a8;
  --primary-light: #e8f0fe;
  --accent:        #f97316;
  --accent-light:  #fff7ed;
  --success:       #16a34a;
  --text-main:     #1a1a2e;
  --text-sub:      #555770;
  --text-muted:    #5a6272;
  --border:        #e2e6f0;
  --bg:            #f5f7fb;
  --bg-white:      #ffffff;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.13);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --font: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'MS PGothic', sans-serif;
}

/* ---------- リセット & ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 20px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- レイアウト ---------- */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.inner--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  line-height: 1.3;
}
.logo-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: background 0.2s, color 0.2s;
}
.header-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.header-nav a.active { background: var(--primary); color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* PR表示（ロゴとナビの間・ヘッダー内固定） */
.header-pr {
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  background: #fff5f5;
  border: 1px solid #fecaca;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* =============================================
   BREADCRUMB（パンくず）
   ============================================= */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumb .inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-sub); }

/* =============================================
   HERO（各ページ共通）
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0e3fa3 60%, #1a56db 100%);
  color: #fff;
  padding: 52px 0 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .inner { position: relative; }
.page-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.page-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
}
.page-hero__desc {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   SECTION 共通
   ============================================= */
.section { padding: 52px 0; }
.section--white { background: var(--bg-white); }
.section--gray  { background: var(--bg); }

.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  color: var(--text-main);
  line-height: 1.4;
}
.section-heading--accent { border-left-color: var(--accent); }

.section-title-center {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.section-title-center span { color: var(--primary); }
.section-desc-center {
  text-align: center;
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 32px;
}

/* =============================================
   カテゴリグリッド（トップページ）
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  display: block;
  color: var(--text-main);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text-main);
}
.category-card__icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.category-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.category-card__count { font-size: 0.82rem; color: var(--text-muted); }
.category-card__hot { font-size: 0.72rem; font-weight: 700; color: var(--accent); margin-left: 4px; }

/* =============================================
   サービスカード（ランキングページ）
   ============================================= */
.service-list { display: flex; flex-direction: column; gap: 24px; }

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card--top1 { border-left: 5px solid #f59e0b; }
.service-card--top2 { border-left: 5px solid #94a3b8; }
.service-card--top3 { border-left: 5px solid #b45309; }

.service-card__header {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.service-card__logo {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.service-card__name { font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.service-card__tagline { font-size: 0.9rem; color: var(--text-sub); margin-top: 4px; }
.service-card__stars { font-size: 1.1rem; margin-top: 4px; color: #f59e0b; letter-spacing: 2px; }
.service-card__stars .empty { color: #cbd5e1; }
.service-card__rank-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rank-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
}
.rank-badge--1 { background: #f59e0b; color: #fff; }
.rank-badge--2 { background: #94a3b8; color: #fff; }
.rank-badge--3 { background: #b45309; color: #fff; }
.rank-badge--other { background: var(--border); color: var(--text-sub); }
.service-card__jobs {
  text-align: center; font-size: 0.78rem;
  color: var(--text-muted); line-height: 1.4;
}
.service-card__jobs strong {
  display: block; font-size: 0.95rem;
  font-weight: 700; color: var(--primary);
}

.service-card__body { display: grid; grid-template-columns: 1fr 1fr; }
.service-card__features { padding: 20px 26px; border-right: 1px solid var(--border); }
.service-card__features h4 {
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.service-card__features li {
  font-size: 1rem; color: var(--text-main);
  padding: 5px 0 5px 22px;
  position: relative; line-height: 1.6;
}
.service-card__features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}
.service-card__info { padding: 20px 26px; display: flex; flex-direction: column; gap: 14px; }
.info-item__label {
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 4px;
}
.info-item__text { font-size: 1rem; color: var(--text-main); line-height: 1.6; }
.info-item__text--good { color: var(--success); }
.info-item__text--bad  { color: var(--text-sub); }

.service-card__recommend {
  background: var(--primary-light);
  padding: 11px 26px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
.service-card__footer {
  padding: 18px 26px;
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
}

/* PRバッジ（インライン） */
.pr-badge-inline {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  background: #fff5f5; color: #dc2626;
  border: 1px solid #fecaca;
  padding: 1px 7px; border-radius: 4px;
  vertical-align: middle; margin-left: 8px;
}

/* =============================================
   CTAボタン
   ============================================= */
.cta-btn-primary {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1.05rem;
  padding: 14px 20px; border-radius: 30px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.cta-btn-primary:hover {
  background: #ea6c0e; transform: scale(1.02);
  text-decoration: none; color: #fff;
}
.cta-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-white);
  border: 2px solid var(--primary); color: var(--primary);
  font-weight: 700; font-size: 0.9rem;
  padding: 12px 20px; border-radius: 30px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none; white-space: nowrap;
}
.cta-btn-secondary:hover {
  background: var(--primary-light);
  text-decoration: none; color: var(--primary);
}

/* =============================================
   アドバイスボックス
   ============================================= */
.advice-box {
  background: var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  font-size: 1rem; line-height: 1.8;
  color: var(--text-main); margin-bottom: 32px;
}
.advice-box strong { color: var(--primary-dark); }

.note-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.9rem; line-height: 1.8;
  color: var(--text-sub); margin-top: 32px;
}

/* =============================================
   他カテゴリ誘導リンク
   ============================================= */
.related-cat-list {
  display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
}
.related-cat-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-white);
  border: 1px solid var(--border); border-radius: 30px;
  padding: 8px 20px;
  font-size: 1rem; font-weight: 700; color: var(--primary);
  transition: all 0.2s; text-decoration: none;
}
.related-cat-link:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary); text-decoration: none;
}

/* 選び方コラム */
.howto-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px; margin-top: 40px;
}
.howto-section h2 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 20px; padding-left: 14px;
  border-left: 4px solid var(--accent);
  color: var(--text-main);
}
.howto-section p {
  font-size: 1rem; line-height: 1.9; margin-bottom: 16px;
}
.howto-section p strong { color: var(--primary-dark); }

/* =============================================
   トップ特集・ピックアップ
   ============================================= */
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pickup-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px; display: block;
  color: var(--text-main);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.pickup-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--primary);
  transform: translateY(-3px); text-decoration: none; color: var(--text-main);
}
.pickup-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.pickup-card__name { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pickup-card__desc { font-size: 0.9rem; color: var(--text-sub); line-height: 1.7; }
.pickup-card__arrow { margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--accent); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-box {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm);
}
.feature-box__icon { font-size: 2rem; margin-bottom: 12px; }
.feature-box__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.feature-box__desc { font-size: 0.9rem; color: var(--text-sub); line-height: 1.7; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0f172a; color: #94a3b8;
  padding: 48px 0 24px; margin-top: 60px; font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer-logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-about p { line-height: 1.8; }
.footer-links h4 { color: #e2e8f0; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: #94a3b8; font-size: 1rem; transition: color 0.2s; }
.footer-links ul li a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  border-top: 1px solid #1e293b; padding-top: 20px;
  text-align: center; color: #94a3b8; font-size: 0.88rem; line-height: 1.8;
}
.footer-note { font-size: 0.82rem; color: #64748b; margin-top: 10px; line-height: 1.7; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column; padding: 16px;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-md); z-index: 99;
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 16px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .header-pr { display: none; }

  .service-card__header {
    grid-template-columns: 50px 1fr;
    padding: 16px 18px; gap: 12px;
  }
  .service-card__rank-wrap { display: none; }
  .service-card__body { grid-template-columns: 1fr; }
  .service-card__features { border-right: none; border-bottom: 1px solid var(--border); }
  .service-card__footer { flex-direction: column; }
  .cta-btn-primary, .cta-btn-secondary { width: 100%; justify-content: center; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-section { padding: 22px 18px; }
  .page-hero { padding: 38px 0 34px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  html { font-size: 18px; }
  .service-card__name { font-size: 1.1rem; }
}
