@charset "UTF-8";
/* 全ページ共通のヘッダーとフッター（2026-09-17 に TOP の新デザインへ統一）。
   style.css / legacy.css / top.css の :root と名前がぶつからないよう、変数はすべて --mh- で始め、
   .mh-header / .mh-footer の中だけで定義する。クラスも mh- で始める。 */
.mh-header, .mh-footer {
  --mh-ink: #254c3e; --mh-muted: #637569; --mh-green: #276346; --mh-lime: #e0e8af;
  --mh-orange: #b95833; --mh-line: #d5d8c8; --mh-paper: #f5f3e9; --mh-panel: #fffdf4; --mh-max: 1160px;
  color: var(--mh-ink); font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.mh-wide { --mh-max: 1328px; }
.mh-wrap { width: min(var(--mh-max), calc(100% - 40px)); margin-inline: auto; }
.mh-header a, .mh-footer a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mh-header :is(a, button):focus-visible, .mh-footer a:focus-visible { outline: 3px solid var(--mh-orange); outline-offset: 4px; }

/* ヘッダー */
.mh-header { position: relative; z-index: 30; }
.mh-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 20px; }
.mh-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -.035em; white-space: nowrap; }
.mh-brand svg { width: 30px; height: auto; flex-shrink: 0; display: block; }
.mh-brand small { display: block; margin-top: 4px; color: inherit; font: 600 8px/1.8 Arial, sans-serif; letter-spacing: .08em; }
.mh-menu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0; border: 1px solid var(--mh-line); border-radius: 999px; background: var(--mh-paper); color: var(--mh-ink); font: 700 13px/1 "Yu Gothic", YuGothic, Meiryo, sans-serif; cursor: pointer; }
.mh-menu[hidden] { display: none; }
.mh-menu-label { display: none; }
.mh-menu-icon, .mh-menu-icon::before, .mh-menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, background .2s; }
.mh-menu-icon { position: relative; }
.mh-menu-icon::before, .mh-menu-icon::after { content: ""; position: absolute; left: 0; }
.mh-menu-icon::before { top: -5px; }
.mh-menu-icon::after { top: 5px; }
.mh-menu[aria-expanded="true"] .mh-menu-icon { background: transparent; }
.mh-menu[aria-expanded="true"] .mh-menu-icon::before { transform: translateY(5px) rotate(45deg); }
.mh-menu[aria-expanded="true"] .mh-menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.mh-contact { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--mh-green); border-radius: 999px; background: var(--mh-green); color: #fffdf4 !important; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .25s, box-shadow .25s; }
.mh-contact > span[aria-hidden] { font: 22px/1 Arial, sans-serif; }
.mh-contact-label { display: none; }
.mh-contact:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--mh-lime); }
.mh-nav { display: flex; flex-wrap: wrap; gap: 0 20px; order: 5; width: 100%; font-size: 13px; font-weight: 700; }
.mh-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mh-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mh-nav-contact { display: none !important; }
/* JavaScript が動くときだけ、狭い画面のメニューを開閉式にする（動かなければ上の折り返し表示のまま） */
.mh-js .mh-nav { display: none; position: absolute; top: calc(100% - 8px); left: 20px; right: 20px; flex-direction: column; gap: 0; width: auto; padding: 8px 20px; background: var(--mh-panel); border: 1px solid var(--mh-line); border-radius: 16px; box-shadow: 0 20px 48px #213f3526; font-size: 15px; }
.mh-js .mh-nav.is-open { display: flex; }
.mh-js .mh-nav a { min-height: 52px; border-bottom: 1px solid var(--mh-line); }
.mh-js .mh-nav a:last-child { border-bottom: 0; }
.mh-js .mh-nav .mh-nav-contact { display: inline-flex !important; color: var(--mh-green); }
/* 狭い端末では丸い相談ボタンを隠す（メニューの中と、各ページ下の案内から行ける） */
@media (max-width: 374px) { .mh-js .mh-contact { display: none; } }
@media (max-width: 359px) {
  .mh-brand { font-size: 15px; gap: 8px; }
  .mh-brand svg { width: 26px; }
  .mh-brand small { font-size: 8px; letter-spacing: .01em; }
}
@media (min-width: 768px) {
  .mh-wide .mh-wrap { width: min(var(--mh-max), calc(100% - 80px)); }
  .mh-header-row { gap: 12px; padding-block: 28px; }
  .mh-brand { font-size: 22px; gap: 14px; }
  .mh-brand svg { width: 39px; }
  .mh-brand small { font-size: 9px; }
  .mh-menu { padding: 0 18px; }
  .mh-menu-label { display: inline; }
  .mh-contact { width: auto; gap: 20px; padding: 12px 20px; }
  .mh-contact-label { display: inline; }
  .mh-js .mh-nav { left: auto; right: 0; width: 280px; }
}
@media (min-width: 1100px) {
  .mh-header-row { flex-wrap: nowrap; gap: 32px; }
  .mh-menu { display: none !important; }
  .mh-nav, .mh-js .mh-nav { display: flex; position: static; flex-direction: row; order: 0; width: auto; padding: 0; gap: 28px; background: none; border: 0; box-shadow: none; font-size: 13px; }
  .mh-js .mh-nav a { min-height: 44px; border: 0; }
  .mh-nav a:hover { color: var(--mh-orange); }
  .mh-js .mh-nav .mh-nav-contact { display: none !important; }
  .mh-contact { padding: 12px 24px; }
}

/* フッター */
.mh-footer { padding-block: 40px 24px; }
.mh-footer-grid { position: relative; }
.mh-footer-name { font-size: 19px; font-weight: 800; }
.mh-footer-brand p { margin: 4px 0 0; font-size: 12px; line-height: 1.8; }
.mh-footer-brand .mh-hours { margin-top: 12px; color: var(--mh-muted); }
.mh-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block: 20px; font-size: 12px; }
.mh-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mh-footer nav a:hover { color: var(--mh-orange); }
.mh-copy { margin: 0; padding-right: 60px; font-size: 10px; color: var(--mh-muted); }
.mh-back-top { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--mh-line); border-radius: 50%; }
/* 下端に固定の「無料で相談する」バーが出るページでは、その高さ分だけ空ける */
@media (max-width: 767px) { body:has(.mobile-contact) .mh-footer { padding-bottom: 104px; } }
@media (min-width: 768px) {
  .mh-footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
  .mh-footer nav { justify-content: end; margin: 0; }
  .mh-copy { grid-column: 1 / -1; }
}
/* 相談の案内（緑の帯）。TOP と同じ見た目。h2 や p はほかのCSSの要素指定に負けないよう、すべて mh-cta の中で指定する */
.mh-cta { --mh-green: #276346; --mh-lime: #e0e8af; --mh-ink: #254c3e; --mh-paper: #f5f3e9; --mh-max: 1160px;
  background: var(--mh-green); color: var(--mh-paper); overflow: hidden; font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
.mh-cta.mh-wide { --mh-max: 1328px; }
.mh-cta-inner { position: relative; padding-block: 64px; text-align: center; }
.mh-cta .mh-cta-eyebrow { margin: 0; color: var(--mh-paper); font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.9; }
.mh-cta :is(h2, p, a) { font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-feature-settings: normal; }
/* 長い見出しでも左の切手の絵にかからないよう、幅を抑えて折り返す */
.mh-cta h2 { max-width: 15em; margin: 16px auto 24px; color: var(--mh-paper); font-size: clamp(26px, 4vw, 48px); font-weight: 800; line-height: 1.65; letter-spacing: -.04em; }
.mh-cta .mh-cta-lead { margin: 0 auto; max-width: 40em; color: var(--mh-paper); font-size: 14px; line-height: 1.9; }
.mh-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 48px; min-height: 52px; margin-top: 32px; padding: 12px 24px; border: 1px solid var(--mh-lime); border-radius: 999px; background: var(--mh-lime); color: var(--mh-ink) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: transform .25s, box-shadow .25s; }
.mh-cta-button > span { font: 24px/1 Arial, sans-serif; }
.mh-cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 #142e2c; }
.mh-cta-button:focus-visible { outline: 3px solid var(--mh-lime); outline-offset: 4px; }
.mh-cta .mh-cta-note { margin: 16px 0 0; color: var(--mh-paper); font-size: 12px; opacity: .8; }
.mh-postmark { display: none; position: absolute; width: 148px; height: 176px; border: 1px solid #f5f3e970; padding: 12px; transform: rotate(-12deg); color: var(--mh-lime); font: 25px Georgia, serif; text-align: center; }
.mh-postmark > span { display: block; margin-top: 4px; font: 7px/2 Arial, sans-serif; letter-spacing: .09em; }
.mh-postmark svg { display: block; width: 80px; margin: 12px auto 0; }
@media (max-width: 767px) { .mh-cta .mh-cta-lead br { display: none; } .mh-cta h2 { font-size: 26px; } }
@media (min-width: 768px) {
  .mh-cta.mh-wide .mh-wrap { width: min(var(--mh-max), calc(100% - 80px)); }
  .mh-cta-inner { padding-block: 88px; }
  .mh-postmark { display: block; left: 0; top: 112px; width: 120px; height: 160px; }
}
@media (min-width: 1100px) { .mh-postmark { left: 8%; width: 148px; height: 176px; } }
@media print { .mh-cta { background: none; color: #000; } .mh-cta *, .mh-cta h2 { color: #000 !important; } .mh-postmark { display: none; } }
@media print { .mh-menu, .mh-nav, .mh-contact, .mh-footer nav, .mh-back-top { display: none !important; } }
