/*
 * tripleguardcoat.css
 * Purpose: page/section layout for tripleguardcoat/index.html (TRIPLE GUARD COAT product page).
 * Mobile-first; tablet breakpoint at 48em (768px), desktop lock-in at 75em (1200px).
 * nav / contact / cta-footer are shared partials and are intentionally not styled here.
 */

body {
  font-family: var(--font-thai-noto);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background-color: var(--pure-white);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

main p {
  line-height: 1.8;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background-color: var(--marimo-blue);
  color: var(--pure-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--radius-xs) 0;
}

.skip-link:focus {
  left: 0;
}

/* =========================================================
   page-hero overrides
   Stronger glow than the shared default: the roof photo is bright silver.
   ========================================================= */
.page-hero__title,
.page-hero__subtitle {
  text-shadow: 0 0 1.875rem #37526d, 0 0 0.9375rem #37526d;
}

@media (min-width: 75em) {
  .page-hero__title {
    text-shadow: 0 0 5rem rgba(55, 82, 109, 0.5), 0 0 2.5rem rgba(55, 82, 109, 0.5);
  }
}

/* =========================================================
   tgc-changing (before / after ของภาระคอมเพรสเซอร์)
   ========================================================= */
.tgc-changing {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding-top: var(--space-2xl);
}

.tgc-changing__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-inline: var(--space-lg);
  text-align: center;
}

.tgc-changing__lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-changing__lead p {
  margin: 0;
}

.tgc-changing__lead strong {
  font-weight: 700;
}

.tgc-compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.tgc-compare__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  /* SP: the Before/After bar is full-bleed, the rest inset. */
  padding-inline: 1.25rem;
}

.tgc-compare__label {
  margin: 0 -1.25rem;
  padding: 0.75rem;
  background-color: var(--gray-600);
  border-radius: 0;
  color: var(--pure-white);
  font-family: var(--font-eng);
  font-weight: 700;
  font-size: var(--font-size-lg);
  line-height: normal;
  letter-spacing: 0.02em;
  text-align: center;
}

.tgc-compare__col--after .tgc-compare__label {
  background-color: var(--dark-blue);
}

.tgc-compare__photo {
  display: block;
  width: 100%;
  aspect-ratio: 548 / 419;
  object-fit: contain;
}

.tgc-compare__formula {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
}

.tgc-compare__terms,
.tgc-compare__result {
  display: flex;
  align-items: stretch;
  gap: var(--space-2xs);
}

.tgc-compare__box {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-xs);
  background-color: var(--paper-white);
  border: 1px solid var(--gray-400);
  text-align: center;
  letter-spacing: 0.02em;
}

.tgc-compare__col--after .tgc-compare__box {
  background-color: var(--pure-white);
  border-color: var(--marimo-blue);
}

.tgc-compare__box--highlight {
  border-width: 2px;
  color: var(--marimo-blue);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.tgc-compare__op {
  flex-shrink: 0;
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
}

.tgc-compare__arrow {
  width: 2.5rem;
  height: 2.5rem;
  transform: rotate(90deg);
}

@media (min-width: 48em) {
  .tgc-compare__col {
    max-width: 32rem;
  }

  .tgc-compare__arrow {
    width: 3.5rem;
    height: 3.5rem;
    transform: none;
  }
}

@media (min-width: 75em) {
  .tgc-changing__intro {
    gap: var(--space-lg);
  }

  .tgc-changing__lead {
    max-width: 60rem;
    margin-inline: auto;
  }

  /* Fixed rows keep both columns aligned when the Thai copy wraps differently. */
  .tgc-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: stretch;
    max-width: var(--content-max-width);
    margin-inline: auto;
    width: 100%;
    gap: 0;
  }

  .tgc-compare__col {
    display: contents;
  }

  .tgc-compare__col .tgc-compare__label {
    grid-row: 1;
    margin: var(--space-sm) 0;
    border-radius: var(--radius-xs);
  }

  .tgc-compare__col .tgc-compare__photo {
    grid-row: 2;
    aspect-ratio: 548 / 419;
  }

  .tgc-compare__col .tgc-compare__formula {
    grid-row: 3;
    padding-top: 3.5rem;
  }

  .tgc-compare__col--before .tgc-compare__label,
  .tgc-compare__col--before .tgc-compare__photo,
  .tgc-compare__col--before .tgc-compare__formula {
    grid-column: 1;
  }

  .tgc-compare__col--after .tgc-compare__label,
  .tgc-compare__col--after .tgc-compare__photo,
  .tgc-compare__col--after .tgc-compare__formula {
    grid-column: 3;
  }

  .tgc-compare__arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
  }

  .tgc-compare__terms,
  .tgc-compare__result {
    gap: var(--space-xs);
  }

  .tgc-compare__box {
    padding: var(--space-sm);
  }
}

