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

/* ===== サスリンブログ デザイン調整（SITE_SPEC.md 8章） ===== */
/* 色そのもの（メインカラー・背景・文字色）はSWELLのカスタマイザーで設定する */

:root {
	--sasurin-accent: #2F5D50;
	--sasurin-text-sub: #5B6560;
	--sasurin-border: #E4DED1;
	--sasurin-tag-bg: #EFEBE3;
	--sasurin-radius-card: 14px;
	--sasurin-font-body: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
	--sasurin-font-round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

/* フォント：本文は Noto Sans JP、ロゴ・見出しは Zen Maru Gothic */
body {
	font-family: var(--sasurin-font-body);
}
.c-headLogo,
.c-catchphrase,
.c-gnav,
.c-postTitle__ttl,
.c-pageTitle,
.c-widget__title,
.p-mainVisual__slideTitle,
.p-pickupBanners__item,
.post_content h2,
.post_content h3,
.post_content h4 {
	font-family: var(--sasurin-font-round);
}

/* ヘッダー：ロゴ文字の左にアイコン */
.c-headLogo.-txt .c-headLogo__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.c-headLogo.-txt .c-headLogo__link::before {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: url(/wp-content/uploads/2026/09/sasurin-icon-150x150.png) center / cover no-repeat;
}
@media (max-width: 959px) {
	.c-headLogo.-txt .c-headLogo__link::before {
		width: 32px;
		height: 32px;
	}
}

.c-headLogo {
	white-space: nowrap;
}

/* メインビジュアル：文章は左側（アイコンに重ならない幅）、小見出しを追加、ボタンは白地に深緑の文字 */
.p-mainVisual__textLayer {
	text-shadow: none !important;
}
.p-mainVisual__slideTitle::before {
	content: "FIRE / 資産運用 / 副業 / 家族との日々";
	display: block;
	margin-bottom: 0.9em;
	font-family: var(--sasurin-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	opacity: 0.85;
}
.p-mainVisual .-btn-n .c-mvBtn__btn {
	color: var(--sasurin-accent);
	font-weight: 700;
}
/* タブレット・PC：画像の縦横比で高さが決まると大きすぎるため、高さを固定して緑の背景＋右側に丸いアイコンを表示 */
@media (min-width: 600px) {
	.p-mainVisual__slide {
		height: clamp(300px, 26vw, 400px);
		background: var(--sasurin-accent);
	}
	.p-mainVisual__imgLayer {
		display: none;
	}
	.p-mainVisual__textLayer::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 48px;
		width: min(290px, 22vw);
		aspect-ratio: 1;
		transform: translateY(-50%);
		border: 5px solid #fff;
		border-radius: 50%;
		background: url(/wp-content/uploads/2026/09/sasurin-main.jpg) center / 112% no-repeat;
	}
	.p-mainVisual .p-mainVisual__slideTitle {
		max-width: calc(100% - min(290px, 22vw) - 64px);
		font-size: clamp(26px, 2.7vw, 38px);
		line-height: 1.5;
	}
	.p-mainVisual__slideTitle::before {
		font-size: 15px;
	}
	.p-mainVisual .p-mainVisual__slideText {
		max-width: min(31em, calc(100% - min(290px, 22vw) - 64px));
		margin-top: 1em;
		font-size: clamp(15px, 1.25vw, 18px);
		line-height: 1.9;
	}
	.p-mainVisual .p-mainVisual__slideBtn {
		margin-top: 1.6em;
	}
}
/* 見出しの改行（<br>）はスマホ・タブレット用。PCでは1行で表示 */
@media (min-width: 960px) {
	.p-mainVisual__slideTitle br {
		display: none;
	}
}
/* スマホ：完成イメージ（案7）に合わせ、アイコン→キャッチフレーズ→見出し→本文→ボタンを中央ぞろえで縦に並べる */
@media (max-width: 599px) {
	.p-mainVisual__slide {
		background: var(--sasurin-accent);
	}
	.p-mainVisual__imgLayer {
		display: none;
	}
	.p-mainVisual .p-mainVisual__textLayer {
		position: relative;
		align-items: center;
		justify-content: flex-start;
		padding: 40px 20px 48px;
		text-align: center;
	}
	.p-mainVisual__textLayer::before {
		content: "";
		display: block;
		width: 170px;
		height: 170px;
		margin: 0 auto 24px;
		border: 5px solid #fff;
		border-radius: 50%;
		background: url(/wp-content/uploads/2026/09/sasurin-main.jpg) center / 112% no-repeat;
	}
	.p-mainVisual .p-mainVisual__slideTitle {
		font-size: clamp(20px, 8.4vw, 30px);
		line-height: 1.45;
		word-break: keep-all;
		overflow-wrap: anywhere;
	}
	.p-mainVisual__slideTitle::before {
		content: "〜アラフィフ社労士試験合格者のFIRE実践記録〜";
		margin-bottom: 1.2em;
		letter-spacing: 0;
	}
	.p-mainVisual .p-mainVisual__slideText {
		max-width: 22em;
		margin: 1.2em auto 0;
		font-size: 14px;
		line-height: 1.9;
	}
	.p-mainVisual .p-mainVisual__slideBtn {
		margin: 28px auto 0;
	}
	.p-mainVisual .c-mvBtn__btn {
		min-width: 200px;
		padding: 0.9em 2em;
	}
}

/* ピックアップバナーの見出し「カテゴリから探す」 */
#pickup_banner::before {
	content: "カテゴリから探す";
	display: block;
	margin-bottom: 20px;
	font-family: var(--sasurin-font-round);
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

/* スマホ用ヘッダー下メニュー：「初めての方へ」を強調 */
.p-spHeadMenu .menu-start a {
	color: var(--sasurin-accent);
	font-weight: 700;
}

/* トップページ：メインビジュアルとバナーの間の余白を詰める */
.home #content {
	padding-top: 40px;
}
@media (max-width: 599px) {
	.home #content {
		padding-top: 20px;
	}
}

