/*
 * Malika Favre Design System — exchange-tech.co.jp
 * public/css/ に配置 = Vite/Tailwindのパイプラインを完全バイパス
 * ブラウザが直接読み込む静的CSS
 */

/* ========================================
   Color Palette
   ======================================== */
:root {
  --favre-coral: #E8434A;
  --favre-navy: #1B2A4A;
  --favre-amber: #F5A623;
  --favre-teal: #00B4A6;
  --favre-cream: #FFF5E6;
  --favre-magenta: #C73866;
  --favre-sunset: #FF6B35;
  --favre-heading-weight: 900;
  --favre-heading-tracking: -0.03em;
}

/* ========================================
   Full-Bleed Sections
   ======================================== */
.favre-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.favre-section__content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .favre-section__content {
    padding: 7rem 2rem;
  }
}

@media (min-width: 1024px) {
  .favre-section__content {
    padding: 8rem 2rem;
  }
}

/* ========================================
   Hero
   ======================================== */
.favre-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--favre-navy);
  overflow: hidden;
  margin-top: -5rem;
  padding-top: 5rem;
}

.favre-hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.favre-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.favre-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(27, 42, 74, 0.65) 0%,
      rgba(27, 42, 74, 0.3) 40%,
      rgba(232, 67, 74, 0.15) 70%,
      rgba(27, 42, 74, 0.55) 100%);
}

.favre-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

.favre-hero__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: var(--favre-heading-weight);
  letter-spacing: var(--favre-heading-tracking);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.favre-hero__title span {
  display: block;
}

.favre-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--favre-cream);
  margin-top: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.favre-hero__company {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--favre-amber);
  margin-top: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.favre-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  align-items: center;
}

@media (min-width: 640px) {
  .favre-hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ========================================
   Buttons
   ======================================== */
.favre-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.favre-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.favre-btn:active {
  transform: translateY(0);
}

.favre-btn--coral {
  background-color: var(--favre-coral);
  color: #fff;
}

.favre-btn--amber {
  background-color: var(--favre-amber);
  color: var(--favre-navy);
}

.favre-btn--teal {
  background-color: var(--favre-teal);
  color: #fff;
}

.favre-btn--outline {
  background-color: transparent;
  color: #fff;
  border: 3px solid #fff;
}

.favre-btn--outline:hover {
  background-color: #fff;
  color: var(--favre-navy);
}

/* ========================================
   Section Transitions — Diagonal
   ======================================== */
.favre-clip-top-diagonal {
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -5vw;
  padding-top: calc(5vw + 3rem);
}

.favre-clip-top-diagonal-reverse {
  clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
  margin-top: -5vw;
  padding-top: calc(5vw + 3rem);
}

/* ========================================
   About Section
   ======================================== */
.favre-about {
  background-color: var(--favre-cream);
  position: relative;
}

.favre-about__image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.favre-about__image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.favre-about__text {
  color: var(--favre-navy);
}

.favre-about__text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--favre-heading-weight);
  letter-spacing: var(--favre-heading-tracking);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.favre-about__text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: #3a3a4a;
}

/* ========================================
   Features — Bold Color Cards
   ======================================== */
.favre-features {
  background-color: var(--favre-navy);
  position: relative;
}

