/* =========================================
   1. FRONT HERO（左：メイン / 右：最新4件）
   ※ small-card 系の細かいスタイルは components.css 側を正とする
========================================= */

/* コンテナ：ヘッダーのレールに揃える */
.hero-wrapper {
  max-width: 1120px;
  margin: 2.2rem auto 3rem;
  padding: 0 1.25rem;
}

/* 2カラムグリッド：左ワイド、右ナロー */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

/* -----------------------------------------
   LEFT: HERO Main Article
----------------------------------------- */

.hero-main {
  position: relative;
  border-radius: var(--jp-radius-lg);
  overflow: hidden;
  background-color: #020617; /* ほぼ黒のベース */
  box-shadow: var(--jp-shadow-strong);
}

/* 画像コンテナ */
.hero-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

/* 実画像：わずかに拡大しておき、ホバーでスッと動く */
.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transform-origin: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* 暗めのオーバーレイレイヤー（文字を載せるための“ガラス”） */
.hero-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(148,163,184,0.28), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(37,99,235,0.38), transparent 60%),
    linear-gradient(to bottom, rgba(15,23,42,0.1), rgba(15,23,42,0.68));
  mix-blend-mode: multiply;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

/* カード全体ホバー時：動きは極小 */
.hero-main:hover .hero-main-image img {
  transform: scale(1.04);
  filter: brightness(1.03);
}
.hero-main:hover .hero-main-image::after {
  opacity: 0.9;
}

/* オーバーレイ（左下に情報ブロック） */
.hero-main-content {
  position: absolute;
  inset-inline: 1.8rem;
  bottom: 1.7rem;
  color: #f9fafb;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  max-width: 72%;
  pointer-events: none; /* テキスト部分はクリック判定を邪魔しない */
}

/* ラベル：細めの大文字（セクションやタグ用） */
.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(191,219,254,0.6);
  background: rgba(15,23,42,0.35);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
  color: #dbeafe;
}

/* タイトル：行間を詰め、行頭をきれいに */
.hero-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

/* メタ情報：日付＋カテゴリなど */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.8rem;
  opacity: 0.96;
}

/* 日付はミニマルに */
.hero-meta time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* カテゴリは細いピルで */
.hero-meta .hero-meta-category {
  padding: 0.08rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 0.72rem;
}

/* 抜粋：2〜3行程度に抑える */
.hero-excerpt {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 34rem;
  color: #e5e7eb;
}

/* CTA ボタン：メタル調のカプセル（必要なら .hero-btn を中に置く） */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.42rem 1.15rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #f9fafb, #d1d5db);
  color: #020617;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(15,23,42,0.35);
  pointer-events: auto; /* ボタンはクリックできるように戻す */
}

.hero-btn:hover {
  opacity: 1;
  background: radial-gradient(circle at 0% 0%, #ffffff, #d4d4d8);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(15,23,42,0.4);
}

/* -----------------------------------------
   RIGHT: Latest Articles (small-card 列)
----------------------------------------- */

.hero-right {
  background: var(--jp-color-surface);
  padding: 1rem 1.2rem 1.15rem;
  border-radius: var(--jp-radius-md);
  box-shadow: var(--jp-shadow-card);
  border: 1px solid rgba(148,163,184,0.18);
}

.hero-right-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  color: var(--jp-color-text-sub);
}

/* small-card 自体のスタイルは components.css 側を使用 */
.hero-right .small-card:last-child {
  margin-bottom: 0;
}

/* =========================================
   1-2. HERO Responsive
========================================= */

@media (max-width: 960px) {

  .hero-wrapper {
    margin: 1.6rem auto 2.4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hero-main {
    border-radius: var(--jp-radius-md);
  }

  .hero-main-image {
    aspect-ratio: 16 / 9;
  }

  /* スマホではオーバーレイではなく、画像の下にテキストを展開 */
  .hero-main-content {
    position: static;
    padding: 1rem 0.2rem 0.1rem;
    max-width: 100%;
    text-shadow: none;
    color: var(--jp-color-text-main);
  }

  .hero-main-image::after {
    opacity: 0.4; /* 背景はうっすら暗くする程度に */
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-excerpt {
    font-size: 0.9rem;
  }

  .hero-btn {
    box-shadow: none;
  }
}

/* =========================================
   2. FRONT NEWS BLOCKS
   - 新着 ＋ 国内／世界／インタビュー／コラム／最新研究
   - Porsche テイスト：低コントラスト＋精密ヘッダー
========================================= */

/* セクション全体（新旧クラス両方に対応） */
.front-news-block,
.front-news-section {
  max-width: 1120px;
  margin: 0 auto 2.6rem;
  padding: 0 1.25rem 0;
}

/* 2つ目以降のブロックは、上に細い仕切りライン */
.front-news-block + .front-news-block,
.front-news-section + .front-news-section {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 1.6rem;
}

/* -----------------------------------------
   セクションヘッダー
   （eyebrow + 日本語タイトル を一塊で左揃え）
----------------------------------------- */

.front-news-block-header {
  display: flex;
  flex-direction: column;      /* 上：eyebrow / 下：title */
  align-items: flex-start;
  gap: 0.15rem;
  margin: 1.6rem 0 1.1rem;
}

/* 小さな英語ラベル（eyebrow） */
.front-news-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jp-color-text-muted);
  margin: 0;
}