/* =========================================================
   tgc-test-result (ผลที่พิสูจน์แล้ว จากญี่ปุ่น)
   ========================================================= */
.tgc-test-result {
  padding: 7.5rem 0 0;
}

.tgc-test-result__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--soft-blue);
  padding: 6rem var(--space-lg) var(--space-2xl);
}

.tgc-test-result__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.tgc-test-result__lead {
  margin: 0;
}

.tgc-test-result__photos {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  margin-top: var(--space-md);
}

.tgc-test-result__photos img {
  width: 100%;
  aspect-ratio: 480 / 362;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--gray-400);
}

@media (min-width: 48em) {
  .tgc-test-result {
    padding-inline: var(--space-md);
  }

  .tgc-test-result__card {
    max-width: var(--content-max-width);
    margin-inline: auto;
    border-radius: var(--radius-sm);
    padding: var(--space-2xl) var(--space-xl);
  }

  .tgc-test-result__photos {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .tgc-test-result__photos img {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

@media (min-width: 75em) {
  .tgc-test-result {
    padding: 11.25rem 7.5rem 0;
  }

  .tgc-test-result__card {
    padding: var(--space-2xl);
  }

  .tgc-test-result__photos {
    gap: var(--space-2xl);
    margin-top: var(--space-lg);
  }

  /* One step up from the shared .stat-banner size. */
  .tgc-test-result .stat-banner {
    font-size: var(--font-size-3xl);
  }

  .tgc-test-result .stat-banner-wrap__chevron {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* =========================================================
   tgc-types (สีกันซึม-กันร้อนคุณภาพสูง 3 ชนิด)
   ========================================================= */
.tgc-types {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: 7.5rem var(--space-lg) 0;
}

.tgc-types__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.tgc-types__lead {
  margin: 0;
}

.tgc-types__lead strong {
  font-weight: 700;
}

.tgc-type-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-type {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-image: linear-gradient(90deg, var(--soft-blue), var(--ice-blue));
  padding: var(--space-lg);
}

/* Diagonal white sheen across the top-left corner. */
.tgc-type::before {
  content: "";
  position: absolute;
  top: -4.375rem;
  left: -6.4rem;
  width: 29.0625rem;
  height: 30rem;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  transform: rotate(45deg);
  pointer-events: none;
}

.tgc-type__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.tgc-type__number {
  margin: 0;
  padding: 0 var(--space-2xs) var(--space-2xs);
  border-bottom: 1px solid var(--marimo-blue);
  font-family: "Bebas Neue", var(--font-eng);
  font-size: var(--font-size-2xl);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--marimo-blue);
  text-align: center;
}

.tgc-type__name {
  margin: 0;
  font-family: var(--font-eng);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
}

.tgc-type__points {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tgc-type__point {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tgc-type__point-title {
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-xl);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.tgc-type__point p {
  margin: 0;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
}

@media (min-width: 48em) {
  .tgc-types {
    padding-inline: var(--space-md);
  }

  .tgc-types__lead {
    max-width: 48rem;
  }

  .tgc-type__points {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .tgc-type__point {
    flex: 1 0 0;
    min-width: 0;
  }

  .tgc-type__points--single .tgc-type__point {
    flex: 1 0 100%;
  }
}

@media (min-width: 75em) {
  .tgc-types {
    padding: 11.25rem 7.5rem 0;
  }

  .tgc-types__lead {
    max-width: 60rem;
  }

  .tgc-type-list {
    gap: var(--space-xs);
    max-width: var(--content-max-width);
    margin-inline: auto;
    width: 100%;
  }

  .tgc-type {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
    padding: 3.5rem var(--space-2xl);
  }

  .tgc-type__head {
    flex-shrink: 0;
    width: 20rem;
  }

  .tgc-type__points {
    flex: 1 0 0;
    min-width: 0;
    gap: var(--space-2xl);
    align-items: flex-start;
  }
}

/* =========================================================
   tgc-features (ระบบกันซึม กันร้อน บริการครบวงจร)
   ========================================================= */
.tgc-features {
  padding: 7.5rem var(--space-lg) 0;
}

.tgc-features__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tgc-features__lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* SP: rule under the whole lead block; PC moves it under the heading. */
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-400);
}

.tgc-features__lead p {
  margin: 0;
}

.tgc-features__heading {
  margin: 0;
  font-family: var(--font-thai-sarabun);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--marimo-blue);
}

.tgc-feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--soft-blue);
  border: 2px solid var(--marimo-blue);
  padding: var(--space-lg);
}

.tgc-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-round);
  background-color: var(--pure-white);
}

