/* ==========================================================================
   corop 装飾パーツ（テスト環境用 2026-11-04）
   正本: Dropbox/わががままlabo/corop/mu-plugins/corop-deco/deco.css
   ========================================================================== */
:root {
	--deco-orange: #d79000;
	--deco-orange-soft: rgba(215, 144, 0, .22);
	--deco-balloon-maker: #eddcbc; /* 吹き出し（作り手）の地色。透過だと しっぽとの重なりが濃く見えるので不透明 */
	--deco-olive: #9d8a3c;
	--deco-beige: #dcd7c4;
	--deco-paper: #f3f2f1;
	--deco-ink: #4c4948;
	--deco-icon-bg: url(/wp-content/themes/corop/assets/images/voice/avatar-bg.svg);
}

/* --- 文字の装飾 --- */
.deco-marker { background: linear-gradient(transparent 58%, var(--deco-orange-soft) 58%); font-weight: 700; }
.deco-kagi { color: var(--deco-orange); font-weight: 700; }
.deco-kagi::before { content: "「"; }
.deco-kagi::after { content: "」"; }
.deco-orange { color: var(--deco-orange); }
.deco-orange-bold { color: var(--deco-orange); font-weight: 700; }
.deco-big { font-size: 1.25em; font-weight: 700; letter-spacing: .04em; }

/* --- 共通：ブロックの余白 --- */
.deco-point, .deco-caution, .deco-memo, .deco-catch, .deco-quote, .deco-balloon { margin: 28px 0 !important; }

/* --- 「」キャッチ（中央の大きな一文） --- */
.deco-catch {
	position: relative;
	padding: 18px 2.2em !important;
	text-align: center;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.8 !important;
	letter-spacing: .06em;
}
.deco-catch::before, .deco-catch::after {
	position: absolute;
	color: var(--deco-orange);
	font-size: 2.4em;
	line-height: 1;
}
.deco-catch::before { content: "「"; top: 0; left: 0; }
.deco-catch::after { content: "」"; bottom: 0; right: 0; }

/* --- ポイント枠（ベージュ角丸＋ラベル） --- */
.deco-point {
	position: relative;
	padding: 34px 28px 22px;
	border-radius: 20px;
	background: var(--deco-beige);
}
.deco-point::before {
	content: "POINT";
	position: absolute;
	top: -13px; left: 24px;
	padding: 2px 16px;
	border-radius: 999px;
	background: var(--deco-orange);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 22px;
}
.deco-point > :first-child { margin-top: 0; }
.deco-point > :last-child { margin-bottom: 0; }

/* --- 注意枠（オレンジ線） --- */
.deco-caution {
	position: relative;
	padding: 34px 28px 22px;
	border: 2px solid var(--deco-orange);
	border-radius: 20px;
	background: #fff;
}
.deco-caution::before {
	content: "! ご注意";
	position: absolute;
	top: -13px; left: 24px;
	padding: 2px 14px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid var(--deco-orange);
	color: var(--deco-orange);
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
}

/* --- メモ（点線） --- */
.deco-memo {
	padding: 20px 26px;
	border: 2px dashed var(--deco-olive);
	border-radius: 14px;
	background: var(--deco-paper);
}

/* --- 引用（作り手の言葉など） --- */
.deco-quote {
	position: relative;
	padding: 22px 28px 22px 64px;
	border: 0 !important;
	border-radius: 20px;
	background: #fff !important;
	color: var(--deco-ink);
}
.deco-quote::before {
	content: "\201C";
	position: absolute;
	top: 6px; left: 18px;
	color: var(--deco-olive);
	font-family: Georgia, serif;
	font-size: 56px;
	line-height: 1;
}

/* --- チェックリスト ---
   普通の段落（p）にも、箇条書き（ul）にも付けられる */
