/* 相続屋®コラム：トップのヒーロー以外のセクション
   部品の形（角丸・アイコン枠・矢印・一覧の組み方）は発達障害支援ポータルに合わせ、色はまどぐちのまま 2026-11-27 */
.cm-top{--cm-deep:#22524f;--cm-card:#fff;--cm-ac:var(--md-primary)}
html[data-theme="dark"] .cm-top{--cm-deep:#1c3836;--cm-card:var(--md-surface)}

/* セクションは帯で区切らず、同じ地の上に並べる */
.cm-top .cm-s-who,.cm-top .cm-s-cat,.cm-top .cm-s-theme,.cm-top .cm-new,.cm-top .cm-s-prof,.cm-top .cm-s-cta,.cm-top .cm-s-svc{background:transparent;padding-top:36px;padding-bottom:36px}
.cm-top .cm-s-who{padding-top:40px}
.cm-top .cm-s-svc{padding-bottom:72px}
.cm-top .cm-s-cat p.cm-sub,.cm-top .cm-s-theme p.cm-sub,.cm-top .cm-new p.cm-sub,.cm-top .cm-s-svc p.cm-sub{margin-bottom:26px}

/* 見出し「いまの状況から調べる」：小さめ＋右に罫線 */
.cm-top .cm-s-who h2.cm-h{display:flex;align-items:center;gap:14px;font-size:20px;margin:0}
.cm-top .cm-s-who h2.cm-h::after{display:block;content:"";flex:1;height:1px;background:var(--md-line)}

/* ---- 状況カード（丸アイコン＋右下の淡い円＋丸い矢印） ---- */
.cm-top .cm-who{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;padding-top:16px}
.cm-top .cm-whocard{position:relative;overflow:hidden;display:grid;grid-template-columns:60px 1fr 34px;align-items:center;gap:16px;padding:20px 20px 20px 22px;background:var(--cm-card);border:1px solid var(--md-line);border-radius:24px 24px 24px 8px;color:var(--md-ink);text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s}
.cm-top .cm-whocard.c2,.cm-top .cm-whocard.c4{--cm-ac:var(--md-primary-dark)}
html[data-theme="dark"] .cm-top .cm-whocard.c2,html[data-theme="dark"] .cm-top .cm-whocard.c4{--cm-ac:#3f8f88}
.cm-top .cm-whocard::before{content:"";position:absolute;right:-46px;bottom:-58px;width:150px;height:150px;border-radius:50%;background:var(--cm-ac);opacity:.1;transition:transform .25s,opacity .25s;pointer-events:none}
.cm-top .cm-whocard:hover{border-color:var(--cm-ac);transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,40,38,.12)}
.cm-top .cm-whocard:hover::before{opacity:.16;transform:scale(1.25)}
.cm-top .cm-wico{position:relative;width:60px;height:60px;border-radius:50%;background:var(--cm-ac);color:#fff;display:flex;align-items:center;justify-content:center}
.cm-top .cm-wico svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] .cm-top .cm-wico{color:var(--md-on-primary)}
.cm-top .cm-wtx{position:relative;min-width:0}
.cm-top .cm-wtx b{display:block;font-family:var(--md-heading);font-size:21px;font-weight:700;line-height:1.4}
.cm-top .cm-wtx span{display:block;margin-top:2px;font-size:13px;line-height:1.6;color:var(--md-muted)}
.cm-top .cm-arr{position:relative;width:34px;height:34px;border-radius:50%;border:1.5px solid var(--cm-ac);display:flex;align-items:center;justify-content:center;transition:background .15s}
.cm-top .cm-arr svg{display:none}
.cm-top .cm-arr::before{content:"";width:8px;height:8px;border-top:2px solid var(--cm-ac);border-right:2px solid var(--cm-ac);transform:translateX(-2px) rotate(45deg);transition:border-color .15s}
.cm-top .cm-whocard:hover .cm-arr{background:var(--cm-ac)}
.cm-top .cm-whocard:hover .cm-arr::before{border-color:#fff}

/* ---- カテゴリ一覧（白い箱の中に行。角の1つだけ小さい四角アイコン） ---- */
.cm-top .cm-catgrid{display:grid;grid-template-columns:2fr 1fr;gap:36px}
.cm-top .cm-catgrid > *{min-width:0}
.cm-top .cm-catlist{list-style:none;margin:0;padding:6px 22px;background:var(--cm-card);border:1px solid var(--md-line);border-radius:20px}
.cm-top .cm-catlist li{margin:0;padding:0;border-bottom:1px solid var(--md-line)}
.cm-top .cm-catlist li:last-child{border-bottom:0}
.cm-top .cm-catlist li::before{display:none}
.cm-top .cm-catlist a{display:grid;grid-template-columns:52px 1fr auto 14px;align-items:center;gap:16px;padding:16px 2px;color:var(--md-ink);text-decoration:none}
.cm-top .cm-catlist a:hover .cm-ctx b{color:var(--md-primary-dark);text-decoration:underline}
.cm-top .cm-cico{width:52px;height:52px;border-radius:16px 16px 16px 6px;background:var(--md-primary-tint);color:var(--md-primary-dark);display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.cm-top .cm-cico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cm-top .cm-catlist a:hover .cm-cico,.cm-top .cm-svc:hover .cm-cico{background:var(--md-primary);color:#fff}
html[data-theme="dark"] .cm-top .cm-catlist a:hover .cm-cico,html[data-theme="dark"] .cm-top .cm-svc:hover .cm-cico{color:var(--md-on-primary)}
.cm-top .cm-ctx{min-width:0}
.cm-top .cm-ctx b{display:block;font-family:var(--md-heading);font-size:20px;font-weight:700;line-height:1.5}
.cm-top .cm-ctx span{display:block;font-size:13px;line-height:1.6;color:var(--md-muted)}
.cm-top .cm-cnt{font-family:var(--md-heading);font-size:30px;font-weight:700;line-height:1;color:var(--md-primary-dark)}
.cm-top .cm-cnt small{margin-left:2px;font-size:13px;font-weight:400;color:var(--md-muted)}
.cm-top .cm-chev{width:14px;height:14px;display:flex;align-items:center}
.cm-top .cm-chev svg{display:none}
.cm-top .cm-chev::before{content:"";width:9px;height:9px;border-top:2px solid var(--md-primary);border-right:2px solid var(--md-primary);transform:rotate(45deg)}

/* 右の「迷ったら」：濃い面、右上の角だけ小さく */
.cm-top .cm-side{align-self:start;background:var(--cm-deep);color:#fff;border-radius:24px 8px 24px 24px;padding:24px}
.cm-top .cm-side h3{margin:0 0 6px;padding:0;font-family:var(--md-heading);font-size:20px;font-weight:700;line-height:1.5;color:#fff;background:none;border:0}
.cm-top .cm-side h3::before,.cm-top .cm-side h3::after{display:none}
.cm-top .cm-side p{margin:0 0 14px;font-size:15px;line-height:1.8;color:rgba(255,255,255,.86)}

/* 白い丸ボタン（濃い面の上） */
.cm-top .cm-pill{display:inline-flex;align-items:center;justify-content:center;min-height:var(--md-tap);padding:9px 24px;border-radius:999px;background:#fff;border:2px solid #fff;color:var(--cm-deep) !important;font-weight:700;font-size:17px;line-height:1.4;text-decoration:none;transition:background .15s,color .15s}
.cm-top .cm-pill:hover{background:var(--md-primary-tint);border-color:var(--md-primary-tint)}
html[data-theme="dark"] .cm-top .cm-pill{color:#1c3836 !important}
html[data-theme="dark"] .cm-top .cm-pill:hover{background:#d7ecea;border-color:#d7ecea}
.cm-top .cm-pill.ghost,html[data-theme="dark"] .cm-top .cm-pill.ghost{background:transparent;border-color:#fff;color:#fff !important}
.cm-top .cm-pill.ghost:hover,html[data-theme="dark"] .cm-top .cm-pill.ghost:hover{background:#fff;color:#1c3836 !important}

/* 見出しの文字はリンク色にしない（ダークでSWELLのリンク色が乗るため） */
.cm-top .cm-wtx b,.cm-top .cm-ctx b,.cm-top .cm-svtx b{color:var(--md-ink)}

/* ---- テーマ一覧（2段組・下線つき見出し＋説明＋区切り線） ---- */
.cm-top .cm-themes{list-style:none;margin:0;padding:0;columns:2;column-gap:52px}
.cm-top .cm-themes li{break-inside:avoid;margin:0;padding:14px 0;border-bottom:1px solid var(--md-line)}
.cm-top .cm-themes li::before{display:none}
.cm-top .cm-themes a{display:block;text-decoration:none}
.cm-top .cm-themes b{font-family:var(--md-heading);font-size:19px;font-weight:700;color:var(--md-primary-dark);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.cm-top .cm-themes a:hover b{text-decoration-thickness:2px}
.cm-top .cm-themes span{display:block;margin-top:2px;font-size:14px;color:var(--md-muted)}

/* ---- 新着記事（1本目を写真つきの箱に、残りは日付と下線リンクの一覧） ---- */
.cm-top .cm-new{padding-bottom:0}
.cm-top .cm-postlist{max-width:1040px;margin:0 auto 36px !important}
@media (min-width:861px){
  .cm-top .cm-postlist .p-postList{display:grid !important;grid-template-columns:1.5fr 1fr;column-gap:24px;margin:0 !important}
  .cm-top .cm-postlist .p-postList__item{width:auto !important;margin:0 !important;padding:0 !important;grid-column:2;border-bottom:1px solid var(--md-line)}
  .cm-top .cm-postlist .p-postList__item:first-child{grid-column:1;grid-row:1 / span 8;align-self:start;border:1px solid var(--md-line);border-radius:20px;background:var(--cm-card)}
  .cm-top .cm-postlist .p-postList__item:first-child:hover{border-color:var(--md-primary)}
  .cm-top .cm-postlist .p-postList__item:first-child .p-postList__link{display:grid;grid-template-columns:1fr 1.1fr;gap:20px;padding:18px}
  .cm-top .cm-postlist .p-postList__item:first-child .p-postList__thumb{width:auto !important;margin:0 !important;border-radius:14px;overflow:hidden}
  .cm-top .cm-postlist .p-postList__item:first-child .p-postList__body{padding:0 !important}
  .cm-top .cm-postlist .p-postList__item:first-child .p-postList__title{font-size:20px;line-height:1.5}
  .cm-top .cm-postlist .p-postList__item:not(:first-child) .p-postList__thumb,
  .cm-top .cm-postlist .p-postList__item:not(:first-child) .p-postList__excerpt{display:none}
  .cm-top .cm-postlist .p-postList__item:not(:first-child) .p-postList__link{display:flex;flex-direction:column-reverse;padding:12px 0}
  .cm-top .cm-postlist .p-postList__item:not(:first-child) .p-postList__body{padding:0 !important}
  .cm-top .cm-postlist .p-postList__item:not(:first-child) .p-postList__title{font-size:16px;font-weight:700;color:var(--md-primary-dark);text-decoration:underline;text-underline-offset:4px}
}
.cm-top .cm-postlist .p-postList__title{font-family:var(--md-heading)}

/* ---- 執筆者 ---- */
.cm-top .cm-s-prof .cm-prof{background:var(--cm-card);border:1px solid var(--md-line);border-radius:20px}

/* ---- 相談の帯（濃い面、左下の角だけ小さく） ---- */
.cm-top .cm-deep{display:grid;grid-template-columns:1fr auto;align-items:center;gap:36px;background:var(--cm-deep);color:#fff;border-radius:32px 32px 32px 8px;padding:32px 40px;transition:transform .15s,box-shadow .15s}
.cm-top .cm-deep-tx{min-width:0}
.cm-top .cm-tag{display:inline-block;padding:1px 14px;border-radius:999px;background:#fff;color:var(--cm-deep);font-size:13px;font-weight:700}
html[data-theme="dark"] .cm-top .cm-tag{color:#1c3836}
.cm-top .cm-deep h2{margin:10px 0 8px;padding:0;font-family:var(--md-heading);font-size:28px;font-weight:700;line-height:1.4;color:#fff;background:none;border:0}
.cm-top .cm-deep h2::before,.cm-top .cm-deep h2::after{display:none}
.cm-top .cm-deep p{margin:0;font-size:15px;line-height:1.8;color:rgba(255,255,255,.86)}
.cm-top .cm-deep-acts{display:flex;flex-direction:column;gap:12px}

/* ---- 公式サービス（関連サイトと同じ横長カード） ---- */
.cm-top .cm-svcs{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cm-top .cm-svc{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:16px;padding:14px 18px;background:var(--cm-card);border:1px solid var(--md-line);border-radius:18px;color:var(--md-ink);text-decoration:none}
.cm-top .cm-svc:hover{border-color:var(--md-primary)}
.cm-top .cm-svtx{min-width:0}
.cm-top .cm-svtx b{display:block;font-family:var(--md-heading);font-size:17px;font-weight:700;line-height:1.5}
.cm-top .cm-svtx span{display:block;font-size:13px;line-height:1.6;color:var(--md-muted)}
.cm-top .cm-svtx small{display:block;margin-top:4px;font-size:13px;color:var(--md-primary-dark);text-decoration:underline;overflow-wrap:anywhere}

@media (max-width:860px){
  .cm-top .cm-who{gap:12px}
  .cm-top .cm-catgrid{grid-template-columns:1fr;gap:20px}
  .cm-top .cm-themes{columns:1}
  .cm-top .cm-deep{grid-template-columns:1fr;gap:18px;padding:24px 18px}
  .cm-top .cm-deep h2{font-size:23px}
  .cm-top .cm-svcs{grid-template-columns:1fr}
}
@media (max-width:520px){
  .cm-top .cm-who{grid-template-columns:1fr}
  .cm-top .cm-whocard{grid-template-columns:50px 1fr 30px;gap:12px;padding:16px}
  .cm-top .cm-wico{width:50px;height:50px}
  .cm-top .cm-wico svg{width:27px;height:27px}
  .cm-top .cm-wtx b{font-size:19px}
  .cm-top .cm-arr{width:30px;height:30px}
  .cm-top .cm-catlist{padding:4px 14px}
  .cm-top .cm-catlist a{grid-template-columns:42px 1fr auto 10px;gap:12px}
  .cm-top .cm-cico{width:42px;height:42px;border-radius:13px 13px 13px 5px}
  .cm-top .cm-cico svg{width:23px;height:23px}
  .cm-top .cm-ctx b{font-size:17px}
  .cm-top .cm-cnt{font-size:24px}
}

/* 2026-11-27 PCのトップはコンテンツ幅を 900px → 1080px に広げる（佐藤さん指示「ちょうどよい幅に」）。このCSSはトップページだけで読み込む */
@media (min-width:960px){
  .l-mainContent,.l-article{max-width:1080px;margin-left:auto;margin-right:auto}
  .cm-top .cm-who{grid-template-columns:repeat(2,minmax(0,1fr))}
}@media (min-width:1100px){
  .cm-top .cm-themes{columns:3;column-gap:48px}
}
/* 状況カードの右下：八王子市の木・イチョウの葉（左へ傾けて角からのぞかせる）2026-11-27 */
.cm-top .cm-whocard::before{right:-44px;bottom:-38px;width:128px;height:128px;border-radius:0;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'white'%2F%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'.6'%20opacity%3D'.35'%3E%3Cpath%20d%3D'M50%2064%20L-3.0%2035.8'%2F%3E%3Cpath%20d%3D'M50%2064%20L4.3%2025.1'%2F%3E%3Cpath%20d%3D'M50%2064%20L13.7%2016.2'%2F%3E%3Cpath%20d%3D'M50%2064%20L24.8%209.5'%2F%3E%3Cpath%20d%3D'M50%2064%20L37.1%205.4'%2F%3E%3Cpath%20d%3D'M50%2064%20L50.0%204.0'%2F%3E%3Cpath%20d%3D'M50%2064%20L62.9%205.4'%2F%3E%3Cpath%20d%3D'M50%2064%20L75.2%209.5'%2F%3E%3Cpath%20d%3D'M50%2064%20L86.3%2016.2'%2F%3E%3Cpath%20d%3D'M50%2064%20L95.7%2025.1'%2F%3E%3Cpath%20d%3D'M50%2064%20L103.0%2035.8'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20mask%3D'url(%23m)'%20d%3D'M50%2066%20C41%2055%2020%2042%205%2028%20C12%2013%2030%204%2045%207%20C47%2011%2048.5%2015%2050%2019%20C51.5%2015%2053%2011%2055%207%20C70%204%2088%2013%2095%2028%20C80%2042%2059%2055%2050%2066%20Z'%2F%3E%3Cpath%20d%3D'M48.6%2062%20L51.4%2062%20L52.2%2097%20L47.8%2097%20Z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20100'%3E%3Cdefs%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'100'%20height%3D'100'%20fill%3D'white'%2F%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'.6'%20opacity%3D'.35'%3E%3Cpath%20d%3D'M50%2064%20L-3.0%2035.8'%2F%3E%3Cpath%20d%3D'M50%2064%20L4.3%2025.1'%2F%3E%3Cpath%20d%3D'M50%2064%20L13.7%2016.2'%2F%3E%3Cpath%20d%3D'M50%2064%20L24.8%209.5'%2F%3E%3Cpath%20d%3D'M50%2064%20L37.1%205.4'%2F%3E%3Cpath%20d%3D'M50%2064%20L50.0%204.0'%2F%3E%3Cpath%20d%3D'M50%2064%20L62.9%205.4'%2F%3E%3Cpath%20d%3D'M50%2064%20L75.2%209.5'%2F%3E%3Cpath%20d%3D'M50%2064%20L86.3%2016.2'%2F%3E%3Cpath%20d%3D'M50%2064%20L95.7%2025.1'%2F%3E%3Cpath%20d%3D'M50%2064%20L103.0%2035.8'%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20mask%3D'url(%23m)'%20d%3D'M50%2066%20C41%2055%2020%2042%205%2028%20C12%2013%2030%204%2045%207%20C47%2011%2048.5%2015%2050%2019%20C51.5%2015%2053%2011%2055%207%20C70%204%2088%2013%2095%2028%20C80%2042%2059%2055%2050%2066%20Z'%2F%3E%3Cpath%20d%3D'M48.6%2062%20L51.4%2062%20L52.2%2097%20L47.8%2097%20Z'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;opacity:.16;transform:rotate(-28deg);transform-origin:50% 80%}
.cm-top .cm-whocard:hover::before{opacity:.24;transform:rotate(-20deg) scale(1.08)}
