/* ============================================
   Atout Corporate Website - Custom Styles
   Precise Figma reproduction
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* ---- Utility ---- */
.sp-only { display: none; }

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
html, body {
  overflow-x: clip;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: #101010;
  background: #FFFFFF;

  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* ---- Typography helpers ---- */
.font-figtree { font-family: 'Figtree', sans-serif; }
.font-inter   { font-family: 'Inter', sans-serif; }
.font-noto    { font-family: 'Noto Sans JP', sans-serif; }

/* ============================================
   Navigation  (Figma: x:156, y:0, w:1128)
   Nav inner has 80px horizontal padding
   borderRadius: 0 0 80px 80px
   bg: rgba(255,255,255,0.2) + blur(8px)
   ============================================ */
.nav-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 1128px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 80px 80px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  height: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #101010;
  white-space: nowrap;
}

.nav-links a.nav-top-link {
  color: #585858;
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 40px;
  background: #101010;
  border-radius: 80px;
  color: #FFFFFF !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-contact-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #101010;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   Hero Section
   Figma: w:1440, h:1572 (bg images)
   Content area: max-width 1128px centered
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 1572px;
  overflow: hidden;
}

/* Layer 1: Hero photo + dark overlay */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1572px;
  z-index: 1;
}

.hero-bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Layer 2: Grid pattern (FIT = contain) */
.hero-pattern-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1572px;
  z-index: 2;
}

.hero-pattern-layer img {
  width: 100%;
  /* height: 100%; */
  object-fit: contain;
}

/* Layer 3: Gradient fade to white (starts y:660, h:908) */
.hero-gradient-layer {
  position: absolute;
  top: 660px;
  left: 0;
  width: 100%;
  height: 912px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 1) 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-gradient-layer-mob{
  display: none;
}

/* Hero content container */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1128px;
  margin: 0 auto;
  min-height: 1572px;
}

/* Title: x:0 in content area, y:346 */
.hero-title-ja {
  position: absolute;
  top: 346px;
  left: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.333;
  color: #101010;
}

/* English subtitle: x:0, y:478 */
.hero-title-en {
  position: absolute;
  top: 478px;
  left: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.556;
  color: #585858;
}

/* Description: x:345 (501-156) in content, y:774, w:555 */
.hero-description {
  position: absolute;
  top: 774px;
  left: 345px;
  width: 555px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  letter-spacing: 0.08em;
  color: #101010;
  text-align: justify;
}
.hero-des-mob{
  display: none;
}

/* "Atoutについて" button: x:771 (927-156), y:1175 */
.about-btn {
  position: absolute;
  top: 1175px;
  left: 771px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #101010;
  height: 36px;
  transition: transform 0.3s ease;
}

.about-btn img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-btn:hover img {
  transform: translateX(20px);
  opacity: 1;
}

.about-btn img {
  width: 16px;
  height: 16px;
}

/* ============================================
   Stats Section
   Figma: x:156, y:1271, w:1128
   border-top: 1px #C2C2C2
   padding-top: 65px
   4 columns, each h:136
   ============================================ */
.stats-section {
  position: relative;
  z-index: 10;
  max-width: 1128px;
  margin: 0 auto;
  margin-top: -301px; /* 1572 - 1271 = 301px from bottom of hero */
  padding-top: 65px;
  border-top: 1px solid #C2C2C2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: transparent;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 136px;
  padding-bottom: 16px;
}

.stat-number {
  font-family: 'Figtree', sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #101010;
  text-align: center;
}

.stat-number-noto {
  font-family: 'Figtree', sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #101010;
  text-align: center;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: baseline;
}

.stat-label-en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.333;
  letter-spacing: 0.1em;
  color: #C2C2C2;
  text-align: center;
  text-transform: uppercase;
}

.stat-label-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #585858;
  text-align: center;
}

/* ============================================
   Service Heading Section (scrolls normally)
   ============================================ */
.service-heading-section {
  position: relative;
  width: 100%;
  margin-top: 96px;
  background-color: #FFFFFF;
}

.service-heading {
  position: relative;
  padding: 56px 0 0;
  max-width: 1128px;
  margin: 0 auto;
}

/* ============================================
   Service Cards Section (sticky + scroll-driven)
   ============================================ */
.service-section {
  position: relative;
  width: 100%;
  height: 350vh;
  background-color: #FFFFFF;
}

