/* ===== Sajuganji Home 2026 ===== */
.home-page {
  background: #fff;
}

.home-page main {
  min-height: 70vh;
}

.mobile-only {
  display: none;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(239, 246, 255, .98) 0%, rgba(239, 246, 255, .95) 42%, rgba(239, 246, 255, .32) 68%, rgba(239, 246, 255, .08) 100%),
    url('/static/img/home/home_hero.webp') right center / auto 100% no-repeat,
    #edf5ff;
  border-bottom: 1px solid #e5edf8;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 42%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-hero-copy {
  max-width: 710px;
  padding: 58px 0 64px;
}

.home-hero h1 {
  margin: 0;
  color: #0d2a56;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.26;
  letter-spacing: -.045em;
  font-weight: 800;
}

.home-hero p {
  margin: 24px 0 0;
  color: #495b76;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -.02em;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.home-btn {
  min-width: 188px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn-primary {
  color: #fff;
  background: #0f55c8;
  border: 1px solid #0f55c8;
  box-shadow: 0 10px 24px rgba(15, 85, 200, .18);
}

.home-btn-primary:hover {
  background: #0b49ad;
}

.home-btn-secondary {
  color: #0f55c8;
  background: rgba(255,255,255,.86);
  border: 1px solid #0f55c8;
}

.home-section {
  padding: 42px 0;
}

.home-section + .home-section {
  border-top: 1px solid #edf0f5;
}

.home-section-head {
  margin-bottom: 22px;
}

.home-section-head-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.home-section-head h2 {
  margin: 0;
  color: #14233c;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.035em;
  font-weight: 800;
}

.home-section-head p {
  margin: 7px 0 0;
  color: #7b8596;
  font-size: 14px;
  line-height: 1.55;
}

.section-more {
  flex: 0 0 auto;
  color: #1657b9;
  font-size: 14px;
  font-weight: 700;
}

.section-more span {
  margin-left: 4px;
  font-size: 20px;
  vertical-align: -1px;
}

.quick-section {
  padding-top: 36px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  min-height: 188px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  border: 1px solid;
  transition: transform .16s ease, box-shadow .16s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(35, 49, 83, .09);
}

.quick-card .quick-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
}

.quick-card .quick-icon svg {
  width: 31px;
  height: 31px;
}

.quick-card strong {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.quick-card > span:last-child {
  margin-top: 8px;
  color: #596579;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.tone-blue {
  color: #0757c8;
  background: #f2f7ff;
  border-color: #cfe0fb;
}

.tone-green {
  color: #0b9a51;
  background: #f1fbf6;
  border-color: #cdebdc;
}

.tone-purple {
  color: #7140da;
  background: #f7f3ff;
  border-color: #ded2f8;
}

.tone-red {
  color: #de3656;
  background: #fff4f6;
  border-color: #f4d0d8;
}

.tone-orange {
  color: #d97706;
  background: #fff8ed;
  border-color: #f3dcc0;
}

.services-section {
  background: #fbfcfe;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(38, 53, 86, .04);
}

.service-group-card {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid #e7ebf2;
}

.service-group-card:last-child {
  border-right: 0;
}

.service-group-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-group-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #1558c6;
  background: #eef5ff;
}

.service-group-icon svg {
  width: 24px;
  height: 24px;
}

.group-life {
  color: #0a9850;
  background: #ebfaf2;
}

.group-relation {
  color: #7040d3;
  background: #f4efff;
}

.group-detail {
  color: #d67a19;
  background: #fff4e7;
}

.service-group-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-group-copy strong {
  color: #182740;
  font-size: 18px;
  letter-spacing: -.025em;
}

.service-group-copy span {
  display: none;
  color: #7c8799;
  font-size: 13px;
  line-height: 1.45;
}

.service-group-arrow {
  display: none;
  margin-left: auto;
  color: #7e899a;
  font-size: 27px;
  line-height: 1;
}

.service-group-items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.service-group-items a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #465269;
  font-size: 14px;
}

.service-group-items a::before {
  content: "›";
  flex: 0 0 auto;
  color: #9aa4b5;
  margin-right: 3px;
}

.service-group-items a:hover {
  color: #1558c6;
}

.service-group-items small {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #8c7580;
  background: #f5eef1;
  font-size: 10px;
  font-weight: 700;
}

.blog-section {
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(35, 49, 83, .09);
}

.blog-card-link {
  display: block;
  height: 100%;
}

.blog-card-image {
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  background: #f2f4f8;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.blog-tags span {
  padding: 3px 7px;
  border-radius: 5px;
  color: #5b55ce;
  background: #f0efff;
  font-size: 11px;
  font-weight: 700;
}

.blog-card h3 {
  margin: 0;
  color: #15233b;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.03em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-card p {
  margin: 10px 0 0;
  color: #788396;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-card time {
  display: block;
  margin-top: 14px;
  color: #99a1af;
  font-size: 12px;
}

.blog-empty {
  padding: 30px;
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px solid #e2e8f1;
  border-radius: 14px;
  background: #fafbfd;
}

.blog-empty strong {
  color: #16233b;
  font-size: 18px;
}

.blog-empty span {
  color: #788396;
  font-size: 14px;
}

.blog-empty a {
  margin-top: 6px;
  color: #1558c6;
  font-weight: 700;
}

