/* =========================================================================
   記事の本文（表示画面とブロックエディタの両方に効く）
   本文 17px・行間 1.9（読み手は保護者。年配の方も読みやすく）
   ====================================================================== */

:where(.entry, .editor-styles-wrapper) {
	--yd-yellow: #F9BD00;
	--yd-yellow-pale: #FFF0BF;
	--yd-brown: #5C4535;
	--yd-text: #3D3229;
	--yd-sub: #6E5A4B;
	--yd-en: #7A6656;
	--yd-line: #EADFCC;
	--yd-hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.9;
	color: var(--yd-text);
}
.editor-styles-wrapper { background: #FFFCF4; }

/* 段落どうしのすき間（モックアップの gap:20px） */
.entry { display: flow-root; }
.entry > * { margin-top: 0; margin-bottom: 0; }
.entry > * + * { margin-top: 20px; }
:where(.entry, .editor-styles-wrapper) p { margin-top: 0; }

/* ---- 小見出し（六角形つき） ---- */
:where(.entry, .editor-styles-wrapper) h3 {
	font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: 20px; line-height: 1.5;
	color: var(--yd-brown); display: flex; align-items: center; gap: 10px;
}
:where(.entry, .editor-styles-wrapper) h3::before {
	content: ""; width: 22px; height: 18px; flex-shrink: 0; background: var(--yd-yellow); clip-path: var(--yd-hex);
}
:where(.entry, .editor-styles-wrapper) h2 {
	font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: 24px; line-height: 1.4; color: var(--yd-brown);
}
.entry > h2, .entry > h3 { margin-top: 32px; }

/* ---- 人物見出し（グループのスタイル「人物見出し」） ---- */
.is-style-dayori-person {
	display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
	padding-top: 32px;
}
.entry > .is-style-dayori-person:first-child { margin-top: 0; }
.is-style-dayori-person > * { margin: 0 !important; }
.is-style-dayori-person > p:first-child {
	background: var(--yd-yellow); color: var(--yd-text); font-size: 13px; font-weight: 700; line-height: 1.7;
	padding: 3px 18px;
	clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.is-style-dayori-person > h2 { font-size: 28px; line-height: 1.35; }
.is-style-dayori-person > p:last-child:not(:first-child) { font-size: 14px; color: var(--yd-sub); line-height: 1.7; }

/* ---- 写真（画像のスタイル「黄色の枠」） ---- */
.wp-block-image.is-style-dayori-frame { text-align: center; }
.wp-block-image.is-style-dayori-frame img {
	width: 240px; max-width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: top;
	border-radius: 20px; border: 4px solid var(--yd-yellow); background: #FFF8E1;
}
.wp-block-image.is-style-dayori-frame figcaption { font-size: 14px; color: var(--yd-sub); text-align: center; margin-top: 6px; }
.entry .wp-block-image img { border-radius: 14px; }

/* ---- ことば（引用ブロック） ---- */
:where(.entry, .editor-styles-wrapper) .wp-block-quote {
	margin-left: 0; margin-right: 0;
	background: var(--yd-yellow-pale); border: none; border-radius: 20px; padding: 20px;
	font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.85; letter-spacing: .04em;
	color: var(--yd-brown); text-align: center; quotes: none;
	word-break: keep-all; overflow-wrap: anywhere; /* 太字でつぶれないよう少し細く、行は「、」で折る */
}
:where(.entry, .editor-styles-wrapper) .wp-block-quote p { margin: 0; }
:where(.entry, .editor-styles-wrapper) .wp-block-quote p + p { margin-top: 8px; }
:where(.entry, .editor-styles-wrapper) .wp-block-quote cite {
	display: block; margin-top: 8px; font-family: "Zen Maru Gothic", sans-serif; font-weight: 400; font-size: 14px; font-style: normal; color: var(--yd-sub);
}

/* ---- 次の目標（グループのスタイル「次の目標」） ---- */
.is-style-dayori-goal {
	border: 2px solid var(--yd-yellow); background: #fff; border-radius: 18px; padding: 16px 18px;
	font-size: 16px; line-height: 1.8; display: flex; flex-direction: column; gap: 4px;
}
.is-style-dayori-goal > * { margin: 0 !important; }
.is-style-dayori-goal::before {
	content: "next goal"; font-family: Quicksand, "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 12px; color: var(--yd-en); line-height: 1.5;
}
.is-style-dayori-goal > p:first-child { font-weight: 700; color: var(--yd-brown); }

/* ---- 白い枠（グループのスタイル「白い枠」） ---- */
.is-style-dayori-box { background: #fff; border: 1px solid var(--yd-line); border-radius: 18px; padding: 18px 20px; }
.is-style-dayori-box > * { margin-top: 0; margin-bottom: 0; }
.is-style-dayori-box > * + * { margin-top: 12px; }

/* ---- 区切り線は足あと ---- */
:where(.entry, .editor-styles-wrapper) hr.wp-block-separator {
	border: none; height: 34px; width: 170px; max-width: 100%; margin: 32px auto 0;
	background: var(--yd-steps, none) center / contain no-repeat; opacity: .65;
}
.entry > hr.wp-block-separator + * { margin-top: 0; }

/* ---- 表（合格者など） ---- */
:where(.entry, .editor-styles-wrapper) .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; background: #fff; }
:where(.entry, .editor-styles-wrapper) .wp-block-table :is(th, td) { border: 1px solid var(--yd-line); padding: 8px 10px; text-align: left; }
:where(.entry, .editor-styles-wrapper) .wp-block-table thead { border-bottom: none; }
:where(.entry, .editor-styles-wrapper) .wp-block-table th { background: var(--yd-yellow-pale); color: var(--yd-brown); font-weight: 700; }
.wp-block-table.is-style-dayori-table { overflow-x: auto; }

/* ---- リスト・リンク ---- */
:where(.entry, .editor-styles-wrapper) :is(ul, ol):not(.yd-schedule__list) { padding-left: 1.4em; }
:where(.entry, .editor-styles-wrapper) li + li { margin-top: 4px; }
:where(.entry, .editor-styles-wrapper) a { color: var(--yd-brown); }
:where(.entry, .editor-styles-wrapper) strong { color: inherit; }

/* ---- ボタン ---- */
:where(.entry, .editor-styles-wrapper) .wp-block-button__link {
	background: var(--yd-yellow); color: var(--yd-text); border-radius: 14px; font-weight: 700; min-height: 48px;
	display: inline-flex; align-items: center; justify-content: center; padding: 8px 24px;
}

/* ---- 文字の位置 ---- */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ---- エディタだけの調整 ---- */
.editor-styles-wrapper .wp-block-post-title { font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; color: var(--yd-brown); }

/* 表の1列目（級・段・順位など）は折り返さない */
:where(.entry, .editor-styles-wrapper) .wp-block-table :is(th, td):first-child { white-space: nowrap; width: 1%; }
:where(.entry, .editor-styles-wrapper) .wp-block-table td { vertical-align: top; }
.yd-nb { white-space: nowrap; }

/* =========================================================================
   かわいさ（本文）
   ====================================================================== */

/* 小見出しの下に、珠の色の点線 */
.entry h3 { padding-bottom: 6px; border-bottom: 3px dotted var(--yd-yellow); }

/* 表：角をまるく、行を交互に色分け */
:where(.entry, .editor-styles-wrapper) .wp-block-table table {
	border-collapse: separate; border-spacing: 0; border: 2px solid var(--yd-line); border-radius: 18px; overflow: hidden;
}
:where(.entry, .editor-styles-wrapper) .wp-block-table :is(th, td) { border: none; border-bottom: 1px dashed var(--yd-line); }
:where(.entry, .editor-styles-wrapper) .wp-block-table tbody tr:last-child td { border-bottom: none; }
:where(.entry, .editor-styles-wrapper) .wp-block-table tbody tr:nth-child(even) td { background: #FFFBEF; }
:where(.entry, .editor-styles-wrapper) .wp-block-table th { background: var(--yd-yellow); color: var(--yd-text); font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }
:where(.entry, .editor-styles-wrapper) .wp-block-table td:first-child { font-weight: 700; color: var(--yd-brown); }

/* ことば：左右に小さな珠 */
:where(.entry, .editor-styles-wrapper) .wp-block-quote { position: relative; padding: 22px 34px; }
:where(.entry, .editor-styles-wrapper) .wp-block-quote::before,
:where(.entry, .editor-styles-wrapper) .wp-block-quote::after {
	content: ""; position: absolute; width: 18px; height: 12px; background: var(--yd-yellow); clip-path: var(--yd-hex);
}
:where(.entry, .editor-styles-wrapper) .wp-block-quote::before { left: 12px; top: 14px; }
:where(.entry, .editor-styles-wrapper) .wp-block-quote::after { right: 12px; bottom: 14px; }

/* 次の目標・白い枠：ふっくら */
.is-style-dayori-goal { border-radius: 22px; box-shadow: 0 3px 0 #F3D97A; }
.is-style-dayori-goal::before { display: flex; align-items: center; gap: 6px; }
.is-style-dayori-box { border-radius: 22px; box-shadow: 0 3px 0 var(--yd-line); }

/* メリハリ：表の見出しはこげ茶に白い文字（黄色は記事の冒頭だけにする） */
:where(.entry, .editor-styles-wrapper) .wp-block-table th { background: #5C4535; color: #fff; }
:where(.entry, .editor-styles-wrapper) .wp-block-table table { border-color: #E3D6BF; }
/* 小見出しの点線は細く、こげ茶の文字を主役に */
.entry h3 { border-bottom-width: 2px; }

/* 表の数字：1列目（順位・級）と3列目以降（合計・全国順位）は中央、名前の列（2列目）は左。数字の幅もそろえる */
:where(.entry, .editor-styles-wrapper) .wp-block-table :is(th, td):is(:first-child, :nth-child(n+3)) { text-align: center; }
:where(.entry, .editor-styles-wrapper) .wp-block-table :is(th, td):nth-child(2) { text-align: left; }
:where(.entry, .editor-styles-wrapper) .wp-block-table td { font-variant-numeric: tabular-nums; }
:where(.entry, .editor-styles-wrapper) .wp-block-table td:first-child { padding-left: 12px; padding-right: 12px; }
.entry :is(h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }

/* 表の中の「部」の見出し行（2列目が空の行）は、左寄せで淡い色に */
:where(.entry, .editor-styles-wrapper) .wp-block-table tr:has(td:last-child:empty) td { background: #FFF3CF; }
:where(.entry, .editor-styles-wrapper) .wp-block-table tr:has(td:last-child:empty) td:first-child { text-align: left; white-space: nowrap; }
/* 1列目が種目名などの文字の表は、左寄せ */
:where(.entry, .editor-styles-wrapper) .wp-block-table.yd-table-text :is(th, td):first-child { text-align: left; white-space: normal; width: auto; }

/* =========================================================================
   紙面の雰囲気に合わせる（記事の種類ごと）
   ====================================================================== */

/* 検定合格者：表の見出しの色を紙面と同じに（1つ目＝珠算 えんじ、2つ目＝暗算 紺、3つ目＝フラッシュ暗算 青緑） */
.yd-kind-check .entry figure.wp-block-table:nth-of-type(1) th { background: #8E2F63; }
.yd-kind-check .entry figure.wp-block-table:nth-of-type(2) th { background: #2C5A7E; }
.yd-kind-check .entry figure.wp-block-table:nth-of-type(3) th { background: #137171; }

/* 大会の記事：見出しは紙面と同じ紺のリボン、優勝・準優勝などは赤い字 */
.yd-kind-trophy .entry > h3 {
	background: #1F3A5F; color: #fff; padding: 8px 26px 8px 16px; border-bottom: none; width: fit-content; max-width: 100%;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
	font-size: 18px; line-height: 1.45;
}
.yd-kind-trophy .entry > h3::before { background: var(--yd-yellow); width: 18px; height: 14px; }
.yd-kind-trophy .entry :is(p, td) strong { color: #C62828; }
.yd-kind-trophy .entry tr:has(td:last-child:empty) td strong,
.yd-kind-trophy .entry .is-style-dayori-box strong { color: inherit; }

/* 記事の小見出し：紙面のような、季節の色のリボン（大会の記事は紺のまま） */
.yd-article:not(.yd-kind-trophy) .entry > h3 {
	background: linear-gradient(90deg, var(--season-accent, #5C4535), color-mix(in srgb, var(--season-accent, #5C4535) 82%, #000));
	color: #fff; padding: 8px 30px 8px 14px; border-bottom: none; width: fit-content; max-width: 100%;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
	font-size: 18px; line-height: 1.45; border-radius: 6px 0 0 6px;
}
.yd-article:not(.yd-kind-trophy) .entry > h3::before { background: #fff; width: 16px; height: 12px; }

/* =========================================================================
   見出しつきの枠（紙面の七夕のページのような、二重線の枠と、上のまん中の見出しの札）
   グループのスタイル「見出しつきの枠（紺）」「見出しつきの枠（青緑）」。最初の小見出しが札になる
   ====================================================================== */
.is-style-dayori-waku, .is-style-dayori-waku-teal {
	--waku: #22336B;
	position: relative; margin-top: 40px !important; padding: 30px 14px 16px; background: #fff;
	border: 4px double var(--waku); border-radius: 3px;
}
.is-style-dayori-waku-teal { --waku: #1C7C78; }
/* 四すみの切り欠き（紙面の枠のかど） */
.is-style-dayori-waku::before, .is-style-dayori-waku-teal::before,
.is-style-dayori-waku::after, .is-style-dayori-waku-teal::after {
	content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--waku); background: #fff; top: -9px;
}
.is-style-dayori-waku::before, .is-style-dayori-waku-teal::before { left: -9px; border-radius: 0 0 12px 0; border-top: none; border-left: none; }
.is-style-dayori-waku::after, .is-style-dayori-waku-teal::after { right: -9px; border-radius: 0 0 0 12px; border-top: none; border-right: none; }
.is-style-dayori-waku > *, .is-style-dayori-waku-teal > * { margin-top: 0; margin-bottom: 0; }
.is-style-dayori-waku > * + *, .is-style-dayori-waku-teal > * + * { margin-top: 14px; }
.entry .is-style-dayori-waku > h3:first-child, .entry .is-style-dayori-waku-teal > h3:first-child,
.editor-styles-wrapper .is-style-dayori-waku > h3:first-child, .editor-styles-wrapper .is-style-dayori-waku-teal > h3:first-child {
	position: absolute; top: 0; left: 50%; transform: translate(-50%, -60%); margin: 0;
	background: var(--waku); color: #fff; font-family: "Shippori Mincho B1", "Zen Maru Gothic", serif; font-weight: 800;
	font-size: 17px; line-height: 1.5; padding: 3px 20px; white-space: nowrap; width: auto; border: none; border-radius: 0;
	clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
	box-shadow: none;
}
.entry .is-style-dayori-waku > h3:first-child::before, .entry .is-style-dayori-waku-teal > h3:first-child::before { display: none; }
.is-style-dayori-waku .wp-block-table table, .is-style-dayori-waku-teal .wp-block-table table { border: none; border-radius: 0; }
.is-style-dayori-waku .wp-block-table th { background: #22336B; }
.is-style-dayori-waku-teal .wp-block-table th { background: #1C7C78; }

/* 季節の色のリボン見出し：白い字がつぶれないよう、地は単色・字は少し細く大きく・字間をあける */
.yd-article:not(.yd-kind-trophy) .entry > h3 {
	background: var(--season-accent, #5C4535);
	font-weight: 700; font-size: 18px; letter-spacing: .04em; line-height: 1.55;
	padding: 9px 32px 9px 14px;
	-webkit-font-smoothing: antialiased;
}

/* 見出しつきの枠の中の成績表：色を枠の色（紺・青緑）にそろえ、名前も中央に */
.is-style-dayori-waku { --waku-pale: #E8EBF4; --waku-zebra: #F6F7FB; }
.is-style-dayori-waku-teal { --waku-pale: #E2F1F0; --waku-zebra: #F4FAF9; }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table :is(th, td) { text-align: center !important; }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table td { border-bottom-color: var(--waku-pale); }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table tbody tr:nth-child(even) td { background: var(--waku-zebra); }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table tbody tr td { background: #fff; }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table tr:has(td:last-child:empty) td {
	background: var(--waku-pale) !important; color: var(--waku); text-align: center !important;
}
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table td:first-child { color: var(--waku); }
.yd-kind-trophy :where(.is-style-dayori-waku, .is-style-dayori-waku-teal) td strong { color: #B3261E; }

/* 「部」の見出し行（行全体にまたがるセル） */
:where(.entry, .editor-styles-wrapper) .wp-block-table td[colspan] {
	background: #FFF3CF; font-weight: 700; color: var(--yd-brown); text-align: center !important; white-space: normal; width: auto;
}
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table td[colspan] { background: var(--waku-pale) !important; color: var(--waku); }
:where(.entry, .editor-styles-wrapper) .wp-block-table td[colspan] strong { color: inherit !important; }

/* 見出しつきの枠の中の成績表：まん中の線を軸に「順位｜名前」を左右にそろえ、部の行もまん中に（左右対称に） */
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table table { table-layout: fixed; width: 100%; }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table :is(th, td):first-child:not([colspan]) {
	width: 38%; text-align: right !important; padding-right: 12px; white-space: nowrap;
}
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table :is(th, td):last-child:not([colspan]) {
	text-align: left !important; padding-left: 12px; border-left: 2px solid var(--waku-pale);
}
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table th:last-child { border-left-color: rgba(255,255,255,.35); }
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) .wp-block-table td[colspan] { padding-top: 6px; padding-bottom: 6px; letter-spacing: .04em; }
/* 枠の見出しの札のすぐ下の、余分なすき間をなくす */
:where(.is-style-dayori-waku, .is-style-dayori-waku-teal) > h3:first-child + * { margin-top: 0 !important; }

/* 大会の記事の成績表（枠の外）：紙面の大会ページの青にそろえ、順位と名前をまん中の線でそろえる */
.yd-kind-trophy .entry > figure.wp-block-table { --waku: #1F5F8B; --waku-pale: #E4EFF7; --waku-zebra: #F5F9FC; }
.yd-kind-trophy .entry > figure.wp-block-table table { table-layout: fixed; width: 100%; border-color: #C9DCEB; }
.yd-kind-trophy .entry > figure.wp-block-table th { background: var(--waku); }
.yd-kind-trophy .entry > figure.wp-block-table td { background: #fff; border-bottom-color: var(--waku-pale); }
.yd-kind-trophy .entry > figure.wp-block-table tbody tr:nth-child(even) td { background: var(--waku-zebra); }
.yd-kind-trophy .entry > figure.wp-block-table td[colspan] { background: var(--waku-pale) !important; color: var(--waku); }
.yd-kind-trophy .entry > figure.wp-block-table :is(th, td):first-child:not([colspan]) { width: 38%; text-align: right !important; padding-right: 12px; color: var(--waku); white-space: nowrap; }
.yd-kind-trophy .entry > figure.wp-block-table th:first-child { color: #fff !important; }
.yd-kind-trophy .entry > figure.wp-block-table :is(th, td):last-child:not([colspan]) { text-align: left !important; padding-left: 12px; border-left: 2px solid var(--waku-pale); }
/* 種目名が1列目の表（FaST の大会成績など）は、種目を左、成績を右に */
.yd-kind-trophy .entry > figure.wp-block-table.yd-table-text :is(th, td):first-child:not([colspan]) { width: auto; text-align: left !important; padding-left: 12px; white-space: normal; color: var(--yd-text); }
.yd-kind-trophy .entry > figure.wp-block-table.yd-table-text :is(th, td):last-child:not([colspan]) { width: 30%; text-align: center !important; }

/* =========================================================================
   4・5. 見出しの形をそろえる
   大会の記事：紙面のリボンと同じ「紺の帯＋金の線＋両はしに金の月桂樹」。文字なので、どの画面でもくっきり
   ====================================================================== */
.yd-kind-trophy .entry > h3 {
	--ribbon: #1C2A5A;
	position: relative; display: block; width: auto; margin-left: 0; margin-right: 0;
	background: var(--ribbon); color: #fff; clip-path: none; border-radius: 0;
	padding: 10px 44px; text-align: center; font-size: 18px; line-height: 1.45; letter-spacing: .04em;
	box-shadow: inset 0 3px 0 var(--ribbon), inset 0 4px 0 #D9B45A, inset 0 -3px 0 var(--ribbon), inset 0 -4px 0 #D9B45A;
}
.yd-kind-trophy .entry h3::before,
.yd-kind-trophy .entry > h3::after {
	content: ""; position: absolute; top: 50%; width: 22px; height: 30px; margin-top: -15px;
	background: url("../img/laurel.png") center / contain no-repeat; clip-path: none;
}
.yd-kind-trophy .entry > h3::before { left: 12px; }
.yd-kind-trophy .entry > h3::after { right: 12px; transform: scaleX(-1); }
/* 全沖縄の記事は、紙面の青いリボンに合わせる */
.yd-kind-trophy:has(img[src*="oki-"]) .entry > h3 { --ribbon: #1D6A8A; }

/* 大会の記事の中の枠（出場選手など）は、白地に紺の線（クリーム色をやめる） */
.yd-kind-trophy .is-style-dayori-box { background: #fff; border: 2px solid #C9D3E6; box-shadow: none; }
.yd-kind-trophy .is-style-dayori-box strong { color: #B3261E; }

/* ふつうの記事の表（アバカスサーキットなど）は、見出しの帯と同じ季節の色に */
.yd-article:not(.yd-kind-trophy):not(.yd-kind-check) .entry > figure.wp-block-table th { background: var(--season-accent, #5C4535); }
.yd-article:not(.yd-kind-trophy):not(.yd-kind-check) .entry > figure.wp-block-table td:first-child { color: var(--season-accent, #5C4535); }
.yd-kind-trophy .entry > h3 { border: none; }
.yd-kind-trophy .entry > h3 { padding: 10px 38px; font-size: 17px; word-break: keep-all; overflow-wrap: anywhere; }
.yd-kind-trophy .entry > h3::before { left: 9px; }
.yd-kind-trophy .entry > h3::after { right: 9px; }

/* =========================================================================
   大会ごとの小見出し（記事の設定「小見出しの形」で選ぶ）。大会の記事でも、選ばなければ季節の色の帯
   ====================================================================== */
.yd-kind-trophy:not([class*="yd-hs-"]) .entry > h3 {
	background: var(--season-accent, #5C4535); box-shadow: none; text-align: left; padding: 9px 32px 9px 14px;
	width: fit-content; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
}
.yd-kind-trophy:not([class*="yd-hs-"]) .entry > h3::before { position: static; display: inline-block; margin: 0 8px 0 0; width: 16px; height: 12px; background: #fff; clip-path: var(--yd-hex); vertical-align: 1px; }
.yd-kind-trophy:not([class*="yd-hs-"]) .entry > h3::after { display: none; }

/* 紺と金の月桂樹（九州大会）：いまの形 */

/* 金とオレンジの帯（FaST大会）：クリーム地にオレンジのふち、両はしが切れこんだ旗、紺の字 */
.yd-hs-gold .entry > h3 {
	background: linear-gradient(180deg, #FFF6DA, #FCE7A8); color: #1C2A5A; box-shadow: none;
	border: 2px solid #E39A2B; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
	padding: 9px 30px; font-family: "Shippori Mincho B1", "Zen Maru Gothic", serif; font-weight: 800;
}
.yd-hs-gold .entry > h3::before, .yd-hs-gold .entry > h3::after { width: 18px; height: 24px; margin-top: -12px; filter: hue-rotate(-15deg) saturate(1.3); }
.yd-hs-gold .entry > h3::before { left: 16px; }
.yd-hs-gold .entry > h3::after { right: 16px; }

/* 青緑の帯と黄色い葉（全沖縄大会）：左寄せ、左に葉、右上の角を丸く */
.yd-hs-sea .entry > h3 {
	background: linear-gradient(90deg, #12607F, #1F7C9C); box-shadow: none; text-align: left;
	padding: 10px 18px 10px 46px; border-radius: 0 14px 0 0; font-family: "Shippori Mincho B1", "Zen Maru Gothic", serif; font-weight: 800;
}
.yd-hs-sea .entry > h3::before { left: 10px; width: 26px; height: 32px; margin-top: -18px; transform: rotate(-20deg); }
.yd-hs-sea .entry > h3::after { display: none; }

/* 紺から青緑の帯と金の線（全日本）：中央、帯の上下に金の線、両はしがV字に切れこむ */
.yd-hs-royal .entry > h3 {
	background: linear-gradient(90deg, #0F3557, #0D6F84); padding: 11px 34px;
	box-shadow: inset 0 5px 0 transparent, inset 0 6px 0 #D9B45A, inset 0 -5px 0 transparent, inset 0 -6px 0 #D9B45A;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
	font-family: "Shippori Mincho B1", "Zen Maru Gothic", serif; font-weight: 800;
}
.yd-hs-royal .entry > h3::before, .yd-hs-royal .entry > h3::after { display: none; }

/* FaST大会の小見出し（作り直し）：紙面のリボンと同じ。紺の帯、両はしがV字に切れこみ、内側に金の月桂樹、白い明朝の太字 */
.yd-hs-gold .entry > h3 {
	background: linear-gradient(180deg, #1E2C63 0%, #141F4A 100%);
	color: #fff; border: none; box-shadow: none;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
	padding: 11px 50px; text-align: center;
	font-family: "Shippori Mincho B1", "Zen Maru Gothic", serif; font-weight: 800; font-size: 18px; letter-spacing: .06em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.yd-hs-gold .entry > h3::before, .yd-hs-gold .entry > h3::after {
	width: 18px; height: 28px; margin-top: -14px; filter: none;
}
.yd-hs-gold .entry > h3::before { left: 22px; }
.yd-hs-gold .entry > h3::after { right: 22px; }
.yd-hs-gold .entry > h3 { padding: 11px 40px; font-size: 17px; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
.yd-hs-gold .entry > h3::before { left: 18px; }
.yd-hs-gold .entry > h3::after { right: 18px; }

/* 表：名前・見出し・タイムが言葉の途中で折れないように（「百々／華」「全国順／位」を防ぐ） */
:where(.entry, .editor-styles-wrapper) .wp-block-table th,
:where(.entry, .editor-styles-wrapper) .wp-block-table td { word-break: keep-all; overflow-wrap: break-word; }
@media (max-width: 359px) {
	:where(.entry, .editor-styles-wrapper) .wp-block-table th,
	:where(.entry, .editor-styles-wrapper) .wp-block-table td { padding-left: 6px; padding-right: 6px; font-size: 14px; }
	:where(.entry, .editor-styles-wrapper) .wp-block-table td:first-child { padding-left: 8px; padding-right: 6px; }
}
