/* 診断と制度ページの最低限の見た目。色はテーマ側で --hojo-* を上書きできる。 */
.hojo-shindan, .hojo-info, .hojo-ads, .hojo-alert-cta {
	--hojo-accent: #1f6f5c;
	--hojo-accent-soft: #e6f2ee;
	--hojo-border: #d9dee3;
	--hojo-muted: #5b6670;
	--hojo-bg: #fff;
}
.hojo-shindan { max-width: 720px; margin: 0 auto; }
.hojo-progress { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--hojo-muted); }
.hojo-bar { flex: 1; height: 6px; background: var(--hojo-border); border-radius: 3px; overflow: hidden; }
.hojo-bar-fill { height: 100%; background: var(--hojo-accent); transition: width .2s; }
.hojo-q-title { font-size: 1.25rem; margin: 20px 0 16px; line-height: 1.5; }
.hojo-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hojo-choice {
	display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px;
	border: 1px solid var(--hojo-border); border-radius: 8px; background: var(--hojo-bg);
	font: inherit; text-align: left; cursor: pointer; color: inherit;
}
.hojo-choice:hover, .hojo-choice:focus-visible { border-color: var(--hojo-accent); outline: none; box-shadow: 0 0 0 2px var(--hojo-accent-soft); }
.hojo-choice.is-picked, .hojo-multi .hojo-choice:has(input:checked) { border-color: var(--hojo-accent); background: var(--hojo-accent-soft); }
.hojo-choice input { width: 18px; height: 18px; accent-color: var(--hojo-accent); }
.hojo-select { width: 100%; max-width: 320px; min-height: 48px; padding: 8px 12px; font: inherit; border: 1px solid var(--hojo-border); border-radius: 8px; }
.hojo-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; }
.hojo-back, .hojo-next { min-height: 44px; padding: 0 20px; border-radius: 8px; font: inherit; cursor: pointer; }
.hojo-back { background: none; border: 1px solid var(--hojo-border); color: inherit; }
.hojo-next { margin-left: auto; background: var(--hojo-accent); border: 0; color: #fff; font-weight: 600; }
.hojo-result-title { font-size: 1.25rem; margin: 0 0 8px; }
.hojo-group { margin: 24px 0; }
.hojo-group > h3 { font-size: 1.05rem; border-left: 4px solid var(--hojo-accent); padding-left: 10px; }
.hojo-lead { color: var(--hojo-muted); font-size: .9rem; }
.hojo-card { border: 1px solid var(--hojo-border); border-radius: 10px; padding: 16px 18px; margin: 12px 0; background: var(--hojo-bg); }
.hojo-card h4 { margin: 6px 0 8px; font-size: 1.1rem; }
.hojo-card-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hojo-kind { font-size: .8rem; color: var(--hojo-muted); }
.hojo-summary, .hojo-meta { margin: 6px 0; }
.hojo-reasons { margin: 8px 0; padding-left: 1.2em; font-size: .925rem; }
.hojo-tocheck { color: #8a5a00; }
.hojo-note { font-size: .9rem; background: #fff8e5; border-radius: 6px; padding: 8px 10px; }
.hojo-checked { font-size: .8rem; color: var(--hojo-muted); }
.hojo-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hojo-links a { color: var(--hojo-accent); font-weight: 600; }
.hojo-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; background: #eef0f2; color: var(--hojo-muted); }
.hojo-badge.hojo-open { background: #dff3e6; color: #11643a; }
.hojo-badge.hojo-upcoming { background: #fdf1cf; color: #6b4e00; }
.hojo-cta { margin: 16px 0 8px; }
.hojo-cta a { color: var(--hojo-muted); }
.hojo-disclaimer { font-size: .8rem; color: var(--hojo-muted); line-height: 1.7; }
.hojo-error { color: #b32d2e; }
.hojo-info { border: 1px solid var(--hojo-border); border-radius: 10px; padding: 16px; margin: 0 0 2em; }
.hojo-src { font-size: .85rem; color: var(--hojo-muted); margin: 10px 0 4px; }
@media (max-width: 600px) {
	.hojo-choices { grid-template-columns: 1fr; }
}

/* ---------- 計算ツール ---------- */
.hojo-keisan {
	--hojo-accent: #1f6f5c;
	--hojo-accent-soft: #e6f2ee;
	--hojo-border: #d9dee3;
	--hojo-muted: #5b6670;
	margin: 0 0 2em;
}
.hk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hk-form { border: 1px solid var(--hojo-border); border-radius: 10px; padding: 18px; background: #fff; }
.hojo-keisan .hk-title { font-size: 1.1rem; margin: 0 0 12px; padding: 0; border: 0; }
.hk-sub { font-weight: 700; margin: 16px 0 4px; }
.hk-field { margin: 0 0 14px; }
.hk-field > label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.hk-field select { width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; border: 1px solid var(--hojo-border); border-radius: 8px; background: #fff; }
.hk-unit { display: flex; align-items: center; gap: 8px; }
.hk-unit input { width: 100%; max-width: 200px; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 1.05rem; border: 1px solid var(--hojo-border); border-radius: 8px; }
.hk-field input:focus, .hk-field select:focus { outline: none; border-color: var(--hojo-accent); box-shadow: 0 0 0 2px var(--hojo-accent-soft); }
.hk-help { font-size: .8rem; color: var(--hojo-muted); margin: 4px 0 0; line-height: 1.6; }
.hk-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: .92rem; line-height: 1.6; cursor: pointer; }
.hk-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--hojo-accent); }
.hk-group[hidden] { display: none; }
.hk-result { position: sticky; top: 80px; border-radius: 10px; padding: 18px; background: var(--hojo-accent-soft); }
.hk-placeholder { color: var(--hojo-muted); margin: 0; }
.hk-headline { margin: 0; font-weight: 700; }
.hk-amount { font-size: 2rem; font-weight: 800; color: var(--hojo-accent); margin: 4px 0 12px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hk-amount.is-ng { color: #8a5a00; font-size: 1.4rem; }
.hk-rows { display: grid; grid-template-columns: minmax(7em, 40%) 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: .92rem; }
.hk-rows dt { color: var(--hojo-muted); }
.hk-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hk-note { font-size: .85rem; margin: 6px 0; padding-left: 1em; text-indent: -1em; }
.hk-note::before { content: "・"; }
.hk-source { font-size: .75rem; color: var(--hojo-muted); margin: 12px 0 0; line-height: 1.6; }
.hk-source a { color: var(--hojo-accent); }
.hk-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
.hk-link { color: var(--hojo-accent); font-weight: 700; }
@media (max-width: 720px) {
	.hk-grid { grid-template-columns: 1fr; }
	.hk-result { position: static; }
}

/* ---------- 締切アラート ---------- */
.hojo-alert-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0 0; padding: 16px; border: 1px solid var(--hojo-border); border-radius: 10px; }
.hojo-alert-cta .hojo-next { display: inline-flex; align-items: center; text-decoration: none; margin-left: 0; }
.hojo-alert { --ha-accent: #1f6f5c; --ha-border: #d9dee3; border: 1px solid var(--ha-border); border-radius: 10px; padding: 18px; background: #fff; max-width: 640px; }
.hojo-alert.is-compact { max-width: 480px; }
.ha-lead { margin: 0 0 12px; }
.ha-field { margin: 0 0 14px; border: 0; padding: 0; }
.ha-field > label, .ha-field > legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
.ha-field input[type=email], .ha-field select { width: 100%; min-height: 46px; padding: 6px 12px; font: inherit; border: 1px solid var(--ha-border); border-radius: 8px; background: #fff; }
.ha-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.ha-options label { display: flex; gap: 6px; align-items: center; }
.ha-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin: 8px 0 14px; }
.ha-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ha-accent); }
.ha-submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--ha-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ha-submit[disabled] { opacity: .6; cursor: wait; }
.ha-message { margin: 12px 0 0; font-size: .92rem; }
.ha-message.is-ok { color: #11643a; }
.ha-message.is-error { color: #b32d2e; }
.ha-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---------- 共通の部品 ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hojo-days { color: #b3541e; font-weight: 700; white-space: nowrap; }
.hojo-badge.hojo-anytime { background: #e4eef8; color: #1c4f7c; }
.hojo-badge.hojo-closed { background: #eef0f2; color: #4f5a63; }
.hojo-shindan details > summary, .hojo-info details > summary, .hojo-alert details > summary, .hojo-experts details > summary { cursor: pointer; }

/* 4つの要点（受付状況・締切・上限・率） */
.hojo-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--hojo-border); border: 1px solid var(--hojo-border); border-radius: 8px; overflow: hidden; }
.hojo-fact { background: #fff; padding: 10px 12px; min-width: 0; }
.hojo-fact dt { font-size: .75rem; color: var(--hojo-muted); margin: 0 0 2px; }
.hojo-fact dd { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.55; }
.hojo-facts.is-small { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 8px 0; }
.hojo-facts.is-small .hojo-fact:last-child:nth-child(odd) { grid-column: auto; }
.hojo-facts.is-small .hojo-fact { padding: 8px 10px; }
.hojo-facts.is-small .hojo-fact dd { font-size: .875rem; font-weight: 600; }

/* ---------- 制度ページの公募情報 ---------- */
.hojo-info { padding: 16px; background: #fbfcfc; }
.hojo-period-note { font-size: .875rem; color: var(--hojo-muted); margin: 8px 0 0; }
.hojo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 14px 0 0; }
.hojo-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--hojo-accent); color: #fff !important; font-weight: 700; text-decoration: none; }
.hojo-btn:hover { filter: brightness(.95); }
.hojo-actions a:not(.hojo-btn) { color: var(--hojo-accent); font-weight: 600; }
.hojo-more-info { margin: 14px 0 0; border-top: 1px solid var(--hojo-border); padding-top: 10px; }
.hojo-more-info summary { font-weight: 600; font-size: .925rem; }
.hojo-more-info dl { display: grid; grid-template-columns: 8em 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: .925rem; }
.hojo-more-info dt { color: var(--hojo-muted); }
.hojo-more-info dd { margin: 0; }
.hojo-info .hojo-src { margin: 12px 0 2px; }
.hojo-info .hojo-disclaimer { margin: 0; }

/* ---------- 診断の質問と結果 ---------- */
.hojo-shindan { scroll-margin-top: 80px; }
.hojo-q-help { font-size: .875rem; color: var(--hojo-muted); margin: -8px 0 12px; }
.hojo-result-title { font-size: 1.3rem; margin: 0 0 6px; outline: none; }
.hojo-answers { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: .85rem; color: var(--hojo-muted); margin: 0 0 12px; }
.hojo-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--hojo-accent); text-decoration: underline; cursor: pointer; }
.hojo-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; }
.hojo-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--hojo-border); border-radius: 999px; text-decoration: none; color: inherit; font-size: .875rem; background: #fff; }
.hojo-jump a:hover { border-color: var(--hojo-accent); }
.hojo-group { scroll-margin-top: 80px; }
.hojo-group > h3, .hojo-group-fold > summary { display: flex; align-items: baseline; gap: 8px; font-size: 1.05rem; font-weight: 700; border-left: 4px solid var(--hojo-accent); padding: 2px 0 2px 10px; margin: 0 0 8px; }
.hojo-group-fold { border-top: 1px solid var(--hojo-border); padding-top: 16px; }
.hojo-group-fold > summary { list-style: none; border-left-color: var(--hojo-border); }
.hojo-group-fold > summary::-webkit-details-marker { display: none; }
.hojo-group-fold > summary::after { content: "開く"; margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--hojo-accent); }
.hojo-group-fold[open] > summary::after { content: "閉じる"; }
.hojo-count { font-size: .85rem; font-weight: 600; color: var(--hojo-muted); }
.hojo-card { padding: 14px 16px; }
.hojo-card h4 { margin: 6px 0 4px; font-size: 1.05rem; line-height: 1.5; }
.hojo-card h4 a { color: inherit; text-decoration: none; }
.hojo-card h4 a:hover { color: var(--hojo-accent); text-decoration: underline; }
.hojo-summary { font-size: .925rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hojo-note { margin: 8px 0; line-height: 1.7; }
.hojo-why { margin: 8px 0 0; font-size: .875rem; }
.hojo-why summary { color: var(--hojo-muted); font-weight: 600; }
.hojo-why .hojo-reasons { margin: 6px 0 0; }
.hojo-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hojo-border); font-size: .9rem; }
.hojo-card-foot a { color: var(--hojo-accent); font-weight: 600; }
.hojo-card-foot .hojo-checked { margin-left: auto; }
.hojo-empty { border: 1px solid var(--hojo-border); border-radius: 10px; padding: 16px; background: #fbfcfc; }
.hojo-empty ul { padding-left: 1.2em; margin: 8px 0; font-size: .925rem; }
.hojo-alert-cta { margin: 28px 0 0; background: var(--hojo-accent-soft); border: 0; }
.hojo-alert-cta p { margin: 0; flex: 1 1 16em; }
.hojo-cta { background: none; padding: 0; font-size: .875rem; }
.hojo-cta a { font-weight: 400; }
.hojo-facts .hojo-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) {
	.hojo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hojo-facts.is-small { grid-template-columns: 1fr; }
	.hojo-facts.is-small .hojo-fact { display: grid; grid-template-columns: 4em 1fr; gap: 8px; align-items: baseline; }
	.hojo-facts.is-small .hojo-fact dt { margin: 0; }
	.hojo-more-info dl { grid-template-columns: 1fr; gap: 0; }
	.hojo-more-info dd { margin-bottom: 8px; }
	.hojo-card-foot .hojo-checked { margin-left: 0; width: 100%; }
}

/* ---------- 締切アラート：任意の絞り込み ---------- */
.ha-optional { margin: 0 0 14px; border: 1px solid var(--ha-border); border-radius: 8px; padding: 10px 12px; }
.ha-optional > summary { font-weight: 600; font-size: .925rem; color: var(--ha-accent); }
.ha-optional[open] > summary { margin-bottom: 10px; }
.ha-optional .ha-field:last-child { margin-bottom: 0; }

/* ---------- 計算ツール：スマホの計算値バー ---------- */
.hk-mini { display: none; }
.hk-owner { flex-basis: 100%; margin: 0; font-size: .85rem; }
.hk-owner a { color: var(--hojo-muted); }
@media (max-width: 720px) {
	.hk-mini:not([hidden]) { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 12px 16px; border-radius: 10px; background: var(--hojo-accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: .95rem; }
	.hk-mini.is-hidden { display: none !important; }
}

/* =====================================================================
 * 第6版：落ち着いた配色・大きな余白・丸みのある面
 * ===================================================================== */
.hojo-shindan, .hojo-info, .hojo-experts, .hojo-alert-cta, .hojo-keisan, .hojo-alert {
	--hojo-accent: #0071e3;
	--hojo-accent-soft: #e8f1fc;
	--hojo-border: #d2d2d7;
	--hojo-line: #e8e8ed;
	--hojo-muted: #6e6e73;
	--hojo-soft: #f5f5f7;
	--hojo-bg: #fff;
	--ha-accent: #0071e3;
	--ha-border: #d2d2d7;
}

/* バッジ */
.hojo-badge { padding: 3px 10px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; background: var(--hojo-soft, #f5f5f7); color: #6e6e73; }
.hojo-badge.hojo-open { background: #e3f4e8; color: #1d7a3a; }
.hojo-badge.hojo-upcoming { background: #fff4d6; color: #8a5a00; }
.hojo-badge.hojo-anytime { background: #e8f1fc; color: #0062c4; }
.hojo-badge.hojo-closed { background: #f5f5f7; color: #86868b; }
.hojo-days { color: #b64400; }

/* 制度ページの公募情報 */
.hojo-info { border: 0; border-radius: 18px; padding: 28px; background: var(--hojo-soft); margin: 0 0 2.5em; }
.hojo-facts { gap: 0; background: none; border: 0; border-radius: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hojo-fact { background: none; padding: 0 16px 0 0; }
.hojo-fact + .hojo-fact { border-left: 1px solid var(--hojo-border); padding-left: 16px; }
.hojo-fact dt { font-size: .75rem; color: var(--hojo-muted); margin: 0 0 4px; }
.hojo-fact dd { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.hojo-info .hojo-facts .hojo-fact:last-child:nth-child(odd) { grid-column: auto; }
.hojo-period-note { margin: 14px 0 0; }
.hojo-actions { margin: 22px 0 0; gap: 10px 22px; }
.hojo-btn { min-height: 44px; padding: 0 22px; border-radius: 980px; font-weight: 500; }
.hojo-btn:hover { filter: none; background: #0062c4; text-decoration: none; }
.hojo-actions a:not(.hojo-btn) { font-weight: 400; color: #0066cc; }
.hojo-more-info { border-top: 1px solid var(--hojo-border); margin-top: 22px; padding-top: 14px; }
.hojo-more-info summary { font-weight: 500; color: #0066cc; }
.hojo-src { font-size: .78rem; }
.hojo-disclaimer { font-size: .75rem; line-height: 1.7; }

/* 診断 */
.hojo-shindan { max-width: 680px; }
.hojo-progress { font-size: .8rem; }
.hojo-bar { height: 4px; background: var(--hojo-line); border-radius: 2px; }
.hojo-q-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.35; margin: 28px 0 20px; }
.hojo-choices { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hojo-choice { min-height: 56px; padding: 14px 18px; border: 1px solid var(--hojo-border); border-radius: 14px; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.hojo-choice:hover, .hojo-choice:focus-visible { border-color: var(--hojo-accent); box-shadow: 0 0 0 1px var(--hojo-accent); }
.hojo-choice.is-picked, .hojo-multi .hojo-choice:has(input:checked) { border-color: var(--hojo-accent); box-shadow: 0 0 0 1px var(--hojo-accent); background: #fff; }
.hojo-geo-suggest { grid-column: 1 / -1; justify-content: center; border-style: dashed; color: #0066cc; }
.hojo-select { max-width: none; min-height: 56px; padding: 8px 16px; border-radius: 14px; font-size: 1rem; background: #fff; }
.hojo-nav { margin-top: 28px; }
.hojo-back, .hojo-next { min-height: 44px; padding: 0 24px; border-radius: 980px; font-size: .95rem; }
.hojo-back { border: 0; background: var(--hojo-soft); }
.hojo-next { font-weight: 500; }
.hojo-result-title { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 0 0 10px; }
.hojo-jump a { border: 0; background: var(--hojo-soft); min-height: 34px; padding: 0 14px; }
.hojo-jump a:hover { background: #e8e8ed; text-decoration: none; }
.hojo-group { margin: 36px 0; }
.hojo-group > h3, .hojo-group-fold > summary { border-left: 0; padding: 0; font-size: 1.2rem; margin: 0 0 12px; letter-spacing: -.01em; }
.hojo-group-fold { border-top: 1px solid var(--hojo-line); padding-top: 20px; }
.hojo-group-fold > summary::after { color: #0066cc; font-weight: 500; }
.hojo-card { border: 1px solid var(--hojo-line); border-radius: 18px; padding: 20px 22px; margin: 12px 0; transition: box-shadow .2s; }
.hojo-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.hojo-card h4 { font-size: 1.12rem; font-weight: 700; }
.hojo-facts.is-small { margin: 10px 0; }
.hojo-facts.is-small .hojo-fact { padding: 0 12px 0 0; }
.hojo-facts.is-small .hojo-fact + .hojo-fact { padding-left: 12px; }
.hojo-note { background: #fff8e6; border-radius: 10px; padding: 10px 12px; }
.hojo-card-foot { border-top-color: var(--hojo-line); }
.hojo-card-foot a, .hojo-links a { font-weight: 500; color: #0066cc; }
.hojo-empty { border: 0; border-radius: 18px; padding: 24px; background: var(--hojo-soft); }
.hojo-alert-cta { border-radius: 18px; padding: 20px 22px; background: var(--hojo-soft); }
.hojo-alert-cta .hojo-next { border-radius: 980px; }

/* 計算ツール */
.hk-form { border: 1px solid var(--hojo-line); border-radius: 18px; padding: 24px; }
.hk-field select, .hk-unit input { border-radius: 12px; min-height: 48px; }
.hk-result { border-radius: 18px; padding: 24px; background: var(--hojo-soft); top: 72px; }
.hk-amount { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; }
.hk-link { font-weight: 500; color: #0066cc; }
@media (max-width: 720px) {
	.hk-mini:not([hidden]) { border-radius: 980px; background: rgba(29, 29, 31, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 500; text-align: center; }
}

/* 締切アラート */
.hojo-alert { border: 1px solid var(--hojo-line); border-radius: 18px; padding: 24px; }
.ha-field input[type=email], .ha-field select { min-height: 48px; border-radius: 12px; }
.ha-submit { min-height: 48px; border-radius: 980px; font-weight: 500; padding: 0 28px; }
.ha-optional { border: 0; background: var(--hojo-soft); border-radius: 12px; padding: 12px 14px; }
.ha-optional > summary { font-weight: 500; color: #0066cc; }

/* ---------- 専門家のPR枠 ---------- */
.hojo-experts { margin: 56px 0 16px; padding: 28px 0 0; border-top: 1px solid var(--hojo-line); }
.hx-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "eyebrow region" "title region"; align-items: end; gap: 2px 16px; margin: 0 0 18px; }
.hx-eyebrow { grid-area: eyebrow; display: flex; align-items: center; gap: 6px; margin: 0; font-size: .75rem; color: var(--hojo-muted); }
.hojo-pr { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #1d1d1f; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.hx-title { grid-area: title; margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.hx-region { grid-area: region; display: none; align-items: center; gap: 8px; font-size: .8rem; color: var(--hojo-muted); flex-wrap: wrap; justify-content: flex-end; }
.hojo-experts.is-js .hx-region { display: flex; }
.hx-region select { min-height: 34px; padding: 2px 30px 2px 14px; font: inherit; font-size: .85rem; color: #1d1d1f; border: 0; border-radius: 980px; background: var(--hojo-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; }
.hx-geo { flex-basis: 100%; text-align: right; font-size: .72rem; }
.hx-geo:empty { display: none; }
.hx-group { margin: 0 0 22px; }
.hx-group-title { margin: 0 0 2px; font-size: .95rem; font-weight: 700; }
.hx-scope { margin: 0 0 10px; font-size: .78rem; color: var(--hojo-muted); line-height: 1.6; }
.hx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hx-card { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--hojo-soft); min-width: 0; }
.hx-card[hidden] { display: none; }
.hx-photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hx-initial { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #6e6e73; font-weight: 700; font-size: 1rem; }
.hx-body { min-width: 0; flex: 1; }
.hx-body p { margin: 0; }
.hx-name { font-weight: 700; font-size: .98rem; line-height: 1.45; }
.hx-meta { font-size: .75rem; color: var(--hojo-muted); line-height: 1.6; }
.hx-blurb { margin-top: 6px !important; font-size: .85rem; line-height: 1.65; color: #1d1d1f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px !important; font-size: .85rem; }
.hx-link { color: #0066cc; }
.hx-link::after { content: " ↗"; font-size: .8em; }
.hx-phone { color: var(--hojo-muted); }
.hx-empty { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--hojo-soft); font-size: .85rem; color: var(--hojo-muted); }
.hx-empty[hidden], .hx-more[hidden] { display: none; }
.hx-more { margin: 10px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: .85rem; color: #0066cc; cursor: pointer; }
.hx-notice { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--hojo-line); font-size: .72rem; color: var(--hojo-muted); line-height: 1.7; }
.hx-notice summary { list-style: none; }
.hx-notice summary::-webkit-details-marker { display: none; }
.hx-notice-more { margin-left: 6px; color: #0066cc; white-space: nowrap; }
.hx-notice p { margin: 6px 0 0; }
.hx-none { color: var(--hojo-muted); }

@media (max-width: 600px) {
	.hojo-info { padding: 22px 18px; border-radius: 16px; }
	.hojo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
	.hojo-fact:nth-child(odd) { border-left: 0 !important; padding-left: 0 !important; }
	.hojo-facts.is-small { grid-template-columns: 1fr; row-gap: 4px; }
	.hojo-facts.is-small .hojo-fact, .hojo-facts.is-small .hojo-fact + .hojo-fact { border-left: 0; padding: 0; }
	.hojo-card { padding: 18px; }
	.hx-head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "region"; }
	.hx-region { justify-content: flex-start; margin-top: 10px; }
	.hx-geo { text-align: left; }
	.hx-list { grid-template-columns: 1fr; }
}
/* 制度ページの要点は2列にして、長い金額の説明でも詰まらないようにする */
.hojo-info .hojo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
.hojo-info .hojo-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
.hojo-info .hojo-fact:nth-child(even) { border-left: 1px solid var(--hojo-border); padding-left: 20px; }
/* 本文の見出し・リストの書式が枠の中に入らないようにする */
.hojo-experts .hx-title { margin: 0; padding: 0; border: 0; background: none; font-size: 1.3rem; }
.hojo-experts .hx-group-title { margin: 0 0 2px; padding: 0; border: 0; font-size: .95rem; }
.hojo-experts .hx-list { padding: 0; margin: 0; }
.hojo-experts .hx-card { margin: 0; }
.hojo-experts p { margin-bottom: 0; }
.hojo-experts .hx-scope { margin: 0 0 10px; }
.hojo-experts .hx-head p.hx-eyebrow { margin: 0 0 4px; }

/* =====================================================================
 * 第7版：大きな専門家カード・相談ボタン・専門家を探すページ・相談フォーム
 * ===================================================================== */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 980px; font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.hx-btn-primary { background: #0071e3; color: #fff !important; }
.hx-btn-primary:hover { background: #0062c4; }
.hx-btn-secondary { background: #fff; color: #0066cc !important; border-color: #0071e3; }
.hx-btn-secondary:hover { background: #e8f1fc; }
.hx-btn-lg { min-height: 52px; padding: 0 32px; font-size: 1.02rem; }

/* 大きなカード */
.hojo-experts .hx-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hojo-experts .hx-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--hojo-line); }
.hojo-experts .hx-card[hidden] { display: none; }
.hx-media { position: relative; aspect-ratio: 16 / 10; background: var(--hojo-soft); overflow: hidden; }
.hx-media img, .hx-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hx-media .hx-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: auto; height: auto; border-radius: 0; background: linear-gradient(135deg, #f5f5f7, #e8e8ed); color: #86868b; font-size: 3rem; font-weight: 700; }
.hojo-experts .hx-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.hojo-experts .hx-meta { font-size: .78rem; color: var(--hojo-muted); }
.hojo-experts .hx-name { font-size: 1.12rem; font-weight: 700; line-height: 1.4; margin-top: 2px; }
.hojo-experts .hx-name a { color: #1d1d1f; text-decoration: none; }
.hojo-experts .hx-name a:hover { color: #0066cc; }
.hx-office { font-size: .82rem; color: var(--hojo-muted); }
.hojo-experts .hx-blurb { margin-top: 10px !important; font-size: .9rem; line-height: 1.7; -webkit-line-clamp: 3; flex: 1; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hx-actions .hx-btn { flex: 1 1 auto; }
.hx-site { margin-top: 10px !important; font-size: .8rem; }
.hx-site a { color: var(--hojo-muted); }
.hx-site a::after { content: " ↗"; font-size: .85em; }
.hx-all { margin: 4px 0 0; font-size: .9rem; }
.hx-all a { color: #0066cc; }
.hx-all a::after { content: " ›"; }

/* 表の下の小さなPR */
.hojo-experts.is-compact { margin: -1.5em 0 2.5em; padding: 18px 20px; border: 1px solid var(--hojo-line); border-radius: 18px; }
.hojo-experts.is-compact .hx-title { font-size: 1rem; }
.hojo-experts.is-compact .hx-region { display: none !important; }
.hojo-experts.is-compact .hx-head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title"; margin-bottom: 12px; }
.hojo-experts.is-compact .hx-group { margin-bottom: 12px; }
.hojo-experts.is-compact .hx-group-title { font-size: .8rem; color: var(--hojo-muted); font-weight: 600; }
.hojo-experts.is-compact .hx-list { grid-template-columns: 1fr; gap: 8px; }
.hojo-experts.is-compact .hx-card { flex-direction: row; align-items: center; border: 0; background: var(--hojo-soft); border-radius: 14px; }
.hojo-experts.is-compact .hx-media { flex: none; width: 88px; aspect-ratio: 1; align-self: stretch; }
.hojo-experts.is-compact .hx-media .hx-initial { font-size: 1.6rem; }
.hojo-experts.is-compact .hx-body { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta actions" "name actions"; align-items: center; column-gap: 12px; }
.hojo-experts.is-compact .hx-meta { grid-area: meta; }
.hojo-experts.is-compact .hx-name { grid-area: name; font-size: 1rem; }
.hojo-experts.is-compact .hx-blurb { display: none; }
.hojo-experts.is-compact .hx-actions { grid-area: actions; margin: 0; }
.hojo-experts.is-compact .hx-actions .hx-btn-secondary { display: none; }
.hojo-experts.is-compact .hx-actions .hx-btn { min-height: 38px; padding: 0 16px; font-size: .85rem; }
.hojo-experts.is-compact .hx-more { display: none !important; }
.hojo-experts.is-compact .hx-notice { margin-top: 4px; }

/* 公募情報：相談の入口と、小さな公式リンク */
.hojo-actions-note { font-size: .8rem; color: var(--hojo-muted); }
.hojo-official { display: flex; gap: 16px; margin: 2px 0 6px; font-size: .78rem; }
.hojo-official a { color: #0066cc; }
.hojo-official a::after { content: " ↗"; font-size: .85em; }

/* 診断結果のカードの画像 */
.hojo-card.has-image { padding-top: 0; overflow: hidden; }
.hojo-card-img { display: block; margin: 0 -22px 14px; aspect-ratio: 16 / 7; overflow: hidden; background: var(--hojo-soft); }
.hojo-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 専門家を探すページ */
.hojo-finder { --hojo-line: #e8e8ed; --hojo-soft: #f5f5f7; --hojo-muted: #6e6e73; }
.hf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 28px; border-radius: 18px; background: #f5f5f7; margin: 0 0 40px; }
.hf-field { margin: 0; border: 0; padding: 0; min-width: 0; }
.hf-field > label, .hf-field > legend { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; padding: 0; }
.hf-field select { width: 100%; min-height: 48px; padding: 6px 14px; font: inherit; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; }
.hf-geo { display: block; margin-top: 4px; font-size: .75rem; color: #6e6e73; }
.hf-form fieldset { grid-column: 1 / -1; }
.hf-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hf-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #d2d2d7; cursor: pointer; font-size: .92rem; }
.hf-option:has(input:checked) { border-color: #0071e3; box-shadow: 0 0 0 1px #0071e3; }
.hf-option input { accent-color: #0071e3; width: 18px; height: 18px; }
.hf-submit { grid-column: 1 / -1; margin: 4px 0 0; }
.hf-result .hojo-experts { margin-top: 0; border-top: 0; padding-top: 0; }

/* 専門家のページと相談フォーム */
.hojo-expert-page .hx-eyebrow { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #6e6e73; margin: -16px 0 20px; }
.hep-profile { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin: 0 0 24px; }
.hep-media { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #f5f5f7; }
.hep-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hep-media .hx-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 700; color: #86868b; background: linear-gradient(135deg, #f5f5f7, #e8e8ed); }
.hep-dl { margin: 0; }
.hep-dl > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8e8ed; font-size: .92rem; }
.hep-dl dt { color: #6e6e73; }
.hep-dl dd { margin: 0; }
.hep-text { margin: 0 0 32px; }
.hep-form { margin: 40px 0 24px; padding: 32px; border-radius: 18px; background: #f5f5f7; scroll-margin-top: 72px; }
.entry-content .hep-form h2 { margin: 0 0 8px; font-size: 1.5rem; }
.hep-lead { color: #6e6e73; font-size: .92rem; margin: 0 0 20px !important; }
.hep-errors { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; background: #fff0ee; color: #a32a1a; font-size: .9rem; }
.hep-errors ul { margin: 6px 0 0; }
.hep-field { margin: 0 0 18px; border: 0; padding: 0; }
.hep-field > label, .hep-field > legend { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; padding: 0; }
.hep-req { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #1d1d1f; color: #fff; font-size: .68rem; font-weight: 600; vertical-align: 2px; }
.hep-field input[type=text], .hep-field input[type=email], .hep-field input[type=tel], .hep-field select, .hep-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; }
.hep-field textarea { line-height: 1.7; }
.hep-field input:focus, .hep-field select:focus, .hep-field textarea:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
.hep-help { margin: 4px 0 0 !important; font-size: .78rem; color: #6e6e73; }
.hep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hep-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hep-type { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #d2d2d7; cursor: pointer; }
.hep-type:has(input:checked) { border-color: #0071e3; box-shadow: 0 0 0 1px #0071e3; }
.hep-type input { margin-top: 4px; accent-color: #0071e3; width: 18px; height: 18px; }
.hep-type strong { display: block; font-size: .98rem; }
.hep-type small { display: block; font-size: .8rem; color: #6e6e73; }
.hep-fields:has(input[name=type][value=mail]:checked) .hep-consult-only { display: none; }
.hep-consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 20px; font-size: .88rem; line-height: 1.7; }
.hep-consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: #0071e3; }
.hep-submit { margin: 0 !important; }
.hep-done { outline: none; }
.hep-small { font-size: .8rem; color: #6e6e73; }
.hep-note { font-size: .75rem; color: #6e6e73; line-height: 1.7; }

@media (max-width: 600px) {
	.hojo-experts .hx-list { grid-template-columns: 1fr; }
	.hojo-experts.is-compact { padding: 16px; }
	.hojo-experts.is-compact .hx-media { width: 72px; }
	.hojo-experts.is-compact .hx-body { grid-template-columns: 1fr; grid-template-areas: "meta" "name" "actions"; row-gap: 6px; }
	.hojo-experts.is-compact .hx-actions .hx-btn { width: 100%; }
	.hf-form { grid-template-columns: 1fr; padding: 20px; }
	.hep-profile { grid-template-columns: 1fr; gap: 16px; }
	.hep-media { max-width: 240px; }
	.hep-form { padding: 22px 18px; margin-left: -4px; margin-right: -4px; }
	.hep-row, .hep-types { grid-template-columns: 1fr; }
	.hojo-card-img { margin: 0 -18px 12px; }
}
