/*
Theme Name: ChainTrack Child (Cocoon)
Template:   cocoon-master
Description: ChainTrack (trackingbb.net) 用 Cocoon 子テーマ。ネイビー×ティールのテック／信頼デザイン。
Author:      BitTo
Version:     1.0.0
*/

/* =====================================================================
 * ChainTrack — Custom Style
 * 配色: ネイビー #0a1628 × ティール #00b4d8
 * 方針: プロフェッショナル／テクノロジー感／信頼・誠実
 * ※ このファイルは子テーマ style.css、または Cocoon設定>カスタムCSS に貼り付け可。
 * ===================================================================== */

:root {
	--ct-navy:    #0a1628;
	--ct-navy-2:  #0e2240;
	--ct-navy-3:  #16304f;
	--ct-teal:    #00b4d8;
	--ct-teal-2:  #0090b8;
	--ct-teal-ink:#007fa3;
	--ct-ink:     #1f2a37;
	--ct-muted:   #5b6b7d;
	--ct-line:    #e2e8f0;
	--ct-bg:      #f4f7fb;
	--ct-white:   #ffffff;

	--ct-radius:  16px;
	--ct-radius-sm: 12px;
	--ct-shadow:        0 10px 30px rgba(10,22,40,.10);
	--ct-shadow-hover:  0 20px 46px rgba(10,22,40,.20);
	--ct-shadow-teal:   0 14px 34px rgba(0,180,216,.30);
	--ct-maxw: 1120px;
	--ct-ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 共通レイアウト ---------- */
.ct-container { max-width: var(--ct-maxw); margin: 0 auto; padding: 0 20px; }
.ct-section { padding: clamp(48px, 7vw, 88px) 0; }
.ct-section--soft { background: linear-gradient(180deg, var(--ct-bg), #eef3f9); }

.ct-section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.ct-section__title {
	font-size: clamp(22px, 3.2vw, 32px);
	font-weight: 800;
	color: var(--ct-navy);
	letter-spacing: .02em;
	margin: 0 0 .5em;
	position: relative; display: inline-block;
}
.ct-section__title::after {
	content: ""; position: absolute; left: 50%; bottom: -.45em; transform: translateX(-50%);
	width: 56px; height: 4px; border-radius: 999px;
	background: linear-gradient(90deg, var(--ct-teal), var(--ct-teal-2));
}
.ct-section__sub { color: var(--ct-muted); font-size: 15px; margin: .9em 0 0; }

/* ---------- ボタン ---------- */
.ct-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.7em; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none;
	transition: transform .22s var(--ct-ease), box-shadow .22s var(--ct-ease), background .22s ease, color .22s ease;
	cursor: pointer; border: 0;
}
.ct-btn--lg { padding: 1.05em 2.1em; font-size: 16px; }
.ct-btn--primary {
	color: #fff;
	background: linear-gradient(135deg, var(--ct-teal), var(--ct-teal-2));
	box-shadow: var(--ct-shadow-teal);
}
.ct-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0,180,216,.42); color:#fff; }
.ct-btn--ghost { color: #fff; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.45); }
.ct-btn--ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.14); color:#fff; }
.ct-btn--line { color: #fff; background: #06C755; box-shadow: 0 12px 28px rgba(6,199,85,.32); }
.ct-btn--line:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(6,199,85,.42); color:#fff; }

/* ---------- ヘッダーの動くブロックチェーンライン ---------- */
.ct-chain-line {
	position: relative; height: 3px; width: 100%;
	background: var(--ct-navy); overflow: hidden; z-index: 30;
}
.ct-chain-line::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(90deg,
		transparent 0, transparent 24px,
		rgba(0,180,216,.55) 24px, rgba(0,180,216,.55) 29px);
	background-size: 220px 100%;
	animation: ctChainFlow 7s linear infinite;
}
.ct-chain-line::after {
	content: ""; position: absolute; top: -1.5px; left: -12%;
	width: 110px; height: 6px; border-radius: 999px;
	background: radial-gradient(closest-side, rgba(0,180,216,.95), rgba(0,180,216,0));
	filter: blur(.3px);
	animation: ctChainNode 4.6s linear infinite;
}
@keyframes ctChainFlow { to { background-position: 220px 0; } }
@keyframes ctChainNode { 0% { left: -12%; } 100% { left: 112%; } }

/* ---------- ヒーローセクション ---------- */
.ct-hero {
	position: relative; overflow: hidden; color: #fff;
	padding: clamp(44px, 6.5vw, 92px) 20px;
	text-align: center;
	background:
		radial-gradient(1100px 460px at 82% -12%, rgba(0,180,216,.28), transparent 60%),
		radial-gradient(900px 420px at 10% 120%, rgba(0,180,216,.14), transparent 55%),
		linear-gradient(160deg, #0a1628 0%, #0c1d36 55%, #102a48 100%);
	border-radius: 0 0 28px 28px;
}
.ct-hero::before { /* 微細なテックグリッド */
	content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
	background-image:
		linear-gradient(rgba(0,180,216,.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,180,216,.08) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 80%);
}
.ct-hero__canvas { /* ヒーロー背景パーティクル（文字/ボタンの下層・クリック透過） */
	position: absolute; inset: 0; width: 100%; height: 100%;
	z-index: 1; pointer-events: none;
}
.ct-hero__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.ct-hero__eyebrow {
	color: var(--ct-teal); font-weight: 700; font-size: 12.5px;
	letter-spacing: .26em; margin: 0 0 1.1em;
}
.ct-hero__title {
	font-size: clamp(27px, 5vw, 50px); font-weight: 800; line-height: 1.35;
	margin: 0 0 .55em; letter-spacing: .01em;
}
.ct-hero__title b {
	background: linear-gradient(120deg, #5fe0ff, var(--ct-teal));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-weight: 800;
}
.ct-hero__lead { color: #c5d3e2; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.9; margin: 0 auto 2em; max-width: 660px; }
.ct-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ct-hero__note { color: #8aa0b6; font-size: 12px; margin: 1.8em 0 0; }

/* ---------- カテゴリーカード ---------- */
.ct-cat-grid {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
}
.ct-cat-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--ct-white); border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	text-decoration: none; color: inherit;
	box-shadow: 0 4px 14px rgba(10,22,40,.05);
	transition: transform .28s var(--ct-ease), box-shadow .28s var(--ct-ease), border-color .28s ease;
}
.ct-cat-card::before { /* 上部アクセントライン（ホバーで伸びる・画像の上に重なる） */
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3;
	background: linear-gradient(90deg, var(--ct-teal), var(--ct-teal-2));
	transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ct-ease);
}
.ct-cat-card:hover { transform: translateY(-10px); box-shadow: var(--ct-shadow-hover); border-color: rgba(0,180,216,.45); }
.ct-cat-card:hover::before { transform: scaleX(1); }

/* 画像エリア（カード上部・横幅100% × 縦200px固定） */
.ct-cat-card__media {
	position: relative; display: block; width: 100%; height: 200px; overflow: hidden;
	background: linear-gradient(135deg, var(--ct-navy), var(--ct-navy-3));
}
.ct-cat-card__img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .5s var(--ct-ease);
}
/* ホバー時に画像を少し拡大 */
.ct-cat-card:hover .ct-cat-card__img { transform: scale(1.08); }
.ct-cat-card__media::after { /* 画像下に軽い陰影＝アイコン/文字の視認性UP */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(10,22,40,0) 55%, rgba(10,22,40,.42) 100%);
}

