/*
Theme Name: Lightning Child (freetemplate)
Template: lightning
Description: freetemplate.jp/attention 用。コルク背景・コラージュ・ロゴの雰囲気を残しつつ、余白と角丸でいまの見やすさに寄せた子テーマ。
Version: 1.1.0
*/

/* ---------------------------------------------------------------- 全体：コルク背景と白い紙面 */
:root {
	--vk-width-container: 1100px;
	--vk-color-primary: #0091b6;
	--ft-accent: #0091b6;
	--ft-accent-dark: #00769a;
	--ft-link: #1a7fc1;
	--ft-ink: #333;
	--ft-line: #e6e6e6;
}
body {
	color: var(--ft-ink);
	background: #c8a872 url(../../../img/bg_body.jpg) repeat top center;
	padding-top: 0;
	font-size: 15px;
	line-height: 1.8;
}
@media (min-width: 992px) {
	body {
		background-image: url(../../../img/bg_header.jpg), url(../../../img/bg_body.jpg);
		background-repeat: no-repeat, repeat;
		background-position: top center, top center;
		padding-top: 230px;
	}
}
.ft-topbar, .site-header, .breadcrumb, .site-body, .site-footer, .site-body-bottom {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
}
.ft-topbar { border-radius: 12px 12px 0 0; overflow: hidden; }
.site-footer { margin-bottom: 48px; border-radius: 0 0 12px 12px; overflow: hidden; }
.site-body { padding-top: 16px; }
@media (max-width: 991px) { .ft-topbar, .site-footer { border-radius: 0; } .site-footer { margin-bottom: 0; } }

