/* =========================================================
   COCO WORKS ブログ
   ブログのテンプレートでだけ読み込む。既存ページには効かない。
   色・角丸・影・ピル型タグは style.css / front-page.php の値に合わせている。
   ========================================================= */

.cw-blog {
    --cw-primary: #0089d0;
    --cw-primary-hover: #006ba6;
    --cw-primary-text: #006ba6;
    --cw-success: #3ea612;
    --cw-ink: #2b2f33;
    --cw-ink-strong: #13324a;
    --cw-muted: #66717c;
    --cw-line: #e1e8ed;
    --cw-bg: #f8f9fa;
    --cw-band: #f0f4f8;
    --cw-blue-soft: #e3f2fd;
    --cw-blue-line: #cfe6f5;
    --cw-green-soft: #e8f5e9;
    --cw-green-ink: #2e7d32;
    --cw-orange-soft: #fff3e0;
    --cw-orange-ink: #a64a00;
    --cw-orange-line: #ffcc80;
    --cw-radius: 12px;
    --cw-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --cw-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.14);
    --cw-header-offset: 96px;

    background: var(--cw-bg);
    color: var(--cw-ink);
    font-size: 16px;
    line-height: 1.7;
    padding-bottom: 8px;
}

.cw-blog *,
.cw-blog *::before,
.cw-blog *::after { box-sizing: border-box; }

.cw-blog img { max-width: 100%; height: auto; }

.cw-blog a:focus-visible,
.cw-blog button:focus-visible,
.cw-blog input:focus-visible,
.cw-blog summary:focus-visible {
    outline: 3px solid rgba(0, 137, 208, 0.45);
    outline-offset: 2px;
}

.cw-blog .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.cw-blog__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- ヒーロー（一覧・カテゴリー） ---------- */
.cw-hero {
    background: var(--cw-band);
    padding: 16px 0 20px;
}
.cw-hero__eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--cw-primary-text);
    margin: 8px 0 2px;
}
.cw-hero__title {
    font-size: 24px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--cw-ink-strong);
    letter-spacing: 0.02em;
    margin: 6px 0 6px;
}
.cw-hero__lead {
    font-size: 15px;
    color: #4a5560;
    margin: 0 0 14px;
}

/* パンくず */
.cw-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--cw-muted);
}
.cw-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.cw-breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
    color: #a3adb6;
}
.cw-breadcrumb a { color: var(--cw-muted); text-decoration: none; }
.cw-breadcrumb a:hover { color: var(--cw-primary-text); text-decoration: underline; }
.cw-breadcrumb [aria-current] span {
    display: inline-block;
    max-width: 16em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .cw-blog--single .cw-breadcrumb li[aria-current] { display: none; }
}

/* カテゴリーの切り替え（スマホは横にスクロール） */
.cw-chips { margin: 0 -16px; }
.cw-chips ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cw-chips ul::-webkit-scrollbar { display: none; }
.cw-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d3e3ee;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.cw-chip:hover { border-color: var(--cw-primary); color: var(--cw-primary-text); }
.cw-chip.is-active {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
    color: #fff;
}

/* ---------- レイアウト ---------- */
.cw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 20px;
}
.cw-main { min-width: 0; }

.cw-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    margin: 28px 0 14px;
}
.cw-section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cw-primary);
    flex: none;
}
.cw-featured + .cw-section-title { margin-top: 32px; }
.cw-main > .cw-section-title:first-child { margin-top: 4px; }

.cw-count,
.cw-result-head {
    font-size: 14px;
    color: var(--cw-muted);
    margin: 0 0 12px;
}
.cw-count strong,
.cw-result-head strong { color: var(--cw-primary-text); font-size: 18px; }
.cw-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cw-result-head p { margin: 0; }
.cw-result-head a { color: var(--cw-primary-text); font-size: 14px; }

