/* キャリアの鉄人 ベース・ヘッダー・フッター・共通部品（自前実装）
 * 色: 黄 #FABE00 / 黒 / 白。ブレークポイント: 1250px（ヘッダー詰め）/ 1180px（SPヘッダー）/ 640px（レイアウト）
 */

:root {
    --ct-key: #FABE00;
    --ct-base: #000;
    --ct-hover-opacity: .6;
    --ct-z-drawer: 1000;
    --ct-z-header: 2000;
    --ct-z-fixbar: 3000;
}

/* ---------- リセット・ベース ---------- */
*,
*::before,
*::after {
    font-feature-settings: "palt";
    letter-spacing: .035em;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
    font-weight: 400;
    font-size: 62.5%;
    color: #000;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

body,
div, span, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, form, fieldset {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    width: 100%;
    padding-top: 72px;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    overflow-y: scroll;
}

body.is-locked {
    position: fixed;
    width: 100%;
}

ul,
ol,
li {
    list-style: none;
}

main {
    display: block;
    font-size: 16px;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: top;
    object-fit: cover;
    object-position: 50% 50%;
    overflow: hidden;
}

a {
    color: inherit;
    font: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

button {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

[id] {
    scroll-margin-top: 84px;
}

.ct-pc-only {
    display: block;
}

.ct-sp-only {
    display: none;
}

@media screen and (max-width: 1180px) {
    body {
        padding-top: 60px;
    }

    [id] {
        scroll-margin-top: 72px;
    }

    .ct-pc-only {
        display: none !important;
    }

    .ct-sp-only {
        display: block !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---------- ヘッダー ---------- */
.ct-header-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--ct-base);
}

.ct-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--ct-z-header);
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
    box-sizing: content-box;
    width: 100%;
    height: 72px;
    background: var(--ct-base);
}

.ct-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #1c1c1c;
}

.ct-header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .03), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* ロゴは白タイルに載せる（黒文字ロゴのため） */
.ct-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 22px;
    background: #fff;
}

.ct-header__logo img {
    display: block;
    width: auto;
    height: 40px;
}

.ct-header__main {
    flex-grow: 1;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    height: 100%;
}

.ct-header__nav {
    flex-grow: 1;
    display: flex;
    height: 100%;
}

.ct-header__nav ul {
    display: flex;
    width: 100%;
    height: 100%;
}

.ct-header__nav li {
    height: 100%;
}

.ct-header__nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.ct-header__nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--ct-key);
    opacity: 0;
    transition: opacity .3s ease;
}

.ct-header__nav-link:hover::before,
.ct-header__nav-link[aria-current="page"]::before {
    opacity: 1;
}

.ct-header__cta {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100%;
    background: #fff;
}

.ct-header__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100%;
    font-size: 16px;
    font-weight: 800;
    color: var(--ct-base);
}

.ct-header__cta-btn--white {
    background: #fff;
}

.ct-header__cta-btn--white:hover {
    opacity: .4;
}

.ct-header__cta-btn--key {
    background: var(--ct-key);
}

.ct-header__cta-btn--key:hover {
    opacity: var(--ct-hover-opacity);
}

@media screen and (max-width: 1250px) {
    .ct-header {
        gap: 20px;
    }

    .ct-header__main {
        gap: 12px;
    }

    .ct-header__nav-link {
        padding: 0 16px;
        font-size: 14.5px;
    }

    .ct-header__cta-btn {
        width: 140px;
        font-size: 15px;
    }
}

@media screen and (max-width: 639px) {
    .ct-header__logo {
        padding: 0 16px;
    }

    .ct-header__logo img {
        height: 34px;
    }
}

@media screen and (max-width: 1180px) {
    .ct-header-wrap {
        height: 60px;
    }

    .ct-header {
        height: 60px;
    }
}

/* ハンバーガーボタン（SP） */
.ct-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    padding-top: 6px;
}

.ct-burger__lines {
    position: relative;
    width: 22px;
    height: 14px;
}

.ct-burger__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}

.ct-burger__line:nth-child(1) {
    top: 0;
}

.ct-burger__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.ct-burger__line:nth-child(3) {
    bottom: 0;
}

