/* ============================================================
   VELANT INC. — Corporate Japanese Website
   Color System:
     Base    (60%) : #ffffff (White)
     Main    (30%) : #f2f2f2 / #888888 (Gray tones)
     Accent  (10%) : #ff8286 (Rose Azalée)
   ============================================================ */

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

:root {
  --color-white:       #ffffff;
  --color-bg:          #f9f9f9;
  --color-gray-light:  #f2f2f2;
  --color-gray-mid:    #c8c8c8;
  --color-gray:        #888888;
  --color-gray-dark:   #444444;
  --color-text:        #222222;
  --color-accent:      #ff8286;
  --color-accent-dark: #e0666a;

  --font-sans:   'Noto Sans JP', sans-serif;
  --font-mincho: 'Shippori Mincho', serif;
  --font-cardo:  'Cardo', serif;

  --transition: 0.35s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

img, video {
  display: block;
  max-width: 100%;
}

/* ── Header Section ───────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
  z-index: 1000;
  transition: all var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.header__logo-link {
  text-decoration: none;
  display: inline-block;
  transition: opacity var(--transition);
}

.header__logo-link:hover {
  opacity: 0.7;
}

.header__logo-text {
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.08em;
}

/* Navigation */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__menu-item {
  position: relative;
}

.header__menu-link {
  font-family: var(--font-cardo);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.header__menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__menu-link:hover {
  color: var(--color-accent);
}

.header__menu-link:hover::after {
  width: 100%;
}

.header__menu-link.is-active {
  color: var(--color-accent);
}

.header__menu-link.is-active::after {
  width: 100%;
}

/* ── Recruit Dropdown ─────────────────────────────────────── */
.header__dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.6;
  display: inline-block;
  transition: transform var(--transition);
}

.header__menu-item--has-dropdown .header__dropdown.is-open ~ * .header__dropdown-arrow,
.header__menu-item--has-dropdown:has(.header__dropdown.is-open) .header__dropdown-arrow {
  transform: rotate(180deg);
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Fast open */ 
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 200;
  white-space: nowrap;
}

/* Small accent line at top */
.header__dropdown::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  margin: 4px auto 8px;
  border-radius: 2px;
}

/* Open state — JS adds .is-open */
.header__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* Snap open instantly, no delay on enter */
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

/* Closing state — JS adds .is-closing after the 1.2 s grace period */
.header__dropdown.is-open.is-closing {
  opacity: 0;
  /* Keep pointer-events on during the short fade so a last-second click still works */
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.header__dropdown-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 9px 20px;
  letter-spacing: 0.06em;
  transition: color var(--transition), background var(--transition);
}

.header__dropdown-link:hover {
  color: var(--color-accent);
  background: rgba(255, 130, 134, 0.04);
}

/* ── Mobile dropdown ──────────────────────────────────────── */
@media (max-width: 768px) {
  .header__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-accent);
    border-radius: 0;
    padding: 4px 0;
    margin: 4px 0 4px 12px;
    min-width: unset;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header__dropdown::before {
    display: none;
  }

  .header__dropdown.is-open {
    pointer-events: auto;
    max-height: 400px;
    transform: none;
  }

  .header__dropdown-link {
    font-size: 0.82rem;
    padding: 8px 16px;
  }
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.header__toggle-line {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  transform-origin: center;
}

.header__toggle.is-active .header__toggle-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__toggle.is-active .header__toggle-line:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-active .header__toggle-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Header Responsive ────────────────────────────────────── */
@media (max-width: 968px) {
  .header__container {
    padding: 0 40px;
  }

  .header__menu {
    gap: 36px;
  }

  .header__menu-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .header__container {
    height: 70px;
    padding: 0 24px;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-white);
    padding: 40px 24px;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__menu-item {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-light);
  }

  .header__menu-link {
    display: block;
    padding: 20px 0;
    font-size: 1rem;
  }

  .header__menu-link::after {
    display: none;
  }
}

/* ── Hero Section — Full Width ────────────────────────────── */
.hero {
  width: 100%;
  background-color: var(--color-white);
  line-height: 0;
  position: relative;
  min-height: 100vh;
}

.hero__img,
.hero__video {
  width: 100%;
  height: 100vh;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: var(--color-white);
}

/* ── Fade-in utility ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blog Carousel Section ────────────────────────────────── */
.blog {
  width: 100%;
  background-color: var(--color-white);
  padding: 100px 0 80px;
}

.blog__header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 40px;
}

.blog__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.12em;
}

/* Track wrapper — clips overflow, holds arrows */
.blog__track-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

/* Scrollable track */
.blog__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}

/* ── Individual Card ──────────────────────────────────────── */
.blog__card {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 visible */
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.blog__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

/* Image area */
.blog__card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-gray-light);
}

