/* Base typography resets and section titles */
.tai-front-page {
  overflow: hidden;
  border: none;
}

.sec-en {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 400;
}

.sec-ja {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 60px;
  color: var(--primary-red);
}

.text-white {
  color: #fff;
}

/* Hero */
.top-hero {
  display: flex;
  padding: 80px 0 330px;
  position: relative;
  overflow: visible;
  min-height: 800px;
  z-index: 10;
}

.top-hero-inner {
  width: 100%;
}

.top-hero-content {
    width: calc(100% - 680px);
    max-width: 372px;
  position: relative;
  z-index: 2;
    margin-top: 80px;
}

.hero-title {
  font-family: var(--font-ja);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 42px;
  white-space: nowrap;
}

@media screen and (min-width: 992px) {
  .hero-title {
    letter-spacing: 3px;
  }
}

.hero-title-ai {
  font-size: 1.1em;
}

.hero-title-symbol {
  font-weight: 500;
}

.hero-title-quote {
  font-size: 0.9em;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px !important;
  letter-spacing: 0.05em;
}

.hero-text {
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  max-width: 480px;
}

p.hero-text {
  font-size: 15px !important;
}

.top-hero-image {
  position: absolute;
    right: -339px;
    top: 160px;
    width: 1110px;
  height: 110%;
  z-index: 1;
  pointer-events: none;
}

.kv-inner,
.kv-outer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
}

.kv-inner {
    width: 153px;
    top: 310px;
    left: 300px;
}

.kv-outer {
  /* animation: kvSpin 30s linear infinite; */
  transform-origin: center;
}

@media screen and (min-width: 992px) and (max-width: 1300px) {
  .top-hero {
    --top-hero-image-width: 74vw;
    --top-hero-image-top: clamp(100px, calc(19.5vw - 93px), 160px);
    --top-hero-image-right: clamp(-233px, calc(13.6vw - 368px), -191px);
  }

  .top-hero-content {
    width: calc(100% - 52vw);
  }

  .top-hero-image {
    top: var(--top-hero-image-top);
    right: var(--top-hero-image-right);
    width: var(--top-hero-image-width);
    height: auto;
    aspect-ratio: 1 / 1;
    shape-outside: circle(50%);
    shape-margin: clamp(16px, 2vw, 26px);
  }

  .kv-inner {
    width: clamp(120px, calc(10.7vw + 14px), 153px);
    top: clamp(200px, calc(35.7vw - 154px), 310px);
    left: clamp(200px, calc(32.5vw - 122px), 300px);
  }
}

.hero-scroll {
  position: absolute;
  left: 0;
  bottom: -68px;
  display: flex;
  align-items: center;
  transform: rotate(90deg);
  transform-origin: left bottom;
}

.scroll-text {
  font-family: var(--font-en);
  color: var(--primary-red);
  font-size: 16px;
  margin-right: 15px;
}

.scroll-line {
  display: inline-block;
  width: 85px;
  height: 1px;
  background-color: var(--primary-red);
}

/* About */
.top-about {
  margin-bottom: 150px;
  position: relative;
  z-index: 11;
}

.about-upper {
  margin-bottom: 80px;
}

.about-image {
  width: 100%;
  margin-bottom: 40px;
}

.about-image video {
  display: block;
  width: 100%;
}

.about-content {
  position: relative;
}

.about-catch {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.7;
}

.about-desc {
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
  color: var(--text-secondary);
  white-space: nowrap;
}

p.about-desc {
  font-size: 15px !important;
}

.about-btn-wrap {
  display: flex;
  width: 100%;
}

.upper-btn {
  justify-content: flex-end;
}

.about-sep {
  border: none;
  border-top: 1px solid #c00;
  margin: 80px 0;
    width: 120%;
    margin-left: -4%;
}

.about-lower {
  position: relative;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.origin-text {
  width: 55%;
    color: var(--text-secondary);
}

.origin-logo {
  width: 40%;
  margin-top: 40px;
}

.origin-logo img {
    width: 75%;
}

.red-dot-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 25px;
}

.about-lower-text {
  line-height: 1.8;
}

@media screen and (min-width: 992px) {
  p.about-lower-text {
    font-size: 15px !important;
  }
}

.lower-btn {
  justify-content: flex-start;
}

/* Solution */
.top-solution {
  background-color: var(--primary-red);
  padding: 80px 0 130px;
  margin-bottom: 90px;
  position: relative;
}

.solution-inner {
  display: grid;
  grid-template-columns: 45% 45%;
  align-items: stretch;
  justify-content: space-between;
}

.solution-text-area {
  width: 100%;
}

.solution-catch {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.7;
  color: #fff;
  margin: 30px 0 20px;
}

.solution-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

p.solution-desc {
  font-size: 15px !important;
}

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

.solution-image {
  width: 100%;
  height: 92%;
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
}

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

/* News */
.top-news {
  margin-bottom: 150px;
}

.news-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.news-card {
  width: calc(33.333% - 27px);
}

.news-thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 200px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-info time {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--primary-red);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.news-title {
  display: -webkit-box;
  height: 4.8em;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card-link:hover {
  opacity: 0.8;
}
.news-excerpt {
  font-size: 14px;
  color: #aeaeae;
  line-height: 1.85;
  letter-spacing: 0.05em;
}

p.news-excerpt {
  font-size: 14px !important;
}

.news-btn-wrap {
  display: flex;
  justify-content: flex-end;
}

/* AI Chip */
.top-aichip {
  margin-bottom: 120px;
}

.aichip-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background-color: #F7F7F7 !important;
  padding: 60px 60px;
  overflow: hidden;
  position: relative;
  min-height: 400px;
  background-size: 560px;
  background-position: top 30% right -176px;
  background-repeat: no-repeat;
  border-radius: 20px 0px 0px 20px;
}

/*.aichip-inner::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 0;*/
/*  right: 0;*/
/*  width: 45%;*/
/*  height: 100%;*/
/*  background-size: cover;*/
/*  background-position: center right;*/
/*  background-repeat: no-repeat;*/
/*  z-index: 0;*/
/*}*/

.aichip-text {
  width: 45%;
  flex-shrink: 0;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.aichip-desc {
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 70px;
    width: 80%;
}

p.aichip-desc {
  font-size: 15px !important;
}

.aichip-image {
  display: none;
}

.aichip-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.aichip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* IR */
.top-ir {
  background-color: var(--primary-red);
  padding: 80px 0 120px;
  margin-bottom: 0px;
}

.ir-inner {
  display: grid;
  grid-template-columns: 45% 45%;
  align-items: stretch;
  justify-content: space-between;
}

.ir-text-area {
}

.ir-catch {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.7;
  margin: 30px 0 20px;
}

.ir-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 80px;
}

p.ir-desc {
  font-size: 15px !important;
}

.ir-image {
  height: 92%;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 30px;
}

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

/* Grayscale filters for Solution and below */
.top-solution .solution-image img,
.top-news .news-thumb img,
.top-aichip .aichip-image img,
.top-ir .ir-image img {
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.2s ease;
}

.top-solution .solution-inner:hover .solution-image img,
.top-news .news-card:hover .news-thumb img,
.top-aichip .aichip-inner:hover .aichip-image img,
.top-ir .ir-inner:hover .ir-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
