/**
 * Hermès完全準拠 - HEROセクション
 * ネオプラズマ株式会社専用
 *
 * 参考: https://www.hermes.com/jp/ja/
 * 実装: Hermèsのヒーローセクション構造を完全再現
 */

/* ============================================
   HEROセクション - メインコンテナ
   ============================================ */

.hero-section {
  position: relative;
  width: 100%; /* 100vw → 100% に変更（スクロールバー分のはみ出し防止） */
  margin: 0 !important; /* 上下左右の空きをゼロに */
  padding: 0 !important;
  height: 100vh; /* フルスクリーン */
  min-height: 600px; /* 最小高さ確保 */
  overflow: hidden;
  background-color: #fcf7f1; /* Hermès背景色 */
  /* 完全にぴったり配置するための追加設定 */
  left: 0;
  right: 0;
  line-height: 0; /* 行間による微妙な空きを排除 */
}

/* タブレット */
@media (min-width: 768px) {
  .hero-section {
    min-height: 700px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 80vh; /* デスクトップは80vh */
    max-height: 900px; /* 最大高さ制限 */
  }
}

/* ============================================
   HEROセクション - 背景画像（上下左右ぴったり）
   ============================================ */

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.hero-background img,
.hero-background picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover; /* Hermès: 画像を常にフィット */
  object-position: center center; /* 中央配置 */
}

/* 画像の上にわずかなオーバーレイ（オプション） */
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 100%
  ); /* 微妙なグラデーション */
  z-index: 2;
}

/* ============================================
   HEROセクション - コンテンツオーバーレイ
   ============================================ */

.hero-content {
  position: relative;
  z-index: 10; /* 背景より前面 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 15px;
  text-align: center;
  color: #444444; /* Hermès テキストカラー */
  line-height: 1.6; /* 親のline-height: 0を上書き */
}

/* タブレット以上 */
@media (min-width: 768px) {
  .hero-content {
    padding: 0 24px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .hero-content {
    padding: 0 48px;
  }
}

/* ============================================
   HEROセクション - タイポグラフィ
   ============================================ */

/* メインコピー */
.hero-title {
  font-size: 32px;
  font-weight: 300; /* Hermès: 細身 */
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin: 0 0 24px 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #222222;
}

/* タブレット */
@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
    margin-bottom: 32px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
    margin-bottom: 40px;
  }
}

/* サブコピー */
.hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0 0 32px 0;
  max-width: 600px; /* 読みやすさのため */
  color: #444444;
}

/* タブレット */
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    max-width: 700px;
  }
}

/* ============================================
   HEROセクション - CTA（Call To Action）
   ============================================ */

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #444444;
  background-color: rgba(252, 247, 241, 0.9); /* Hermès背景色・半透明 */
  border: 1px solid #444444;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-cta:hover {
  background-color: #444444;
  color: #fcf7f1;
  border-color: #444444;
  transform: translateY(-2px); /* Hermès: 微妙な浮き上がり */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* タブレット以上 */
@media (min-width: 768px) {
  .hero-cta {
    padding: 16px 40px;
    font-size: 15px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .hero-cta {
    padding: 18px 48px;
    font-size: 16px;
  }
}

/* ============================================
   HEROセクション - 左下テキストエリア（Hermès準拠）
   ============================================ */

.hero-text-block {
  position: absolute;
  bottom: 20px;
  left: 15px;
  z-index: 10;
  max-width: 400px;
  color: #ffffff;
  line-height: 1.6; /* 親のline-height: 0を上書き */
}

@media (min-width: 768px) {
  .hero-text-block {
    bottom: 30px;
    left: 30px;
    max-width: 500px;
  }
}

@media (min-width: 1024px) {
  .hero-text-block {
    bottom: 40px;
    left: 40px;
    max-width: 600px;
  }
}

.hero-text-title {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

@media (min-width: 768px) {
  .hero-text-title {
    font-size: 26px;
    margin-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .hero-text-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
}

.hero-text-description {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .hero-text-description {
    font-size: 13px;
    margin-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .hero-text-description {
    font-size: 14px;
    margin-bottom: 18px;
  }
}

.hero-text-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.hero-text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.hero-text-link:hover {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .hero-text-link {
    font-size: 14px;
  }
}

/* ============================================
   HEROセクション - スクロールインジケーター
   ============================================ */

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #444444;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.8;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* モバイルでは非表示 */
@media (max-width: 767px) {
  .hero-scroll-indicator {
    display: none;
  }
}

/* ============================================
   HEROセクション - レスポンシブ画像
   ============================================ */

/* picture要素でのレスポンシブ対応 */
.hero-background picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-background picture img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================
   HEROセクション - アクセシビリティ
   ============================================ */

/* 背景画像の代替テキスト */
.hero-background img[alt] {
  /* 代替テキストが表示される場合のスタイル */
  font-size: 14px;
  color: #666666;
  padding: 20px;
  text-align: center;
}

/* Reduced Motion対応 */
@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    transition: none;
  }

  .hero-cta:hover {
    transform: none;
  }

  .hero-scroll-indicator {
    animation: none;
  }
}

/* ============================================
   HEROセクション - ロゴスタイル（NEO PLASMA）
   ============================================ */

.hero-logo-style {
  background-color: #fd780f; /* NEO PLASMAオレンジ */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  height: 80vh;
  max-height: 900px;
}

@media (min-width: 768px) {
  .hero-logo-style {
    min-height: 700px;
    height: 85vh;
    max-height: 1000px;
  }
}

@media (min-width: 1024px) {
  .hero-logo-style {
    min-height: 800px;
    height: 90vh;
    max-height: 1100px;
  }
}

.hero-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

.hero-logo-image {
  max-width: 300px;
  width: 70%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo-image {
    max-width: 400px;
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .hero-logo-image {
    max-width: 500px;
    width: 40%;
  }
}
