/* ==========================================================================
   UNLITD CAREER メディアTOP 専用CSS（2026-09-04 リニューアル）
   読み込み: functions.php unlitd_media_home_assets()  ― メディアTOPのみ
   命名: すべて mh- プレフィックス。style.css（照合アンカー・編集禁止）とは衝突しない。
   トークンは :root ではなく .mh-root にスコープ（style.css が :root を3回再定義するため）。
   ブランド: 黒 #060001 / 黄 #F4D31E（黄地の文字は白ではなく黒）
   ========================================================================== */

.mh-root {
  --mh-ink:    #060001;
  --mh-ink-2:  #2b2a25;
  --mh-muted:  #6f6b60;
  --mh-line:   #e9e6dc;
  --mh-soft:   #f8f6ef;
  --mh-yellow: #F4D31E;
  --mh-yellow-soft: #fff7c9;
  --mh-gold:   #8a6d08;
  --mh-radius: 18px;
  --mh-shadow: 0 14px 40px rgba(6,0,1,.07);
  --mh-ease:   cubic-bezier(.2,.7,.2,1);

  color: var(--mh-ink);
  font-family: 'Noto Sans JP', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* 注意: ここで color を指定しない。.mh-root a (0,1,1) は .mh-btn (0,1,0) に勝ってしまい、
   ボタン文字が黒地に黒で消える。色は style.css の a{color:inherit} に任せる。 */
.mh-root a { text-decoration: none; }
.mh-root h1, .mh-root h2, .mh-root h3 { margin: 0; font-weight: 700; line-height: 1.4; letter-spacing: .01em; }
.mh-root p, .mh-root ul { margin: 0; }
.mh-root ul { padding: 0; list-style: none; }
.mh-root i { font-style: normal; display: inline-block; transition: transform .3s var(--mh-ease); }
.mh-root a:hover i { transform: translateX(4px); }

/* ---- 共通パーツ ---- */
.mh-section { padding: 88px 0; }
.mh-head { margin-bottom: 40px; }
.mh-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mh-head__en {
  font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .22em;
  color: var(--mh-gold); margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.mh-head__en::before { content: ""; width: 26px; height: 3px; background: var(--mh-yellow); border-radius: 2px; }
.mh-head__en--light { color: var(--mh-yellow); }
.mh-head__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
.mh-head__lead { margin-top: 12px; color: var(--mh-muted); font-size: .95rem; max-width: 640px; }

.mh-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  line-height: 1.6; background: var(--mh-yellow-soft); color: var(--mh-gold); letter-spacing: .02em;
}
.mh-badge--dark { background: var(--mh-yellow); color: var(--mh-ink); }

.mh-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--mh-ink); color: #fff; font-weight: 700; font-size: .95rem;
  transition: transform .3s var(--mh-ease), box-shadow .3s var(--mh-ease), background .3s;
}
.mh-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6,0,1,.18); }
.mh-btn--yellow { background: var(--mh-yellow); color: var(--mh-ink); }
.mh-btn--yellow:hover { box-shadow: 0 12px 28px rgba(244,211,30,.35); }

.mh-textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--mh-ink); white-space: nowrap; }
.mh-textlink--light { color: #fff; opacity: .85; }
.mh-more { text-align: center; margin-top: 44px; }

/* ---- ヒーロー ---- */
.mh-hero {
  position: relative; padding: 72px 0 0;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(244,211,30,.22) 0%, rgba(244,211,30,0) 60%),
    linear-gradient(180deg, #fffdf3 0%, #fff 100%);
}
.mh-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mh-line); }
.mh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.mh-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--mh-ink-2); margin-bottom: 20px; }
.mh-eyebrow__en { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .2em; padding: 4px 10px; background: var(--mh-ink); color: var(--mh-yellow); border-radius: 4px; }
.mh-hero__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.32; letter-spacing: -.02em; }
.mh-hero__title em { font-style: normal; background: linear-gradient(transparent 58%, var(--mh-yellow) 58%, var(--mh-yellow) 92%, transparent 92%); padding: 0 .06em; }
.mh-hero__desc { margin-top: 20px; color: var(--mh-muted); font-size: 1rem; max-width: 560px; }