.blog__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog__card:hover .blog__card-img {
  transform: scale(1.04);
}

/* Card body */
.blog__card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.blog__card-title {
  font-family: var(--font-mincho);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.blog__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog__card-date {
  font-family: var(--font-cardo);
  font-size: 0.78rem;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

.blog__card-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-gray-dark);
  border: 1px solid var(--color-gray-mid);
  border-radius: 20px;
  padding: 2px 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Arrows ───────────────────────────────────────────────── */
.blog__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  color: var(--color-gray-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.blog__arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.blog__arrow--prev { left: 8px; }
.blog__arrow--next { right: 8px; }

.blog__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Dots ─────────────────────────────────────────────────── */
.blog__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding: 0 40px;
}

.blog__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gray-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.blog__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ── Blog Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .blog__card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .blog__track-wrapper {
    padding: 0 48px;
  }
}

@media (max-width: 600px) {
  .blog {
    padding: 72px 0 60px;
  }
  .blog__card {
    flex: 0 0 calc(100% - 0px);
  }
  .blog__track-wrapper {
    padding: 0 40px;
  }
}

/* ── Philosophy Section ────────────────────────────────────── */
.philosophy {
  width: 100%;
  background-color: #ffffff;
  padding: 100px 0 100px;
}

.philosophy__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy__left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy__handwritten {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  display: block;
}

.philosophy__header {
  margin-bottom: 40px;
  text-align: center;
}



.philosophy__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.12em;
  display: inline-block;
  padding-bottom: 14px;
  position: relative;
}

.philosophy__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 130, 134, 1)   0%,
    rgba(255, 130, 134, 0.3) 100%
  );
}

.philosophy__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.philosophy__item {
  padding: 48px 40px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.philosophy__item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.philosophy__item-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.philosophy__item-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-gray);
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* ── Philosophy Responsive ────────────────────────────────── */
@media (max-width: 968px) {
  .philosophy__container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 40px;
  }
  
  .philosophy__left {
    position: static;
  }
  
  .philosophy__handwritten {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .philosophy {
    padding: 72px 0 72px;
  }
  
  .philosophy__container {
    padding: 0 24px;
  }
  
  .philosophy__right {
    gap: 24px;
  }
  
  .philosophy__item {
    padding: 32px 24px;
  }
}

/* ══════════════════════════════════════════════════════════
   PHILOSOPHY — DRIFTING CIRCLES
   ══════════════════════════════════════════════════════════ */

/* Stacked column — each circle drifts horizontally */
.phi3__circles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 32px 16px;
}

/* Base circle */
.phi3__circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow  0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* ── Sizes: slightly different for each ── */
/* Circle 1 — top centre, faded rose azalea */
.phi3__circle--gray1 {
  width: 260px;
  height: 260px;
  background-color: rgba(255, 130, 134, 0.25);
  box-shadow: 0 6px 24px rgba(255, 130, 134, 0.12);
  grid-column: 1 / 3;           /* spans both columns — centres on top row */
  align-self: auto;
  margin-top: 0;
}

/* Circle 2 — bottom right, light gray */
.phi3__circle--rose {
  width: 240px;
  height: 240px;
  background-color: #f0f0f0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  align-self: auto;
  margin-top: 0;
}

/* Circle 3 — bottom left, light gray */
.phi3__circle--gray2 {
  width: 250px;
  height: 250px;
  background-color: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  align-self: auto;
  margin-top: 0;
}

/* Hover lift */
.phi3__circle--rose:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}
.phi3__circle--gray1:hover,
.phi3__circle--gray2:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}

/* Inner text wrapper */
.phi3__circle-inner {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phi3__circle-title {
  font-family: var(--font-mincho);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 4px;
}

/* Dark title on rose circle (now gray) */
.phi3__circle--rose .phi3__circle-title {
  color: var(--color-text);
}

/* Black title on faded rose circle (gray1) */
.phi3__circle--gray1 .phi3__circle-title {
  color: var(--color-text);
}
.phi3__circle--gray1 .phi3__circle-text {
  color: var(--color-gray-dark);
  opacity: 0.85;
}

.phi3__circle-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  line-height: 1.65;
  color: var(--color-text);
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .phi3__circles {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

  .phi3__circle--rose,
  .phi3__circle--gray1,
  .phi3__circle--gray2 {
    align-self: auto;
  }
}

@media (max-width: 600px) {
  .phi3__circle--gray1 { width: 200px; height: 200px; }
  .phi3__circle--rose  { width: 190px; height: 190px; }
  .phi3__circle--gray2 { width: 195px; height: 195px; }
}

/* ── Case Studies Section ────────────────────────────────── */
.cases {
  width: 100%;
  background-color: var(--color-white);
  padding: 100px 0 100px;
}

.cases__header {
  text-align: center;
  margin-bottom: 72px;
  padding: 0 40px;
}



.cases__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.12em;
}

