/* =============================================================
   omc-enhance.css — 一覧カードの品質向上 / 長タイトル整え /
   ページャ上品化 / 画像なし時のロゴ・アイキャッチ
   （omc-original*.css は無改変。この層で見栄えを上げる）
   ============================================================= */

/* ===== 一覧カード ===== */
#main .ttCo.omc-card {
	position: relative;
	overflow: hidden;
	background-color: #ffffff;
	border: 1px solid #e8e1ca;
	border-radius: 10px;
	padding: 16px 20px 14px;
	margin: 0 0 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: box-shadow .25s, border-color .25s, transform .25s;
}
#main .ttCo.omc-card:hover {
	border-color: #d4b75a;
	box-shadow: 0 8px 22px rgba(120,95,20,.18);
	transform: translateY(-3px);
}
/* きらめき＝斜めの光が横切るシャイン・スイープ（GIMMIC同様のロールオーバー） */
#main .ttCo.omc-card::after {
	content: "";
	position: absolute; top: 0; left: -85%;
	width: 60%; height: 100%;
	background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,251,236,.0) 38%, rgba(255,250,225,.72) 50%, rgba(255,251,236,.0) 62%, rgba(255,255,255,0) 100%);
	transform: skewX(-22deg);
	pointer-events: none; z-index: 4;
	transition: left .7s cubic-bezier(.22,1,.32,1);
}
#main .ttCo.omc-card:hover::after { left: 135%; }

/* タイトル：長くても2行で整える（はみ出し・不揃い防止）＋上品なゴールド下線 */
#main .ttCo.omc-card h3 {
	background: none !important;
	background-image: none !important;
	border-bottom: 2px solid #ecd9a6;
	margin: 0 0 10px;
	padding: 0 0 9px;
	height: auto !important;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#main .ttCo.omc-card h3 a { color: #2c2410; text-decoration: none; }
#main .ttCo.omc-card h3 a:hover { color: #b8860b; }

/* 日付 */
#main .ttCo.omc-card dl { margin: 0; }
#main .ttCo.omc-card dt { color: #b08d1c; font-size: 12px; letter-spacing: .04em; margin: 0 0 8px; font-weight: 600; }
#main .ttCo.omc-card dt .omc-date-ar { margin-left: 8px; color: #cbb98a; font-size: 11px; font-weight: 400; font-family: 'Segoe UI', Tahoma, sans-serif; }

/* サムネ（角丸・枠・統一サイズ） */
#main .ttCo.omc-card dd { margin: 0; }
#main .ttCo.omc-card .wp-post-image {
	width: 108px !important; height: 108px !important;
	object-fit: cover;
	border-radius: 8px; border: 1px solid #ece5d2;
	margin: 2px 16px 6px 0; float: left; background-color: #f7f3e6;
}

/* 本文抜粋：3行で整える */
#main .ttCo.omc-card dd > p:first-of-type {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden;
	color: #444; line-height: 1.75; margin: 0 0 10px;
}

/* 続きを読む */
#main .ttCo.omc-card dd p a {
	color: #b8860b; font-weight: 600; text-decoration: none;
}
#main .ttCo.omc-card dd p a:hover { text-decoration: underline; }

/* ===== コピーライト（焼き込み画像→実テキスト・中央の帯） ===== */
/* 帯画像(height:330px固定/min-width:1100px)を解除＝余白過多・スマホ横はみ出し解消 */
#footer { background-image: none !important; background-color: #faf9e5 !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; padding: 20px 0 22px !important; }
/* 旧CSSは .inner を1060px固定＋#ftrLnを絶対配置(右端固定)。全幅化するとデスクトップでロゴ左端/リンク右端に広がり不格好。
   → 中央寄せ(max 1080px)のflexで左にロゴ・右にリンクを上品に配置。SPは縦中央寄せ。 */
