@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
*/

/* ==================================================
   Kaigo Skills｜検索結果・辞書カード
================================================== */

/* 辞書セクション */
.ks-search-section--dictionary {
	margin-bottom: 42px;
}

/* 辞書カード一覧 */
.ks-dictionary-results {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 16px;
}

/* カード本体 */
.ks-dictionary-card {
	margin: 0;
	border: 1px solid #e1e7ea;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

/* カード全体をリンク化 */
.ks-dictionary-card__link {
	display: block;
	padding: 20px 22px;
	color: #333;
	text-decoration: none;
}

/* タイトル＋辞書バッジ */
.ks-dictionary-card__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

/* 用語タイトル */
.ks-dictionary-card__title {
	margin: 0;
	font-size: 1.18em;
	font-weight: 700;
	line-height: 1.5;
	color: #183f50;
}

/* 辞書バッジ */
.ks-dictionary-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: #eaf5f8;
	color: #176078;
	font-size: 0.72em;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

/* ひとことでいうと */
.ks-dictionary-card__summary {
	margin: 0;
	color: #555;
	font-size: 0.95em;
	line-height: 1.8;
}

/* 詳しく見る */
.ks-dictionary-card__more {
	display: inline-block;
	margin-top: 10px;
	color: #176078;
	font-size: 0.85em;
	font-weight: 700;
}

/* PCのみホバー */
@media (hover: hover) {
	.ks-dictionary-card:hover {
		transform: translateY(-2px);
		border-color: #b7d4dd;
		box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
	}

	.ks-dictionary-card__link:hover {
		color: inherit;
	}
}

/* スマホ */
@media (max-width: 599px) {

	.ks-dictionary-card__link {
		padding: 16px;
	}

	.ks-dictionary-card__title {
		font-size: 1.08em;
	}

	.ks-dictionary-card__summary {
		font-size: 0.9em;
		line-height: 1.7;
	}

	.ks-search-section--dictionary {
		margin-bottom: 32px;
	}
}

/* ==================================================
   Kaigo Skills｜辞書カード 視認性調整
================================================== */

.ks-dictionary-results {
	padding: 14px;
	background: #f6fafb;
	border-radius: 12px;
}

.ks-dictionary-card {
	border: 1px solid #d7e4e8;
	box-shadow: 0 2px 8px rgba(24, 63, 80, 0.06);
}

/* ==================================================
   Kaigo Skills｜検索結果 セクション見出し
================================================== */

.ks-search-heading {
	position: relative;
	margin: 0 0 20px;
	padding: 0 0 11px;
	border-bottom: 1px solid #e3e8ea;
}

.ks-search-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 46px;
	height: 2px;
	background: #176078;
}

.ks-search-heading__en {
	display: block;
	margin-bottom: 3px;
	color: #176078;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

.ks-search-heading__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #333;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
}

/* 各検索セクション間の余白 */
.ks-search-section {
	margin-bottom: 48px;
}

@media (max-width: 599px) {

	.ks-search-heading {
		margin-bottom: 16px;
	}

	.ks-search-heading__title {
		font-size: 1.15rem;
	}

	.ks-search-section {
		margin-bottom: 38px;
	}
}

/* 検索セクション間の余白を調整 */
.ks-search-section {
	margin-bottom: 36px;
}

.ks-search-section--dictionary {
	margin-bottom: 36px;
}

/* ==================================================
   Kaigo Skills｜検索結果 件数表示
================================================== */

.ks-search-heading__main {
	display: flex;
	align-items: baseline;
	gap: 9px;
}

.ks-search-heading__count {
	color: #8a969b;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

/* 検索結果件数を小さなバッジ表示 */
.ks-search-heading__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef3f5;
	color: #5f7077;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

/* ==================================================
   検索結果｜ブログ・ニュースのレスポンシブ表示
   PC：3列 × 最大2段
   タブレット：2列 × 最大3段
   スマホ：2列 × 最大3段
================================================== */

/* PC */
.ks-search-post-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px 16px !important;
}

.ks-search-post-grid > .p-postList__item {
	width: 100% !important;
	margin: 0 !important;
}

/* タブレット */
@media (max-width: 959px) {
	.ks-search-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px 14px !important;
	}
}

/* スマホ */
@media (max-width: 599px) {
	.ks-search-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 22px 10px !important;
	}

	.ks-search-post-grid .p-postList__title {
		font-size: 14px;
		line-height: 1.55;
	}

	/* スマホでは抜粋を非表示にしてカードをコンパクトに */
	.ks-search-post-grid .p-postList__excerpt {
		display: none;
	}
}

/* ==================================================
   Kaigo Skills｜トップページ検索
================================================== */

.ks-home-search {
	max-width: 860px;
	margin: 0 auto;
	padding: 30px 34px 26px;
	background: #fff;
	border: 1px solid #dbe8ee;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 70, 110, 0.07);
	text-align: center;
}

/* SEARCH */
.ks-home-search__en {
	display: block;
	margin-bottom: 4px;
	color: #1685bd;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

/* 見出し */
.ks-home-search__title {
	margin: 0 0 5px;
	color: #243c5a;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
}

/* 説明 */
.ks-home-search__text {
	margin: 0 0 20px;
	color: #687780;
	font-size: 14px;
}

/* 検索フォーム */
.ks-home-search__form {
	display: flex;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

/* 入力欄 */
.ks-home-search__input {
	flex: 1;
	min-width: 0;
	height: 54px;
	padding: 0 18px;
	background: #fff;
	border: 2px solid #d7e5eb;
	border-right: 0;
	border-radius: 9px 0 0 9px;
	color: #333;
	font-size: 16px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ks-home-search__input:focus {
	border-color: #1685bd;
	box-shadow: 0 0 0 3px rgba(22, 133, 189, 0.10);
}

.ks-home-search__input::placeholder {
	color: #9aa7ad;
}

/* 検索ボタン */
.ks-home-search__button {
	flex: 0 0 100px;
	height: 54px;
	padding: 0 18px;
	border: 0;
	border-radius: 0 9px 9px 0;
	background: #1685bd;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.ks-home-search__button:hover {
	opacity: 0.85;
}

/* 補足 */
.ks-home-search__note {
	margin: 12px 0 0;
	color: #89969c;
	font-size: 12px;
}


/* ==================================================
   タブレット
================================================== */

@media (max-width: 959px) {

	.ks-home-search {
		padding: 26px 24px 22px;
	}

}


/* ==================================================
   スマートフォン｜トップページ検索
================================================== */

@media (max-width: 599px) {

	.ks-home-search {
		padding: 20px 16px 18px;
		border-radius: 12px;
	}

	.ks-home-search__title {
		margin-bottom: 4px;
		font-size: 20px;
	}

	.ks-home-search__text {
		margin-bottom: 14px;
		font-size: 12px;
		line-height: 1.6;
	}

	.ks-home-search__form {
		display: flex;
		width: 100%;
	}

	.ks-home-search__input {
		flex: 1 1 auto;
		width: 1%;
		min-width: 0;
		height: 48px;
		padding: 0 12px;
		font-size: 14px;
	}

	.ks-home-search__button {
		flex: 0 0 68px;
		width: 68px;
		height: 48px;
		padding: 0;
		font-size: 14px;
	}

	.ks-home-search__note {
		margin-top: 10px;
		font-size: 11px;
		line-height: 1.5;
	}
}


/* ==================================================
   トップページ検索｜左揃え
================================================== */

.ks-home-search {
	text-align: left;
}

.ks-home-search__form {
	margin-left: 0;
	margin-right: 0;
}