/* ---------- ピル型タグ（求人カードと同じ配色） ---------- */
.cw-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.cw-pill--blue { background: var(--cw-blue-soft); color: var(--cw-primary-text); }
.cw-pill--green { background: var(--cw-green-soft); color: var(--cw-green-ink); }
.cw-pill--orange {
    background: var(--cw-orange-soft);
    color: var(--cw-orange-ink);
    box-shadow: inset 0 0 0 1px var(--cw-orange-line);
}
a.cw-pill:hover { filter: brightness(0.96); }

/* ---------- 画像の枠 ---------- */
.cw-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef3f7;
}
.cw-thumb > img,
.cw-thumb .cw-thumb__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cw-thumb__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cw-blue-soft);
}
.cw-thumb__placeholder img {
    width: 52%;
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

/* ---------- 記事カード ---------- */
.cw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.cw-card {
    background: #fff;
    border-radius: var(--cw-radius);
    box-shadow: var(--cw-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cw-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.cw-card__thumb img { transition: transform 0.35s ease; }
.cw-card__new {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--cw-green-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.6;
}
.cw-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 13px;
    color: var(--cw-muted);
    margin-bottom: 6px;
}
.cw-card__title {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
    color: #222;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cw-card__excerpt {
    font-size: 15px;
    color: #555;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cw-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--cw-primary-text);
}

/* スマホ：一覧のカードは「左に写真・右に見出し」で詰めて並べる */
.cw-card--grid .cw-card__link {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    align-items: start;
}
.cw-card--grid .cw-card__thumb {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}
.cw-card--grid .cw-card__new { top: 4px; left: 4px; padding: 0 7px; }

.cw-card--featured .cw-card__body { padding: 16px 16px 18px; }
.cw-card--featured .cw-card__title {
    font-size: 19px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}

@media (hover: hover) {
    .cw-card:hover { box-shadow: var(--cw-shadow-hover); transform: translateY(-2px); }
    .cw-card:hover .cw-card__thumb img { transform: scale(1.04); }
    .cw-card:hover .cw-card__title { color: var(--cw-primary-text); }
}

/* ---------- ボタン（ピル型） ---------- */
.cw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.cw-btn:active { transform: translateY(1px); }
.cw-btn--primary { background: var(--cw-primary); color: #fff !important; }
.cw-btn--primary:hover { background: var(--cw-primary-hover); }
.cw-btn--outline {
    background: #fff;
    color: var(--cw-primary-text) !important;
    box-shadow: inset 0 0 0 2px var(--cw-primary);
}
.cw-btn--outline:hover { background: var(--cw-blue-soft); }
.cw-btn--block { display: flex; width: 100%; }

/* ---------- 求人を探す（サイドバー・記事の最後） ---------- */
.cw-jobbox {
    background: #fff;
    border-radius: var(--cw-radius);
    box-shadow: var(--cw-shadow);
    padding: 20px 18px;
}
.cw-jobbox__head { margin-bottom: 12px; }
.cw-jobbox__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    margin: 0;
    line-height: 1.4;
}
.cw-jobbox__count {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--cw-muted);
}
.cw-jobbox__count strong {
    font-size: 22px;
    color: var(--cw-primary);
    margin: 0 2px;
    font-weight: 700;
}
.cw-jobbox__form {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
}
.cw-blog .cw-jobbox__form input[type="text"],
.cw-blog .cw-blog-search input[type="text"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 10px 12px !important;
    border: 2px solid var(--cw-line);
    border-radius: 8px;
    font-size: 16px !important;
    background: #fff;
    color: #333;
}
.cw-blog .cw-jobbox__form input[type="text"]:focus,
.cw-blog .cw-blog-search input[type="text"]:focus { border-color: var(--cw-primary); outline: none; }
.cw-jobbox__form .cw-btn { padding: 10px 16px; flex: none; }

.cw-quick {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 4px;
    padding: 0;
}
.cw-quick .cw-pill { min-height: 40px; padding: 6px 14px; font-size: 14px; }

.cw-jobbox__sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    margin: 16px 0 8px;
}
.cw-joblist {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.cw-joblist__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: var(--cw-bg);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s;
}
.cw-joblist__item:hover { background: var(--cw-blue-soft); }
.cw-joblist__thumb {
    width: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}
