@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* =========================================================
   転職の答え合わせ 独自デザイン（共通＋トップ＋診断）
   子テーマの style.css の末尾に貼り付ける。
   ※各テンプレート（tkf-head.php / front-page.php / page-shindan.php）
     の <style>...</style> ブロックは削除すること。
   ========================================================= */

/* =========================================================
   転職の答え合わせ 独自デザイン（共通＋トップ＋診断）
   子テーマの style.css の末尾に貼り付ける。
   ※各テンプレート（tkf-head.php / front-page.php / page-shindan.php）
     の <style>...</style> ブロックは削除すること。
   ========================================================= */

/* ===== 共通（全テンプレート） ===== */
/* =========================================================
   転職の答え合わせ 独自デザイン（共通＋トップ＋診断）
   子テーマの style.css の末尾に貼り付ける。
   ※各テンプレート（tkf-head.php / front-page.php / page-shindan.php）
     の <style>...</style> ブロックは削除すること。
   ========================================================= */

/* ===== 共通（全テンプレート） ===== */
/* =========================================================
   転職の答え合わせ 独自デザイン（共通＋トップ＋診断）
   子テーマの style.css の末尾に貼り付ける。
   ※各テンプレート（tkf-head.php / front-page.php / page-shindan.php）
     の <style>...</style> ブロックは削除すること。
   ========================================================= */

/* ===== 共通（全テンプレート） ===== */
/* =========================================================
   転職の答え合わせ 独自デザイン（共通＋トップ＋診断）
   子テーマの style.css の末尾に貼り付ける。
   ※各テンプレート（tkf-head.php / front-page.php / page-shindan.php）
     の <style>...</style> ブロックは削除すること。
   ========================================================= */

/* ===== 共通（全テンプレート） ===== */
.tkf-reset, .tkf-reset * { box-sizing: border-box; }
body { background:#F6F4EF; }

/* Cocoonのコンテンツ幅制限を脱出して全幅にする（ID構造に依存しない100vw方式）
   front-page / page-shindan の <div class="tkf"> に効く */
.tkf {
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}
/* 親（Cocoonのメイン領域）のpaddingが残ると隙間が出るため打ち消し */
.home #main, .home .main, .page-template .main,
.home #content, .page-template #content {
  padding:0 !important;
  margin:0 !important;
  max-width:100% !important;
  width:100% !important;
}

.tkf {
  --navy:#0F1B32; --navy7:#1B2C4D; --gold:#C69B3C; --gold6:#A9822C;
  --plat:#8A94A0; --mist:#EEF1F5; --ink:#18202E; --sub:#5b6573;
  --line:#E4E2DB; --cream:#F6F4EF; --paper:#fff;
  --cta:#CE3E28; --cta6:#B23420;
  /* フォントはCocoonのサイトフォント設定（Noto Sans JP）に一本化。
     ここでは指定しない（二重管理を避ける） */
  color:var(--ink); background:var(--cream);
}

/* 共通サイトヘッダー */
.tkf-header { background:var(--paper); border-bottom:1px solid var(--line); }
.tkf-header-in { max-width:1140px; margin:0 auto; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; }
.tkf-brand { display:flex; align-items:center; gap:11px; text-decoration:none; }
.tkf-brand svg { width:38px; height:38px; flex:none; }
.tkf-brand-name { font-size:18px; font-weight:700; color:var(--navy); line-height:1.2; }
.tkf-brand-sub { font-size:11px; color:var(--plat); }
.tkf-nav { display:flex; gap:22px; font-size:14px; }
.tkf-nav a { color:var(--ink); text-decoration:none; }
.tkf-nav a:hover { color:var(--gold6); }
@media (max-width:600px){ .tkf-nav{ display:none; } }

