/* error404.css — 404 / テンプレート未該当ページの共通レイアウト
   ヘッダー/フッターの間に中央寄せで「ページが見つかりません」を表示する。
   MVは使わず、透かし英字「404」＋見出し＋本文＋ホームへ戻るボタンのみ。 */

.error404-page {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: var(--space-208) var(--space-40) var(--space-160);
  text-align: center;
}

.error404-page__watermark {
  margin: 0;
  font-family: var(--font-family-en);
  font-size: var(--font-size-watermark);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-none);
  letter-spacing: var(--letter-spacing-widest);
  background: var(--gradient-blue-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error404-page__title {
  margin: var(--space-32) 0 0;
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-text);
}

/* 見出し内の改行はSPのみ有効（PCは1行で表示） */
.error404-page__br {
  display: none;
}

.error404-page__text {
  margin: var(--space-24) auto 0;
  max-width: 40rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-loose);
  color: var(--color-text-body);
}

.error404-page__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-48);
}

/* 投稿があった場合の一覧（検索結果など、専用テンプレート未該当時のフォールバック） */
.error404-page__list {
  list-style: none;
  margin: var(--space-40) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  text-align: left;
}

.error404-page__list a {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-accent);
  text-decoration: underline;
}

/* SP（767px以下） */
@media (max-width: 767px) {
  .error404-page {
    padding: var(--space-160) var(--space-24) var(--space-120);
  }

  .error404-page__watermark {
    font-size: var(--font-size-large);
  }

  .error404-page__br {
    display: inline;
  }

  .error404-page__text {
    text-align: left;
  }
}
