/* ===================================
   MODEL LIST PAGE
   model/model.css
=================================== */

/* モデルリストページは白背景コンテンツのため
   ヘッダーは常に白背景を維持（is-light の透明を上書き）
   → Chrome と Safari の見た目を統一 */
.header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 一番上のみ影付き白背景 */
.header.is-top {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ヒーロー画像スクロール中はダーク表示を維持 */
.header:not(.is-light):not(.is-top) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* アクティブなナビリンク */
.header__nav-link--active {
  color: var(--color-red);
}

.header.is-light .header__nav-link--active {
  color: var(--color-red);
}

.header__nav-link--active::after {
  width: 100%;
  background: var(--color-red);
}


/* ===================================
   PAGE HERO（Newsと共通構造）
=================================== */
.page-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-top: var(--header-h);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
}

/* PC大画面：object-positionを中央寄りに調整 */
@media (min-width: 1169px) {
  .page-hero__bg img {
    object-position: 70% top;
  }
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
}

.page-hero__contents {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.page-hero__inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-hero__title {
  font-family: var(--font-en);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.page-hero__desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
}


/* ===================================
   MODEL LIST (PAGE)
=================================== */
.modellist-page {
  background: #ffffff;
}

.modellist-page__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* タイトルエリア */
.modellist-page__title-area {
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: #1c1818;
}

.modellist-page__title {
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: #1c1818;
}

.modellist-page__subtitle-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modellist-page__subtitle {
  font-family: var(--font-ja);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: #1c1818;
}

.modellist-page__desc {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1c1818;
}

/* モデルリスト */
.modellist-page__list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* モデルアイテム */
.modelpage-item {
  display: flex;
  gap: 100px;
  align-items: center;
}

.modelpage-item__img {
  width: 405px;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0eded;
}

.modelpage-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top;
  display: block;
}

.modelpage-item__text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #1c1818;
  flex: 1;
}

.modelpage-item__name {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #1c1818;
}

.modelpage-item__desc-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modelpage-item__subtitle {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #1c1818;
  max-width: 603px;
}

.modelpage-item__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 603px;
}

.modelpage-item__body p {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: #1c1818;
}

.modelpage-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 336px;
  height: 54px;
  background: #1c1818;
  color: #ffffff;
  border-radius: 30px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

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

/* 左レイアウト（テキスト左・画像右） */
.modelpage-item--left {
  flex-direction: row-reverse;
}

/* COMING SOON ボタン */
.modelpage-item__btn--soon {
  background: #807575;
  color: #f7f5f5;
  cursor: default;
  pointer-events: none;
}

.modelpage-item__btn--soon:hover {
  background: #807575;
  transform: none;
}


/* ===================================
   PAGINATION（Newsと共通）
=================================== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}

.news-pagination__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.news-pagination__arrow {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #1c1818;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  line-height: 1;
}

.news-pagination__arrow:hover:not(:disabled) {
  color: var(--color-red);
}

.news-pagination__arrow.is-disabled {
  color: #cccccc;
  cursor: default;
}

.news-pagination__num {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  color: #1c1818;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.news-pagination__num--active {
  background: #d1caca;
  color: #1c1818;
  font-weight: 700;
}

.news-pagination__num:not(.news-pagination__num--active):hover {
  background: #f7f5f5;
}

.news-pagination__dots {
  color: #1c1818;
  font-size: 15px;
  padding: 0 4px;
}


/* ===================================
   RESPONSIVE
=================================== */

/* --- Model List 中間帯（1025px〜1280px）--- */
@media (max-width: 1280px) and (min-width: 1025px) {
  .modellist-page__inner {
    padding: 80px 64px;
  }

  .modellist-page__subtitle {
    font-size: 40px;
    white-space: normal;
  }

  .modelpage-item {
    gap: 60px;
  }

  .modelpage-item__img {
    width: 370px;
    height: auto;
    aspect-ratio: 405 / 540;
    flex-shrink: 1;
  }

  .modelpage-item__name {
    font-size: 56px;
  }
}

@media (max-width: 1024px) {
  .page-heading__content {
    padding: 0 48px;
  }

  .page-heading__title {
    font-size: 72px;
  }

  /* ===== MODEL LIST タブレット ===== */
  .modellist-page__inner {
    padding: 80px 48px;
    gap: 60px;
  }

  /* gap/margin-top の代わりに padding-bottom を使用（Chrome 非互換回避） */
  .modellist-page__list {
    gap: 0;
  }

  .modelpage-item {
    padding-bottom: 80px;
  }

  .modelpage-item:last-child {
    padding-bottom: 0;
  }

  .modellist-page__title {
    font-size: 72px;
  }

  .modellist-page__subtitle {
    font-size: 36px;
    white-space: normal;
  }

  .modelpage-item {
    flex-direction: column;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
  }

  .modelpage-item__img {
    width: 100%;
    height: auto;
    overflow: visible;
    flex-shrink: unset;
  }

  .modelpage-item__img img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
    border-radius: 20px;
  }

  .modelpage-item__text {
    flex: none;
    width: 100%;
  }

  .modelpage-item__name {
    font-size: 56px;
  }
}

@media (max-width: 768px) {

  /* ページヒーロー：高さ240px・コンテンツ下寄せ */
  .page-hero {
    height: 240px;
  }

  .page-hero__overlay {
    background: rgba(0, 0, 0, 0.10);
  }

  .page-hero__contents {
    align-items: flex-end;
  }

  .page-hero__inner {
    padding: 0 28px 28px;
    gap: 12px;
  }

  .page-hero__title {
    font-size: 46px;
  }

  .page-hero__desc {
    font-size: 16px;
    font-weight: 400;
  }

  /* モデルリストセクション */
  .modellist-page__inner {
    padding: 64px 28px;
    gap: 60px;
    align-items: center;
  }

  /* SP: padding-bottom で確実に余白を確保 */
  .modelpage-item {
    padding-bottom: 60px;
  }

  .modelpage-item:last-child {
    padding-bottom: 0;
  }

  /* タイトルエリア */
  .modellist-page__title-area {
    width: 100%;
    gap: 20px;
  }

  .modellist-page__subtitle-wrap {
    gap: 16px;
  }

  .modellist-page__title {
    font-size: 56px;
  }

  .modellist-page__subtitle {
    font-size: 28px;
    white-space: normal;
  }

  /* モデルアイテム：縦積み */
  .modelpage-item {
    flex-direction: column;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
  }

  /* 画像：全幅・自然比率表示 */
  .modelpage-item__img {
    width: 100%;
    height: auto;
    overflow: visible;
    flex-shrink: unset;
  }

  .modelpage-item__img img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
    border-radius: 20px;
  }

  /* テキストエリア */
  .modelpage-item__text {
    gap: 0;
    flex: none;
    width: 100%;
  }

  .modelpage-item__name {
    font-size: 44px;
    margin-bottom: 10px;
  }

  .modelpage-item__desc-area {
    gap: 0;
    margin-bottom: 40px;
  }

  .modelpage-item__subtitle {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .modelpage-item__body {
    max-width: 100%;
  }

  .modelpage-item__body p {
    line-height: 2;
  }

  .modelpage-item__btn {
    width: 100%;
  }

  /* ページネーション：32px */
  .news-pagination__arrow {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .news-pagination__num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .news-pagination__dots {
    font-size: 14px;
  }
}

/* 中間SP幅（560px〜768px）：幅に応じてheroを段階的に高く */
@media (min-width: 560px) and (max-width: 768px) {
  .page-hero {
    height: calc(28.85vw + 158.5px); /* 560px→320px, 768px→380px */
  }
}
