/* ==========================================================
   基礎知識トップ（/knowledge/basics/）・カテゴリ一覧（/knowledge/basics/{カテゴリ}/）
   Figma（マルキンアド 10/29版）「基礎知識」「カテゴリ-SEO・コンテンツ」の値に合わせる。px で書く
   ========================================================== */

.ik-bs {
	--ik-bs-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='6' viewBox='0 0 30 6'%3E%3Cpath d='M0 5.5H29.3L19.5 0.6' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
	--ik-bs-arrow-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='4' viewBox='0 0 14 4'%3E%3Cpath d='M0 3.5H13.2L8.6 0.6' fill='none' stroke='%23555' stroke-width='1'/%3E%3C/svg%3E");
	overflow-x: hidden;
	padding-bottom: 50px;
}
.ik-bs a { text-decoration: none; }
.ik-bs ul { list-style: none; margin: 0; padding: 0; }
.ik-bs li { margin: 0; padding: 0; }

/* ---------- 冒頭（ラベル＋英字＋見出し＋右の写真） ---------- */
.ik-bs-head { position: relative; min-height: 427px; padding-top: 194px; }
.ik-bs-head__in { position: relative; z-index: 1; width: min(1300px, 100% - 160px); margin: 0 auto; }
.ik-bs-head__label {
	display: block;
	width: fit-content;
	height: 24px;
	padding: 0 18.5px;
	border-radius: 12px;
	background: var(--ik-shelf);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
}
.ik-bs-head__en { margin: 2px 0 0; font-size: clamp(56px, 6vw, 90px); font-weight: 300; line-height: 1; letter-spacing: 0; }
.ik-bs-head__ja { margin: 22px 0 0; font-size: 20px; font-weight: 400; line-height: 30px; }
.ik-bs-head__img { position: absolute; right: 0; top: 157px; width: 52%; max-width: 780px; height: 270px; }
.ik-bs-head__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 説明（中央揃え） */
.ik-bs-intro { max-width: 1300px; margin: 123px auto 0; padding: 0 20px; font-size: 20px; line-height: 40px; text-align: center; }
.ik-bs-intro--category { max-width: 960px; }

.ik-bs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- まずはこの１本 ---------- */
.ik-bs-first {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 84px;
	margin: 70px 0 51px;
	padding: 12px 50px 12px 29px;
	border: 1px solid #000;
	border-radius: 30px;
	color: #000;
	background: #fff;
}
.ik-bs-first__label {
	flex: none;
	height: 28px;
	padding: 0 20px;
	border-radius: 14px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 28px;
}
.ik-bs-first__title { flex: 1; font-size: 17px; font-weight: 700; line-height: 26px; }
.ik-bs-first::after { content: ""; flex: none; width: 30px; height: 6px; margin-left: 10px; background: var(--ik-bs-arrow) no-repeat; }
.ik-bs-first:hover .ik-bs-first__title { color: var(--ik-shelf); }

