/* =========================================================
   page-hero.css (Final Version)
   - L2: Authentic (没入型写真 / 白文字 / リード文付き)
   - L3: Minimal (白背景 / 挿絵あり / 知的ネイビー文字)
   - 共通: パンくず, 背景アニメーション
========================================================= */

/* -----------------------------------------------------------------
   1. Common Animations & Base
----------------------------------------------------------------- */
.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@keyframes bgZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* -----------------------------------------------------------------
   2. Level 2: Authentic Style (Category Top)
----------------------------------------------------------------- */
.hero-level2-auth {
  height: 480px; /* 黄金比の高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #05101c;
  color: #fff;
  position: relative;
}

.hero-level2-auth .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: bgZoom 20s infinite alternate linear;
}

.hero-level2-auth .hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(5, 16, 28, 0.3) 0%,
    rgba(5, 16, 28, 0.5) 60%,
    rgba(5, 16, 28, 0.9) 100%
  );
  z-index: 2;
  mix-blend-mode: multiply;
}

.hero-level2-auth .hero-container {
  position: relative;
  z-index: 3;
  width: min(92%, 1200px);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 10px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-level2-auth .hero-en {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-top: 24px;
}
.hero-level2-auth .hero-en::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 14px;
  background-color: #fff;
  opacity: 0.8;
}

.hero-level2-auth .hero-ja {
  font-family: var(--ff-serif, serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-level2-auth .hero-lead {
  font-family: var(--ff-serif, serif);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* -----------------------------------------------------------------
   3. Level 3: Minimal Journal Style (Detail Page)
   - 白背景 + 左テキスト(タイトル+リード) + 右写真
   - パンくずは外に出すため内包スタイルは削除
----------------------------------------------------------------- */
.page-hero-level3-minimal {
  position: relative;
  background-color: #fff;
  /* 上下の余白を広げてゆとりを持たせる */
  padding: 80px 0 80px;
  border-bottom: 1px solid #e9e9e9;
  overflow: hidden;
}

/* 背景アニメーションレイヤー (共通) */
.hero-bg-anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* 個別パーツ (Grid, Orb, Canvas) のCSSは変更なしのため省略 */

/* コンテンツレイアウト */
.page-hero-level3-minimal .container {
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: flex;
  align-items: center; /* 上下中央揃え */
  justify-content: space-between;
  gap: 60px; /* 写真とテキストの距離 */
}

/* 左側：テキストエリア */
.hero-content {
  flex: 1;
  padding-right: 20px; /* スマホでの詰まり防止 */
}

.hero-titles {
  margin-top: 0; /* マージンリセット */
}

/* 英語タイトル (シアン) */
.page-hero-level3-minimal .hero-en {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00a1e9;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* 日本語タイトル (ネイビー) */
.page-hero-level3-minimal .hero-ja {
  font-family: var(--ff-serif, serif);
  font-size: 2.4rem; /* 少し大きくして存在感を出す */
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1b4b8d;
  line-height: 1.2;
  margin: 0 0 24px 0; /* 下に余白 */

  /* 左のアクセントライン */
  border-left: 5px solid #00a1e9;
  padding-left: 24px;
}

/* ★追加: リード文 (Hero内) - 白背景用 */
.page-hero-level3-minimal .hero-lead {
  font-family: var(--ff-serif, serif); /* 明朝体 */
  font-size: 1.1rem; /* 少し大きめで読みやすく */
  line-height: 1.8;
  color: #333; /* 濃いグレー */
  margin-top: 0;
  margin-bottom: 4rem;
  padding-left: 29px; /* ボーダー分のインデントを合わせる (5px+24px) */
}

/* 右側：イメージエリア */
.hero-image {
  flex: 0 0 480px; /* 写真を少し大きく強調 */
  height: 320px; /* 黄金比に近いバランスへ */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* 影を広げて浮遊感アップ */
  background-color: #eee;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image:hover img {
  transform: scale(1.05);
}

/* --- Responsive (Mobile/Tablet) --- */
@media (max-width: 900px) {
  .page-hero-level3-minimal {
    padding: 60px 0;
  }

  .hero-inner {
    flex-direction: column; /* テキスト上、写真下 */
    align-items: flex-start;
    gap: 30px;
  }

  .hero-content {
    width: 100%;
    padding-right: 0;
  }

  /* スマホでは左のインデントを少し詰める */
  .page-hero-level3-minimal .hero-ja {
    font-size: 1.8rem;
    padding-left: 16px;
    border-left-width: 4px;
    margin-bottom: 16px;
  }

  .page-hero-level3-minimal .hero-lead {
    font-size: 0.95rem;
    padding-left: 0; /* スマホではインデント解除して広く使う */
  }

  .hero-image {
    width: 100%;
    flex: auto;
    height: 240px; /* スマホでの高さ */
  }
}

/* -----------------------------------------------------------------
   4. Breadcrumb Navigation
----------------------------------------------------------------- */
.breadcrumb-nav {
  background-color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e9e9e9;
}
.breadcrumb-wrapper {
  margin-bottom: 20px;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--ff-sans, sans-serif);
  font-size: 0.8rem;
  color: #999;
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  line-height: 1.5;
}
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: #ddd;
  font-size: 0.9em;
}
.breadcrumb-list li a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-list li a:hover {
  color: #00a1e9;
  text-decoration: underline;
}
.breadcrumb-list li:last-child {
  pointer-events: none;
  color: #999;
}

/* -----------------------------------------------------------------
   5. Responsive (Mobile/Tablet)
----------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Level 3: スマホレイアウト */
  .hero-inner {
    /* ★修正: column-reverse を column に変更（テキストが上、画像が下） */
    flex-direction: column;
    align-items: flex-start; /* 左揃え */
    gap: 20px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-image {
    width: 100%;
    flex: auto;
    height: 220px; /* スマホでの画像の高さ */
  }
}

@media (max-width: 768px) {
  /* Level 2 */
  .hero-level2-auth {
    height: 400px;
  }
  .hero-level2-auth .hero-ja {
    font-size: 1.8rem;
  }
  .hero-level2-auth .hero-lead {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .sp-hide {
    display: none;
  }

  /* Level 3 */
  .page-hero-level3-minimal {
    /* ★修正: 上部の余白を詰めて間延びを解消 */
    padding: 20px 0 40px;
  }

  /* タイトルサイズ調整 */
  .page-hero-level3-minimal .hero-ja {
    font-size: 1.6rem;
    padding-left: 14px;
    border-left-width: 3px;
  }

  .page-hero-level3-minimal .hero-en {
    margin-bottom: 5px;
  }

  /* パンくずの余白も少し詰める */
  .breadcrumb-wrapper {
    margin-bottom: 15px;
  }

  /* Breadcrumb 横スクロール対応 */
  .breadcrumb-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .breadcrumb-nav .container {
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
  }
}
