@charset "utf-8";

/**
 * Organisms: ヒーローセクションコンポーネント
 * 各ページのメインビジュアルとタイトルエリア
 */

/* === Base Hero === */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* === Hero Container === */
.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--container_current);
  margin: 0 auto;
  padding: var(--space_current_container);
  color: var(--col_white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Hero Content === */
.hero-title {
  font-family: var(--font_MavenPro, 'Maven Pro', sans-serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: heroTitleSlide 1s ease-out;
}

.hero-subtitle {
  font-family: var(--font_NotoSansJP);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 2rem 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: heroSubtitleSlide 1s ease-out 0.2s both;
}

.hero-description {
  font-family: var(--font_NotoSansJP);
  font-size: var(--font_size_body_large);
  line-height: var(--line_height_relaxed);
  margin-bottom: var(--space_4xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: heroDescriptionSlide 1s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space_2xl);
  flex-wrap: wrap;
  animation: heroActionsSlide 1s ease-out 0.6s both;
}

/* === Hero Variants === */

/* Gradient Heroes */
.hero--gradient {
  background-attachment: scroll;
  will-change: auto;
}

.hero--gradient::before {
  background: rgba(0, 0, 0, 0.1);
}

.hero--business {
  background: var(--gradient_business);
}

.hero--equipment {
  background: var(--gradient_equipment);
}

.hero--company {
  background: var(--gradient_company);
}

.hero--recruit {
  background: var(--gradient_recruit);
}

.hero--contact {
  background: var(--gradient_contact);
}

.hero--news {
  background: var(--gradient_news);
}

.hero--works {
  background: var(--gradient_works);
}

.hero--column {
  background: var(--gradient_column);
}

.hero--faq {
  background: var(--gradient_faq);
}

/* Compact Hero */
.hero--compact {
  min-height: 40vh;
}

.hero--compact .hero-title {
  font-size: calc(var(--font_size_current_hero, var(--font_size_hero)) * 0.7);
  margin-bottom: var(--space_xl);
}

.hero--compact .hero-subtitle {
  font-size: var(--font_size_h5);
  margin-bottom: var(--space_2xl);
}

/* Minimal Hero */
.hero--minimal {
  min-height: 30vh;
  background: var(--bg_gray);
  color: var(--col_font);
}

.hero--minimal::before {
  display: none;
}

.hero--minimal .hero-title {
  color: var(--col_font);
  text-shadow: none;
}

/* Video Hero */
.hero--video {
  position: relative;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Split Hero */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 70vh;
  background: #fff;
  color: #222;
  padding: 2rem;
}

.hero--split::before {
  display: none;
}

.hero--split .hero-container {
  text-align: left;
  color: #222;
  max-width: none;
  padding: 0;
  margin: 0;
}

.hero--split .hero-image {
  position: relative;
  z-index: 2;
}

.hero--split .hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius_xl);
  box-shadow: var(--shadow_2xl);
}

/* SVGロゴ用のスタイル（アイキャッチなし時） */
.hero--fallback-logo .hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius_xl);
  border: 2px solid var(--col_primary, #e11f1f);
}

.hero--fallback-logo .hero-image img {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.8;
}

/* === Hero Decorations === */
.hero-decoration {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

.hero-decoration--circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--col_white);
  top: 20%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration--triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid var(--col_white);
  bottom: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

/* === Scroll Indicator === */
.hero-scroll {
  position: absolute;
  bottom: var(--space_2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space_sm);
  color: var(--col_white);
  text-decoration: none;
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-text {
  font-size: var(--font_size_small);
  font-weight: var(--font_weight_medium);
  text-transform: uppercase;
  letter-spacing: var(--letter_spacing_wide);
}

.hero-scroll-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

/* === Animations === */
@keyframes heroTitleSlide {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleSlide {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDescriptionSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroActionsSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* === Responsive === */
@media (min-width: 768px) and (max-width: 1439px) {
  .hero {
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: var(--font_scale_tablet_hero);
  }
  
  .hero-subtitle {
    font-size: var(--font_size_h5);
  }
  
  .hero-actions {
    gap: var(--space_xl);
  }
  
  .hero--split {
    gap: var(--space_4xl);
  }
}

@media only screen and (max-width: 767px) {
  .hero {
    min-height: 60vh;
    background-attachment: scroll;
  }
  
  .hero-container {
    padding: var(--space_current_container);
  }
  
  .hero-title {
    font-size: var(--font_scale_mobile_hero);
    margin-bottom: var(--space_xl);
    line-height: var(--line_height_snug);
  }
  
  .hero-subtitle {
    font-size: var(--font_size_h6);
    margin-bottom: var(--space_2xl);
  }
  
  .hero-description {
    font-size: var(--font_size_body);
    margin-bottom: var(--space_2xl);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space_lg);
  }
  
  .hero--split {
    grid-template-columns: 1fr;
    gap: var(--space_2xl);
    min-height: auto;
  }
  
  .hero--split .hero-container {
    text-align: center;
    order: 2;
  }
  
  .hero--split .hero-image {
    order: 1;
  }
  
  /* SVGロゴのモバイル対応 */
  .hero--fallback-logo .hero-image {
    min-height: 250px;
  }
  
  .hero--fallback-logo .hero-image img {
    max-width: 150px;
    max-height: 90px;
  }
  
  .hero--compact {
    min-height: 50vh;
  }
  
  .hero--minimal {
    min-height: 40vh;
  }
  
  .hero-decoration--circle,
  .hero-decoration--triangle {
    display: none;
  }
  
  .hero-scroll {
    display: none;
  }
}