/* ---------- 灰色の帯（カテゴリ名／入口の記事） ---------- */
.ik-bs-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 100px;
	padding: 20px 50px;
	border-radius: 20px;
	background: var(--ik-bg);
	color: #000;
}
.ik-bs-bar::after { content: ""; flex: none; width: 30px; height: 6px; margin-left: 30px; background: var(--ik-bs-arrow) no-repeat; }
.ik-bs-bar__tx { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; }
.ik-bs-bar__name { font-size: 20px; font-weight: 700; line-height: 30px; }
.ik-bs-bar__count { color: #ABABAB; font-size: 13px; font-weight: 400; line-height: 30px; }
.ik-bs-bar:hover .ik-bs-bar__name { color: var(--ik-shelf); }

/* ---------- 基礎知識トップ: カテゴリの枠 ---------- */
.ik-bs-cat + .ik-bs-cat { margin-top: 100px; }
.ik-bs-cat__body { padding: 0 120px; }
.ik-bs-cat__desc { margin: 31px 0 0; font-size: 16px; line-height: 30px; }
.ik-bs-rows { margin-top: 49px !important; border-top: 1px solid #000; }
.ik-bs-cat__body > .ik-bs-rows:first-child { margin-top: 31px !important; }
.ik-bs-rows li,
.ik-bs-list li { border-bottom: 1px solid #000; }
.ik-bs-rows a,
.ik-bs-list a { position: relative; display: block; color: #000; overflow-wrap: anywhere; }
.ik-bs-rows a { padding: 19px 34px 20px 0; font-size: 14px; line-height: 20px; }
.ik-bs-rows__all a { font-weight: 700; }
.ik-bs-rows a::after,
.ik-bs-list a::after { content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 4px; margin-top: -2px; background: var(--ik-bs-arrow-s) no-repeat; }
.ik-bs-rows a:hover,
.ik-bs-list a:hover { color: var(--ik-shelf); }

/* ---------- カテゴリ一覧 ---------- */
.ik-bs-pillar { margin-top: 120px; }
.ik-bs-pillar__desc { margin: 31px 50px 0; font-size: 16px; line-height: 30px; }
.ik-bs-list { margin: 49px 50px 0 !important; border-top: 1px solid #000; }
.ik-bs-list--top { margin-top: 120px !important; }
.ik-bs-list a { padding: 19px 40px 21px 0; font-size: 16px; line-height: 30px; }

/* ページ送り */
.ik-bs-pager { margin: 50px 50px 0; }
.ik-bs-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ik-bs-pager a,
.ik-bs-pager span { display: block; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #000; border-radius: 20px; color: #000; font-size: 14px; line-height: 38px; text-align: center; }
.ik-bs-pager .current { background: #000; color: #fff; }
.ik-bs-pager .dots { border-color: transparent; }

/* ほかのカテゴリ */
.ik-bs-others { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 133px -50px 0 0; padding: 0 0 0 12px; } /* Figma: 162〜1359px（右は本文の幅から少しはみ出す。文字の幅の差で折り返さないよう余裕を持たせる） */
.ik-bs-others__label { color: #818181; font-size: 13px; font-weight: 500; line-height: 36px; }
.ik-bs-pill {
	display: inline-block;
	min-width: 109px;
	height: 36px;
	padding: 0 18px;
	border: 1px solid #000;
	border-radius: 18px;
	background: #fff;
	color: #000;
	font-size: 13px;
	font-weight: 500;
	line-height: 34px;
	text-align: center;
	white-space: nowrap;
}
.ik-bs-pill:hover { background: #000; color: #fff; }

/* ---------- ほかのナレッジを見る・よく読まれている記事 ---------- */
.ik-bs-sec { max-width: 1240px; margin: 100px auto 0; padding: 0 20px; }
.ik-bs--category .ik-bs-wrap + .ik-bs-sec { margin-top: 131px; }
.ik-bs-sec + .ik-bs-sec { margin-top: 80px; }
.ik-bs-sechead {
	display: flex;
	align-items: baseline;
	gap: 33px;
	margin: 0 -10px 41px 0;
	padding-top: 34px;
	border-top: 1px solid var(--ik-rule);
}
.ik-bs-sechead__en { color: #888; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; }
.ik-bs-sechead__ja { margin: 0; padding: 0; font-size: 30px; font-weight: 700; line-height: 39px; }
.ik-bs-sechead__ja::before { content: none; }

.ik-bs-knows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ik-bs-know a { display: block; height: 100%; min-height: 178px; padding: 32px 20px; border-radius: 20px; color: #000; }
.ik-bs-know--own a { background: #FCEFF3; }
.ik-bs-know--note a { background: #EEF2FC; }
.ik-bs-know--basics a { background: #EAF6EE; }
.ik-bs-know--industry a { background: #FBF3E6; }
.ik-bs-know.is-current a { background: var(--ik-shelf); color: #fff; }
.ik-bs-know__title { display: block; font-size: 16px; font-weight: 700; line-height: 20px; }
.ik-bs-know__sub { display: block; margin-top: 3px; color: #555; font-size: 12px; line-height: 17px; }
.ik-bs-know.is-current .ik-bs-know__sub { color: #fff; }
.ik-bs-know a:hover .ik-bs-know__title { text-decoration: underline; text-underline-offset: 3px; }

.ik-bs .ik-card__img { aspect-ratio: 387 / 213; }
.ik-bs .ik-card__body { padding: 35px 20px 19px; } /* Figma: ピラーの印の行の分も空けたまま、題名は同じ高さ（印は出さない） */

/* ---------- スマートフォン ---------- */
@media (max-width: 900px) {
	.ik-bs-head { min-height: 0; padding-top: 110px; }
	.ik-bs-head__in { width: auto; padding: 0 16px; }
	.ik-bs-head__en { margin-top: 10px; font-size: 44px; line-height: 1.1; overflow-wrap: anywhere; }
	.ik-bs-head__ja { margin-top: 10px; font-size: 18px; line-height: 28px; }
	.ik-bs-head__img { position: static; width: auto; max-width: none; height: 160px; margin-top: 24px; }
	.ik-bs-intro { margin-top: 40px; padding: 0 16px; font-size: 16px; line-height: 30px; text-align: left; }
	.ik-bs-intro br { display: none; }
	.ik-bs-wrap { padding: 0 16px; }

	.ik-bs-first { display: block; margin: 40px 0; padding: 18px 20px; border-radius: 20px; }
	.ik-bs-first__label { display: inline-block; height: 26px; padding: 0 14px; font-size: 13px; line-height: 26px; }
	.ik-bs-first__title { display: block; margin-top: 8px; font-size: 16px; line-height: 26px; }
	.ik-bs-first::after { content: none; }

	.ik-bs-bar { min-height: 70px; padding: 14px 20px; }
	.ik-bs-bar::after { margin-left: 16px; }
	.ik-bs-bar__name { font-size: 18px; line-height: 28px; }
	.ik-bs-cat + .ik-bs-cat { margin-top: 60px; }
	.ik-bs-cat__body { padding: 0; }
	.ik-bs-cat__desc { margin-top: 20px; font-size: 15px; line-height: 28px; }
	.ik-bs-rows { margin-top: 24px !important; }
	.ik-bs-rows a { padding: 16px 30px 16px 0; line-height: 22px; }

	.ik-bs-pillar { margin-top: 40px; }
	.ik-bs-pillar__desc { margin: 16px 0 0; font-size: 15px; line-height: 28px; }
	.ik-bs-list { margin: 24px 0 0 !important; }
	.ik-bs-list--top { margin-top: 40px !important; }
	.ik-bs-list a { padding: 14px 30px 14px 0; font-size: 15px; line-height: 26px; }
	.ik-bs-pager { margin: 32px 0 0; }

	.ik-bs-others { gap: 8px; margin: 60px 0 0; padding: 0; }
	.ik-bs-others__label { flex-basis: 100%; line-height: 24px; }
	.ik-bs-pill { min-width: 0; padding: 0 14px; }

	.ik-bs-sec { margin-top: 60px; padding: 0 16px; }
	.ik-bs--category .ik-bs-wrap + .ik-bs-sec { margin-top: 60px; }
	.ik-bs-sec + .ik-bs-sec { margin-top: 60px; }
	.ik-bs-sechead { flex-wrap: wrap; gap: 4px 16px; margin: 0 0 24px; padding-top: 24px; }
	.ik-bs-sechead__ja { font-size: 24px; line-height: 34px; }
	.ik-bs-knows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ik-bs-know a { min-height: 110px; padding: 20px 16px; }
	.ik-bs-know__title { font-size: 15px; line-height: 22px; }
}
