@charset "utf-8";
/* masse 共通フッター（2026-11-23 組み直し）
   マークアップは footer.php の <footer class="footer ft">。全セレクタを .ft の中に閉じている。
   色・文字・角丸はトップ（top-renewal.css）に合わせた：緑 #1cbea1／LINEの緑 #06c755／黒 #111／丸いボタンとカード。
   前のフッターの決まり（common.css の .footer・.copylight・.footer_company など）は、ここで上書きしている。
   戻すとき：footer.php を footer.php.bak-20261123-footer に戻す（このファイルは読まれなくなる）。 */
.footer.ft{background:#1e1e1e;color:#fff;padding:0;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-size:14px;line-height:1.7;text-align:left;letter-spacing:normal}
.ft *{box-sizing:border-box}
.ft a{color:inherit;text-decoration:none}
.ft ul{list-style:none;margin:0;padding:0}
.ft p{margin:0}
.ft .ft_in{max-width:1216px;margin:0 auto;padding:72px 48px 40px}

/* 相談の3つの入口 */
.ft .ft_cta{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px}
.ft .ft_card{display:flex;align-items:center;gap:16px;min-height:96px;padding:20px 28px;border-radius:16px;background:#fff;color:#111;transition:opacity .2s}
.ft .ft_card:hover{opacity:.85}
.ft .ft_card--line{background:#06c755;color:#fff}
.ft .ft_card_ic{flex:none;width:48px;height:48px;border-radius:50%;background:#e6f7f3;display:flex;align-items:center;justify-content:center}
.ft .ft_card_ic svg{width:24px;height:24px;fill:#10a88d}
.ft .ft_card--line .ft_card_ic{background:#fff}
.ft .ft_card--line .ft_card_ic svg{fill:#06c755}
.ft .ft_card_tx{display:block;min-width:0}
.ft .ft_card_tx b{display:block;font-size:18px;font-weight:900;line-height:1.4}
.ft .ft_card_tx b.ft_card_num{font-family:"Montserrat","Noto Sans JP",sans-serif;font-weight:800;font-size:22px;letter-spacing:0}
.ft .ft_card_tx small{display:block;font-size:12px;font-weight:400;line-height:1.6;letter-spacing:normal;margin-top:2px}

/* ロゴとメニュー */
.ft .ft_main{display:grid;grid-template-columns:220px minmax(0,1fr);gap:56px;margin-top:64px;padding-top:56px;border-top:1px solid rgba(255,255,255,.16)}
.ft .ft_logo{display:inline-block}
.ft .ft_logo img{width:128px;height:auto;display:block}
.ft .ft_tag{font-size:12px;line-height:1.8;color:rgba(255,255,255,.72);margin-top:14px}
.ft .ft_nav{display:grid;grid-template-columns:1.25fr 1.1fr .9fr 1fr;gap:40px}
.ft .ft_h{font-size:13px;font-weight:900;line-height:1.5;color:#1cbea1;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid rgba(255,255,255,.16)}
.ft .ft_col li + li{margin-top:12px}
.ft .ft_col a{display:inline-block;font-size:14px;line-height:1.6;color:#fff;transition:color .2s}
.ft .ft_col a:hover{color:#1cbea1}

/* 会社情報と法的ページ（下の帯） */
.ft .ft_bottom{margin-top:56px;padding-top:28px;border-top:1px solid rgba(255,255,255,.16);text-align:left;color:rgba(255,255,255,.72)}
.ft .ft_legal{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0 0 20px;justify-content:flex-start}
.ft .ft_legal .item{padding:0;font-size:12px;line-height:1.6}
.ft .ft_legal a{color:#fff}
.ft .ft_legal a:hover{color:#1cbea1}
.ft .footer_company{text-align:left;font-size:12px;line-height:1.9;margin:0}
.ft .footer_company p{margin:0 0 4px;font-size:12px;line-height:1.9}
.ft .footer_company a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.ft .footer_company .footer_buildee-note{border:0;background:none;padding:0;margin:0 0 4px;max-width:none;text-align:left;color:inherit}
.ft .ft_bottom small{display:block;margin-top:20px;font-size:11px;line-height:1.7;letter-spacing:normal;color:rgba(255,255,255,.56)}

/* 中くらいの幅 */
@media (max-width:1100px){
  .ft .ft_in{padding:64px 32px 40px}
  .ft .ft_cta{grid-template-columns:1fr 1fr 1fr}
  .ft .ft_card{padding:18px 20px;gap:12px}
  .ft .ft_card_tx b{font-size:16px}
  .ft .ft_card_tx b.ft_card_num{font-size:19px}
  .ft .ft_main{grid-template-columns:1fr;gap:36px}
  .ft .ft_nav{gap:28px}
}

/* スマホ：入口は LINE を横いっぱい＋残り2つを横並び、メニューは2列。
   画面の下に固定の「LINE・資料請求・電話」のバーがあるので、最後が隠れないよう下に余白を取る */
@media (max-width:767px){
  .ft .ft_in{padding:48px 20px calc(104px + env(safe-area-inset-bottom,0px))}
  .ft .ft_cta{grid-template-columns:1fr 1fr;gap:10px}
  .ft .ft_card{min-height:0;padding:16px;gap:12px;border-radius:12px}
  .ft .ft_card--line{grid-column:1 / -1;padding:18px 20px}
  .ft .ft_card:not(.ft_card--line){flex-direction:column;align-items:flex-start;gap:10px}
  .ft .ft_card_ic{width:40px;height:40px}
  .ft .ft_card_ic svg{width:20px;height:20px}
  .ft .ft_card_tx b{font-size:15px}
  .ft .ft_card--line .ft_card_tx b{font-size:17px}
  .ft .ft_card_tx b.ft_card_num{font-size:17px}
  .ft .ft_card_tx small{font-size:11px}
  .ft .ft_main{margin-top:40px;padding-top:36px;gap:28px}
  .ft .ft_logo img{width:112px}
  .ft .ft_tag{margin-top:10px}
  .ft .ft_nav{grid-template-columns:1fr 1fr;gap:32px 20px}
  .ft .ft_h{font-size:12px;padding-bottom:10px;margin-bottom:6px}
  .ft .ft_col li + li{margin-top:0}
  .ft .ft_col a{display:block;font-size:13px;line-height:1.5;padding:9px 0}
  .ft .ft_bottom{margin-top:36px;padding-top:24px}
  .ft .ft_legal{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin-bottom:16px}
  .ft .ft_legal .item{padding:8px 0;font-size:12px}
  .ft .footer_company,.ft .footer_company p{font-size:11.5px;line-height:1.8}
}

/* 11/23 メディアのページで common.css の .copylight ul .item a（灰）に負けていたので強める */
.footer .ft .ft_legal .item a{color:#fff}
.footer .ft .ft_legal .item a:hover{color:#1cbea1}


/* ============================================================
   2026-11-23 22:00 見た目点検（窪田さん「謎の余白あるで」）※ここだけ .ft の外にも効く（全ページで読まれるCSSがこのファイルのため）
   ・AdSense の自動広告の枠（.google-auto-placed）は、広告が入る前から高さ390pxほどを確保する。
     広告が出ない端末（iPhoneのプライベートブラウズなど）では、カテゴリ一覧の下・締めの箱の下・フッターの中に
     真っ白な空きとして残っていた。広告が入った枠だけ高さを取り、入らない枠は高さ0にする。
     （枠そのものは消していないので、広告の読み込みは今までどおり。確認済み）
   前の形は footer-renewal.css.bak-20261123-look
   ============================================================ */
/* 1) 部品の中（一覧の見出し・記事の題名まわり・入口のカード・サイドバー・締めの箱・実績の帯・フッター・記事内の案内の箱や目次や画像・一覧の見出しの直後）には
      広告の枠を出さない。レイアウトが崩れ、広告が出ない端末では白い空きになるため */
.mm-head .google-auto-placed,.mm-ahead .google-auto-placed,.mm-find .google-auto-placed,.mm-side .google-auto-placed,.mm-band .google-auto-placed,.mm-quick .google-auto-placed,
.masse-trust .google-auto-placed,.footer .google-auto-placed,
.mm-sec_head + .google-auto-placed,.mm-sec > .google-auto-placed:first-child,
.content aside .google-auto-placed,.content figure .google-auto-placed,.content .outline .google-auto-placed,.content .masse-login-link .google-auto-placed,.content table .google-auto-placed,.content [class*="masse-cta"] .google-auto-placed{display:none !important;}
/* 2) それ以外（記事の本文の途中・記事一覧の途中・メディアの冒頭）は、広告が入った枠だけ高さを取る。入らない枠は高さ0 */
.google-auto-placed:not(:has(ins[data-ad-status="filled"])){height:0 !important;min-height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;overflow:visible !important;pointer-events:none !important;}
.google-auto-placed:has(ins[data-ad-status^="unfill"]),ins.adsbygoogle[data-ad-status^="unfill"]{display:none !important;}

/* スマホ：かんたん見積りの吹き出しが「マッセに質問」のボタンの下に入り、LINEボタンの左と注意書きが隠れていたので、
   吹き出しをボタンの上まで持ち上げる（下の固定バー 86px ＋ 質問ボタン 52px ＋ すき間） */
@media screen and (max-width:680px){
  .masse-pop{bottom:152px;}
}

/* 2026-11-23 22:35 窪田さん Discord「記事詳細には広告は減らさないで」→ 記事ページ（.mm--single の中）だけ、上の 1) で隠した広告の枠を元どおり出す。
   広告が入らなかった枠の高さを0にする 2) はそのまま（白い空きだけ消す・広告の数は減らない）。前の形は footer-renewal.css.bak-20261123-singlead */
html body .mm--single .google-auto-placed.google-auto-placed{display:block !important;}

/* ============================================================
   2026-11-24 21:00 記事ページの広告の見せ方（窪田さん Discord 20:52「記事ページのセンス、広告見づらい」）
   ・広告の数と枠は変えない（11/23「記事詳細には広告は減らさないで」）。見せ方だけを整える。
   ・参考: BUSINESS INSIDER JAPAN／日経クロステックの記事ページ。広告は本文と同じ幅で、上に小さく「広告」表記、
     前後に大きめの余白を取り、本文と見分けがつくように区切る。
   ・1) 本文の途中の広告: 薄いグレーの帯＋上下の細い線＋上に「スポンサーリンク」。スマホは画面の端まで帯を伸ばす（広告の幅はそのまま）
   ・2) 案内の箱・LINEの箱・箇条書き・画像の中に入った広告: 箱の中身を先に、広告を箱の一番下へ回す（並び順だけ。DOMは動かさない）
        箱の中では白い板に載せて、ボタンやリンクとの間を空ける
   ・3) 広告が入る前から高さを取っておく（入ったときに本文が跳ねないように）。入らなかった枠は従来どおり高さ0
   前の形は footer-renewal.css.bak-20261124-adlook
   ============================================================ */
/* 1) 本文の途中の広告（自動広告・手動の記事内広告） */
html body .mm--single .content .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty),
html body .mm--single .content .masse-ad-pc{
  position:relative;box-sizing:border-box;clear:both;
  height:auto !important;margin:44px 0 !important;padding:30px 0 18px !important;
  background:#f6f7f8;border-top:1px solid #e3e6e9 !important;border-bottom:1px solid #e3e6e9 !important;
  text-align:center;overflow:visible !important;
}
html body .mm--single .content .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty)::before{
  content:"スポンサーリンク";position:absolute;top:9px;left:0;right:0;
  font-size:11px;font-weight:400;line-height:1;letter-spacing:.14em;color:#7c838a;text-align:center;pointer-events:none;
}
html body .mm--single .content .masse-ad-pc .masse-ad-pc_label{
  position:absolute;top:9px;left:0;right:0;margin:0;
  font-size:11px;font-weight:400;line-height:1;letter-spacing:.14em;color:#7c838a;text-align:center;
}
/* 手動の記事内広告（PCだけ）も、入る前から高さを取っておく */
html body .mm--single .content .masse-ad-pc ins.adsbygoogle:not([data-ad-status]){min-height:250px;}
/* 見出しの直後に入った広告は、見出しとの間を少し詰める（見出しが広告の題名に見えないよう線で区切る） */
html body .mm--single .content :is(h2,h3) + .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){margin-top:20px !important;}

/* 2) 箱・箇条書き・画像の中に入った広告は、その箱の一番下へ（並び順だけ変える） */
html body .mm--single .content :is(ul,ol,figure,aside,div,section,blockquote):not(.content):not(.google-auto-placed):has(> .google-auto-placed){display:flex;flex-direction:column;}
html body .mm--single .content :is(ul,ol,figure,aside,div,section,blockquote):not(.content):has(> .google-auto-placed) > .google-auto-placed{order:99;}
html body .mm--single .content :is(ul,ol):has(> .google-auto-placed) > li{width:100%;}
html body .mm--single .content figure:has(> .google-auto-placed) > img{align-self:center;}
html body .mm--single .content :is(aside,div):has(> .google-auto-placed) > a[class$="_btn"]{width:100%;box-sizing:border-box;}
/* 色のついた箱の中では、白い板に載せる */
html body .mm--single .content :is(aside,div,section,blockquote) > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){
  margin:26px 0 0 !important;background:#fff;border-top:0 !important;border-bottom:0 !important;
  border-radius:8px;box-shadow:0 0 0 1px rgba(25,25,25,.08);
}
html body .mm--single .content :is(ul,ol,figure) > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){margin:28px 0 8px !important;}
html body .mm--single .content :is(aside,div) :is(ul,ol) > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){
  margin:26px 0 0 !important;background:#fff;border-top:0 !important;border-bottom:0 !important;border-radius:8px;box-shadow:0 0 0 1px rgba(25,25,25,.08);
}

/* 3) 入らなかった枠・読み込まれなかった枠は高さ0（記事ページの下の小さなスクリプトが印を付ける） */
html body .mm--single .google-auto-placed.mm-ad-empty:not(:has(ins[data-ad-status="filled"])),
html body .mm--single .masse-ad-pc.mm-ad-empty:not(:has(ins[data-ad-status="filled"])){
  height:0 !important;min-height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;background:none !important;overflow:hidden !important;
}
html body .mm--single .masse-ad-pc.mm-ad-empty:not(:has(ins[data-ad-status="filled"])) ins{min-height:0 !important;}

/* スマホ: 本文の途中の帯は画面の端まで（広告そのものの幅は変えない） */
@media screen and (max-width:767px){
  html body .mm--single .content > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){
    width:auto !important;margin:36px -16px !important;padding:30px 16px 16px !important;
  }
  html body .mm--single .content > :is(ul,ol,figure) > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){
    width:auto !important;margin:28px -16px 8px !important;padding:30px 16px 16px !important;
  }
  /* スマホの広告は画面の幅いっぱいに出るため、箱の中では白い板を敷かず「スポンサーリンク」と余白だけにする */
  html body .mm--single .content :is(aside,div,section,blockquote) > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty),
  html body .mm--single .content :is(aside,div) :is(ul,ol) > .google-auto-placed.google-auto-placed:not(:has(ins[data-ad-status^="unfill"])):not(.mm-ad-empty){
    margin-top:22px !important;background:transparent;box-shadow:none;border-top:1px solid rgba(25,25,25,.1) !important;border-radius:0;
  }
}