/* アイコン（画像の左下にバッジ表示） */
.ct-cat-card__icon {
	position: absolute; left: 16px; bottom: -22px; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--ct-navy); color: var(--ct-teal);
	box-shadow: 0 8px 20px rgba(10,22,40,.28);
	transition: transform .28s var(--ct-ease), box-shadow .28s ease, background .28s ease;
}
.ct-cat-card__icon svg { width: 26px; height: 26px; }
.ct-cat-card:hover .ct-cat-card__icon {
	transform: translateY(-2px) scale(1.05);
	background: linear-gradient(135deg, var(--ct-navy-2), var(--ct-navy-3));
	box-shadow: 0 0 0 4px rgba(0,180,216,.14), var(--ct-shadow-teal);
}

/* テキストエリア */
.ct-cat-card__body { display: flex; flex-direction: column; flex: 1; padding: 34px 22px 22px; }
.ct-cat-card__title { display: block; font-size: 17px; font-weight: 800; color: var(--ct-navy); margin-bottom: .5em; }
.ct-cat-card__desc { display: block; font-size: 13.5px; color: var(--ct-muted); line-height: 1.75; flex: 1; }
.ct-cat-card__more {
	display: inline-flex; align-items: center; gap: .35em; margin-top: 16px;
	font-size: 13px; font-weight: 700; color: var(--ct-teal-ink);
}
.ct-cat-card__more svg { width: 16px; height: 16px; transition: transform .25s var(--ct-ease); }
.ct-cat-card:hover .ct-cat-card__more svg { transform: translateX(4px); }

