/* ============================================================
   v3.0（2026-11-21 基盤改修キット1）: 共通コンポーネントの型は
   共通ベース pillar-base.css（正本）へ分離した。このファイルは
   差分（第1層トークン＋ピラー専用節＋ロゴ変種ルール）だけを持つ。
   プラグイン v3.0 が共通ベース→このファイルの順に読み込む。
   ============================================================ */

/* ============================================================
   SONAE pillar skin v1 — work-career（仕事・転職）
   「ディレクトリ以下が一つのサイト」標準の横展開（結婚に続く2ピラー目）。
   構造は結婚 pillar-marriage.css と同じ2層:
     第1層 = トークン（このピラーの色・フォント・モチーフ変数）
     第2層 = コンポーネントの型（全ピラー共通の部品の作法。
             色は必ずトークン経由で参照し、直値を書かない）
   結婚版との差は第1層（若芽グリーン＋エメラルド＋サンライズ
   アンバー、見出しは Zen Kaku Gothic New、モチーフは
   「上へ伸びるステップ」）と、ハブの計算例ボックス
   （wp-hub-calc）の追加だけ。第2層の作法は結婚と同一。

   配信の前提（2026-11-14 実測、結婚版と同じ）:
   - このファイルは body.pillar-skin-work の付いたページにだけ読み込まれる。
   - 後段に印刷される sonae-shell / sonae-dark / wp-custom-css が、対象
     コンポーネントを !important 付きで塗っている。そのため本ファイルの
     塗り（背景・文字色・罫色）は全て、ピラー接頭辞つきセレクタ＋
     !important で書く（詳細度で勝ち、順序に依存しない）。
   - ダークの信号は html.sn-dark（サイト共通トグル）。ライトは
     html:not(.sn-dark)。トークンは body 上でモードごとに切り替わり、
     コンポーネント側は var() 参照だけなので両モード共通で書ける。
   ============================================================ */

/* ==========================================================
   第1層: トークン — 転職ピラー（若芽グリーン／深緑チャコールの夜）
   ========================================================== */

body.pillar-skin-work{
  --ps-ground:#F5F8F2;          /* 明るい若芽色のアイボリーの地 */
  --ps-masthead-bg:#FDFEFB;  /* v3.0: 帯の地色（従来は第2層に直書きだった値） */
  --ps-surface:#FFFFFF;         /* カード面 */
  --ps-surface-2:#EDF3EA;       /* 一段沈んだ面 */
  --ps-deep:#E6F1E6;            /* ヒーロー面（淡いフレッシュグリーン） */
  --ps-tint:#E2F2E8;            /* 結論ボックス・主役カード・チップの淡色面 */
  --ps-tint-2:#D3EAD9;
  --ps-ink:#22302A;             /* 本文 */
  --ps-ink-soft:#64766B;
  --ps-accent:#0E7C5B;          /* エメラルド（装飾・罫） */
  --ps-accent-text:#0A6647;     /* 文字に使えるエメラルド */
  --ps-accent-fill:#0E7C5B;     /* 塗りのエメラルド（白文字を載せる） */
  --ps-accent-fill-hover:#0A6647;
  --ps-accent-pale:#A9DCC3;
  --ps-deep-fill:#48755C;
  --ps-gold:#C77400;            /* サンライズアンバー（差し色） */
  --ps-gold-bright:#E09A2B;
  --ps-gold-pale:#FBF0DC;
  --ps-warn-bg:#FBF3DC;
  --ps-warn-ink:#8A6D1F;
  --ps-line:#D8E4D5;
  --ps-line-strong:#BCD0B8;
  --ps-shadow:0 6px 24px rgba(46,94,66,.10);
  --ps-gothic:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Noto Sans JP",sans-serif;
  /* v3.0: 共通ベース用の正準名エイリアス（値は従来トークンと同一） */
  --ps-rose:var(--ps-accent);
  --ps-rose-text:var(--ps-accent-text);
  --ps-rose-fill:var(--ps-accent-fill);
  --ps-rose-fill-hover:var(--ps-accent-fill-hover);
  --ps-rose-pale:var(--ps-accent-pale);
  --ps-serif:var(--ps-gothic);
  --ps-blush:var(--ps-tint);
  --ps-blush-2:var(--ps-tint-2);
  --ps-blush-faint:var(--ps-surface-2);
  --ps-plum-fill:var(--ps-deep-fill);
}