.cw-joblist__thumb .cw-thumb__placeholder img { width: 80%; }
.cw-joblist__body { min-width: 0; display: grid; gap: 2px; }
.cw-joblist__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cw-joblist__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    font-size: 13px;
    color: var(--cw-muted);
}
.cw-joblist__company { color: var(--cw-primary-text); font-weight: 700; }
.cw-jobbox > .cw-btn--block { margin-top: 14px; }
.cw-jobbox .cw-joblist + .cw-btn--block { margin-top: 0; }

/* 記事の最後の求人の箱は少し大きく */
.cw-jobbox--end {
    margin-top: 28px;
    padding: 24px 18px;
    box-shadow: inset 0 0 0 2px var(--cw-blue-line), var(--cw-shadow);
}
.cw-jobbox--end .cw-jobbox__title { font-size: 21px; }

/* 記事の途中の短い求人導線 */
.cw-inline-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 2.2em 0;
    padding: 18px;
    border-radius: var(--cw-radius);
    background: #f2f9fe;
    box-shadow: inset 0 0 0 1px var(--cw-blue-line);
    text-align: center;
}
.cw-inline-cta__text {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    line-height: 1.6;
}
.cw-inline-cta__text strong,
.cw-entry .cw-inline-cta__text strong { color: var(--cw-primary-text); font-size: 20px; margin: 0 2px; }
.cw-inline-cta__label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--cw-primary-text);
    margin-bottom: 2px;
}
.cw-inline-cta__note {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cw-muted);
}
.cw-entry .cw-inline-cta .cw-btn { color: #fff; text-decoration: none; }

/* ---------- サイドバー ---------- */
.cw-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.cw-side__box {
    background: #fff;
    border-radius: var(--cw-radius);
    box-shadow: var(--cw-shadow);
    padding: 18px;
}
.cw-side__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    margin: 0 0 12px;
}
.cw-side__title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cw-primary);
}

.cw-blog-search { position: relative; display: flex; }
.cw-blog .cw-blog-search input[type="text"] { padding-right: 44px !important; }
.cw-blog-search button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--cw-primary);
    font-size: 16px;
}

.cw-catlist { list-style: none; margin: 0; padding: 0; }
.cw-catlist li + li { border-top: 1px dashed var(--cw-line); }
.cw-catlist a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 2px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
}
.cw-catlist a:hover { color: var(--cw-primary-text); }
.cw-catlist__count {
    min-width: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--cw-band);
    color: var(--cw-muted);
    font-size: 13px;
    text-align: center;
}

.cw-company {
    background: #fff;
    border-radius: var(--cw-radius);
    box-shadow: inset 0 0 0 1px var(--cw-line);
    padding: 18px;
}
.cw-company__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    margin: 0 0 6px;
    line-height: 1.5;
}
.cw-company__text { font-size: 15px; color: #555; margin: 0 0 12px; }

/* ---------- ページ送り（トップの求人一覧と同じ形） ---------- */
.cw-pager { margin: 28px 0 8px; }
.cw-pager ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.cw-pager a,
.cw-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--cw-primary-text);
    font-size: 14px;
    text-decoration: none;
}
.cw-pager .current { background: var(--cw-primary); border-color: var(--cw-primary); color: #fff; font-weight: 700; }
.cw-pager .dots { border: none; background: transparent; color: var(--cw-muted); }
.cw-pager .prev,
.cw-pager .next { border-color: var(--cw-primary); }

/* ---------- 記事がないとき ---------- */
.cw-empty {
    background: #fff;
    border-radius: var(--cw-radius);
    box-shadow: var(--cw-shadow);
    padding: 40px 20px;
    text-align: center;
}
.cw-empty img { width: 160px; height: auto; opacity: 0.85; }
.cw-empty__text { font-size: 16px; color: #555; margin: 16px 0 20px; }

/* =========================================================
   記事ページ
   ========================================================= */
.cw-blog--single .cw-layout { padding-top: 16px; }

.cw-article {
    background: #fff;
    border-radius: var(--cw-radius);
    box-shadow: var(--cw-shadow);
    padding: 18px 16px 24px;
}
.cw-article__head { margin-bottom: 16px; }
.cw-article__cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.cw-article__title {
    font-size: 23px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--cw-ink-strong);
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}
.cw-article__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--cw-muted);
}
.cw-article__meta i { margin-right: 2px; }
.cw-article__eyecatch {
    margin: 0 -16px 24px;
    border-radius: 0;
}

