/* =========================================================
   採用オウンドメディア「働く人・仕事を知る（STORIES）」
   Mobile First（375〜430px基準）→ 768px → 1024px → 1440px
   トップページと同じトークン（色・角丸・Montserrat英字見出し）
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Montserrat:wght@700;800&display=swap');

.nst{
  --ink:#2f2924; --ink-2:#5b524a; --line:#ece4da; --cream:#fbf7f2;
  --brand:#e9552f; --brand-d:#cf4a22; --brand-w:#fff1ec; --r:18px; --ease:cubic-bezier(.22,1,.36,1);
  color:var(--ink); font-family:"Noto Sans JP",sans-serif; font-size:16px; line-height:1.9; background:#fff;
}
.nst *{box-sizing:border-box}
.nst :where(p,ul,ol,li,figure,dl,dd,dt){margin:0;padding:0;list-style:none}
.nst.nst :is(h1,h2,h3){margin:0;padding:0 !important;border:0 !important;background:none !important;font-family:inherit;color:inherit;letter-spacing:.02em;text-align:left}
.nst.nst :is(h1,h2,h3)::before,.nst.nst :is(h1,h2,h3)::after{content:none !important;display:none !important}
.nst a{color:inherit}
.nst img{display:block;width:100%;height:auto;max-width:none;margin:0;border:0}
.nst-wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 18px}
.nst-sp{display:inline}
.nst-en{display:block;font-family:Montserrat,sans-serif;font-weight:800;letter-spacing:.04em;color:var(--brand);font-size:clamp(28px,8vw,44px);line-height:1;margin-bottom:8px}
.nst-en--w{color:#ffe0d2}
.nst-sec{padding:56px 0}
.nst-hd{margin-bottom:24px}
.nst.nst .nst-hd h2{font-size:clamp(20px,5.4vw,26px);font-weight:900;line-height:1.5}
.nst-hd p{margin-top:8px;color:var(--ink-2);font-size:15px}

/* ボタン（タップ領域48px以上） */
.nst-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:10px 12px 10px 24px;border-radius:999px;font-weight:700;font-size:15.5px;line-height:1.4;text-decoration:none;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.nst-btn i{flex:none;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-style:normal;transition:transform .3s var(--ease)}
.nst-btn:hover{transform:translateY(-2px)}
.nst-btn:hover i{transform:translateX(3px)}
.nst-btn--o{background:#fff;color:var(--brand-d) !important;box-shadow:inset 0 0 0 2px var(--brand)}.nst-btn--o i{background:var(--brand-d);color:#fff}
.nst-btn--w{background:#fff;color:var(--brand-d) !important}.nst-btn--w i{background:var(--brand-d);color:#fff}
.nst-btn--line{background:transparent;color:#fff !important;box-shadow:inset 0 0 0 2px #fff}.nst-btn--line i{background:#fff;color:var(--brand-d)}
.nst a:focus-visible,.nst button:focus-visible{outline:3px solid var(--brand);outline-offset:3px;border-radius:8px}
.nst-more{margin-top:28px}
.nst-more .nst-btn{width:100%}

/* ---------- Hero ---------- */
.nst-hero__fig{aspect-ratio:4/3;overflow:hidden;background:#eee}
.nst-hero__fig img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.nst-hero__txt{padding-top:26px;padding-bottom:8px}
.nst.nst .nst-hero h1{font-size:clamp(26px,7.4vw,40px);font-weight:900;line-height:1.35}
.nst-hero__lead{margin-top:12px;color:var(--ink-2);font-size:15.5px;line-height:1.9}
.nst-hero__parent{font-size:13.5px;font-weight:700;margin-bottom:4px}
.nst-hero__parent a{color:var(--brand-d);text-decoration:none}

/* ---------- カテゴリー（スマホは横スクロール） ---------- */
.nst-cats{margin:0 -18px 24px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.nst-cats::-webkit-scrollbar{display:none}
.nst-cats__list{display:flex;gap:8px;padding:2px 18px 6px;width:max-content}
.nst-chip{display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border-radius:999px;border:1.5px solid #f0cdbd;background:#fff;color:var(--brand-d) !important;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap;scroll-snap-align:start;transition:background .2s,color .2s,border-color .2s}
.nst-chip:hover{border-color:var(--brand)}
.nst-chip[aria-current="page"]{background:var(--brand-d);border-color:var(--brand-d);color:#fff !important}
.nst-chip--s{min-height:32px;padding:3px 12px;font-size:12.5px}

/* ---------- 記事カード（カード全体がリンク） ---------- */
.nst-grid{display:grid;grid-template-columns:1fr;gap:26px}
.nst-card{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 1px 0 var(--line),0 0 0 1px var(--line)}
.nst-card[hidden]{display:none}
.nst-card__link{display:block;text-decoration:none;color:inherit !important;height:100%}
.nst-card__fig{aspect-ratio:4/3;overflow:hidden;background:var(--cream)}
.nst-card__fig img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;transition:transform 1s var(--ease)}
.nst-card__link:hover .nst-card__fig img{transform:scale(1.04)}
.nst-card__body{padding:18px 20px 20px}
.nst-card__cat{display:inline-block;font-size:12.5px;font-weight:700;color:#fff;background:var(--brand-d);border-radius:999px;padding:2px 12px;margin-bottom:10px}
.nst.nst .nst-card__title{font-size:19px;font-weight:900;line-height:1.55}
.nst-card__ex{margin-top:8px;font-size:14.5px;color:var(--ink-2);line-height:1.8}
.nst-card__meta{display:flex;gap:12px;align-items:center;margin-top:12px;font-size:12px;color:#9a8f85}
.nst-card__num{font-family:Montserrat,sans-serif;font-weight:800;letter-spacing:.08em;color:var(--brand)}
.nst-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-family:Montserrat,sans-serif;font-weight:800;font-size:28px;letter-spacing:.2em;color:#f0cdbd}
/* 注目記事は写真をさらに大きく */
.nst-card--featured .nst-card__body{padding:20px 20px 24px}
.nst.nst .nst-card--featured .nst-card__title{font-size:22px}
.nst-featured{padding-bottom:12px}
.nst-empty{padding:40px 20px;text-align:center;color:var(--ink-2);background:var(--cream);border-radius:var(--r)}

/* ---------- 採用ページへのリンクカード ---------- */
.nst-links{padding-top:8px}
.nst-links__grid{display:grid;gap:14px}
.nst-linkcard{display:block;padding:20px 22px;border-radius:var(--r);background:var(--cream);text-decoration:none;transition:transform .3s var(--ease)}
.nst-linkcard:hover{transform:translateY(-3px)}
.nst-linkcard .nst-en{font-size:13px;letter-spacing:.14em;margin-bottom:4px}
.nst-linkcard b{display:block;font-size:17px;color:var(--ink)}
.nst-linkcard span:last-child{display:block;font-size:13.5px;color:var(--ink-2)}

/* ---------- CTA ---------- */
.nst-cta{background:var(--brand-d);color:#fff;padding:56px 0;margin-top:24px}
.nst.nst .nst-cta h2{font-size:clamp(21px,5.6vw,28px);font-weight:900;line-height:1.5;color:#fff}
.nst-cta p{margin-top:10px;font-size:15px;opacity:.96}
.nst-cta__btns{display:grid;gap:12px;margin-top:24px}
.nst-cta__btns .nst-btn{width:100%}
.nst-cta__tel{font-size:13.5px !important}
.nst-cta__tel a{color:#fff;font-weight:700}

/* ---------- 記事ページ ---------- */
.nst-art-fig{aspect-ratio:4/3;overflow:hidden;background:var(--cream)}
.nst-art-fig img{width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.nst-art-meta{padding-top:24px}
.nst-art-cats{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.nst-art-num{font-family:Montserrat,sans-serif;font-weight:800;letter-spacing:.1em;color:var(--brand);font-size:13px;margin-right:4px}
.nst.nst .nst-art-title{font-size:clamp(24px,6.6vw,36px);font-weight:900;line-height:1.45}
.nst-art-lead{margin-top:16px;font-size:16.5px;line-height:1.95;font-weight:500}
.nst-art-date{margin-top:12px;font-size:12.5px;color:#9a8f85}
.nst-body{max-width:720px;margin:0 auto;padding:28px 18px 8px}
.nst-body>*{margin:0 0 22px}
.nst-body p{font-size:16px;line-height:2}
.nst-body h2{font-size:21px !important;font-weight:900 !important;line-height:1.5 !important;margin:40px 0 14px !important;padding:0 0 0 14px !important;border:0 !important;border-left:5px solid var(--brand) !important;background:none !important;color:var(--ink) !important}
.nst-body h3{font-size:18px !important;font-weight:900 !important;margin:28px 0 10px !important;padding:0 !important;border:0 !important;background:none !important;color:var(--brand-d) !important}
.nst-body h2::before,.nst-body h2::after,.nst-body h3::before,.nst-body h3::after{content:none !important;display:none !important}
.nst-body .wp-block-image,.nst-body figure{margin:28px -18px}
.nst-body .wp-block-image img,.nst-body figure img{width:100%;height:auto}
.nst-body figcaption{font-size:13px;color:var(--ink-2);padding:6px 18px 0;text-align:left}
.nst-body ul,.nst-body ol{padding-left:1.4em}
.nst-body li{list-style:disc;margin-bottom:6px}
.nst-body blockquote,.nst-body .wp-block-quote{position:relative;margin:32px 0;padding:26px 22px 22px;border:0;border-radius:var(--r);background:var(--cream)}
.nst-body blockquote::before{content:"“";position:absolute;left:16px;top:-8px;font-family:Georgia,serif;font-size:64px;line-height:1;color:var(--brand)}
.nst-body blockquote p{font-size:16px;font-weight:500;line-height:1.95;margin:0 0 10px}
.nst-body blockquote cite{display:block;font-style:normal;font-size:13.5px;font-weight:700;color:var(--brand-d)}
.nst-joblink{max-width:720px;margin:12px auto 0}
.nst-joblink__a{position:relative;display:block;padding:20px 64px 20px 22px;border-radius:var(--r);background:var(--brand-w);text-decoration:none;transition:transform .3s var(--ease)}
.nst-joblink__a:hover{transform:translateY(-2px)}
.nst-joblink__a .nst-en{font-size:12.5px;letter-spacing:.14em;margin-bottom:4px}
.nst-joblink__a b{font-size:16.5px;color:var(--ink)}
.nst-joblink__a i{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:var(--brand-d);color:#fff;display:flex;align-items:center;justify-content:center;font-style:normal}
.nst-related{background:var(--cream);margin-top:48px}

/* ---------- 他ページへの埋め込み ---------- */
.nst-embed{padding:64px 0;background:#fff}
.nst-embed--job{background:#fbf7f2}
.nst-inline{display:inline-block;margin-top:8px;font-size:14px;font-weight:700;color:#b85510;text-decoration:none;border-bottom:1.5px solid currentColor}

/* ================= 768px〜 ================= */
@media (min-width:768px){
  .nst-wrap{padding:0 28px}
  .nst-sp{display:none}
  .nst-sec{padding:72px 0}
  .nst-hero__fig{aspect-ratio:16/7;max-height:560px}
  .nst-cats{margin:0 0 30px;overflow:visible}
  .nst-cats__list{flex-wrap:wrap;width:auto;padding:0}
  .nst-grid{grid-template-columns:repeat(2,1fr);gap:28px}
  .nst-card{transition:transform .4s var(--ease),box-shadow .4s var(--ease)}
  .nst-card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--line),0 16px 34px rgba(0,0,0,.08)}
  .nst-links__grid{grid-template-columns:repeat(3,1fr)}
  .nst-more .nst-btn{width:auto;min-width:280px}
  .nst-cta__btns{grid-template-columns:repeat(2,max-content)}
  .nst-cta__btns .nst-btn{width:auto;min-width:300px}
  .nst-art-fig{aspect-ratio:16/8;max-height:620px;max-width:1200px;margin:0 auto;border-radius:0 0 var(--r) var(--r)}
  .nst-art-meta{max-width:760px}
  .nst-body{padding-left:20px;padding-right:20px}
  .nst-body .wp-block-image,.nst-body figure{margin:32px -60px}
  .nst-body .wp-block-image img,.nst-body figure img{border-radius:14px}
}
/* ================= 1024px〜 ================= */
@media (min-width:1024px){
  .nst-grid{grid-template-columns:repeat(3,1fr)}
  .nst-grid--featured{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
  .nst.nst .nst-card--featured .nst-card__title{font-size:24px}
  .nst-card--featured:only-child .nst-card__link{display:grid;grid-template-columns:1.35fr 1fr;align-items:center}
  .nst-card--featured:only-child .nst-card__body{padding:32px 36px}
  .nst-body .wp-block-image,.nst-body figure{margin:36px -120px}
}

/* ---------- テーマのページ幅・見出し装飾の打ち消し（STORIES表示ページのみ） ---------- */
.post-type-archive-recruit_story .ncare-main,.tax-story_category .ncare-main,.single-recruit_story .ncare-main{width:100% !important;max-width:none !important;margin:0 !important;padding-bottom:0 !important}
.post-type-archive-recruit_story .ncare-content,.tax-story_category .ncare-content,.single-recruit_story .ncare-content{padding:0 !important}
.home .ncare-content .nst,.page-id-31 .ncare-content .nst{margin:0 !important}
.home .ncare-content .nst a[href*="/recruit"],.home .ncare-content .nst-card__link{min-width:0 !important}

@media (prefers-reduced-motion:reduce){
  .nst *{transition:none !important}
}

/* 署名・注記（記事末尾） */
.nst-body .nst-note{margin-top:36px;padding-top:16px;border-top:1px solid var(--line);font-size:13px !important;line-height:1.8 !important;color:var(--ink-2)}

/* VK ExUnit の自動シェアボタンをSTORY記事では表示しない（2026-09-28） */
.single-recruit_story .veu_socialSet{display:none !important}

/* 連載の前後リンク */
.nst-body .nst-series{margin:12px 0 0 !important}
.nst-body .nst-series a{display:block;padding:14px 18px;border-radius:12px;background:var(--brand-w);color:var(--brand-d) !important;font-weight:700;font-size:15px;line-height:1.6;text-decoration:none;transition:transform .3s var(--ease)}
.nst-body .nst-series a:hover{transform:translateY(-2px)}

/* ===== 写真の中に情報を重ねるカード（採用ページ等の埋め込み用）2026-09-29 ===== */
.nst .nst-grid.nst-grid--embed{grid-template-columns:1fr!important;gap:22px}
@media (min-width:640px){.nst .nst-grid.nst-grid--embed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (min-width:1024px){.nst .nst-grid.nst-grid--embed{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px}}
.nst-card--overlay{position:relative;box-shadow:none;border-radius:var(--r);background:transparent}
.nst-card--overlay .nst-card__link{position:relative}
.nst-card--overlay .nst-card__fig{aspect-ratio:4/3.3;border-radius:var(--r)}
.nst-card--overlay .nst-card__fig img{object-position:50% 25%}
.nst-card--overlay .nst-card__body{position:absolute;left:0;right:18%;bottom:16px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:rgba(255,255,255,.95);padding:11px 14px 12px;border-radius:0 10px 10px 0;box-shadow:0 6px 18px rgba(0,0,0,.10)}
.nst-card--overlay .nst-card__meta{order:0;margin:0;font-size:11.5px;color:#8f867d}
.nst-card--overlay .nst-card__num{display:none}
.nst-card--overlay .nst-card__cat{order:1;margin:0;font-size:11px;padding:1px 9px;line-height:1.7}
.nst.nst .nst-card--overlay .nst-card__title{order:2;flex-basis:100%;font-size:14.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nst-card--overlay .nst-card__ex{display:none}
@media (hover:hover){.nst-card--overlay{transition:transform .4s var(--ease)}.nst-card--overlay:hover{transform:translateY(-4px);box-shadow:none}}
.nst-embed .nst-more{text-align:center;margin-top:40px}
@media (max-width:560px){.nst-card--overlay .nst-card__body{right:10%;bottom:12px}.nst.nst .nst-card--overlay .nst-card__title{font-size:14px}}

/* ===== 記事内画像の表示サイズ（縦長・小さめ画像）2026-09-29 ===== */
.nst-body figure.nst-img-portrait{max-width:360px;margin-left:auto!important;margin-right:auto!important}
.nst-body figure.nst-img-narrow{max-width:420px;margin-left:auto!important;margin-right:auto!important}
.nst-body figure.nst-img-pair{max-width:620px;margin-left:auto!important;margin-right:auto!important}
.nst-body figure.nst-img-portrait img,.nst-body figure.nst-img-narrow img,.nst-body figure.nst-img-pair img{width:100%;height:auto;border-radius:14px}

/* ===== 記事内の縦型動画 2026-10-01 ===== */
.nst-body .nst-video{max-width:320px;margin:28px auto!important;text-align:center}
.nst-body .nst-video video{display:block;width:100%;height:auto;aspect-ratio:512/910;border-radius:18px;background:#111;box-shadow:0 14px 34px rgba(47,41,36,.16)}
.nst-body .nst-video figcaption{margin-top:10px;font-size:12.5px;color:#8f867d}

/* 4列表示（PC）時のカード調整 2026-10-01 */
@media (min-width:1024px){
.nst .nst-grid--embed .nst-card--overlay .nst-card__fig{aspect-ratio:3/4}
.nst .nst-grid--embed .nst-card--overlay .nst-card__body{right:6%;bottom:12px;padding:10px 12px 11px;gap:4px 8px}
.nst.nst .nst-grid--embed .nst-card--overlay .nst-card__title{font-size:13.5px;line-height:1.55;-webkit-line-clamp:3}
.nst .nst-grid--embed .nst-card--overlay .nst-card__cat{font-size:10.5px;padding:0 8px}
.nst .nst-grid--embed .nst-card--overlay .nst-card__meta{font-size:11px}
}

/* ===== 記事内の横長写真（動画から切り出した512px幅の画像）2026-10-01 ===== */
.nst-body figure.nst-img-natural{max-width:560px;margin-left:auto!important;margin-right:auto!important}
.nst-body figure.nst-img-natural img{width:100%;height:auto;border-radius:14px}

.nst-body figure.nst-img-small{max-width:440px;margin-left:auto!important;margin-right:auto!important}
.nst-body figure.nst-img-small img{width:100%;height:auto;border-radius:14px}
