/* ==========================================
   Technology Page — Mobile First (max 767px base)
   ========================================== */

.tai-technology-page {
  overflow: hidden;
}

/* ----- Hero ----- */
.tl-hero {
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 60px;
}

.tl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tl-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.55);
}

.tl-hero-text {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
}

.tl-hero-en {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.tl-hero-ja {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.12em;
  margin: 0;
}

/* ----- Intro ----- */
.tl-intro {
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tl-intro-text {
  flex: 1;
}

.tl-intro-lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.tl-intro-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.tl-intro-image {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.tl-intro-image img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.4s ease;
}

.tl-intro-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* ----- Products ----- */
.tl-products {
  padding-bottom: 60px;
}

.tl-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tl-product-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.tl-product-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tl-product-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.tl-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.4s ease;
}

.tl-product-card:hover .tl-product-image img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.tl-product-body {
  padding: 24px;
}

.tl-product-title {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tl-product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tl-product-link {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-red);
  position: relative;
  padding-right: 20px;
}

.tl-product-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c00000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.tl-product-card:hover .tl-product-link::after {
  transform: translateY(-50%) translateX(4px);
}

/* ----- Research & Development ----- */
.tl-research {
  background-color: var(--primary-red);
  padding: 60px 0;
  margin-bottom: 60px;
}

.tl-research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tl-research-item {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 24px;
}

.tl-research-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.tl-research-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

/* ----- Partners ----- */
.tl-partners {
  padding-bottom: 60px;
}

.tl-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.tl-partner-logo {
  flex: 0 0 calc(50% - 12px);
  max-width: 200px;
}

.tl-partner-logo img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.tl-partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

/* ----- Technology page migrated from page-technology.php ----- */
  .tai-technology-page {
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-ja);
  }

  .tech-lower,
  .tech-lower * {
    box-sizing: border-box;
  }

  .tech-lower a {
    color: inherit;
    text-decoration: none;
  }

  .tech-lower h1,
  .tech-lower h2,
  .tech-lower h3,
  .tech-lower p,
  .tech-lower ul {
    margin: 0;
  }

  .tech-lower img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    margin-top: 3px;
  }

  .tech-container {
    width: min(100% - 80px, 1080px);
    margin: 0 auto;
  }

  .tech-social {
    padding-top: 67px;
  }

  .tech-section-title {
    position: relative;
    padding-left: 20px;
    color: var(--primary-red);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
  }

  .tech-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-red);
  }

  .tech-lead {
    margin-top: 10px !important;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: normal;
    line-height: 2;
    letter-spacing: 0.03em;
  }

  p.tech-lead {
    font-size: 17px !important;
  }

  .tech-social-grid {
    display: grid;
    grid-template-columns: 461px 482px;
    justify-content: center;
    align-items: center;
    gap: 91px;
    margin-top: 61px;
  }

  .tech-social-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tech-issue-box {
    width: 100%;
    padding: 20px 28px 21px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-issue-white {
    background: #fff;
  }

.tech-issue-box.tech-issue-white {
  padding-bottom:0;
}

  .tech-issue-pink {
    background: #fbf3f3;
  }

.tech-issue-box.tech-issue-pink {
  padding: 35px;
}

  .tech-issue-box h3 {
    color: var(--primary-red);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
  }

  .tech-issue-box ul {
    margin-top: 14px;
    padding-left: 1.2em;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.02em;
  }

  .tech-down-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 17px 0;
  }

  .tech-down-dots span {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 11px solid var(--primary-red);
  }

  .tech-map img {
    filter: none;
  }

  .tech-ai {
    padding-top: 85px;
    padding-bottom: 83px;
  }

  .tech-products {
    width: 88%;
    margin: 0 0 0 calc(12% - 40px);
    padding-bottom: 156px;
  }

  .tech-product {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: none;
    background: transparent;
    padding-left: 40px;
  }

  .tech-product + .tech-product {
    margin-top: 56px;
  }

  .tech-product picture,
  .tech-product picture img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .tech-product picture img {
    width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    object-position: right;
  }

  .tech-product-image-stack {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .tech-product-image-stack picture {
    opacity: 1;
  }

  .tech-product-image-stack picture + picture {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }

  .tech-product-image-stack:hover picture + picture {
    opacity: 1;
  }

  .tech-product-image-stack picture img,
  .tech-product-image-stack picture:hover img {
    filter: none;
  }

  .tech-product-image-stack:hover picture img {
    transform: scale(1.03);
  }

  .tech-product-body {
    position: relative;
    z-index: 1;
    width: 440px;
    max-width: 28vw;
    padding: 30px 0 56px;
  }

  .tech-product-no {
    display: inline-block;
    margin-bottom: 71px !important;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: var(--primary-red);
    font-family: var(--font-en);
    font-weight: 500;
    line-height: 1.3;
  }

  p.tech-product-no {
    font-size: 23px !important;
  }

  .tech-product h2 {
    margin-top: 0;
    font-family: var(--font-en);
    font-size: 43px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .tech-product h2 span {
    font-family: var(--font-ja);
    font-size: 17px;
    font-weight: 700;
    vertical-align: 0.12em;
  }

  .tech-product h3 {
    margin-top: 12px;
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
  }

  .tech-product-body > p:not(.tech-product-no) {
    margin-top: 39px;
    color: var(--text-secondary);
    font-size: 17px !important;
    font-weight: normal;
    line-height: 2;
    letter-spacing: 0.03em;
  }

  .tech-product-links {
    position: relative;
    z-index: 1;
    margin-left: 0;
    margin-top: 30px;
  }

  .tech-product-links span {
    position: relative;
    width: 22px;
    height: 7px;
  }

  .tech-product-links span::before,
  .tech-product-links span::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: currentColor;
  }

  .tech-product-links span::before {
    left: 0;
    width: 22px;
    height: 1px;
  }

  .tech-product-links span::after {
    right: 0;
    width: 7px;
    height: 7px;
  }

.aichip-btns {
  max-width: 100% !important;
}

  @media screen and (max-width: 991px) {
    .tech-container {
      width: min(100% - 56px, 690px);
    }

    .tech-social-grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 35px;
    }

    .tech-social-copy {
      order: 2;
    }

    .tech-map {
      order: 1;
      max-width: 482px;
      margin: 0 auto;
    }

  }

  @media screen and (max-width: 767px) {
    .tech-container {
      width: auto;
      margin: 0;
      padding-left: 8%;
      padding-right: 8%;
    }

    .tech-social {
      padding-top: 73px;
    }

    .tech-section-title {
      padding-left: 18px;
      font-size: 17px;
      line-height: 1.5;
    }

    .tech-section-title::before {
      top: 0.62em;
      width: 10px;
      height: 10px;
    }

    .tech-lead {
      margin-top: 22px;
      font-size: 13px;
      line-height: 2.05;
      font-weight: normal;
    }

    .tech-social-grid {
      margin-top: 31px;
    }

    .tech-social-copy {
      order: 1;
    }

    .tech-map {
      order: 0;
    }

    .tech-issue-box {
      padding: 17px 22px 18px;
      width: 80%;
    }

    .tech-issue-box.tech-issue-pink {
      padding: 25px;
    }

    .tech-issue-box h3 {
      font-size: 13px;
    }

    .tech-issue-box ul {
      margin-top: 10px;
      font-size: 11px;
      line-height: 1.85;
    }

    .tech-down-dots {
      margin: 12px 0;
      width: 10px;
    }

    .tech-down-dots span {
      border-left-width: 6px;
      border-right-width: 6px;
      border-top-width: 9px;
    }

    .tech-ai {
      padding-top: 74px;
      padding-bottom: 46px;
    }

    .tech-product-links .t-btn-outline {
      justify-content: space-between;
      padding: 10px 18px;
      font-size: 16px;
    }

  }

  @media screen and (max-width: 1100px) {
    p.tech-product-no {
      font-size: 17px !important;
    }

    .tech-products {
      width: auto;
      margin: 0;
      padding-right: 8%;
      padding-bottom: 0px;
      padding-left: 8%;
    }

    .tech-product {
      display: grid !important;
      overflow: visible;
      padding-bottom: 0;
      padding-top: 40px;
      border-radius: 0;
      box-shadow: none;
      padding-left: 0;
    }

    .tech-product + .tech-product {
      margin-top: 63px;
    }

    .tech-product-body {
      display: contents;
      padding: 0;
    }

    .tech-product-no {
      order: 0;
      justify-self: start;
      width: fit-content;
      max-width: 100%;
      margin-bottom: 15px !important;
      padding-bottom: 1px;
      font-size: 14px !important;
      line-height: 1.3;
    }

    .tech-product h2 {
      order: 1;
      margin-top: 0;
      font-size: 34px;
      line-height: 1.12;
    }

    .tech-product h2 span {
      display: inline-block;
      font-size: 13px;
    }

    .tech-product h3 {
      order: 2;
      margin-top: 8px;
      font-size: 14px;
    }

    .tech-product-body > p:not(.tech-product-no) {
      order: 3;
      margin-top: 25px;
      font-size: 13px;
      line-height: 2.05;
    }

    .tech-product picture,
    .tech-product picture img {
      position: static;
      height: auto;
      margin-top: 0;
      margin-bottom: 0;
    }

    .tech-product picture {
      order: 4 !important;
      margin-top: 22px;
    }

    .tech-product-image-stack {
      order: 4 !important;
      position: relative;
      height: auto;
      margin-top: 22px;
    }

    .tech-product-image-stack picture {
      position: relative;
      inset: auto;
      height: auto;
      margin-top: 0;
    }

    .tech-product-image-stack picture + picture {
      position: absolute;
      inset: 0;
      height: 100%;
    }

    .tech-product-image-stack picture + picture img {
      height: 100%;
    }

    .tech-product picture img {
      object-fit: contain;
      filter: grayscale(100%);
    }

    .tech-product-image-stack picture img {
      filter: none;
    }

    .tech-product-links {
      order: 5 !important;
      margin: 26px 0 0;
    }

    .aichip-btns {
      justify-content: center;
      max-width: 100%;
    }

    .tech-product-links span {
      width: 18px;
      height: 6px;
    }

    .tech-product-links span::before {
      width: 18px;
    }

    .tech-product-links span::after {
      width: 6px;
      height: 6px;
    }
  }