.tgc-feature-card__icon img {
  width: 2.5rem;
  height: auto;
}

.tgc-feature-card__title {
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.tgc-feature-card p {
  margin: 0;
  letter-spacing: 0.02em;
}

@media (min-width: 48em) {
  .tgc-features {
    padding-inline: var(--space-md);
  }

  .tgc-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 75em) {
  .tgc-features {
    padding: 11.25rem 7.5rem 0;
  }

  .tgc-features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: var(--content-max-width);
    margin-inline: auto;
  }

  .tgc-features__lead {
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 0;
  }

  .tgc-features__lead p {
    padding-inline: var(--space-lg);
  }

  .tgc-features__heading {
    padding: 0 var(--space-lg) var(--space-lg);
    border-bottom: 1px solid var(--gray-400);
    font-size: var(--font-size-4xl);
  }

  .tgc-feature-card {
    padding: var(--space-lg);
  }

  .tgc-feature-card__icon {
    width: 7.5rem;
    height: 7.5rem;
  }

  .tgc-feature-card__icon img {
    width: 4.5rem;
  }

  .tgc-feature-card__title {
    font-size: var(--font-size-3xl);
    line-height: normal;
  }
}

/* =========================================================
   tgc-strongpoint (2 เหตุผลที่ประสิทธิภาพดีกว่า)
   ========================================================= */
.tgc-strongpoint {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
  padding: 7.5rem 0 0;
}

.tgc-strongpoint__heading {
  padding-inline: var(--space-lg);
}

.tgc-point {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tgc-point + .tgc-point {
  margin-top: 1.25rem;
}

.tgc-point__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: var(--dark-blue);
  color: var(--pure-white);
  padding: 3.5rem var(--space-lg);
}

/* Figma noise effect on the card fill: #2a2a2a grain averaging 25% opacity.
   An SVG tile rather than a bitmap so the grain stays crisp on high-DPI. */
.tgc-point__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/tgc-noise.svg");
  background-repeat: repeat;
  background-size: 10rem 10rem;
  pointer-events: none;
}

.tgc-point__number {
  position: absolute;
  top: 2rem;
  right: 1rem;
  margin: 0;
  font-family: "Roboto Condensed", var(--font-eng);
  font-weight: 700;
  font-size: 6.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.tgc-point__title {
  position: relative;
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--pure-white);
}

.tgc-point__body {
  position: relative;
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 500;
  font-size: var(--font-size-xl);
  letter-spacing: 0.02em;
}

.tgc-point__visual {
  position: relative;
  padding-inline: 1.25rem;
}

.tgc-point__visual--figures {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding-inline: var(--space-lg);
}

.tgc-pinch-hint {
  width: 100%;
  text-align: right;
  margin-block-start: var(--space-sm);
}

.tgc-pinch-hint .pinch-hint {
  position: revert;
  margin-inline-start: auto;
}

/* --- 01: hollow-glass-bead cross-section comparison ---
   Figma draws one group and scales it (752px on PC, 350px on SP), so every
   length here is cqw against .tgc-beads: 752px = 100cqw, 1px = 0.133cqw. */
