/* キャリ鉄 企業情報の一覧デザイン（/companies/）— しんたろーさんの完成イメージ（2026-11-18）
   ・body.ct-cs-on がついたときだけ働く（?ct_cs=1 か、設定でONのとき）
   ・テーマのCSS（content.css・ct.css）と ct-blue のあとに読むので、body.ct-cs-on を頭につけて強くしてある
   ・青は完成イメージから: 帯・ボタン #005cd6／#0048b8、紺の文字 #0b2a6b、水色の四角 #d9eefe */
body.ct-cs-on {
    --cs-blue: #005cd6;
    --cs-blue-d: #0048b8;
    --cs-line: #8fc0f2;
    --cs-navy: #0b2a6b;
    --cs-ink: #14264d;
    background: #fff;
}
body.ct-cs-on .ct-main { background: #fff; }

/* ヘッダーの下の青い帯（いままでの細い黒い線を、青い帯に） */
body.ct-cs-archive .ct-header::before,
html.ct-blue body.ct-cs-archive .ct-header::before,
html.cs-lock body.ct-cs-on .ct-header::before,
html.ct-blue.cs-lock body.ct-cs-on .ct-header::before { display: block !important; height: 6px; background: var(--cs-blue); }

/* 読み上げ用（画面には出さない） */
body.ct-cs-on .cs-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 題名「企業情報」（左右に水色のななめの線） ---------- */
body.ct-cs-on .ct-page-hero,
html.ct-blue body.ct-cs-on .ct-page-hero {
    background: #fff !important;
    background-image: none !important;
    color: var(--cs-navy);
}
body.ct-cs-on .ct-page-hero__inner { height: auto; min-height: 0; gap: 0; padding: 26px 20px 0; }
body.ct-cs-on .ct-page-hero__small { display: none; }
body.ct-cs-on .ct-page-hero__title {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 0; color: var(--cs-navy);
    font-size: 32px; font-weight: 900; line-height: 1.25; letter-spacing: .02em;
    text-wrap: balance;
}
body.ct-cs-on .ct-page-hero__title::before,
body.ct-cs-on .ct-page-hero__title::after {
    content: ""; flex: none; width: 26px; height: 34px;
    background: no-repeat center / contain;
}
body.ct-cs-on .ct-page-hero__title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34' fill='none' stroke-linecap='round' stroke-width='3.4'%3E%3Cpath d='M4 5l9 24' stroke='%237fc3f6'/%3E%3Cpath d='M14 8l7 18' stroke='%234aa3ee'/%3E%3C/svg%3E");
}
body.ct-cs-on .ct-page-hero__title::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34' fill='none' stroke-linecap='round' stroke-width='3.4'%3E%3Cpath d='M22 5l-9 24' stroke='%237fc3f6'/%3E%3Cpath d='M12 8l-7 18' stroke='%234aa3ee'/%3E%3C/svg%3E");
}

/* パンくずは、完成イメージにないので出さない（検索結果用の構造化データは別にあるので、そのまま） */
body.ct-cs-on .ct-breadcrumb { display: none; }
body.ct-cs-on .ct-archive-head { margin: 0; padding: 0; }
body.ct-cs-on .cs-sub {
    margin: 10px 0 0; text-align: center; text-wrap: balance;
    color: #1b2b4d; font-size: clamp(12.5px, 3.8vw, 15px); font-weight: 600; line-height: 1.6;
}

