/* ============================================================
   CULTURE HERO — カルチャーページ ヒーロー（C案: タイポ主役・ミニマル型）
   「合う会社か、自分で決めてくれ。」を最大視覚要素に。
   装飾CULTUREをタイトル背面に薄く重ね、写真は右下の添え物に。
   ベース: オフホワイト単色背景 / 下端オレンジアクセントライン
   改訂: 2026/04/19 — C案採用
   設計書: giovanni-memory/projects/recruitment-hp/docs/memo/culture-hero_C案_設計書.md
   ============================================================ */

/* ============================================================
   Section Base
   ============================================================ */
.culture-hero {
  position: relative;
  z-index: var(--z-content, 10);
  min-height: max(100vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-bg-section, #F7F8FA);
  /* 上部: ナビゲーションとの余白を -40px 圧縮（64→24）／下部: 120px 維持 */
  padding: calc(var(--s-header-h, 80px) + 24px) 0 120px;
}

/* ============================================================
   背景装飾（CULTUREタイポ・タイトル背面）
   フォント読み込み完了後にふんわりフェードイン
   ============================================================ */
.culture-hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(32px, 4vw, 80px);
  overflow: hidden;
  /* fontsready まで非表示（フォントスワップによる縮み防止） */
  opacity: 0;
  transition: opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

/* fonts-loaded が html に付与されたらふんわり表示 */
html.fonts-loaded .culture-hero__deco {
  opacity: 1;
}

.culture-hero__deco-text {
  font-family: var(--f-heading-en, 'Barlow Condensed', sans-serif);
  font-size: clamp(13rem, 23vw, 26rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  /* opacityを少し下げる（6% → 4.5%）：メインコピーと被る部分の視認性優先 */
  color: rgba(30, 58, 95, 0.045);
}

/* ============================================================
   Inner Grid
   ============================================================ */
.culture-hero__inner {
  position: relative;
  z-index: 2;
  /* 左はコンテナ位置（通常 max 1200px の左端）、右は画面端まで広げて写真を大きく見せる */
  max-width: none;
  width: 100%;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(var(--s-gutter, 32px), calc((100vw - var(--s-container, 1200px)) / 2 + var(--s-gutter, 32px)));
  padding-right: 0;
  display: grid;
  /* 左:テキスト固定640 / 右:残り全部を写真に割り当て（被り防止・確実な2カラム） */
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  /* テキストと写真の間の余白を広めに確保（くっつき防止） */
  gap: clamp(48px, 6vw, 112px);
  align-items: center;
}

/* ============================================================
   左: コピー主役エリア
   ============================================================ */
.culture-hero__main {
  /* 560 → 640px に拡大（指示通り） */
  max-width: 640px;
}

/* ---- eyebrow ---- */
.culture-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-label, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-navy, #1E3A5F);
  margin: 0 0 40px;
}

.culture-hero__eyebrow-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--c-orange, #E8672A);
  flex-shrink: 0;
}

