@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ==========================================================================
   Nanairo Research Lab — "大人の七色 / Grown-up Spectrum" デザイン実装
   Issue #40, 2026-08-13
   カテゴリー色: ナレッジ=#4B6B5E(id2) / AIツール=#4A5A89(id4) / ワークフロー=#9C6B3F(id3) / データサイエンス=#8A5A6E(id37)
   ========================================================================== */

:root {
	--nl-ink: #2B2823;
	--nl-ink-soft: #5c5850;
	--nl-ink-faint: #8a857c;
	--nl-border: #d9d4c8;
	--nl-paper: #F7F4EE;
	--nl-cat-knowledge: #4B6B5E;
	--nl-cat-ai: #4A5A89;
	--nl-cat-workflow: #9C6B3F;
	--nl-cat-datasci: #8A5A6E;
	--cat-accent: var(--nl-ink);
}

/* ---------- 見出しフォント ---------- */
h1, h2, h3, h4, h5, h6,
.c-pageTitle__inner,
.p-postList__title,
.p-blogCard__title,
.c-widget__title,
.l-header__siteName,
.p-articleThumb figcaption {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	letter-spacing: -0.01em;
}
h2:not([class*="swell-block-"]), h3:not([class*="swell-block-"]) {
	font-weight: 800;
}

/* ---------- 全体：角を鋭角に ---------- */
img, .c-postThumb, .c-postThumb__figure, .p-postList__thumb, .p-blogCard__thumb,
.p-postList__item, .p-blogCard, .c-tagList__link, .c-categoryList__link,
.wp-block-button__link, .swell-block-faq__q, .swell-block-faq__a,
.cap_box, .fukidashi_box, [class*="is-style-icon_"] {
	border-radius: 0 !important;
}

/* ---------- ヘッダー / フッター：太罫線 ---------- */
.l-header {
	border-bottom: 3px solid var(--nl-ink);
	box-shadow: none;
}
#footer, .l-footer {
	border-top: 3px solid var(--nl-ink);
}

/* 4色のカテゴリーストライプ（ヘッダー最上部） */
.nl-cat-stripe {
	display: flex;
	height: 6px;
}
.nl-cat-stripe span {
	flex: 1;
}
.nl-cat-stripe span:nth-child(1) { background: var(--nl-cat-knowledge); }
.nl-cat-stripe span:nth-child(2) { background: var(--nl-cat-ai); }
.nl-cat-stripe span:nth-child(3) { background: var(--nl-cat-workflow); }
.nl-cat-stripe span:nth-child(4) { background: var(--nl-cat-datasci); }

/* サイトタイトル前のスペクトラム・チップ（ロゴのバーモチーフの簡易版） */
.l-header__siteName {
	position: relative;
	padding-left: 20px;
}
.l-header__siteName::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 20px;
	background: linear-gradient(90deg,
		var(--nl-cat-knowledge) 0% 25%,
		var(--nl-cat-ai) 25% 50%,
		var(--nl-cat-workflow) 50% 75%,
		var(--nl-cat-datasci) 75% 100%);
}

/* ---------- カテゴリーバッジ（4色マッピング／data-cat-idはSWELLが自動出力） ---------- */
.c-postThumb__cat[data-cat-id="2"], .c-categoryList__link[data-cat-id="2"], a.cat-item-2 { background-color: var(--nl-cat-knowledge) !important; color: #fff; }
.c-postThumb__cat[data-cat-id="4"], .c-categoryList__link[data-cat-id="4"], a.cat-item-4 { background-color: var(--nl-cat-ai) !important; color: #fff; }
.c-postThumb__cat[data-cat-id="3"], .c-categoryList__link[data-cat-id="3"], a.cat-item-3 { background-color: var(--nl-cat-workflow) !important; color: #fff; }
.c-postThumb__cat[data-cat-id="37"], .c-categoryList__link[data-cat-id="37"], a.cat-item-37 { background-color: var(--nl-cat-datasci) !important; color: #fff; }

.c-categoryList__link {
	background-image: none;
	font-weight: 700;
}
.c-categoryList__link:not([data-cat-id]) {
	background-color: var(--cat-accent);
	color: #fff;
}

/* ---------- タグチップ ---------- */
.c-tagList__link {
	border: 1px solid var(--nl-border);
	background: transparent;
	color: var(--nl-ink-soft);
	font-weight: 700;
}
.c-tagList__link:hover {
	border-color: var(--cat-accent);
	color: var(--cat-accent);
}

/* ---------- 本文h2/h3：カテゴリーカラーに追従 ---------- */
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
	background: var(--cat-accent);
}
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
	border-color: var(--cat-accent);
}
.post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
	background: repeating-linear-gradient(90deg, var(--cat-accent) 0%, var(--cat-accent) 29.3%, rgba(150,150,150,.2) 29.3%, rgba(150,150,150,.2) 100%);
}
.post_content h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
	border-left-color: var(--cat-accent);
}

