/**
 * 記事ページ（投稿）の白基調（マガジンの世界観に寄せた白）。functions.php が投稿ページでだけ読み込む。
 *   .spm-art-white … 白基調で世界観を寄せる（白地・紺の見出し・金の差し色）
 * 色のトークンは magazine.css の .spm-t-white（.spm-art-white にも適用）。ここでは --a-* に整理して使う。
 * SWELL の部品は CSS 変数（--color_*）の上書きと、部品ごとの個別指定で整える。
 */
#body_wrap.spm-art-white{font-family:'Noto Sans JP','Hiragino Sans',sans-serif}

/* ======== トークン ======== */
#body_wrap.spm-art-white{
  --a-page:#FFFFFF; --a-face:#FFFFFF; --a-face2:#F4F6FB; --a-text:#1A2040; --a-head:#0B1030; --a-acc:#B98B2B; --a-link:#7C5A10;
  --a-mute:#5A6080; --a-line:#E3E6F0; --a-line2:#C8A24A; --a-soft:#F4F6FB;
  --a-btn:#0B1030; --a-btn-ink:#FFFFFF;
  --color_text:#1A2040; --color_main:#B98B2B; --color_htag:#0B1030; /* リンク色（--color_link）はサイト本来の色のまま */
  --color_main_thin:rgba(185,139,43,.07); --color_main_dark:#7C5A10;
  --color_list_check:#B98B2B; --color_list_num:#B98B2B;
  color:var(--a-text);
}
/* 白基調：記事内のボタン・案件カード・スマホの開閉メニューはサイト本来のメインカラーで出す（ユーザー指定・金だと白地で読みにくい）。
   本来の値は html に定義されているので控えておき、その範囲だけ戻す（色を直書きしない＝カスタマイザーの変更に追従する） */
html{--spm-o-main:var(--color_main);--spm-o-main-dark:var(--color_main_dark);--spm-o-main-thin:var(--color_main_thin)}
#body_wrap.spm-art-white :is(.job-container,.swell-block-button,.wp-block-file,#sp_menu){--color_main:var(--spm-o-main);--color_main_dark:var(--spm-o-main-dark);--color_main_thin:var(--spm-o-main-thin)}

/* ======== 共通：SWELL の既存の記事頭は出さない／ヒーローとの接続 ======== */
#body_wrap.spm-art-white .p-articleThumb{display:none}
#body_wrap.spm-art-white .p-breadcrumb:not(.-bottom){display:none}
#body_wrap.spm-art-white .l-content{padding-top:0}
.spm-ahead .spm-lab,.spm-ahead{width:100%}
.spm-ahero{padding-bottom:34px}
.spm-ahero .spm-chero-in{padding-top:24px}
.spm-ahero .spm-ameta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:26px;font-size:13px;color:var(--muted2)}
.spm-ahero .spm-ameta time{font-variant-numeric:tabular-nums}
.spm-ahero .spm-acat{display:inline-flex;align-items:center;min-height:28px;padding:0 14px;border:1px solid var(--btn2-bd);border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--eyebrow);transition:background .2s}
.spm-ahero .spm-acat:hover{background:var(--btn2-h)}
.spm-ahero .spm-atitle{font-weight:700;font-size:34px;line-height:1.45;letter-spacing:.01em;color:var(--strong);text-shadow:var(--tsh);margin-top:10px;max-width:920px;text-wrap:wrap;word-break:auto-phrase}
.spm-ahero .spm-crumb{flex-wrap:nowrap}
.spm-ahero .spm-crumb li{flex:none}
.spm-ahero .spm-crumb .spm-crumb-cur{flex:0 1 auto;min-width:0;display:flex;max-width:560px}
.spm-ahero .spm-crumb-cur span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spm-art-white .spm-hbg{background-image:url(../../../assets/img/magazine/gen_archive_l.webp)}
@media (min-width:960px){.spm-ahero{padding-top:88px}}
@container lab (max-width:980px){
  .spm-ahero{padding-bottom:24px}
  .spm-ahero .spm-atitle{font-size:22px;line-height:1.5}
  .spm-ahero .spm-ameta{margin-top:18px}
  .spm-ahero .spm-crumb-cur{display:none}
}

/* アイキャッチ：本文の先頭に、スライダー中央のカードのような枠と影で */
.spm-athumb{margin:0 0 2.4em;border-radius:8px;overflow:hidden;line-height:0}
.spm-athumb img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover}
.spm-art-white .spm-athumb{box-shadow:0 24px 60px rgba(11,16,48,.26),0 0 0 1px rgba(11,16,48,.08)}