/* ---- タイトル（主役・大型明朝） ---- */
.culture-hero__title {
  font-family: var(--f-heading-ja, 'Noto Serif JP', serif);
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: 700;
  /* line-height: 1.2〜1.3 に調整（詰めて視線安定） */
  line-height: 1.25;
  color: var(--c-navy, #1E3A5F);
  /* メインコピーとサブコピーの間に24px余白 */
  margin: 0 0 24px;
  /* letter-spacing やや詰める */
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.culture-hero__title-line {
  display: block;
  white-space: nowrap; /* 2行化のため折り返し禁止（モバイルでは解除） */
}

/* 2行目「自分で決めてくれ。」にオレンジ短線アクセント */
.culture-hero__title-line--accent {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-bottom: 0.18em;
}

.culture-hero__title-line--accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--c-orange, #E8672A);
  border-radius: 2px;
}

/* ---- サブコピー（新規・中サイズ・2行） ----
   メインコピーの40〜50%サイズ。視認性を保ちつつ理解性を向上させる主文。 */
.culture-hero__lead {
  font-family: var(--f-body, 'Noto Sans JP', sans-serif);
  /* メイン 2.4〜4.8rem の約45%（1.1〜2.1rem）を目安に設定 */
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-navy, #1E3A5F);
  margin: 0 0 32px;
  letter-spacing: 0.02em;
  /* 親 640px いっぱいまで使って不自然な折返しを回避 */
  max-width: none;
}

/* ---- 補足コピー（既存subtitleを役割変更・小・薄め） ---- */
.culture-hero__subtitle {
  font-family: var(--f-body, 'Noto Sans JP', sans-serif);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.8;
  /* サブとの階層差をつけるため少し薄く */
  color: #777777;
  margin: 0 0 48px;
  letter-spacing: 0.04em;
  max-width: none;
}

/* ============================================================
   CTA
   ============================================================ */
.culture-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  /* 上余白を +16px 増やす（補足コピーとの間に呼吸） */
  margin-top: 16px;
}

