@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（ワニラボログ カスタマイズ）
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon
Version:    2.0.0
*/

/* ==========================================================
   ワニラボログ ブランドスタイル
   - サイト全体の配色・タイポグラフィ
   - 記事ページ（single）の可読性・モバイル最適化
   ========================================================== */

:root {
	--wl-primary: #06316e;
	--wl-primary-deep: #041f47;
	--wl-accent: #0a4bb5;
	--wl-accent-soft: #e5eaf3;
	--wl-lime: #a8d820;
	--wl-ink: #0c1e3c;
	--wl-muted: #56637d;
	--wl-bg: #f4f6fa;
	--wl-line: #d8dfeb;
}

/* --- 基本タイポグラフィ --- */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", YuGothic, system-ui, -apple-system, sans-serif;
	color: var(--wl-ink);
	background-color: var(--wl-bg);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--wl-accent); }
a:hover { color: var(--wl-primary); }

/* --- ヘッダー --- */
.header-container {
	background: #fff;
	border-bottom: 1px solid var(--wl-line);
}
.header {
	background: #fff;
}
.site-name-text {
	color: var(--wl-primary);
	font-weight: 800;
	letter-spacing: .02em;
}
.tagline {
	color: var(--wl-muted);
	font-size: 12px;
}
#navi {
	background: #fff;
}
#navi .navi-in > ul li {
	background: #fff;
}
#navi .navi-in > ul > li > a {
	color: var(--wl-ink);
	font-size: 14px;
	font-weight: 700;
	padding: 0 14px;
}
#navi .navi-in > ul > li > a:hover {
	background: var(--wl-accent-soft);
	color: var(--wl-primary);
}
#navi .navi-in > ul .sub-menu {
	background: #fff;
	border: 1px solid var(--wl-line);
}
/* ナビ内CTAボタン（お問い合わせ） */
#navi .navi-in > ul > li.wl-nav-cta > a {
	background: var(--wl-primary);
	color: #fff;
	border-radius: 999px;
	margin: 10px 0 10px 10px;
	padding: 0 22px;
	height: auto;
	line-height: 2.6;
}
#navi .navi-in > ul > li.wl-nav-cta > a:hover {
	background: var(--wl-accent);
	color: #fff;
}

/* モバイルヘッダー */
.mobile-header-menu-buttons {
	background: #fff;
	border-bottom: 1px solid var(--wl-line);
}
.mobile-menu-buttons .menu-button > a {
	color: var(--wl-primary);
}

/* --- フッター --- */
.footer {
	background: var(--wl-primary-deep);
	color: rgba(255, 255, 255, .85);
}
.footer a {
	color: rgba(255, 255, 255, .85);
}
.footer a:hover {
	color: #fff;
}
.footer-bottom-logo .site-name-text,
.footer .site-name-text {
	color: #fff;
}
.copyright {
	color: rgba(255, 255, 255, .6);
}

/* --- パンくず --- */
.breadcrumb {
	color: var(--wl-muted);
	font-size: 12px;
}
.breadcrumb a { color: var(--wl-muted); }
.breadcrumb a:hover { color: var(--wl-accent); }

/* --- 記事一覧（アーカイブ）カード --- */
.entry-card-wrap {
	background: #fff;
	border: 1px solid var(--wl-line);
	border-radius: 12px;
	margin-bottom: 16px;
	transition: box-shadow .2s ease;
}
.entry-card-wrap:hover {
	box-shadow: 0 6px 20px rgba(12, 53, 80, .08);
}
.entry-card {
	padding: 14px;
}
.entry-card-title {
	color: var(--wl-ink);
	font-weight: 700;
	line-height: 1.55;
}
.entry-card-snippet {
	color: var(--wl-muted);
}
.cat-label {
	background: var(--wl-primary-deep);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
}

/* --- メイン/サイドバー枠 --- */
#main {
	background: #fff;
	border: 1px solid var(--wl-line);
	border-radius: 14px;
}
.sidebar h3,
.sidebar .widget > h3 {
	background: transparent;
	border-left: 4px solid var(--wl-accent);
	border-bottom: 1px solid var(--wl-line);
	color: var(--wl-ink);
	font-weight: 800;
	padding: 6px 0 6px 12px;
}

