/* ver55_261123 コラムTOP（/media/）：home.php のメイン欄とサイドバーの目的別入口。確認用 staging-preview/ver55_261123（2026-11-24 佐藤さんOK） */

.mt-main{min-width:0}
.mt-main [id^="mt-"]{scroll-margin-top:96px}

/* 共通 */
.mt-sec{margin:0 0 3.5rem}
.mt-sec__title{margin:0 0 .75rem;padding-left:.75rem;border-left:4px solid var(--primary);font-size:1.375rem;font-weight:700;line-height:1.4;color:var(--foreground)}
.mt-sec__lead{margin:0 0 1rem;font-size:.875rem;line-height:1.7;color:var(--muted-foreground)}
.mt-sec__count{margin-left:.5rem;font-size:.8125rem;font-weight:400;color:var(--muted-foreground)}
.mt-sec--sub .mt-sec__title{font-size:1.125rem;border-left-color:var(--border)}
.mt-more{display:inline-block;margin-top:1rem;font-size:.875rem;font-weight:700;color:var(--primary);text-decoration:none}
.mt-more::after{content:" →"}
.mt-more:hover{text-decoration:underline}
.mt-more--btn{display:block;width:100%;min-height:48px;padding:.75rem;border:1px solid var(--primary);border-radius:999px;background:#fff;cursor:pointer;font-family:inherit}
.mt-more--btn::after{content:""}
.mt-more--btn:hover{background:var(--primary-light);text-decoration:none}

/* 見出し＋9. ページ内リンク */
.mt-intro{margin:0 0 2rem;padding:2rem 2rem 1.5rem;border-radius:16px;background:#fff;border:1px solid var(--border)}
.mt-intro__eyebrow{margin:0 0 .5rem;font-size:.8125rem;font-weight:700;color:var(--primary)}
.mt-intro__title{margin:0 0 .75rem;font-size:1.875rem;font-weight:700;line-height:1.4;color:var(--foreground)}
.mt-intro__lead{margin:0 0 1.25rem;font-size:.9375rem;line-height:1.8;color:var(--foreground)}
.mt-intro__points{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}
.mt-jump{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin:1.5rem 0 0;padding:1rem 0 0;border-top:1px solid var(--border)}
.mt-jump a{position:relative;padding-left:1.1rem;font-size:.875rem;font-weight:700;color:var(--foreground);text-decoration:none;line-height:2}
.mt-jump a::before{content:"";position:absolute;left:0;top:50%;width:6px;height:6px;border-right:2px solid var(--primary);border-bottom:2px solid var(--primary);transform:translateY(-70%) rotate(45deg)}
.mt-jump a:hover{color:var(--primary)}

/* 3. 区市町村（主役） */
.mt-area{margin-bottom:3.5rem}
.mt-area__inner{padding:2rem 2rem 2rem;border-radius:20px;background:var(--primary-light)}
.mt-area__title{margin:0 0 .5rem;font-size:1.625rem;font-weight:700;line-height:1.4;color:var(--foreground)}
.mt-area__title::before{content:"";display:inline-block;width:1.1em;height:1.1em;margin:0 .4rem -.15em 0;background:var(--primary);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat}
.mt-area__lead{margin:0 0 1.25rem;font-size:.9375rem;line-height:1.7;color:var(--foreground)}
.mt-area__box{padding:1.5rem;border-radius:14px;background:#fff;box-shadow:var(--card-shadow)}
.mt-area__group+.mt-area__group{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border)}
.mt-area__head{margin:0 0 .75rem;font-size:1rem;font-weight:700;line-height:1.4;color:var(--foreground)}
.mt-area__chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}
.mt-area__chips li{margin:0}
.mt-area__chips a,.mt-area__chips span.is-none{display:inline-flex;align-items:center;justify-content:center;min-width:4.5em;min-height:40px;padding:.3rem .8rem;border-radius:8px;font-size:.875rem;line-height:1.4;text-align:center}
.mt-area__chips a{border:1px solid var(--primary);background:#fff;color:var(--primary);font-weight:700;text-decoration:none}
.mt-area__chips a:hover{background:var(--primary);color:#fff}
.mt-area__chips span.is-none{border:1px solid #e5e7eb;background:#f3f4f6;color:#9ca3af;cursor:default}
.mt-area__select{display:none}
.mt-cards.mt-area__tools{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}
/* 5. 申請代行の1行案内 */
.mt-area__cta{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:12px;background:var(--primary);color:#fff;text-decoration:none;transition:opacity .15s}
.mt-area__cta:hover{opacity:.9}
.mt-area__cta-text{display:flex;flex-direction:column;gap:.15rem;font-size:.8125rem;line-height:1.5}
.mt-area__cta-text b{font-size:1rem}
.mt-area__cta-btn{flex:0 0 auto;padding:.6rem 1.25rem;border-radius:999px;background:var(--secondary);color:var(--foreground);font-size:.875rem;font-weight:700;white-space:nowrap}

/* タブ（ステップ・設備） */
.mt-tabs{display:flex;gap:.25rem;margin:0 0 1.25rem;border-bottom:2px solid var(--border)}
.mt-tabs__btn{flex:0 1 auto;margin:0 0 -2px;padding:.6rem 1.1rem;border:0;border-bottom:3px solid transparent;background:none;font-family:inherit;font-size:.9375rem;font-weight:700;color:var(--muted-foreground);cursor:pointer;line-height:1.4}
.mt-tabs__btn:hover{color:var(--primary)}
.mt-tabs__btn.is-active{border-bottom-color:var(--primary);color:var(--primary)}
.mt-tabs__count{margin-left:.35rem;font-size:.75rem;font-weight:400}
.mt-panel[hidden]{display:none}
/* 2. ステップ切り替え（知る→選ぶ→お金→頼む→設置後） */

/* 7. 記事カード（縦型・横型の2種類） */
.mt-cards{display:grid;gap:1rem;margin:0;padding:0;list-style:none}
.mt-cards--3{grid-template-columns:repeat(3,1fr)}
.mt-cards--2{grid-template-columns:repeat(2,1fr)}
.mt-cards--1{grid-template-columns:1fr;margin-bottom:1rem}
.mt-card{margin:0;min-width:0}
.mt-card a{display:flex;flex-direction:column;height:100%;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;color:var(--foreground);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.mt-card a:hover{border-color:var(--primary);box-shadow:var(--card-shadow)}
.mt-card__thumb{position:relative;display:block;aspect-ratio:16/9;background:var(--muted);overflow:hidden}
.mt-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mt-card__label{position:absolute;left:.6rem;top:.6rem;padding:.1rem .65rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.6875rem;font-weight:700;line-height:1.7}
.mt-card__body{display:flex;flex-direction:column;gap:.3rem;flex:1;min-width:0;padding:.85rem 1rem 1rem}
.mt-card__cat{align-self:flex-start;font-size:.6875rem;font-weight:700;color:var(--primary)}
.mt-card__title{font-size:.9375rem;font-weight:700;line-height:1.55}
.mt-card__desc{font-size:.8125rem;line-height:1.6;color:var(--muted-foreground)}
/* 10. 更新日を読みやすく */
.mt-card__date,.mt-list__date{margin-top:auto;padding-top:.25rem;font-size:.75rem;color:#5b6170}
.mt-card--h a{flex-direction:row}
.mt-card--h .mt-card__thumb{flex:0 0 38%;aspect-ratio:auto;min-height:8rem}
.mt-card--h .mt-card__title{font-size:1rem}
.mt-card--sim a{border:2px solid var(--secondary);background:#fffbea}
.mt-card--sim .mt-card__label{background:var(--secondary);color:var(--foreground)}

/* 申請代行の案内 */
.mt-cta{margin:0 0 3.5rem;padding:2rem 1.5rem;border:2px solid var(--primary);border-radius:16px;background:var(--primary-light);text-align:center}
.mt-cta__title{margin:0 0 .5rem;font-size:1.25rem;font-weight:700;line-height:1.5}
.mt-cta__desc{margin:0 0 1.25rem;font-size:.875rem;line-height:1.8}
.mt-cta a.mt-cta__btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:.75rem 2.5rem;text-decoration:none}

/* 設備別の一覧 */
.mt-list{margin:0;padding:0;list-style:none}
.mt-list li{margin:0;border-bottom:1px solid var(--border)}
.mt-list li[hidden]{display:none}
.mt-list a{display:flex;align-items:baseline;gap:1rem;padding:.8rem .25rem;color:var(--foreground);text-decoration:none}
.mt-list a:hover .mt-list__title{color:var(--primary);text-decoration:underline}
.mt-list__title{flex:1 1 auto;min-width:0;font-size:.9375rem;line-height:1.6}
.mt-list__date{flex:0 0 auto;margin-top:0;padding-top:0}

/* 8. 道府県（ページの最後） */
.mt-pref{padding:1.25rem 1.5rem;border:1px solid var(--border);border-radius:12px;background:#fff}
.mt-pref__row{display:grid;grid-template-columns:7.5rem 1fr;gap:.5rem 1rem;padding:.6rem 0;border-bottom:1px dashed var(--border)}
.mt-pref__row:last-of-type{border-bottom:0}
.mt-pref__area{margin:0;padding-top:.3rem;font-size:.8125rem;font-weight:700;color:var(--muted-foreground)}
.mt-pref__chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0;list-style:none}
.mt-pref__chips li{margin:0}
.mt-pref__chips a{display:inline-block;padding:.3rem .75rem;border:1px solid var(--border);border-radius:6px;font-size:.8125rem;color:var(--foreground);text-decoration:none}
.mt-pref__chips a:hover{border-color:var(--primary);color:var(--primary)}
.mt-pref__note{margin:1rem 0 0;font-size:.75rem;color:var(--muted-foreground)}

/* サイドバー：目的別の入口（ver55と同じ） */
.sidebar-guide{border-radius:1rem;overflow:hidden;background:#fff;box-shadow:var(--card-shadow)}
.sidebar-guide__head{padding:1rem 1.25rem;background:var(--primary);color:#fff;font-weight:700;font-size:.9375rem;line-height:1.5}
.sidebar-guide__list{margin:0;padding:.25rem 0;list-style:none}
.sidebar-guide__list li{margin:0;border-bottom:1px solid var(--border)}
.sidebar-guide__list li:last-child{border-bottom:0}
.sidebar-guide__list a{display:block;padding:.8rem 2rem .8rem 1.25rem;position:relative;font-size:.875rem;font-weight:700;color:var(--foreground);text-decoration:none}
.sidebar-guide__list a::after{content:"";position:absolute;right:1.1rem;top:50%;width:7px;height:7px;border-top:2px solid var(--primary);border-right:2px solid var(--primary);transform:translateY(-50%) rotate(45deg)}
.sidebar-guide__list a:hover{background:var(--primary-light)}

/* 検討の段階（縦に並べる：番号の丸と縦線でつなぐ） */
.mt-steps{margin:0;padding:0;list-style:none}
.mt-step{position:relative;margin:0;padding:0 0 2.25rem 76px}
.mt-step:last-child{padding-bottom:0}
.mt-step::before{content:"";position:absolute;left:27px;top:60px;bottom:6px;border-left:2px dashed #b7e6d4}
.mt-step:last-child::before{display:none}
.mt-step__head{display:flex;align-items:center;gap:1rem;min-height:56px;margin:0 0 1rem -76px}
.mt-step__badge{flex:0 0 56px;width:56px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:var(--primary);color:#fff;font-family:"Zen Kaku Gothic New",sans-serif;font-size:1.375rem;font-weight:700;line-height:1;box-shadow:0 0 0 5px var(--primary-light)}
.mt-step__badge small{font-size:.5625rem;letter-spacing:.1em;margin-bottom:2px}
.mt-step__txt{min-width:0}
.mt-step__name{margin:0;font-size:.8125rem;font-weight:700;color:var(--primary);letter-spacing:.06em}
.mt-step__q{margin:.1rem 0 0;font-family:"Zen Kaku Gothic New",sans-serif;font-size:1.25rem;font-weight:700;line-height:1.45;color:var(--foreground)}
/* 見出し・ボタンの改行は文節（<wbr>）の位置だけで行う（本文は通常の折り返し） */
.mt-hd__tag,.mt-hd__title,.mt-intro__title,.mt-jump a,.mt-area__cta-text b,.mt-cta__title,.mt-step__q,.mt-tabs__btn{word-break:keep-all;overflow-wrap:anywhere}
/* H1下の実績3つ（アイコン付きのタイル） */
.mt-intro__points{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;max-width:40rem;margin:0 auto;padding:0;list-style:none}
.mt-intro__points li{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin:0;padding:1rem .5rem .9rem;border-radius:14px;background:var(--primary-light);font-size:.8125rem;font-weight:700;line-height:1.45;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
.mt-intro__points li b{color:var(--primary)}
.mt-ico{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,120,80,.12)}
.mt-ico svg{width:34px;height:34px}
.mt-card[hidden]{display:none}
/* 見出しの型（TOPページの見出しに合わせる：吹き出しタグ＋キーワード緑） */
.mt-hd,.mt-intro{position:relative;text-align:center}
.mt-hd{margin:0 0 1.75rem}
.mt-hd__tag{position:relative;display:inline-block;margin:0 0 .9rem;padding:.3rem 1.1rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.875rem;font-weight:700;line-height:1.5;letter-spacing:.04em}
.mt-hd__tag::after{content:"";position:absolute;left:50%;bottom:-6px;margin-left:-6px;border:6px solid transparent;border-bottom:0;border-top-color:var(--primary)}
.mt-hd__title,.mt-intro__title{position:relative;margin:0;font-family:"Zen Kaku Gothic New",sans-serif;font-size:1.75rem;font-weight:700;line-height:1.45;letter-spacing:.04em;color:var(--foreground)}
.mt-hd__title em,.mt-intro__title em{font-style:normal;color:var(--primary)}
.mt-hd__lead{position:relative;margin:.75rem 0 0;font-size:.9375rem;line-height:1.7;color:var(--muted-foreground)}
.mt-hd__title .sp,.mt-intro__title .sp{display:none}
/* H1まわり */
.mt-intro{margin:0 0 2.5rem;padding:2.25rem 2rem 2rem;border:0;border-radius:20px;background:#fff;overflow:hidden}
.mt-intro .mt-intro__title{font-size:2rem}
.mt-intro__lead{position:relative;max-width:36em;margin:1rem auto 1.25rem;font-size:.9375rem;line-height:1.85;color:var(--foreground)}
.mt-intro__points{justify-content:center}
.mt-jump{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin:1.5rem 0 0;padding:0;border-top:0}
.mt-jump a{display:flex;align-items:center;justify-content:center;gap:.4rem;min-height:48px;padding:.5rem .5rem 1.1rem;border:1px solid var(--border);border-radius:12px;background:#fff;font-size:.875rem;font-weight:700;line-height:1.3;color:var(--foreground);text-decoration:none;position:relative;transition:border-color .15s,color .15s}
.mt-jump a::before{left:50%;top:auto;bottom:.5rem;margin-left:-3px;transform:rotate(45deg)}
.mt-jump a:hover{border-color:var(--primary);color:var(--primary)}
/* 区市町村の欄（見出しを背景の中で） */
.mt-area__inner{padding-top:2.25rem}
@media screen and (max-width:767px){
  .mt-sec{margin-bottom:2.75rem}
  .mt-sec__title{font-size:1.1875rem}
  .mt-intro{padding:1.5rem 1.1rem 1.25rem;border-radius:12px}
  .mt-intro__title{font-size:1.4375rem}
  .mt-intro__lead{font-size:.875rem}
    .mt-jump{display:grid;grid-template-columns:1fr 1fr;gap:.25rem .75rem}
  .mt-jump a{font-size:.8125rem;line-height:2.6}
  .mt-area__inner{margin:0 calc(var(--padding-sp, 1rem) * -1);padding:1.5rem 1rem;border-radius:0}
  .mt-area__title{font-size:1.25rem}
  .mt-area__lead{font-size:.875rem}
  .mt-area__box{padding:1rem}
  /* 4. SPはプルダウン */
  .mt-area__groups{display:none}
  .mt-area__select{display:block}
  .mt-area__select label{display:block;margin:0 0 .5rem;font-size:.875rem;font-weight:700}
  .mt-area__select select{width:100%;min-height:52px;padding:.5rem 2.5rem .5rem 1rem;border:2px solid var(--primary);border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300b680' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 1rem center no-repeat;font-family:inherit;font-size:1rem;font-weight:700;color:var(--foreground);-webkit-appearance:none;appearance:none}
  .mt-cards.mt-area__tools{margin-top:1rem;padding-top:1rem}
  .mt-area__cta{flex-direction:column;align-items:stretch;text-align:center;gap:.75rem;padding:1rem}
  .mt-area__cta-btn{display:flex;align-items:center;justify-content:center;min-height:48px}
  .mt-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .mt-tabs::-webkit-scrollbar{display:none}
  .mt-tabs__btn{flex:0 0 auto;padding:.55rem .8rem;font-size:.875rem;white-space:nowrap}
  .mt-tabs--prod{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;overflow:visible;border-bottom:0}
  .mt-tabs--prod .mt-tabs__btn{min-height:48px;margin:0;padding:.55rem .5rem;border:1px solid var(--border);border-radius:8px;background:#fff;font-size:.8125rem;white-space:normal;text-align:center}
  .mt-tabs--prod .mt-tabs__btn.is-active{border-color:var(--primary);background:var(--primary);color:#fff}
  .mt-cards{gap:.6rem}
  .mt-cards--3,.mt-cards--2{grid-template-columns:1fr}
  .mt-card a{flex-direction:row}
  .mt-card__thumb,.mt-card--h .mt-card__thumb{flex:0 0 36%;aspect-ratio:4/3;min-height:0}
  .mt-card__body{padding:.65rem .75rem}
  .mt-card__title,.mt-card--h .mt-card__title{font-size:.875rem}
  .mt-card__desc{font-size:.75rem}
  .mt-card__label{left:.35rem;top:.35rem;font-size:.625rem;padding:.05rem .5rem}
  .mt-cta{padding:1.5rem 1rem}
  .mt-cta__title{font-size:1.0625rem}
  .mt-cta a.mt-cta__btn{display:flex;width:100%;padding:.75rem 1rem;font-size:1rem;white-space:nowrap}
  .mt-list a{flex-wrap:wrap;gap:.25rem .5rem;padding:.75rem .1rem}
  .mt-list__title{flex-basis:100%;order:2;font-size:.875rem}
  .mt-list__date{order:1}
  .mt-pref{padding:.75rem 1rem}
  .mt-pref__row{grid-template-columns:1fr;gap:.4rem}
  .mt-pref__area{padding-top:0}
  .mt-pref__chips a{padding:.45rem .75rem}
  .mt-hd{margin-bottom:1.25rem}
    .mt-hd__tag{font-size:.75rem;padding:.25rem .9rem}
  .mt-hd__title{font-size:1.375rem}
  .mt-hd__title .sp,.mt-intro__title .sp{display:inline}
  .mt-hd__lead{font-size:.8125rem;text-align:left}
  .mt-intro{padding:2rem 1.1rem 1.25rem}
  .mt-intro   .mt-intro__title{font-size:1.5rem}
  .mt-intro__lead{text-align:left}
  .mt-jump{grid-template-columns:1fr 1fr}
  .mt-jump a{font-size:.8125rem;line-height:1.3}
  .mt-area__inner{padding-top:2rem}
  .mt-step{padding:0 0 1.75rem 0}
  .mt-step::before{display:none}
  .mt-step__head{gap:.75rem;min-height:0;margin:0 0 .75rem}
  .mt-step__badge{flex-basis:46px;width:46px;height:46px;font-size:1.125rem;box-shadow:0 0 0 4px var(--primary-light)}
  .mt-step__badge small{font-size:.5rem}
  .mt-step__q{font-size:1.0625rem}
  .mt-hd__tag{font-size:.75rem}
  .mt-intro__points{gap:.4rem}
  .mt-intro__points li{padding:.75rem .25rem .7rem;font-size:.6875rem;line-height:1.4;border-radius:12px}
  .mt-ico{width:42px;height:42px}
  .mt-ico svg{width:28px;height:28px}
}

/* ▼ ver55_261124b カテゴリ一覧：まず読むならこれ／ページ番号の「…」／一覧下CTA */
.archive-pickup{margin-bottom:3rem}
.pagination__dots{display:flex;align-items:flex-end;justify-content:center;width:1.5rem;height:2.5rem;padding-bottom:.4rem;color:var(--muted-foreground);font-weight:700;letter-spacing:.05em}
.archive-cta{margin:3rem 0 0}
@media screen and (max-width:767px){
  .archive-pickup{margin-bottom:2.25rem}
  .pagination{gap:.3rem;flex-wrap:wrap}
  .pagination__item{width:2.25rem;height:2.25rem;font-size:.875rem}
  .pagination__dots{width:1rem;height:2.25rem}
  .archive-cta{margin-top:2.5rem}
}
/* ▲ ver55_261124b */