/* ピックアップバナー：アイコン＋カテゴリー名＋説明文のカード（functions.php で出力） */
.sasurin-catBanner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 20px 12px;
	border: 1px solid var(--sasurin-border);
	border-radius: var(--sasurin-radius-card);
	background: #fff;
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}
.sasurin-catBanner:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(31, 42, 46, 0.08);
}
.sasurin-catBanner__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sasurin-tag-bg);
	color: var(--sasurin-accent);
}
.sasurin-catBanner__name {
	font-family: var(--sasurin-font-round);
	font-weight: 700;
	font-size: 15px;
}
.sasurin-catBanner__desc {
	color: var(--sasurin-text-sub);
	font-size: 12px;
	line-height: 1.6;
}
@media (max-width: 599px) {
	.sasurin-catBanner {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 14px;
		row-gap: 2px;
		align-items: center;
		padding: 14px 16px;
		text-align: left;
	}
	.sasurin-catBanner__icon {
		grid-row: span 2;
		width: 44px;
		height: 44px;
	}
}

/* 角丸：カード14px */
.-type-card .p-postList__thumb,
.p-profileBox {
	border-radius: var(--sasurin-radius-card);
	overflow: hidden;
}

/* 角丸：ボタンは丸型 */
.c-mvBtn__btn,
.c-infoBar__btn,
.p-profileBox__btnLink,
.swell-block-button__link,
.wpcf7-submit {
	border-radius: 999px;
}

/* グローバルナビ：「初めての方へ」をアクセントカラーで強調 */
.c-gnav > .menu-start {
	display: flex;
	align-items: center;
}
.c-gnav > .menu-start > a {
	color: #fff;
	background: var(--sasurin-accent);
	border-radius: 999px;
	height: auto;
	margin: 0 4px;
	padding: 0.5em 1.2em;
}
.c-gnav > .menu-start > a:hover {
	opacity: 0.85;
}

/* タグクラウド：丸いタグ、「必読・コア記事」は強調 */
.tag-cloud-link {
	display: inline-block;
	margin: 0 4px 8px 0;
	padding: 0.35em 1em;
	border: none;
	border-radius: 999px;
	background: var(--sasurin-tag-bg);
	color: inherit;
	font-size: 13px !important;
	line-height: 1.6;
}
.tag-cloud-link[href$="/tag/must-read/"] {
	background: var(--sasurin-accent);
	color: #fff !important; /* SWELL標準が !important で文字色を固定しているため */
	font-weight: 700;
}

/* 本文の読みやすさ：行の間隔を広げ、リストの項目の間もあける */
.post_content p {
	line-height: 2.05;
	letter-spacing: 0.02em;
}
.post_content li {
	line-height: 1.95;
}
.post_content ul.wp-block-list > li + li,
.post_content ol.wp-block-list > li + li {
	margin-top: 0.6em;
}

/* 本文中のリンク：黒文字と見分けがつくよう、色・太字・下線をつける */
.post_content a:not([class]),
.c-balloon__text a:not([class]) {
	color: #1B7F79;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.post_content a:not([class]):hover,
.c-balloon__text a:not([class]):hover {
	opacity: 0.75;
}

/* ふきだし：アイコン下の名前を大きく・はっきり */
.c-balloon__iconName {
	padding-top: 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	opacity: 1;
	white-space: nowrap;
	/* アイコンより長い名前でも、アイコンの真ん中を中心に左右へ広げる（画面端で切れないように） */
	position: relative;
	left: 50%;
	width: max-content;
	transform: translateX(-50%);
}

/* プロフィール下の文字リンク */
.sasurin-profLinks {
	margin: 0;
	text-align: center;
	font-size: 14px;
}
.sasurin-profLinks a {
	display: inline-block;
	margin: 0 0.5em;
	color: var(--sasurin-accent);
}