html.sn-dark body.pillar-skin-work{
  --ps-ground:#1C2622;          /* 深いグリーンチャコール */
  --ps-masthead-bg:#141C18;  /* v3.0: 帯の地色（従来は第2層に直書きだった値） */
  --ps-surface:#27332C;
  --ps-surface-2:#2F4036;
  --ps-deep:#24352C;
  --ps-tint:#2C4636;
  --ps-tint-2:#38543F;
  --ps-ink:#EFF6F0;
  --ps-ink-soft:#B9CDBD;
  --ps-accent:#63D6A4;          /* 明るいミント（装飾・罫） */
  --ps-accent-text:#8FE3BC;     /* 文字に使えるミント */
  --ps-accent-fill:#1E9E72;     /* 塗りのミント（白文字を載せる） */
  --ps-accent-fill-hover:#28B183;
  --ps-accent-pale:#3E7A5E;
  --ps-deep-fill:#5C8468;
  --ps-gold:#F2B25C;
  --ps-gold-bright:#F7C87E;
  --ps-gold-pale:#4E3E22;
  --ps-warn-bg:#463A26;
  --ps-warn-ink:#EBCF85;
  --ps-line:#43564A;
  --ps-line-strong:#57705F;
  --ps-shadow:0 6px 24px rgba(0,0,0,.28);
  /* v3.0: 共通ベース用の正準名エイリアス（値は従来トークンと同一） */
  --ps-rose:var(--ps-accent);
  --ps-rose-text:var(--ps-accent-text);
  --ps-rose-fill:var(--ps-accent-fill);
  --ps-rose-fill-hover:var(--ps-accent-fill-hover);
  --ps-rose-pale:var(--ps-accent-pale);
  --ps-serif:var(--ps-gothic);
  --ps-blush:var(--ps-tint);
  --ps-blush-2:var(--ps-tint-2);
  --ps-blush-faint:var(--ps-surface-2);
  --ps-plum-fill:var(--ps-deep-fill);
}

/* ==========================================================
   第2層: コンポーネントの型
   ========================================================== */

/* ---------- 地（ページ全体の地色と本文色） ---------- */

/* ---------- ヘッダー帯（masthead は ID 指定のシェルCSSに勝つため ID で受ける） ---------- */

/* ---------- 記事タイトル ---------- */

/* ---------- 記事ヘッダーカード ---------- */

/* ---------- パンくず ---------- */

/* ---------- 見出し（明朝＋ローズの差し罫。連番ラベルもピラーの色へ） ---------- */

/* ---------- 本文リンク（散文の中だけ） ---------- */

/* ---------- 結論（リードボックス） ---------- */

/* ---------- 表 ---------- */

/* ---------- 記事内ツールカード（リレー） ---------- */

/* ---------- FAQ ---------- */

/* ---------- 今日からできるアクション ---------- */

/* ---------- 注意・基準ボックス ---------- */

/* ---------- 計算ツール埋め込み ---------- */

/* ---------- 商品・申込カード ---------- */

/* ---------- 参考情報源・関連記事・メタ ---------- */

/* ==========================================================
   ハブ（8206）専用コンポーネント
   構成の型: ヒーロー（ツールへの引き）→ ツールゾーン →
   棚（入口3件＋すべて見る）→ 次の一歩（ツールへ戻す）→ 全件導線
   ========================================================== */

/* ---------- ヒーロー（上へ伸びるステップのモチーフ） ---------- */

html:not(.sn-dark) body.pillar-skin-work .wp-hub-hero::before,
html.sn-dark body.pillar-skin-work .wp-hub-hero::before{
  content:"";
  position:absolute;
  width:168px;height:112px;
  right:6px;top:14px;
  opacity:.16;
  pointer-events:none;
  background:
    linear-gradient(var(--ps-accent),var(--ps-accent)) left bottom/33.4% 33.4% no-repeat,
    linear-gradient(var(--ps-accent),var(--ps-accent)) center bottom/33.4% 66.7% no-repeat,
    linear-gradient(var(--ps-accent),var(--ps-accent)) right bottom/33.4% 100% no-repeat;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-hero::after,
html.sn-dark body.pillar-skin-work .wp-hub-hero::after{
  content:"";
  position:absolute;
  width:84px;height:56px;
  right:118px;top:8px;
  opacity:.35;
  pointer-events:none;
  background:
    linear-gradient(var(--ps-gold-bright),var(--ps-gold-bright)) left bottom/33.4% 33.4% no-repeat,
    linear-gradient(var(--ps-gold-bright),var(--ps-gold-bright)) center bottom/33.4% 66.7% no-repeat,
    linear-gradient(var(--ps-gold-bright),var(--ps-gold-bright)) right bottom/33.4% 100% no-repeat;
}

/* ---------- ツールゾーン（主役カード） ---------- */

/* ---------- 棚（入口カード3件） ---------- */

/* ---------- 次の一歩（ツールへ戻すカード） ---------- */

html:not(.sn-dark) body.pillar-skin-work .wp-hub-next,
html.sn-dark body.pillar-skin-work .wp-hub-next{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--ps-gold-pale) 0%,var(--ps-tint-2) 90%) !important;
  border:1px solid var(--ps-line-strong) !important;
  border-radius:20px;
  padding:20px;
  margin:34px 0 30px;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-next::before,