/* ======== レイアウト：本文の面・サイドバー ======== */
#body_wrap.spm-art-white #content{padding-top:40px}
@media (min-width:960px){#body_wrap.spm-art-white #content{padding-top:56px}}
.spm-art-white .l-mainContent{background:#fff}
.spm-art-white.-frame-on .l-mainContent,.spm-art-white .-frame-on .l-mainContent{box-shadow:none}
.spm-art-white .post_content{color:var(--a-text);line-height:1.9;font-size:16px}
.spm-art-white .l-mainContent__inner{color:var(--a-text)}

/* サイドバー（SWELL のウィジェットは作り替えず、色だけ合わせる） */
.spm-art-white .c-widget__title.-side{color:var(--a-head)}
.spm-art-white .c-categoryList__link{background:#0B1030;color:#fff;background-image:none}
.spm-art-white .l-sidebar .c-widget__title.-side::before{background:#C8A24A}
.spm-art-white .p-toc{border-color:var(--a-line)}

/* ======== 本文の部品 ======== */
/* 見出し */
.spm-art-white .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)){background:#0B1030;color:#fff;border-left:5px solid #C8A24A}
.spm-art-white .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before{border-color:#C8A24A}
.spm-art-white .post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)){color:#0B1030}
.spm-art-white .post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before{background:repeating-linear-gradient(90deg,#C8A24A 0%,#C8A24A 29.3%,rgba(150,150,150,.2) 29.3%,rgba(150,150,150,.2) 100%)}
.spm-art-white .post_content h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)){color:#0B1030;border-left-color:#C8A24A}

/* 段落・リンク・太字・マーカー */
.spm-art-white .post_content strong,.spm-art-white .post_content b{color:#0B1030}
.spm-art-white .post_content hr,.spm-art-white .wp-block-separator{border-color:var(--a-line2);color:var(--a-line2)}
.spm-art-white .post_content ::marker{color:#B98B2B}

/* 吹き出し：キャラの色（チップス＝緑、ボス＝赤）は残す。暗い地では文字を紺にして淡い面で読ませる */
.spm-art-white .c-balloon__text{color:#1A2040}
.spm-art-white .c-balloon__iconName{color:var(--a-mute)}

/* アイコン付きボックス（icon_announce など）・big_icon・カギ括弧・stitch・capbox */
.spm-art-white .is-style-kakko_box::before,.spm-art-white .is-style-kakko_box::after,.spm-art-white .is-style-big_kakko_box::before,.spm-art-white .is-style-big_kakko_box::after{border-color:#C8A24A}
.spm-art-white .is-style-stitch{border-color:#C8A24A}

/* メディアと文章（登場人物紹介）：暗い地では淡いクリームをやめ、透ける面＋明るい文字に */
.spm-art-white .wp-block-media-text.has-swl-pale-04-background-color{background-color:#F8F5EC !important}

/* ステップ・カラム */

/* ボタン */

/* 表 */
.spm-art-white .post_content table th{background:#0B1030;color:#fff;border-color:#0B1030}
.spm-art-white .post_content table td{border-color:var(--a-line)}
.spm-art-white .post_content table tbody tr:nth-child(even) td{background:#F4F6FB}

/* 引用・コード・キャプション */
.spm-art-white .post_content blockquote{background:#F4F6FB}
.spm-art-white .post_content blockquote::before{border-color:#C8A24A}

/* 記事内の目次（SWELL の .p-toc） */
.spm-art-white .post_content .p-toc{background:#F4F6FB}
.spm-art-white .p-toc__ttl{color:#0B1030}

/* ======== 記事の下 ======== */
/* 記事内のオススメ求人・案件（既存のカードは白い面のまま使い、枠だけ合わせる） */
/* タブ：選択中は金地に紺の文字、未選択は透明地に明るい文字（金の文字を金地に置くと読めない） */
/* 前後の記事・書いた人・関連記事 */
.spm-art-white .l-articleBottom__title{color:#0B1030}

/* フッター前の「キャリアのご相談」の帯（cta.php を流用） */
.spm-afoot .spm-cta{margin:0}
.spm-art-white .spm-afoot .spm-ctabg{background-image:url(../../../assets/img/magazine/gen_room_l.webp)}

/* 白基調：ヘッダーは白のまま、下端に細い金の線。案件検索ボタンを他の項目と縦中央に揃える */
#body_wrap.spm-art-white .l-header,#body_wrap.spm-art-white .l-fixHeader{box-shadow:0 1px 0 #C8A24A}
#body_wrap.spm-art-white .c-gnav>.header-btn{display:flex;align-items:center}
#body_wrap.spm-art-white .c-gnav>.header-btn>a{margin:0;border-color:#0B1030;color:#0B1030 !important;border-radius:2px;border-width:1px}
#body_wrap.spm-art-white .c-gnav>.header-btn>a:hover{background:#0B1030;color:#fff !important}
#body_wrap.spm-art-white .c-gnav>.menu-item>a::after{background:#C8A24A}

/* キャップボックス（SWELL 既定の赤い見出し帯）：紺に */
.spm-art-white .cap_box,.spm-art-white .swell-block-capbox{--capbox-color:#0B1030;--capbox-color--bg:#fff}
.spm-art-white .cap_box_ttl{background:#0B1030;color:#fff}
.spm-art-white .cap_box_content{border-color:#0B1030}
/* サイドバーの巻頭対談カード（functions.php の dynamic_sidebar_before で先頭に出す） */
.spm-art-white .spm-wtaidan{margin-bottom:2em}
.spm-art-white .spm-wtaidan .spm-gl h3{font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--eyebrow);margin:0 0 12px;padding:0;background:none;border:0}
.spm-art-white .spm-wtaidan .spm-gl h3::before,.spm-art-white .spm-wtaidan .spm-gl h3::after{content:none}
/* 追従部分（目次の上）では画像と見出しを少し小さくして、目次と合わせて画面に収める */
.spm-art-white .spm-wtaidan.-fix{margin-bottom:0;flex:0 0 auto}
.spm-art-white #fix_sidebar .spm-wtaidan.-fix+.c-widget{margin-top:1.5em} /* 追従部分は flex。縮むのは目次の側（SWELL が目次の中でスクロールさせる） */
.spm-art-white .spm-wtaidan.-fix .spm-gl{padding:14px}
.spm-art-white .spm-wtaidan.-fix .spm-fv{height:96px}
.spm-art-white .spm-wtaidan.-fix .spm-fv img{width:80px;height:80px}
.spm-art-white .spm-wtaidan.-fix .spm-fv img:first-child{width:68px;height:68px;margin-bottom:12px}
.spm-art-white .spm-wtaidan.-fix .spm-fe strong{font-size:15px;margin:8px 0 4px}
/* 巻頭対談（固定ページ）：SWELL が固定ページの本文に付ける上の余白をやめ、記事と同じ間隔に。帯の吹き出しの「対談を読む」は自分自身へのリンクなので出さない */
#body_wrap.spm-art-white.page .post_content{margin-top:0}
#body_wrap.page-id-8796 .spm-afoot .spm-bl a,#body_wrap.page-id-8796 .spm-afoot .spm-bl br{display:none}
/* 幅を揃える（2026-11-10）：記事の頭の帯は SWELL の本文の枠（#content.l-container）と同じ計算にする。
   2列の記事はヘッダーのロゴ・本文の列の左端と、1列のページ（巻頭対談）は本文（アイキャッチ）の左右の端と揃う */
.spm-art-white .spm-ahero .spm-wrap{max-width:calc(var(--container_size,1200px) + var(--swl-pad_container,48px) * 2);padding-left:var(--swl-pad_container,48px);padding-right:var(--swl-pad_container,48px)}
/* 1列のページ（巻頭対談）：ヘッダーを記事と同じ幅（固定ページ用の狭い 1056px をやめる）にし、PC では本文の内側の余白（32px＋16px）をやめる。
   ヘッダー・記事の頭・本文の左右の端が、SWELL の本文の枠（#content）の内側でそろう */
#body_wrap.spm-art-white.page .l-header__inner,#body_wrap.spm-art-white.page .l-fixHeader__inner{max-width:calc(var(--container_size,1200px) + var(--swl-pad_container,48px) * 2)}
@media (min-width:960px){
  #body_wrap.spm-art-white.page{--swl-pad_post_content:0px}
  #body_wrap.spm-art-white.page .l-mainContent{padding-left:0;padding-right:0}
  /* 見出しの帯は本文の余白の分だけ張り出す作りなので、余白をやめたページでは張り出しもやめる */
  #body_wrap.spm-art-white.page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)){margin-left:0;margin-right:0}
}
/* スマホ：本文は内側に 3vw の余白があるので、記事の頭の文字もそこに合わせる */
@media (max-width:959px){
  .spm-art-white .spm-ahero .spm-wrap{padding-left:calc(var(--swl-pad_container,2vw) + 3vw);padding-right:calc(var(--swl-pad_container,2vw) + 3vw)}
}