.service-sticky {
  position: sticky;
  top: 0;
  height: 760px;
  overflow: hidden;
}

.section-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.48;
  color: #585858;
  margin-bottom: -3px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #101010;
  margin-left: -5px;
}

.section-plus-icon {
  width: 40px;
  height: 40px;
  margin-top: 10px;
  filter: brightness(0);
  margin-left: -6px;
}

.section-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #585858;
}

.service-cards-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.service-card {
  position: absolute;
  width: 1128px;
  height: 496px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  filter: brightness(0.75);
  transition: z-index 0s,
              box-shadow 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 8px 0 rgba(105, 105, 105, 0.25);
}

.service-card.is-active {
  z-index: 10 !important;
  /* box-shadow: 0px 12px 40px 0px rgba(0, 0, 0, 0.4); */
  filter: brightness(1);
  transform: translateY(-8px);
}

.service-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-1 {
  left: calc(50% - 580px);
  top: 56px;
  z-index: 1;
}

.service-card-2 {
  left: calc(50% - 572px);
  top: 122px;
  z-index: 2;
}

.service-card-3 {
  left: calc(50% - 564px);
  top: 180px;
  z-index: 3;
}

.service-card-4 {
  left: calc(50% - 556px);
  top: 238px;
  z-index: 4;
}

.service-card-title {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.333;
  color: #FFFFFF;
}

.service-card-cta {
  position: absolute;
  top: 228px;
  left: 402px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #101010;
  border-radius: 8px;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.service-card-cta-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #FFFFFF;
}

.service-card-cta-arrow {
  width: 24px;
  height: 24px;
}


/* ============================================
   Marquee / Brand Section
   Figma Component2 (XLVBL4euPeLXTo4Y1ZJ72v): 4-phase animation
   Default → Variant4 → Variant2 → Variant3
   ============================================ */
.marquee-section {
  width: 100%;
  height: 447px;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
  margin-top: 152px;
}

/* --- Text content: two clip-path layers for letter-spread effect --- */
.marquee-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 1;
}

.marquee-content-l {
  clip-path: inset(0 40% 0 0);
}

.marquee-content-r {
  clip-path: inset(0 0 0 60%);
}

.marquee-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* --- Cross bars (hidden until animation triggers) --- */
.marquee-bar {
  position: absolute;
  background: #101010;
  z-index: 3;
  opacity: 0;
}

.marquee-bar-h {
  top: 42%;
  left: 60.1%;
  width: 0.83%;
  height: 0.45%;
}

.marquee-bar-v {
  left: 60.35%;
  top: 40.4%;
  width: 0.21%;
  height: 5.15%;
}

/* --- Statement overlay (Default state = hidden) --- */
.marquee-statement {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.marquee-statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1128px;
  width: 100%;
  padding: 64px 24px 0;
  text-align: center;
}

.marquee-statement-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.48;
  text-transform: uppercase;
  color: #585858;
  margin: 0;
}

.marquee-statement-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.33;
  color: #FFFFFF;
  margin: 0;
}

.marquee-statement-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 2.14;
  color: #FFFFFF;
  margin: 0;
}

.marquee-statement-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: #FFFFFF;
  text-decoration: none;
  padding: 9px 0;
  transition: opacity 0.2s;
}

.marquee-statement-btn:hover {
  opacity: 0.7;
}

.marquee-statement-btn img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

/* --- Triggered animations (is-active) ---
   Timeline 6s:
   0%      (0s)   = Default
   10%     (0.6s) = Variant4 (immediate transition, no pause)
   43%     (2.6s) = Variant4 hold end (2s pause)
   53%     (3.2s) = Variant2
   87%     (5.2s) = Variant2 hold end (2s pause)
   97%     (5.8s) = Variant3
   100%    (6s)   = Variant3 hold
   -------------------------------------------------------- */
.marquee-section.is-active .marquee-content-l {
  animation: content-fadeout-l 3s ease forwards;
}

.marquee-section.is-active .marquee-content-r {
  animation: content-fadeout-r 3s ease forwards;
}

.marquee-section.is-active .marquee-bar-h {
  animation: cross-h-grow 3s ease forwards;
}

.marquee-section.is-active .marquee-bar-v {
  animation: cross-v-grow 3s ease forwards;
}