/* Track wrapper — clips overflow, holds arrows */
.cases__track-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

/* Scrollable track */
.cases__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}

.cases__card {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 visible */
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.cases__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

.cases__card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-gray-light);
}

.cases__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cases__card:hover .cases__card-img {
  transform: scale(1.04);
}

.cases__card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.cases__card-title {
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.cases__card-description {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-gray-dark);
  letter-spacing: 0.04em;
  line-height: 1.8;
  flex: 1;
}

.cases__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-light);
}

.cases__card-date {
  font-family: var(--font-cardo);
  font-size: 0.75rem;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

.cases__card-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-gray-dark);
  border: 1px solid var(--color-gray-mid);
  border-radius: 20px;
  padding: 2px 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Cases Arrows ─────────────────────────────────────── */
.cases__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  color: var(--color-gray-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cases__arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.cases__arrow--prev { left: 8px; }
.cases__arrow--next { right: 8px; }

.cases__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Cases Dots ───────────────────────────────────────── */
.cases__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding: 0 40px;
}

.cases__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gray-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.cases__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ── Case Studies Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .cases__card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .cases__track-wrapper {
    padding: 0 48px;
  }
}

@media (max-width: 768px) {
  .cases {
    padding: 72px 0 72px;
  }

  .cases__header {
    margin-bottom: 56px;
  }
}

@media (max-width: 600px) {
  .cases__card {
    flex: 0 0 calc(100% - 0px);
  }
  .cases__track-wrapper {
    padding: 0 40px;
  }
  .cases__card-body {
    padding: 20px;
  }
}

/* ── Team Section ────────────────────────────────────────── */
.team {
  width: 100%;
  background-color: var(--color-bg);
  padding: 100px 0 100px;
}

.team__header {
  text-align: center;
  margin-bottom: 72px;
  padding: 0 40px;
}

.team__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.team__label-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 130, 134, 0.6) 50%,
    transparent 100%
  );
  animation: teamLineExpand 1.5s ease forwards 0.5s;
  transform-origin: center;
}

.team__label-text {
  font-family: var(--font-cardo);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 130, 134, 0.9);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes teamLineExpand {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

.team__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.12em;
}

/* First Row: Fixed Grid */
.team__grid-fixed {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* company-2.html: full-width rows, no slider */
.team__grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto 48px;
  padding: 0 60px;
}

/* Row 2: 3 members centred */
.team__grid-row2 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1060px;
}

/* Team Member Card */
.team__member {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.team__member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.team__member-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-gray-light);
}

.team__member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team__member:hover .team__member-img {
  transform: scale(1.05);
}

.team__member-info {
  padding: 24px 20px;
  text-align: center;
}

.team__member-name {
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  line-height: 1.5;
}

.team__member-position {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-gray);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.team__member-bio {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-gray);
  letter-spacing: 0.04em;
  line-height: 1.75;
  margin-top: 10px;
  opacity: 0.8;
}

/* Second Row: Slider */
.team__slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.team__slider {
  display: flex;
  gap: 32px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.team__slider .team__member {
  flex: 0 0 calc((100% - 96px) / 4);
  min-width: 250px;
}

/* Slider Arrows */
.team__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  color: var(--color-gray-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.team__arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.team__arrow--prev { left: 12px; }
.team__arrow--next { right: 12px; }

.team__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Slider Dots */
.team__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding: 0 40px;
}

.team__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gray-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.team__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ── Team Responsive ────────────────────────────────────── */
@media (max-width: 1200px) {
  .team__grid-full {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .team {
    padding: 72px 0 72px;
  }

  .team__header {
    margin-bottom: 56px;
  }

  .team__grid-full {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
    gap: 24px;
    margin-bottom: 48px;
  }

  .team__member-info {
    padding: 20px 16px;
  }
}

@media (max-width: 600px) {
  .team__grid-full {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
}

/* ── Contact Section ────────────────────────────────────── */
.contact-section {
  width: 100%;
  background-color: var(--color-bg);
  padding: 100px 0 100px;
}

.contact-section__header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 40px;
}



.contact-section__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.12em;
}

.contact-section__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Form */
.contact-section__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form Row (2 columns) */
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Form Groups */
.contact-form__group {
  display: flex;
  flex-direction: column;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-mid);
  border-radius: 2px;
  transition: all var(--transition);
  background: var(--color-white);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-gray);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-sans);
  line-height: 1.7;
}

.contact-form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  appearance: none;
  padding-right: 40px;
}

/* Form Footer */
.contact-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.contact-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}

