.home-main{background:#fff;}
.home-feature-stage{position:relative;overflow:hidden;}

.home-intro{position:relative;min-height:280px;overflow:hidden;border-bottom:1px solid var(--line);background:#e9eef2;}
.home-intro-photo{position:absolute;inset:0;background-image:url("/assets/images/home/storefront-hero.jpg");background-repeat:no-repeat;background-size:cover;background-position:center center;filter:saturate(.98) contrast(1.02);}
.home-intro::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.82) 28%,rgba(255,255,255,.48) 52%,rgba(255,255,255,.14) 72%,rgba(255,255,255,0) 88%);}
.home-intro-inner{position:relative;z-index:1;min-height:280px;display:flex;align-items:center;padding-top:24px;padding-bottom:24px;}
.home-intro-panel{width:min(790px,72%);padding-right:16px;}
.home-intro-panel>p{margin:0 0 7px;color:#294665;font-size:1.02rem;font-weight:700;line-height:1.48;letter-spacing:.005em;text-shadow:0 1px 1px rgba(255,255,255,.55);}
.home-intro-panel>p:last-child{margin-bottom:0;}

.home-section{padding:24px 0;border-bottom:1px solid var(--line);}
.home-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:12px;}
.home-heading-row h2{margin:1px 0 0;font-size:28px;line-height:1.15;}
.home-heading-row>a{color:var(--blue);font-size:.82rem;font-weight:900;white-space:nowrap;}
.home-heading-note{margin:4px 0 0;color:var(--muted);font-size:.84rem;font-weight:700;}
.home-title-line{display:flex;align-items:center;gap:14px;}
.home-title-more{display:inline-flex;align-items:center;align-self:center;color:var(--blue);font-size:var(--font-base);font-weight:900;line-height:1;white-space:nowrap;}
.home-news-heading-row{justify-content:flex-start;}
.home-news-heading-group{width:100%;display:flex;align-items:flex-end;gap:22px;}
.home-news-heading-group>a{margin-left:auto;color:var(--blue);font-size:.82rem;font-weight:900;white-space:nowrap;padding-bottom:2px;}
.home-empty{padding:18px;border:1px dashed #cad7e4;border-radius:12px;color:var(--muted);background:#fff;}

.home-news-section{padding-top:10px;padding-bottom:10px;background:linear-gradient(180deg,#fff7fa 0%,#fffafd 100%);}
.home-news-layout{display:block;padding-right:0;}
.home-news-main{width:calc(100% - 360px);min-width:0;}
.home-news-list{border-top:1px solid #efd9e2;}
.home-news-row{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;padding:8px 0;border-bottom:1px solid #f1e2e8;align-items:start;}
.home-news-row time{color:#718197;font-size:.76rem;font-weight:800;letter-spacing:.03em;}
.home-news-row p{margin:0;min-width:0;font-size:.88rem;font-weight:700;line-height:1.48;}
.home-news-row a{color:#245e9e;text-decoration:underline;text-decoration-color:#c1d5eb;text-underline-offset:3px;}

.home-stage-character{position:absolute;z-index:3;right:max(18px,calc((100vw - 1180px)/2 + 4px));top:50%;transform:translateY(-50%);width:350px;height:auto;pointer-events:none;}
.home-stage-character img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 9px 14px rgba(53,70,90,.10));}

.home-estate-section{background:#fffaf3;}
.home-estate-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;}
.home-estate-card{min-width:0;border:1px solid #eadfcd;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(93,73,45,.055);transition:transform .15s ease,box-shadow .15s ease;}
.home-estate-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(93,73,45,.10);}
.home-estate-photo{aspect-ratio:4/3;background:#eee7db;overflow:hidden;display:grid;place-items:center;color:#9b8f7c;font-size:.68rem;font-weight:900;letter-spacing:.08em;}
.home-estate-photo img{width:100%;height:100%;object-fit:cover;}
.home-estate-body{padding:13px 13px 15px;}
.home-estate-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:7px;}
.home-estate-meta strong{color:#b65e17;font-size:1.02rem;}
.home-estate-meta span{padding:2px 6px;border-radius:6px;background:#f4eee4;color:#6b5c49;font-size:.65rem;font-weight:900;}
.home-estate-card h3{margin:0;font-size:.9rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.home-estate-card p{margin:6px 0 0;color:#7b6e5d;font-size:.72rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.home-tech-section{background:#f4f9ff;}
.home-tech-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;}
.home-tech-card{min-width:0;min-height:200px;padding:15px;border:1px solid #dce9f7;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(44,94,145,.055);transition:transform .15s ease,box-shadow .15s ease;}
.home-tech-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(44,94,145,.10);}
.home-tech-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.home-tech-card-top img{width:30px;height:30px;object-fit:contain;}
.home-tech-card-top time{color:#7e8fa4;font-size:.68rem;font-weight:800;}
.home-tech-card h3{margin:0;font-size:.94rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.home-tech-card p{margin:8px 0 0;color:#6e7f95;font-size:.76rem;line-height:1.62;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}

.home-shortcuts-section{background:#fff;}
.home-shortcuts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;}
.home-shortcut{position:relative;min-height:100px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;justify-content:center;}
.home-shortcut.company{background:#f5f8f2;}
.home-shortcut.contact{background:#fff8dc;border-color:#eee0ad;}

.home-links-section{padding-top:22px;padding-bottom:24px;background:#fafcfe;}

.home-list-footer{
  display:flex;
  justify-content:flex-end;
  margin-top:6px;
  margin-bottom:0;
}
.home-list-footer a,
.home-grid-more,
.home-title-more{
  color:var(--blue);
  font-size:var(--font-base);
  font-weight:800;
  text-decoration:none;
}
.home-estate-grid .home-grid-more,
.home-tech-grid .home-grid-more{
  grid-column:1 / -1;
  justify-self:end;
  align-self:center;
}
.home-shortcut-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.home-shortcut-title strong{
  display:inline-block;
  margin:0;
  font-size:1.45rem;
  line-height:1.1;
}
.home-shortcut-title span{
  display:inline-block;
  margin:0;
  color:var(--blue);
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
}
.home-shortcut>small{
  margin-top:4px;
  color:#67788d;
  font-size:.92rem;
  font-weight:800;
}

@media(max-width:1050px){
  .home-estate-grid,.home-tech-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .home-news-main{width:calc(100% - 300px);}
  .home-stage-character{width:290px;right:12px;top:50%;transform:translateY(-50%);}
  .home-intro-panel{width:min(700px,70%);}
}

@media(max-width:900px){
  .home-stage-character{display:none;}
  .home-news-main{width:100%;}
  .home-intro-panel{width:min(820px,100%);padding-right:0;}
}

@media(max-width:760px){
  .home-intro{min-height:250px;}
  .home-intro-inner{min-height:250px;padding-top:20px;padding-bottom:20px;}
  .home-intro::after{background:linear-gradient(90deg,rgba(255,255,255,.88) 0%,rgba(255,255,255,.76) 48%,rgba(255,255,255,.38) 76%,rgba(255,255,255,.18) 100%);}
  .home-intro-panel>p{font-size:.95rem;line-height:1.45;margin-bottom:6px;}
  .home-section{padding:20px 0;}
  .home-heading-row{align-items:flex-start;}
  .home-heading-row h2{font-size:25px;}
  .home-news-row{grid-template-columns:82px minmax(0,1fr);gap:10px;padding:8px 0;}
  .home-news-row p{font-size:.82rem;}
  .home-estate-grid,.home-tech-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .home-shortcuts{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .home-estate-grid .home-grid-more,
  .home-tech-grid .home-grid-more{
    grid-column:auto;
    justify-self:stretch;
    align-self:stretch;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100%;
    padding:18px 10px;
    text-align:center;
  }
}

@media(max-width:520px){
  .home-heading-row{display:block;}
  .home-news-heading-group{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;}
  .home-news-heading-group>a{padding-bottom:0;}
  .home-heading-row>a{display:inline-block;margin-top:8px;}
  .home-intro{min-height:230px;}
  .home-intro-inner{min-height:230px;padding-top:16px;padding-bottom:16px;}
  .home-intro-panel>p{font-size:.9rem;line-height:1.42;}
  .home-news-row{grid-template-columns:72px minmax(0,1fr);}
  .home-estate-grid,.home-tech-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;}
  .home-estate-body{padding:10px;}
  .home-estate-meta strong{width:100%;}
  .home-tech-card{padding:12px;min-height:185px;}
  .home-tech-card p{display:none;}
  .home-shortcuts{grid-template-columns:1fr;}
}

@media (max-width:760px){
  .home-section.home-news-section{
    padding-top:10px;
    padding-bottom:10px;
  }
  .home-news-heading-row{
    margin-top:0;
  }
  .home-list-footer{
    margin-bottom:0;
  }
}

/* 3-column card layout: use the sixth cell for the list link (3 + 2 + link) */
@media (min-width:761px) and (max-width:1050px){
  .home-estate-grid .home-grid-more,
  .home-tech-grid .home-grid-more{
    grid-column:auto;
    justify-self:stretch;
    align-self:stretch;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100%;
    padding:18px 10px;
    text-align:center;
  }
}

/* Responsive grid safety */
.home-estate-card,
.home-tech-card,
.home-shortcut,
.home-news-row > *{
  min-width:0;
}
.home-estate-card h3,
.home-estate-card p,
.home-tech-card h3,
.home-tech-card p,
.home-shortcut,
.home-news-row p{
  overflow-wrap:anywhere;
}

