/* Homepage verified revision 3 - 21/10/2026.
   The homepage displays a short free-consultation label; all detailed
   consultation/workplace information lives in the existing About dialog.
   This file is included on index.html only; product pages are unchanged. */
.home-page .contact-direct-card .contact-quick-copy>.consultation-free-note {
  text-transform:none;
  letter-spacing:0;
  font-size:13px;
  line-height:1.4;
  white-space:normal;
  max-width:100%;
}
.home-page .home-about-dialog {
  width:min(1100px,calc(100vw - 40px));
  max-width:calc(100vw - 40px);
  max-height:calc(100dvh - 40px);
  box-sizing:border-box;
  overscroll-behavior:contain;
}
.home-page .home-about-dialog .home-about-card,
.home-page .home-about-dialog .home-about-copy {
  min-width:0;
}
.home-page .home-about-dialog .home-about-copy {
  text-align:left;
  overflow-wrap:break-word;
}
.home-page .home-about-dialog .home-about-copy>p {
  font-size:15px;
  line-height:1.6;
  color:#536071;
  margin:0 0 13px;
}
.home-page .home-about-dialog .home-about-copy>p strong {
  color:#28384e;
}
.home-page .home-about-dialog .about-principles {
  margin-top:18px;
  gap:7px;
}
.home-page .home-about-dialog .about-principles span {
  font-size:12px;
  line-height:1.45;
  padding:9px 11px;
}
.home-page .home-about-dialog .about-workplace {
  border-top:1px solid #e3e5e9;
  padding-top:18px;
  margin-top:20px;
  scroll-margin-top:20px;
}
.home-page .home-about-dialog .about-workplace h3 {
  font-size:16px;
  line-height:1.45;
  color:#28384e;
  margin:0 0 9px;
}
.home-page .home-about-dialog .about-workplace p {
  font-size:14px;
  line-height:1.55;
  color:#536071;
  margin:0 0 8px;
}
.home-page .home-about-dialog .about-workplace .about-workplace-note {
  font-size:13px;
  color:#667282;
  margin-bottom:0;
}
.home-page:has(.home-about-dialog[open]) {
  overflow:hidden;
}
@media(min-width:901px) {
  .home-page .home-about-dialog {overflow:hidden;}
  .home-page .home-about-dialog .home-about-card {
    grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);
    align-items:stretch;
    max-height:calc(100dvh - 40px);
  }
  .home-page .home-about-dialog .home-about-card>img {
    width:100%;
    height:100%;
    min-height:0;
    max-height:calc(100dvh - 40px);
    object-fit:cover;
    object-position:center 34%;
  }
  .home-page .home-about-dialog .home-about-copy {
    max-height:calc(100dvh - 40px);
    padding:32px 34px 30px;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .home-page .home-about-dialog .home-about-copy h2 {
    font-size:32px;
    line-height:1.22;
    margin:14px 0 16px;
    padding-right:12px;
  }
  .home-page .home-about-dialog .home-dialog-close {
    position:absolute;
    top:10px;
    right:12px;
    float:none;
    margin:0;
    z-index:3;
  }
}
@media(max-width:900px) {
  .home-page .home-about-dialog {
    width:calc(100vw - 24px);
    max-width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
    overflow-x:hidden;
    border-radius:18px;
  }
  .home-page .home-about-dialog .home-about-card {display:block;}
  .home-page .home-about-dialog .home-about-card>img {
    display:block;
    width:100%;
    height:210px;
    min-height:0;
    max-height:210px;
    object-fit:cover;
    object-position:center 35%;
  }
  .home-page .home-about-dialog .home-about-copy {
    max-height:none;
    overflow:visible;
    padding:22px 22px 26px;
  }
  .home-page .home-about-dialog .home-about-copy h2 {
    font-size:25px;
    line-height:1.28;
    margin:12px 0 14px;
  }
  .home-page .home-about-dialog .home-dialog-close {
    position:sticky;
    top:10px;
    float:right;
    margin:10px 10px -46px 0;
    z-index:3;
    width:36px;
    height:36px;
  }
}
@media(max-width:570px) {
  .home-page .contact-direct-card .contact-quick-copy>.consultation-free-note {
    font-size:11px;
    padding:5px 7px;
    line-height:1.45;
  }
  .home-page .home-about-dialog .home-about-card>img {
    height:170px;
    max-height:170px;
    object-position:center 32%;
  }
  .home-page .home-about-dialog .home-about-copy {padding:20px 19px 24px;}
  .home-page .home-about-dialog .home-about-copy h2 {font-size:22px;line-height:1.3;}
  .home-page .home-about-dialog .home-about-copy>p {font-size:15px;line-height:1.55;margin-bottom:12px;}
  .home-page .home-about-dialog .about-workplace {margin-top:17px;padding-top:16px;}
  .home-page .home-about-dialog .about-workplace h3 {font-size:15px;}
  .home-page .home-about-dialog .about-workplace p {font-size:14px;}
}
@media(prefers-reduced-motion:reduce) {
  .home-page .home-about-dialog,
  .home-page .home-about-dialog .home-about-copy {scroll-behavior:auto;}
}