.ct-burger.is-open .ct-burger__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.ct-burger.is-open .ct-burger__line:nth-child(2) {
    opacity: 0;
}

.ct-burger.is-open .ct-burger__line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(45deg);
}

.ct-burger__text {
    padding-top: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #fff;
}

/* ドロワーメニュー（SP） */
.ct-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--ct-z-drawer);
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    padding: 60px 0 54px;
    overflow-y: auto;
    color: #fff;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.ct-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.ct-drawer__base {
    min-height: calc(100vh - 60px - 54px);
    background: var(--ct-base);
}

.ct-drawer__inner {
    padding: 30px 0 120px;
}

.ct-drawer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 12px;
    width: 91.47%;
    margin: 0 auto;
}

.ct-drawer__link {
    width: calc((100% - 12px) / 2);
    padding-bottom: 14px;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
}

/* SP下部の固定ボタン */
.ct-fixbar {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--ct-z-fixbar);
    width: 100%;
    height: 54px;
    transition: opacity .2s, visibility .2s;
}

.ct-fixbar.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.ct-fixbar::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12));
    pointer-events: none;
}

.ct-fixbar__inner {
    display: flex;
    height: 100%;
}

.ct-fixbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    font-size: 15px;
    font-weight: 700;
    color: var(--ct-base);
}

.ct-fixbar__btn--white {
    background: #fff;
}

.ct-fixbar__btn--key {
    background: var(--ct-key);
}

/* ---------- フッター ---------- */
.ct-footer {
    position: relative;
    line-height: 1.2;
}

.ct-footer__main {
    background: #141414;
    color: #fff;
}

.ct-footer__wrap {
    width: 91.6%;
    max-width: 1400px;
    margin: 0 auto;
}

.ct-footer__body {
    display: flex;
    align-items: flex-start;
    gap: 30px 100px;
    padding: 72px 0 90px;
}

.ct-footer__logo {
    flex-shrink: 0;
    width: 180px;
}

.ct-footer__logo img {
    width: 100%;
    height: auto;
}

.ct-footer__nav {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 880px;
}

.ct-footer__nav-unit {
    flex-grow: 1;
}

.ct-footer__nav-label {
    padding-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.ct-footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ct-footer__nav-link {
    position: relative;
    display: inline-block;
    padding-left: 18px;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
}

.ct-footer__nav-link::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 2px;
    background: #ccc;
}

.ct-footer__nav-link:hover {
    opacity: var(--ct-hover-opacity);
}

.ct-footer__sub {
    display: flex;
    gap: 20px 60px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 40px;
    background: #222;
}

.ct-footer__sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}

.ct-footer__sub-link {
    color: #bbb;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
}

.ct-footer__sub-link:hover {
    opacity: var(--ct-hover-opacity);
}

.ct-footer__copy {
    color: #aaa;
    font-size: 12px;
}

@media screen and (max-width: 1250px) {
    .ct-footer__body {
        flex-direction: column;
    }
}

@media screen and (max-width: 639px) {
    .ct-footer__wrap {
        width: calc(100% - 32px);
    }

    .ct-footer__body {
        align-items: center;
        padding: 28px 0 60px;
    }

    .ct-footer__logo {
        width: 130px;
    }

    .ct-footer__nav {
        flex-wrap: wrap;
        gap: 32px 16px;
    }

    .ct-footer__nav-unit {
        width: calc((100% - 16px) / 2);
        flex-grow: 0;
    }

    .ct-footer__nav-label {
        padding-bottom: 16px;
        font-size: 15px;
    }

    .ct-footer__nav-link {
        display: block;
        font-size: 13px;
    }

    .ct-footer__sub {
        flex-direction: column;
        padding: 24px 16px;
    }

    .ct-footer__sub-links {
        gap: 12px 20px;
    }
}

/* ヘッダーのメニューが6項目になったので、幅が足りない画面では余白と文字を少し詰める */
@media screen and (min-width: 1251px) {
    .ct-header__nav-link {
        padding: 0 17px;
    }
}