.contact-form__checkbox {
  width: 16px;
  height: 16px;
  min-width: 16px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.contact-form__checkbox-text {
  color: var(--color-gray-dark);
  letter-spacing: 0.02em;
}

/* Submit Button */
.contact-form__submit {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 40px;
  background: var(--color-text);
  color: var(--color-white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.contact-form__submit:hover {
  background: var(--color-accent);
}

.contact-form__submit:disabled {
  background: var(--color-gray-mid);
  cursor: not-allowed;
}

/* Form Message */
.contact-form__message {
  padding: 12px;
  border-radius: 2px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-top: 8px;
}

.contact-form__message--success {
  background: rgba(130, 224, 170, 0.12);
  color: #2d6a4f;
  border: 1px solid rgba(130, 224, 170, 0.3);
  display: block;
}

.contact-form__message--error {
  background: rgba(255, 130, 134, 0.12);
  color: #a8393d;
  border: 1px solid rgba(255, 130, 134, 0.3);
  display: block;
}

/* ── Contact Section Responsive ────────────────────────── */
@media (max-width: 768px) {
  .contact-section {
    padding: 72px 0 72px;
  }

  .contact-section__header {
    margin-bottom: 48px;
  }

  .contact-section__container {
    padding: 0 40px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .contact-form__submit {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-section__container {
    padding: 0 24px;
  }

  .contact-section__form {
    gap: 14px;
  }

  .contact-form__row {
    gap: 14px;
  }
}

/* ── Footer Section ────────────────────────────────────── */
.footer {
  width: 100%;
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 80px 0 40px;
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer__text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.footer__text-ja {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer__note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.footer__bottom {
  text-align: center;
}

.footer__copyright {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* ── Footer Responsive ────────────────────────────────── */
@media (max-width: 968px) {
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 32px;
  }

  .footer__container {
    padding: 0 40px;
  }

  .footer__content {
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .footer__container {
    padding: 0 24px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }
}

/* ── Footer: shared top/brand/nav layout (recruit & template) ── */
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-family: var(--font-cardo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: 0.08em;
}

.footer__nav {
  display: flex;
  gap: 80px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav-title {
  font-family: var(--font-cardo);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 8px 0;
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
}

.footer__nav-link:hover {
  color: var(--color-white);
}

.footer__bottom {
  text-align: center;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: 40px;
  }
  .footer__nav {
    flex-direction: column;
    gap: 30px;
  }
}


   Usage:
     <div class="section-label">
       <span class="section-label__line"></span>
       <span class="section-label__text">Your Title Here</span>
       <span class="section-label__line"></span>
     </div>

   Modifiers (add to the wrapper div):
     .section-label--left     → left-aligned (no centering)
     .section-label--dark     → dark background variant (lighter rose tint)
     .section-label--sm       → smaller text & shorter lines
     .section-label--lg       → larger text & longer lines
     .section-label--no-anim  → disables the expand animation
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.section-label--left {
  justify-content: flex-start;
}

/* ── Decorative Lines ─────────────────────────────────────── */
.section-label__line {
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 130, 134, 0.6) 50%,
    transparent 100%
  );
  animation: sectionLabelLineExpand 1.5s ease forwards 0.5s;
  opacity: 0;
  flex-shrink: 0;
}

@keyframes sectionLabelLineExpand {
  from { width: 0;    opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

.section-label--no-anim .section-label__line {
  animation: none;
  opacity: 1;
}

/* ── Label Text ───────────────────────────────────────────── */
.section-label__text {
  font-family: var(--font-cardo);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 130, 134, 0.9);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Size Modifiers ──────────────────────────────────────── */
.section-label--sm .section-label__line  { width: 36px; }
.section-label--sm .section-label__text  { font-size: 0.75rem; letter-spacing: 0.25em; }

@keyframes sectionLabelLineExpandSm {
  from { width: 0;    opacity: 0; }
  to   { width: 36px; opacity: 1; }
}
.section-label--sm .section-label__line {
  animation: sectionLabelLineExpandSm 1.5s ease forwards 0.5s;
  opacity: 0;
}
.section-label--sm.section-label--no-anim .section-label__line {
  animation: none;
  opacity: 1;
}

.section-label--lg .section-label__line  { width: 90px; }
.section-label--lg .section-label__text  { font-size: 1rem; letter-spacing: 0.35em; }

@keyframes sectionLabelLineExpandLg {
  from { width: 0;    opacity: 0; }
  to   { width: 90px; opacity: 1; }
}
.section-label--lg .section-label__line {
  animation: sectionLabelLineExpandLg 1.5s ease forwards 0.5s;
  opacity: 0;
}
.section-label--lg.section-label--no-anim .section-label__line {
  animation: none;
  opacity: 1;
}

/* ── Dark Background Variant ─────────────────────────────── */
.section-label--dark .section-label__line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 130, 134, 0.45) 50%,
    transparent 100%
  );
}
.section-label--dark .section-label__text {
  color: rgba(255, 130, 134, 0.75);
}