/* タイトル（日本語側） */
.front-news-title {
  position: relative;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--jp-color-text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* 左側のインジケータライン（細いグラデのバー） */
.front-news-title::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--jp-color-primary),
    var(--jp-color-accent)
  );
}

/* スマホでは少しだけ縮めて繊細に */
@media (max-width: 768px) {
  .front-news-block-header {
    margin: 1.4rem 0 0.9rem;
    gap: 0.1rem;
  }

  .front-news-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .front-news-title {
    font-size: 1.05rem;
  }
}

/* 右側に「もっと見る」などを置くとき用（まだ使っていなければ無視してOK） */
.front-news-header-actions {
  font-size: 0.8rem;
  color: var(--jp-color-text-sub);
  white-space: nowrap;
}

.front-news-header-actions a {
  color: inherit;
  text-decoration: none;
}

.front-news-header-actions a:hover {
  text-decoration: underline;
}

/* -----------------------------------------
   ニュースカード（中身）
   - レイアウト自体は front-page.css 側で制御
----------------------------------------- */

/* news-grid--front は「フロント専用カード」のトーンを少しだけ変える */
.front-news-block .news-grid--front {
  row-gap: 1.4rem;
  column-gap: 1.6rem;
}

/* カード本体：シャドウと角を少しだけ整える */
.front-news-block .news-item {
  border-radius: var(--jp-radius-md);
  box-shadow: var(--jp-shadow-card);
  overflow: hidden;
  background: var(--jp-color-surface);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background-color 0.18s ease-out;
}

.front-news-block .news-link {
  height: 100%;
}

/* ホバー：1〜2mmだけ浮くイメージ */
.front-news-block .news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--jp-shadow-strong);
  background-color: #ffffff;
}

/* タイトル・メタのマイクロ調整（card-news の上に軽く乗せるイメージ） */
.front-news-block .news-meta {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jp-color-text-muted);
}

.front-news-block .news-title {
  font-size: 0.98rem;
  line-height: 1.45;
}

.front-news-block .news-excerpt {
  font-size: 0.84rem;
}

/* ホバー時はタイトルだけほんの少しだけ強調 */
.front-news-block .news-link:hover .news-title {
  color: var(--jp-color-primary);
}



/* -----------------------------------------
   Responsive
----------------------------------------- */

@media (max-width: 960px) {

  .front-news-block,
  .front-news-section {
    margin-bottom: 2.2rem;
    padding-inline: 1.25rem;
  }


  .front-news-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  /* -----------------------------------------
     PRエリア全体に常にINFORMATIONピルと区切りを表示
  ----------------------------------------- */

  .front-main-right {
    position: relative;
    margin-top: 3rem;       /* NEWSからの距離 */
    padding-top: 1.8rem;    /* ピルとラインのための内側余白 */
  }

  /* グラデーションの区切りライン */
  .front-main-right::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.4rem;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(148,163,184,0.9),
      transparent
    );
    border-radius: 999px;
  }

  /* 中央のINFORMATIONピル */
  .front-main-right::after {
    content: "INFORMATION";
    position: absolute;
    left: 50%;
    top: -0.55rem;
    transform: translateX(-50%);
    padding: 0.1rem 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jp-color-text-muted);
    background-color: var(--jp-color-surface);
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.45);
  }

  /* ウィジェット内タイトルの制御（1個目だけ表示） */
  .front-main-right .promo-widget-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
    color: var(--jp-color-text-sub);
  }

  .front-main-right .widget + .widget .promo-widget-title {
    display: none;
  }



/* =========================================
   4. Archive Grid（一覧ページ共通グリッド）
========================================= */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

/* アーカイブのカードも同じ「精密な浮遊感」に寄せる */
.archive-grid .news-item,
.archive-grid .card {
  border-radius: var(--jp-radius-md);
  box-shadow: var(--jp-shadow-card);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.archive-grid .news-item:hover,
.archive-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--jp-shadow-strong);
}


/* =========================================
   HERO 固定比率コンテナ（800×500 相当）
========================================= */

/* ====== 全ページで fixed-ratio を完全無効化 ====== */
.fixed-ratio-hero,
.fixed-ratio-thumb {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