.tgc-beads {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.tgc-beads__col-title {
  grid-row: 1;
  margin: 0;
  padding-bottom: 2.128cqw; /* 16px */
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: 2.66cqw; /* 20px */
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Labels align to the panels inside the diagram, not to the column halves. */
.tgc-beads__col-title--other {
  grid-column: 1;
  padding-left: 6.649cqw; /* 50px */
}

.tgc-beads__col-title--ours {
  grid-column: 2;
  padding-right: 6.649cqw; /* 50px */
  text-align: right;
  font-family: var(--font-eng);
  color: var(--marimo-blue);
}

.tgc-beads__figure {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-inline: 2.66cqw; /* 20px */
}

.tgc-beads__trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* main.js disables the trigger above 48em, leaving a plain figure. */
.tgc-beads__trigger:disabled {
  cursor: default;
}

/* The whole visual is the tap target, not just the diagram. */
.tgc-beads__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tgc-beads__trigger img {
  display: block;
  width: 100%;
  height: auto;
}

.tgc-beads__legend {
  grid-row: 3;
  display: flex;
  align-items: flex-start;
  gap: 2.128cqw; /* 16px */
  padding-top: 4.255cqw; /* 32px */
}

.tgc-beads__legend--other {
  grid-column: 1;
}

.tgc-beads__legend--ours {
  grid-column: 2;
  justify-content: flex-end;
}

.tgc-beads__thickness {
  flex-shrink: 0;
  width: 15.691cqw; /* 118px */
  margin: 0;
  padding: 1.463cqw 2.128cqw; /* 11px 16px */
  background-color: var(--pure-white);
  border: 1px solid var(--gray-600);
  font-family: "Noto Sans JP", var(--font-thai-noto);
  font-weight: 700;
  font-size: 1.862cqw; /* 14px */
  line-height: 1.5;
  color: var(--gray-700);
  text-align: center;
  overflow-wrap: normal;
}

.tgc-beads__legend--ours .tgc-beads__thickness {
  border-color: var(--marimo-blue);
  color: var(--marimo-blue);
}

.tgc-beads__note {
  margin-block: auto;
  font-size: 2.128cqw; /* 16px */
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: center;
  overflow-wrap: normal;
}

.tgc-beads__legend--ours .tgc-beads__note {
  font-weight: 700;
  color: var(--marimo-blue);
}

/* --- 02: field-proof photos --- */
.tgc-proof {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.tgc-proof__title {
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.tgc-proof__title[lang="en"] {
  font-family: var(--font-eng);
}

.tgc-proof img {
  width: 100%;
  height: auto;
  background-color: var(--gray-400);
}

.tgc-proof__caption {
  margin: 0;
  font-size: var(--font-size-xl);
  letter-spacing: 0.02em;
}

@media (min-width: 48em) {
  .tgc-strongpoint {
    padding-inline: var(--space-md);
  }

  .tgc-strongpoint__heading,
  .tgc-point__visual,
  .tgc-point__visual--figures {
    padding-inline: 0;
  }

  .tgc-point__card {
    border-radius: var(--radius-sm);
  }

  .tgc-beads__trigger::after {
    display: none;
  }

  .tgc-point__visual--figures {
    flex-direction: row;
    gap: 3.5rem;
  }

  .tgc-proof {
    flex: 1 0 0;
    min-width: 0;
  }
}

@media (min-width: 75em) {
  .tgc-strongpoint {
    gap: var(--space-2xl);
    padding: 12.5rem 7.5rem 0;
  }

  .tgc-strongpoint__heading {
    max-width: var(--content-max-width);
    margin-inline: auto;
    width: 100%;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-400);
  }

  .tgc-point {
    flex-direction: row;
    align-items: center;
    gap: 3.75rem;
    max-width: var(--content-max-width);
    margin-inline: auto;
    width: 100%;
  }

  .tgc-point + .tgc-point {
    margin-top: 1.5rem;
  }

  .tgc-point__card {
    flex-shrink: 0;
    align-self: stretch;
    justify-content: center;
    width: 24.25rem;
    gap: var(--space-md);
    padding: 3.5rem var(--space-lg);
  }

  .tgc-point__number {
    top: 2.25rem;
    right: 1.5rem;
    font-size: var(--font-size-7xl);
  }

  .tgc-point__title {
    font-size: var(--font-size-5xl);
  }

  .tgc-point__visual {
    flex: 1 0 0;
    min-width: 0;
  }
}

/* =========================================================
   tgc-quality (โค้ตติ้งทนทานสูงพิเศษ จากประเทศญี่ปุ่น)
   ========================================================= */
.tgc-quality {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 8.75rem;
}

/* Sky wash, starting below the overlapping intro photo. */
.tgc-quality::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18.75rem;
  bottom: 0;
  background-image: linear-gradient(180deg, rgba(95, 161, 227, 0.35), rgba(236, 244, 248, 0));
  pointer-events: none;
}

.tgc-quality > * {
  position: relative;
}

.tgc-quality__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-inline: var(--space-lg);
}

.tgc-quality__photo {
  width: 100%;
  aspect-ratio: 310 / 273;
  object-fit: cover;
  border: 1px solid var(--pure-white);
  border-radius: var(--radius-sm);
  background-color: var(--gray-400);
}

.tgc-quality__intro-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-quality__intro-text p {
  margin: 0;
}

.tgc-quality__warranty {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 7.5rem var(--space-lg) 0;
}

.tgc-quality__warranty-heading strong {
  font-size: var(--font-size-4xl);
}

.tgc-quality__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* The shield lock-up is portrait, unlike the square icon weather-card assumes. */
.tgc-quality__row .weather-card__badge img {
  width: 2.8rem;
  height: 3.8rem;
}

.weather-card__badge {
  gap: var(--space-xs);
}

.tgc-warranty-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tgc-warranty {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background-color: var(--pure-white);
  border-radius: var(--radius-sm);
  padding: var(--space-lg) var(--space-md);
}

.tgc-warranty__title {
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.tgc-warranty__title strong {
  font-size: var(--font-size-3xl);
}

.tgc-warranty p:not(.tgc-warranty__title) {
  margin: 0;
}

.tgc-polyurea {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--pure-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg) var(--space-md);
  margin: var(--space-2xl) var(--space-lg) 0;
}

.tgc-polyurea__photo {
  width: 100%;
  aspect-ratio: 366 / 258;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--gray-400);
}