html.sn-dark body.pillar-skin-work .wp-hub-next::before{
  content:"";
  position:absolute;
  width:96px;height:64px;
  right:10px;top:10px;
  opacity:.14;
  pointer-events:none;
  background:
    linear-gradient(var(--ps-accent),var(--ps-accent)) left bottom/33.4% 33.4% no-repeat,
    linear-gradient(var(--ps-accent),var(--ps-accent)) center bottom/33.4% 66.7% no-repeat,
    linear-gradient(var(--ps-accent),var(--ps-accent)) right bottom/33.4% 100% no-repeat;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-next::after,
html.sn-dark body.pillar-skin-work .wp-hub-next::after{
  content:"";
  position:absolute;
  width:54px;height:36px;
  right:86px;top:6px;
  opacity:.3;
  pointer-events:none;
  background:
    linear-gradient(var(--ps-gold-bright),var(--ps-gold-bright)) left bottom/33.4% 33.4% no-repeat,
    linear-gradient(var(--ps-gold-bright),var(--ps-gold-bright)) center bottom/33.4% 66.7% no-repeat,
    linear-gradient(var(--ps-gold-bright),var(--ps-gold-bright)) right bottom/33.4% 100% no-repeat;
}

/* ---------- 全件導線・旧ハブ部品（互換） ---------- */

/* ---------- 主役カード内の計算例ボックス（転職ハブ専用） ---------- */

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc,
html.sn-dark body.pillar-skin-work .wp-hub-calc{
  background:var(--ps-surface) !important;
  border:1px solid var(--ps-line) !important;
  border-radius:12px;
  padding:12px 14px;
  margin:0 0 10px;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-title,
html.sn-dark body.pillar-skin-work .wp-hub-calc-title{
  font-size:.82rem;
  font-weight:700;
  color:var(--ps-accent-text) !important;
  margin:0 0 4px;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-case,
html.sn-dark body.pillar-skin-work .wp-hub-calc-case{
  font-weight:700;
  color:var(--ps-ink) !important;
  margin:0 0 6px;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-rows,
html.sn-dark body.pillar-skin-work .wp-hub-calc-rows{
  margin:0;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-rows>div,
html.sn-dark body.pillar-skin-work .wp-hub-calc-rows>div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-top:1px solid var(--ps-line);
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-rows dt,
html.sn-dark body.pillar-skin-work .wp-hub-calc-rows dt{
  font-size:.9rem;
  color:var(--ps-ink-soft) !important;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-rows dd,
html.sn-dark body.pillar-skin-work .wp-hub-calc-rows dd{
  margin:0;
  font-weight:700;
  color:var(--ps-ink) !important;
  white-space:nowrap;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-rows dd.diff,
html.sn-dark body.pillar-skin-work .wp-hub-calc-rows dd.diff{
  color:var(--ps-accent-text) !important;
  font-size:1.05rem;
}

html:not(.sn-dark) body.pillar-skin-work .wp-hub-calc-note,
html.sn-dark body.pillar-skin-work .wp-hub-calc-note{
  font-size:.82rem;
  line-height:1.7;
  color:var(--ps-ink-soft) !important;
  margin:0 0 4px;
}

/* ---------- ヘッダーロゴ（ライト時のみ濃色変種へ差し替え・つなぎ修正 2026-11-14） ----------
   標準ロゴ logo-header-v2.png は濃い帯前提の白文字版で、転職のライト帯
   （#FDFEFB）では文字部が白飛びする。ライト時のみ、同じ絵柄の濃色変種
   logo-header-work-light.png（白文字部を --ps-ink #22302A へ置換、
   オレンジの家マーク・十字・心電図ラインは元の色のまま、同寸 1817x514、
   本CSSと同じフォルダに設置）を content で差し替える。競合する content
   ルールは他CSSに存在しない（シェルCSSは height のみ）。ダーク（深緑帯）
   では白文字版がそのまま正しいため触らない。ロゴ再設計が着地したら
   この節ごと取り外す。 */

html:not(.sn-dark) body.pillar-skin-work header#masthead.site-header .custom-logo-link img.custom-logo{
  content:url("logo-header-work-light.png") !important;
}
