/* Public poll index only. v39: softly tinted league cards within the green/white identity. */
body.poll-home-v38 .container.narrow{max-width:960px;padding-top:16px}
body.poll-home-v38 .poll-home-intro-v38{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:15px 20px;margin-bottom:14px;border-top:4px solid var(--accent);
  box-shadow:0 3px 13px rgba(26,42,59,.045);
}
body.poll-home-v38 .poll-home-intro-v38 .page-title{
  font-size:22px;margin-bottom:3px;color:#185d2a;
}
body.poll-home-v38 .poll-home-intro-v38 .page-desc{
  margin:0;font-size:12px;white-space:normal;color:#647382;
}
body.poll-home-v38 .poll-home-summary-v38{
  flex:none;padding:7px 11px;background:#ebf6ed;border:1px solid #cde6d2;
  border-radius:999px;color:#176036;font-size:12px;font-weight:850;
}
body.poll-home-v38 .poll-home-message-v38{margin-bottom:13px}
body.poll-home-v38 .poll-home-filters-v38{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:3px 0 20px;
}
body.poll-home-v38 .poll-home-filter-v38{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:37px;padding:7px 14px;border:1px solid #cbdad0;
  border-radius:9px;background:#fff;color:#42614a;font-size:13px;font-weight:850;
  transition:background .13s,border-color .13s;
}
body.poll-home-v38 .poll-home-filter-v38:hover{background:#f0f8f1}
body.poll-home-v38 .poll-home-filter-v38.active{
  background:#2f7d32;border-color:#2f7d32;color:#fff;
}
body.poll-home-v38 .poll-home-filter-v38 span{
  font-size:11px;opacity:.85;font-variant-numeric:tabular-nums;
}
body.poll-home-v38 .poll-home-filter-v38:focus-visible,
body.poll-home-v38 .poll-home-action-v38:focus-visible,
body.poll-home-v38 .poll-home-history-v38 summary:focus-visible{
  outline:3px solid #d7a922;outline-offset:3px;
}
body.poll-home-v38 .poll-home-group-v38{margin:0 0 21px}
body.poll-home-v38 .poll-home-group-heading-v38{
  display:flex;align-items:center;gap:9px;min-height:32px;
  margin:0 0 8px;padding:0 2px;
}
body.poll-home-v38 .poll-home-group-heading-v38 h2,
body.poll-home-v38 .poll-home-history-title-v38{
  margin:0;color:#185d2a;font-size:17px;line-height:1.35;font-weight:900;
}
body.poll-home-v38 .poll-home-count-v38{
  padding:3px 9px;background:#e9f5ea;border-radius:99px;
  color:#217237;font-size:11px;font-weight:900;
}
body.poll-home-v38 .poll-home-list-v38{display:grid;gap:9px}
body.poll-home-v38 .poll-home-card-v38{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:13px;padding:14px 15px;
  border:1px solid #d8e2d9;border-left:4px solid var(--poll-accent,#2f7d32);
  border-radius:11px;background:#fff;
  box-shadow:0 2px 8px rgba(24,55,32,.035);
}
body.poll-home-v38 .poll-home-card-main-v38{min-width:0}
body.poll-home-v38 .poll-home-card-labels-v38{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:5px;
}
body.poll-home-v38 .poll-home-state-v38,
body.poll-home-v38 .poll-home-kind-v38{
  display:inline-flex;align-items:center;padding:2px 8px;
  border-radius:5px;font-size:11px;font-weight:850;line-height:1.55;
}
body.poll-home-v38 .poll-home-state-v38.is-open{background:#e4f5e7;color:#19783a}
body.poll-home-v38 .poll-home-state-v38.is-closed{background:#edf1f4;color:#607081}
body.poll-home-v38 .poll-home-kind-v38{background:#f4f6f7;color:#4f6671}
body.poll-home-v38 .poll-home-card-title-v38{
  font-size:15px;font-weight:900;line-height:1.48;
  color:#243b2b;margin:0 0 7px;overflow-wrap:anywhere;
}
body.poll-home-v38 .poll-home-card-meta-v38{
  display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;
  font-size:11px;color:#647582;font-weight:750;
}
body.poll-home-v38 .poll-home-card-meta-v38 span{white-space:nowrap}
body.poll-home-v38 .poll-home-action-v38{
  min-width:106px;min-height:39px;padding:8px 12px;
  margin-left:auto;font-size:13px;white-space:nowrap;
}
body.poll-home-v38 .poll-home-empty-v38{
  margin:0;padding:18px 16px;border:1px dashed #d2e1d6;
  border-radius:10px;background:#fbfdfb;color:#65756b;font-size:13px;
}
body.poll-home-v38 .poll-home-history-v38{border-top:1px solid #e4e9e7;padding-top:13px}
body.poll-home-v38 .poll-home-history-v38 summary{
  cursor:pointer;list-style:none;user-select:none;
}
body.poll-home-v38 .poll-home-history-v38 summary::-webkit-details-marker{display:none}
body.poll-home-v38 .poll-home-history-toggle-v38{
  margin-left:auto;font-size:12px;font-weight:800;color:#597466;
}
body.poll-home-v38 .poll-home-history-toggle-v38::after{content:"閉じる ▲"}
body.poll-home-v38 .poll-home-history-v38:not([open]) .poll-home-history-toggle-v38::after{content:"表示する ▼"}
body.poll-home-v38 .poll-home-history-v38 .poll-home-card-v38{
  border-left-color:#b3c3b8;background:#fff;
}
body.poll-home-v38 .poll-home-history-v38 .poll-home-card-title-v38{color:#345044}
/* J1 red, J2 green, J3 blue. These rules follow the history-card rule so
   completed polls keep their league colour instead of reverting to grey. */
body.poll-home-v38 .poll-home-card-v38.poll-home-league-j1{
  background:#fff1f1;border-color:#f1cece;border-left-color:#d94b4b;
}
body.poll-home-v38 .poll-home-card-v38.poll-home-league-j2{
  background:#eff9f0;border-color:#cce7d0;border-left-color:#2f8a4b;
}
body.poll-home-v38 .poll-home-card-v38.poll-home-league-j3{
  background:#eef5ff;border-color:#cbdcf5;border-left-color:#3278c8;
}
body.poll-home-v38 .poll-home-card-v38.poll-home-league-j1 .poll-home-kind-v38{
  background:#ffe0e0;color:#a32a32;
}
body.poll-home-v38 .poll-home-card-v38.poll-home-league-j2 .poll-home-kind-v38{
  background:#daf0df;color:#236e3b;
}
body.poll-home-v38 .poll-home-card-v38.poll-home-league-j3 .poll-home-kind-v38{
  background:#dceaff;color:#205a9f;
}
/* Match the category controls to the cards without recolouring the site header. */
body.poll-home-v38 .poll-home-filter-v38[data-category="J1"]{
  background:#fff1f1;border-color:#f0cece;color:#a32a32;
}
body.poll-home-v38 .poll-home-filter-v38[data-category="J2"]{
  background:#eff9f0;border-color:#cce7d0;color:#236e3b;
}
body.poll-home-v38 .poll-home-filter-v38[data-category="J3"]{
  background:#eef5ff;border-color:#cbdcf5;color:#205a9f;
}
body.poll-home-v38 .poll-home-filter-v38[data-category="J1"].active{
  background:#bd4343;border-color:#bd4343;color:#fff;
}
body.poll-home-v38 .poll-home-filter-v38[data-category="J2"].active{
  background:#2f7d43;border-color:#2f7d43;color:#fff;
}
body.poll-home-v38 .poll-home-filter-v38[data-category="J3"].active{
  background:#326bb6;border-color:#326bb6;color:#fff;
}
body.poll-home-v38 .footer-note{margin-top:28px}
@media(max-width:680px){
  body.poll-home-v38 .container.narrow{padding-top:12px}
  body.poll-home-v38 .poll-home-intro-v38{padding:13px;align-items:flex-start;flex-direction:column;gap:8px}
  body.poll-home-v38 .poll-home-summary-v38{font-size:11px;padding:5px 9px}
  body.poll-home-v38 .poll-home-filters-v38{gap:6px;margin-bottom:15px}
  body.poll-home-v38 .poll-home-filter-v38{min-height:37px;padding:7px 10px;flex:1 1 auto}
  body.poll-home-v38 .poll-home-card-v38{grid-template-columns:1fr;padding:12px 13px;gap:10px}
  body.poll-home-v38 .poll-home-card-title-v38{font-size:14px;margin-bottom:6px}
  body.poll-home-v38 .poll-home-card-meta-v38{font-size:11px;gap:4px 10px}
  body.poll-home-v38 .poll-home-action-v38{width:100%;min-width:0;min-height:42px}
  body.poll-home-v38 .poll-home-group-heading-v38 h2,
  body.poll-home-v38 .poll-home-history-title-v38{font-size:16px}
}