/* ---------- 会員メニュー（ログイン / 無料会員登録 / マイページ） ---------- */
.ct-header__member {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ct-header__member-sub {
    padding: 8px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ct-header__member-sub:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ct-header__member-btn {
    box-sizing: border-box;
    padding: 9px 16px;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.ct-header__member-btn:hover {
    background: #fff;
    color: var(--ct-base);
}

@media screen and (max-width: 1400px) {
    .ct-header__member { gap: 2px; }
    .ct-header__member-sub { padding: 8px 6px; font-size: 13px; }
    .ct-header__member-btn { padding: 7px 10px; font-size: 13px; }
    .ct-header__cta-btn { width: 132px; font-size: 14px; }
}

@media screen and (min-width: 1251px) and (max-width: 1400px) {
    .ct-header__nav-link { padding: 0 11px; font-size: 14px; }
}

@media screen and (min-width: 1181px) and (max-width: 1250px) {
    .ct-header__nav-link { padding: 0 6px; font-size: 13px; }
    .ct-header__member-sub { padding: 8px 4px; font-size: 12.5px; }
    .ct-header__member-btn { padding: 6px 8px; font-size: 12.5px; }
    .ct-header__cta-btn { width: 132px; font-size: 12.5px; text-align: center; }
}


/* SPメニュー内の会員ボタン */
.ct-drawer__member {
    display: flex;
    gap: 12px;
    width: 91.47%;
    margin: 0 auto 26px;
}

.ct-drawer__member-sub,
.ct-drawer__member-btn {
    flex: 1;
    box-sizing: border-box;
    padding: 13px 8px;
    border: 2px solid #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.ct-drawer__member-sub {
    color: #fff;
}

.ct-drawer__member-btn {
    background: var(--ct-key);
    border-color: var(--ct-key);
    color: var(--ct-base);
}

/* 管理者としてログイン中は、WordPress の管理バー（上の黒い帯）の分だけヘッダーを下げる */
.admin-bar .ct-header {
    top: 32px;
}

.admin-bar .ct-drawer {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .ct-header {
        top: 46px;
    }

    .admin-bar .ct-drawer {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

@media screen and (max-width: 600px) {
    /* この幅では管理バーが画面と一緒にスクロールするので、ヘッダーは上に固定のまま */
    .admin-bar .ct-header {
        top: 0;
    }

    .admin-bar .ct-drawer {
        top: 0;
        height: 100vh;
    }
}

/* 近日公開（リンクなし）: フッター */
.ct-footer__nav-link.is-soon {
    cursor: default;
    color: #bbb;
}

.ct-footer__soon {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--ct-key, #f9be00);
    color: #000;
    font-size: 11px;
    font-weight: 800;
}

/* PCヘッダー: ログイン中のログアウト（小さな文字リンク） */
.ct-header__logout {
    align-self: center;
    margin-right: 18px;
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.ct-header__logout:hover {
    color: #fff;
}

/* 英語の小見出し（SEARCH・FREE TOOLS など）は出さない。プラグイン側が出す FREE TOOLS も隠す */
.ct-title__kicker,
.ct-search__kicker,
.ct-eyebrow,
.ct-freetools__title > span {
    display: none !important;
}

/* SP: ログイン中は、ヘッダー右上のメニューの左にマイページのアイコン */
.ct-sp-actions { display: flex; align-items: center; gap: 4px; }
.ct-sp-mypage { display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; min-width: 60px; height: 60px; padding-top: 6px; color: #fff; text-decoration: none; }
.ct-sp-mypage svg { display: block; width: 20px; height: 20px; margin: -3px 0; }
.ct-sp-mypage span { padding-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: normal; }

/* LP・比較ページ: サイト共通の追従ボタンは出さない（ページ内の追従ボタンは別） */
.ct-no-follow .ct-fixbar,
.ct-no-follow .ct-pagetop { display: none !important; }

/* 比較ページ: SP下部の就活・転職バーは出さず、「先頭へ戻る」は右下に出す（ページ内の追従ボタンは、なし） */
.ct-no-fixbar .ct-fixbar { display: none !important; }
@media screen and (max-width: 700px) {
    .ct-no-fixbar .ct-pagetop { bottom: 20px; }
}


/* ---------- ヘッダーの検索（虫めがねを押すと、ヘッダーの下に検索バーが開く） ---------- */
.ct-header__search-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; width: 56px; height: 100%; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.ct-header__search-btn span { font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.ct-header__search-btn:hover { color: var(--ct-key); }
.ct-sp-search { border: 0; background: none; font: inherit; cursor: pointer; }
.ct-hsearch { display: none; position: absolute; top: 100%; left: 0; width: 100%; box-sizing: border-box; padding: 14px 16px; background: var(--ct-base); border-top: 1px solid #444; }
.ct-hsearch.is-open { display: block; }
.ct-hsearch__form { display: flex; width: 100%; max-width: 720px; margin: 0 auto; }
.ct-hsearch__input { flex: 1; min-width: 0; box-sizing: border-box; height: 48px; padding: 0 16px; border: 2px solid #fff; border-radius: 0; background: #fff; color: #111; font-size: 16px; text-overflow: ellipsis; font-family: inherit; -webkit-appearance: none; appearance: none; }
.ct-hsearch__input:focus, .ct-hsearch__input:focus-visible { outline: none; box-shadow: none; }
.ct-hsearch__submit { flex-shrink: 0; width: 88px; height: 48px; border: 2px solid #fff; border-left: 0; border-radius: 0; background: var(--ct-key); color: #000; font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer; }
.ct-hsearch__submit:hover { opacity: var(--ct-hover-opacity); }
@media screen and (min-width: 1181px) and (max-width: 1250px) { .ct-header__search-btn { width: 44px; } }

/* SPメニュー内の検索 */
.ct-drawer__search { width: 91.47%; margin: 0 auto 22px; }

/* 検索の候補表示（入力中に、合う記事の件数と上位5件を出す） */
.ct-hsearch__form { position: relative; }
.ct-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; max-height: calc(100vh - 140px); overflow-y: auto; background: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 #000; color: #111; text-align: left; }
.ct-suggest[hidden] { display: none; }
.ct-suggest__count, .ct-suggest__none { margin: 0; padding: 10px 14px; font-size: 13px; font-weight: 700; background: var(--ct-key); color: #000; }
.ct-suggest__count strong { font-size: 16px; }
.ct-suggest__none { background: #fff; font-weight: 600; }
.ct-suggest__list { margin: 0; padding: 0; list-style: none; }
.ct-suggest__item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #ddd; color: #111; text-decoration: none; }
.ct-suggest__item:hover, .ct-suggest__item:focus-visible { background: #fff6d6; }
.ct-suggest__thumb { flex-shrink: 0; width: 96px; aspect-ratio: 16 / 9; background: #e5e5e5; overflow: hidden; }
.ct-suggest__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-suggest__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-suggest__label { font-size: 11px; font-weight: 700; color: #666; }
.ct-suggest__title { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-suggest__all { display: block; width: 100%; padding: 12px 14px; border: 0; background: #000; color: #fff; font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer; }
.ct-suggest__all:hover { background: #333; }
@media screen and (max-width: 639px) { .ct-suggest__thumb { width: 80px; } .ct-suggest__title { font-size: 13px; } }

/* ヘッダーのメニューが7項目＋検索になったので、幅が足りない画面では、余白・文字・ボタンの幅をさらに詰める（ログイン・無料会員登録が画面からはみ出さないように） */
@media screen and (min-width: 1181px) and (max-width: 1260px) {
    .ct-header { gap: 12px; }
    .ct-header__main { gap: 6px; }
    .ct-header__nav-link { padding: 0 2px; font-size: 12px; }
    .ct-header__cta-btn { width: 104px; font-size: 12px; }
    .ct-header__search-btn { width: 40px; }
}

@media screen and (min-width: 1261px) and (max-width: 1400px) {
    .ct-header { gap: 16px; }
    .ct-header__main { gap: 8px; }
    .ct-header__nav-link { padding: 0 3px; font-size: 13px; } /* 鉄人スコアを足して8項目になったので、さらに詰める */
    .ct-header__cta-btn { width: 112px; font-size: 13.5px; }
    .ct-header__search-btn { width: 48px; }
}

@media screen and (min-width: 1401px) and (max-width: 1610px) {
    .ct-header { gap: 24px; }
    .ct-header__main { gap: 12px; }
    .ct-header__nav-link { padding: 0 5px; font-size: 13.5px; }
    .ct-header__cta-btn { width: 120px; font-size: 14px; }
}

@media screen and (min-width: 1611px) and (max-width: 1700px) {
    .ct-header__nav-link { padding: 0 8px; } /* 8項目になったので、会員ボタンが外に出ないよう詰める */
}
@media screen and (min-width: 1701px) and (max-width: 1850px) {
    .ct-header__nav-link { padding: 0 12px; }
}

/* 下の固定バーをTOP以外でも出さないとき（inc/float-banner.php の ct-nofix-all）: 「先頭へ戻る」と右下のバナーを、画面の下に下げる */
@media screen and (max-width: 1180px) {
    .ct-nofix-all .ct-pagetop { bottom: 20px; }
    .ct-nofix-all .ct-fbn { bottom: 16px; }
    .has-fbn .ct-nofix-all .ct-pagetop { bottom: 240px; }
}
@media screen and (max-width: 640px) {
    .has-fbn .ct-nofix-all .ct-pagetop { bottom: 200px; }
}

/* カテゴリの一覧ページの記事検索（category.php の .ct-asearch）: ヘッダーの検索と同じ形。明るい背景の上なので、枠は黒 */
.ct-asearch { max-width: 720px; margin: 0 0 20px; }
.ct-asearch .ct-hsearch__input { height: 46px; border-color: #121212; font-size: 15px; }
.ct-asearch .ct-hsearch__input:focus-visible { box-shadow: inset 0 0 0 1px #121212; }
.ct-asearch .ct-hsearch__submit { height: 46px; border-color: #121212; }
.ct-asearch .ct-suggest { z-index: 20; }
@media screen and (max-width: 639px) {
    .ct-asearch { margin-bottom: 16px; }
    .ct-asearch .ct-hsearch__submit { width: 72px; }
}

/* スクロールで、下から ふわっと 表示（js/fx.js が .ct-fadeup・.is-in を付ける。比較ページの .rt-fadeup と同じ動き） */
.ct-fx .ct-fadeup { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1); transition-delay: var(--ct-fx-d, 0s); }
.ct-fx .ct-fadeup.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ct-fx .ct-fadeup { opacity: 1; transform: none; transition: none; }
}

/* スマホのメニューの下: エージェント比較のバナー2つ（新卒向け／20代向け）を横に並べる */
.ct-drawer__banners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 8px; padding: 0 16px; }
.ct-drawer__banner { display: block; border: 2px solid #fff; border-radius: 6px; overflow: hidden; background: #fff; line-height: 0; }
.ct-drawer__banner-ttl { display: block; padding: 6px 4px; background: #FABE00; color: #121212; font-size: 13px; font-weight: 900; line-height: 1.3; text-align: center; }
.ct-drawer__banner img { display: block; width: 100%; height: auto; }

/* フッター: ロゴの下の、かつ丼 就職系の公式SNS（YouTube・TikTok・Instagram・X・LINE公式） */
.ct-footer__brand { flex-shrink: 0; width: 256px; }
.ct-footer__sns { margin-top: 22px; }
.ct-footer__sns-label { margin: 0 0 10px; color: #aaa; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.ct-footer__sns-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ct-footer__sns-list li { margin: 0; padding: 0; }
.ct-footer__sns-link {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border: 1.5px solid #888; border-radius: 50%;
    color: #fff; transition: background .15s, color .15s, border-color .15s;
}
.ct-footer__sns-link svg { display: block; width: 18px; height: 18px; }
.ct-footer__sns-link:hover, .ct-footer__sns-link:focus-visible { border-color: #FABE00; background: #FABE00; color: #121212; }
@media screen and (max-width: 639px) {
    .ct-footer__brand { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .ct-footer__sns { text-align: center; }
    .ct-footer__sns-list { justify-content: center; }
}

/* スマホのメニューの下: 公式SNSのアイコン（フッターと同じもの）。黒い背景なので、白い線のまま */
.ct-drawer__sns { margin: 20px 0 8px; padding: 18px 16px 0; border-top: 1px solid #333; text-align: center; }
.ct-drawer__sns-label { margin: 0 0 12px; color: #aaa; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.ct-drawer__sns-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ct-drawer__sns-list li { margin: 0; padding: 0; }
.ct-drawer__sns-link {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1.5px solid #888; border-radius: 50%; color: #fff;
}
.ct-drawer__sns-link svg { display: block; width: 19px; height: 19px; }
.ct-drawer__sns-link:active { border-color: #FABE00; background: #FABE00; color: #121212; }

/* 検索の候補: 企業情報の会社（サムネの代わりに、ビルの印） */
.ct-suggest__count--co { padding-top: 4px; }
.ct-suggest__thumb--co {
    display: flex; align-items: center; justify-content: center;
    background: #e8f1f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7FBE' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h9v17M14 9h5v12M3 21h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E") no-repeat center / 22px;
}

/* 企業検索のページ（/tools/tetsujin-score/）: ct-tetsujin-score プラグインが隠している、ページ上の帯（他のページと同じもの）を、また出す（2026-10-20 「他のページにあるのに、ここだけない」）。
   プラグインのCSSも !important なので、ページ固有のクラスをつけて、より強くする */
body.ct-body.page-id-4042 .ct-page-hero {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
}

/* TOPのKVの企業検索（.ctsp__form）の候補（js/top-kv-suggest.js）: 欄の下に、白いカードで出す */
.ctsp__form { position: relative; }
.ctkv-sug {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
    max-height: min(70vh, 520px); overflow-y: auto;
    border: 1px solid #d6e2ee; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(20, 80, 150, .22);
    text-align: left;
}
.ctkv-sug[hidden] { display: none; }
.ctkv-sug__list { margin: 0; padding: 6px 0; list-style: none; }
.ctkv-sug__list li { margin: 0; padding: 0; }
.ctkv-sug__item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 11px 20px; color: #121212; text-decoration: none; font-size: 15px; font-weight: 800; line-height: 1.4;
}
.ctkv-sug__item small { flex: none; color: #6b7a88; font-size: 12px; font-weight: 700; }
.ctkv-sug__item:hover, .ctkv-sug__item:focus-visible { background: #eaf3fb; outline: none; }
.ctkv-sug__none { margin: 0; padding: 16px 20px; color: #6b7a88; font-size: 14px; }
.ctkv-sug__all {
    display: block; padding: 13px 20px; border-top: 1px solid #e3ebf3; background: #f5f9fd;
    color: #1B7FBE; font-size: 14px; font-weight: 800; text-decoration: none;
}
.ctkv-sug__all:hover, .ctkv-sug__all:focus-visible { background: #eaf3fb; outline: none; }
@media screen and (max-width: 639px) {
    .ctkv-sug { border-radius: 14px; }
    .ctkv-sug__item { padding: 11px 16px; font-size: 14px; }
}

.ctkv-sug__item em { flex: none; min-width: 44px; color: #1B7FBE; font-size: 17px; font-style: normal; font-weight: 900; text-align: right; }
.ctkv-sug__item em i { margin-left: 1px; color: #6b7a88; font-size: 11px; font-style: normal; font-weight: 700; }
.ctkv-sug__item .ctkv-sug__name { flex: 1 1 auto; min-width: 0; }

/* TOPのKVの検索窓の上の見出し「鉄人スコアで企業を検索」（inc/link-fix.php が入れる） */
.ctsp__lbl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 14px 0 0 !important; padding: 0 4px; font-size: 14px; font-weight: 700; line-height: 1.4; color: #1a2b3c; }
.ctsp__lbl b { color: #1E78E0; font-weight: 900; }
.ctsp__lbl span { font-size: 12px; font-weight: 500; color: #5b6b7b; }
.ctsp__lbl + .ctsp__form { margin-top: 6px !important; }
@media screen and (max-width: 767px) {
    .ctsp__lbl { margin-top: 3.2vw !important; font-size: 3.6vw; }
    .ctsp__lbl span { display: none; }
    .ctsp__lbl + .ctsp__form { margin-top: 1.6vw !important; }
}

/* 鉄人スコア: 「詳しく見る」の詳細（.tscm）。スマホでは、画面いっぱいではなく、まわりに余白のあるポップアップにする */
@media screen and (max-width: 767px) {
    .tscm { align-items: center; padding: 56px 12px; }
    .tscm .tscm__bg { background: rgba(0, 0, 0, .6); }
    .tscm .tscm__box { width: 100%; max-height: 100%; border-radius: 18px; border-bottom: 2px solid #121212; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
}

/* 鉄人スコアの詳細: 「☆ 気になる会社に保存」は、会社名の下（上の帯の中）に、小さめのボタンで出す（js/favorites.js が移す） */
.tscm .tscm__head .tscm__fav { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 0; padding: 7px 16px; border: 2px solid #121212; border-radius: 999px; background: #fff; color: #121212; font-size: 13.5px; font-weight: 900; line-height: 1.4; box-shadow: 0 2px 0 #121212; cursor: pointer; }
.tscm .tscm__head .tscm__fav[aria-pressed="true"] { background: #FFD43B; box-shadow: inset 0 0 0 0 #121212, 0 2px 0 #121212; }
.tscm .tscm__head .tscm__fav:active { transform: translateY(2px); box-shadow: none; }

/* 鉄人スコアの検索結果: カードのどこを押しても詳しい画面がひらく（js/favorites.js） */
#ct-score .tsc__card { cursor: pointer; }

/* 鉄人スコアの「よくある質問」: 質問をおすと、答えがひらくトグル（inc/link-fix.php が <details> にする） */
.ct-faq { margin: 12px 0 0; }
.ct-faq__i { margin: 0 0 8px; border: 1px solid #CFDDE8; border-radius: 12px; background: #fff; overflow: hidden; }
.ct-faq__q { position: relative; display: block; margin: 0; padding: 14px 44px 14px 16px; font-size: 15px; font-weight: 800; line-height: 1.6; color: #121212; cursor: pointer; list-style: none; }
.ct-faq__q::-webkit-details-marker { display: none; }
.ct-faq__q::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2.5px solid #1E78E0; border-bottom: 2.5px solid #1E78E0; transform: rotate(45deg); transition: transform .2s ease; }
.ct-faq__i[open] > .ct-faq__q { background: #EEF6FC; }
.ct-faq__i[open] > .ct-faq__q::after { margin-top: -2px; transform: rotate(225deg); }
.ct-faq__a { padding: 4px 16px 14px; }
.ct-faq__a p { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.85; }
@media (prefers-reduced-motion: reduce) { .ct-faq__q::after { transition: none; } }

/* 鉄人スコアの一覧: 表示の切りかえ（標準／コンパクト）。js/score-sortval.js がボタンを出す */
#ct-score .tsc__head { flex-wrap: wrap; }
#ct-score .tsc__view { display: inline-flex; flex: none; padding: 3px; border: 1px solid #CFDDE8; border-radius: 999px; background: #fff; }
#ct-score .tsc__view button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: #555; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; }
#ct-score .tsc__view button.is-on { background: #1E78E0; color: #fff; }
/* コンパクト: 順位・会社名・業種・点数だけ */
#ct-score.is-compact .tsc__card { padding-top: 10px; padding-bottom: 10px; }
#ct-score.is-compact .tsc__card .tsc__bars,
#ct-score.is-compact .tsc__card .tsc__badges,
#ct-score.is-compact .tsc__card .tsc__fr { display: none; }
#ct-score.is-compact .tsc__card .tsc__meta { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
#ct-score.is-compact .tsc__card .tsc__score b { font-size: 26px; }
#ct-score.is-compact .tsc__card .tsc__sv { margin-bottom: 0; }

/* 鉄人スコアの一覧: 保存ずみの会社の名前の前の★は出さない（右の☆が、保存ずみの印） */
#ct-score .tsc__name .tsc__star { display: none; }

/* エージェント一覧（/agents/）: 広告表記（【PR】…）は、ページの下に出す */
.ct-pr-foot { margin: 40px 0 0; }
.ct-pr-foot .ct-pr { margin-top: 0; }
