/*
Theme Name: キャリアの非常口 LP
Theme URI: https://career-hijoguchi.com/
Author: キャリアの非常口
Description: 「キャリアの非常口」専用の比較・ランキング型LPテーマ。有効化するだけでトップページにLPが表示されます。退職代行などのサービスを複数社、比較表とおすすめカードで見せられます。文言・リンク・バナー画像は「外観 → カスタマイズ」から編集できます。白基調＋ティールブルーの清潔感のあるデザインで、軽快に動きます。
Version: 3.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: career-hijoguchi
*/

/* =========================================================
   カラー・デザイン設定（白基調 × 信頼のティールブルー）
   ※色を変えたいときはここの値だけ書き換えればOK
   ========================================================= */
:root {
  --bg:         #ffffff; /* 背景（白） */
  --bg-2:       #f5f7f8; /* セクションの淡い背景 */
  --bg-soft:    #eef4f5; /* アクセントの薄い面（ティール寄り） */
  --ink:        #1f2328; /* 文字色（濃い墨） */
  --ink-soft:   #5b626b; /* 補足の文字色 */
  --ink-mute:   #8b9097; /* さらに薄い文字 */
  --accent:     #2f6f7e; /* メイン（ティールブルー） */
  --accent-deep:#245865; /* 濃いめ（ボタンホバー） */
  --accent-tint:#e6f0f1; /* アクセントのごく薄い面 */
  --line:       #e7e9ed; /* 繊細な区切り線 */
  --card:       #ffffff;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 2px 10px rgba(20,32,40,.05), 0 10px 30px rgba(20,32,40,.05);
  --maxw:       760px;

  /* 順位バッジ（金・銀・銅／メタリックなグラデで上品に） */
  --gold:   linear-gradient(135deg,#f3d68d 0%,#caa14a 100%);
  --silver: linear-gradient(135deg,#e6e9ed 0%,#b7bdc6 100%);
  --bronze: linear-gradient(135deg,#e6b487 0%,#b3754a 100%);
  --gold-ink:#6b521b; --silver-ink:#4b5159; --bronze-ink:#6b4326;
}

/* =========================================================
   ベース（システムフォント＝軽量。字間・行間で品を出す）
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ページ全体を1枚の紙のように中央寄せ */
.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
}

.wrap { padding: 0 22px; }

/* セクション共通の見出し */
.section-head {
  text-align: center;
  margin: 0 0 26px;
}
.section-head__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-head__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   ① ファーストビュー
   ========================================================= */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: 30px 22px 44px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero__pr {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 7px;
  background: #fff;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 8px 0 16px;
}
.hero__title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.hero__sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 12px;
}
.hero__trust {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 460px;
}
.hero__updated {
  display: inline-block;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.hero__updated::before { content: "🕒 "; }

/* =========================================================
   ② 選び方
   ========================================================= */
.howto { padding: 48px 22px 8px; }
.howto__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: howto;
}
.howto__item {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 56px;
  margin: 10px 0;
  font-size: 14.5px;
  counter-increment: howto;
}
.howto__item::before {
  content: counter(howto);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   ③ 比較表
   ========================================================= */
.compare { padding: 48px 22px 8px; }
.compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 460px;
  background: var(--card);
  font-size: 13px;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 12px;
  text-align: center;
  vertical-align: middle;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare th:last-child, .compare td:last-child { border-right: none; }

/* 左の項目ラベル列（横スクロールしても残す） */
.compare__rowhead {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-2);
  color: var(--ink-soft);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  min-width: 96px;
}
/* サービス名ヘッダ */
/* 比較表ヘッダー：順位ではなく“自分に合うタイプ”で選ぶカラータブ
   3社を横並びの対等な選択肢として見せる（1位/2位/3位の上下は付けない） */
.compare__service {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  min-width: 116px;
}
/* 各サービスのヘッダー色（対等な3タイプ：紺／金／ローズ） */
.compare__service:nth-child(2) { background: #2f3c5c; } /* 交渉・請求で選ぶ */
.compare__service:nth-child(3) { background: #9c7b45; } /* 早さ・実績で選ぶ */
.compare__service:nth-child(4) { background: #b46b86; } /* 女性で選ぶ */

/* ヘッダー上部の「◯◯で選ぶ」タイプ見出しチップ */
.compare__service .svc-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 6px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 各サービスの列をごく淡い同系色に塗り分け（縦帯として比較しやすく） */
.compare td:nth-child(2) { background: #f4f5f9; } /* 紺系 */
.compare td:nth-child(3) { background: #faf6ec; } /* 金系 */
.compare td:nth-child(4) { background: #f9f0f4; } /* ローズ系 */

/* 「対応」を表すチェック印（全国対応・無料相談など） */
.compare .ok { color: #3f9a6a; font-weight: 800; font-size: 15px; }
.compare__price { font-weight: 700; color: var(--ink); }
.compare__cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 6px;
}
.compare__note {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin: 12px 2px 0;
  line-height: 1.7;
}

/* =========================================================
   ④ おすすめカード
   ========================================================= */
.ranking { padding: 52px 22px 16px; }
.ranking__lead { /* 任意の小見出し */ }

.rcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px 26px;
  margin: 30px 0;
}
.rcard--top {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
/* 1位の「イチオシ」リボン */
.rcard__ribbon {
  position: absolute;
  top: -12px; left: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(36,88,101,.25);
}

/* 順位バッジ（金銀銅） */
.rcard__rank {
  position: absolute;
  top: 22px; right: 20px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.rcard__rank .lbl { font-size: 8px; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.rcard__rank .num { font-size: 21px; font-weight: 800; }
.rank-1 { background: var(--gold);   color: var(--gold-ink); }
.rank-2 { background: var(--silver); color: var(--silver-ink); }
.rank-3 { background: var(--bronze); color: var(--bronze-ink); }

.rcard__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 4px 56px 14px 0; /* 右はバッジ分あける */
  line-height: 1.4;
}

/* バナー画像（16:9固定。未設定はプレースホルダ） */
.rcard__banner {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}
.rcard__banner img { width: 100%; height: 100%; object-fit: cover; }
.rcard__banner.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  background:
    repeating-linear-gradient(45deg, #f1f4f5 0 12px, #eef2f3 12px 24px);
}

/* こんな方におすすめ */
.rcard__forwho {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.rcard__forwho b {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 2px;
}

/* 特徴タグ */
.rcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.rcard__tag {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* メリット箇条書き（チェックはCSSで描画） */
.rcard__merits { list-style: none; margin: 0 0 18px; padding: 0; }
.rcard__merits li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.rcard__merits li:last-child { border-bottom: none; }
.rcard__merits li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* 料金 */
.rcard__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--bg-2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.rcard__price .lbl { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.rcard__price .val { font-size: 19px; font-weight: 800; color: var(--accent-deep); }

/* CTAボタン */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 16px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(36,88,101,.22);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn .arrow { font-size: 17px; opacity: 0.9; }

.rcard__note {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 12px;
  text-align: center;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 40px 24px 48px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--bg);
}
.site-footer__brand {
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 10px;
}
.site-footer__info { margin: 4px 0; }
.site-footer__pr {
  margin-top: 18px;
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* =========================================================
   レスポンシブ（スマホ最優先・大きい画面で少し拡大）
   ========================================================= */
@media (min-width: 600px) {
  .hero { padding-top: 40px; }
  .hero__title { font-size: 31px; }
  .section-head__title { font-size: 24px; }
  .compare table { font-size: 13.5px; }
}