.marquee-section.is-active .marquee-statement {
  animation: statement-reveal 3s ease forwards;
  pointer-events: auto;
}

/* Left half: fade gray + slide left ~55px (3.8% of 1440) */
@keyframes content-fadeout-l {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  10% {
    opacity: 0.24;
    transform: translateX(-3.8%);
  }
  43% {
    opacity: 0.24;
    transform: translateX(-3.8%);
  }
  53% {
    opacity: 0;
    transform: translateX(-3.8%);
  }
  100% {
    opacity: 0;
    transform: translateX(-3.8%);
  }
}

/* Right half: fade gray + slide right ~56px (3.9% of 1440) */
@keyframes content-fadeout-r {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  10% {
    opacity: 0.24;
    transform: translateX(3.9%);
  }
  43% {
    opacity: 0.24;
    transform: translateX(3.9%);
  }
  53% {
    opacity: 0;
    transform: translateX(3.9%);
  }
  100% {
    opacity: 0;
    transform: translateX(3.9%);
  }
}

/* H-bar: tiny → medium (Variant4) → hold 2s → full-width (Variant2) → hold 2s → full-screen (Variant3)
   Vertical positions include +20.5px offset for SVG centering in 447px section */
@keyframes cross-h-grow {
  0% {
    opacity: 0;
    top: 42%;
    left: 60.1%;
    width: 0.83%;
    height: 0.45%;
  }
  10% {
    opacity: 0;
    top: 9.1%;
    left: 56.7%;
    width: 7.64%;
    height: 7.16%;
  }
  43% {
    opacity: 0;
    top: 9.1%;
    left: 56.7%;
    width: 7.64%;
    height: 7.16%;
  }
  53% {
    opacity: 1;
    top: 35.9%;
    left: 0;
    width: 100%;
    height: 14.1%;
  }
  87% {
    opacity: 1;
    top: 35.9%;
    left: 0;
    width: 100%;
    height: 14.1%;
  }
  97% {
    opacity: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  100% {
    opacity: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* V-bar: tiny → medium → hold 2s → full-height → hold 2s → right sidebar
   Vertical positions include +20.5px offset for SVG centering in 447px section */
@keyframes cross-v-grow {
  0% {
    opacity: 0;
    left: 60.35%;
    top: 40.4%;
    width: 0.21%;
    height: 5.15%;
  }
  10% {
    opacity: 0;
    left: 59.1%;
    top: -3.5%;
    width: 2.71%;
    height: 49.7%;
  }
  43% {
    opacity: 0;
    left: 59.1%;
    top: -3.5%;
    width: 2.71%;
    height: 49.7%;
  }
  53% {
    opacity: 1;
    left: 59.8%;
    top: 4.6%;
    width: 7.36%;
    height: 90.8%;
  }
  87% {
    opacity: 1;
    left: 59.8%;
    top: 4.6%;
    width: 7.36%;
    height: 90.8%;
  }
  97% {
    opacity: 1;
    left: 95.07%;
    top: 0;
    width: 4.93%;
    height: 100%;
  }
  100% {
    opacity: 1;
    left: 95.07%;
    top: 0;
    width: 4.93%;
    height: 100%;
  }
}

/* Statement overlay: hidden → fades in at Variant3 → holds */
@keyframes statement-reveal {
  0% {
    opacity: 0;
  }
  87% {
    opacity: 0;
  }
  97% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-section .marquee-bar {
    display: none;
  }

  .marquee-section .marquee-content-l,
  .marquee-section .marquee-content-r {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .marquee-section .marquee-content-r {
    display: none;
  }

  .marquee-section .marquee-statement {
    display: none;
  }

  .marquee-section.is-active .marquee-content-l,
  .marquee-section.is-active .marquee-content-r,
  .marquee-section.is-active .marquee-bar-h,
  .marquee-section.is-active .marquee-bar-v,
  .marquee-section.is-active .marquee-statement {
    animation: none;
  }
}

/* ============================================
   Team Section Heading
   Figma: y:3103, w:1440, h:256
   padding: 56px 156px
   ============================================ */
.team-heading-section {
  padding: 56px 0;
  max-width: 1128px;
  margin: 0 auto;
}

/* ============================================
   Team Cards
   Figma: 3 cards at y:3360, 360×320 each
   gap: 24px, total width: 1128px
   ============================================ */
.team-section {
  max-width: 1128px;
  margin: 0 auto;
  padding-bottom: 0;
  margin-bottom: 80px;
  margin-top: 12px;
}

.team-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 80px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.3s;
}

.team-arrow:hover {
  background: rgba(0, 0, 0, 0);
}

.team-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.team-arrow-prev {
  left: 8px;
}

.team-arrow-next {
  right: 8px;
}

.team-track {
  display: flex;
  gap: 24px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  aspect-ratio: 360 / 320;
  border-radius: 8px;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.team-card-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-shadow: 2px 0px 2px rgba(57, 57, 57, 0.25);
}

.team-card-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.008em;
  color: #FFFFFF;
}

.team-card-role {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.009em;
  color: #FFFFFF;
}

/* ============================================
   Join Us Section
   Figma: y:3760, w:1440, h:352
   padding: 80px 32px
   background: image + gradient overlay
   ============================================ */
.joinus-section {
  position: relative;
  width: 100%;
  height: 352px;
  overflow: hidden;
  background-color: #FFFFFF;
  background-image: linear-gradient(123deg, rgba(132, 195, 229, 1) 5%, rgba(255, 255, 255, 0) 40%, rgba(169, 207, 228, 1) 80%, rgba(148, 202, 232, 1) 95%);
}

.joinus-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 80px 32px;
}

.joinus-content {
  position: relative;
  max-width: 1376px;
  margin: 0 auto;
  height: 100%;
}

/* JOIN US title: Figma x:252 relative to section with 32px padding
   So x: 252-32 = 220 from inner edge, y:97-80=17 from inner top
   But relative to joinus-content: x:252, y:97 in the section frame
   Section is 1440px, padding 32px → inner is 1376px
   Title at x:252 from section left → 252-32=220 from padded left */
.joinus-title-row {
  position: absolute;
  left: 220px;
  top: 17px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.joinus-title {
  font-family: 'Inter', sans-serif;
  font-size: 80px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #101010;
}

.joinus-plus {
  width: 40px;
  height: 40px;
  filter: brightness(0);
  margin-top: 10px;
}

/* Text: Figma x:828, y:105 from section
   → 828-32 = 796 from padded left, 105-80=25 from padded top
   Right edge: 1376 - 796 - 351 = 229px from right */
.joinus-text {
  position: absolute;
  right: 229px;
  top: 25px;
  width: 351px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: #101010;
}

/* Button: Figma x:828, y:215 from section
   → 828-32=796 from padded left, 215-80=135 from padded top */
a.joinus-btn {
  position: absolute;
  left: 796px;
  top: 135px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: #101010;
  border-radius: 8px;
  height: 36px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

a.joinus-btn:hover img {
  opacity: 0.85;
  transform: translateX(10px);
}

.joinus-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   News Section
   Figma: x:156, y:4112, w:1128
   layout: row, gap:32px
   padding: 80px 24px 80px 32px
   ============================================ */
.news-section {
  max-width: 1128px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  padding: 80px 24px 80px 32px;
}

.news-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.news-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.21;
  text-transform: uppercase;
  color: #101010;
}

.news-viewmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: #0A0A0A;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.news-viewmore:hover {
  transform: translateX(20px);
  opacity: 1;
}

.news-viewmore img {
  width: 16px;
  height: 16px;
}

/* News list: Figma w:907 */
.news-list {
  flex: 1;
  max-width: 907px;
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid #C2C2C2;
}

.news-item a {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.news-item a:hover{
  transform: translateX(20px);
  opacity: 1;
}

.news-item:first-child {
  display: block;
  padding-top: 0;
}

.news-date {
  font-family: 'SF Pro Text', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.71;
  color: #585858;
  white-space: nowrap;
}

.news-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: #101010;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #FFFFFF;
  white-space: nowrap;
  min-width: 80px;
  justify-content: flex-start;
}

.news-item-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: #101010;
  flex: 1;
}

