/* ===================================
   components.css — 複数ページで共有する部品
   Newsカード（news-item / news-card）/ 拠点タブ /
   モデル名カナ / スクロールアニメーション
   読み込み順: base → layout → components → ページ別
=================================== */


/* --- カードリスト（PC: 3カラムグリッド） --- */
.news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

/* --- カード --- */
.news-item {
  min-width: 0;
}

.news-item__link {
  display: flex;
  flex-direction: column;
  gap: 16px;             /* news-card__img の margin-bottom(16px)に統一 */
  color: #1c1818;
  transition: opacity var(--transition);
}

.news-item__link:hover {
  opacity: 0.75;
}

/* サムネイル */
.news-item__img {
  width: 100%;
  aspect-ratio: 16 / 10;   /* news-card__imgに統一 */
  overflow: hidden;
  border-radius: 2px;      /* news-card__imgに統一 */
  background: #f7f5f5;
}

.news-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* テキストエリア */
.news-item__text {
  display: flex;
  flex-direction: column;
  gap: 14px;             /* news-card__line の margin-bottom(14px)に統一 */
}

/* ヘッド（日付＋タグ） */
.news-item__head {
  display: flex;
  align-items: center;
  gap: 12px;             /* news-card__metaのgap(12px)に統一 */
  padding-bottom: 12px;  /* news-card__metaのmargin-bottom(12px)に統一 */
  border-bottom: 1px solid #e0e0e0;  /* news-card__lineの色に統一 */
}

.news-item__date {
  font-family: var(--font-en);   /* Montserrat（news-card__dateに統一） */
  font-size: 13px;
  font-weight: 500;
  color: #1c1818;
  white-space: nowrap;
}

/* 記事タイトル */
.news-item__desc {
  font-family: var(--font-ja);
  font-size: 15px;        /* news-card__titleに統一 */
  font-weight: 400;
  line-height: 1.6;       /* news-card__titleに統一 */
  color: #1c1818;
}

/* --- ニュースカード（news-card）--- */
.news-card {
  min-width: 0;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.news-card__link:hover .news-card__img img {
  transform: scale(1.04);
}

.news-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.news-card__date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: #1c1818;
  white-space: nowrap;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.news-card__tag {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  color: #1c1818;
  background: #f7f5f5;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  /* 日本語のタグ（さくら など）だけ背が高くならないよう高さを固定する */
  line-height: 1.3;
}

.news-card__line {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 14px;
}

.news-card__title {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 400;
  color: #1c1818;
  line-height: 1.6;
}

/* --- もっと見るボタン --- */
.news__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;             /* Figma: gap-[11px] */
  width: 336px;          /* Figma: w-[336px] */
  height: 54px;          /* Figma: h-[54px] */
  background: #1c1818;   /* Figma: Neutral/Gray 900 */
  color: #ffffff;
  border-radius: 30px;   /* Figma: pill型 */
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: background var(--transition), transform var(--transition);
}

.news__btn:hover {
  background: #3a3535;
  transform: translateY(-2px);
}

/* --- 拠点タイトル（Japan / Indonesia）Model List共通 --- */
.modellist-tab {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 4rem;
}

.modellist-tab__btn {
  display: inline-flex;
  align-items: center;
  flex: 1;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid var(--color-red);
  background: none;
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 600;
  color: var(--color-red);
  white-space: nowrap;
}

/* 拠点セクション（Japan / Indonesia）間の縦間隔 */
.modellist-location:not(:first-child) {
  margin-top: clamp(80px, 10vw, 120px);
}

@media (max-width: 1280px) and (min-width: 1025px) {

  .modellist-tab__btn {
    font-size: 40px;
    padding: 10px 28px;
  }
}


@media (max-width: 1024px) {

  .modellist-tab__btn {
    font-size: 32px;
    padding: 8px 24px;
  }
}


@media (max-width: 768px) {

  .modellist-tab__btn {
    font-size: 28px;
    padding: 8px 16px;
  }
  .modellist-location:not(:first-child) {
  margin-top: clamp(40px, 5vw, 60px);
}
}


/* モデル名のカタカナ読み（日本語表示時のみ、例：ALEIRA (アレイラ)） */
.model-name-kana {
  font-size: 0.45em;
  white-space: nowrap; /* 「(アレイラ)」の中では改行させず、折り返す時はカタカナ部分ごと次の行へ送る */
}

@media (max-width: 1024px) {

  /* タブレット: 2カラム */
  .news__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .news-card__img {
    aspect-ratio: 16 / 10;
  }
}


@media (max-width: 768px) {

  /* SP時：カタカナ読みは読みやすいサイズを保ち、幅を超える場合は丸ごと次の行へ折り返す */
  .model-name-kana {
    font-size: 0.6em;
    display: inline-block;
    white-space: nowrap;
  }

  /* SP: 1カラム */
  .news__list {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .news__btn {
    width: 100%;
    max-width: 336px;
  }
}


/* ===================================
   SCROLL ANIMATIONS
   IntersectionObserver で .is-visible 付与
=================================== */

/* 基本状態（非表示） */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--anim-delay, 0ms);
}

/* 表示状態 */
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

/* モーション軽減設定への対応 */

  .anim-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===================================
   HOVER SCALE（画像系のみ）
=================================== */

/* News サムネイル */
.news-item__img img {
  transition: transform 0.45s ease;
}
.news-item__link:hover .news-item__img img {
  transform: scale(1.03);
}