/* ---------- 新着記事 ---------- */
.ct-posts-grid {
	display: grid; gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.ct-post-card {
	background: var(--ct-white); border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius); overflow: hidden;
	box-shadow: 0 4px 14px rgba(10,22,40,.05);
	transition: transform .28s var(--ct-ease), box-shadow .28s var(--ct-ease);
}
.ct-post-card:hover { transform: translateY(-8px); box-shadow: var(--ct-shadow-hover); }
.ct-post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.ct-post-card__thumb {
	position: relative; aspect-ratio: 16/9; overflow: hidden;
	background: linear-gradient(135deg, var(--ct-navy), var(--ct-navy-3));
}
.ct-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ct-ease); }
.ct-post-card:hover .ct-post-card__thumb img { transform: scale(1.06); }
.ct-post-card__noimg {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: rgba(0,180,216,.6); font-weight: 800; letter-spacing: .14em; font-size: 15px;
}
.ct-post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ct-post-card__cat {
	align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--ct-teal-ink);
	background: rgba(0,180,216,.10); padding: .35em .8em; border-radius: 999px;
}
.ct-post-card__title { font-size: 16px; font-weight: 800; color: var(--ct-navy); line-height: 1.55; margin: 0; }
.ct-post-card__excerpt { font-size: 13px; color: var(--ct-muted); line-height: 1.8; margin: 0; flex: 1; }
.ct-post-card__date { font-size: 12px; color: #93a3b4; }

/* ---------- BitToバナー ---------- */
.ct-bitto {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 28px;
	padding: clamp(28px, 4vw, 48px);
	border-radius: 22px; color: #fff;
	background:
		radial-gradient(600px 300px at 90% 0%, rgba(0,180,216,.30), transparent 60%),
		linear-gradient(135deg, #0a1628, #0e2240 70%);
	box-shadow: var(--ct-shadow);
}
.ct-bitto__eyebrow { color: var(--ct-teal); font-weight: 700; font-size: 12px; letter-spacing: .2em; margin: 0 0 .8em; }
.ct-bitto__title { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; line-height: 1.45; margin: 0 0 .6em; }
.ct-bitto__text { color: #ffffff; font-size: 14px; line-height: 1.9; margin: 0 0 .8em; max-width: 620px; }
.ct-bitto__note { color: rgba(255,255,255,.85); font-size: 11.5px; margin: 0; }
.ct-bitto__action { flex-shrink: 0; }
.ct-bitto__glow {
	position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0,180,216,.35), transparent 70%);
	pointer-events: none; animation: ctGlow 6s ease-in-out infinite alternate;
}
@keyframes ctGlow { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.1); opacity: 1; } }

/* ---------- スクロール・フェードイン ---------- */
.ct-js .ct-fade {
	opacity: 0; transform: translateY(26px);
	transition: opacity .7s ease, transform .7s var(--ct-ease);
	transition-delay: var(--ct-d, 0s);
	will-change: opacity, transform;
}
.ct-fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ct-js .ct-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
	.ct-chain-line::before, .ct-chain-line::after, .ct-bitto__glow { animation: none !important; }
}

/* =====================================================================
 * Cocoon 既存パーツの上書き（配色をネイビー×ティールに統一）
 * ※ お使いのスキン/ヘッダーレイアウトにより微調整が必要な場合あり
 * ===================================================================== */

/* ヘッダー（左寄せ・2行サイト名・右CTA／縦幅コンパクト） */
#header, .header-container {
	background: var(--ct-navy); position: relative;
	min-height: 0 !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}
.logo, #site-title, .logo-header, #header .logo-header,
.header-container .logo, #header-container .logo {
	text-align: left !important; margin-left: 0 !important; padding-left: 0 !important; margin-right: auto;
}
#site-title a, #header .site-name-text, .logo-header a {
	color: #fff !important; font-weight: 800; letter-spacing: .04em; line-height: 1.15;
}
/* スマホ：ヘッダータイトルを改行させる */
@media (max-width: 767px) {
	#site-title a, #header .site-name-text, .logo-header a {
		font-size: 14px !important; line-height: 1.4;
		display: inline-block; max-width: calc(100% - 20px);
		word-break: break-all;
	}
}
/* サイト名2行目サブタイトル＝ヘッダーは #site-title a::after の1つだけ表示 */
#site-title a::after {
	content: "仮想通貨詐欺被害の調査メディア";
	display: block;
	margin-top: 4px;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: .04em;
	color: #00b4d8;
}
#header .site-name-text::after { display: none !important; content: none !important; }
/* Cocoon標準のキャッチフレーズ／サイト説明を完全非表示 */
.tagline, .site-description, .site-description-text, .catch, #catchphrase, #tagline { display: none !important; }
#navi, .navi-in { background: var(--ct-navy); }
#navi .navi-in > ul > li > a { color: #e6eef6; transition: color .2s ease; }
#navi .navi-in > ul > li > a:hover { color: var(--ct-teal); background: rgba(0,180,216,.08); }
.navi-in > ul > li.current-menu-item > a { color: var(--ct-teal); }

