/* PPC 用語辞典（/yougo/）  色はホール情報に準拠：#4caf50 ／ #2e7d32 ／ #f1f8f1 */

.ppcy-page .l-mainContent__inner { background: transparent !important; padding: 0 !important; box-shadow: none !important; }
.ppcy { display: flex; flex-direction: column; gap: 16px; color: #222; }
.ppcy a { color: #3377ee; text-decoration: none; }
.ppcy a:hover { text-decoration: underline; }
.ppcy-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 16px; margin: 0; }
.ppcy-h { margin: 0 0 12px; padding: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.4; border-bottom: 2px solid #424242; background: none; color: inherit; }
.ppcy-h::before, .ppcy-h::after { content: none !important; display: none !important; }
.ppcy-empty { margin: 0; color: #666; font-size: 14px; }

/* タイトルカード */
.ppcy-hero { border-top: 3px solid #4caf50; display: flex; flex-direction: column; gap: 10px; }
.ppcy-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.ppcy .ppcy-kicker a { color: #2e7d32; }
.ppcy-title { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; }
.ppcy-term .ppcy-title { font-size: 26px; }
.ppcy-yomi { margin-left: 8px; font-size: 14px; font-weight: 400; color: #666; }
.ppcy-updated { margin: 0; font-size: 12px; color: #666; }
.ppcy-count { margin: 0; font-size: 13px; color: #666; }
.ppcy-hero__row { display: flex; flex-direction: column; gap: 10px; }

/* 検索 */
form.ppcy-search { display: flex; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; margin: 0; flex: 1; min-width: 0; }
form.ppcy-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font-size: 16px; background: #fff; color: #222; outline: none; }
form.ppcy-search button { border: 0; background: #2e7d32; color: #fff; padding: 0 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ppcy-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ppcy .ppcy-stat { display: flex; flex-direction: column; align-items: center; border-radius: 6px; padding: 6px 8px; background: #f7f7f7; color: #333; text-decoration: none; }
.ppcy .ppcy-stat--green { background: #f1f8f1; color: #2e7d32; }
.ppcy-stat__n { font-size: 26px; font-weight: 700; line-height: 1.2; }
.ppcy-stat__l { font-size: 12px; color: #555; }

/* 2列 */
.ppcy-pair { display: flex; flex-direction: column; gap: 16px; }

/* 今日の用語 */
.ppcy-today__t { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.ppcy-today__s { margin: 8px 0 12px; font-size: 15px; line-height: 1.7; }
.ppcy .ppcy-btn { display: block; text-align: center; background: #2e7d32; color: #fff; border-radius: 6px; padding: 10px 16px; font-size: 14px; font-weight: 700; }
.ppcy .ppcy-btn:hover { text-decoration: none; opacity: .9; }

/* 五十音 */
.ppcy-kana { display: flex; flex-wrap: wrap; gap: 6px; }
.ppcy-kana__i { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; padding: 6px 8px; border: 1px solid #e5e5e5; border-radius: 6px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.ppcy a.ppcy-kana__i { color: #222; }
.ppcy a.ppcy-kana__i:hover { border-color: #2e7d32; color: #2e7d32; text-decoration: none; }
.ppcy-kana__i.is-current { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.ppcy-kana__i.is-empty { color: #bbb; }
.ppcy-kana--grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ppcy-kana--grid .ppcy-kana__i { padding: 10px 0; font-size: 16px; }
.ppcy-kana--grid .ppcy-kana__i--wide { grid-column: span 2; font-size: 14px; }

/* 分類チップ */
.ppcy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ppcy .ppcy-chip { display: inline-flex; align-items: center; gap: 6px; background: #f2f2f2; color: #222; border-radius: 16px; padding: 5px 12px; font-size: 13px; line-height: 1.4; }
.ppcy .ppcy-chip:hover { background: #e8e8e8; text-decoration: none; }
.ppcy-chip__n { font-size: 11px; color: #666; }
.ppcy .ppcy-chip.is-current { background: #2e7d32; color: #fff; }
.ppcy .ppcy-chip--green { background: #f1f8f1; color: #2e7d32; }
.ppcy-chips--sm .ppcy-chip { padding: 2px 10px; font-size: 12px; }

/* 用語のリスト */
.ppcy-list, .ppcy-recent, .ppcy-rank, .ppcy-related, .ppcy-arts, .ppcy-compact, .ppcy-machines { list-style: none; margin: 0; padding: 0; }
.ppcy-list__i a, .ppcy-recent a { display: block; padding: 8px 0; border-bottom: 1px solid #eee; color: #222; }
.ppcy-list__i:last-child a, .ppcy-recent li:last-child a { border-bottom: 0; }
.ppcy .ppcy-list__i a:hover b, .ppcy .ppcy-recent a:hover b { color: #3377ee; }
.ppcy .ppcy-list__i a:hover, .ppcy .ppcy-recent a:hover { text-decoration: none; }
.ppcy-list__t { font-size: 16px; }
.ppcy-list__y { margin-left: 8px; font-size: 12px; color: #666; font-weight: 400; }
.ppcy-list__s { display: block; margin-top: 2px; font-size: 13px; line-height: 1.6; color: #666; }
.ppcy-label { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px; background: #2e7d32; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.ppcy-label--upd { background: #555; }
.ppcy .ppcy-more { display: block; margin-top: 12px; padding: 10px; border: 1px solid #e5e5e5; border-radius: 6px; text-align: center; font-size: 14px; font-weight: 700; }
.ppcy-rank a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; color: #222; }
.ppcy-rank li:last-child a { border-bottom: 0; }
.ppcy-rank__b { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; background: #888; }
.ppcy-rank__b--1 { background: linear-gradient(135deg, #f7d774, #d4a017, #b8860b); }
.ppcy-rank__b--2 { background: linear-gradient(135deg, #e6e6e6, #b0b0b0, #8c8c8c); }
.ppcy-rank__b--3 { background: linear-gradient(135deg, #e0a36b, #b87333, #8c5523); }
.ppcy-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 15px; }

/* 用語ページ：本文 */
.ppcy-body { padding: 16px; }
.ppcy-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: 16px; line-height: 1.8; }
.ppcy-lead p, .ppcy-content p { margin: 0 0 1em; }
.ppcy-lead p:last-child { margin-bottom: 0; }
.ppcy-content > :last-child { margin-bottom: 0; }
.ppcy-content h2 { margin: 1.4em 0 .7em; padding: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.4; border: 0; border-bottom: 2px solid #424242; background: none; color: inherit; scroll-margin-top: 80px; }
.ppcy-content h2:first-child { margin-top: 0; }
.ppcy-content h2::before, .ppcy-content h2::after { content: none !important; display: none !important; }
.ppcy-content h3 { margin: 1.2em 0 .5em; padding: 0; font-size: 16px; font-weight: 700; border: 0; background: none; }
.ppcy-content h3::before, .ppcy-content h3::after { content: none !important; display: none !important; }
.ppcy-content ul, .ppcy-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.ppcy-content ul.ppcy-ex { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ppcy-content ul.ppcy-ex li { border-left: 3px solid #e5e5e5; padding-left: 12px; line-height: 1.7; }
.ppcy-content ul.ppcy-ex li::before { content: "名無しさん＠ドル箱いっぱい"; display: block; font-size: 12px; font-weight: 700; color: #009900; }

/* 情報ボックス */
.ppcy-box { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; border: 1px solid #eee; margin: 0; }
.ppcy-box caption { caption-side: top; background: #2e7d32; color: #fff; font-weight: 700; font-size: 16px; padding: 8px; text-align: center; }
.ppcy-box th, .ppcy-box td { border: 1px solid #eee; padding: 7px 10px; text-align: left; vertical-align: top; background: none; }
.ppcy-box th { width: 34%; background: #f7f7f7; font-weight: 700; white-space: nowrap; }

/* 目次 */
.ppcy-toc { background: #f7f7f7; border: 1px solid #e5e5e5; border-radius: 6px; padding: 10px 16px; font-size: 14px; justify-self: start; min-width: 200px; }
.ppcy-toc__t { margin: 0 0 4px; font-weight: 700; }
.ppcy-toc ol { margin: 0; padding-left: 1.4em; }
.ppcy-toc li { margin: 2px 0; }

/* 関連項目・記事・機種 */
.ppcy-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 15px; }
.ppcy-related li::before { content: "・"; color: #999; }
.ppcy-arts li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; line-height: 1.6; }
.ppcy-arts li:last-child { border-bottom: 0; }
.ppcy-arts__d { display: block; font-size: 12px; color: #888; }
.ppcy-machines li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #eee; }
.ppcy-machines li:last-child { border-bottom: 0; }
.ppcy-badge { flex-shrink: 0; padding: 1px 6px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 700; background: #00bcd4; }
.ppcy-badge--slot { background: #ff9800; }

/* 分類の帯・前後の用語 */
.ppcy-catbar { background: #f7f7f7; border: 1px solid #e5e5e5; border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.ppcy-catbar__sep { color: #999; margin: 0 2px; }
.ppcy-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ppcy .ppcy-pn__a { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 10px 12px; font-size: 13px; color: #222; }
.ppcy .ppcy-pn__a:hover { text-decoration: none; border-color: #2e7d32; }
.ppcy-pn__a b { color: #3377ee; font-size: 15px; }
.ppcy-pn__next { text-align: right; }
.ppcy-pn__a.is-empty { visibility: hidden; }
.ppcy-kana--inline { grid-column: 1 / -1; order: 3; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ppcy-kana--inline .ppcy-kana__i { min-width: 0; padding: 6px 0; font-size: 14px; }
.ppcy-kana--inline .ppcy-kana__i--wide { font-size: 12px; }

/* 広告 */
.ppcy-ad { padding: 12px; }
.ppcy-ad .ad-box { margin: 0; }

@media (min-width: 600px) {
	.ppcy-article { grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "lead box" "toc box" "content box"; column-gap: 24px; align-items: start; }
	.ppcy-lead { grid-area: lead; }
	.ppcy-boxwrap { grid-area: box; grid-row: 1 / span 3; }
	.ppcy-toc { grid-area: toc; }
	.ppcy-content { grid-area: content; }
	.ppcy-article:not(:has(.ppcy-toc)) { grid-template-areas: "lead box" "content box"; }
	.ppcy-article:not(:has(.ppcy-toc)) .ppcy-boxwrap { grid-row: 1 / span 2; }
	.ppcy-hero__term { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
	.ppcy-updated { white-space: nowrap; }
	.ppcy-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
	.ppcy-pair > :only-child { grid-column: 1 / -1; }
	.ppcy-hero__row { flex-direction: row; align-items: stretch; gap: 16px; }
	.ppcy-stats { display: flex; gap: 12px; }
	.ppcy .ppcy-stat { padding: 4px 18px; justify-content: center; }
	.ppcy-stat__n { font-size: 30px; }
	.ppcy .ppcy-btn { display: inline-block; }
	.ppcy-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ppcy-pn { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
	.ppcy-kana--inline { grid-column: auto; order: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; padding: 6px 8px; }
	.ppcy-kana--inline .ppcy-kana__i { border: 0; padding: 4px 6px; min-width: 0; }
}

@media (min-width: 960px) {
	.ppcy { gap: 24px; }
	.ppcy-pair { gap: 24px; }
	.ppcy-card { padding: 20px; }
	.ppcy-body { padding: 24px 28px; }
	.ppcy-h { font-size: 20px; }
	.ppcy-content h2 { font-size: 20px; }
	.ppcy-title { font-size: 28px; }
	.ppcy-term .ppcy-title { font-size: 32px; }
	.ppcy-yomi { font-size: 16px; }
	.ppcy-article { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 28px; }
	.ppcy-stat__n { font-size: 34px; }
	.ppcy-stat__l { font-size: 14px; }
}

/* ダークモード（D0 の変数） */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .-frame-on.ppcy-page .l-mainContent__inner,
	:root:not([data-theme="light"]) .ppcy-page .l-mainContent__inner { background-color: transparent !important; }
	:root:not([data-theme="light"]) .ppcy { color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy a { color: var(--dk-blue); }
	:root:not([data-theme="light"]) .ppcy-card,
	:root:not([data-theme="light"]) .ppcy .ppcy-pn__a,
	:root:not([data-theme="light"]) .ppcy-kana--inline { background: var(--dk-card); border-color: var(--dk-border); }
	:root:not([data-theme="light"]) .ppcy-hero { border-top-color: var(--dk-green); }
	:root:not([data-theme="light"]) .ppcy-h,
	:root:not([data-theme="light"]) .ppcy-content h2 { border-bottom-color: var(--dk-hover); }
	:root:not([data-theme="light"]) .ppcy .ppcy-kicker a { color: var(--dk-green); }
	:root:not([data-theme="light"]) .ppcy-yomi,
	:root:not([data-theme="light"]) .ppcy-updated,
	:root:not([data-theme="light"]) .ppcy-count,
	:root:not([data-theme="light"]) .ppcy-empty,
	:root:not([data-theme="light"]) .ppcy-list__y,
	:root:not([data-theme="light"]) .ppcy-list__s,
	:root:not([data-theme="light"]) .ppcy-stat__l,
	:root:not([data-theme="light"]) .ppcy-chip__n,
	:root:not([data-theme="light"]) .ppcy-arts__d { color: var(--dk-sub); }
	:root:not([data-theme="light"]) form.ppcy-search { border-color: var(--dk-border); }
	:root:not([data-theme="light"]) form.ppcy-search input { background: var(--dk-input); color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy .ppcy-stat { background: var(--dk-input); color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy .ppcy-stat--green { color: var(--dk-green); }
	:root:not([data-theme="light"]) .ppcy-kana__i { border-color: var(--dk-border); }
	:root:not([data-theme="light"]) .ppcy a.ppcy-kana__i { color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy-kana__i.is-empty { color: var(--dk-icon); }
	:root:not([data-theme="light"]) .ppcy-kana__i.is-current { color: #fff; }
	:root:not([data-theme="light"]) .ppcy .ppcy-chip { background: var(--dk-chip); color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy .ppcy-chip--green { color: var(--dk-green); }
	:root:not([data-theme="light"]) .ppcy .ppcy-chip.is-current { background: #2e7d32; color: #fff; }
	:root:not([data-theme="light"]) .ppcy-list__i a,
	:root:not([data-theme="light"]) .ppcy-recent a,
	:root:not([data-theme="light"]) .ppcy-rank a,
	:root:not([data-theme="light"]) .ppcy-arts li,
	:root:not([data-theme="light"]) .ppcy-machines li { border-bottom-color: var(--dk-border); color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy .ppcy-list__i a:hover b,
	:root:not([data-theme="light"]) .ppcy .ppcy-recent a:hover b,
	:root:not([data-theme="light"]) .ppcy-pn__a b { color: var(--dk-blue); }
	:root:not([data-theme="light"]) .ppcy .ppcy-pn__a { color: var(--dk-text); }
	:root:not([data-theme="light"]) .ppcy .ppcy-more { border-color: var(--dk-border); }
	:root:not([data-theme="light"]) .ppcy-box,
	:root:not([data-theme="light"]) .ppcy-box th,
	:root:not([data-theme="light"]) .ppcy-box td { border-color: var(--dk-border); }
	:root:not([data-theme="light"]) .ppcy-box th { background: var(--dk-input); }
	:root:not([data-theme="light"]) .ppcy-toc,
	:root:not([data-theme="light"]) .ppcy-catbar { background: var(--dk-input); border-color: var(--dk-border); }
	:root:not([data-theme="light"]) .ppcy-content ul.ppcy-ex li { border-left-color: var(--dk-border); }
	:root:not([data-theme="light"]) .ppcy-content ul.ppcy-ex li::before { color: #4fd34f; }
}