/* ==========================================================
   記事ページ（投稿・固定ページ）の可読性
   ========================================================== */

/* タイトル・メタ情報 */
.article .entry-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .01em;
}
.article .date-tags-area {
	color: var(--wl-muted);
}

/* 本文タイポグラフィ */
.article {
	font-size: 16px;
	line-height: 1.9;
	color: var(--wl-ink);
}
.article p {
	margin-bottom: 1.6em;
}

/* 見出しデザイン */
.article h2 {
	background: var(--wl-bg);
	border: none;
	border-left: 5px solid var(--wl-primary);
	border-radius: 0;
	color: var(--wl-ink);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.5;
	padding: 14px 18px;
	margin-top: 2.4em;
	position: relative;
}
.article h2::after {
	content: "";
	position: absolute;
	left: -5px;
	bottom: 0;
	width: 5px;
	height: 30%;
	background: var(--wl-lime);
}
.article h3 {
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--wl-primary);
	color: var(--wl-ink);
	font-size: 18px;
	font-weight: 800;
	padding: 6px 2px 8px;
	margin-top: 2em;
}
.article h4 {
	border: none;
	border-left: 3px solid var(--wl-line);
	color: var(--wl-ink);
	font-size: 16px;
	font-weight: 800;
	padding: 4px 12px;
}

/* 目次（AEO: ページ内構造の明確化） */
.toc {
	background: var(--wl-bg);
	border: 1px solid var(--wl-line);
	border-radius: 12px;
	padding: 18px 22px;
}
.toc-title {
	font-weight: 800;
	color: var(--wl-primary);
}
.toc a {
	color: var(--wl-ink);
	text-decoration: none;
}
.toc a:hover { color: var(--wl-accent); }

/* 引用・テーブル・コード */
.article blockquote {
	background: var(--wl-bg);
	border-left: 4px solid var(--wl-line);
	border-radius: 0 8px 8px 0;
	color: var(--wl-muted);
}
.article table {
	border-collapse: collapse;
	font-size: 14px;
}
.article table th {
	background: var(--wl-primary);
	color: #fff;
	border: 1px solid var(--wl-primary);
	font-weight: 700;
}
.article table td {
	border: 1px solid var(--wl-line);
}
.article table tr:nth-of-type(even) td {
	background: var(--wl-bg);
}
.article pre {
	border-radius: 10px;
	font-size: 13px;
}
.article img {
	border-radius: 10px;
	height: auto;
}

/* シェアボタン・フォローエリア */
.sns-share-buttons a,
.sns-follow-buttons a {
	border-radius: 8px;
}

/* 著者情報（E-E-A-T） */
.wl-authorbox {
	margin: 2.5em 0 0;
}
.wl-authorbox-label {
	font-size: 13px;
	font-weight: 800;
	color: var(--wl-primary);
	margin: 0 0 8px;
}
.wl-authorbox-inner {
	display: flex;
	gap: 16px;
	background: var(--wl-bg);
	border: 1px solid var(--wl-line);
	border-radius: 12px;
	padding: 20px;
}
.wl-authorbox-avatar {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wl-accent-soft);
	color: var(--wl-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}
.wl-authorbox-avatar svg {
	width: 28px;
	height: 28px;
}
.wl-authorbox-name {
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 6px;
}
.wl-authorbox-bio {
	font-size: 13px;
	color: var(--wl-muted);
	line-height: 1.7;
	margin: 0 0 8px;
}
.wl-authorbox-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--wl-accent);
	text-decoration: none;
}
.wl-authorbox-link:hover { text-decoration: underline; }

/* 関連記事・前後記事 */
.related-entry-card-wrap {
	border-radius: 10px;
	overflow: hidden;
}
.prev-post, .next-post {
	background: #fff;
	border: 1px solid var(--wl-line);
	border-radius: 10px;
}