/* ヘッダーの「被害について相談」CTA（緑 / PC右端・スマホは中央下） */
.ct-header-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 25;
	padding: .6em 1.3em; border-radius: 999px;
	font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; color: #fff;
	background: #06C755;
	box-shadow: 0 8px 20px rgba(6,199,85,.32);
	transition: transform .2s var(--ct-ease), box-shadow .2s var(--ct-ease);
}
.ct-header-cta:hover { transform: translateY(-50%) translateY(-2px); box-shadow: 0 12px 26px rgba(6,199,85,.45); color: #fff; }
/* スマホ：ヘッダーも縦幅コンパクト。ボタン分だけ下余白を確保（約38px） */
@media (max-width: 1023px) {
	#header { padding-top: 6px !important; padding-bottom: 38px !important; }
	.ct-header-cta {
		right: auto; left: 50%; top: auto; bottom: 6px;
		transform: translateX(-50%);
		padding: .4em 1.2em; font-size: 12px;
	}
	.ct-header-cta:hover { transform: translateX(-50%) translateY(-2px); }
}

/* ヘッダーとファーストビューの間隔を詰める＋トップを“スマート”に（トップページのみ） */
.home #content, .home #main, .home .main, .home .content { padding-top: 0 !important; margin-top: 0 !important; }
.home .entry-content { margin-top: 0 !important; }
.home .entry-title, .home .article-title, .home #breadcrumb, .home .breadcrumb, .home .breadcrumbs { display: none !important; }
.ct-hero { margin-top: 0; }

/* 本文リンク・見出し */
.entry-content a { color: var(--ct-teal-ink); }
.entry-content a:hover { color: var(--ct-teal); }
.article h2, .entry-content h2 {
	color: var(--ct-navy); background: none;
	border-left: 5px solid var(--ct-teal); border-bottom: 1px solid var(--ct-line);
	padding: .4em .7em; border-radius: 0 6px 6px 0;
}
.article h3, .entry-content h3 { color: var(--ct-navy); border-left: 3px solid var(--ct-teal); padding-left: .6em; }

/* Cocoon 記事カードのホバー浮き上がり */
.entry-card-wrap, .a-wrap { transition: transform .28s var(--ct-ease), box-shadow .28s var(--ct-ease); border-radius: var(--ct-radius-sm); }
.entry-card-wrap:hover, .a-wrap:hover { transform: translateY(-6px); box-shadow: var(--ct-shadow-hover); }
.entry-card { border-radius: var(--ct-radius-sm); }
.cat-label { background: var(--ct-teal) !important; }

/* ウィジェットタイトル */
.widget-sidebar .widget-title, .sidebar-title, .widget_title {
	color: var(--ct-navy); border-bottom: 2px solid var(--ct-teal);
}

/* ページネーション・ボタン類 */
.pagination .page-numbers.current, .page-numbers.current { background: var(--ct-teal) !important; border-color: var(--ct-teal) !important; }
.btn, .wp-block-button__link { background: linear-gradient(135deg, var(--ct-teal), var(--ct-teal-2)); }

/* フッター */
.footer, #footer { background: var(--ct-navy); color: #c5d3e2; }
.footer a, #footer a { color: #c5d3e2; }
.footer a:hover, #footer a:hover { color: var(--ct-teal); }
.copyright { color: #8aa0b6; }

/* フッターのサイト名（白色のみ・サブテキストなし） */
#footer .site-name-text, .footer .site-name-text,
#footer .logo a, .footer .logo a, .footer-logo a, #footer .logo-text {
	color: #ffffff !important; font-weight: 800; line-height: 1.2; display: inline-block;
}
/* フッターのサイト名2行目サブテキスト＝.footer .site-name-text::after の1つだけ表示 */
.footer .site-name-text::after {
	content: "仮想通貨詐欺被害の調査メディア";
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #00b4d8;
}
/* 重複防止：ロゴ系の::afterは非表示（#footer .site-name-text::after は表示と競合するため除外） */
#footer .logo a::after,
.footer .logo a::after,
.footer-logo a::after,
#footer .logo-text::after { display: none !important; content: none !important; }

/* BitToバナー見出しは白で固定（.entry-content h2 等の色上書きを防止） */
.ct-bitto .ct-bitto__title { color: #ffffff !important; border: 0; background: none; padding: 0; }

/* 「○○をフォローする」のSNSフォロー枠を丸ごと非表示 */
.sns-follow, .sns-follow-buttons, .author-box .sns-follow, .footer .sns-follow { display: none !important; }

/* スクロールトップ */
#go-to-top-button, .go-to-top { background: var(--ct-teal); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
	.ct-bitto { flex-direction: column; align-items: flex-start; text-align: left; }
	.ct-bitto__action { align-self: stretch; }
	.ct-bitto__action .ct-btn { width: 100%; }
	.ct-hero__cta { flex-direction: column; }
	.ct-hero__cta .ct-btn { width: 100%; }
}
