/*
Theme Name: SOTOSUMU (SWELL child)
Template: swell
Description: SOTOSUMU 用 SWELL 子テーマ。デザイン仕様は kaigai-media/CLAUDE.md 6章
Version: 0.1.3
Author: 株式会社axia
*/

/* ===== デザイントークン ===== */
:root {
	--ss-ink: #1A2433;
	--ss-sub: #5B6573;
	--ss-soft: #3C4654;
	--ss-accent: #0E5C57;
	--ss-line: #E6E8EB;
	--ss-gray: #F4F5F7;
	--ss-gray2: #EEF1F3;
	--ss-line-bg: #F4F7F6;
	--ss-line-btn: #06C755;
	--ss-line-txt: #062B15;
}

/* スマホ用ヘッダーメニューが PC 幅でも素のリストで出てしまうため隠す */
@media (min-width: 960px) {
	.l-header__spNav { display: none; }
}

/* ===== ベース ===== */
body {
	font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
	color: var(--ss-ink);
}
.c-headLogo, .p-ranking__num, .ss-en {
	font-family: "DM Sans", "Zen Kaku Gothic New", sans-serif;
}

/* 記事本文：17px / 行間2.0 / 最大760px */
.single .post_content {
	font-size: 17px;
	line-height: 2;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.single .c-postTitle__ttl { font-size: 32px; font-weight: 900; line-height: 1.5; }
@media (max-width: 599px) {
	.single .post_content { font-size: 16px; }
	.single .c-postTitle__ttl { font-size: 24px; }
}

/* H2：アクセント色の下線（SWELL側の見出しデザインは「装飾なし」にしておく） */
.post_content h2 {
	font-size: 24px;
	font-weight: 900;
	background: none;
	color: var(--ss-ink);
	padding: 0 0 .4em;
	border-bottom: 3px solid var(--ss-accent);
}
.post_content h2::before, .post_content h2::after { content: none; }
.post_content h3 {
	font-weight: 700;
	border-left: 4px solid var(--ss-accent);
	padding-left: .6em;
}
.post_content h3::before, .post_content h3::after { content: none; }

/* 表：見出しセルは薄グレー */
.post_content table th { background: var(--ss-gray2); }
.post_content table th, .post_content table td { border-color: var(--ss-line); }

/* 画像の角丸 */
.post_content img, .p-postList__thumb img, .c-postThumb img { border-radius: 6px; }

/* 影・グラデーションを使わない */
.p-postList__link, .c-postThumb, .p-blogCard__inner { box-shadow: none !important; }

/* ===== PR表記 ===== */
/* タイトル横のPRラベル。content は PR記事のときだけ functions.php が head に出力する
   （SWELL は body_class を出力しないため、body のクラスでは判定できない） */
.c-postTitle__ttl::before {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: var(--ss-ink);
	border: 1px solid var(--ss-ink);
	border-radius: 3px;
	padding: 4px 8px;
	margin-right: 10px;
	vertical-align: middle;
}
.ss-pr-box {
	background: var(--ss-gray);
	border-radius: 6px;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--ss-soft);
	margin: 0 0 2em;
}
.ss-pr-box strong { color: var(--ss-ink); margin-right: .5em; }

/* ===== LINE ブロック ===== */
.ss-line {
	background: var(--ss-line-bg);
	border-radius: 8px;
	padding: 28px 24px;
	text-align: center;
	margin: 2.5em 0;
}
.ss-line__ttl { font-size: 18px; font-weight: 900; margin: 0 0 .4em; line-height: 1.6; }
.ss-line__txt { font-size: 14px; color: var(--ss-soft); margin: 0 0 1em; line-height: 1.8; }
.ss-line--small { padding: 18px 20px; }
.ss-line--small .ss-line__ttl { font-size: 16px; }

/* ===== ボタン（ピル型・高さ44〜56px） ===== */
.ss-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 32px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none !important;
	transition: opacity .2s;
}
.ss-btn:hover { opacity: .85; }
.ss-btn--line { background: var(--ss-line-btn); color: var(--ss-line-txt) !important; }
.ss-btn--accent { background: var(--ss-accent); color: #fff !important; }

/* ===== 相談 CTA ボックス ===== */
.ss-cta {
	border: 2px solid var(--ss-accent);
	border-radius: 8px;
	padding: 28px 24px;
	text-align: center;
	margin: 2.5em 0;
}
.ss-cta__ttl { font-size: 18px; font-weight: 900; margin: 0 0 .4em; }
.ss-cta__txt { font-size: 14px; color: var(--ss-soft); margin: 0 0 1em; line-height: 1.8; }
.ss-cta__note { font-size: 12px; color: var(--ss-sub); margin: 1em 0 0; }

/* ===== 広告枠 ===== */
.ss-ad { margin: 2.5em 0; text-align: center; }
.ss-ad__label { font-size: 11px; color: var(--ss-sub); margin-bottom: 4px; }

/* ===== 記事末の免責 ===== */
.ss-disclaimer { font-size: 13px; color: var(--ss-sub); line-height: 1.8; border-top: 1px solid var(--ss-line); padding-top: 1em; margin-top: 3em; }
