@charset "UTF-8";
/*
 * news 個別記事（2026 リニューアル版）
 * Figma: PC 7171:3398 / SP 7329:6654
 * 関連ニュースのリストは archive-news.css の .news-list--archive / .news-item を再利用（依存に追加済）。
 * 自己完結（_base.css のトークンに依存）。SP は本ファイル末尾の @media で完結。
 */

.is-news-single-2026 {
  background: var(--color-white);
}

/* 本文中の広い要素やセクションがレイアウトビューポートを viewport より広げ(≈410px)、
   その結果 100vw / 100% が 410px に評価され、SP で本文右パディングが画面外に出ていた。
   個別ニュースページ限定で html/body の横オーバーフローを clip し、ビューポート幅に固定する。
   （single-news.css は is_singular('news') 時のみ読み込まれるため他ページに影響しない）*/
/* 個別ニュースページのみ読み込まれる CSS。html/body の横オーバーフローを clip して
   レイアウト幅を viewport に固定（SP で本文右端が画面外に出るのを防ぐ）。 */
html,
body.is-news-single-2026 {
  overflow-x: clip;
  max-width: 100%;
}

/* ============ パンくず（shohin-breadcrumb と同等） ============ */
.news-single-breadcrumb {
  width: 100%;
  padding: 16px 80px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}
.news-single-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-jp-base);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.news-single-breadcrumb__list a {
  color: var(--color-text);
  text-decoration: none;
}
.news-single-breadcrumb__list a:hover {
  text-decoration: underline;
}
.news-single-breadcrumb__sep,
.news-single-breadcrumb__current {
  color: var(--color-text-sub);
}
.news-single-breadcrumb__current {
  max-width: 60ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 記事本体 ============ */
.news-single {
  width: 100%;
  background: var(--color-white);
}
.news-single__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 0;
}

/* ヒーロー画像（アイキャッチ時のみ・全幅 480px） */
.news-single__hero {
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.news-single__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストカラム（Figma: 左 48px / 幅 764px）。head=日付+タイトル / body=本文+タグ に分割。 */
.news-single__head,
.news-single__body {
  width: 100%;
  max-width: 812px;
  box-sizing: border-box;
  padding-left: 48px;
}
.news-single__head {
  padding-top: 52px;
}

/* 日付 + 種類バッジ */
.news-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.news-single__date {
  font-family: var(--font-jp-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 3px;
  color: var(--color-text-sub);
}
.news-single__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 13px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-jp-base);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* タイトル */
.news-single .news-single__title {
  margin: 24px 0 0;
  font-family: var(--font-jp-base);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.625;
  letter-spacing: 4px;
  color: var(--color-text);
}

/* 区切り線 */
.news-single__divider {
  width: 100%;
  height: 1px;
  margin: 32px 0 0;
  background: rgba(76, 76, 76, 0.15);
}
/* 本文とタグの間の点線（Figma参考・ユーザー指示 2026-05-31）*/
.news-single__divider--dotted {
  height: 0;
  margin: 40px 0 0;
  background: none;
}

/* 本文 */
.news-single__content {
  margin: 36px 0 0;
  font-family: var(--font-jp-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 1px;
  color: var(--color-text);
}
.news-single__content > * {
  margin: 0 0 20px;
}
.news-single__content > *:last-child {
  margin-bottom: 0;
}
.news-single__content a {
  color: var(--color-accent);
  text-decoration: underline;
}
.news-single__content img {
  max-width: 100%;
  height: auto;
}

/* 種類タグ pill 列 */
.news-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;   /* 点線からの間隔 */
  padding: 0;
}
.news-single__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(76, 76, 76, 0.3);
  font-family: var(--font-jp-base);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 1px;
  color: var(--color-text-sub);
}

/* ============ 前後ニュースナビ（PC） ============ */
.news-single-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 40px 0 0;
  padding: 40px 48px 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(76, 76, 76, 0.15);
}
.news-single-nav__side {
  min-height: 32px;
  display: flex;
  align-items: center;
}
.news-single-nav__side--next {
  margin-left: auto;
}
.news-single-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-jp-base);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  transition: opacity 0.2s ease;
}
.news-single-nav__link:hover {
  opacity: 0.7;
}
.news-single-nav__icon {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(76, 76, 76, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}
.news-single-nav__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 12px;
  transform: translate(-50%, -50%);
  background-color: var(--color-text);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20' fill='none'><path d='M1.5 1.5L8 10l-6.5 8.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20' fill='none'><path d='M1.5 1.5L8 10l-6.5 8.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.news-single-nav__icon--prev::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

/* 一覧へ戻る（SP のみ表示） */
.news-single__back {
  display: none;
}

/* ============ 関連ニュース（PC） ============ */
.news-related {
  width: 100%;
  background: var(--color-white);
  padding: 80px 80px 0;
  box-sizing: border-box;
}
.news-related__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.news-related__heading {
  margin: 0 0 24px;
  font-family: var(--font-jp-base);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 2px;
  color: var(--color-text);
}

/* ============================================================
   SP（max-width: 797px）— Figma 7329:6654（シンプル版）
   日付+種類 / タイトル / 本文 / 一覧へ戻る のみ。
   パンくず・区切り線・タグ・前後ナビ・関連ニュースは非表示。
   ============================================================ */
@media (max-width: 797px) {
  .news-single-breadcrumb {
    display: none;
  }
  /* ページ全体（footer CTA カード等）が viewport より広い canvas(≈410px)を作り、
     その結果 main 配下の本文の右パディングが画面外に押し出されていた。
     body を overflow-x: clip で viewport 幅に閉じ込め、% 計算を viewport 基準に戻す。
     （per要素の 100vw キャップでは .site-main>* の 100%!important に勝てないため body 側で対処）*/
  body.is-news-single-2026 {
    overflow-x: clip;
  }
  /* SP は flex column + order で「日付+タイトル(head) → ヒーロー → 本文(body) → 一覧へ戻る」に並べ替え。
     align-items: stretch で各子を viewport 幅に固定（flex-start だと子が max-content 幅(≈410px canvas)に
     広がり 5% パディングの右が画面外に出るため）。body の overflow-x:clip も併用（ユーザー指示 2026-05-31）。 */
  .news-single__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    overflow-x: hidden;
    padding: 32px 0 0;
  }
  .news-single__head { order: 1; max-width: 100%; padding: 0 5%; }
  .news-single__hero { order: 2; height: auto; aspect-ratio: 16 / 10; margin-top: 24px; }
  .news-single__body { order: 3; max-width: 100%; padding: 0 5%; }
  .news-single__back { order: 4; }
  .news-single__meta {
    gap: 12px;
  }
  .news-single__date {
    font-size: 11px;
    letter-spacing: 0.8px;
  }
  .news-single__badge {
    height: 20px;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 1.28px;
  }
  .news-single .news-single__title {
    margin-top: 12px;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 2px;
  }
  .news-single__divider,
  .news-single__tags,
  .news-single-nav,
  .news-related {
    display: none;
  }
  .news-single__content {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.5px;
  }
  /* 一覧へ戻る（< back to list） */
  .news-single__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 40px 5% 0;
    font-family: var(--font-jp-base);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--color-text);
    text-decoration: none;
  }
  .news-single__back-icon {
    position: relative;
    width: 6px;
    height: 12px;
    flex-shrink: 0;
    background-color: var(--color-text);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20' fill='none'><path d='M8.5 1.5L2 10l6.5 8.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20' fill='none'><path d='M8.5 1.5L2 10l6.5 8.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  }
}