.tgc-polyurea__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-polyurea__body p {
  margin: 0;
}

.tgc-polyurea__title {
  margin: 0;
  font-family: "Noto Sans JP", var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (min-width: 48em) {
  .tgc-quality__intro,
  .tgc-quality__warranty {
    padding-inline: var(--space-md);
  }

  /* Side by side only from 75em: 26rem of card plus two copy blocks needs the width. */
  .tgc-quality__row .weather-card {
    align-self: center;
    width: 26rem;
  }

  .weather-card__badge {
    padding-inline: var(--space-lg);
    gap: var(--space-sm);
  }


  .weather-card__badge p {
    font-size: var(--font-size-3xl);
  }

  .tgc-quality__row .weather-card__badge img {
    width: 3rem;
    height: 4rem;
  }

  .tgc-warranty {
    padding: var(--space-lg);
  }

  .tgc-polyurea {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-lg);
    padding: var(--space-lg);
    margin-inline: var(--space-md);
  }

  .tgc-polyurea__photo {
    flex-shrink: 0;
    width: 18rem;
    aspect-ratio: auto;
  }

  .tgc-polyurea__body {
    flex: 1 0 0;
    min-width: 0;
    justify-content: center;
  }
}

@media (min-width: 75em) {
  .tgc-quality {
    padding-top: 11.25rem;
    padding-bottom: 0;
  }

  .tgc-quality__intro {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2xl);
    max-width: var(--page-max-width);
    margin-inline: auto;
    width: 100%;
    padding-inline: 7.5rem;
  }

  .tgc-quality__photo {
    flex-shrink: 0;
    width: 31.875rem;
    aspect-ratio: 510 / 536;
  }

  .tgc-quality__intro-text {
    flex-shrink: 0;
    width: 37.5rem;
    /* The photo runs 240px higher than the copy. */
    padding-top: 15rem;
  }

  .tgc-quality__intro-text .section-heading {
    font-size: var(--font-size-4xl);
  }

  .tgc-quality__warranty {
    gap: var(--space-md);
    max-width: var(--page-max-width);
    margin-inline: auto;
    width: 100%;
    padding: 8.75rem 7.5rem 0;
  }

  .tgc-quality__warranty-heading {
    font-size: var(--font-size-4xl);
  }

  .tgc-quality__warranty-heading strong {
    font-size: 3rem;
  }

  .tgc-quality__row {
    flex-direction: row-reverse;
    align-items: stretch;
    gap: var(--space-2xl);
  }

  .tgc-quality__row .weather-card {
    align-self: auto;
    flex: 0 0 auto;
    width: 26.4375rem;
    height: auto;
    min-height: 27.5rem;
  }

  
  .tgc-quality__row .weather-card__years {
    gap: 0.5rem;
  }

  .tgc-warranty-list {
    flex: 1 0 0;
    min-width: 0;
    justify-content: space-between;
  }

  .tgc-warranty {
    padding: var(--space-lg);
  }

  .tgc-polyurea {
    gap: var(--space-xl);
    padding: var(--space-2xl);
    max-width: var(--content-max-width);
    margin: 7.5rem auto 4rem;
  }

  .tgc-polyurea__photo {
    width: 22.875rem;
  }
}

/* =========================================================
   tgc-video (วิธีการทาเคลือบ)
   ========================================================= */