/* ============================================
   Footer CTA Section
   Figma: y:4488, w:1440, h:759
   bg: grid pattern image
   Section padding: 80px 156px
   ============================================ */
.footer-cta-section {
  position: relative;
  width: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.footer-cta-inner {
  padding: 80px 156px;
  max-width: 1440px;
  margin:0 auto;
}

.footer-cta-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-cta-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Card 1: padding 49px 49px 49px 40px */
.footer-cta-card:first-child {
  padding: 49px 49px 49px 40px;
}

/* Card 2: padding 49px */
.footer-cta-card:last-child {
  padding: 49px;
}

.footer-cta-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.6);
}

.footer-cta-card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #101010;
  text-align: center;
}

.footer-cta-card-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #585858;
  text-align: center;
}

.footer-cta-card-arrow {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.footer-cta-card-arrow img {
  width: auto;
  height: 32px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-cta-cards a:hover .footer-cta-card-arrow img {
  opacity: 1;
  transform: translateX(20px);
}

/* ============================================
   Footer
   Figma: at y:378 within footer section
   bg: rgba(255,255,255,0.9), padding: 0 156px
   ============================================ */
.footer {
  background: rgba(255, 255, 255, 0.9);
  padding: 0 156px;
}

.footer-inner {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* flex: 1; */
  margin-top: 50px;
  width: 409px;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer-company-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.71;
  color: #585858;
}

.footer-company-address {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #585858;
}

.footer-nav {
  flex: 1;
}

/* Footer nav: 2 rows, items spread across */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  height: 56px;
}

.footer-nav-grid a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #585858;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 20px;
  height: 20px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #C2C2C2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1px;
}