.blog-cta {
  margin-top: 24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid #efe6d6;
  border-radius: 14px;
  background: linear-gradient(90deg, #fffaf1, #fffdf8);
}

.blog-cta-copy {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-cta-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b27b27;
  background: #fff3d8;
}

.blog-cta-icon svg {
  width: 27px;
  height: 27px;
}

.blog-cta p {
  margin: 0;
  color: #293244;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.blog-cta > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid #bc8736;
  border-radius: 9px;
  color: #a56f1b;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 1024px) {
  .home-hero {
    min-height: 360px;
    background-position: 115% center;
  }

  .home-hero-copy {
    max-width: 570px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-card {
    min-height: 160px;
  }

  .service-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-group-card:nth-child(2) {
    border-right: 0;
  }

  .service-group-card:nth-child(-n+2) {
    border-bottom: 1px solid #e7ebf2;
  }
}

@media (max-width: 720px) {
  .mobile-only {
    display: initial;
  }

  .home-hero {
    min-height: 420px;
    align-items: flex-start;
    background:
      linear-gradient(90deg, rgba(240,247,255,.98) 0%, rgba(240,247,255,.91) 55%, rgba(240,247,255,.16) 100%),
      url('/static/img/home/home_hero.webp') 72% bottom / auto 78% no-repeat,
      #edf5ff;
  }

  .home-hero-copy {
    max-width: 100%;
    padding: 42px 0 46px;
  }

  .home-hero h1 {
    max-width: 520px;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.34;
  }

  .home-hero p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .home-hero-actions {
    margin-top: 24px;
  }

  .home-btn {
    min-width: 0;
    flex: 1 1 0;
    min-height: 50px;
    padding: 10px 13px;
    font-size: 15px;
  }

  .home-section {
    padding: 34px 0;
  }

  .home-section-head {
    margin-bottom: 18px;
  }

  .home-section-head h2 {
    font-size: 23px;
  }

  .home-section-head p {
    display: none;
  }

  .quick-grid {
    gap: 12px;
  }

  .quick-card {
    min-height: 156px;
    padding: 18px 12px;
  }

  .quick-card .quick-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .quick-card strong {
    font-size: 17px;
  }

  .quick-card > span:last-child {
    max-width: 160px;
    font-size: 12px;
  }

  .service-groups {
    display: block;
    border-radius: 14px;
  }

  .service-group-card,
  .service-group-card:nth-child(2),
  .service-group-card:last-child {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid #e7ebf2;
  }

  .service-group-card:last-child {
    border-bottom: 0;
  }

  .service-group-main {
    min-height: 78px;
    padding: 13px 15px;
  }

  .service-group-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .service-group-copy strong {
    font-size: 17px;
  }

  .service-group-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .service-group-arrow {
    display: block;
  }

  .service-group-items {
    display: none;
  }

  .blog-grid {
    display: block;
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    overflow: hidden;
  }

  .blog-card {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e4e9f1;
  }

  .blog-card:last-child {
    border-bottom: 0;
  }

  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }

  .blog-card-link {
    min-height: 132px;
    display: grid;
    grid-template-columns: 34% 1fr;
  }

  .blog-card-image {
    aspect-ratio: auto;
    min-height: 132px;
  }

  .blog-card-body {
    min-width: 0;
    padding: 14px 15px;
  }

  .blog-card h3 {
    font-size: 16px;
    line-height: 1.42;
  }

  .blog-card p {
    display: none;
  }

  .blog-card time {
    margin-top: 10px;
  }

  .blog-cta {
    padding: 18px;
  }

  .blog-cta p {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .home-hero {
    min-height: 405px;
    background-position: 74% bottom;
    background-size: auto 67%;
  }

  .home-hero-copy {
    padding-top: 34px;
  }

  .home-hero h1 {
    max-width: 360px;
    font-size: 29px;
  }

  .home-hero p {
    max-width: 330px;
    font-size: 15px;
  }

  .home-hero-actions {
    gap: 9px;
  }

  .home-btn {
    font-size: 14px;
  }

  .home-section-head-inline {
    align-items: center;
  }

  .home-section-head h2 {
    font-size: 21px;
  }

  .section-more {
    font-size: 13px;
  }

  .quick-card {
    min-height: 150px;
  }

  .quick-card strong {
    font-size: 16px;
  }

  .service-group-copy span {
    max-width: 230px;
    font-size: 12px;
  }

  .blog-card-link {
    grid-template-columns: 36% 1fr;
  }

  .blog-card-body {
    padding: 12px;
  }

  .blog-tags {
    margin-bottom: 7px;
  }

  .blog-tags span {
    font-size: 10px;
  }

  .blog-card h3 {
    font-size: 15px;
  }

  .blog-cta {
    display: grid;
    gap: 15px;
  }

  .blog-cta > a {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .home-hero {
    min-height: 390px;
  }

  .home-hero h1 {
    font-size: 27px;
  }

  .quick-card {
    min-height: 142px;
    padding: 16px 8px;
  }

  .quick-card .quick-icon {
    width: 46px;
    height: 46px;
  }

  .quick-card .quick-icon svg {
    width: 27px;
    height: 27px;
  }

  .quick-card > span:last-child {
    font-size: 11px;
  }

  .service-group-copy span {
    max-width: 200px;
  }
}