/* ---------------------------------------------------------------- 最上部の帯 */
.ft-topbar a { display: block; line-height: 40px; text-align: center; color: #fff; background: #1f1f1f; font-size: 13px; font-weight: bold; letter-spacing: .04em; text-decoration: none; }
.ft-topbar a:hover { color: #ffe85c; }

/* ---------------------------------------------------------------- ヘッダー */
.site-header { border: 0; box-shadow: none; }
.site-header-container { flex-wrap: wrap; align-items: center; padding-top: 14px; }
.site-header-logo { margin: 4px 0 12px; }
.site-header-logo img { max-height: none !important; width: 300px; height: auto; }
.ft-header-side { margin-left: auto; padding: 6px 0 0; }
.ft-header-tools { font-size: 13px; }
.ft-header-tools a { color: #333; text-decoration: none; padding: 8px 14px; border: 1px solid #ddd; border-radius: 999px; }
.ft-header-tools a:hover { border-color: var(--ft-accent); color: var(--ft-accent); }
/* グローバルナビ：1行まるごとのダークバー（フラット） */
.global-nav { flex-basis: 100%; width: 100%; margin: 4px 0 0; background: #1f1f1f; border-radius: 8px; }
.global-nav .global-nav-list { width: auto; flex-wrap: wrap; }
.global-nav .global-nav-list > li > a { color: #eee; padding: 0 1.25em; line-height: 46px; font-size: 13.5px; border: 0; white-space: nowrap; border-radius: 8px; }
.global-nav .global-nav-list > li > a:hover, .global-nav .global-nav-list > li.current-menu-item > a { background: rgba(255, 255, 255, .12); color: #fff; }
.global-nav .global-nav-list > li > a::after, .global-nav .global-nav-list > li > a::before { display: none; }
.global-nav .global-nav-list > li > a .global-nav-description { display: none; }
.header_scrolled .site-header .global-nav { border-radius: 0; }

/* ---------------------------------------------------------------- パンくず */
.breadcrumb { font-size: 12px; padding: 10px 0 0; border: 0; color: #777; }
.breadcrumb .container { padding-left: 20px; padding-right: 20px; }

/* ---------------------------------------------------------------- 本文共通 */
a { color: var(--ft-link); }
.main-section h2, .entry-body h2, #cat_thum h2, .ft-examples h2, .ft-paper h2 {
	position: relative;
	margin: 36px 0 16px;
	padding: 0 0 0 14px;
	border: 0;
	border-left: 4px solid var(--ft-accent);
	background: none;
	font-size: 18px;
	line-height: 1.5;
	font-weight: bold;
	color: #222;
}
.entry-body h3 { font-size: 16px; margin: 24px 0 10px; padding: 0 0 6px; border-bottom: 1px solid var(--ft-line); font-weight: bold; }
.entry-title, .page-header .entry-title, .entry-header .entry-title {
	clear: both;
	color: #222;
	font-size: 24px;
	font-weight: bold;
	margin: 12px 0 14px;
	padding: 0 0 12px;
	border-bottom: 2px solid #eee;
	line-height: 1.45;
}
.page-header { background: none; padding: 0; margin: 0; }
.page-header .entry-title span { color: var(--ft-accent); }
.ft-count { font-size: 14px; color: #666; margin: -4px 0 16px; }
.entry-meta { display: none; }
.entry-footer { font-size: 13px; color: #777; }
.entry-body p { margin-bottom: 1.2em; }
img.alignleft { float: left; margin: 0 1.6em 1em 0; }
img.alignright { float: right; margin: 0 0 1em 1.6em; }
img[class*="wp-image-"], img[class*="align"] { border: 1px solid var(--ft-line); border-radius: 8px; padding: 6px; background: #fff; height: auto; max-width: 100%; }
@media (max-width: 650px) {
	img.alignleft, img.alignright { float: none; display: block; margin: 0 auto 1em; max-width: 70%; }
	.entry-title { font-size: 20px; }
}

/* 例文ページの表（旧 example_* クラス） */
.entry-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 14px; }
td.example_01 { padding: 8px 4px; text-align: center; font-size: 13px; font-weight: bold; color: #333; background: #f0f0f0; border: 1px solid #ddd; }
td.example_02 { padding: 8px; color: #333; background: #fff; vertical-align: middle; border: 1px solid #ddd; }
td.example_03 { padding: 8px 6px; text-align: center; color: #333; background: #fff; vertical-align: middle; border: 1px solid #ddd; white-space: nowrap; }
td.example_04 { padding: 4px 0 0; text-align: center; background: #fff; vertical-align: middle; border: 1px solid #ddd; }
td.example_04 img, .ft-examples img { border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.ft-lead-link { font-size: 14px; }
@media (max-width: 650px) { td.example_02, td.example_03 { font-size: 13px; } td.example_03 { white-space: normal; } }

/* ---------------------------------------------------------------- アーカイブのカード一覧 */
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px 12px; margin: 8px 0 24px; }
.ft-card a { display: block; border: 1px solid var(--ft-line); border-radius: 8px; overflow: hidden; background: #fff; transition: .15s; }
.ft-card img { display: block; width: 100%; height: auto; border: 0; padding: 0; border-radius: 0; }
.ft-card a:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .14); transform: translateY(-2px); }
@media (max-width: 650px) { .ft-grid { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; } }
.pagination, .nav-links { margin: 20px 0; }
.pagination .page-numbers { border-radius: 6px; }

/* ---------------------------------------------------------------- カテゴリー画像一覧（全幅） */
#cat_thum { padding: 10px 4% 36px; background: #fff; }

/* ---------------------------------------------------------------- サイドバー */
.sub-section .widget { margin-bottom: 2.4em; font-size: 14px; }
.sub-section .widget-title, .sub-section .sub-section-title, .sub-section h4 {
	color: #222;
	background: none;
	border: 0;
	border-left: 4px solid var(--ft-accent);
	font-size: 15px;
	font-weight: bold;
	line-height: 1.4;
	padding: 2px 0 2px 10px;
	margin: 0 0 10px;
	letter-spacing: 0;
}
.sub-section .widget ul { list-style: none; margin: 0; padding: 0; }
.sub-section .widget ul li { font-size: 14px; line-height: 1.6; border-top: 1px solid #f0f0f0; padding: 7px 0; }
.sub-section .widget ul li a { font-weight: bold; text-decoration: none; color: #333; }
.sub-section .widget ul li a:hover { color: var(--ft-accent); }
.sub-section .widget ul ul { margin: 6px 0 0 14px; }
.sub-section .widget ul ul li { font-size: 13px; border-top: 1px dotted #eee; padding: 4px 0; }
.sub-section .widget ul ul li a { font-weight: normal; }
.sub-section .widget ul li a::before { display: none; }
.sub-section .widget_search .search-form { display: flex; gap: 6px; }
.sub-section .widget_search input[type="search"], .sub-section .widget_search input[type="text"] { border-radius: 8px; }

/* ---------------------------------------------------------------- フッター */
.site-footer { border-top: 1px solid var(--ft-line); padding-top: 4px; }
.site-footer-copyright { background: #fafafa; color: #777; font-size: 12px; line-height: 2; padding: 1.8em 0.5em; text-align: center; }
.site-footer-copyright a { color: #555; font-weight: bold; }
.site-footer-copyright p { margin: 0; }

/* ---------------------------------------------------------------- スマホ微調整 */
@media (max-width: 991px) {
	.ft-topbar a { font-size: 12px; line-height: 44px; padding: 0 12px 0 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
	.ft-header-side { display: none; }
	.site-header-logo img { width: 200px; }
	.site-body-container { padding-left: 14px; padding-right: 14px; }
}

/* ---------------------------------------------------------------- AdSense 自動広告の保険
   自動広告は AdSense 管理画面でオフ済み（2026年10月12日）。反映までの間と、将来うっかり有効になったときのために、
   自動配置（ヘッダー内・本文内差し込み・アンカー・全画面・左右の追従・本文中のリンク広告）の器を描画しない。
   手動の枠（data-ad-slot 付きの ins）には影響しない */
.google-auto-placed,
ins.adsbygoogle-noablate,
ins.adsbygoogle[data-anchor-status],
ins.adsbygoogle[data-vignette-loaded],
ins.adsbygoogle:not([data-ad-slot]),
.site-header ins.adsbygoogle,
[class*="google-anno"],
.google-revocation-link-placeholder { display: none !important; }