.footer-copyright {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #C2C2C2;
}

.footer-privacy {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: #C2C2C2;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive: Tablet (≤ 1280px)
   ============================================ */
@media (max-width: 1280px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    position: relative;
    min-height: auto;
    padding: 0 24px;
  }

  .hero-title-ja {
    position: relative;
    top: auto;
    left: auto;
    padding-top: 300px;
    font-size: 40px;
  }

  .hero-title-en {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 12px;
    font-size: 16px;
  }

  .hero-description {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 600px;
    margin-top: 48px;
    margin-left: auto;
    font-size: 14px;
    line-height: 2.5;
  }

  .about-btn {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 32px;
    margin-left: auto;
    display: flex;
    width: fit-content;
  }

  .stats-section {
    margin-top: 48px;
    padding: 40px 24px 0;
  }

  .hero-bg-layer,
  .hero-pattern-layer {
    height: 100%;
  }

  .hero-gradient-layer {
    top: 50%;
    height: 50%;
  }

  .service-heading-section {
    margin-top: 0;
  }

  .service-section {
    height: 300vh;
  }

  .service-sticky {
    height: 640px;
  }

  .service-heading {
    padding: 72px 24px 0;
  }

  .service-card {
    width: calc(100% - 48px);
    max-width: 1128px;
    height: 400px;
    left: 50% !important;
    transform: translateX(-50%);
  }

  .service-card.is-active {
    transform: translateX(-50%) translateY(-8px);
  }

  .service-card-1 { top: 56px; }
  .service-card-2 { top: 106px; }
  .service-card-3 { top: 156px; }
  .service-card-4 { top: 216px; }

  .service-card-cta {
    left: auto;
    right: 24px;
    top: auto;
    bottom: 24px;
  }

  /* ---- Marquee ---- */
  .marquee-section {
    margin-top: 120px;
  }

  .footer-cta-inner {
    padding: 60px 24px;
  }

  .footer {
    padding: 0 24px;
  }

  .news-section {
    padding: 60px 24px;
  }

  .joinus-section {
    height: auto;
    min-height: 352px;
  }

  .joinus-inner {
    padding: 60px 24px;
  }

  .joinus-title-row {
    position: relative;
    left: auto;
    top: auto;
  }

  .joinus-text {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 500px;
    margin-top: 24px;
    margin-left: auto;
  }

  .joinus-btn {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 24px;
    margin-left: auto;
    display: flex;
    width: fit-content;
  }
}

/* ============================================
   Responsive: Tablet small (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav-container {
    border-radius: 0 0 40px 40px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .section-title {
    font-size: 56px;
  }

  .section-plus-icon {
    width: 28px;
    height: 28px;
  }

  .team-track {
    gap: 16px;
  }

  .team-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }

  .team-section {
    padding: 0 24px;
  }

  /* ---- Marquee ---- */
  .marquee-section {
    margin-top: 100px;
  }

  .marquee-statement-inner {
    padding: 48px 16px 0;
  }

  .footer-cta-cards {
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(3, auto);
    gap: 12px 40px;
  }
}

