/* 無料相談への入口（相談ページ・記事3本・案内枠・トップの区画）。mc- で始まるクラスだけを使う。 */
.mc-box,.mc-box *,.mc-top,.mc-top *,.mc-page *{box-sizing:border-box}

/* ボタンとリンク */
a.mc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:12px 28px;border:2px solid #0068b7;border-radius:8px;background:#0068b7;color:#fff;font-size:17px;font-weight:700;line-height:1.5;text-align:center;text-decoration:none}
a.mc-btn:hover{background:#004b87;border-color:#004b87;color:#fff;text-decoration:underline;text-underline-offset:4px}
a.mc-btn.mc-btn-sub{background:#fff;color:#004b87}
a.mc-btn.mc-btn-sub:hover{background:#eaf4fc;color:#004b87}
a.mc-btn:focus-visible,.mc-box a:focus-visible,.mc-top a:focus-visible,.mc-page a:focus-visible,.mc-page summary:focus-visible{outline:4px solid #000;outline-offset:2px;box-shadow:0 0 0 2px #ffd43d}

/* 記事の下の案内枠 */
.mc-box{max-width:868px;margin:40px auto;padding:0 24px;font-family:'Noto Sans JP',system-ui,sans-serif;color:#1f2b3a;text-align:left;line-height:1.8}
.mc-box-inner{border:1px solid #c4d6e5;border-radius:12px;background:#fff;overflow:hidden}
.mc-box-item{padding:24px}
.mc-box-item+.mc-box-item{border-top:1px solid #c4d6e5;background:#f5f9fc}
.mc-box h2.mc-box-title{margin:0 0 8px;padding:0;border:0;font-size:20px;line-height:1.6;color:#17334c;text-align:left}
.mc-box p{margin:0 0 16px;font-size:16px;color:#33475b}
.mc-box p:last-child{margin-bottom:0}
.mc-box a.mc-link{display:inline-block;padding:6px 0;color:#005a9e;font-size:16px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.mc-box p.mc-also{margin:12px 0 0}
.mc-hero h2.mc-q{margin:0 0 8px;font-size:20px;line-height:1.6}
.mc-box a.mc-link:hover{text-decoration-thickness:3px}

/* トップの区画 */
.mc-top{padding:56px 0;background:#fff;color:#1f2b3a}
.mc-top .mc-container{max-width:1100px;margin:auto;padding:0 24px}
.mc-top h2{margin:0 0 8px;font-size:clamp(1.45rem,3vw,2rem);line-height:1.5;color:#17334c}
.mc-top p{margin:0 0 24px;font-size:16px;color:#445568}
.mc-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:0 0 28px;padding:0}
.mc-choices li{display:flex}
.mc-choices a{display:block;width:100%;padding:20px;border:2px solid #c4d6e5;border-radius:12px;background:#fff;color:#17334c;text-decoration:none;line-height:1.7}
.mc-choices a strong{display:block;margin-bottom:8px;font-size:18px;color:#005a9e;text-decoration:underline;text-underline-offset:4px}
.mc-choices a span{display:block;font-size:16px;color:#33475b}
.mc-choices a:hover{border-color:#0068b7;background:#f5f9fc}

/* 記事3本・相談ページの本文 */
.mc-page .content,.mc-page .content p,.mc-page .content li{font-size:16px}
.mc-page .content a:not(.mc-btn){text-underline-offset:3px}
.mc-page .mc-meta{margin:20px 0 0;font-size:16px;color:#445568}
.mc-page .mc-pr{margin:8px 0 0;font-size:16px;color:#445568}
.mc-page .mc-action{margin:32px 0;padding:28px 24px;border:2px solid #0068b7;border-radius:12px;background:#f5f9fc}
.mc-page .content .mc-action h2,.mc-page .content .mc-action h3{margin:0 0 12px;padding:0;border:0;font-size:20px}
.mc-page .mc-action p:last-child{margin-bottom:0}
.mc-page .mc-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.mc-page .content table{min-width:0;font-size:16px}
.mc-page .mc-small{font-size:16px;color:#445568}
.mc-page .mc-plans{display:grid;gap:12px;margin:16px 0}
.mc-page .mc-plan{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:16px;border:1px solid #c4d6e5;border-radius:8px;background:#fff}
.mc-page .mc-plan strong{display:block}

/* 相談ページ */
.mc-narrow{max-width:820px;margin:auto;padding:0 24px}
.mc-hero{padding:40px 0 8px;background:#eaf4fc}
.mc-hero h1{margin:8px 0 16px;font-size:clamp(1.7rem,5vw,2.4rem);line-height:1.5}
.mc-hero p{margin:0 0 20px}
.mc-hero .mc-choices{padding-bottom:32px;margin-bottom:0}
.mc-sit{scroll-margin-top:96px}
.mc-steps{list-style:decimal;padding-left:1.5em}
.mc-steps li{margin:0 0 14px}
.mc-steps strong{display:block}
.mc-photo{display:block;width:160px;height:160px;margin:0 0 20px;border-radius:50%;object-fit:cover;object-position:40% 20%}
.mc-narrow.content{padding-bottom:32px}
.mc-narrow.content>section>h2:first-child{margin-top:56px}

@media(max-width:800px){
  .mc-choices{grid-template-columns:1fr}
  .mc-top{padding:40px 0}
  .mc-top .mc-container,.mc-narrow,.mc-box{padding-left:18px;padding-right:18px}
  .mc-box-item{padding:20px 18px}
  a.mc-btn{width:100%;padding-left:16px;padding-right:16px}
  .mc-page .mc-action{padding:20px 16px}
  .mc-page .mc-plan{display:block}
  .mc-page .mc-plan a{margin-top:12px}
  .mc-page .content .mc-stack table,.mc-page .content .mc-stack tbody,.mc-page .content .mc-stack tr,.mc-page .content .mc-stack td{display:block;width:100%}
  .mc-page .content .mc-stack caption{display:block;width:100%;margin-bottom:8px;text-align:left}
  .mc-page .content .mc-stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .mc-page .content .mc-stack tr{margin-bottom:12px;border-top:3px solid #c4d6e5}
  .mc-page .content .mc-stack td{border-top:0}
  .mc-page .content .mc-stack td::before{content:attr(data-label);display:block;font-size:16px;font-weight:700;color:#005a9e}
  .mc-page .content .mc-stack td:first-child{background:#eaf4fc;font-weight:700}
  .mc-page .content .mc-stack td:first-child::before{content:none}
}

/* 見出しは文節で折り返す（対応していないブラウザは通常の折り返し） */
.mc-page h1,.mc-page h2,.mc-top h2{word-break:auto-phrase;text-wrap:pretty}
@media(max-width:600px){.mc-page h1 br{display:none}}
