/* ======================================================================
   パターン⑪ 活動データ型（2026-11-10 作り直し）
   薄いグレーの地に白いパネル。数字は等幅で大きく、グラフは横棒・縦棒。メイン色は濃くして使う。
   ====================================================================== */
body[data-pattern="11"]{
  --bg:#eef1f6;--card:#fff;--ink:#16202c;--sub:#55606e;--line:#dfe4ec;
  --acc:color-mix(in srgb,var(--blue) 80%,#000);
  --accL:color-mix(in srgb,var(--blue) 14%,#fff);
  background:var(--bg);color:var(--ink);font-variant-numeric:tabular-nums;
}
.p11d-wrap{width:min(1200px,100% - 40px);margin:0 auto}

/* ヘッダー：濃い色のアプリのバー */
.p11d-header{background:var(--ink);box-shadow:none}
.p11d-logo{display:flex;flex-direction:column;color:#fff;font-weight:800;font-size:19px;line-height:1.25}
.p11d-logo small{font-size:12px;font-weight:500;opacity:.85}
.p11d-nav a{color:#fff;font-size:14px;font-weight:700;opacity:.92}
.p11d-nav a:hover{opacity:1;color:#fff;text-decoration:underline}
.p11d-nav a.p11d-nav__cta{background:var(--yellow);color:#1a1a1a;border-radius:8px;padding:8px 18px;opacity:1}
body[data-pattern="11"] .menu-btn span{background:#fff}
body[data-pattern="11"] .header :focus-visible{outline-color:var(--yellow)}

.p11d{padding:92px 0 56px}
.p11d .sample-notice{margin-bottom:12px}
.p11d-crumb{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:14px;font-weight:700;color:var(--sub);margin-bottom:14px}
.p11d-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
.p11d-card{grid-column:span 6;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 1px 2px rgba(20,30,50,.05);min-width:0}
body[data-pattern="11"] .p11d-card__title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:18px;font-weight:800;text-align:left;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--line);color:var(--ink)}
body[data-pattern="11"] .p11d-card__title::after{display:none}
.p11d-card__title small{font-size:12px;font-weight:500;color:var(--sub)}

/* 自己紹介のパネル */
.p11d-me{grid-column:span 5;display:grid;grid-template-columns:120px 1fr;gap:6px 18px;align-content:start}
.p11d-me__photo{margin:0;width:120px;height:120px;border-radius:50%;overflow:hidden;border:4px solid var(--accL)}
.p11d-me__photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%}
.p11d-me__body{align-self:center}
.p11d-me__role{font-size:14px;font-weight:700;color:var(--sub);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.p11d-me__role span{background:var(--accL);color:var(--acc);border-radius:6px;padding:0 8px;font-size:13px}
.p11d-me__name{font-size:34px;font-weight:900;line-height:1.2;margin:4px 0}
.p11d-me__party{font-size:13px;color:var(--sub)}
.p11d-me__catch{grid-column:1/-1;font-size:22px;font-weight:800;line-height:1.55;margin-top:14px}
.p11d-me__accent{grid-column:1/-1;font-size:15px;font-weight:700;color:var(--acc)}
.p11d-me__btns{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.p11d-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:8px;background:var(--acc);color:#fff !important;font-weight:800;font-size:15px}
.p11d-btn:hover{filter:brightness(1.12)}
.p11d-btn--sub{background:#fff;color:var(--acc) !important;border:2px solid var(--acc)}
.p11d-btn--big{min-height:58px;padding:0 36px;font-size:17px;background:var(--yellow);color:#1a1a1a !important}

/* 数字のパネル */
.p11d-kpi{grid-column:span 7}
.p11d-kpi__list{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.p11d-kpi__list li{border:1px solid var(--line);border-radius:10px;padding:16px 18px;display:flex;flex-direction:column;gap:6px;border-top:4px solid var(--acc)}
.p11d-kpi__list li.is-hot{background:var(--acc);color:#fff;border-color:var(--acc)}
.p11d-kpi__list li.is-mine{border-top-color:var(--sub)}
.p11d-kpi__list b{font-size:40px;font-weight:900;line-height:1.1;letter-spacing:-.02em}
.p11d-kpi__list b small{font-size:15px;font-weight:700;margin:0 3px}
.p11d-kpi__list span{font-size:13px;line-height:1.6;color:inherit}

/* 横棒グラフ */
.p11d-bars{list-style:none;display:grid;gap:12px}
.p11d-bars li{display:grid;grid-template-columns:7.5em 1fr 2em;gap:10px;align-items:center;font-size:14px;font-weight:700}
.p11d-bars__track{height:14px;background:var(--accL);border-radius:7px;overflow:hidden}
.p11d-bars__fill{display:block;height:100%;background:var(--acc);border-radius:7px}
.p11d-bars b{text-align:right;font-size:16px}
/* 縦棒グラフ */
.p11d-cols{list-style:none;display:flex;align-items:flex-end;gap:12px;height:220px;padding-top:10px;border-bottom:2px solid var(--line)}
.p11d-cols li{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;min-width:0}
.p11d-cols b{font-size:16px}
.p11d-cols__bar{width:min(48px,100%);background:linear-gradient(var(--acc),color-mix(in srgb,var(--acc) 70%,#fff));border-radius:6px 6px 0 0;min-height:6px;max-height:150px}
.p11d-cols__label{font-size:12px;color:var(--sub);text-align:center;line-height:1.4;height:3em}

/* メッセージ・取り組み */
.p11d-msg{grid-column:span 7}
.p11d-msg__title{font-size:22px;font-weight:800;line-height:1.5;margin-bottom:12px;color:var(--acc)}
.p11d-msg__body p{font-size:15px;line-height:1.95;margin-bottom:1em}
.p11d-big{font-weight:800;font-size:18px !important;line-height:1.6 !important;background:var(--accL);border-left:4px solid var(--acc);padding:12px 16px;border-radius:0 8px 8px 0}
.p11d-sign{text-align:right;font-weight:700}
.p11d-pol{grid-column:span 5}
.p11d-pol__list{list-style:none;display:grid;gap:4px}
.p11d-pol__list li{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.p11d-pol__list li:last-child{border-bottom:0}
.p11d-pol__no{width:38px;height:38px;border-radius:8px;background:var(--accL);color:var(--acc);font-weight:900;display:flex;align-items:center;justify-content:center;font-size:15px}
.p11d-pol__list li.is-hot .p11d-pol__no{background:var(--acc);color:#fff}
.p11d-pol__list h3{font-size:16px;font-weight:800;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.p11d-pol__list h3 em{font-style:normal;font-size:12px;background:color-mix(in srgb,var(--red) 85%,#000);color:#fff;border-radius:4px;padding:0 6px}
.p11d-pol__list p{font-size:14px;line-height:1.8;color:var(--sub);margin-top:2px}

/* 議会の表 */
.p11d-gikai{grid-column:1/-1}
.p11d-lead{font-size:15px;line-height:1.85;color:var(--sub);margin-bottom:16px}
.p11d-table{display:grid;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.p11d-tr{display:grid;grid-template-columns:10em 9em minmax(0,1.3fr) minmax(0,1fr);gap:16px;padding:14px 18px;border-top:1px solid var(--line);font-size:14px;line-height:1.7}
.p11d-tr:first-child{border-top:0}
.p11d-th{background:#f6f8fb;font-weight:800;color:var(--sub);font-size:13px}
.p11d-tr b{display:block;font-size:15px}
.p11d-tr small{display:block;color:var(--sub);font-size:13px;margin-top:2px}
.p11d-td--when{font-weight:700}
.p11d-chip{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:1px 10px;margin:0 4px 4px 0;background:var(--accL);color:var(--acc)}
.p11d-chip.is-hot{background:color-mix(in srgb,var(--red) 85%,#000);color:#fff}
.p11d-records{list-style:none}
.p11d-records li{display:grid;grid-template-columns:12em 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
body[data-pattern="11"] .cv{margin-top:28px}
body[data-pattern="11"] .q-entry{justify-content:flex-start}
body[data-pattern="11"] .q-entry__btn{border-radius:8px;background:var(--acc)}

/* 活動ログ（時系列） */
.p11d-log{grid-column:span 7}
.p11d-log__list{list-style:none;position:relative}
.p11d-log__list li{display:grid;grid-template-columns:6.5em 1fr;gap:16px;padding:0 0 18px;position:relative}
.p11d-log__list li::before{content:"";position:absolute;left:calc(6.5em + 3px);top:6px;width:10px;height:10px;border-radius:50%;background:var(--acc)}
.p11d-log__list li::after{content:"";position:absolute;left:calc(6.5em + 7px);top:18px;bottom:0;width:2px;background:var(--line)}
.p11d-log__list time{font-size:13px;font-weight:700;color:var(--sub)}
.p11d-log__list a{display:block;padding-left:20px}
.p11d-log__list a:hover b{color:var(--acc);text-decoration:underline}
.p11d-log__list b{display:block;font-size:15px;line-height:1.55}
.p11d-log__list small{display:block;font-size:13px;color:var(--sub);line-height:1.7;margin-top:2px}

/* プロフィール */
.p11d-prof{grid-column:span 5}
.p11d-prof__head{display:flex;gap:14px;align-items:center}
.p11d-prof__head img{width:72px;height:72px;border-radius:12px;object-fit:cover;object-position:center 18%}
.p11d-prof__head b{display:block;font-size:22px}
.p11d-prof__head small{font-size:13px;color:var(--sub)}
.p11d-prof__lines{font-size:14px;font-weight:700;margin:12px 0}
.p11d-table div{display:grid;grid-template-columns:6.5em 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.p11d-table dt{color:var(--sub);font-weight:700}
.p11d-prof__motto{margin-top:12px;font-size:14px;font-weight:700}
.p11d-prof__motto span{font-size:12px;background:var(--accL);color:var(--acc);border-radius:4px;padding:1px 8px;margin-right:8px}

/* 相談 */
.p11d-contact{grid-column:1/-1;background:var(--ink);color:#fff;border:0;padding:40px;text-align:center}
body[data-pattern="11"] .p11d-contact__title{font-size:clamp(22px,2.6vw,30px);font-weight:900;color:#fff;margin:0 0 12px}
body[data-pattern="11"] .p11d-contact__title::after{display:none}
.p11d-contact__lead{margin-bottom:22px;opacity:.95}
.p11d-contact__info{margin-top:14px;font-size:14px}
.p11d-contact a:not(.p11d-btn){color:#fff;text-decoration:underline}
.p11d-sns{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.p11d-sns__link{display:inline-flex;gap:8px;align-items:center;border:1px solid rgba(255,255,255,.5);border-radius:8px;padding:6px 14px;font-size:14px;color:#fff;text-decoration:none !important}
.p11d-sns__link svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2}
.p11d-contact :focus-visible{outline-color:var(--yellow)}

.p11d-footer{background:var(--bg);color:var(--ink);border-top:1px solid var(--line)}
.p11d-footer__in{width:min(1200px,100% - 40px);margin:0 auto}
.p11d-footer__name{font-weight:800;font-size:18px}
.p11d-footer__office{font-size:14px;line-height:1.9;color:var(--sub)}
body[data-pattern="11"] .float-cta{border-radius:10px;background:var(--yellow);color:#1a1a1a;box-shadow:0 8px 20px rgba(0,0,0,.2)}

@media (max-width:1000px){
  .p11d-me,.p11d-kpi,.p11d-msg,.p11d-pol,.p11d-log,.p11d-prof,.p11d-card{grid-column:1/-1}
  .p11d-tr{grid-template-columns:1fr 1fr}
  .p11d-th{display:none}
  .p11d-tr > span:nth-child(3),.p11d-tr > span:nth-child(4){grid-column:1/-1}
  .p11d-td--a::before{content:"市の答え：";font-weight:700;color:var(--ink)}
}
@media (max-width:768px){
  .p11d-wrap,.p11d-footer__in{width:calc(100% - 28px)}
  .p11d{padding:80px 0 40px}
  .p11d-card{padding:18px}
  .p11d-me{grid-template-columns:88px 1fr}
  .p11d-me__photo{width:88px;height:88px}
  .p11d-me__name{font-size:28px}
  .p11d-kpi__list{grid-template-columns:1fr 1fr}
  .p11d-kpi__list b{font-size:32px}
  .p11d-bars li{grid-template-columns:6em 1fr 1.6em}
  .p11d-log__list li{grid-template-columns:1fr;gap:2px;padding-left:22px}
  .p11d-log__list li::before{left:0}
  .p11d-log__list li::after{left:4px}
  .p11d-log__list a{padding-left:0}
  .p11d-contact{padding:28px 18px}
  body[data-pattern="11"] .p11d-nav{background:var(--ink)}
  body[data-pattern="11"] .p11d-nav a{border-top-color:rgba(255,255,255,.15)}
}