#footer .inner { position: static !important; height: auto !important; min-height: 0 !important; width: auto !important; max-width: 1080px !important; margin: 0 auto !important; padding: 0 24px !important; box-sizing: border-box !important; overflow: visible !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px 30px !important; flex-wrap: wrap !important; }
#footer #logo { float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
#footer #gaiyou { padding: 5px 0 0 !important; width: auto !important; }
#footer #box_wrapper { float: none !important; margin: 0 !important; padding: 0 !important; }
#footer #ftrLn { position: static !important; top: auto !important; right: auto !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: row-reverse !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px 10px !important; }
#footer #ftrLn li { float: none !important; margin: 0 !important; }
@media (max-width: 600px) { #footer .inner { flex-direction: column !important; justify-content: center !important; text-align: center !important; gap: 12px !important; } #footer #logo { text-align: center !important; } #footer #ftrLn { justify-content: center !important; } }

/* ===== reCAPTCHA v3 バッジ：チャットFAB(右下)との重なり回避＝左下へ退避 ===== */
/* ※reCAPTCHAはp6のみロード(functions.php)なので本指定もp6でのみ作用 */
.grecaptcha-badge { left: 10px !important; right: auto !important; bottom: 70px !important; }
#omc-copyright { background-color: #c8161d; color: #fff; text-align: center; padding: 13px 12px; font-size: 13px; letter-spacing: .05em; border-top: 4px solid #2e8b2e; margin: 0; }
@media (max-width: 767px) { #omc-copyright { font-size: 11.5px; padding: 11px 10px; margin-bottom: 60px; } }

/* ===== サイトマップ（ページ＋カテゴリ・2列） ===== */
#main .omc-sitemap { display: flex; flex-wrap: wrap; gap: 30px; margin: 6px 0 20px; }
#main .omc-sitemap-col { flex: 1 1 240px; min-width: 220px; }
#main .omc-sitemap h3 { background: none !important; background-image: none !important; height: auto !important; line-height: 1.5 !important; clear: none !important; width: auto !important; font-size: 15px; color: #2c2410; font-weight: 700; margin: 0 0 12px !important; padding: 2px 0 9px 0 !important; border-bottom: 2px solid #ecd9a6; }
#main .omc-sitemap ul { list-style: none; margin: 0; padding: 0; }
#main .omc-sitemap li { margin: 0; border-bottom: 1px solid #f0ebda; }
#main .omc-sitemap li a { display: block; padding: 9px 8px 9px 18px; color: #3a2f12; text-decoration: none; position: relative; transition: .15s; }
#main .omc-sitemap li a::before { content: "\203a"; position: absolute; left: 3px; color: #c9a227; }
#main .omc-sitemap li a:hover { background-color: #faf6e8; color: #b8860b; padding-left: 22px; }

/* ===== 一覧が空のときの案内 ===== */
#main .omc-noposts { padding: 30px 22px; color: #6b5a2a; font-size: 15px; line-height: 1.95; text-align: center; background-color: #faf7ec; border: 1px solid #ece2c4; border-radius: 10px; margin: 4px 0 16px; }

/* ===== ページャ（上品・押しやすく・気品） ===== */
#main .pagination, #main .navigation.pagination { margin: 28px 0 10px; }
#main .pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 7px; flex-wrap: wrap; }
#main .pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 13px;
	border: 1px solid #e0d6b6; border-radius: 9px;
	background-color: #fff; color: #6b5a26; font-size: 15px;
	text-decoration: none; transition: .15s ease; box-sizing: border-box;
}
#main .pagination a.page-numbers:hover {
	border-color: #c9a227; background-color: #faf6e8; color: #8a6d12;
	box-shadow: 0 2px 6px rgba(150,110,10,.12);
}
#main .pagination .page-numbers.current {
	background: linear-gradient(180deg, #cBaA3e 0%, #b8860b 100%);
	background-color: #b8860b; border-color: #a8780a;
	color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(150,110,10,.32);
}
#main .pagination .page-numbers.dots { border: 0; background: transparent; min-width: 22px; color: #c2b283; }
#main .pagination .page-numbers.prev,
#main .pagination .page-numbers.next { font-size: 19px; line-height: 1; }