/* 共通フッター */
.tkf-footer { background:var(--navy); color:#B9C3CF; text-align:center; padding:32px 24px; font-size:13px; }
.tkf-footer-nav { display:flex; justify-content:center; flex-wrap:wrap; gap:24px; margin:0 0 16px; }
.tkf-footer-nav a { color:#fff; text-decoration:none; font-size:13px; }
.tkf-footer-nav a:hover { color:var(--gold); }
.tkf-copyright { margin:0; color:#8A94A0; font-size:12px; }

/* ===== トップページ ===== */
.tkf-hero {
  /* 画面全幅に広げる（親の幅制限を脱出する100vw方式） */
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  /* 安心感のある背景：深いネイビーの縦グラデーション。
     linear＋固定方向なので、コンテンツ量・高さが変わっても見え方が一定
     （トップ・診断で完全に統一される） */
  background-color:var(--navy);
  background-image:linear-gradient(180deg, #0B1626 0%, #15243F 50%, #0F1B32 100%);
  padding:64px 24px;
  text-align:center;
}
.tkf-hero-in { max-width:760px; margin:0 auto; position:relative; }
.tkf-eyebrow { color:var(--gold); font-size:14px; letter-spacing:.08em; margin:0 0 14px; }
.tkf-title { color:#fff; font-size:32px; font-weight:700; line-height:1.5; margin:0 0 14px; }
.tkf-lead { color:#B9C3CF; font-size:15px; line-height:1.8; margin:0 0 30px; }
.tkf-btn { display:inline-flex; align-items:center; gap:10px; background:var(--gold); color:var(--navy); font-weight:700; font-size:17px; text-decoration:none; padding:16px 44px; border-radius:12px; transition:.15s; }
.tkf-btn:hover { background:var(--gold6); color:#fff; transform:translateY(-2px); }
.tkf-btn-ico { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:rgba(15,27,50,.15); font-size:14px; }

.tkf-main { max-width:1140px; margin:0 auto; padding:48px 24px 16px; }
.tkf-section { margin-bottom:52px; }
.tkf-h2 { display:flex; align-items:center; gap:12px; font-size:22px; font-weight:700; color:var(--navy); margin:0 0 24px; }
.tkf-h2::before { content:""; width:5px; height:24px; background:var(--gold); border-radius:2px; }

.tkf-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.tkf-card { background:var(--paper); border:1px solid var(--line); border-radius:16px; overflow:hidden; transition:.15s; }
.tkf-card:hover { transform:translateY(-4px); box-shadow:0 10px 26px rgba(15,27,50,.10); }
.tkf-card a { display:block; text-decoration:none; color:inherit; }
.tkf-thumb { width:100%; height:160px; background:var(--mist); overflow:hidden; }
.tkf-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.tkf-noimg { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#B9C3CF; font-size:30px; }
.tkf-card-body { padding:16px 18px; }
.tkf-cat { display:inline-block; font-size:11px; background:var(--mist); color:var(--navy7); padding:3px 10px; border-radius:6px; margin-bottom:10px; }
.tkf-card-title { font-size:16px; font-weight:700; line-height:1.5; color:var(--navy); margin:0 0 8px; }
.tkf-excerpt { font-size:13px; color:var(--sub); line-height:1.75; margin:0 0 12px; }
.tkf-date { font-size:12px; color:var(--plat); }
.tkf-empty { color:var(--sub); }

.tkf-purpose { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.tkf-purpose a { display:flex; flex-direction:column; align-items:center; gap:10px; background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:24px 16px; text-decoration:none; transition:.15s; }
.tkf-purpose a:hover { transform:translateY(-3px); border-color:var(--gold); }
.tkf-purpose-ico { font-size:28px; }
.tkf-purpose-label { font-size:15px; font-weight:700; color:var(--navy); }

@media (max-width:1023px){ .tkf-grid{ grid-template-columns:repeat(2,1fr);} .tkf-purpose{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){
  .tkf-hero{ padding:40px 20px;} .tkf-title{ font-size:24px;}
  .tkf-grid{ grid-template-columns:1fr; gap:16px;}
  .tkf-purpose{ grid-template-columns:1fr;}
  .tkf-main{ padding:30px 16px 8px;}
}

/* ===== 診断ページ ===== */
.tks-hero { background:var(--navy); padding:48px 24px; text-align:center; }
.tks-hero-in { max-width:720px; margin:0 auto; }
.tks-hero-eyebrow { color:var(--gold); font-size:13px; letter-spacing:.08em; margin:0 0 12px; }
.tks-hero-title { color:#fff; font-size:28px; font-weight:700; line-height:1.5; margin:0 0 12px; }
.tks-hero-lead { color:#B9C3CF; font-size:14px; line-height:1.8; margin:0; }

.tks-main { max-width:720px; margin:0 auto; padding:44px 24px 60px; }
.tks-progress { display:flex; gap:8px; margin:0 0 32px; }
.tks-progress-step { flex:1; height:6px; border-radius:3px; background:var(--line); transition:.3s; }
.tks-progress-step.active { background:var(--gold); }

.tks-q { background:var(--paper); border:1px solid var(--line); border-radius:18px; padding:36px 32px; }
.tks-q-num { font-size:13px; color:var(--gold6); font-weight:700; letter-spacing:.05em; margin:0 0 8px; }
.tks-q-title { font-size:23px; font-weight:700; color:var(--navy); line-height:1.5; margin:0 0 28px; }
.tks-options { display:flex; flex-direction:column; gap:12px; }
.tks-opt { display:flex; align-items:center; gap:14px; background:var(--cream); border:1px solid var(--line); border-radius:12px; padding:18px 20px; font-size:16px; font-weight:500; color:var(--ink); cursor:pointer; text-align:left; transition:.15s; width:100%; }
.tks-opt:hover { border-color:var(--gold); background:#fff; transform:translateY(-2px); }
.tks-opt-ico { font-size:24px; flex:none; }

.tks-result { display:none; }
.tks-result.show { display:block; }
.tks-result-head { text-align:center; margin:0 0 32px; }
.tks-result-eyebrow { font-size:14px; color:var(--gold6); font-weight:700; margin:0 0 10px; }
.tks-result-title { font-size:26px; font-weight:700; color:var(--navy); line-height:1.5; margin:0; }
.tks-rank { background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:24px; margin:0 0 16px; position:relative; }
/* 1位は別格：太い金枠＋ほんのり色味＋影。バッジはカード内に収めて絶対に切れない設計 */
.tks-rank.first {
  border:2.5px solid var(--gold);
  margin:18px 0 22px;
  padding:0 0 26px;
  background:linear-gradient(180deg, #FCF8EF 0%, var(--paper) 70%);
  box-shadow:0 8px 28px rgba(198,155,60,.18);
  overflow:hidden;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
/* 1位カード上部のゴールド帯（全幅） */
.tks-rank.first::before {
  content:""; display:block; align-self:stretch; height:6px;
  background:linear-gradient(90deg, var(--gold) 0%, #E0C074 50%, var(--gold) 100%);
}

.tks-rank-badge { position:absolute; top:-12px; left:24px; background:var(--gold); color:var(--navy); font-size:13px; font-weight:700; padding:4px 14px; border-radius:8px; }
.tks-rank-badge.second { background:var(--plat); color:#fff; }
.tks-rank-badge.third { background:var(--navy7); color:#fff; }
/* 1位バッジ：帯の下に通常フローで配置（はみ出さない＝絶対に切れない） */
.tks-rank.first .tks-rank-badge {
  position:static; transform:none; left:auto; top:auto;
  display:inline-block; margin:20px auto 6px;
  font-size:15px; padding:9px 24px; border-radius:22px;
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold6) 100%);
  color:#fff; letter-spacing:.04em; white-space:nowrap;
  box-shadow:0 4px 12px rgba(198,155,60,.35);
}

.tks-rank-name { font-size:20px; font-weight:700; color:var(--navy); margin:8px 0 6px; }
/* 1位の中身は左右に余白＋社名大きく */
.tks-rank.first .tks-rank-name { font-size:24px; margin:6px 26px 8px; }
.tks-rank.first .tks-rank-desc { margin:0 26px 18px; }
.tks-rank.first .tks-rank-btn { align-self:stretch; margin:0 26px; }
.tks-rank.first .tks-rank-btn-sub { margin:10px 26px 0; }
.tks-rank-desc { font-size:14px; color:var(--sub); line-height:1.8; margin:0 0 18px; }
/* CTAボタン：色彩理論に基づきネイビーの補色（バーントオレンジ）を主役に。
   1位=オレンジ塗りで際立たせ、2-3位=白地枠線で引く（コントラスト設計）。
   白文字コントラスト4.8・背景との際立ち4.4を確保 */
.tks-rank-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  text-align:center; text-decoration:none;
  font-weight:700; font-size:16px;
  padding:17px 20px; border-radius:12px;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.tks-rank-btn::after {
  content:"›"; font-size:20px; line-height:1; opacity:.7;
  transition:transform .15s ease;
}
.tks-rank-btn:hover::after { transform:translateX(3px); }
.tks-rank-btn-sub {
  display:block; text-align:center; font-size:12px; color:var(--sub);
  margin-top:10px; letter-spacing:.02em;
}

/* 2位・3位：白地＋枠線で控えめ（あえて引く） */
.tks-rank-btn {
  background:var(--paper); color:var(--navy);
  border:1.5px solid var(--line);
}
.tks-rank-btn:hover {
  border-color:var(--cta); transform:translateY(-2px);
}

/* 1位：補色オレンジの塗りで主役に。白文字で視認性確保 */
.tks-rank.first .tks-rank-btn {
  background:var(--cta); color:#fff;
  border:1.5px solid var(--cta);
  font-size:18px; padding:19px 20px;
  box-shadow:0 2px 10px rgba(206,62,40,.28);
}
.tks-rank.first .tks-rank-btn::after { opacity:1; }
.tks-rank.first .tks-rank-btn:hover {
  background:var(--cta6); border-color:var(--cta6); color:#fff;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(206,62,40,.4);
}
.tks-pr { font-size:11px; color:var(--plat); text-align:center; margin:20px 0 0; }
.tks-retry { display:block; margin:24px auto 0; background:none; border:1px solid var(--line); color:var(--sub); font-size:14px; padding:10px 24px; border-radius:10px; cursor:pointer; }
.tks-footer { background:var(--navy); color:#B9C3CF; text-align:center; padding:24px; font-size:13px; }

@media (max-width:600px){
  .tks-hero { padding:36px 20px; }
  .tks-hero-title { font-size:22px; }
  .tks-q { padding:28px 20px; }
  .tks-q-title { font-size:20px; }
  .tks-main { padding:28px 16px 40px; }
}