.tgc-video {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  margin-block-start: var(--space-3xl);
}

.tgc-video__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tgc-video__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--ink);
}

.tgc-video__intro p {
  margin: 0;
}

.tgc-video__note {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
}

.tgc-video__player {
  position: relative;
  width: 100%;
  aspect-ratio: 660 / 393;
  background-color: var(--gray-400);
}

.tgc-video__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 48em) {
  .tgc-video {
    padding-inline: var(--space-md);
  }
}

@media (min-width: 75em) {
  .tgc-video {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
    max-width: var(--page-max-width);
    margin-inline: auto;
    padding-inline: 7.5rem;
  }

  .tgc-video__text {
    flex: 1 0 0;
    min-width: 0;
    gap: var(--space-lg);
  }

  .tgc-video__player {
    flex-shrink: 0;
    width: 41.25rem;
  }
}

/* =========================================================
   tgc-product (สูตรการทาตามประเภทหลังคา)
   ========================================================= */
.tgc-product {
  display: flex;
  flex-direction: column;
  padding: 7.5rem var(--space-lg) 0;
}

.tgc-product-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-product-row + .tgc-product-row {
  margin-top: var(--space-2xl);
}

.tgc-product-row__photo {
  width: 100%;
  aspect-ratio: 310 / 281;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background-color: var(--gray-400);
}

.tgc-product-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-product-row__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tgc-product-row__title {
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.5;
}

.tgc-product-row__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.tgc-product-row__badges li {
  border: 1px solid var(--marimo-blue);
  border-radius: var(--radius-sm);
  padding: 0.75rem var(--space-xs);
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--marimo-blue);
  overflow-wrap: normal;
}

.tgc-product-spec {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--soft-blue);
  border-radius: var(--radius-xs);
  padding: var(--space-md) var(--space-sm);
}

.tgc-product-spec__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  line-height: 1.5;
}

.tgc-product-spec__label span {
  font-size: var(--font-size-md);
}

.tgc-product-spec__label strong {
  font-weight: 700;
  font-size: var(--font-size-2xl);
}

.tgc-product-spec__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-thai-noto);
  font-weight: 500;
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.tgc-product-spec__steps li:not(:last-child)::after {
  content: "+";
  margin-inline: 0.75rem;
}


@media (max-width: 376px) {
    .tgc-quality__row .weather-card__badge {
      gap: 0.75rem;
  }
    .tgc-quality__row .weather-card__badge img {
      width: auto;
      height: 3.2rem;
  }
}

@media (min-width: 48em) {
  .tgc-product {
    padding-inline: var(--space-md);
  }

  .tgc-product-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .tgc-product-row + .tgc-product-row {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-400);
  }

  .tgc-product-row__photo {
    flex-shrink: 0;
    width: 16.25rem;
  }

  .tgc-product-row__body {
    flex: 1 0 0;
    min-width: 0;
    gap: var(--space-lg);
  }

  .tgc-product-row__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg);
  }

  .tgc-product-row__badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .tgc-product-spec {
    flex-direction: row;
    gap: var(--space-lg);
    padding: var(--space-md);
  }

  .tgc-product-spec__label {
    justify-content: flex-end;
  }

  .tgc-product-spec__steps {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.75rem;
  }
}

@media (min-width: 75em) {
  .tgc-product {
    max-width: var(--page-max-width);
    margin-inline: auto;
    width: 100%;
    padding: 7.5rem 7.5rem 0;
  }

  .tgc-product-row {
    gap: 3rem;
  }

  .tgc-product-row__badges li {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xl);
  }
}

/* =========================================================
   tgc-example (ผลงานติดตั้งในประเทศญี่ปุ่น)
   ========================================================= */
.tgc-example {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  background-color: var(--soft-blue);
  padding: var(--space-2xl) var(--space-lg);
  margin-top: 7.5rem;
}

/* Diagonal brand band behind the white heading.
   main.js wipes it in via .is-hidden / .is-visible on scroll. */