/* ---------- 引用ブロック：左罫線＋太字イタリック ---------- */
.post_content blockquote {
	border-left: 3px solid var(--cat-accent);
	padding: 0.75em 0 0.75em 1.5em !important;
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: 1.1em;
	background: none;
}
.post_content blockquote::before {
	display: none;
}

/* ---------- カテゴリーアーカイブ見出し：帯にアクセントカラーの下線 ---------- */
.c-pageTitle {
	border-bottom: 3px solid var(--cat-accent);
	padding-bottom: 0.6em;
}

/* ---------- ボタン ---------- */
.is-style-btn_normal a, .is-style-btn_solid a, .is-style-btn_shiny a, .is-style-btn_line a {
	font-weight: 700;
}

/* ==========================================================================
   Nanairo Research Lab — home.php（マガジン風トップページ）専用スタイル
   Issue #40 追加対応, 2026-08-13
   ========================================================================== */

#nl-home {
	max-width: 100%;
}

.nl-hero {
	display: grid;
	grid-template-columns: minmax(280px, 1.3fr) minmax(200px, 1fr);
	border-bottom: 3px solid var(--nl-ink);
	align-items: stretch;
	min-height: 260px;
}
.nl-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: 48px;
	min-width: 0;
}
.nl-hero__dots {
	display: flex;
	gap: 6px;
}
.nl-hero__dots span {
	width: 12px;
	height: 12px;
	display: inline-block;
}
.nl-hero__title {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-size: clamp(26px, 3.6vw, 42px);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
	max-width: 640px;
}
.nl-hero__desc {
	font-size: 14px;
	line-height: 1.85;
	color: var(--nl-ink-soft);
	max-width: 460px;
	margin: 0;
}
.nl-hero__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 18px;
	background: var(--nl-ink);
	border-left: 1px solid var(--nl-ink);
	padding: 32px;
}
.nl-hero__bars {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	height: 90px;
}
.nl-hero__bars span {
	width: 16px;
	display: block;
}
.nl-hero__wordmark {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.3em;
	color: var(--nl-paper);
}

.nl-featured {
	padding: 36px 48px;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
	gap: 36px;
	border-bottom: 3px solid var(--nl-ink);
	align-items: center;
}
.nl-featured__img {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--nl-border);
}
.nl-featured__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nl-featured__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.nl-featured__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nl-featured__eyebrow span {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--nl-ink-faint);
}
.nl-featured__eyebrow i {
	width: 16px;
	height: 2px;
	display: inline-block;
}
.nl-featured__eyebrow a {
	font-size: 12px;
	font-weight: 800;
}
.nl-featured__title {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0;
}
.nl-featured__title a {
	color: var(--nl-ink);
}
.nl-featured__excerpt {
	font-size: 14px;
	line-height: 1.8;
	color: var(--nl-ink-soft);
	max-width: 460px;
	margin: 0;
}
.nl-featured__meta {
	display: flex;
	align-items: baseline;
	gap: 16px;
}
.nl-featured__meta span {
	font-size: 12px;
	color: var(--nl-ink-faint);
	font-weight: 600;
}
.nl-featured__meta a {
	font-size: 13px;
	font-weight: 800;
}

.nl-catSection {
	padding: 44px 48px;
	border-bottom: 1px solid var(--nl-border);
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 28px;
}
.nl-catSection__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nl-catSection__num {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-size: 52px;
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.02em;
}
.nl-catSection__name {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-size: 18px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -0.01em;
	color: var(--nl-ink);
}
.nl-catSection__head a {
	font-size: 12px;
	font-weight: 800;
}
.nl-catSection__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-left: 1px solid var(--nl-border);
}
.nl-catCard {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 20px;
	text-decoration: none;
}
.nl-catCard__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--nl-border);
	overflow: hidden;
}
.nl-catCard__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nl-catCard__title {
	font-family: "Zen Kaku Gothic New", var(--swl-font_family), sans-serif;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--nl-ink);
}
.nl-catCard__excerpt {
	font-size: 12px;
	color: var(--nl-ink-soft);
	line-height: 1.65;
}
.nl-catCard__date {
	font-size: 11px;
	color: var(--nl-ink-faint);
	font-weight: 600;
}

@media (max-width: 860px) {
	.nl-hero, .nl-featured, .nl-catSection {
		grid-template-columns: 1fr;
	}
	.nl-catSection__grid {
		grid-template-columns: 1fr;
		border-left: none;
	}
	.nl-catCard {
		padding: 0;
		border-top: 1px solid var(--nl-border);
		padding-top: 20px;
	}
}

.nl-catSection.-empty {
	align-items: center;
}
.nl-catSection__soon {
	border-left: 1px solid var(--nl-border);
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.nl-catSection__soonImg {
	width: 100%;
	max-width: 420px;
	height: auto;
	display: block;
}
.nl-catSection__soon span {
	font-size: 13px;
	color: var(--nl-ink-faint);
}