/* ---------- 検索ボックス（左に虫めがね・右に青い「検索」） ---------- */
body.ct-cs-on .ct-company__search {
    display: flex; align-items: stretch; box-sizing: border-box;
    max-width: none; height: 46px; margin: 18px 0 0;
    border: 2px solid #4aa3f7; border-radius: 12px; background: #fff; overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 92, 214, .12);
}
body.ct-cs-on .ct-company__search:focus-within { box-shadow: 0 0 0 3px rgba(0, 92, 214, .22); }
body.ct-cs-on .ct-company__search .ct-search__input {
    flex: 1 1 auto; min-width: 0; width: auto; height: auto; box-sizing: border-box;
    padding: 0 10px 0 46px; border: 0; border-radius: 0; box-shadow: none; outline: none;
    background: #fff no-repeat 15px center / 21px 21px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202733' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E");
    color: var(--cs-ink); font-size: 16px; font-weight: 600;
}
body.ct-cs-on .ct-company__search .ct-search__input::placeholder { color: #8a92a1; font-weight: 500; }
body.ct-cs-on .ct-company__search .ct-search__submit,
html.ct-blue body.ct-cs-on .ct-company__search .ct-search__submit {
    position: static; transform: none; flex: none; display: flex; align-items: center; justify-content: center;
    width: 88px; height: auto; padding: 0; border: 0; border-radius: 0;
    background: linear-gradient(180deg, #0a63da, var(--cs-blue-d));
    color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .06em;
}
body.ct-cs-on .ct-company__search .ct-search__submit:hover { opacity: 1; filter: brightness(1.1); }
body.ct-cs-on .ct-company__search .ct-search__submit svg { display: none; }
body.ct-cs-on .ct-company__search .ct-search__submit::before { content: "検索"; }

/* ---------- 「業種で絞り込む」ボタン（左にじょうご・右にくの字） ---------- */
body.ct-cs-on .ct-industry {
    margin: 12px 0 0; border-radius: 8px; background: transparent; box-shadow: none;
}
body.ct-cs-on .ct-industry__summary {
    display: flex; align-items: center; gap: 10px; box-sizing: border-box;
    min-height: 46px; padding: 0 14px; border: 1px solid #bcc0cb; border-radius: 8px; background: #fff;
    color: #1a1f2c; font-size: 15px; font-weight: 700;
}
body.ct-cs-on .ct-industry__summary::before {
    content: ""; flex: none; width: 24px; height: 24px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23272d3b' stroke-width='1.9' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3.5 5h17l-6.6 7.6V19l-3.8 1.8v-8.2z'/%3E%3C/svg%3E");
}
body.ct-cs-on .ct-industry__summary::after,
body.ct-cs-on .ct-industry[open] .ct-industry__summary::after {
    content: ""; position: static; flex: none; width: 22px; height: 22px; margin: 0 0 0 auto;
    border: 0; transform: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23272d3b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
body.ct-cs-on .ct-industry__summary:focus-visible { outline: 3px solid rgba(0, 92, 214, .35); outline-offset: 2px; }
body.ct-cs-on .ct-industry__badge,
html.ct-blue body.ct-cs-on .ct-industry__badge {
    flex: none; margin: 0; padding: 2px 10px; border-radius: 999px;
    background: #e4f0ff; color: var(--cs-blue-d); font-size: 12px; font-weight: 800; line-height: 1.5;
}
body.ct-cs-on .ct-industry__badge[hidden] { display: none; }

/* ---------- 一覧の見出し（左に青い棒） ---------- */
body.ct-cs-on .ct-company__status {
    position: relative; margin: 26px 0 4px; padding-left: 14px;
    color: var(--cs-navy); font-size: 18px; font-weight: 800; line-height: 1.45;
}
body.ct-cs-on .ct-company__status::before {
    content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 2px; background: #005acd;
}

/* ---------- 「業種から企業を探す」（画面いっぱい。ヘッダーは残る） ---------- */
html.cs-lock, html.cs-lock body { overflow: hidden; }
/* 開いている間だけ、祖先の transform などを外す（cs.js）。fixed のパネルが画面を基準にするため */
.cs-notf { transform: none !important; filter: none !important; perspective: none !important; will-change: auto !important; contain: none !important; transition: none !important; }
html.cs-lock .ct-fbn, html.cs-lock .ct-pagetop, html.cs-lock .ctsp-nav, html.cs-lock .ct-fixbar, html.cs-lock .ctfg-pill { display: none !important; }
body.ct-cs-on .ct-industry:not(.cs-open) .ct-industry__body { display: none; }
body.ct-cs-on .ct-industry__body:focus { outline: none; }
body.ct-cs-on .ct-industry__clear { display: none; }
body.ct-cs-on .ct-industry.cs-open .ct-industry__body {
    position: fixed; z-index: 1500; left: 0; right: 0; bottom: 0; top: var(--cs-top, 60px);
    display: block; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 6px 20px calc(36px + env(safe-area-inset-bottom, 0px)); background: #fff;
}
body.ct-cs-on .cs-phead { text-align: center; }
body.ct-cs-on .cs-phead__row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
body.ct-cs-on .cs-close {
    display: inline-flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 8px 0 8px 12px;
    border: 0; background: none; color: #1b2b4d; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer;
}
body.ct-cs-on .cs-close svg { width: 15px; height: 15px; }
body.ct-cs-on .cs-close:focus-visible { outline: 3px solid rgba(0, 92, 214, .35); outline-offset: 2px; border-radius: 4px; }
body.ct-cs-on .cs-phead .ct-industry__clear-btn {
    padding: 8px 12px 8px 0; border: 0; background: none; color: var(--cs-blue); font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: underline; cursor: pointer;
}
body.ct-cs-on .cs-phead .ct-industry__clear-btn[hidden] { display: none; }
body.ct-cs-on .cs-ptitle {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0;
    color: var(--cs-navy); font-size: 22px; font-weight: 900; line-height: 1.3; letter-spacing: .02em;
}
body.ct-cs-on .cs-ptitle::before, body.ct-cs-on .cs-ptitle::after { content: ""; flex: none; width: 19px; height: 25px; background: no-repeat center / contain; }
body.ct-cs-on .cs-ptitle::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34' fill='none' stroke-linecap='round' stroke-width='3.6'%3E%3Cpath d='M4 5l9 24' stroke='%237fc3f6'/%3E%3Cpath d='M14 8l7 18' stroke='%234aa3ee'/%3E%3C/svg%3E"); }
body.ct-cs-on .cs-ptitle::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34' fill='none' stroke-linecap='round' stroke-width='3.6'%3E%3Cpath d='M22 5l-9 24' stroke='%237fc3f6'/%3E%3Cpath d='M12 8l-7 18' stroke='%234aa3ee'/%3E%3C/svg%3E"); }
body.ct-cs-on .cs-psub { margin: 6px 0 0; color: #33425f; font-size: 13.5px; font-weight: 600; line-height: 1.5; }

body.ct-cs-on .ct-industry__group { margin: 20px 0 0; }
body.ct-cs-on .ct-industry__label,
html.ct-blue body.ct-cs-on .ct-industry__label {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 0 8px;
    border-bottom: 1px solid #c4dcf6; color: #0b1f4d; font-size: 18px; font-weight: 800; line-height: 1.3;
}
body.ct-cs-on .ct-industry__label::before { display: none; }
body.ct-cs-on .cs-gi {
    display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px;
    background: #d9eefe; color: #1d6fe0;
}
body.ct-cs-on .cs-gi svg { width: 23px; height: 23px; }
body.ct-cs-on .ct-industry__chips {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none;
}
body.ct-cs-on .ct-industry__chips > li { min-width: 0; margin: 0; }
body.ct-cs-on .ct-chip-btn,
html.ct-blue body.ct-cs-on .ct-chip-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 4px; box-sizing: border-box;
    width: 100%; min-height: 42px; padding: 6px 6px 6px 10px;
    border: 1px solid var(--cs-line); border-radius: 5px; background: #fff;
    color: var(--cs-ink); font-size: clamp(12px, 3.2vw, 13px); font-weight: 700; line-height: 1.35; text-decoration: none;
}
body.ct-cs-on .ct-chip-btn::after {
    content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px;
    border: solid var(--cs-blue); border-width: 2px 2px 0 0; transform: rotate(45deg);
}
body.ct-cs-on .cs-tx { min-width: 0; text-wrap: balance; }
body.ct-cs-on .cs-nb { white-space: nowrap; }
body.ct-cs-on .ct-chip-btn:hover { opacity: 1; background: #f2f8ff; }
body.ct-cs-on .ct-chip-btn.is-active,
html.ct-blue body.ct-cs-on .ct-chip-btn.is-active { border-color: #0064de; background: #0064de; color: #fff; }
body.ct-cs-on .ct-chip-btn.is-active::after {
    /* テーマの「×」の丸を使わず、完成イメージどおり白い「>」のまま */
    content: ""; display: block; flex: none; width: 8px; height: 8px; margin: 0 2px 0 0; border-radius: 0;
    background: none; border: solid #fff; border-width: 2px 2px 0 0; font-size: 0; line-height: 0; transform: rotate(45deg);
}
body.ct-cs-on .ct-chip-btn:focus-visible { outline: 3px solid rgba(0, 92, 214, .35); outline-offset: 2px; }

/* ---------- トップページの「企業情報検索」の枠（#company） ---------- */
body.ct-cs-on #company.ct-company { padding-top: 48px; background: #fff; }
body.ct-cs-on #company .ct-title {
    flex-direction: row; justify-content: center; align-items: center; gap: 12px; margin: 0;
    color: var(--cs-navy); font-size: 32px; font-weight: 900; line-height: 1.25; letter-spacing: .02em;
}
body.ct-cs-on #company .ct-title__text { color: var(--cs-navy); font-size: inherit; font-weight: 900; text-wrap: balance; }
body.ct-cs-on #company .ct-title::before, body.ct-cs-on #company .ct-title::after {
    content: ""; flex: none; width: 26px; height: 34px; background: no-repeat center / contain;
}
body.ct-cs-on #company .ct-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34' fill='none' stroke-linecap='round' stroke-width='3.4'%3E%3Cpath d='M4 5l9 24' stroke='%237fc3f6'/%3E%3Cpath d='M14 8l7 18' stroke='%234aa3ee'/%3E%3C/svg%3E");
}
body.ct-cs-on #company .ct-title::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34' fill='none' stroke-linecap='round' stroke-width='3.4'%3E%3Cpath d='M22 5l-9 24' stroke='%237fc3f6'/%3E%3Cpath d='M12 8l-7 18' stroke='%234aa3ee'/%3E%3C/svg%3E");
}
body.ct-cs-on #company .ct-more { margin-top: 20px; }
body.ct-cs-on #company .ct-more .ct-btn-black { text-wrap: balance; }

/* ---------- スマホの一覧：左にサムネ・右に業種と題名の横長の行 ---------- */
@media (max-width: 767.98px) {
    body.ct-cs-on .ct-grid[data-ct-a-list] { display: block; margin: 8px 0 24px; }
    body.ct-cs-on .ct-grid[data-ct-a-list] > .ct-card { border-top: 1px solid #e6e7eb; }
    body.ct-cs-on .ct-grid[data-ct-a-list] > .ct-card:last-child { border-bottom: 1px solid #e6e7eb; }
    body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__link {
        display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 13px; align-items: start;
        height: auto; padding: 12px 0; background: transparent; box-shadow: none; transform: none;
    }
    body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__thumb { border-radius: 6px; }
    body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__body { position: relative; min-width: 0; padding: 0 26px 0 0; }
    body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__cat,
    html.ct-blue body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__cat {
        display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 6px;
        background: #ececf0; color: #1a2740; font-size: 11.5px; font-weight: 700; line-height: 1.6;
    }
    body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__title {
        display: -webkit-box; margin: 7px 0 0; overflow: hidden;
        -webkit-box-orient: vertical; -webkit-line-clamp: 3;
        color: #0f1a30; font-size: 14px; font-weight: 700; line-height: 1.5;
    }
    body.ct-cs-on .ct-grid[data-ct-a-list] .ct-card__date,
    body.ct-cs-on .ct-grid[data-ct-a-list] .ctpm-row { display: none; }
    /* 右はしの☆（サムネの☆と同じお気に入り。同じ印がつく） */
    body.ct-cs-on .cs-rowstar,
    html.ct-blue body.ct-cs-on .cs-rowstar {
        top: -5px; right: -6px; width: 32px; height: 32px; border-radius: 0;
        background-color: transparent; background-size: 21px; box-shadow: none; z-index: 2;
    }
    body.ct-cs-on .cs-rowstar.is-on,
    html.ct-blue body.ct-cs-on .cs-rowstar.is-on { background-color: transparent; box-shadow: none; }
}

@media (max-width: 767.98px) {
    body.ct-cs-on .ct-company__list { display: block; gap: 0; margin: 8px 0 0; }
    body.ct-cs-on .ct-company__list > .ct-tip {
        display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 13px; align-items: start;
        padding: 12px 0; border-radius: 0; background: transparent; box-shadow: none; border-top: 1px solid #e6e7eb;
    }
    body.ct-cs-on .ct-company__list > .ct-tip:last-child { border-bottom: 1px solid #e6e7eb; }
    body.ct-cs-on .ct-company__list .ct-tip__thumb { border-radius: 6px; }
    body.ct-cs-on .ct-company__list .ct-tip__body { position: relative; min-width: 0; padding: 0 26px 0 0; }
    body.ct-cs-on .ct-company__list .ct-tip__tag,
    html.ct-blue body.ct-cs-on .ct-company__list .ct-tip__tag {
        display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 6px;
        background: #ececf0; color: #1a2740; font-size: 11.5px; font-weight: 700; line-height: 1.6;
    }
    body.ct-cs-on .ct-company__list .ct-tip__title {
        display: -webkit-box; margin: 7px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
        color: #0f1a30; font-size: 14px; font-weight: 700; line-height: 1.5; word-break: auto-phrase;
    }
    body.ct-cs-on .ct-company__list .ctpm-row { display: none; }
}

/* ---------- パソコン：上の部分だけ新しい形（一覧は今までのカード） ---------- */
@media (min-width: 768px) {
    body.ct-cs-on .cs-rowstar { display: none; }
    body.ct-cs-on .ct-page-hero__inner { padding-top: 40px; }
    body.ct-cs-on .ct-page-hero__title { font-size: 44px; gap: 16px; }
    body.ct-cs-on .ct-page-hero__title::before, body.ct-cs-on .ct-page-hero__title::after { width: 34px; height: 44px; }
    body.ct-cs-on #company .ct-title { font-size: 44px; gap: 16px; }
    body.ct-cs-on #company .ct-title::before, body.ct-cs-on #company .ct-title::after { width: 34px; height: 44px; }
    body.ct-cs-on .cs-sub { margin-top: 12px; font-size: 16px; }
    body.ct-cs-on .ct-company__search { max-width: 760px; height: 54px; margin: 28px auto 0; }
    body.ct-cs-on .ct-industry { max-width: 760px; margin: 14px auto 0; }
    body.ct-cs-on .ct-industry__summary { min-height: 50px; }
    body.ct-cs-on .ct-company__status { margin-top: 36px; }
    /* パソコンの「業種から企業を探す」は、背景を暗くした中央のウィンドウ */
    body.ct-cs-on .ct-industry.cs-open .ct-industry__body {
        left: 50%; right: auto; top: 96px; bottom: 36px; width: min(760px, calc(100vw - 40px));
        transform: translateX(-50%); border-radius: 16px; padding: 14px 32px 32px;
        box-shadow: 0 0 0 100vmax rgba(8, 24, 60, .45), 0 12px 40px rgba(0, 0, 0, .25);
    }
    body.ct-cs-on .ct-industry__chips { grid-template-columns: repeat(3, 1fr); }
}