.favre-features__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--favre-heading-weight);
  letter-spacing: var(--favre-heading-tracking);
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.favre-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .favre-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .favre-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.favre-feature-card {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.favre-feature-card:hover {
  transform: scale(1.02);
  z-index: 2;
}

.favre-feature-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.favre-feature-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.favre-feature-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.favre-feature-card:nth-child(1) {
  background-color: var(--favre-coral);
  color: #fff;
}

.favre-feature-card:nth-child(2) {
  background-color: var(--favre-teal);
  color: #fff;
}

.favre-feature-card:nth-child(3) {
  background-color: var(--favre-amber);
  color: var(--favre-navy);
}

.favre-feature-card:nth-child(4) {
  background-color: var(--favre-magenta);
  color: #fff;
}

.favre-feature-card:nth-child(5) {
  background-color: var(--favre-sunset);
  color: #fff;
}

.favre-feature-card:nth-child(6) {
  background-color: var(--favre-navy);
  color: var(--favre-cream);
  border: 2px solid var(--favre-teal);
}

/* ========================================
   World Map
   ======================================== */
.favre-world {
  background-color: var(--favre-navy);
  position: relative;
}

.favre-world__image {
  width: 100%;
  height: auto;
  display: block;
}

.favre-world__overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom,
      rgba(27, 42, 74, 0.5) 0%,
      rgba(27, 42, 74, 0.15) 30%,
      rgba(27, 42, 74, 0.15) 70%,
      rgba(27, 42, 74, 0.5) 100%);
}

.favre-world__heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: var(--favre-heading-weight);
  color: #fff;
  letter-spacing: var(--favre-heading-tracking);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.favre-world__subheading {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: var(--favre-amber);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ========================================
   Currency Ticker — 無限横スクロール
   ======================================== */
.favre-currency-ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.5rem 0;
  background-color: var(--favre-navy);
}

.favre-currency-ticker__inner {
  display: inline-flex;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 20s linear infinite !important;
}

.favre-currency-ticker__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--favre-cream);
  opacity: 0.6;
}

.favre-currency-ticker__symbol {
  font-size: 1.8rem;
  color: var(--favre-amber);
  opacity: 1;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   Flight Route Animation — SVG animateMotion (SMIL)
   CSS offset-pathはSVG要素で不安定なため
   SVGネイティブのanimateMotionを使用
   ======================================== */
.favre-world__flight-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ========================================
   CTA Section
   ======================================== */
.favre-cta {
  background-color: var(--favre-coral);
  position: relative;
}

.favre-cta__content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .favre-cta__content {
    padding: 7rem 2rem;
  }
}

.favre-cta__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--favre-heading-weight);
  color: #fff;
  letter-spacing: var(--favre-heading-tracking);
  margin-bottom: 1.5rem;
}

.favre-cta__desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.favre-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .favre-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ========================================
   Decorative
   ======================================== */
.favre-floating-symbol {
  position: absolute;
  font-weight: 900;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

/* ========================================
   Scroll Animations
   ======================================== */
.favre-reveal {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  .favre-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: favre-reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 35%;
  }

  .favre-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    animation: favre-reveal-scale-in linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 35%;
  }

  @keyframes favre-reveal-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes favre-reveal-scale-in {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--favre-coral);
    transform-origin: left;
    z-index: 100;
    animation: scroll-progress-grow linear both;
    animation-timeline: scroll();
  }

  @keyframes scroll-progress-grow {
    from {
      transform: scaleX(0);
    }

    to {
      transform: scaleX(1);
    }
  }
}

/* ========================================
   Hero Entry Animations
   ======================================== */
@keyframes favre-hero-fade-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes favre-hero-text-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.favre-hero__art {
  animation: favre-hero-fade-in 1.2s ease-out;
}

.favre-hero__title {
  animation: favre-hero-text-up 0.8s ease-out 0.3s both;
}

.favre-hero__subtitle {
  animation: favre-hero-text-up 0.8s ease-out 0.5s both;
}

.favre-hero__company {
  animation: favre-hero-text-up 0.8s ease-out 0.7s both;
}

.favre-hero__actions {
  animation: favre-hero-text-up 0.8s ease-out 0.9s both;
}

.favre-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: favre-bounce 2s ease-in-out infinite;
}

@keyframes favre-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ========================================
   prefers-reduced-motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  .favre-hero__art,
  .favre-hero__title,
  .favre-hero__subtitle,
  .favre-hero__company,
  .favre-hero__actions {
    animation: none;
  }

  .favre-reveal,
  .favre-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .favre-currency-ticker__inner {
    animation: none;
  }

  .favre-scroll-indicator {
    animation: none;
  }

  .scroll-progress {
    display: none !important;
  }
}