/* MY HOME NAVI MIYAGI — 住宅会社ページ（デザイン案 C-Builder・スタイル⑥ フレッシュライム）
   すべて .mhn の中だけに効かせる。テーマ（Cocoon）の他のページには影響しない。 */

/* ---- テーマのレイアウトを1カラムにする ---- */
.mhn-page #sidebar,.mhn-page .sidebar{display:none !important}
.mhn-page .content-in{display:block !important}
.mhn-page .main.mhn,.mhn-page main.mhn{width:100% !important;max-width:none !important;margin:0 !important;padding:0 !important;border:none !important;background:#fff !important;box-shadow:none !important}

/* ---- 基本 ---- */
.mhn{--ink:#141A14;--lime:#B4E33D;--pale:#F1F8DC;--deep:#1F4A2E;--line:#DADDD6;font-family:'Zen Kaku Gothic New',sans-serif;color:#111;line-height:1.8;font-size:16px}
.mhn *{box-sizing:border-box}
.mhn a{color:var(--ink)}
.mhn a:hover{color:var(--deep)}
.mhn h1,.mhn h2,.mhn h3{font-family:'Zen Kaku Gothic New',sans-serif;font-weight:500;color:#111;border:none;background:none;padding:0;margin:0}
.mhn h2::before,.mhn h2::after,.mhn h3::before,.mhn h3::after{content:none !important}
.mhn-wrap{max-width:1200px;margin:0 auto;padding:0 40px}
.mhn-en,.mhn-no,.mhn-rul-v{font-family:'Jost',sans-serif;font-weight:500;color:var(--ink)}
.mhn-ph{color:#8A8A8A}
.mhn-h2{font-size:26px;line-height:1.35}
.mhn-small{font-size:13px;color:#555}
.mhn-fine{margin:12px 0 0;font-size:12px;color:#555}
.mhn-note{margin:6px 0 8px;font-size:14px;line-height:1.8;color:#333}
.mhn-sec{padding-top:72px;padding-bottom:56px}

.mhn-crumb{padding-top:20px;font-size:12px;color:#555}
.mhn-crumb a{color:#555}

/* ---- 扉 ---- */
.mhn-hero{padding-top:36px;padding-bottom:56px}
.mhn-kicker{font-size:14px;font-weight:500}
.mhn-hero-row{display:flex;flex-wrap:wrap;gap:32px 48px;align-items:flex-end;margin-top:24px}
.mhn-hero-text{flex:999 1 520px;min-width:0}
.mhn-name{font-size:52px !important;line-height:1.1 !important;letter-spacing:-0.01em}
.mhn-lead{margin:24px 0 0;font-size:17px;line-height:1.8;font-weight:500;max-width:30em}
.mhn-hero-fig{flex:1 1 300px;margin:0;max-width:420px}
.mhn-hero-fig img{aspect-ratio:4/3;width:100%;height:auto;object-fit:cover;display:block}
.mhn-hero-fig figcaption,.mhn-visit-fig figcaption,.mhn-est figcaption{margin-top:6px;font-size:11px;color:#555}
.mhn-meta{display:flex;flex-wrap:wrap;gap:6px 32px;margin-top:32px;padding-top:14px;border-top:1px solid var(--ink);font-size:13px;color:#555}

/* ---- 物差し ---- */
.mhn-rulers{padding-top:40px;padding-bottom:16px}
.mhn-rulers-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:3px solid var(--ink);padding-bottom:8px}
.mhn-rulers-head h2{font-size:17px}
.mhn-legend{font-size:12px;color:#555;white-space:nowrap}
.mhn-dot-s{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--lime);border:1.5px solid var(--ink);vertical-align:-1px}
.mhn-tick-s{display:inline-block;width:2px;height:10px;background:#8A8F87;vertical-align:-1px}
.mhn-rul{display:grid;grid-template-columns:200px minmax(170px,max-content) minmax(0,1fr);gap:8px 32px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}
.mhn-rul-k{font-size:15px;font-weight:500}
.mhn-rul-sub{font-size:12px;color:#555;margin-top:2px}
.mhn-rul-v{font-size:30px;line-height:1.1;white-space:nowrap}
.mhn-rul-v small{font-family:'Zen Kaku Gothic New',sans-serif;font-size:14px;color:#111;margin-left:4px}
.mhn-track{position:relative;height:34px}
.mhn-line{position:absolute;left:0;right:0;top:16px;height:2px;background:var(--line)}
.mhn-ref{position:absolute;top:4px;bottom:0;border-left:1.5px dashed var(--deep)}
.mhn-band{position:absolute;top:13px;height:8px;background:var(--lime);opacity:.55;border-radius:4px}
.mhn-tick{position:absolute;top:11px;width:2px;height:12px;background:#8A8F87}
.mhn-dot{position:absolute;top:8px;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:var(--lime);border:2px solid var(--ink)}
.mhn-scale{position:relative;height:30px;font-size:11px;line-height:1.3;color:#555;margin-top:2px}
.mhn-scale .mhn-lo{position:absolute;left:0;bottom:0}
.mhn-scale .mhn-hi{position:absolute;right:0;bottom:0}
.mhn-scale .mhn-reflbl{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap;color:var(--deep);font-weight:500;background:none;padding:0;border:none}

/* ---- ひとことで ---- */
.mhn-split{display:flex;flex-wrap:wrap;gap:24px 64px}
.mhn-split > .mhn-h2{flex:1 1 240px}
.mhn-split-body{flex:3 1 520px;min-width:0;max-width:760px}
.mhn-summary{margin:0;font-size:17px;line-height:2.1}
.mhn-fit{display:flex;flex-wrap:wrap;gap:32px;margin-top:32px}
.mhn-fit > div{flex:1 1 240px;padding-top:14px}
.mhn-fit-yes{border-top:3px solid var(--ink)}
.mhn-fit-no{border-top:1px solid var(--ink)}
.mhn-fit h3{font-size:15px}
.mhn-fit-no h3{color:#555}
.mhn-fit ol{margin:10px 0 0;padding-left:1.3em;font-size:16px;line-height:2}

/* ---- 展示場で確かめること ---- */
.mhn-visit{padding-top:16px;padding-bottom:80px}
.mhn-visit-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);border-top:3px solid var(--ink)}
.mhn-visit-grid > :only-child{grid-column:1 / -1;padding-left:0 !important}
.mhn-visit-fig{margin:0;padding:24px 32px 0 0;border-right:1px solid var(--line)}
.mhn-visit-fig img{width:100%;aspect-ratio:3/2;height:auto;object-fit:cover;display:block}
.mhn-visit-body{padding:24px 0 0 32px}
.mhn-checks{list-style:none;margin:0;padding:0}
.mhn-checks li{display:grid;grid-template-columns:44px 1fr;gap:0 4px;padding:14px 0;border-bottom:1px solid var(--line)}
.mhn-no{font-size:22px;line-height:1.2}
.mhn-checks .t{font-size:16px;font-weight:500}
.mhn-checks .d{margin-top:4px;font-size:14px;line-height:1.75;color:#333}
.mhn-checks .q{margin-top:6px;font-size:12px;color:var(--deep)}

/* ---- 仕様 ---- */
.mhn-specs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 32px}
.mhn-specs li{border-top:1px solid var(--ink);padding:16px 0 22px}
.mhn-specs .k{font-size:14px;font-weight:500}
.mhn-specs .v{margin-top:8px;font-size:17px}

/* ---- 見積もりメモ ---- */
.mhn-memo{background:var(--pale)}
.mhn-memo-grid{padding-top:72px;padding-bottom:76px;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:40px 56px;align-items:start}
.mhn-memo-grid p{margin:16px 0 0;font-size:15px;line-height:1.95}
.mhn-memo-grid .mhn-h2{margin-top:28px}
.mhn-by{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.6}
.mhn-by img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none;background:#fff}
.mhn-by b{font-weight:500;font-size:15px}
.mhn-by span{color:#555}
.mhn-est{margin:0}
.mhn-est-sheet{background:#fff;border:1px solid var(--ink);padding:22px 24px 10px;font-size:14px}
.mhn-est-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--ink);padding-bottom:8px}
.mhn-est-head span:first-child{font-weight:500;font-size:15px;letter-spacing:0.2em}
.mhn-est-head span:last-child{font-size:12px;color:#555}
.est-r{display:grid;grid-template-columns:minmax(0,1fr) 92px minmax(0,190px);gap:0 16px;align-items:baseline;padding:11px 0;border-bottom:1px dashed #BFC4BB}
.est-r:last-child{border-bottom:none}
.mhn-est-v{text-align:right;font-family:'Jost',sans-serif;font-weight:500}
.est-n{font-size:12px;line-height:1.6;color:var(--deep);border-left:2px solid var(--lime);padding-left:10px}
.est-n.is-empty{border-left-color:transparent}

/* ---- 比較表 ---- */
.mhn-scroll{overflow-x:auto}
.mhn-tbl{width:100%;min-width:660px;border-collapse:collapse;font-size:15px;margin:0}
.mhn-tbl th,.mhn-tbl td{border:none;border-bottom:1px solid #DDD;padding:14px 12px;text-align:left;vertical-align:top;background:none}
.mhn-tbl thead th{border-bottom:3px solid var(--ink);font-size:14px}
.mhn-tbl .me{background:var(--pale);box-shadow:inset 0 -3px 0 var(--lime)}
.mhn-tbl a.lift{display:inline-block;padding:2px 4px}

/* ---- エリア ---- */
.mhn-areas{padding-bottom:72px}
.mhn-areas h2{font-size:20px;margin-bottom:20px}
.mhn-chips{display:flex;flex-wrap:wrap;gap:10px}
.mhn .chip{display:inline-block;border:1.5px solid var(--ink);padding:8px 14px;font-size:15px;font-weight:500;text-decoration:none;color:var(--ink)}
.mhn .chip.is-plain{border-color:#BFC4BB;color:#333}

/* ---- よくある質問 ---- */
.mhn .qa{padding-bottom:72px}
.mhn .qa details{border-top:1px solid var(--line);padding:16px 0}
.mhn .qa details:last-of-type{border-bottom:1px solid var(--line)}
.mhn .qa summary{cursor:pointer;list-style:none;font-size:16px;font-weight:500;padding-right:28px}
.mhn .qa summary::-webkit-details-marker{display:none}
.mhn .qa details p{margin:10px 0 0;font-size:15px;line-height:1.9}

/* ---- タウンライフへの案内 ---- */
.mhn-cta-sec{padding-bottom:88px}
.mhn-cta{border:3px solid var(--ink);padding:40px;display:flex;flex-wrap:wrap;gap:28px;align-items:center}
.mhn-cta-text{flex:999 1 480px;min-width:0}
.mhn-pr{margin:0 0 10px;font-size:12px;color:#555}
.mhn-cta-title{margin:0;font-size:20px;line-height:1.55;font-weight:500}
.mhn-cta-taro{display:flex;gap:10px;align-items:flex-start;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.mhn-cta-taro img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.mhn-cta-taro p{margin:0;font-size:13px;line-height:1.8}
.mhn-cta-taro .mk{font-weight:500}
.mhn .mhn-cta-btn{flex:0 1 auto;display:block;text-align:center;background:var(--ink);color:#fff;text-decoration:none;font-weight:500;font-size:17px;padding:22px 36px;white-space:nowrap}
.mhn .mhn-cta-btn:hover{color:#fff;background:#2A332A}
.mhn-cta-btn small{font-size:13px;margin-left:6px}

/* ---- スマホの下のボタン ---- */
.mhn .sp-bar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--ink);color:#fff;padding:8px 8px 8px 14px;align-items:center;gap:10px}
.mhn .sp-bar a{flex:1;color:#fff;text-decoration:none;font-size:13px;font-weight:500;line-height:1.45}
.mhn .sp-bar a span{display:block;font-size:11px;color:var(--lime)}
.mhn-sp-pr{font-size:10px;color:#BDBDBD;flex:none}
.mhn .sp-bar button{background:none !important;border:none !important;padding:0 !important;box-shadow:none !important;color:#fff !important;font-size:20px;width:44px;height:44px;cursor:pointer;flex:none}

/* ---- 比較ページ（/builders/） ---- */
.mhn-name-hub{font-size:40px !important;line-height:1.3 !important;margin-top:20px !important}
.mhn-hub-table .mhn-tbl td{font-size:14px}
.mhn-hub-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:0 32px}
.mhn .mhn-hub-card{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#111;border-top:3px solid var(--ink);padding:18px 8px 26px}
.mhn-hub-no{font-family:'Jost',sans-serif;font-size:13px;color:var(--sub)}
.mhn-hub-name{font-size:20px;font-weight:500}
.mhn-hub-sum{font-size:14px;line-height:1.85;color:#333}
.mhn-hub-more{font-size:14px;font-weight:500;margin-top:6px}
@media (max-width:760px){.mhn-name-hub{font-size:28px !important}}

/* ===== 動き（デザイン案 design/README.md「動きのルール」） ===== */
.mhn .mk{background:linear-gradient(#B4E33D,#B4E33D) no-repeat 0 88%/100% 45%}
.mhn button.term,.mhn button.term:hover,.mhn button.term:focus{position:relative;display:inline;border:none !important;border-bottom:1px dotted var(--deep) !important;background:none !important;padding:0 !important;margin:0;font:inherit !important;color:inherit !important;cursor:help;border-radius:0 !important;box-shadow:none !important;text-decoration:none !important;min-height:0;width:auto;line-height:inherit !important;letter-spacing:inherit;text-transform:none}
.mhn button.term:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.mhn .term .tip{position:absolute;left:0;bottom:calc(100% + 8px);width:max-content;max-width:240px;background:var(--ink);color:#fff;font-size:12px;line-height:1.6;font-weight:400;padding:8px 10px;text-align:left;white-space:normal;opacity:0;visibility:hidden;transition:opacity .15s;z-index:30;pointer-events:none}
.mhn .term:hover .tip,.mhn .term:focus .tip{opacity:1;visibility:visible}
.mhn .chip,.mhn .lift{transition:transform .15s ease,background-color .15s ease}
.mhn .chip:hover,.mhn .lift:hover{transform:translateY(-2px);background-color:var(--pale)}
.mhn .qa summary::after{content:'+';float:right;margin-right:-28px;font-family:'Jost',sans-serif;font-size:20px;line-height:1;transition:transform .2s}
.mhn .qa details[open] summary::after{transform:rotate(45deg)}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mhn .mk{animation:mhn-mk linear both;animation-timeline:view();animation-range:entry 100% cover 25%}
    .mhn .dot{animation:mhn-dot ease-out both;animation-timeline:view();animation-range:entry 80% cover 30%}
    .mhn .sp-bar{animation:mhn-bar linear both;animation-timeline:scroll(root);animation-range:0 700px}
  }
}
@keyframes mhn-mk{from{background-size:0% 45%}to{background-size:100% 45%}}
@keyframes mhn-dot{from{left:0;opacity:.2}to{left:var(--x);opacity:1}}
@keyframes mhn-bar{0%,75%{transform:translateY(110%)}100%{transform:none}}

/* ---- スマホ ---- */
@media (max-width:760px){
  .mhn-wrap{padding:0 16px}
  .mhn-name{font-size:36px !important}
  .mhn-h2 br{display:none}
  .mhn-rul{grid-template-columns:1fr auto}
  .mhn-rul > div:last-child{grid-column:1 / -1}
  .mhn-visit-grid{grid-template-columns:1fr}
  .mhn-visit-fig{padding:16px 0 0;border-right:none}
  .mhn-visit-body{padding:24px 0 0}
  .mhn-memo-grid{grid-template-columns:1fr}
  .est-r{grid-template-columns:minmax(0,1fr) auto}
  .est-n{grid-column:1 / -1;margin-top:6px}
  .est-n.is-empty{display:none}
  .mhn-cta{padding:22px}
  .mhn .mhn-cta-btn{white-space:normal;flex:1 1 100%}
  .mhn .sp-bar{display:flex}
  .mhn .term .tip{max-width:220px}
  .mhn-page{padding-bottom:64px}
}