/* ページネーション */
.pagination .current {
	background: var(--wl-primary);
	border-color: var(--wl-primary);
}
.page-numbers {
	border-radius: 8px;
}

/* ==========================================================
   レスポンシブ調整
   ========================================================== */

/*1023px以下*/
@media screen and (max-width: 1023px) {
	#main {
		border-radius: 10px;
	}
}

/*834px以下*/
@media screen and (max-width: 834px) {
	.article .entry-title {
		font-size: 22px;
	}
	.article h2 {
		font-size: 19px;
		padding: 12px 14px;
	}
	.article h3 {
		font-size: 17px;
	}
}

/*480px以下*/
@media screen and (max-width: 480px) {
	#main {
		padding: 16px 14px;
		border-left: none;
		border-right: none;
		border-radius: 0;
	}
	.article {
		font-size: 15.5px;
	}
	.article .entry-title {
		font-size: 20px;
	}
}

/* ==========================================================
   モバイル追跡ハンバーガーメニュー（1024px未満）
   ========================================================== */
.wl-burger,
.wl-mobile-nav {
	display: none;
}
@media screen and (max-width: 1023px) {
	.wl-burger {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		position: fixed;
		top: 12px;
		right: 12px;
		width: 50px;
		height: 50px;
		border-radius: 50%;
		background: #06316e;
		border: 2px solid #a8d820;
		box-shadow: 0 4px 14px rgba(4, 31, 71, .35);
		z-index: 100000;
		cursor: pointer;
		padding: 0;
	}
	.wl-burger span {
		display: block;
		width: 20px;
		height: 2px;
		background: #a8d820;
		border-radius: 2px;
		transition: transform .25s ease, opacity .25s ease;
	}
	body.wl-nav-open .wl-burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	body.wl-nav-open .wl-burger span:nth-child(2) {
		opacity: 0;
	}
	body.wl-nav-open .wl-burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	.wl-mobile-nav {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		inset: 0;
		background: linear-gradient(160deg, #030f26 0%, #041f47 55%, #06316e 100%);
		z-index: 99999;
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, visibility .25s ease;
	}
	body.wl-nav-open .wl-mobile-nav {
		opacity: 1;
		visibility: visible;
	}
	body.wl-nav-open {
		overflow: hidden;
	}
	.wl-mobile-nav-list {
		list-style: none;
		margin: 0;
		padding: 0;
		text-align: center;
		max-height: 80vh;
		overflow-y: auto;
	}
	.wl-mobile-nav-list li {
		margin: 0;
	}
	.wl-mobile-nav-list a {
		display: block;
		padding: 13px 32px;
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		letter-spacing: .04em;
		text-decoration: none;
	}
	.wl-mobile-nav-list a:hover,
	.wl-mobile-nav-list a:focus {
		color: #a8d820;
	}
	.wl-mobile-nav-list .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.wl-mobile-nav-list .sub-menu a {
		font-size: 14px;
		font-weight: 400;
		padding: 8px 32px;
		color: rgba(255, 255, 255, .8);
	}
}

/* モバイル時のヘッダーロゴ: 右上の追跡ハンバーガーと重ならない幅に制限 */
@media screen and (max-width: 1023px) {
	.header-site-logo-image {
		max-width: min(62vw, 250px);
		height: auto;
	}
}

/* PCヘッダー: ロゴ高さを抑えてナビ（お問い合わせボタン含む）を1行に収める */
@media screen and (min-width: 1024px) {
	.header-site-logo-image {
		max-height: 48px !important;
		width: auto !important;
		max-width: none !important;
	}
}
/* 狭いPC幅（1024〜1215px）: ロゴとナビをさらに圧縮して1行を維持 */
@media screen and (min-width: 1024px) and (max-width: 1215px) {
	.header-site-logo-image {
		max-height: 38px !important;
	}
	#navi .navi-in > ul > li > a {
		font-size: 13px;
		padding: 0 9px;
	}
	#navi .navi-in > ul > li.wl-nav-cta > a {
		padding: 0 16px;
		margin-left: 4px;
	}
}