.mh-search {
  margin-top: 28px; display: flex; align-items: center; height: 60px; padding: 6px 6px 6px 22px;
  background: #fff; border: 1.5px solid var(--mh-line); border-radius: 999px; box-shadow: var(--mh-shadow);
  transition: border-color .3s;
}
.mh-search:focus-within { border-color: var(--mh-ink); }
.mh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--mh-ink); }
.mh-search input::placeholder { color: #a39f93; }
.mh-search button { height: 100%; padding: 0 26px; border: 0; border-radius: 999px; background: var(--mh-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .3s; }
.mh-search button:hover { background: #2b2a25; }

.mh-hero__tags { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mh-hero__tags-label { font-size: 12px; font-weight: 700; color: var(--mh-muted); margin-right: 4px; }
.mh-hero__tags a { font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--mh-line); background: #fff; transition: all .25s; }
.mh-hero__tags a:hover { border-color: var(--mh-ink); background: var(--mh-ink); color: #fff; }

.mh-hero__feature {
  display: block; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--mh-line);
  box-shadow: var(--mh-shadow); transition: transform .4s var(--mh-ease), box-shadow .4s var(--mh-ease);
}
.mh-hero__feature:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(6,0,1,.12); }
.mh-hero__feature-thumb { display: block; aspect-ratio: 16/10; background: var(--mh-soft) center/cover no-repeat; }
.mh-hero__feature-body { display: block; padding: 22px 24px 24px; }
.mh-hero__feature-label { display: inline-block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--mh-gold); margin-right: 10px; }
.mh-hero__feature-title { display: block; margin-top: 10px; font-size: 1.12rem; font-weight: 700; line-height: 1.55; }
.mh-hero__feature-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--mh-gold); }

.mh-quicknav { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border: 1px solid var(--mh-line); border-bottom: 0; border-radius: 16px 16px 0 0; background: #fff; overflow: hidden; }
.mh-quicknav a { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; font-size: .95rem; border-right: 1px solid var(--mh-line); transition: background .25s; }
.mh-quicknav a:last-child { border-right: 0; }
.mh-quicknav a:hover { background: var(--mh-yellow-soft); }
.mh-quicknav b { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--mh-gold); letter-spacing: .1em; }
.mh-quicknav i { margin-left: auto; color: var(--mh-gold); }

/* ---- 転職成功ガイド（ステッパー型） ---- */
.mh-guide { background: #fff; }
.mh-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
/* 5枚のカードを貫く進行ライン（バッジの中心を通る） */
.mh-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--mh-line) 0 8px, transparent 8px 14px); z-index: 0; }
.mh-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; padding: 0 22px 22px; border-radius: 22px;
  background: #fff; border: 1px solid var(--mh-line); overflow: hidden;
  transition: transform .35s var(--mh-ease), box-shadow .35s var(--mh-ease), border-color .35s;
}
.mh-step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mh-yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--mh-ease); }
.mh-step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(6,0,1,.09); border-color: #efe9d2; }
.mh-step:hover::after { transform: scaleX(1); }
.mh-step__ghost { position: absolute; right: 12px; top: -10px; font-family: 'Inter', system-ui, sans-serif; font-size: 74px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--mh-yellow); opacity: .22; pointer-events: none; user-select: none; }
.mh-step__head { display: flex; align-items: center; gap: 10px; padding-top: 22px; }
.mh-step__badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mh-ink); color: var(--mh-yellow); font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 0 0 5px #fff; }
.mh-step__label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .24em; color: var(--mh-gold); }
.mh-step__title { margin-top: 18px; font-size: 1.12rem; line-height: 1.45; letter-spacing: -.01em; min-height: 3.2em; }
.mh-step__desc { margin-top: 6px; font-size: 12.5px; color: var(--mh-muted); }
.mh-step__list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--mh-line); flex: 1; }
.mh-step__list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 11px; }
.mh-step__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--mh-yellow); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--mh-line); }
.mh-step__list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--mh-ink-2); transition: color .25s; }
.mh-step__list a:hover { color: var(--mh-gold); }
.mh-step__empty { color: var(--mh-muted); }
.mh-step__more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--mh-line); background: var(--mh-soft); font-size: 12.5px; font-weight: 700; color: var(--mh-ink); transition: all .25s; }
.mh-step__more:hover { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.mh-step__more:hover i { color: var(--mh-yellow); }

/* ---- 記事カード（新着・ランキング） ---- */
.mh-new { background: var(--mh-soft); }
.mh-grid { display: grid; gap: 28px 24px; }
.mh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mh-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
.mh-card__link { display: block; height: 100%; }
.mh-card__thumb {
  position: relative; display: block; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: #ece9de center/cover no-repeat;
  transition: transform .4s var(--mh-ease), box-shadow .4s var(--mh-ease);
}
.mh-card__link:hover .mh-card__thumb { transform: translateY(-4px); box-shadow: var(--mh-shadow); }
.mh-card__rank {
  position: absolute; left: 0; top: 0; min-width: 44px; height: 44px; padding: 0 10px; display: flex; align-items: center; justify-content: center;
  background: var(--mh-ink); color: var(--mh-yellow); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .05em; border-radius: 0 0 14px 0;
}
.mh-card__body { display: block; padding: 14px 4px 0; }
.mh-card__title { display: block; margin-top: 8px; font-size: 1rem; font-weight: 700; line-height: 1.55; transition: color .25s; }
.mh-grid--5 .mh-card__title { font-size: .92rem; }
.mh-card__link:hover .mh-card__title { color: var(--mh-gold); }
.mh-card__date { display: block; margin-top: 8px; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--mh-muted); letter-spacing: .04em; }