/* ---------- 本文 ---------- */
.cw-entry {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: var(--cw-ink);
    overflow-wrap: break-word;
}
.cw-entry > *:first-child { margin-top: 0; }
.cw-entry p { margin: 0 0 1.5em; }

.cw-entry h2,
.cw-entry h3,
.cw-entry h4 { scroll-margin-top: var(--cw-header-offset); color: var(--cw-ink-strong); font-weight: 700; }

.cw-entry h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 2.6em 0 1.1em;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--cw-blue-soft);
    font-size: 20px;
    line-height: 1.5;
}
.cw-entry h2::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cw-primary);
    transform: translateY(-2px);
}
.cw-entry h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 2.2em 0 0.9em;
    font-size: 18px;
    line-height: 1.55;
}
.cw-entry h3::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--cw-primary);
    transform: translateY(-1px);
}
.cw-entry h4 {
    margin: 1.8em 0 0.6em;
    font-size: 17px;
    color: var(--cw-primary-text);
}

.cw-entry a {
    color: var(--cw-primary-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.cw-entry a:hover { color: #00507d; }
.cw-entry strong, .cw-entry b { font-weight: 700; color: var(--cw-ink-strong); }

/* リスト（通常の箇条書きだけ。ギャラリー・SNSリンク等には付けない） */
.cw-entry ul:is(.wp-block-list, :not([class])),
.cw-entry ol:is(.wp-block-list, :not([class])) {
    list-style: none;
    margin: 0 0 1.6em;
    padding: 0;
}
.cw-entry :is(ul, ol):is(.wp-block-list, :not([class])) > li { position: relative; margin: 0 0 0.5em; padding-left: 1.6em; }
.cw-entry ul:is(.wp-block-list, :not([class])) > li::before {
    content: "";
    position: absolute;
    left: 0.4em;
    top: 0.75em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cw-primary);
}
.cw-entry ol:is(.wp-block-list, :not([class])) { counter-reset: cw-ol; }
.cw-entry ol:is(.wp-block-list, :not([class])) > li { counter-increment: cw-ol; padding-left: 2.1em; }
.cw-entry ol:is(.wp-block-list, :not([class])) > li::before {
    content: counter(cw-ol);
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: var(--cw-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5em;
    text-align: center;
}
.cw-entry li > :is(ul, ol) { margin: 0.5em 0 0; }

/* 画像・キャプション */
.cw-entry figure { margin: 0 0 1.8em; }
.cw-entry figure img,
.cw-entry .wp-block-image img { border-radius: 10px; }
.cw-entry figcaption,
.cw-entry .wp-element-caption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--cw-muted);
    text-align: center;
    line-height: 1.6;
}

/* 表（スマホは横にスクロール） */
.cw-entry .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cw-entry table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
}
.cw-entry th,
.cw-entry td {
    padding: 10px 12px;
    border: 1px solid var(--cw-line);
    text-align: left;
    vertical-align: top;
}
.cw-entry th,
.cw-entry thead td { background: var(--cw-blue-soft); color: var(--cw-ink-strong); font-weight: 700; }
.cw-entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f7fafc; }

