/* ===== HERO ===== */
.hero {
  background: var(--color-white);
  padding-top: 72px;
  overflow: hidden;
  position: relative;
}

/* ---- BG layer (tablet/mobile only) ---- */
.hero__bg-layer {
  display: none; /* デスクトップは非表示 */
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center center;
  animation: heroBgKenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroBgKenBurns {
  0%   { transform: scale(1.08) translate(0%, 0%); }
  25%  { transform: scale(1.12) translate(-1.5%, 1%); }
  75%  { transform: scale(1.06) translate(1%, -0.5%); }
  100% { transform: scale(1.10) translate(-0.5%, 1.5%); }
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.93) 0%,
    rgba(255,255,255,0.82) 45%,
    rgba(255,255,255,0.60) 100%
  );
}

/* 光沢スウィープ */
.hero__bg-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: heroGlareSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlareSweep {
  0%   { background-position: 200% 0; opacity: 0; }
  10%  { opacity: 1; }
  50%  { background-position: -60% 0; opacity: 1; }
  70%  { opacity: 0; }
  100% { background-position: -60% 0; opacity: 0; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  min-height: calc(100vh - 72px);
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.hero__left {
  max-width: 560px;
}

.hero__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Hero nav links */
.hero__nav {
  display: flex;
  flex-direction: column;
}

.hero__nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  min-height: 60px;
}

.hero__nav-link:first-child {
  border-top: 1px solid var(--color-border);
}

.hero__nav-link:hover {
  padding-left: 0.5rem;
}

.hero__nav-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  min-width: 120px;
}

.hero__nav-ja {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.hero__nav-arrow {
  color: var(--color-text-sub);
  font-size: 1rem;
  margin-left: auto;
}

/* Hero right: 2 service cards */
.hero__right {
  position: relative;
  height: 520px;
}

.hero__cards {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.hero__service-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.hero__service-card:nth-child(2) {
  margin-top: 3rem;
}

.hero__service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero__service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero__service-card__body {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--color-white);
}

.hero__service-card__en {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.375rem;
  display: block;
}

.hero__service-card__title {
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
}

/* ===== PHOTO INFINITE SLIDER ===== */
.photo-slider-section {
  background: var(--color-bg-dark);
  padding: 3rem 0;
  overflow: hidden;
}

.photo-slider-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: photoSlide 30s linear infinite;
}

.photo-slider-track:hover {
  animation-play-state: paused;
}

.photo-slider-item {
  flex-shrink: 0;
  width: 340px;
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.photo-slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-slider-item:hover img {
  transform: scale(1.04);
}

@keyframes photoSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .photo-slider-item {
    width: 260px;
    height: 170px;
  }
}

/* ===== MARQUEE ===== */
.hero__marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-warm);
  padding: 0.875rem 0;
  position: relative;
  z-index: 1;
}

.hero__marquee {
  display: flex;
  white-space: nowrap;
  animation: marqueeAnim 25s linear infinite;
}

.hero__marquee span {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  padding-right: 3rem;
}

@keyframes marqueeAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== NEWS / INSIGHTS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.news-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  display: block;
}

.news-photo-card--featured {
  grid-row: span 2;
  aspect-ratio: auto;
}

.news-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-photo-card:hover img {
  transform: scale(1.04);
}

.news-photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 100%);
}

.news-photo-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  color: white;
}

.news-photo-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

.news-photo-card__title {
  font-size: clamp(0.8rem, 1.4vw, 0.975rem);
  font-weight: 700;
  line-height: 1.4;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-item__number {
  font-family: var(--font-en);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  display: block;
}

.stat-item__unit {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-item__label {
  font-size: 1rem;
  color: var(--color-text-sub);
  margin-top: 0.5rem;
}

/* ===== NEWS LIST ===== */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  min-height: 44px;
}

.news-list__item:hover {
  padding-left: 0.5rem;
}

.news-list__date {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  white-space: nowrap;
  min-width: 90px;
  padding-top: 0.15rem;
}

.news-list__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
  color: var(--color-text-sub);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.news-list__title {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}

.cta-section .section__en {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  /* bg-layer ON */
  .hero__bg-layer {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    min-height: 100svh;
    padding-bottom: 3rem;
  }

  /* カードは非表示、背景に昇格 */
  .hero__right {
    display: none;
  }

  .hero__left {
    max-width: 100%;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-photo-card--featured {
    grid-row: span 1;
    aspect-ratio: 4 / 5;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* FIX-4: Mobile service navigation */
  .hero__nav-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 1.25rem 0;
    min-height: 64px;
  }

  .hero__nav-en {
    font-size: 0.65rem;
    min-width: auto;
  }

  .hero__nav-arrow {
    display: none;
  }

  .hero__nav-ja {
    flex: none;
  }

  /* FIX-5: Insights card mobile */
  .news-photo-card__body {
    padding: 1.25rem 1rem;
  }

  .news-photo-card__tag {
    z-index: 2;
    position: relative;
  }

  .news-photo-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  /* FIX-10: Stats grid mobile centering */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    text-align: center;
  }
}
