/* CSS Custom Properties */
:root {
  --vw-with-scrollbar: 100vw;
  --header-height-pc: calc(88 * var(--vw-with-scrollbar) / 1920);
  --header-height-sp: calc(64 * var(--vw-with-scrollbar) / 400);

  --business-white-bg: rgba(255, 255, 255, 0.9);
  --business-stroke-color: #888;
  --business-gold: #ffdd57;
  --business-title-font: "Arial Black", "Helvetica Neue", Arial, sans-serif;

  /* Typography sizes - matching recruit */
  --business-title-size-xxl: 200px;
  --business-title-size-xl: 150px;
  --business-title-size-lg: 100px;
  --business-title-size-md: 70px;
  --business-title-size-sm: 50px;
  --business-subtitle-size-md: 40px;
  --business-subtitle-size-sm: 18px;
  --business-subtitle-size-xs: 16px;
}

/* Base Styles - Shared across responsive breakpoints */
.hero-business__title {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-business__title-en {
  font-size: 240px;
  font-size: calc(240 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  line-height: 0.9;
  font-family: var(--font-english);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  color: #fff;
  background: #000;
  display: inline-block;
  width: fit-content;
  padding-right: 50px;
  padding-right: calc(50 * var(--vw-with-scrollbar) / 1920);
}

.hero-business__title-jp {
  font-size: 40px;
  font-size: calc(40 * var(--vw-with-scrollbar) / 1920);
  color: #fff;
  font-weight: bold;
  text-align: left;
  font-family: var(--font-japanese);
  background: transparent;
  display: block;
  width: fit-content;
  margin: 0;
  margin-top: -10px;
  margin-top: calc(-10 * var(--vw-with-scrollbar) / 1920);
}

.hero-business__heading {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-family: var(--font-japanese);
  background: var(--business-white-bg);
  display: inline-block;
  width: auto;
  mix-blend-mode: multiply;
}

.hero-business__description {
  font-family: var(--font-japanese);
  background: #ffffff;
  display: inline-block;
  width: auto;
  position: relative;
  z-index: 20;
}

.hero-business__category-label {
  /* Base elecs-line font styling */
  font-size: 64px;
  font-size: calc(64 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 0.8;
  font-family: var(--font-english);
  text-transform: uppercase;
  font-style: italic;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;

  /* Transparent text with gradient stroke using multiple text-shadows */
  color: transparent;
}

.hero-business__category-text {
  color: #fff;
  letter-spacing: 0.1em;
  font-family: var(--font-japanese);
  font-weight: bold;
  display: block;
  padding-top: 25px;
  padding-top: calc(25 * var(--vw-with-scrollbar) / 1920);
}

/* ===== HERO BUSINESS SECTION ===== */
.hero-business {
  position: relative;
  min-height: 100vh;
  min-height: calc(100 * var(--vw-with-scrollbar) / 1920);
  background: #000;
  background-attachment: scroll;
  background-position: 50% -15%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 5;
}

/* Business Text Background Pattern */
@keyframes business-text-scroll {
  0% {
    transform: translateY(-50%) rotate(-15.69deg) translateX(0%);
  }

  100% {
    transform: translateY(-50%) rotate(-15.69deg) translateX(-100%);
  }
}

.business-text-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.business-text-background.visible {
  opacity: 0.5;
}

.business-text-pattern {
  position: absolute;
  width: 200%;
  height: 100%;
  top: 40%;
  left: 0%;
  transform: translateY(-50%) rotate(-15.69deg);
  display: flex;
  align-items: center;
  gap: 60px;
  gap: calc(60 * var(--vw-with-scrollbar) / 1920);
  animation: business-text-scroll 40s linear infinite;
}

.business-text-background:nth-child(2) .business-text-pattern {
  top: 60%;
  transform: translateY(-50%) rotate(-15.69deg);
  animation: business-text-scroll 40s linear infinite;
  width: 200%;
  left: 0%;
}

.business-text-background-2 .business-text-pattern {
  top: 50%;
  transform: translateY(-50%) rotate(-15.69deg);
  animation: business-text-scroll 40s linear infinite;
  width: 200%;
  left: 0%;
}

.business-line {
  font-size: 80px;
  font-size: calc(80 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 0.8;
  font-family: var(--font-english);
  text-transform: uppercase;
  font-style: italic;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  white-space: nowrap;
  opacity: 1;
  user-select: none;
}

.business-line img {
  height: clamp(30px, calc(60 * var(--vw-with-scrollbar) / 1920), 60px);
  width: auto;
  display: block;
  vertical-align: baseline;
}

.business-line-1 {
  background: linear-gradient(to bottom, #ffffff 0%, #00552e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.business-line-2 {
  color: transparent;
  -webkit-text-stroke: 1px #ffd557;
  font-style: italic;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 900;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
}

/* Japanese Text Background Pattern for Knockout Effect */
@keyframes japanese-text-scroll {
  0% {
    transform: translateY(-50%) rotate(-15.69deg) translateX(0%);
  }

  100% {
    transform: translateY(-50%) rotate(-15.69deg) translateX(-25%);
  }
}

.japanese-text-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.japanese-text-background.visible {
  opacity: 0.5;
}

.japanese-text-pattern {
  position: absolute;
  width: 400%;
  height: 100%;
  top: 40%;
  left: -100%;
  transform: translateY(-50%) rotate(-15.69deg);
  display: flex;
  align-items: center;
  gap: 60px;
  gap: calc(60 * var(--vw-with-scrollbar) / 1920);
  animation: japanese-text-scroll 10s linear infinite;
}

.japanese-text-background:nth-child(2) .japanese-text-pattern {
  top: 60%;
  transform: translateY(-50%) rotate(-15.69deg);
  animation: japanese-text-scroll 10s linear infinite;
  width: 400%;
  left: -100%;
}

.japanese-line {
  font-size: 80px;
  font-size: calc(80 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 0.8;
  font-family: var(--font-japanese);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  white-space: nowrap;
  opacity: 1;
  user-select: none;
}

.japanese-line-1 {
  background: linear-gradient(to bottom, #ffffff 0%, #00552e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.japanese-line-2 {
  color: transparent;
  -webkit-text-stroke: 1px #ffd557;
  font-family: var(--font-japanese);
  font-weight: 900;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
}

.hero-business::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-business__container {
  max-width: 1724px;
  max-width: calc(1724 * var(--vw-with-scrollbar) / 1920);
  width: 100%;
  top: 100px;
  top: calc(100 * var(--vw-with-scrollbar) / 1920);
  left: 90px;
  left: calc(90 * var(--vw-with-scrollbar) / 1920);
  padding: 0 40px;
  padding: 0 calc(40 * var(--vw-with-scrollbar) / 1920);
  position: relative;
  z-index: 10;
}

.hero-business__title-section {
  margin-bottom: 100px;
  margin-bottom: calc(100 * var(--vw-with-scrollbar) / 1920);
}

/* Line Parts Base Styles */
.line-parts {
  display: inline-block;
  overflow: hidden;
}

.line-bg-black {
  background-color: #000;
  padding: 0;
}

/* Line Parts Animation for Title Section */
.hero-business__title-section .line-parts {
  width: fit-content;
  padding: 0;
  display: inline-block;
  overflow: hidden;
  position: relative;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.hero-business__title-section .line-parts.is-active {
  transform: scale(1);
}

.hero-business__title-section .line-parts:before,
.hero-business__title-section .line-parts:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.36, 0.48, 0.02, 0.98);
}

.hero-business__title-section .line-parts:before {
  transform: translateX(-100%);
}

.hero-business__title-section .line-parts:after {
  transform: translateX(0);
}

.hero-business__title-section .line-parts.is-active:before {
  transform: translateX(0);
}

.hero-business__title-section .line-parts.is-active:after {
  transform: translateX(100%);
  transition: transform 0.6s ease 0.4s;
}

.hero-business__title-section .line-parts.line-bg-black:before,
.hero-business__title-section .line-parts.line-bg-black:after {
  background-color: #000;
}

.hero-business__title-section .line-parts:before {
  z-index: 1;
}

.hero-business__title-section .line-parts:after {
  z-index: 5;
}

.hero-business__title-section .line-parts .hero-business__title-en,
.hero-business__title-section .line-parts .hero-business__title-jp {
  position: relative;
  z-index: 2;
}

/* Ensure title elements are visible and glitch effect works */
.hero-business__title-en {
  display: block;
  z-index: 10;
  background: transparent;
}

.hero-business__title-en.glitch-effect {
  position: relative;
  z-index: 10;
}

.hero-business__title-en.glitch-effect::before,
.hero-business__title-en.glitch-effect::after {
  text-decoration: none !important;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-family: inherit;
  font-style: inherit;
  line-height: inherit;
}

/* Debug - ensure glitch colors are visible */
.hero-business__title-en.glitch-effect::before {
  color: #00552e !important;
  z-index: -1;
  animation: reverse-position 0.1s infinite linear;
}

.hero-business__title-en.glitch-effect::after {
  color: #ffdd57 !important;
  z-index: -2;
  animation: forward-position 0.13s infinite linear;
}

.hero-business__title-jp {
  z-index: 10;
}

/* Fallback support for old structure */
.hero-business__title.glitch-effect {
  font-size: var(--business-title-size-xxl);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 0.9;
  margin: 0;
  color: #fff;
  font-family: var(--font-english);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  background: #000;
  position: relative;
  width: fit-content;
  display: inline-block;
  z-index: 10;
}

.hero-business__subtitle {
  font-size: var(--business-subtitle-size-md);
  font-weight: bold;
  color: #fff;
  margin: 10px 0 120px 0;
  margin: calc(10 * var(--vw-with-scrollbar) / 1920) 0
    calc(120 * var(--vw-with-scrollbar) / 1920) 0;
  font-family: var(--font-japanese);
  background: #000;
  padding: 8px 12px;
  padding: calc(8 * var(--vw-with-scrollbar) / 1920)
    calc(12 * var(--vw-with-scrollbar) / 1920);
  display: inline-block;
  width: fit-content;
  z-index: 10;
}

.hero-business__content {
  max-width: 1800px;
  max-width: calc(1800 * var(--vw-with-scrollbar) / 1920);
  margin-bottom: 140px;
  margin-bottom: calc(140 * var(--vw-with-scrollbar) / 1920);
  position: relative;
}

.hero-business__heading {
  font-size: 90px;
  font-size: calc(90 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  color: #000;
  margin: 0 0 5px 10px;
  margin: 0 0 calc(5 * var(--vw-with-scrollbar) / 1920)
    calc(10 * var(--vw-with-scrollbar) / 1920);
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-family: var(--font-japanese);
  background: var(--business-white-bg);
  padding: 5px 0 5px 20px;
  padding: calc(5 * var(--vw-with-scrollbar) / 1920) 0
    calc(5 * var(--vw-with-scrollbar) / 1920)
    calc(20 * var(--vw-with-scrollbar) / 1920);
  margin-bottom: 60px;
  margin-bottom: calc(60 * var(--vw-with-scrollbar) / 1920);
  display: inline-block;
  width: auto;
  mix-blend-mode: multiply;
}

.hero-business__description {
  font-family: var(--font-japanese);
  background: #ffffff;
  padding: 15px 5px;
  padding: calc(15 * var(--vw-with-scrollbar) / 1920)
    calc(5 * var(--vw-with-scrollbar) / 1920);
  margin: 20px 0 198px 0;
  margin: calc(20 * var(--vw-with-scrollbar) / 1920) 0
    calc(198 * var(--vw-with-scrollbar) / 1920) 0;
  display: inline-block;
  width: auto;
  position: relative;
  z-index: 20;
}

.hero-business__description p {
  font-size: 32px;
  font-size: calc(32 * var(--vw-with-scrollbar) / 1920);
  font-weight: 700;
  line-height: 1.8;
  color: #333;
  margin: 0 0 12px 0;
  margin: 0 0 calc(12 * var(--vw-with-scrollbar) / 1920) 0;
}

.hero-business__description p:last-child {
  margin-bottom: 0;
}

.hero-business__category {
  display: block;
  position: relative;
  background: #000;
  padding: 15px 20px;
  padding: calc(15 * var(--vw-with-scrollbar) / 1920)
    calc(20 * var(--vw-with-scrollbar) / 1920);
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50% + 20px);
  margin-bottom: 130px;
  margin-bottom: calc(130 * var(--vw-with-scrollbar) / 1920);
  width: fit-content;
  min-width: 400px;
  min-width: calc(400 * var(--vw-with-scrollbar) / 1920);
  z-index: 20;
}

.hero-business__category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40%;
  transform: translateY(-50%);
  width: 0;
  height: 5px;
  height: calc(5 * var(--vw-with-scrollbar) / 1920);
  background: var(--business-gold);
  animation: lineExpandRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes lineExpandRight {
  from {
    width: 0;
  }

  to {
    width: 160px;
    width: calc(160 * var(--vw-with-scrollbar) / 1920);
  }
}

.hero-business__category-label {
  /* Image styling for ELECTRICITY.png */
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 64px;
  max-height: calc(64 * var(--vw-with-scrollbar) / 1920);
  display: block;
}

.hero-business__category-text {
  font-size: 40px;
  font-size: calc(40 * var(--vw-with-scrollbar) / 1920);
  color: #fff;
  margin: -35px 0 0 0;
  margin: calc(-35 * var(--vw-with-scrollbar) / 1920) 0 0 0;
  letter-spacing: 0.1em;
  font-family: var(--font-japanese);
  font-weight: 700;
  display: block;
}

/* Hero Japanese Text Overlay */
.hero-japanese-text {
  position: relative;
  margin: 0px 0 20px 0;
  margin: calc(0 * var(--vw-with-scrollbar) / 1920) 0
    calc(20 * var(--vw-with-scrollbar) / 1920) 0;
  z-index: 20;
  mix-blend-mode: screen;
  width: fit-content;
}

/* Desktop/Mobile visibility */
.hero-japanese-text--desktop {
  display: block;
}

.hero-japanese-text--mobile {
  display: none;
}

.hero-japanese-text span {
  color: black;
  font-size: 100px;
  font-size: calc(100 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.4;
  font-family: var(--font-english);
  mix-blend-mode: multiply;
  position: relative;
  z-index: 21;
  line-height: 1.1;
}

/* ===== SERVICE CATEGORIES SECTION ===== */
.service-categories {
  background: var(--business-gold);
  padding: 0;
  position: relative;
  z-index: 20;
}

.service-categories__container {
  max-width: 100%;
  margin: 0;
}

.service-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-category {
  position: relative;
  padding: 80px 50px 60px;
  padding: calc(80 * var(--vw-with-scrollbar) / 1920)
    calc(50 * var(--vw-with-scrollbar) / 1920)
    calc(60 * var(--vw-with-scrollbar) / 1920);
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 600px;
  min-height: calc(600 * var(--vw-with-scrollbar) / 1920);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-category:last-child {
  border-right: none;
}

.service-category:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
  transform: translateY(calc(-5 * var(--vw-with-scrollbar) / 1920));
}

.service-category__number {
  font-size: 64px;
  font-size: calc(64 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  color: #ffdd57;
  margin-bottom: 40px;
  margin-bottom: calc(40 * var(--vw-with-scrollbar) / 1920);
  font-family: var(--font-english);
  line-height: 0.8;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    2px 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000;
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-category__title {
  font-size: 40px;
  font-size: calc(40 * var(--vw-with-scrollbar) / 1920);
  font-weight: 700;
  color: #000;
  margin: 0 0 50px 0;
  margin: 0 0 calc(50 * var(--vw-with-scrollbar) / 1920) 0;
  letter-spacing: 0.02em;
  font-family: var(--font-japanese);
  line-height: 1.3;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

/* Diamond shapes above specific Japanese characters */
.diamond-setsu::before {
  content: "◆";
  position: absolute;
  top: -20px;
  top: calc(-20 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 12px;
  font-size: calc(12 * var(--vw-with-scrollbar) / 1920);
}

.diamond-bi::before {
  content: "◆";
  position: absolute;
  top: -20px;
  top: calc(-20 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 12px;
  font-size: calc(12 * var(--vw-with-scrollbar) / 1920);
}

.diamond-tsuu::before {
  content: "◆";
  position: absolute;
  top: -20px;
  top: calc(-20 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 12px;
  font-size: calc(12 * var(--vw-with-scrollbar) / 1920);
}

.diamond-shin::before {
  content: "◆";
  position: absolute;
  top: -20px;
  top: calc(-20 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 12px;
  font-size: calc(12 * var(--vw-with-scrollbar) / 1920);
}

.diamond-sei::before {
  content: "◆";
  position: absolute;
  top: -20px;
  top: calc(-20 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 12px;
  font-size: calc(12 * var(--vw-with-scrollbar) / 1920);
}

.diamond-gyo::before {
  content: "◆";
  position: absolute;
  top: -20px;
  top: calc(-20 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 12px;
  font-size: calc(12 * var(--vw-with-scrollbar) / 1920);
}

.service-category__content {
  background: #000;
  padding: 35px 30px;
  padding: calc(35 * var(--vw-with-scrollbar) / 1920)
    calc(30 * var(--vw-with-scrollbar) / 1920);
  margin-bottom: 50px;
  margin-bottom: calc(50 * var(--vw-with-scrollbar) / 1920);
  min-height: 180px;
  min-height: calc(180 * var(--vw-with-scrollbar) / 1920);
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.service-category__content p {
  color: #fff;
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  line-height: 1.8;
  margin: 0;
  font-family: var(--font-japanese);
  letter-spacing: 0.01em;
  font-weight: bold;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  transition-delay: 0.3s;
}

/* Service Category Animation States */
.service-category.animate-in .service-category__number,
.service-category.animate-in .service-category__title {
  opacity: 1;
  transform: translateY(0);
}

.service-category.animate-in .service-category__content p {
  opacity: 1;
}

.service-category__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  width: calc(50 * var(--vw-with-scrollbar) / 1920);
  height: 50px;
  height: calc(50 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
}

.service-category__arrow svg {
  width: 35px;
  width: calc(35 * var(--vw-with-scrollbar) / 1920);
  height: 35px;
  height: calc(35 * var(--vw-with-scrollbar) / 1920);
  color: #000;
  transform: rotate(-90deg);
  stroke: #000;
  stroke-width: 1.5;
}

/* ===== DETAILED SERVICES SECTION ===== */
.detailed-services {
  position: relative;
  background: #000;
  padding: 100px 0;
  padding: calc(100 * var(--vw-with-scrollbar) / 1920) 0;
  overflow: hidden;
}

.detailed-services__background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.detailed-services__bg-text {
  font-size: clamp(200px, 25vw, 400px);
  font-weight: 900;
  color: rgba(255, 215, 0, 0.08);
  letter-spacing: 0.05em;
  font-family: var(--business-title-font);
  white-space: nowrap;
}

/* Fixed Side Navigation */
.detailed-services__nav {
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.detailed-services__nav.visible {
  opacity: 1;
  visibility: visible;
}

.detailed-services__nav-btn {
  background: #000;
  color: #ffdd57;
  border: none;
  padding: 30px 10px;
  padding: calc(30 * var(--vw-with-scrollbar) / 1920)
    calc(10 * var(--vw-with-scrollbar) / 1920);
  width: 153px;
  width: calc(153 * var(--vw-with-scrollbar) / 1920);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-family: var(--font-japanese);
  font-weight: bold;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailed-services__nav-btn:hover {
  background: #333;
}

.detailed-services__nav-btn.active {
  background: var(--business-gold);
  color: #000;
}

/* Container */
.detailed-services__container {
  width: 1724px;
  width: calc(1724 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

/* Category Container */
.detailed-services__category {
  display: block;
  margin-bottom: 100px;
  margin-bottom: calc(100 * var(--vw-with-scrollbar) / 1920);
  scroll-margin-top: 120px;
  scroll-margin-top: calc(120 * var(--vw-with-scrollbar) / 1920);
}

.detailed-services__category:last-child {
  margin-bottom: 0;
}

/* Header */
.detailed-services__header {
  background-image: url("../images/bg-electricity.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 40px;
  padding: calc(60 * var(--vw-with-scrollbar) / 1920)
    calc(40 * var(--vw-with-scrollbar) / 1920);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  gap: calc(30 * var(--vw-with-scrollbar) / 1920);
}

.detailed-services__header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.detailed-services__header-bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.detailed-services__header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detailed-services__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.detailed-services__header > * {
  position: relative;
  z-index: 2;
}

.detailed-services__header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  gap: calc(30 * var(--vw-with-scrollbar) / 1920);
}

.detailed-services__header-image {
  margin-bottom: -250px;
  margin-bottom: calc(-250 * var(--vw-with-scrollbar) / 1920);
  text-align: center;
}

.detailed-services__header-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detailed-services__number {
  font-size: 64px;
  font-size: calc(64 * var(--vw-with-scrollbar) / 1920);
  font-weight: 900;
  color: #ffdd57;
  display: block;
  font-family: var(--font-english);
  line-height: 0.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    2px 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000;
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.detailed-services__title {
  font-size: 40px;
  font-size: calc(40 * var(--vw-with-scrollbar) / 1920);
  font-weight: 700;
  color: #000;
  margin: 0;
  letter-spacing: 0.02em;
  font-family: var(--font-japanese);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.detailed-services__description {
  background: #000;
  color: #fff;
  padding: 32px 32px;
  padding: calc(32 * var(--vw-with-scrollbar) / 1920)
    calc(32 * var(--vw-with-scrollbar) / 1920);
  max-width: 1300px;
  max-width: calc(1300 * var(--vw-with-scrollbar) / 1920);
  margin: 0 auto;
}

.detailed-services__description p {
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-family: var(--font-japanese);
  text-align: center;
  font-weight: bold;
  margin: 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  transition-delay: 0.3s;
}

/* Detailed Services Animation States */
.detailed-services__header.animate-in .detailed-services__number,
.detailed-services__header.animate-in .detailed-services__title {
  opacity: 1;
  transform: translateY(0);
}

.detailed-services__header.animate-in .detailed-services__description p {
  opacity: 1;
}

/* Section */
.detailed-services__section {
  max-width: 1000px;
  max-width: calc(1000 * var(--vw-with-scrollbar) / 1920);
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10;
}

.detailed-services__section-header {
  background: #000;
  padding: 33px 33px;
  padding: calc(33 * var(--vw-with-scrollbar) / 1920)
    calc(33 * var(--vw-with-scrollbar) / 1920);
  margin-bottom: 60px;
  margin-bottom: calc(60 * var(--vw-with-scrollbar) / 1920);
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
}

.detailed-services__section-header::after {
  content: "";
  background-image: url("../images/Polygon-black.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 40px;
  width: calc(40 * var(--vw-with-scrollbar) / 1920);
  height: 40px;
  height: calc(40 * var(--vw-with-scrollbar) / 1920);
  position: absolute;
  bottom: -30px;
  bottom: calc(-30 * var(--vw-with-scrollbar) / 1920);
  left: 50%;
  transform: translateX(-50%);
}

.detailed-services__subsection-header {
  padding: 0px 0px;
  margin-bottom: 40px;
  margin-bottom: calc(40 * var(--vw-with-scrollbar) / 1920);
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
}

.detailed-services__section-tabs {
  display: flex;
  gap: 40px;
  gap: calc(40 * var(--vw-with-scrollbar) / 1920);
  justify-content: center;
}

.detailed-services__section-tab {
  color: #ffdd57;
  text-decoration: none;
  font-family: var(--font-japanese);
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  border-bottom: 1px solid #ffdd57;
  transition: all 0.3s ease;
}

.detailed-services__section-tab:hover {
  opacity: 0.7;
}

.detailed-services__section-title {
  color: #ffdd57;
  font-size: 32px;
  font-size: calc(32 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.05em;
  font-family: var(--font-japanese);
}

.detailed-services__section-title-prefix {
  font-size: 16px;
  font-size: calc(16 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
}

.detailed-services__section-tagline {
  color: #000;
  font-size: 14px;
  font-size: calc(14 * var(--vw-with-scrollbar) / 1920);
  margin: 10px 0 0 0;
  margin: calc(10 * var(--vw-with-scrollbar) / 1920) 0 0 0;
  letter-spacing: 0.1em;
  font-family: var(--font-japanese);
}

/* Grid Layout */
.detailed-services__grid {
  display: flex;
  gap: 40px;
  gap: calc(40 * var(--vw-with-scrollbar) / 1920);
  align-items: flex-start;
  padding-bottom: 100px;
  padding-bottom: calc(100 * var(--vw-with-scrollbar) / 1920);
  padding-right: 2px;
  padding-right: calc(2 * var(--vw-with-scrollbar) / 1920);
}

.detailed-services__grid-images {
  flex: 0 0 300px;
  flex: 0 0 calc(300 * var(--vw-with-scrollbar) / 1920);
  display: flex;
  flex-direction: column;
  gap: 20px;
  gap: calc(20 * var(--vw-with-scrollbar) / 1920);
}

.detailed-services__grid-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Service Items */
.detailed-services__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detailed-services__item {
  padding: 20px 25px;
  padding: calc(20 * var(--vw-with-scrollbar) / 1920)
    calc(25 * var(--vw-with-scrollbar) / 1920);
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  gap: calc(10 * var(--vw-with-scrollbar) / 1920);
  transition: all 0.3s ease;
  margin-bottom: 22px;
  margin-bottom: calc(22 * var(--vw-with-scrollbar) / 1920);
  opacity: 0;
  transform: translateY(30px);
  transform: translateY(calc(30 * var(--vw-with-scrollbar) / 1920));
}

.detailed-services__item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.detailed-services__item h4 {
  margin: 0;
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  color: #ffdd57;
  letter-spacing: 0.02em;
  font-family: var(--font-japanese);
  background: #000;
  padding: 0px 5px 0px 1px;
  padding: 0 calc(5 * var(--vw-with-scrollbar) / 1920) 0
    calc(1 * var(--vw-with-scrollbar) / 1920);
  width: fit-content;
  position: relative;
}

.detailed-services__item h4::before {
  content: "";
  background-image: url("../images/box.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  width: calc(20 * var(--vw-with-scrollbar) / 1920);
  height: 20px;
  height: calc(20 * var(--vw-with-scrollbar) / 1920);
  position: absolute;
  left: -24px;
  left: calc(-24 * var(--vw-with-scrollbar) / 1920);
  top: 50%;
  transform: translateY(-50%);
}

.detailed-services__item-link {
  background: transparent;
  color: #000;
  padding: 8px 15px;
  padding: calc(8 * var(--vw-with-scrollbar) / 1920)
    calc(15 * var(--vw-with-scrollbar) / 1920);
  text-decoration: none;
  font-size: 18px;
  font-size: calc(18 * var(--vw-with-scrollbar) / 1920);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: var(--font-japanese);
  border: 2px solid #000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  gap: calc(10 * var(--vw-with-scrollbar) / 1920);
}

.detailed-services__item-link img {
  width: 24px;
  width: calc(24 * var(--vw-with-scrollbar) / 1920);
  height: 24px;
  height: calc(24 * var(--vw-with-scrollbar) / 1920);
  transition: filter 0.3s ease;
}

.detailed-services__item-link:hover {
  background: #000;
  color: #ffdd57;
  border-color: #000;
  transform: translateX(3px);
  transform: translateX(calc(3 * var(--vw-with-scrollbar) / 1920));
}

.detailed-services__item-link:hover img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(93%) saturate(1352%)
    hue-rotate(1deg) brightness(104%) contrast(101%);
}

/* ===== HERO NUMBERS SECTION (matching recruit style) ===== */
.hero-numbers__title {
  margin: 0;
  padding: 0;
}

.hero-numbers__title-en {
  font-size: var(--business-title-size-xxl);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 10px 0;
  margin: 0 0 calc(10 * var(--vw-with-scrollbar) / 1920) 0;
  line-height: 0.9;
  font-family: var(--font-english);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-decoration-thickness: calc(2 * var(--vw-with-scrollbar) / 1920);
  text-underline-offset: 2px;
  text-underline-offset: calc(2 * var(--vw-with-scrollbar) / 1920);
  color: #fff;
  background: #000;
  display: inline-block;
  width: fit-content;
}

.hero-numbers__title-jp {
  font-size: var(--business-subtitle-size-md);
  margin-top: 10px;
  margin-top: calc(10 * var(--vw-with-scrollbar) / 1920);
  color: #fff;
  font-weight: bold;
  text-align: left;
  font-family: var(--font-japanese);
  background: #000;
  padding: 8px 12px;
  padding: calc(8 * var(--vw-with-scrollbar) / 1920)
    calc(12 * var(--vw-with-scrollbar) / 1920);
  display: inline-block;
  width: fit-content;
}

/* Glitch effect for numbers title */
.hero-numbers__title-en.glitch-effect {
  position: relative;
  z-index: 10;
}

.hero-numbers__title-en.glitch-effect::before,
.hero-numbers__title-en.glitch-effect::after {
  text-decoration: none !important;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-family: inherit;
  font-style: inherit;
  line-height: inherit;
}

.hero-numbers__title-en.glitch-effect::before {
  color: #00552e !important;
  z-index: -1;
  animation: reverse-position 0.1s infinite linear;
}

.hero-numbers__title-en.glitch-effect::after {
  color: #ffdd57 !important;
  z-index: -2;
  animation: forward-position 0.13s infinite linear;
}

.heading-sp {
  display: none;
}

.mobile-break {
  display: inline;
}

/* ================================================== */
/*                  RESPONSIVE STYLES                */
/* ================================================== */

/* ===== MOBILE (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  /* Hero Numbers Section */
  .hero-numbers__title-en {
    font-size: var(--business-title-size-xl);
  }

  .hero-numbers__title-jp {
    font-size: var(--business-subtitle-size-sm);
  }

  /* Diamond shapes responsive */
  .diamond-setsu::before,
  .diamond-bi::before,
  .diamond-tsuu::before,
  .diamond-shin::before,
  .diamond-sei::before,
  .diamond-gyo::before {
    top: -9px;
    top: calc(-9 * 100vw / 400);
    font-size: 5px;
    font-size: calc(5 * 100vw / 400);
  }

  /* Hero Business Section */
  .hero-business {
    min-height: 100vh;
    background-attachment: fixed;
  }

  .business-line {
    font-size: 50px;
    font-size: calc(50 * 100vw / 400);
  }

  .japanese-line {
    font-size: 50px;
    font-size: calc(50 * 100vw / 400);
  }

  .business-text-pattern {
    animation: business-text-scroll 10s linear infinite;
    top: 25%;
  }

  .business-text-background:nth-child(2) .business-text-pattern {
    animation: business-text-scroll 10s linear infinite;
    top: 32%;
  }

  .business-text-background-2 .business-text-pattern {
    animation: business-text-scroll 10s linear infinite;
    top: 32%;
  }

  .hero-business__container {
    padding: 0 0px;
    padding: 0 calc(0 * 100vw / 400);
  }

  .hero-business__title-en,
  .hero-business__title.glitch-effect {
    font-size: 80px;
    font-size: calc(80 * 100vw / 400);
  }

  .hero-business__title-jp,
  .hero-business__subtitle {
    font-size: 24px;
    font-size: calc(24 * 100vw / 400);
  }

  .hero-business__title-section {
    margin-bottom: 50px;
    margin-bottom: calc(50 * 100vw / 400);
  }

  .hero-business__content {
    max-width: 100%;
    margin-bottom: 50px;
    margin-bottom: calc(50 * 100vw / 400);
    padding: 0px;
  }

  .hero-business__heading {
    font-size: 28px;
    font-size: calc(28 * 100vw / 400);
    color: #000;
    margin: 0 0 5px 0;
    margin: 0 0 calc(5 * 100vw / 400) 0;
    padding: 8px 12px;
    padding: calc(8 * 100vw / 400) calc(12 * 100vw / 400);
    margin-bottom: 20px;
    margin-bottom: calc(20 * 100vw / 400);
  }

  .hero-business__description {
    padding: 15px 5px;
    padding: calc(15 * 100vw / 400) calc(5 * 100vw / 400);
    margin: 0px 0px 100px 0px;
    margin: 0 0 calc(100 * 100vw / 400) 0;
  }

  .hero-business__description p {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    font-weight: 700;
    line-height: 1.6;
    color: #333;
    margin: 0 0 8px 0;
    margin: 0 0 calc(8 * 100vw / 400) 0;
  }

  .hero-business__category {
    display: block;
    position: relative;
    background: #000;
    padding: 12px 15px;
    padding: calc(12 * 100vw / 400) calc(15 * 100vw / 400);
    margin-left: -20px;
    margin-left: calc(-20 * 100vw / 400);
    margin-right: -20px;
    margin-right: calc(-20 * 100vw / 400);
    padding-left: 20px;
    padding-left: calc(20 * 100vw / 400);
    width: calc(100% + 40px);
    width: calc(100% + calc(40 * 100vw / 400));
  }

  .hero-business__category::before {
    content: "";
    position: absolute;
    left: 20px;
    left: calc(20 * 100vw / 400);
    top: 40%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    height: calc(2 * 100vw / 400);
    background: var(--business-gold);
    animation: lineExpandRightMobile 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s
      forwards;
  }

  @keyframes lineExpandRightMobile {
    from {
      width: 0;
    }

    to {
      width: 20px;
      width: calc(20 * 100vw / 400);
    }
  }

  .hero-business__category-label {
    max-height: 35px;
    max-height: calc(35 * 100vw / 400);
    margin-left: 30px;
    margin-left: calc(30 * 100vw / 400);
    padding-top: 20px;
    padding-top: calc(10 * 100vw / 400);
  }

  .hero-business__category-label img {
    width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .hero-business__category-text {
    font-size: 22px;
    font-size: calc(22 * 100vw / 400);
    margin: 0px;
    padding-top: 0px;
    margin-left: 30px;
    margin-left: calc(30 * 100vw / 400);
  }

  /* Service Categories Section */
  .service-categories {
    padding: 24px;
    padding: calc(24 * 100vw / 400);
    background: transparent;
  }

  .service-categories__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    gap: calc(10 * 100vw / 400);
  }

  .service-category {
    padding: 20px 20px;
    padding: calc(20 * 100vw / 400) calc(20 * 100vw / 400);
    border-right: none;
    border-bottom: none;
    margin-bottom: 10px;
    margin-bottom: calc(10 * 100vw / 400);
    background: var(--business-gold) !important;
    background: #ffdd57 !important;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    gap: calc(15 * 100vw / 400);
    grid-template-areas:
      "number title"
      "content content";
    min-height: 192px;
    min-height: calc(192 * 100vw / 400);
  }

  .service-category:last-child {
    margin-bottom: 0;
  }

  .service-category__number {
    font-size: 30px;
    font-size: calc(30 * 100vw / 400);
    margin-bottom: 0;
    grid-area: number;
    align-self: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
      1px 1px 0 #000, -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000;
  }

  .service-category__title {
    font-size: 23.89px;
    font-size: calc(23.89 * 100vw / 400);
    margin-bottom: 0;
    grid-area: title;
    align-self: center;
    text-align: left;
  }

  .service-category__content {
    grid-area: content;
    position: relative;
    padding: 15px;
    padding: calc(15 * 100vw / 400);
    min-height: auto;
    margin-bottom: 0x;
    margin-bottom: calc(0 * 100vw / 400);
  }

  .service-category__content p {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    line-height: 1.6;
  }

  .service-category__arrow {
    position: absolute;
    bottom: 25px;
    bottom: calc(25 * 100vw / 400);
    right: 50px;
    right: calc(50 * 100vw / 400);
    margin: 0;
    background: #ffdd57;
    border-radius: 50%;
    width: 30px;
    width: calc(30 * 100vw / 400);
    height: 30px;
    height: calc(30 * 100vw / 400);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .service-category__arrow svg {
    width: 18px;
    width: calc(18 * 100vw / 400);
    height: 18px;
    height: calc(18 * 100vw / 400);
  }

  .service-category__arrow img {
    height: 15px;
    height: calc(15 * 100vw / 400);
    display: block;
  }

  /* Detailed Services Section */
  .detailed-services {
    padding: 60px 0 0px;
    padding: calc(60 * 100vw / 400) 0 calc(0 * 100vw / 400);
  }

  .detailed-services__nav {
    position: fixed;
    right: 0px;
    top: 82%;
    transform: translateY(-50%);
    flex-direction: column;
  }

  .detailed-services__nav-btn {
    padding: 10px 10px;
    padding: calc(10 * 100vw / 400) calc(10 * 100vw / 400);
    width: 90px;
    width: calc(90 * 100vw / 400);
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    text-align: center;
  }

  .detailed-services__nav-btn.active {
    background-color: #ffdd57cc;
  }

  .detailed-services__nav-btn {
    background-color: #000000cc;
  }

  .detailed-services__container {
    padding: 0 24px;
    padding: 0 calc(24 * 100vw / 400);
    width: 100%;
    max-width: 100%;
  }

  .detailed-services__bg-text {
    font-size: 50px;
    font-size: calc(50 * 100vw / 400);
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .detailed-services__header {
    background-image: url("../images/bg-electricity-sp.webp");
    margin-bottom: 0px;
    padding: 24px 24px;
    padding: calc(24 * 100vw / 400) calc(24 * 100vw / 400);
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background-size: cover;
  }

  .detailed-services__header-top {
    flex-direction: column;
    text-align: left;
    gap: 20px;
    gap: calc(20 * 100vw / 400);
  }

  .detailed-services__title {
    order: 3;
    text-align: left;
    font-size: 35.49px;
    font-size: calc(35.49 * 100vw / 400);
    margin-bottom: 0px;
  }

  .detailed-services__number {
    order: 1;
    font-size: 36px;
    font-size: calc(36 * 100vw / 400);
    margin-bottom: 15px;
    margin-bottom: calc(15 * 100vw / 400);
    text-align: left;
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 0px;
  }

  .detailed-services__header-image {
    order: 2;
    margin-bottom: -200px;
    margin-bottom: calc(-200 * 100vw / 400);
  }

  .detailed-services__header-image img {
    height: 287px;
    height: calc(287 * 100vw / 400);
    object-fit: contain;
  }

  .detailed-services__description {
    padding: 15px 20px;
    padding: calc(15 * 100vw / 400) calc(20 * 100vw / 400);
    font-size: 14px;
    font-size: calc(14 * 100vw / 400);
    line-height: 1.7;
    margin: 0px;
    max-width: 100%;
  }

  .detailed-services__description p {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    text-align: left;
  }

  .detailed-services__section {
    margin-bottom: 0px;
    margin-top: 10px;
    margin-top: calc(10 * 100vw / 400);
    max-width: 312px;
    max-width: calc(312 * 100vw / 400);
  }

  .detailed-services__section-header {
    padding: 25px 25px;
    padding: calc(25 * 100vw / 400) calc(25 * 100vw / 400);
    margin-bottom: 30px;
    margin-bottom: calc(30 * 100vw / 400);
    display: block;
  }

  .detailed-services__section-header::after {
    width: 30px;
    width: calc(30 * 100vw / 400);
    height: 30px;
    height: calc(30 * 100vw / 400);
    bottom: -20px;
    bottom: calc(-20 * 100vw / 400);
  }

  .detailed-services__section-title {
    font-size: 24px;
    font-size: calc(24 * 100vw / 400);
  }

  .detailed-services__section-title-prefix {
    display: block;
    white-space: pre-line;
    line-height: 1.2;
    font-size: 14px;
    font-size: calc(14 * 100vw / 400);
  }

  .detailed-services__section-tabs {
    gap: 40px;
    gap: calc(40 * 100vw / 400);
  }

  .detailed-services__section-tab {
    font-size: 14px;
    font-size: calc(14 * 100vw / 400);
  }

  /* Full width ribbon for mobile */
  .detailed-services__subsection-header {
    padding: 0px;
    margin: 5px auto;
    margin: calc(5 * 100vw / 400) auto;
    text-align: center;
    width: auto;
    display: block;
  }

  .detailed-services__subsection-header .line-parts {
    width: 100%;
    display: block;
    padding: 15px 0px;
    padding: calc(15 * 100vw / 400) 0;
  }

  .detailed-services__subsection-header .line-parts .line-txt {
    text-align: center;
  }

  .detailed-services__section-tagline {
    font-size: 12px;
    font-size: calc(12 * 100vw / 400);
  }

  .detailed-services__grid {
    flex-direction: column;
    gap: 25px;
    gap: calc(25 * 100vw / 400);
    padding-bottom: 100px;
    padding-bottom: calc(100 * 100vw / 400);
	  padding-bottom: 0;
  }

  .remove-padding-bottom {
    padding-bottom: 0px;
    padding-bottom: calc(0 * 100vw / 400);
    margin-bottom: 100px;
    margin-bottom: calc(100 * 100vw / 400);
  }

  .detailed-services__grid-images {
    flex: 1;
    width: 100%;
    height: auto;
    max-height: 108px;
    max-height: calc(108 * 100vw / 400);
    flex-direction: row;
    gap: 10px;
    gap: calc(10 * 100vw / 400);
    order: 2;
    margin-top: -40px;
    margin-top: calc(-40 * 100vw / 400);
  }

  .detailed-services__items {
    order: 1;
    gap: 0;
    padding: 2px;
    padding: calc(2 * 100vw / 400);
    width: 100%;
  }

  .detailed-services__grid-images picture {
    flex: 1;
    display: flex;
  }

  .detailed-services__grid-images img {
    flex: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .detailed-services__item {
    padding: 15px;
    padding: calc(15 * 100vw / 400);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    gap: calc(10 * 100vw / 400);
    width: 100%;
    max-width: 100%;
    margin-bottom: 22px;
    margin-bottom: calc(22 * 100vw / 400);
  }

  .detailed-services__item h4.no-icon::before {
    background-image: none !important;
  }

  .detailed-services__item h4 {
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    line-height: 1.5;
  }

  .detailed-services__item h4::before {
    width: 10px;
    width: calc(10 * 100vw / 400);
    height: 10px;
    height: calc(10 * 100vw / 400);
    left: -17px;
    left: calc(-17 * 100vw / 400);
  }

  .detailed-services__item-link {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    gap: calc(8 * 100vw / 400);
    padding: 8px 15px;
    padding: calc(8 * 100vw / 400) calc(15 * 100vw / 400);
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
    border: 0.5px solid #000;
  }

  .detailed-services__item-link img {
    width: 20px;
    width: calc(20 * 100vw / 400);
    height: 20px;
    height: calc(20 * 100vw / 400);
  }

  .hero-japanese-text {
    margin: 15px 0 25px 0;
    margin: calc(15 * 100vw / 400) 0 calc(25 * 100vw / 400) 0;
    right: auto;
    max-width: fit-content;
    width: auto;
  }

  .hero-japanese-text span {
    font-size: 41px;
    font-size: calc(41 * 100vw / 400);
  }

  /* Show mobile version, hide desktop */
  .hero-japanese-text--desktop {
    display: none;
  }

  .hero-japanese-text--mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    gap: calc(10 * 100vw / 400);
  }

  .hero-japanese-text--mobile .line-parts {
    display: block;
    width: fit-content;
    margin-bottom: 5px;
    margin-bottom: calc(5 * 100vw / 400);
  }

  .heading-pc {
    display: none;
  }

  .heading-sp {
    display: block;
  }

  .service-modal__section li::before {
    font-size: 20px !important;
    font-size: calc(20 * 100vw / 400) !important;
    line-height: 0.8 !important;
    left: 10px !important;
    left: calc(10 * 100vw / 400) !important;
  }

  .detailed-services__category {
    scroll-margin-top: 80px;
    scroll-margin-top: calc(80 * 100vw / 400);
  }
}

/* ===== SERVICE MODAL POPUP ===== */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.service-modal.active {
  display: block;
}

.service-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.service-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-width: calc(600 * var(--vw-with-scrollbar) / 1920);
  max-height: 80vh;
  overflow-y: auto;
  background: #283324;
}

.service-modal__header {
  background: #283324;
  padding: 20px 30px;
  padding: calc(20 * var(--vw-with-scrollbar) / 1920)
    calc(30 * var(--vw-with-scrollbar) / 1920);
}

.service-modal__header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  gap: calc(10 * var(--vw-with-scrollbar) / 1920);
  border: 2px solid #fff;
  padding: 15px 20px 15px 0;
  padding: calc(15 * var(--vw-with-scrollbar) / 1920)
    calc(20 * var(--vw-with-scrollbar) / 1920)
    calc(15 * var(--vw-with-scrollbar) / 1920) 0;
  width: 100%;
}

.service-modal__header-icon {
  width: 30px;
  width: calc(30 * var(--vw-with-scrollbar) / 1920);
  height: 30px;
  height: calc(30 * var(--vw-with-scrollbar) / 1920);
  background: #ffdd57;
}

.service-modal__title {
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  color: #ffdd57;
  margin: 0;
  font-family: var(--font-japanese);
  background: #000;
  padding: 0px 0px 0px 5px;
  padding: 0 0 0 calc(5 * var(--vw-with-scrollbar) / 1920);
  display: inline-block;
  width: fit-content;
}

.service-modal__body {
  padding: 20px 30px;
  padding: calc(20 * var(--vw-with-scrollbar) / 1920)
    calc(30 * var(--vw-with-scrollbar) / 1920);
  color: #ffdd57;
}

.service-modal__section {
  margin-bottom: 40px;
  margin-bottom: calc(40 * var(--vw-with-scrollbar) / 1920);
}

.service-modal__section:last-child {
  margin-bottom: 0;
}

.service-modal__section h4 {
  font-size: 18px;
  font-size: calc(18 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  color: #ffdd57;
  margin: 0 0 15px 0;
  margin: 0 0 calc(15 * var(--vw-with-scrollbar) / 1920) 0;
  font-family: var(--font-japanese);
}

.service-modal__section ul {
  list-style: none;
  padding: 0;
  margin: 5px;
  margin: calc(5 * var(--vw-with-scrollbar) / 1920);
}

.service-modal__section li {
  position: relative;
  padding-left: 25px;
  padding-left: calc(25 * var(--vw-with-scrollbar) / 1920);
  margin-bottom: 15px;
  margin-bottom: calc(15 * var(--vw-with-scrollbar) / 1920);
  font-size: 16px;
  font-size: calc(16 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  line-height: 1.6;
  color: #ffffff;
  font-family: var(--font-japanese);
}

.service-modal__section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffdd57;
  font-size: 20px;
  font-size: calc(20 * var(--vw-with-scrollbar) / 1920);
  line-height: 1.2;
}

.service-modal__subitems {
  margin-top: 10px;
  margin-top: calc(10 * var(--vw-with-scrollbar) / 1920);
  margin-left: 20px;
  margin-left: calc(20 * var(--vw-with-scrollbar) / 1920);
  padding-left: 0;
}

.service-modal__subitems li {
  padding-left: 20px;
  padding-left: calc(20 * var(--vw-with-scrollbar) / 1920);
  margin-bottom: 8px;
  margin-bottom: calc(8 * var(--vw-with-scrollbar) / 1920);
  font-size: 14px;
  font-size: calc(14 * var(--vw-with-scrollbar) / 1920);
  color: #ffffff;
}

.service-modal__subitems li::before {
  content: "•";
  font-size: 16px;
  font-size: calc(16 * var(--vw-with-scrollbar) / 1920);
  color: #ffdd57;
}

.service-modal__close {
  position: static;
  margin: 30px 0 0 auto;
  margin: calc(30 * var(--vw-with-scrollbar) / 1920) 0 0 auto;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 50px;
  padding: calc(10 * var(--vw-with-scrollbar) / 1920)
    calc(50 * var(--vw-with-scrollbar) / 1920);
  font-size: 24px;
  font-size: calc(24 * var(--vw-with-scrollbar) / 1920);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-english);
  display: flex;
  align-items: center;
  gap: 10px;
  gap: calc(10 * var(--vw-with-scrollbar) / 1920);
  width: fit-content;
}

.service-modal__close-icon {
  width: 20px;
  width: calc(20 * var(--vw-with-scrollbar) / 1920);
  height: 20px;
  height: calc(20 * var(--vw-with-scrollbar) / 1920);
  filter: brightness(0) invert(1);
}

.service-modal__close:hover {
  background: #fff;
  color: #3a4a35;
}

.service-modal__close:hover .service-modal__close-icon {
  filter: brightness(0) invert(0);
}

/* Responsive Modal Styles */
@media (max-width: 1024px) {
  .service-modal__content {
    padding: 24px 0;
    max-height: 90vh;
    max-width: 100%;
  }

  .service-modal__close-icon {
    width: 15px;
    width: calc(15 * 100vw / 400);
    height: 15px;
    height: calc(15 * 100vw / 400);
  }

  .service-modal__close {
    gap: 15px;
    gap: calc(15 * 100vw / 400);
  }

  .service-modal__header {
    padding: 15px 20px;
    padding: calc(15 * 100vw / 400) calc(20 * 100vw / 400);
  }

  .service-modal__title {
    font-size: 20px;
    font-size: calc(20 * 100vw / 400);
  }

  .service-modal__body {
    padding: 25px;
    padding: calc(25 * 100vw / 400);
  }

  .service-modal__section {
    margin-bottom: 40px;
    margin-bottom: calc(40 * 100vw / 400);
  }

  .service-modal__section h4 {
    font-size: 18px;
    font-size: calc(18 * 100vw / 400);
    margin-bottom: 15px;
    margin-bottom: calc(15 * 100vw / 400);
  }

  .service-modal__section li {
    font-size: 12px;
    font-size: calc(12 * 100vw / 400);
    padding-left: 25px !important;
    padding-left: calc(25 * 100vw / 400) !important;
  }

  .service-modal__close {
    margin: 20px 0 0 auto;
    margin: calc(20 * 100vw / 400) 0 0 auto;
    padding: 8px 20px;
    padding: calc(8 * 100vw / 400) calc(20 * 100vw / 400);
    font-size: 16px;
    font-size: calc(16 * 100vw / 400);
  }

  .mobile-break {
    display: none;
  }
}

/* ===== LINE PARTS RIBBON ANIMATION ===== */
.line-parts {
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.line-parts.is-active {
  transform: scale(1);
}

.line-parts:before,
.line-parts:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 1;
  transition: left 0.6s ease;
}

.line-parts.is-active:before {
  left: 0;
}

.line-parts.is-active:after {
  left: 100%;
  transition-delay: 0.6s;
}

.line-parts .line-txt {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transform: translateY(calc(20 * var(--vw-with-scrollbar) / 1920));
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.line-parts.is-active .line-txt {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Japanese Text Animation - Different Style */
.hero-japanese-text .line-parts {
  width: fit-content;
  padding: 4px 8px;
  padding: calc(4 * var(--vw-with-scrollbar) / 1920)
    calc(8 * var(--vw-with-scrollbar) / 1920);
  display: inline-block;
}

.hero-japanese-text .line-parts:before,
.hero-japanese-text .line-parts:after {
  left: 0;
  transition: transform var(--transition-d, 0.45s)
    var(--transition-tf, cubic-bezier(0.36, 0.48, 0.02, 0.98));
}

.hero-japanese-text .line-parts.is-active:before {
  transform: translateX(0);
}

.hero-japanese-text .line-parts.is-active:after {
  transform: translateX(100%);
  transition: transform 0.6s ease 0.4s;
}

.hero-japanese-text .line-parts.line-bg-white:before,
.hero-japanese-text .line-parts.line-bg-white:after {
  background-color: #fff;
}

.hero-japanese-text .line-parts:before {
  z-index: 1;
}

.hero-japanese-text .line-parts:after {
  z-index: 5;
}

.hero-japanese-text .line-parts .line-txt {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* Responsive animation with adjusted scroll distance */
@keyframes business-text-scroll-responsive {
  0% {
    transform: translateY(-50%) rotate(-15.69deg) translateX(0%);
  }

  100% {
    transform: translateY(-50%) rotate(-15.69deg) translateX(-100%);
  }
}

/* Faster animation on responsive/mobile */
@media (max-width: 1024px) {
  .business-text-pattern,
  .business-text-background .business-text-pattern,
  .business-text-background:nth-child(2) .business-text-pattern,
  .business-text-background-2 .business-text-pattern {
    animation: business-text-scroll-responsive 15s linear infinite !important;
  }

  /* Prevent flickering with hardware acceleration */
  .business-line img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}
