/* =====================================================
   INTERESTING INNOVATION - NEWS DETAIL（お知らせ詳細）
   style.css → sub.css の後に読み込む
   基準幅: PC 1920 / TB 768 / SP 393（1rem = 基準幅で 10px）
   ===================================================== */

/* 見出し帯は .page-head--thin（帯 144px / 筆のかすれのみ）。ヘッダー・フッターはホームと同じ（style.css） */

/* ---------- 記事（Figma Frame 756: 1025 幅 中央 @y=470） ---------- */
.nd { width: 102.5rem; margin: 26.1rem auto 0; }
.nd__label { display: flex; align-items: center; gap: 1.3rem; }
.nd__en { font-size: 4rem; font-weight: 500; line-height: 1; letter-spacing: -.05em; color: var(--text); } /* Figma: baseStyle/#21 */
.nd__ja { padding-top: .6rem; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.nd__head { margin-top: 2.5rem; }
.nd__title { margin: 0; font-size: 3.2rem; font-weight: 500; line-height: 1.6; }
.nd__meta { display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; margin-top: 3.2rem; }
.nd__cats { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.nd__cats a { display: block; padding: .8rem 2.4rem; background: #fff; border-radius: 10rem; font-size: 1.2rem; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .3s, color .3s; }
.nd__cats a:hover { background: var(--orange); color: #fff; }
.nd__date { flex: none; font-size: 1.6rem; font-weight: 400; letter-spacing: .05em; line-height: 1; }
.nd__hero { width: 100%; aspect-ratio: 1025 / 685; margin-top: 6.4rem; background: var(--black); border-radius: .5rem; overflow: hidden; }
.nd__hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nd__body { margin-top: 6.4rem; }
/* 本文のリンク: オレンジ + hover で下線が左から伸びる（長い URL は折り返す） */
.nd__sec a { color: var(--orange); overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
.nd__sec a:hover { background-size: 100% 1px; }
.nd__sec + .nd__sec { margin-top: 6.4rem; }
.nd__h2 { margin: 0; padding: .8rem 0 .8rem 3.2rem; border-left: .8rem solid var(--orange); font-size: 3.2rem; font-weight: 500; line-height: 1.5; color: var(--text); }
.nd__p { margin: 4rem 0 0; font-size: 1.6rem; font-weight: 400; line-height: 2.4; color: var(--text); }
.nd__p + .nd__p { margin-top: 2.4rem; }

/* 前後の記事・一覧へ（オレンジのピル 240x64） */
.nd__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 9.6rem; }
.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3.2rem; width: 24rem; height: 6.4rem; padding: 0 4rem; background: var(--orange); color: #fff; border-radius: 10rem; font-size: 2rem; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .3s; }
.nd-btn:hover { background: var(--black); }
.nd-btn__arrow { flex: none; width: 3.2rem; height: 1rem; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nd-btn--prev:hover .nd-btn__arrow { transform: translateX(-.6rem); }
.nd-btn--next:hover .nd-btn__arrow { transform: translateX(.6rem); }

/* ---------- 最新のお知らせ ---------- */
.nd-latest { width: 102.5rem; margin: 24rem auto 0; padding: 0; } /* 本文（.nd）と同じ幅 */
.nd-latest__head { display: flex; align-items: center; gap: 2.4rem; }
.nd-latest__en { font-size: 4.8rem; font-weight: 700; line-height: 1; color: var(--orange); }
.nd-latest__ja { font-size: 2rem; font-weight: 600; line-height: 1; }
.nd-latest .news-cards { margin-top: 7.1rem; }

/* 一覧と同じ白カード（css/news.css と同じ定義） */
.news-cards { display: flex; flex-direction: column; gap: 1.6rem; width: auto; margin: 0; padding: 0; list-style: none; border-bottom: 0; }
.news-cards .news-item { border-top: 0; background: #fff; border-radius: .3rem; }
.news-cards .news-item[hidden] { display: none; }
.news-cards .news-item a { height: 8rem; padding: 0 2.4rem 0 3.2rem; gap: 3.2rem; }
.news-cards .news-item__cat { width: auto; min-width: 6rem; }
.news-cards .news-item__title { font-size: 1.6rem; }
.news-cards .news-item__arrow { width: 3.2rem; height: 3.2rem; }
.news-cards.reveal { opacity: 1; transform: none; filter: none; }
.news-cards.reveal .news-item { opacity: 0; transform: translateY(3rem); filter: blur(.4rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease; transition-delay: var(--d, 0s); }
.news-cards.reveal.is-visible .news-item { opacity: 1; transform: none; filter: none; }

/* =====================================================
   TB / SP 共通（〜1199px）
   ===================================================== */
@media (max-width: 1199px) {
  .page-news-detail .page-head--thin { height: var(--band); padding: 0; } /* 帯の中に文字が無いので帯の高さを確保 */

  .nd { width: auto; margin: 3.2rem var(--pad-x) 0; }
  .nd__label { gap: .8rem; }
  .nd__en { font-size: 2.8rem; }
  .nd__ja { padding-top: .4rem; font-size: 1.2rem; }
  .nd__head { margin-top: 1.6rem; }
  .nd__title { font-size: 2rem; line-height: 1.6; }
  .nd__meta { flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 1.6rem; }
  .nd__cats { gap: .6rem; }
  .nd__cats a { padding: .6rem 1.6rem; font-size: 1.1rem; }
  .nd__date { font-size: 1.3rem; }
  .nd__hero { margin-top: 2.4rem; }
  .nd__body { margin-top: 3.2rem; }
  .nd__sec + .nd__sec { margin-top: 4rem; }
  .nd__h2 { padding: .4rem 0 .4rem 1.6rem; border-left-width: .4rem; font-size: 1.8rem; }
  .nd__p { margin-top: 2rem; font-size: 1.4rem; line-height: 2; }

  .nd__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 4.8rem; }
  .nd-btn { width: auto; height: 4.8rem; gap: 1.6rem; padding: 0 2rem; font-size: 1.4rem; }
  .nd-btn--list { grid-column: 1 / -1; justify-self: center; min-width: 20rem; order: 3; } /* SP: Prev / Next を上段、Back to List を下段中央に */
  .nd-btn__arrow { width: 2.4rem; height: .8rem; }

  .nd-latest { width: auto; margin-top: 6.4rem; padding: 0 var(--pad-x); }
  .nd-latest__head { gap: 1.2rem; }
  .nd-latest__en { font-size: 2.8rem; }
  .nd-latest__ja { font-size: 1.3rem; }
  .nd-latest .news-cards { margin-top: 2.4rem; }

  .news-cards { gap: 1.2rem; }
  .news-cards .news-item a { height: auto; padding: 1.6rem 5.2rem 1.6rem 1.6rem; gap: .8rem 1.6rem; }
  .news-cards .news-item__arrow { right: 1.6rem; width: 2.8rem; height: 2.8rem; }
}

/* =====================================================
   TB のみ（768〜1199px）
   ===================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
  .nd { margin-top: 4.8rem; }
  .nd__label { gap: 1.2rem; }
  .nd__en { font-size: 3.6rem; }
  .nd__ja { font-size: 1.4rem; }
  .nd__head { margin-top: 2.4rem; }
  .nd__title { font-size: 2.6rem; }
  .nd__meta { margin-top: 2.4rem; }
  .nd__cats a { padding: .8rem 2rem; font-size: 1.2rem; }
  .nd__date { font-size: 1.5rem; }
  .nd__hero { margin-top: 4rem; }
  .nd__body { margin-top: 4.8rem; }
  .nd__sec + .nd__sec { margin-top: 5.6rem; }
  .nd__h2 { padding: .6rem 0 .6rem 2.4rem; border-left-width: .6rem; font-size: 2.2rem; }
  .nd__p { margin-top: 2.8rem; font-size: 1.6rem; line-height: 2.2; }

  .nd__nav { display: flex; justify-content: space-between; margin-top: 6.4rem; }
  .nd-btn { width: 18rem; height: 5.6rem; gap: 2rem; padding: 0 2.4rem; font-size: 1.6rem; }
  .nd-btn--list { min-width: 0; order: 0; }
  .nd-btn__arrow { width: 2.8rem; height: .9rem; }

  .nd-latest { margin-top: 10rem; }
  .nd-latest__head { gap: 2rem; }
  .nd-latest__en { font-size: 4rem; }
  .nd-latest__ja { font-size: 1.7rem; }
  .nd-latest .news-cards { margin-top: 4rem; }

  .news-cards { gap: 1.6rem; }
  .news-cards .news-item a { padding: 2.4rem 6.4rem 2.4rem 2.4rem; }
  .news-cards .news-item__arrow { right: 2.4rem; width: 3.2rem; height: 3.2rem; }
}
@media (max-width: 1199px) { .nd { padding-top: 4rem; } } /* TB/SP: ヘッダー（見出し帯）とタイトルのあいだに余白 */
/* SP: Prev / Back to List / Next を横 1 列に */
@media (max-width: 767px) {
  .nd__nav { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .nd-btn--list { grid-column: auto; order: 0; min-width: 0; justify-self: stretch; }
  .nd-btn { height: 4.4rem; padding: 0 1.2rem; gap: .6rem; font-size: 1.3rem; white-space: nowrap; }
  .nd-btn__arrow { width: 1.6rem; }
}
