/* ===================================
   TOP PAGE SPECIFIC STYLES
   Union Technology Theme
   
   This file contains styles specific to the TOP (home) page:
   - Hero Slider
   - News Section
   - Company Section
   - Service Section
   - Our Works Section
   - Case Studies Section
   - Careers Section
   =================================== */

/* ===================================
   Hero Slider Section
   =================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vw * 0.42);
  max-height: 600px;
  min-height: 400px;
  overflow: hidden;
  background-color: #fff;
  margin-top: 78px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  display: block;
  text-decoration: none;
  color: inherit;
  will-change: opacity;
}

a.slide {
  cursor: pointer;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slide Overlay - Common Styles */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 50px;
  box-sizing: border-box;
}

.slide-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.slide-text {
  margin-top: auto;
  margin-bottom: auto;
}

.slide-text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.slide-title {
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-title-lg {
  font-family: 'Allerta Stencil', sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
}

.slide-subtitle {
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 15px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.slide-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 40px;
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
  border-radius: 50px;
  color: #fff;
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Slide 1: Logo only - top left */
.slide-overlay-1 {
  justify-content: flex-start;
  align-items: flex-start;
}

/* ===================================
   Slide 1: Blockchain - SVG with logo mask
   =================================== */
.slide-1 {
  position: relative;
}

.slide-1-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-1-logo-mask {
  position: absolute;
  top: -15px;
  left: 30px;
  width: 470px;
  height: 201px;
  background: linear-gradient(to right, #fcfaf8 0%, #fcfaf8 60%, rgba(252, 250, 248, 0.8) 80%, rgba(252, 250, 248, 0) 100%);
  z-index: 1;
}

.slide-1-logo-wrapper {
  position: absolute;
  top: 32px;
  left: 22px;
  z-index: 2;
}

.slide-1-logo-blur {
  position: absolute;
  top: -9px;
  left: -16px;
  width: 550px;
  height: 180px;
  background-color: #fcfaf8;
  filter: blur(12px);
  z-index: -1;
}

.slide-1-logo {
  width: 93px;
  height: 84px;
  display: block;
}

/* ===================================
   Slide 2: Two-section layout
   Left = white with content, Right = image with gradient blend
   =================================== */
.slide-2-layout {
  display: flex;
  flex-direction: row;
  height: 100%;
  background-color: #fff;
}

/* Left white section */
.slide-2-left {
  position: relative;
  width: 45%;
  height: 100%;
  background-color: #fff;
  z-index: 2;
}

/* Right image section */
.slide-2-right {
  position: relative;
  width: 55%;
  height: 100%;
}

.slide-2-right picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-2-right picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlay on left edge of image - blends into white */
.slide-2-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 30%,
    rgba(255, 255, 255, 0.4) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Logo wrapper */
.slide-2-logo-wrapper {
  position: absolute;
  top: 32px;
  left: 22px;
  z-index: 2;
}

/* Logo blur background */
.slide-2-logo-blur {
  position: absolute;
  top: -41px;
  left: -38px;
  width: 152px;
  height: 180px;
  background-color: #fdfcf8;
  filter: blur(12px);
  z-index: -1;
}

/* Logo */
.slide-2-logo {
  width: 93px;
  height: 84px;
  display: block;
}

/* Content wrapper for text and button */
.slide-2-content {
  position: absolute;
  top: 50%;
  left: 75px;
  transform: translateY(-50%);
  z-index: 2;
}

/* Title */
.slide-2-title {
  font-family: 'A P-SK IshiiGothic StdN', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 48px;
  letter-spacing: -0.5px;
  color: #000;
  margin: 0 0 25px 0;
}

/* Button */
.slide-2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 320px;
  height: 70px;
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
  border-radius: 51px;
  box-shadow: -2px 4px 13px 6px rgba(170, 170, 170, 0.25);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-2-button span {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  color: #fff;
}

.slide-2-button svg {
  width: 11px;
  height: 16px;
}

.slide-2-button:hover {
  transform: translateY(-3px);
  box-shadow: -2px 6px 18px 8px rgba(170, 170, 170, 0.35);
}

/* Slide 3: Text only - centered */
.slide-overlay-3 {
  justify-content: center;
  align-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* ===================================
   Slide 4: Case Studies - Figma layered design
   =================================== */
.slide-4 {
  position: absolute;
}

/* Background image */
.slide-4-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content container for title and button */
.slide-4-content {
  position: absolute;
  top: 50%;
  left: 75px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Title - centered vertically, left aligned */
.slide-4-title {
  display: inline-block;
  font-family: 'A P-SK IshiiGothic StdN', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 48px;
  letter-spacing: 4.2px;
  color: #061840;
  margin: 0 0 25px 0;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.slide-4-title:hover {
  opacity: 0.7;
}

/* Button similar to slide-2 */
.slide-4-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 320px;
  height: 70px;
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
  border-radius: 51px;
  box-shadow: -2px 4px 13px 6px rgba(170, 170, 170, 0.25);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-4-button span {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  color: #fff;
}

.slide-4-button svg {
  width: 11px;
  height: 16px;
}

.slide-4-button:hover {
  transform: translateY(-3px);
  box-shadow: -2px 6px 18px 8px rgba(170, 170, 170, 0.35);
}

/* Responsive styles for Slide 4 */
@media screen and (max-width: 768px) {
  .slide-4-content {
    left: 40px;
  }

  .slide-4-title {
    font-size: 45px;
    line-height: 50px;
    letter-spacing: 2.5px;
    margin: 0 0 20px 0;
  }

  .slide-4-button {
    width: 260px;
    height: 56px;
    gap: 12px;
  }

  .slide-4-button span {
    font-size: 18px;
    line-height: 22px;
  }

  .slide-4-button svg {
    width: 9px;
    height: 13px;
  }
}

@media screen and (max-width: 480px) {
  .slide-4-content {
    left: 20px;
  }

  .slide-4-title {
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 1.5px;
    margin: 0 0 15px 0;
    color: #061840;
  }

  .slide-4-button {
    width: 180px;
    height: 45px;
    gap: 10px;
    border-radius: 40px;
  }

  .slide-4-button span {
    font-size: 14px;
    line-height: 18px;
  }

  .slide-4-button svg {
    width: 7px;
    height: 11px;
  }
}

/* Slider Pagination */
.slider-pagination {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #312d96;
  padding: 15px 30px;
  border-top-left-radius: 6px;
}

.pagination-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-prev,
.pagination-next {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
  opacity: 1;
}

.pagination-dots {
  display: flex;
  gap: 12px;
}

.pagination-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.pagination-dots .dot.active {
  background-color: #fff;
}

.pagination-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 768px) {
  .slider-pagination {
    display: none;
  }
}

/* ===================================
   News Section (TOP page)
   =================================== */
.top-news {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #FFF 18.13%, #EFEFEF 77.84%);
}

.top-news .inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 60px;
}

.top-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.top-news-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.news-title-en {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 35px;
  letter-spacing: -0.7px;
  background: linear-gradient(264deg, #ff0061 44%, #452b92 114%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-title-jp {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #b2b2b2;
}

.top-news-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 40px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.top-news-more span {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #231E1F;
}

.news-more-arrow {
  width: 33px;
  height: 24px;
}

.top-news-more:hover {
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
}

.top-news-more:hover span {
  color: #fff;
}

.top-news-more:hover .news-more-arrow path {
  fill: #fff;
}

.top-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.top-news-item {
  border-bottom: 1px solid #b2b2b2;
}

.top-news-item a,
.top-news-item .news-no-link {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 28px 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.top-news-item a:hover {
  background-color: rgba(49, 45, 150, 0.05);
}

.news-date {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #767676;
  flex-shrink: 0;
}

.news-title {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;
  color: #061840;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================================
   Company Section (TOP page - New Design)
   =================================== */
.top-company-new {
  padding: 80px 0;
  background-color: #fff;
}

.top-company-new .inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 60px;
}

.top-company-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.top-company-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.company-title-en {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 35px;
  letter-spacing: -0.7px;
  background: linear-gradient(264deg, #ff0061 44%, #452b92 114%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.company-title-jp {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #b2b2b2;
}

.top-company-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 40px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.top-company-more span {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #231E1F;
}

.company-more-arrow {
  width: 33px;
  height: 24px;
}

.top-company-more:hover {
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
}

.top-company-more:hover span {
  color: #fff;
}

.top-company-more:hover .company-more-arrow path {
  fill: #fff;
}

.top-company-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.top-company-text {
  flex: 0 0 auto;
  width: 400px;
}

.company-heading {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 40px;
  color: #151515;
  margin: 0 0 30px 0;
}

.company-description {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 34px;
  color: var(--main-black, #151515);
}

.company-description p {
  margin: 0;
}

.top-company-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-row {
  display: flex;
  gap: 10px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
}

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

.gallery-item-wide {
  width: 330px;
  height: 160px;
}

.gallery-item-square {
  width: 160px;
  height: 160px;
}

/* Company Section Responsive */
@media screen and (max-width: 1200px) {
  .top-company-content {
    flex-direction: column;
    gap: 40px;
  }

  .top-company-text {
    width: 100%;
  }

  .top-company-gallery {
    width: 100%;
  }

  .gallery-item-wide {
    flex: 1;
    width: auto;
    min-width: 200px;
  }

  .gallery-item-square {
    flex: 0 0 160px;
  }
}

@media screen and (max-width: 768px) {
  .top-company-new {
    padding: 60px 0;
  }

  .top-company-new .inner {
    padding: 0 20px;
  }

  .top-company-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .company-title-en {
    font-size: 28px;
  }

  .company-heading {
    font-size: 24px;
    line-height: 40px;
  }

  .company-description {
    font-size: 14px;
    line-height: 28px;
  }

  .gallery-row {
    flex-wrap: wrap;
  }

  .gallery-item-wide,
  .gallery-item-square {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
    height: 120px;
  }
}

@media screen and (max-width: 480px) {
  .top-company-new {
    padding: 26px 0 40px;
  }

  .top-company-new .inner {
    padding: 0 16px;
  }

  .top-company-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 0;
  }

  .top-company-title {
    display: inline-grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    align-items: start;
    gap: 0;
  }

  .company-title-en {
    font-size: 24px;
    grid-column: 1;
    grid-row: 1;
    letter-spacing: -0.48px;
    width: 141px;
  }

  .company-title-jp {
    font-size: 10px;
    grid-column: 1;
    grid-row: 1;
    margin-left: 129px;
    margin-top: 10px;
    color: #767676;
    letter-spacing: 0.6px;
  }

  .top-company-more {
    width: 75px;
    height: 25px;
    padding: 0;
    gap: 2px;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-company-more span {
    font-size: 9px;
    color: #151515;
    order: 2;
  }

  .company-more-arrow {
    width: 16px;
    height: 12px;
    order: 1;
  }

  .company-more-arrow path {
    fill: #231E1F;
  }

  .top-company-content {
    flex-direction: column;
    gap: 40px;
  }

  .top-company-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 27px;
  }

  .company-heading {
    font-size: 22px;
    line-height: 32px;
    margin: 0;
  }

  .company-description {
    font-size: 14px;
    line-height: 26px;
  }

  .top-company-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
  }

  .gallery-row {
    display: contents;
  }

  .gallery-item {
    border-radius: 6px;
  }

  /* Row 1: Show only photo1 (wide), hide photo2 and photo3 */
  .gallery-row-1 .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 166px;
    display: block !important;
  }

  .gallery-row-1 .gallery-item:nth-child(2),
  .gallery-row-1 .gallery-item:nth-child(3) {
    display: none !important;
  }

  /* Row 2: Show photo4 and photo5, hide photo6 */
  .gallery-row-2 .gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 166px;
    display: block !important;
  }

  .gallery-row-2 .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 166px;
    display: block !important;
  }

  .gallery-row-2 .gallery-item:nth-child(3) {
    display: none !important;
  }
}

/* ===================================
   Service Section (TOP page - New Design)
   =================================== */
.top-service-new {
  padding: 80px 0;
  background-color: #EFEFEF;
}

.top-service-new .inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 60px;
}

.top-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.top-service-title {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 0;
}

.service-title-en {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 35px;
  letter-spacing: -0.7px;
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-title-jp {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.96px;
  color: #767676;
}

.top-service-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 40px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  background: linear-gradient(#EFEFEF, #EFEFEF) padding-box,
              linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.top-service-more span {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #151515;
}

.service-more-arrow {
  width: 33px;
  height: 24px;
}

.top-service-more:hover {
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
}

.top-service-more:hover span {
  color: #fff;
}

.top-service-more:hover .service-more-arrow path {
  fill: #fff;
}

.top-service-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 670px;
}

.service-cards-row {
  display: flex;
  gap: 10px;
}

.service-card {
  width: 330px;
  height: 192px;
  background-color: #fff;
  border-radius: 6px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card-content {
  position: absolute;
  top: 29px;
  left: 110px;
  max-width: 200px;
  height: 48px;
  display: flex;
  align-items: center;
}

.service-card-title {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #312d96;
  margin: 0;
}

.service-card-title-single {
  line-height: 26px;
}

.service-card-desc {
  position: absolute;
  top: 100px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: auto;
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: #151515;
  margin: 0;
  overflow: hidden;
}

.service-text {
  flex: 1;
  padding-top: 20px;
}

.service-heading {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 50px;
  color: #151515;
  margin: 0 0 30px 0;
}

.service-description {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 34px;
  color: var(--main-black, #151515);
}

.service-description p {
  margin: 0;
}

/* Service Section Responsive */
@media screen and (max-width: 1200px) {
  .top-service-content {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .service-cards {
    flex: none;
    width: 100%;
  }

  .service-cards-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 300px;
    max-width: 400px;
  }
}

@media screen and (max-width: 768px) {
  .top-service-new {
    padding: 60px 0;
  }

  .top-service-new .inner {
    padding: 0 20px;
  }

  .top-service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .service-title-en {
    font-size: 28px;
  }

  .service-card {
    flex: 1 1 100%;
    max-width: none;
  }

  .service-heading {
    font-size: 24px;
    line-height: 40px;
  }

  .service-description {
    font-size: 14px;
    line-height: 28px;
  }
}

@media screen and (max-width: 480px) {
  .top-service-new {
    padding: 26px 0 40px;
    background: #EFEFEF;
  }

  .top-service-new .inner {
    padding: 0 16px;
  }

  .top-service-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 0;
  }

  .top-service-title {
    display: inline-grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    align-items: start;
    gap: 0;
  }

  .service-title-en {
    font-size: 24px;
    grid-column: 1;
    grid-row: 1;
    letter-spacing: -0.48px;
  }

  .service-title-jp {
    font-size: 10px;
    grid-column: 1;
    grid-row: 1;
    margin-left: 100px;
    margin-top: 10px;
    color: #767676;
    letter-spacing: 0.6px;
  }

  .top-service-more {
    width: 75px;
    height: 25px;
    padding: 0;
    gap: 2px;
    background: linear-gradient(#EFEFEF, #EFEFEF) padding-box,
                linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-service-more span {
    font-size: 9px;
    color: #151515;
    order: 2;
  }

  .service-more-arrow {
    width: 16px;
    height: 12px;
    order: 1;
  }

  .service-more-arrow path {
    fill: #231E1F;
  }

  .top-service-content {
    flex-direction: column-reverse;
    gap: 26px;
  }

  .service-text {
    padding-top: 0;
  }

  .service-heading {
    font-size: 22px;
    line-height: 32px;
    margin: 0 0 20px 0;
  }

  .service-description {
    font-size: 14px;
    line-height: 26px;
  }

  .service-cards {
    flex: none;
    width: 100%;
    gap: 10px;
  }

  .service-cards-row {
    flex-direction: column;
    gap: 10px;
  }

  .service-card {
    width: 100%;
    height: auto;
    min-height: 180px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: none;
    max-width: none;
    min-width: unset;
  }

  .service-card-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
  }

  .service-card-content {
    position: relative;
    top: 0;
    left: 0;
    flex: 0 0 auto;
    padding-left: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    max-width: 100%;
  }

  .service-card-title {
    font-size: 18px;
    line-height: 24px;
    white-space: normal;
    width: 100%;
  }

  .service-card-title-single {
    margin-top: 0;
  }

  .service-card-desc {
    position: relative;
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    flex: 1;
    padding-top: 12px;
    font-size: 14px;
    line-height: 22px;
    overflow: visible;
  }
}

/* ===================================
   Our Works Section (TOP page)
   =================================== */
.top-ourworks {
  padding: 80px 0;
  background-color: #EFEFEF;
}

.top-ourworks .inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 60px;
}

.top-ourworks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.top-ourworks-title {
  display: flex;
  align-items: baseline;
  gap: 38px;
  margin: 0;
}

.ourworks-title-en {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: 500;
  font-size: 35px;
  letter-spacing: -0.7px;
  background: linear-gradient(264deg, #ff0061 44%, #452b92 114%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ourworks-title-jp {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.96px;
  color: #b2b2b2;
}

.top-ourworks-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px;
  height: 40px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  background: linear-gradient(#EFEFEF, #EFEFEF) padding-box,
              linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.top-ourworks-more span {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #151515;
}

.ourworks-more-arrow {
  width: 33px;
  height: 24px;
}

.top-ourworks-more:hover {
  background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
}

.top-ourworks-more:hover span {
  color: #fff;
}

.top-ourworks-more:hover .ourworks-more-arrow path {
  fill: #fff;
}

.top-ourworks-content {
  width: 100%;
}

.ourworks-cards {
  display: flex;
  gap: 25px;
  align-items: stretch;
}

.ourworks-card {
  flex: 0 0 370px;
  max-width: 370px;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ourworks-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.ourworks-card-image {
  width: 100%;
  height: 192px;
  overflow: hidden;
  background-color: #fff;
  flex-shrink: 0;
}

.ourworks-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.ourworks-card:hover .ourworks-card-image img {
  transform: scale(1.05);
}

.ourworks-card-content {
  padding: 16px 9px;
  background-color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 133px;
}

.ourworks-card-title {
  font-family: 'A P-OTF Gothic MB101 Pr6N', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  color: #312d96;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

.ourworks-card:hover .ourworks-card-title {
  color: #f11f66;
}

.ourworks-card-desc {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--main-black, #151515);
  margin: 0;
}

/* Our Works Section Responsive */
@media screen and (max-width: 1200px) {
  .ourworks-cards {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ourworks-card {
    flex: 0 0 calc(50% - 12.5px);
    max-width: calc(50% - 12.5px);
  }
}

@media screen and (max-width: 768px) {
  .top-ourworks {
    padding: 60px 0;
  }

  .top-ourworks .inner {
    padding: 0 20px;
  }

  .top-ourworks-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .ourworks-title-en {
    font-size: 28px;
  }

  .ourworks-cards {
    flex-direction: column;
    gap: 20px;
  }

  .ourworks-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ourworks-card-image {
    height: 180px;
  }
}

@media screen and (max-width: 480px) {
  .top-ourworks {
    padding: 26px 0 40px;
    background: #EFEFEF;
  }

  .top-ourworks .inner {
    padding: 0 16px;
  }

  .top-ourworks-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 0;
  }

  .top-ourworks-title {
    display: inline-grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    align-items: start;
    gap: 0;
    flex-direction: row;
  }

  .ourworks-title-en {
    font-size: 24px;
    grid-column: 1;
    grid-row: 1;
    letter-spacing: -0.48px;
    width: 160px;
  }

  .ourworks-title-jp {
    font-size: 10px;
    grid-column: 1;
    grid-row: 1;
    margin-left: 160px;
    margin-top: 11px;
    color: #767676;
    letter-spacing: 0.6px;
  }

  .top-ourworks-more {
    width: 75px;
    height: 25px;
    padding: 0;
    gap: 2px;
    background: linear-gradient(#EFEFEF, #EFEFEF) padding-box,
                linear-gradient(264deg, #ff0061 44%, #452b92 114%) border-box;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-ourworks-more span {
    font-size: 9px;
    color: #151515;
    order: 2;
  }

  .ourworks-more-arrow {
    width: 16px;
    height: 12px;
    order: 1;
  }

  .ourworks-more-arrow path {
    fill: #231E1F;
  }

  .ourworks-cards {
    flex-direction: column;
    gap: 40px;
  }

  .ourworks-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ourworks-card-image {
    height: 192px;
  }

  .ourworks-card-content {
    padding: 16px 9px;
    min-height: auto;
  }

  .ourworks-card-title {
    font-size: 18px;
    line-height: normal;
    margin: 0 0 6px 0;
  }

  .ourworks-card-desc {
    font-size: 16px;
    line-height: normal;
  }
}

/* ===================================
   Case Studies Section (TOP page)
   =================================== */
.top-casestudies {
  padding: 50px 0 80px;
  background-color: #EFEFEF;
}

.top-casestudies .inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 0 0 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.casestudies-title {
  font-family: "A P-OTF Gothic MB101 Pr6N", 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 63px;
  color: #312d96;
  margin: 0;
  white-space: pre-wrap;
}

.casestudies-logos-container {
  width: 100%;
  height: 176px;
  background-color: #fff;
  overflow: visible;
}

.casestudies-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 55px 40px;
  height: 100%;
  box-sizing: border-box;
}

.logo-item {
  flex-shrink: 0;
}

.logo-item:nth-child(1) img {
  /* NEC */
  width: 175px;
  height: 54px;
}

.logo-item:nth-child(2) img {
  /* Sanwa Shutter */
  width: 193px;
  height: 52px;
}

.logo-item:nth-child(3) img {
  /* NTT DATA */
  width: 241px;
  height: 65px;
}

.logo-item:nth-child(4) img {
  /* intra-mart */
  width: 194px;
  height: 65px;
}

.logo-item img {
  display: block;
  object-fit: contain;
}

/* Case Studies Section Responsive */
@media screen and (max-width: 1200px) {
  .casestudies-logos {
    gap: 50px;
    padding: 45px 60px;
    justify-content: center;
  }

  .logo-item:nth-child(1) img,
  .logo-item:nth-child(2) img,
  .logo-item:nth-child(3) img,
  .logo-item:nth-child(4) img {
    width: auto;
    height: 45px;
  }
}

@media screen and (max-width: 768px) {
  .top-casestudies {
    padding: 40px 0 60px;
  }

  .top-casestudies .inner {
    padding: 0 20px;
    gap: 20px;
  }

  .casestudies-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .casestudies-logos-container {
    height: auto;
  }

  .casestudies-logos {
    flex-wrap: wrap;
    gap: 30px 50px;
    padding: 30px 20px;
    justify-content: center;
  }

  .logo-item:nth-child(1) img,
  .logo-item:nth-child(2) img,
  .logo-item:nth-child(3) img,
  .logo-item:nth-child(4) img {
    width: auto;
    height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .top-casestudies {
    padding: 40px 0;
    background: #EFEFEF;
  }

  .top-casestudies .inner {
    padding: 0 16px;
    gap: 40px;
  }

  .casestudies-title {
    font-size: 30px;
    line-height: 63px;
    color: #312d96;
  }

  .casestudies-logos-container {
    height: 193px;
    background: #fff;
    position: relative;
  }

  .casestudies-logos {
    display: block;
    padding: 0;
    gap: 0;
    height: 100%;
    position: relative;
  }

  .logo-item {
    position: absolute;
  }

  .logo-item:nth-child(1) {
    left: 27px;
    top: 43px;
  }

  .logo-item:nth-child(1) img {
    width: 136px;
    height: 42px;
  }

  .logo-item:nth-child(2) {
    left: 195px;
    top: 48px;
  }

  .logo-item:nth-child(2) img {
    width: 122px;
    height: 33px;
  }

  .logo-item:nth-child(3) {
    left: 35px;
    top: 115px;
  }

  .logo-item:nth-child(3) img {
    width: 141px;
    height: 38px;
  }

  .logo-item:nth-child(4) {
    left: 190px;
    top: 113px;
  }

  .logo-item:nth-child(4) img {
    width: 119px;
    height: 40px;
  }
}