/* 引用 */
.cw-entry blockquote,
.cw-entry .wp-block-quote {
    position: relative;
    margin: 0 0 1.8em;
    padding: 20px 20px 18px 50px;
    border: none;
    border-radius: 10px;
    background: #f5f7f9;
    color: #444;
}
.cw-entry blockquote::before {
    content: "\201C";
    position: absolute;
    left: 14px;
    top: 4px;
    font-size: 48px;
    line-height: 1;
    font-family: Georgia, serif;
    color: #9ccbe8;
}
.cw-entry blockquote p:last-child { margin-bottom: 0; }
.cw-entry blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    color: var(--cw-muted);
}

/* 区切り・ボタン・埋め込み */
.cw-entry hr,
.cw-entry .wp-block-separator {
    border: none;
    height: 1px;
    background: var(--cw-line);
    margin: 2.6em auto;
}
.cw-entry .wp-block-buttons { margin: 0 0 1.8em; gap: 10px; }
.cw-entry .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
.cw-entry .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--cw-primary); }
.cw-entry .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color) { color: #fff; }
.cw-entry .wp-block-button.is-style-outline .wp-block-button__link {
    background: #fff;
    color: var(--cw-primary-text);
    border: 2px solid var(--cw-primary);
}
.cw-entry .wp-block-embed { margin: 0 0 1.8em; }
.cw-entry .wp-block-embed__wrapper iframe,
.cw-entry iframe[src*="youtube"] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
}
.cw-entry .wp-block-embed.is-type-rich iframe { aspect-ratio: auto; }
.cw-entry code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f3f6;
    font-size: 0.9em;
}
.cw-entry pre {
    margin: 0 0 1.8em;
    padding: 16px;
    border-radius: 10px;
    background: #f5f7f9;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}
.cw-entry pre code { padding: 0; background: none; }

/* よくある質問（「詳細」ブロック） */
.cw-entry details:not(.cw-toc) {
    margin: 0 0 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cw-line);
    overflow: hidden;
}
.cw-entry details:not(.cw-toc) > summary {
    position: relative;
    padding: 14px 44px 14px 16px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    cursor: pointer;
    list-style: none;
}
.cw-entry details:not(.cw-toc) > summary::-webkit-details-marker { display: none; }
.cw-entry details:not(.cw-toc) > summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--cw-primary);
}
.cw-entry details:not(.cw-toc)[open] > summary::after { content: "−"; }
.cw-entry details:not(.cw-toc) > *:not(summary) { margin: 0; padding: 0 16px 14px; }