ul.deco-check { list-style: none; padding-left: 0 !important; margin: 24px 0 !important; }
ul.deco-check li, p.deco-check { position: relative; padding-left: 34px !important; margin: 8px 0 !important; }
ul.deco-check li::before, p.deco-check::before {
	content: "";
	position: absolute;
	left: 2px; top: .45em;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--deco-orange);
}
ul.deco-check li::after, p.deco-check::after {
	content: "";
	position: absolute;
	left: 9px; top: calc(.45em + 4px);
	width: 5px; height: 9px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

/* --- 吹き出し（左＝わんちゃん / 右＝作り手） --- */
.deco-balloon {
	position: relative;
	min-height: 64px;
	margin-left: 90px !important;
	padding: 16px 22px !important;
	border-radius: 18px;
	background: #fff;
	line-height: 1.9 !important;
}
.deco-balloon::before { /* アイコン */
	content: "";
	position: absolute;
	top: 0; left: -90px;
	width: 68px; height: 68px;
	border-radius: 50%;
	background: var(--deco-icon) center / 66% no-repeat, var(--deco-beige);
}
.deco-balloon::after { /* しっぽ */
	content: "";
	position: absolute;
	top: 22px; left: -12px;
	border: 8px solid transparent;
	border-right: 14px solid #fff;
	border-left: 0;
}
.deco-balloon--dog { --deco-icon: url(/wp-content/themes/corop/assets/images/voice/dog1.svg); }
.deco-balloon--maker {
	--deco-icon: url(/wp-content/themes/corop/assets/images/paw-1.svg);
	margin-left: 0 !important;
	margin-right: 90px !important;
	background: var(--deco-balloon-maker);
}
.deco-balloon--maker::before { left: auto; right: -90px; background-color: #fff; transform: rotate(180deg); /* 肉球の大きい方を下に */ }
.deco-balloon--maker::after { left: auto; right: -12px; border-right: 0; border-left: 14px solid var(--deco-balloon-maker); }

@media (max-width: 767px) {
	.deco-balloon { margin-left: 70px !important; padding: 12px 16px !important; }
	.deco-balloon::before { left: -70px; width: 54px; height: 54px; }
	.deco-balloon--maker { margin-left: 0 !important; margin-right: 70px !important; }
	.deco-balloon--maker::before { right: -70px; }
	.deco-point, .deco-caution { padding: 30px 18px 18px; }
	.deco-quote { padding: 18px 18px 18px 52px; }
}

/* エディタ内の見た目（TinyMCE） */
body.mce-content-body { background: var(--deco-paper); color: var(--deco-ink); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 15px; line-height: 2; padding: 24px 24px 24px 24px !important; }

/* ==========================================================================
   見出し1〜4（装飾欄の中だけ）
   参考: saruwakakun.com/html-css/reference/h-design
   1が一番大きい。装飾欄（.deco-area）と記事本文（.journal-body）の両方に効く
   ※本文のテーマ既定（h2=ベージュ帯 / h3=装飾なし）より強い指定で上書きしている
   ========================================================================== */
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) :is(h1, h2, h3, h4),
.mce-content-body :is(h1, h2, h3, h4) {
	position: relative;
	margin: 44px 0 20px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--deco-ink);
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.5;
}
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) :is(h1, h2, h3, h4)::before,
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) :is(h1, h2, h3, h4)::after { content: none; }

:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) > :is(h1, h2, h3, h4):first-child { margin-top: 0; }

/* 見出し1：中央・オレンジ文字＋左右の線 */
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h1,
.mce-content-body h1 {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 28px;
	color: var(--deco-orange);
	text-align: center;
}
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h1::before, :is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h1::after,
.mce-content-body h1::before, .mce-content-body h1::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--deco-olive);
	opacity: .6;
}

/* 見出し2：ベージュ地＋左にオレンジの太線・角丸 */
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h2,
.mce-content-body h2 {
	padding: 12px 20px 12px 22px;
	border-left: 6px solid var(--deco-orange);
	border-radius: 0 12px 12px 0;
	background: var(--deco-beige);
	font-size: 23px;
}

/* 見出し3：下線（左だけオレンジ＋オリーブの細線） */
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h3,
.mce-content-body h3 {
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(157, 138, 60, .35);
	font-size: 19px;
}
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h3::after,
.mce-content-body h3::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 72px; height: 2px;
	background: var(--deco-orange);
}

/* 見出し4：オレンジの丸＋文字 */
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h4,
.mce-content-body h4 {
	padding-left: 26px;
	font-size: 17px;
}
:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h4::before,
.mce-content-body h4::before {
	content: "";
	position: absolute;
	left: 2px; top: .42em;
	width: 14px; height: 14px;
	border: 3px solid var(--deco-orange);
	border-radius: 50%;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h1 { font-size: 22px; gap: 12px; }
	:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h2 { font-size: 18px; padding: 10px 14px 10px 16px; }
	:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h3 { font-size: 16.5px; }
	:is(.deco-area.deco-area.deco-area, .journal-body.corop-content.corop-content) h4 { font-size: 15.5px; }
}

/* ==========================================================================
   目次：見出し2＝太字 / 見出し3＝1段へこませて細め・少し小さく＋先頭に短い線
   ========================================================================== */
.journal-toc .journal-toc__item--h2 {
	margin-top: 6px;
	font-weight: 700;
}
.journal-toc .journal-toc__item--h2:first-child { margin-top: 0; }
.journal-toc .journal-toc__item--h3 {
	position: relative;
	padding-left: 2.4em;
	font-size: 14px;
	font-weight: 400;
	line-height: 32px;
}
.journal-toc .journal-toc__item--h3::before {
	content: "";
	position: absolute;
	left: 1em; top: 16px;
	width: .8em; height: 1px;
	background: var(--deco-olive);
}
@media (max-width: 767px) {
	.journal-toc .journal-toc__item--h3 { padding-left: 2em; font-size: 10.5px; line-height: 28px; }
	.journal-toc .journal-toc__item--h3::before { left: .8em; top: 14px; }
}
/* 目次の下線を消す（テーマ journal.css では underline 指定） */
.journal-toc .journal-toc__item a { text-decoration: none; }