/* ============================================
   Responsive: Mobile (≤ 768px)
   Figma: mob_index 360×3896
   ============================================ */
@media (max-width: 768px) {
  .sp-only { display: inline; }

  /* ---- Navigation ---- */
  .nav-container {
    max-width: calc(100% - 32px);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-top: 30px;
  }

  .nav-container.nav-scrolled {
    background: transparent;
    box-shadow: none;
  }

  .nav-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    gap: 16px;
    border-radius: 16px;
    box-shadow: none;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* ---- Hero ---- */
  .hero-section {
    min-height: auto;
  }

  .hero-bg-layer {
    height: 960px;
    background: url('../imgs/index_hero_bg.png') no-repeat;
    background-size: cover;
    background-position: center top;
  }

  .hero-bg-layer img {
    height: 960px;
    object-fit: cover;
    object-position: center top;
    display: none;
  }
  .hero-pattern-layer img{
    display: none;
  }

  /* .hero-pattern-layer {
    display: none;
  } */

  .hero-gradient-layer {
    top: 360px;
    height: 760px;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 15%, rgba(255, 255, 255, 1) 10%); */
  }
  .hero-gradient-layer-mob {
    display: block;
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 1) 30%);
    z-index: 3;
  }

  .hero-content {
    min-height: auto;
    padding: 0 16px;
  }

  .hero-title-ja {
    font-size: 20px;
    line-height: 1.35;
    padding-top: 194px;
  }

  .hero-title-en {
    font-size: 10px;
    line-height: 1.48;
    margin-top: 18px;
  }

  .hero-description {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: 0.08em;
    margin-top: 88px;
    margin-left: 0;
    display: none;
  }
  .hero-des-mob{
    display: block;
  }

  .about-btn {
    margin-top: 28px;
    margin-left: auto;
    font-size: 14px;
    height: 40px;
    padding: 8px 4px;
  }

  /* ---- Stats ---- */
  .stats-section {
    margin-top: 44px;
    padding: 16px 16px 0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #E6E6E6;
    height: 104px;
  }

  .stat-item {
    width: auto;
    flex-shrink: 0;
    height: auto;
    gap: 4px;
    padding-bottom: 0;
  }

  .stat-number,
  .stat-number-noto {
    font-size: 24px;
    font-weight: 600;
  }

  .stat-suffix {
    font-size: 12px;
  }

  .stat-label-en {
    font-size: 8px;
    line-height: 2;
  }

  .stat-label-ja {
    font-size: 10px;
    line-height: 1.48;
  }

  /* ---- Service Section (scroll-driven like PC) ---- */
  .service-section {
    height: 1030px !important;
  }

  .service-sticky {
    position: sticky;
    top: 0;
    height: 450px;
    min-height: auto;
    overflow: hidden;
  }

  .service-heading {
    padding: 64px 16px 0;
  }

  .section-label {
    font-size: 12px;
    line-height: 1.48;
    margin-bottom: 5px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-title-row {
    gap: 4px;
    margin-bottom: 18px;
  }

  .section-plus-icon {
    width: 18px;
    height: 18px;
    margin-top: 4px;
  }

  .section-desc {
    font-size: 14px;
    line-height: 1.71;
  }

  .service-cards-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .service-card {
    position: absolute;
    width: calc(100% - 32px) !important;
    max-width: none;
    height: 250px;
    border-radius: 4px;
    left: 16px !important;
    transform: none !important;
    filter: brightness(0.85);
    transition: z-index 0s,
                box-shadow 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .service-card.is-active {
    z-index: 10 !important;
    transform: none !important;
    filter: brightness(1);
  }

  .service-card-1 { top: 56px; z-index: 1; }
  .service-card-2 { top: 96px; z-index: 2; }
  .service-card-3 { top: 136px; z-index: 3; }
  .service-card-4 { top: 176px; z-index: 4; }

  .service-card-title {
    font-size: 14px;
    font-weight: 500;
    top: 8px;
    left: 8px;
  }

  .service-card-cta {
    top: auto;
    bottom: 106px;
    width:60%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .service-card-cta-text {
    font-size: 12px;
    line-height: 1.4;
  }

  .service-card-cta-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
  }

  /* ---- Marquee ---- */
  .marquee-section {
    height: 258px;
    margin-top: 36px;
  }

  .marquee-content img {
    /* max-width: 170px; */
    height: auto;
    object-fit: contain;
  }

  .marquee-statement-inner {
    padding: 16px 16px 0;
    gap: 8px;
    max-width: 100%;
  }

  .marquee-statement-label {
    font-size: 10px;
  }

  .marquee-statement-title {
    font-size: 14px;
  }

  .marquee-statement-desc {
    font-size: 10px;
    line-height: 1.6;
  }

  .marquee-statement-btn {
    font-size: 10px;
    padding: 4px 0;
  }

  /* ---- Team Heading ---- */
  .team-heading-section {
    padding: 40px 16px 48px;
  }

  /* ---- Team Cards ---- */
  .team-section {
    padding: 0;
    margin-bottom: 40px;
  }

  .team-card {
    flex: 0 0 calc(100% - 32px);
    aspect-ratio: 328 / 296;
    border-radius: 4px;
    margin-left: 16px;
  }

  .team-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /* background: rgba(0, 0, 0, 0.5); */
  }

  .team-arrow svg {
    width: 16px;
    height: 16px;
  }

  .team-arrow-prev {
    left: 0;
  }

  .team-arrow-next {
    right: 0;
  }

  .team-card-name {
    font-size: 20px;
  }

  .team-card-role {
    font-size: 14px;
  }

  /* ---- Join Us ---- */
  .joinus-section {
    height: 336px;
    min-height: 336px;
    margin-top: 68px;
  }

  .joinus-inner {
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .joinus-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    height: auto;
  }

  .joinus-title-row {
    position: relative;
    left: auto;
    top: auto;
  }

  .joinus-title {
    font-size: 65px;
  }

  .joinus-plus{margin-top: 10px;}

  .joinus-text {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 307px;
    margin-top: 40px;
    margin-left: 0;
    font-size: 14px;
    line-height: 2.29;
    text-align: center;
  }

  a.joinus-btn {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 24px;
    margin-left: 0;
    font-size: 14px;
    border-radius: 4px;
    height: 39px;
  }

  /* ---- News ---- */
  .news-section {
    flex-direction: column;
    gap: 40px;
    padding: 64px 16px;
  }

  .news-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .news-title {
    font-size: 32px;
    font-weight: 400;
  }

  .news-list {
    max-width: 100%;
  }

  .news-item {
    padding: 8px 0;
    padding-top: 20px;
  }

  .news-item:first-child {
    display: flex;
    padding-top: 8px;
  }

  .news-item a {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-date {
    font-size: 10px;
    line-height: 2.4;
  }

  .news-tag {
    font-size: 10px;
    line-height: 2;
  }

  .news-item-title {
    width: 100%;
    flex: none;
    font-size: 14px;
  }

  /* ---- Footer CTA ---- */
  .footer-cta-section{
    background-image: url('../imgs/footer_bg_mob.png') !important;
  }
  
  .footer-cta-inner {
    padding: 64px 16px;
  }

  .footer-cta-cards {
    flex-direction: column;
    gap: 16px;
  }

  .footer-cta-card {
    border-radius: 4px;
    gap: 10px;
  }

  .footer-cta-card:first-child,
  .footer-cta-card:last-child {
    padding: 16px;
  }

  .footer-cta-card-title {
    font-size: 16px;
  }

  .footer-cta-card-desc {
    font-size: 14px;
  }

  /* ---- Footer ---- */
  .footer {
    padding: 0 0px;
  }

  .footer-logo {
    display: none;
  }

  .footer-inner {
    padding: 48px 16px 38px;
    position: relative;
  }

  .footer-top {
    flex-direction: column;
    gap: 48px;
  }

  .footer-company{
    width: 100%;
    margin-top: 20px;
  }

  .footer-nav-grid {
    grid-template-columns: auto auto;
    gap: 16px;
  }

  .footer-social {
    position: static;
    padding: 25px 10px;
    gap: 32px;
    border-top: 1px solid #C2C2C2;
    margin-top: 40px;
    padding-bottom: 0px;
  }

  .footer-social img {
    width: 24px;
    height: 24px;
  }

  .footer-divider {
    display: none;
  }

  .footer-bottom {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    /* padding-top: 16px; */
  }


  .footer-copyright,
  .footer-privacy {
    font-size: 10px;
    line-height: 2;
  }
}
