/* ==========================================
   Solution Sector Pages — Shared Layout
   ========================================== */

.tai-solution-sector-page,
.tai-government-page {
  overflow: hidden;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-ja);
}

.tai-solution-sector-page *,
.tai-solution-sector-page *::before,
.tai-solution-sector-page *::after,
.tai-government-page *,
.tai-government-page *::before,
.tai-government-page *::after {
  box-sizing: border-box;
}

.tai-solution-sector-page a,
.tai-government-page a {
  color: inherit;
  text-decoration: none;
}

.tai-solution-sector-page h1,
.tai-solution-sector-page h2,
.tai-solution-sector-page h3,
.tai-solution-sector-page p,
.tai-government-page h1,
.tai-government-page h2,
.tai-government-page h3,
.tai-government-page p {
  margin: 0;
}

.tai-solution-sector-page img,
.tai-government-page img {
  display: block;
  width: 100%;
  height: auto;
}

.tai-solution-sector-page .gov-feature-img img,
.tai-government-page .gov-feature-img img {
  height: 210px;
}

.gov-kv {
  padding-top: 86px;
}

.gov-eyebrow {
  margin-top: 50px;
  color: var(--primary-red);
  font-family: var(--font-en);
  font-weight: 500;
  line-height: 1.35;
}

p.gov-eyebrow {
  font-size: 22px !important;
}

.gov-eyebrow span {
  margin: 0 8px;
}

.gov-kv h1 {
  margin-top: 14px;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.gov-kv-media {
  position: relative;
  margin-top: 39px;
  margin-left: 18px;
}

.gov-kv-media img {
  object-fit: contain;
  filter: grayscale(100%);
}

.gov-lead-card {
  position: absolute;
  left: auto;
  right: calc(12% - 12px);
  top: 48%;
  width: 29.5vw;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 1);
  font-family: var(--font-ja);
}

.gov-lead-card p {
  color: var(--text-primary);
  font-size: 16px !important;
  font-weight:normal;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.gov-cases {
  padding: 69px 0 95px;
  background: var(--primary-red);
  color: #fff;
}

.gov-cases-head h2 {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.gov-cases-head p {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.gov-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 75px;
}

.gov-case-card-image {
  overflow: hidden;
  border-radius: 16px;
}

.gov-case-card img {
  aspect-ratio: 331 / 234;
  object-fit: cover;
  filter: grayscale(100%);
}

.gov-case-card time {
  display: block;
  margin-top: 66px;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: normal;
  line-height: 1.4;
}

.gov-case-card h3 {
  display: -webkit-box;
  height: 4.35em;
  overflow: hidden;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gov-case-card p {
  margin-top: 24px;
  font-size: 15px !important;
  font-weight: normal;
  line-height: 2;
  letter-spacing: 0.04em;
}

.gov-case-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 65px;
}

.gov-case-more .t-btn-outline {
  min-width: 161px;
}

.solution-spacer {
  margin-top: 50px;
}

@media screen and (min-width: 768px) {
  .tai-solution-sector-page img,
  .tai-government-page img {
  }
}

@media screen and (min-width: 992px) {
  .gov-breadcrumb {
    margin-bottom: 62px;
  }

  .gov-eyebrow {
    margin-top: 0;
  }

  .tai-solution-sector-page .gov-feature h3,
  .tai-government-page .gov-feature h3 {
      margin-top: 18px;
  }

  .gov-kv h1 {
    font-size: 44px;
  }
}

@media screen and (max-width: 991px) {
  .solution-spacer {
    margin-top: 0px;
  }

  .gov-lead-card {
    right: calc(8% - 28px);
    width: 380px;
    padding: 28px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .gov-kv h1 {
    font-size: 52px;
  }
}

@media screen and (max-width: 767px) {
  .gov-kv > .gov-container,
  .gov-kv > .t-container {
    display: flex;
    flex-direction: column;
  }

  p.gov-eyebrow {
    font-size: 18px !important;
  }

  .gov-kv {
    padding-top: 113px;
  }

  .gov-eyebrow {
    order: 1;
    margin-top: 38px;
    font-size: 14px;
    line-height: 1.35;
  }

  .gov-eyebrow span {
    margin: 0 6px;
  }

  .gov-kv h1 {
    order: 2;
    margin-top: 8px;
    font-size: 26px;
    line-height: 1.32;
  }

  .gov-breadcrumb {
    order: 3;
    padding-top: 0;
    margin-top: 24px;
  }

  .gov-kv-media {
    margin-top: 34px;
    margin-left: 0px;
  }

  .gov-kv-media img {
    height: auto;
    aspect-ratio: 735 / 215;
    object-fit: contain;
  }

  .gov-lead-card {
    position: static;
    width: auto;
    min-height: 0;
    padding: 30px 12.2% 0;
    background: #fff;
  }

  .gov-lead-card p {
    color: #333;
    font-size: 15px !important;
    line-height: 1.8;
    letter-spacing: 0.03em;
  }

  .gov-cases {
    padding: 70px 0 78px;
  }

  .gov-cases-head h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .gov-cases-head p {
    margin-top: 6px;
    font-size: 13px;
  }

  .gov-case-grid {
    display: flex;
    gap: 28px;
    width: auto;
    margin-top: 40px;
    margin-right: -9.3%;
    padding-right: 7%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gov-case-grid::-webkit-scrollbar {
    display: none;
  }

  .gov-case-card {
    flex: 0 0 295px;
    scroll-snap-align: start;
  }

  .gov-case-card a {
    display: flex;
    flex-direction: column;
  }

  .gov-case-card time {
    order: 1;
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 2px;
  }

  .gov-case-card h3 {
    order: 2;
    margin-top: 0;
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .gov-case-card-image {
    order: 3;
    border-radius: 10px;
  }

  .gov-case-card img {
    aspect-ratio: 295 / 199;
  }

  .gov-case-card p {
    order: 4;
    margin-top: 20px;
    font-size: 12px;
    line-height: 2;
  }

  .gov-case-more {
    margin-top: 46px;
  }

  .gov-case-more .t-btn-outline {
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 16px;
  }
}