.tgc-example__decorative {
  position: absolute;
  top: -25rem;
  left: -25rem;
  width: 50rem;
  height: 80rem;
  background-image: linear-gradient(to bottom, #008de3, rgba(0, 141, 227, 0));
  transform: rotate(45deg);
  pointer-events: none;
}

.tgc-example__decorative.is-hidden {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tgc-example__decorative.is-hidden.is-visible {
  clip-path: inset(0 0 0 0);
}

.tgc-example__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tgc-example__intro p {
  margin: 0;
  color: var(--pure-white);
}

.tgc-example__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background-color: var(--pure-white);
  border-radius: var(--radius-sm);
  padding: var(--space-lg) var(--space-sm);
}

.tgc-case__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tgc-case__head p {
  margin: 0;
}

.tgc-case__title {
  margin: 0;
  font-family: var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.tgc-case__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tgc-case__map {
  position: relative;
  width: 100%;
  aspect-ratio: 262 / 191;
  background-color: var(--gray-400);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.tgc-case__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tgc-case__pairs {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tgc-ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-2xs) 0;
  align-items: center;
}

.tgc-ba__label {
  grid-row: 1;
  margin: 0;
  font-family: "Noto Sans JP", var(--font-thai-noto);
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: 0.02em;
}

.tgc-ba__label--before {
  grid-column: 1;
  color: var(--gray-600);
}

.tgc-ba__label--after {
  grid-column: 3;
  color: var(--marimo-blue);
}

.tgc-ba__shot {
  grid-row: 2;
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: none;
}

.tgc-ba__shot--before {
  grid-column: 1;
}

.tgc-ba__shot--after {
  grid-column: 3;
  outline: 3px solid var(--marimo-blue);
  outline-offset: -3px;
}

.tgc-ba__shot > img:first-child {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--gray-400);
}

.tgc-ba__zoom {
  position: absolute;
  right: 0.375rem;
  bottom: 0.375rem;
  width: 1.25rem;
  height: 1.25rem;
}

.tgc-ba__arrow {
  grid-column: 2;
  grid-row: 2;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline: var(--space-2xs);
}

/* --- Energy-saving simulation table (real markup, per the Figma annotation) --- */
.tgc-savings {
  display: flex;
  flex-direction: column;
}

/* Only the table scrolls, so the hint below it stays put. */
.tgc-savings__scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tgc-savings__table {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
  font-family: "Noto Sans JP", var(--font-thai-noto);
  font-size: var(--font-size-xs);
  line-height: 1.4;
  overflow-wrap: normal;
}

.tgc-savings__table th,
.tgc-savings__table td {
  border: 1px solid var(--ink);
  padding: 0.375rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.tgc-savings__table th {
  font-weight: 700;
}

.tgc-savings__table tbody th {
  font-size: var(--font-size-2xs);
  white-space: normal;
}

.tgc-savings__stub,
.tgc-savings__corner {
  background-color: var(--pure-white);
}

.tgc-savings__total {
  font-weight: 700;
}

.tgc-savings__payback {
  color: #d40000;
  font-weight: 700;
}

.tgc-savings__notes {
  white-space: normal;
  text-align: left;
  vertical-align: top;
  font-size: var(--font-size-2xs);
  color: var(--gray-700);
  overflow-wrap: anywhere;
}

.tgc-savings__notes span {
  display: block;
}

.tgc-savings__scroll-hint {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: var(--space-xs) 0 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-xs);
  font-family: var(--font-eng);
  font-size: var(--font-size-xs);
  color: var(--gray-600);
}



@media (min-width: 48em) {
  .tgc-savings__scroll-hint {
    display: none;
  }
}

/* The shared icon has a white stroke; tint it for a light background. */
.tgc-savings__scroll-hint img {
  width: 0.875rem;
  height: 0.875rem;
  filter: invert(45%);
}

.tgc-case__note {
  margin: 0;
}

@media (min-width: 48em) {
  .tgc-example {
    padding-inline: var(--space-md);
  }

  .tgc-example__card {
    padding: var(--space-xl);
  }

  /* Map stays above the pairs until 75em so each shot keeps a readable size. */
  .tgc-case__map {
    max-width: 26rem;
  }

  /* PC: the Before/After chips sit on the photo instead of above it. */
  .tgc-ba {
    row-gap: 0;
  }

  .tgc-ba__label {
    grid-row: 2;
    z-index: 1;
    align-self: start;
    justify-self: start;
    margin: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--pure-white);
    border-radius: var(--radius-xs);
  }

  .tgc-ba__zoom {
    display: none;
  }
}