.culture-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--c-orange, #E8672A);
  color: #FFFFFF;
  font-family: var(--f-body, 'Noto Sans JP', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  /* 横幅を +20px 拡大（48→58、左右+10pxずつ） */
  padding: 20px 58px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(232, 103, 42, 0.24);
  transition:
    background var(--t-base, 0.4s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
    transform var(--t-base, 0.4s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow var(--t-base, 0.4s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.culture-hero__btn:hover {
  background: var(--c-orange-deep, #D4551A);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232, 103, 42, 0.36);
}

.culture-hero__btn-arrow {
  font-size: 1.15em;
  transition: transform var(--t-base, 0.4s) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.culture-hero__btn:hover .culture-hero__btn-arrow {
  transform: translateX(5px);
}

.culture-hero__cta-note {
  font-family: var(--f-body, 'Noto Sans JP', sans-serif);
  font-size: 0.82rem;
  color: var(--c-text-muted, #999999);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ============================================================
   右下: 写真カード（添え物・レイヤード型）
   写真の背後にネイビーブロックを右下16pxズラして配置
   ============================================================ */
.culture-hero__photo {
  /* 右カラム内・右端寄せ。画面右端から clamp(56〜120px) の余白を確保してサイズも縮小 */
  position: relative;
  width: 100%;
  max-width: 780px;
  justify-self: end;
  margin-right: clamp(56px, 5vw, 120px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 背景ネイビーブロック（写真と同サイズで右下16pxズレ） */
.culture-hero__photo-backdrop {
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--c-navy, #1E3A5F) 0%, var(--c-navy-deep, #0D1B2E) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}

.culture-hero__photo-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  /* 影は軽量化（背景ブロックと重なるため控えめに） */
  box-shadow:
    0 12px 28px -14px rgba(13, 27, 46, 0.22),
    0 4px 10px -4px rgba(13, 27, 46, 0.10);
}

.culture-hero__photo-caption {
  position: relative;
  z-index: 3;
}

.culture-hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 1.2s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.culture-hero__photo:hover .culture-hero__photo-img {
  transform: scale(1.03);
}

/* 写真下のキャプション（旧「雑誌風タグ」） */
.culture-hero__photo-caption {
  font-family: var(--f-label, 'Inter', sans-serif);
  /* サイズをやや小さく（0.7rem → 90% = 0.63rem） */
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-muted, #999999);
  font-weight: 500;
  margin: 0;
  align-self: flex-start;
  padding-left: 16px; /* 背景ブロックのズレ分だけキャプションも右寄り */
}

/* ============================================================
   下端アクセントライン（オレンジ）
   ============================================================ */
.culture-hero__accent-line {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 120px));
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--c-orange, #E8672A) 30%,
    var(--c-orange, #E8672A) 70%,
    transparent 100%
  );
  opacity: 0.6;
  z-index: 2;
}

/* ============================================================
   スクロールインジケーター
   ============================================================ */
.culture-hero__scroll {
  position: absolute;
  right: max(24px, calc(50vw - var(--s-container, 1200px) / 2 + 16px));
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: culture-hero-scroll 2s ease-in-out infinite;
}

@keyframes culture-hero-scroll {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.culture-hero__scroll-text {
  font-family: var(--f-label, 'Inter', sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-muted, #999999);
}

.culture-hero__scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--c-text-muted, #999999), transparent);
  animation: culture-hero-scroll-line 2s ease-in-out infinite;
}

@keyframes culture-hero-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   Reduced Motion 対応
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .culture-hero__scroll,
  .culture-hero__scroll-line,
  .culture-hero__photo-img,
  .culture-hero__btn,
  .culture-hero__btn-arrow,
  .culture-hero__deco {
    animation: none !important;
    transition: none !important;
  }
  /* モーション無効環境では fonts-loaded 待たずに即表示 */
  .culture-hero__deco {
    opacity: 1 !important;
  }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .culture-hero__inner {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 40px;
    padding-left: var(--s-gutter, 32px);
    padding-right: 0;
  }

  .culture-hero__main {
    max-width: 520px;
  }

  .culture-hero__title {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  }

  .culture-hero__deco-text {
    font-size: clamp(11rem, 20vw, 20rem);
  }

  .culture-hero__photo {
    max-width: 560px;
    margin-right: 24px;
  }
}

@media (max-width: 860px) {
  .culture-hero {
    min-height: auto;
    padding: calc(var(--s-header-h, 80px) + 40px) 0 80px;
  }

  .culture-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    padding-left: var(--s-gutter, 32px);
    padding-right: var(--s-gutter, 32px);
  }

  .culture-hero__main {
    order: 1;
    max-width: 100%;
  }

  .culture-hero__photo {
    /* モバイル: position:relative維持（backdrop基準を photo に保つ） */
    position: relative;
    transform: none;
    order: 2;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    right: auto;
    top: auto;
    margin-right: 0;
  }

  .culture-hero__photo-frame {
    aspect-ratio: 3 / 2;
    max-height: 300px;
  }

  /* モバイル: 背景ブロックも写真と連動（オフセット縮小） */
  .culture-hero__photo-backdrop {
    top: 12px;
    left: 12px;
    right: -12px;
    max-height: 300px;
  }

  .culture-hero__photo-caption {
    padding-left: 12px;
  }

  .culture-hero__title {
    font-size: clamp(1.9rem, 7.6vw, 2.8rem);
    line-height: 1.3;
    margin-bottom: 20px;
  }

  /* モバイルでは nowrap を解除して自然改行に戻す */
  .culture-hero__title-line {
    white-space: normal;
  }

  .culture-hero__deco-text {
    font-size: clamp(7rem, 24vw, 11rem);
    color: rgba(30, 58, 95, 0.05);
  }

  .culture-hero__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .culture-hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 36px;
  }

  .culture-hero__scroll {
    display: none;
  }

  .culture-hero__accent-line {
    bottom: 24px;
    width: min(280px, calc(100vw - 60px));
  }
}

@media (max-width: 480px) {
  .culture-hero {
    padding: calc(var(--s-header-h, 80px) + 32px) 0 64px;
  }

  .culture-hero__inner {
    padding: 0 20px;
  }

  .culture-hero__eyebrow {
    font-size: 0.7rem;
    gap: 12px;
    margin-bottom: 24px;
  }

  .culture-hero__eyebrow-line {
    width: 32px;
  }

  .culture-hero__title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    margin-bottom: 24px;
  }

  .culture-hero__title-line--accent::after {
    width: 48px;
    height: 3px;
  }

  .culture-hero__btn {
    width: 100%;
    justify-content: center;
    /* モバイルは全幅のため左右padding過剰不要 */
    padding: 16px 24px;
    font-size: 0.95rem;
  }

  .culture-hero__photo-frame {
    aspect-ratio: 3 / 2;
  }
}