/* ---------- 目次 ---------- */
.cw-entry .cw-toc {
    margin: 2em 0 2.4em;
    padding: 0;
    border-radius: var(--cw-radius);
    background: #f7fbfe;
    box-shadow: inset 0 0 0 1px var(--cw-blue-line);
}
.cw-toc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cw-ink-strong);
    cursor: pointer;
    list-style: none;
}
.cw-toc__title::-webkit-details-marker { display: none; }
.cw-toc__title i { color: var(--cw-primary); }
.cw-toc__title::after {
    content: "閉じる";
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--cw-primary-text);
}
.cw-toc:not([open]) .cw-toc__title::after { content: "開く"; }
.cw-entry .cw-toc ol {
    list-style: none;
    margin: 0;
    padding: 0 18px 16px;
    counter-reset: cw-toc;
}
.cw-entry .cw-toc li {
    margin: 0;
    padding: 0;
    counter-increment: cw-toc;
}
.cw-entry .cw-toc li::before { content: none; }
.cw-entry .cw-toc__list > li > a {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}
.cw-entry .cw-toc__list > li > a::before {
    content: counter(cw-toc) ".";
    color: var(--cw-primary-text);
    font-weight: 700;
    flex: none;
    min-width: 1.4em;
}
.cw-entry .cw-toc__sub { padding: 0 0 4px 2em !important; }
.cw-entry .cw-toc__sub li { counter-increment: none; }
.cw-entry .cw-toc__sub a {
    display: block;
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}
.cw-entry .cw-toc a { color: #333; text-decoration: none; }
.cw-entry .cw-toc a:hover { color: var(--cw-primary-text); text-decoration: underline; }

/* ---------- 記事の中で使う枠（パターン「COCO WORKS｜…」） ---------- */
.cw-entry .cw-point,
.cw-entry .cw-note,
.cw-entry .cw-memo {
    position: relative;
    margin: 2.4em 0 2em;
    padding: 26px 18px 16px;
    border-radius: var(--cw-radius);
    background: #fff;
    box-shadow: inset 0 0 0 2px #b9dcf0;
}
.cw-entry .cw-note { background: #fffaf2; box-shadow: inset 0 0 0 2px var(--cw-orange-line); }
.cw-entry .cw-memo { background: var(--cw-bg); box-shadow: inset 0 0 0 1px var(--cw-line); }
.cw-entry .cw-point > *:last-child,
.cw-entry .cw-note > *:last-child,
.cw-entry .cw-memo > *:last-child,
.cw-entry .cw-point > .wp-block-group__inner-container > *:last-child,
.cw-entry .cw-note > .wp-block-group__inner-container > *:last-child,
.cw-entry .cw-memo > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
.cw-entry .cw-box-label {
    position: absolute;
    top: -14px;
    left: 16px;
    margin: 0 !important;
    padding: 2px 14px;
    border-radius: 999px;
    background: var(--cw-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}
.cw-entry .cw-note .cw-box-label { background: var(--cw-orange-ink); }
.cw-entry .cw-memo .cw-box-label { background: var(--cw-muted); }

/* チェックリスト */
.cw-entry ul.cw-check > li { padding-left: 2em; }
.cw-entry ul.cw-check > li::before {
    content: "";
    left: 0.1em;
    top: 0.45em;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    background: var(--cw-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* お店・職場の基本情報 */
.cw-entry .cw-shop table th { width: 32%; background: #f2f9fe; white-space: nowrap; }

/* 記事内の求人への案内（パターン） */
.cw-entry .cw-jobcta {
    margin: 2.4em 0;
    padding: 22px 18px;
    border-radius: var(--cw-radius);
    background: #f2f9fe;
    box-shadow: inset 0 0 0 1px var(--cw-blue-line);
    text-align: center;
}
.cw-entry .cw-jobcta > *:last-child,
.cw-entry .cw-jobcta > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
.cw-entry .cw-jobcta .wp-block-buttons { justify-content: center; margin-bottom: 0; }

/* ---------- 記事の下 ---------- */
.cw-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
}
.cw-tags a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--cw-band);
    color: #4a5560;
    font-size: 13px;
    text-decoration: none;
}
.cw-tags a:hover { background: var(--cw-blue-soft); color: var(--cw-primary-text); }

.cw-share {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--cw-line);
    text-align: center;
}
.cw-share__label { font-size: 14px; font-weight: 700; color: var(--cw-ink-strong); margin: 0 0 10px; }
.cw-share__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}
.cw-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.cw-share__btn { background: #fff; color: #333; box-shadow: inset 0 0 0 1px #cfd8df; font-weight: 600; }
.cw-share__btn--line i { color: #06c755; }
.cw-share__btn--x svg { color: #111; }
.cw-share__btn--fb i { color: #1877f2; }
.cw-share__btn--copy i { color: var(--cw-muted); }
.cw-share__btn:hover { background: var(--cw-bg); }

.cw-postnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 24px;
}
.cw-postnav__item {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: var(--cw-radius);
    background: #fff;
    box-shadow: var(--cw-shadow);
    color: inherit;
    text-decoration: none;
}
.cw-postnav__item--next { text-align: right; }
.cw-postnav__label { font-size: 13px; color: var(--cw-primary-text); font-weight: 700; }
.cw-postnav__title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cw-postnav__item:hover .cw-postnav__title { color: var(--cw-primary-text); }

.cw-related { margin-top: 12px; }
.cw-back { text-align: center; margin: 28px 0 0; }
.cw-back a { color: var(--cw-primary-text); font-weight: 700; font-size: 15px; text-decoration: none; }
.cw-back a:hover { text-decoration: underline; }

/* 記事ページのスマホでは、サイドバーの求人の箱は出さない（記事の最後に同じ箱があるため） */
.cw-blog--single .cw-side__stick { display: none; }

/* =========================================================
   タブレット以上（769px〜）
   ========================================================= */
@media (min-width: 769px) {
    .cw-blog__inner { padding: 0 32px; }
    .cw-hero { padding: 24px 0 28px; }
    .cw-hero__title { font-size: 32px; margin-top: 10px; }
    .cw-hero__lead { font-size: 16px; margin-bottom: 18px; }
    .cw-chips { margin: 0; }
    .cw-chips ul { flex-wrap: wrap; overflow: visible; padding: 0; }

    .cw-layout { padding-top: 32px; gap: 40px; }

    .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .cw-card--grid .cw-card__link { display: block; padding: 0; }
    .cw-card--grid .cw-card__thumb { aspect-ratio: 16 / 9; border-radius: 0; }
    .cw-card--grid .cw-card__new { top: 10px; left: 10px; padding: 1px 8px; }
    .cw-card--grid .cw-card__body { padding: 14px 18px 18px; }
    .cw-card__title { font-size: 17px; }

    .cw-card--featured .cw-card__link {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
    .cw-card--featured .cw-card__thumb { aspect-ratio: auto; min-height: 280px; height: 100%; }
    .cw-card--featured .cw-card__body {
        padding: 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .cw-card--featured .cw-card__title { font-size: 22px; }
    .cw-card__excerpt { font-size: 15px; }

    .cw-jobbox--end { padding: 28px; }
    .cw-jobbox--end .cw-jobbox__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }
    .cw-jobbox--end .cw-jobbox__title { font-size: 23px; }
    .cw-jobbox--end .cw-joblist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .cw-jobbox--end .cw-joblist__item {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        padding: 10px;
    }
    .cw-jobbox--end .cw-joblist__thumb { width: 100%; aspect-ratio: 16 / 10; }
    .cw-jobbox--end > .cw-btn--block { width: auto; max-width: 360px; margin-left: auto; margin-right: auto; }

    .cw-inline-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 18px 22px;
    }

    .cw-article { padding: 32px 40px 36px; }
    .cw-article__title { font-size: 30px; }
    .cw-article__eyecatch { margin: 0 0 28px; border-radius: 10px; }
    .cw-entry { font-size: 17px; }
    .cw-entry h2 { font-size: 23px; padding: 16px 20px; }
    .cw-entry h3 { font-size: 20px; }
    .cw-entry h4 { font-size: 18px; }
    .cw-entry .cw-point,
    .cw-entry .cw-note,
    .cw-entry .cw-memo { padding: 28px 24px 18px; }

    .cw-share__list { display: flex; justify-content: center; flex-wrap: wrap; }
    .cw-share__btn { width: auto; min-width: 132px; }
    .cw-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   PC（1025px〜）：右にサイドバー
   ========================================================= */
@media (min-width: 1025px) {
    .cw-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
    .cw-side { align-self: stretch; }
    .cw-blog--single .cw-side__stick {
        display: block;
        position: sticky;
        top: var(--cw-header-offset);
    }
    .cw-blog--single .cw-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* 動きを減らす設定の人には動かさない */
@media (prefers-reduced-motion: reduce) {
    .cw-blog *,
    .cw-blog *::before,
    .cw-blog *::after {
        transition: none !important;
        animation: none !important;
    }
    .cw-card:hover { transform: none; }
    .cw-card:hover .cw-card__thumb img { transform: none; }
}