/* ---- テーマから探す ---- */
.mh-explore { background: #fff; }
.mh-explore__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.mh-explore__label { font-size: .95rem; font-weight: 700; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--mh-ink); }
.mh-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mh-cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--mh-line); font-size: .9rem; font-weight: 700; background: #fff; transition: all .25s; }
.mh-cats a small { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: var(--mh-muted); background: var(--mh-soft); padding: 2px 8px; border-radius: 999px; }
.mh-cats a:hover { border-color: var(--mh-ink); background: var(--mh-ink); color: #fff; }
.mh-cats a:hover small { background: var(--mh-yellow); color: var(--mh-ink); }
.mh-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-keywords a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--mh-soft); font-size: 13px; font-weight: 600; transition: all .25s; }
.mh-keywords a:hover { background: var(--mh-yellow); }

/* ---- 相談CTA ---- */
.mh-cta { background: var(--mh-ink); color: #fff; position: relative; overflow: hidden; }
.mh-cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(244,211,30,.28) 0%, rgba(244,211,30,0) 65%); pointer-events: none; }
.mh-cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.mh-cta__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.mh-cta__desc { margin-top: 18px; color: rgba(255,255,255,.78); font-size: .97rem; max-width: 600px; }
.mh-cta__note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .03em; }
.mh-cta__action { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mh-cta .mh-btn--yellow { height: 62px; padding: 0 38px; font-size: 1.05rem; }
.mh-sp { display: none; }

/* ---- レスポンシブ ---- */
@media (max-width: 1080px) {
  .mh-steps { grid-template-columns: repeat(3, 1fr); }
  .mh-steps::before { display: none; }
  .mh-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .mh-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mh-section { padding: 64px 0; }
  .mh-hero { padding-top: 48px; }
  .mh-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .mh-hero__feature { max-width: 560px; }
  .mh-quicknav { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .mh-quicknav a:nth-child(2) { border-right: 0; }
  .mh-quicknav a:nth-child(-n+2) { border-bottom: 1px solid var(--mh-line); }
  .mh-explore__grid { grid-template-columns: 1fr; gap: 36px; }
  .mh-cta__inner { grid-template-columns: 1fr; gap: 28px; }
  .mh-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mh-section { padding: 56px 0; }
  .mh-head { margin-bottom: 28px; }
  .mh-head--row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mh-hero__title { font-size: 2rem; }
  .mh-search { height: 54px; padding-left: 16px; }
  .mh-search button { padding: 0 18px; }
  .mh-quicknav a { padding: 14px 12px; font-size: .82rem; gap: 8px; white-space: nowrap; }
  .mh-eyebrow { flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .mh-eyebrow__en { white-space: nowrap; font-size: 10px; padding: 3px 8px; }
  .mh-steps { grid-template-columns: 1fr; gap: 14px; }
  .mh-step__ghost { font-size: 72px; }
  .mh-step__title { min-height: 0; }
  .mh-grid--3, .mh-grid--5 { grid-template-columns: 1fr; gap: 24px; }
  .mh-grid--5 .mh-card__title { font-size: 1rem; }
  .mh-cats { grid-template-columns: 1fr; }
  .mh-sp { display: inline; }
  .mh-cta .mh-btn--yellow { width: 100%; justify-content: center; }
}
