/* トップページ専用。共通ナビ・FAQ・比較スライダーは既存スタイルを使用。 */
.mk-home { --ink: #103c54; --gold: #d7c28c; --mk-contact-safe-bottom: env(safe-area-inset-bottom, 0px); }
/* 企業情報ページの帯と同じ角丸を外周に適用する。 */
.mk-home .hero,
.mk-home .mk-end {
  border-radius: 14px;
  overflow: hidden;
}
.mk-home .hero {
  display: grid; grid-template-columns: 47% 53%; width: 100%;
  margin: 0 auto; background: var(--ink); color: white; position: relative;
}
.mk-home .hero #top-hero { grid-area: 1/2; width: 100%; height: 100%; min-height: 410px; margin: 0; border-radius: 0; }
.mk-intro { grid-area: 1/1; text-align: left; align-self: center; min-width: 0; padding: clamp(28px,4vw,70px) clamp(16px,3vw,48px); }
.mk-intro h1 { color: white; font-size: clamp(2.4rem,4.3vw,4.4rem); line-height: 1.18; margin: .4em 0; letter-spacing: .02em; }
.mk-intro h1 span { display: inline-block; }
.mk-intro p { color: white; line-height: 1.75; margin: .8em 0; }
.mk-intro .mk-place { color: #e5d5ac; font-size: .9rem; }
.mk-intro .mk-lead { font-size: clamp(1.1rem,1.7vw,1.5rem); font-weight: 700; }
.mk-actions,.mk-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mk-actions a { display: grid; place-items: center; min-height: 46px; padding: 4px 16px; font-weight: 700; text-align: center; text-decoration: none; box-sizing: border-box; }
.mk-actions { margin-top: 20px; }
.mk-actions a { background: var(--gold); color: #123347; border-radius: 4px; }
.mk-actions a + a { background: white; color: var(--ink); }
.mk-section { box-sizing: border-box; width: min(1080px,92%); margin: auto; padding: clamp(34px,5vw,76px) 0; color: var(--ink); text-align: left; }
.mk-section h2 { margin: 0 0 22px; color: var(--ink); line-height: 1.4; font-size: clamp(1.4rem,2.5vw,2.1rem); }
.mk-section h3 { margin: .4em 0; font-size: 1.22rem; line-height: 1.5; }
.mk-section p,.mk-flow li { line-height: 1.85; }
.mk-cases,.mk-three,.mk-flow { display: grid; gap: clamp(16px,2.5vw,30px); }
.mk-cases { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mk-cases article { border: 1px solid #d6dddF; background: white; }
.mk-cases a { display: block; color: inherit; text-decoration: none; }
.mk-cases a:hover b,.mk-links a:hover { text-decoration-thickness: 2px; }
.mk-cases img { width: 100%; height: auto; aspect-ratio: 2.25; object-fit: cover; display: block; }
.mk-cases article div { padding: 18px 22px; }
.mk-cases small { color: #4b646f; font-size: .875rem; }
.mk-cases b,.mk-links a { text-decoration: underline; text-underline-offset: .23em; }
.mk-band,.mk-owner,.mk-reading { background: #f2f4f2; }
.mk-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mk-three article,.mk-flow li { border-top: 3px solid var(--gold); padding: 12px 0; }
.mk-flow { grid-template-columns: repeat(4,minmax(0,1fr)); list-style-position: inside; padding: 0; }
.mk-flow strong { display: inline-block; margin-bottom: .4em; }
.mk-flow strong::after { content: '　'; }
.mk-owner,.mk-reading,.mk-end { padding: clamp(22px,4vw,48px); }
.mk-links a { color: var(--ink); font-weight: 700; }
.mk-end { width: 100%; padding-inline: clamp(16px, 3vw, 48px); background: var(--ink); color: white; margin-bottom: 32px; }
.mk-end h2 { color: white; }
.mk-home .footer-info > .creditUnitContainer {
  max-width: 1440px;
  margin-inline: auto;
  box-sizing: border-box;
}
.mk-home .mk-dock {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(360px, calc(100% - 24px));
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 -1px 10px #12334729;
}
.mk-home .mk-dock a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid #9bafb9;
  border-radius: 5px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.mk-home .mk-dock a:last-child {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.mk-home .mk-dock a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* 表示はスマホ幅に限定する。既存の show クラスによる制御は維持。 */
html.js .mk-home .mk-dock {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
html.js .mk-home .mk-dock.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .mk-home .hero { grid-template-columns: 1fr; }
  .mk-home .hero #top-hero { grid-area: 1/1; height: clamp(150px,39vw,250px) !important; aspect-ratio: auto !important; min-height: 0; }
  .mk-intro { grid-area: 2/1; padding: 16px 5% 22px; }
  .mk-intro h1 { font-size: clamp(1.45rem,6.3vw,2.6rem); margin: .3em 0; }
  .mk-intro p { margin: .45em 0; }
  .mk-actions { gap: 8px; }
  .mk-cases,.mk-three,.mk-flow { grid-template-columns: 1fr; }
  .mk-home {
    padding-bottom: calc(68px + var(--mk-contact-safe-bottom));
  }
  .mk-home .mk-dock {
    display: grid;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + var(--mk-contact-safe-bottom)) max(8px, env(safe-area-inset-left, 0px));
    border-radius: 0;
  }
  html.js .mk-home .mk-dock {
    opacity: 1;
    pointer-events: auto;
  }
  .mk-home .pagetop { margin-bottom: 12px; }
}