@media (min-width: 75em) {
  .tgc-example {
    gap: var(--space-2xl);
    padding: 7.5rem;
    margin-top: 11.25rem;
  }

  /* A 425.7x1300 band rotated 45deg, centred at (203.5, 211.5) of the
     1440px frame so it tracks the content column under the heading. */
  .tgc-example__decorative {
    top: 13.22rem;
    left: calc(50% - 32.28rem);
    width: 26.6rem;
    height: 118rem;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .tgc-example__intro {
    flex-direction: row;
    align-items: center;
    gap: 15rem;
    max-width: var(--content-max-width);
    margin-inline: auto;
    width: 100%;
    padding-block: var(--space-lg);
  }

  .tgc-example__intro .section-heading {
    flex-shrink: 0;
    min-width: 20.125rem;
  }

  .tgc-example__intro p {
    flex: 1 0 0;
    min-width: 0;
    color: var(--ink);
  }

  .tgc-example__card {
    gap: var(--space-lg);
    max-width: var(--content-max-width);
    margin-inline: auto;
    width: 100%;
    padding: var(--space-2xl);
  }

  .tgc-case__head {
    flex-direction: row;
    align-items: center;
    gap: 7.5rem;
  }

  .tgc-case__media {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .tgc-case__map {
    flex-shrink: 0;
    width: 21.75rem;
    max-width: none;
    aspect-ratio: 348 / 408.5;
  }

  .tgc-case__pairs {
    flex: 1 0 0;
    min-width: 0;
  }

  .tgc-case__pairs {
    gap: 3.5rem;
  }

  .tgc-ba__arrow {
    width: 2rem;
    height: 2rem;
    margin-inline: var(--space-2xs);
  }

  /* Still wider than the 1200px column, so the scroller and its hint stay. */
  .tgc-savings__table {
    min-width: 0;
  }
}

/* =========================================================
   tgc-cta-head (บทนำเข้าสู่ contact)
   ========================================================= */
.tgc-cta-head {
  position: relative;
  padding-top: var(--space-2xl);
}

.tgc-cta-head__media {
  position: absolute;
  top: var(--space-2xl);
  left: 0;
  width: 100%;
  height: 24.25rem;
  overflow: hidden;
}

/* SP: the photo bleeds 119px off the left of the 390px frame; flush from 48em. */
.tgc-cta-head__bg {
  position: absolute;
  top: 0;
  left: -30.5%;
  width: 143.3%;
  /* reset.css caps images at max-width: 100%, which would undo the bleed. */
  max-width: none;
  height: 100%;
  object-fit: cover;
  background-color: var(--gray-400);
}

/* SP dissolves the photo into the page at both ends; PC only at the top. */
.tgc-cta-head__fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(255, 255, 255, 0) 80.8%, var(--pure-white) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72.222%, var(--pure-white) 100%);
}

.tgc-cta-head__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: 13.25rem;
  min-height: 20.3125rem;
  padding: var(--space-lg);
  /* SP: brand blue rising from the foot of the panel. */
  background-image: linear-gradient(0deg, rgba(0, 141, 227, 0.9), rgba(0, 141, 227, 0));
  color: var(--pure-white);
}

.tgc-cta-head__lead {
  margin: 0;
  font-family: var(--font-thai-sarabun);
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: 0.02em;
}

.tgc-cta-head__title {
  margin: 0;
  font-family: var(--font-thai-sarabun);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (min-width: 48em) {
  .tgc-cta-head__media {
    height: 34rem;
  }

  .tgc-cta-head__bg {
    left: 0;
    width: 100%;
  }

  .tgc-cta-head__panel {
    gap: var(--space-md);
    margin-top: 18rem;
    padding: var(--space-2xl) var(--space-xl);
  }

  .tgc-cta-head__title {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 75em) {
  .tgc-cta-head {
    padding-top: 7.5rem;
  }

  .tgc-cta-head__media {
    top: 7.5rem;
    height: 55.3125rem;
  }

  .tgc-cta-head__fade {
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0) 72.429%, var(--pure-white) 100%);
  }

  .tgc-cta-head__panel {
    gap: var(--space-xl);
    margin-top: 0;
    margin-left: 3.75rem;
    width: 32rem;
    min-height: 55.3125rem;
    padding: var(--space-lg) 3.5rem;
    /* PC: a flat blue column that fades to white at its head. */
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0) 57.684%, var(--pure-white) 100%),
      linear-gradient(90deg, rgba(18, 135, 218, 0.88), rgba(18, 135, 218, 0.88));
    text-align: center;
  }

  .tgc-cta-head__panel > * {
    max-width: 25rem;
    margin-inline: auto;
  }

  .tgc-cta-head__title {
    font-size: var(--font-size-5xl);
    line-height: 1.8;
  }
}