/* ===== 前後記事ナビ（現代的カード） ===== */
.omc-postnav { display: flex; gap: 14px; margin: 30px 0 12px; }
.omc-postnav-link {
	flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px;
	padding: 14px 18px; text-decoration: none;
	background-color: #fff; border: 1px solid #e8e1ca; border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: box-shadow .2s, border-color .2s, transform .2s;
}
.omc-postnav-link.next { text-align: right; }
.omc-postnav-link.is-empty { background: transparent; border: 0; box-shadow: none; pointer-events: none; }
.omc-postnav-link:not(.is-empty):hover { border-color: #d4b75a; box-shadow: 0 6px 16px rgba(120,95,20,.14); transform: translateY(-2px); }
.omc-postnav-label { font-size: 12px; color: #b08d1c; font-weight: 700; letter-spacing: .04em; }
.omc-postnav-title { font-size: 14px; color: #2c2410; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.omc-postnav-link:hover .omc-postnav-title { color: #b8860b; }
@media (max-width: 767px) {
	.omc-postnav { flex-direction: column; gap: 10px; }
	.omc-postnav-link.next { text-align: left; }
	.omc-postnav-link.is-empty { display: none; }
}

/* ===== 詳細ページ：記事タイトル（折り返しても整える）＋日付 ===== */
#main h2.omc-entry-title {
	background: none !important; background-image: none !important;
	height: auto !important; min-height: 0 !important;
	line-height: 1.55 !important;
	padding: 4px 0 12px !important; margin: 0 0 6px !important;
	border-bottom: 3px solid #ecd9a6;
	font-size: 21px; color: #2c2410; font-weight: 700;
	text-wrap: balance; overflow-wrap: anywhere;
}
#main .omc-entry-date {
	color: #b08d1c; font-size: 13px; letter-spacing: .04em; font-weight: 700;
	margin: 0 0 18px !important; text-align: right; background: none !important; height: auto !important;
}
#main .omc-entry-date .omc-date-ar { color: #c9b38a; font-size: 12px; margin-left: 10px; font-family: 'Segoe UI', Tahoma, sans-serif; }
@media (max-width: 767px) { #main h2.omc-entry-title { font-size: 18px; } }

/* ===== 法的文書（利用規約・免責など）：枠に押し込まず読みやすく ===== */
/* page.phpの.aboutCo枠(幅668px/border/白背景)を、法的文書を含む場合だけ解除 */
#main .aboutCo:has(.omc-legal) { width: auto !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#main .omc-legal { line-height: 1.95; color: #333; font-size: 14.5px; max-width: 840px; margin: 6px 0 30px; }
#main .omc-legal .omc-legal-intro { margin: 0 0 28px; }
#main .omc-legal h3 {
	background: none !important; background-image: none !important;
	height: auto !important; min-height: 0 !important; line-height: 1.5 !important; clear: none !important;
	font-size: 16px; color: #2c2410; font-weight: 700; width: auto !important;
	margin: 28px 0 10px !important; padding: 2px 0 2px 13px !important;
	border-left: 4px solid #b8860b;
}
#main .omc-legal p { margin: 0 0 12px; }
#main .omc-legal .omc-legal-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid #ece6d2; color: #777; font-size: 13px; line-height: 1.8; }
@media (max-width: 767px) { #main .omc-legal { font-size: 14px; line-height: 1.85; } }

/* ===== TOPへ戻る（右下・上品なゴールド丸ボタン） ===== */
#omc-totop {
	position: fixed; right: 20px; bottom: 92px; z-index: 9200;
	width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: linear-gradient(160deg, #caa83a 0%, #a8780a 100%);
	background-color: #b8860b; color: #fff;
	box-shadow: 0 4px 12px rgba(120,90,10,.35);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .2s;
}
#omc-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#omc-totop:hover { background-color: #c79610; box-shadow: 0 6px 18px rgba(120,90,10,.48); }
#omc-totop .omc-totop-arrow { font-size: 13px; line-height: 1; }
#omc-totop .omc-totop-txt { font-size: 10px; font-weight: 700; letter-spacing: .06em; margin-top: 2px; }
@media (max-width: 991px) {
	/* スマホ/タブレット：チャットFAB(bottom:110px,60px)の上に重ならず配置 */
	#omc-totop { right: 16px; bottom: 184px; width: 46px; height: 46px; }
}

/* SP：カードの余白を詰め、サムネを少し小さく */
@media (max-width: 767px) {
	#main .ttCo.omc-card { padding: 13px 14px 11px; border-radius: 9px; }
	#main .ttCo.omc-card .wp-post-image { width: 92px !important; height: 92px !important; margin-right: 12px; }
	#main .pagination .page-numbers { min-width: 40px; height: 40px; }
}
