@charset "UTF-8";

/* =========================================
   NEWS ページレイアウト・ヘッダー
   ========================================= */
.page-news {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.news-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 36px 20px 30px;
}

.news-header__title-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-header__title-wrap::before,
.news-header__title-wrap::after {
  display: none;
}

.news-header__logo {
  display: block;
  width: 100%;
  max-width: 720px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
}

.news-header__logo:hover {
  transform: scale(1.015);
  filter: brightness(1.06);
}

.news-header__logo img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .news-header {
    padding: 24px 12px 20px;
  }
  .news-header__title-wrap {
    padding: 0 10px;
  }
}

/* =========================================
   NEWS メインコンテナ
   ========================================= */
.news-main {
  position: relative;
  z-index: 10;
  flex: 1 0 auto;
  width: 100%;
  padding: 4px 0 16px;
}

/* =========================================
   NEWS 一覧ページ（index.html）
   ========================================= */
.news-list-wrap {
  width: 80%;
  max-width: 980px;
  margin: 0 auto;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 一覧カード：背景 #f4edcf 〜 #e6ce8f グラデーション（背景のみ90%透過） */
.news-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 18px 50px 18px 0;
  background: linear-gradient(180deg, rgba(244, 237, 207, 0.9) 0%, rgba(230, 206, 143, 0.9) 100%);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #111111;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  overflow: hidden;
}

/* ホバー・タップ時の水色～白グラデ用レイヤー（グラデを滑らかにクロスフェード） */
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #ffffff 0%, #eaf9fc 55%, #c5eef6 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

/* PCのみhoverで背景グラデ変更＋不透明100% */
@media (hover: hover) {
  .news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
  }
  .news-card:hover::before {
    opacity: 1;
  }
  .news-card:hover .news-card__arrow {
    transform: translate(4px, -50%) rotate(45deg);
    border-color: #007298;
  }
}

/* スマホ・タブレットはタップ時（:active）に同変化 */
.news-card:active::before {
  opacity: 1;
}

/* 左カラム：日付（左右paddingをスリムにして本文幅を確保） */
.news-card__date {
  position: relative;
  z-index: 1;
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-right: 1px solid rgba(105, 74, 21, 0.45);
  font-family: "Oswald", sans-serif;
  color: #694a15;
  text-align: center;
  line-height: 1;
}

.news-card__year {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.news-card__md {
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.news-card__day {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* 中央カラム：カテゴリバッジ＋見出し */
.news-card__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 10px 0 20px;
}

.news-card__cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 8px;
}

/* カテゴリバッジ共通 */
.news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 3px 14px 4px;
  border-radius: 999px;
  background-color: #694a15;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* カテゴリ色分け */
.news-cat--info {
  background-color: #694a15; /* お知らせ・更新情報 */
}
.news-cat--media {
  background-color: #e86400; /* メディア情報 */
}
.news-cat--cheering {
  background-color: #b70000; /* 応援上映情報 */
}
.news-cat--event {
  background-color: #0763a9; /* イベント情報 */
}
.news-cat--campaign {
  background-color: #44800e; /* キャンペーン情報 */
}

/* 複数カテゴリ時の「右端にキャンペーンバッジを並べる」レイアウトにも対応 */
.news-card__body--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.news-card__body-col {
  flex: 1 1 auto;
  min-width: 0;
}

/* 見出しテキスト：黒、2行になっても行間がつまりすぎない設定 */
.news-card__title {
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: 0.02em;
  word-break: break-word;
}

/* 右端の「＞」矢印 */
.news-card__arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-top: 2.5px solid #8a6c36;
  border-right: 2.5px solid #8a6c36;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

/* 一覧レスポンシブ（スマホ：日付幅と左右余白を詰めて本文幅を広く確保） */
@media (max-width: 767px) {
  .news-list-wrap {
    width: 92%;
  }
  .news-list {
    gap: 14px;
  }
  .news-card {
    min-height: 86px;
    padding: 13px 28px 13px 0;
    border-radius: 8px;
  }
  .news-card__date {
    flex: 0 0 64px;
    padding: 2px 4px;
  }
  .news-card__year {
    font-size: 0.74rem;
    margin-bottom: 2px;
  }
  .news-card__md {
    font-size: 1.38rem;
  }
  .news-card__day {
    font-size: 0.7rem;
    margin-top: 3px;
  }
  .news-card__body {
    padding: 0 4px 0 11px;
  }
  .news-card__body--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .news-card__cats {
    margin-bottom: 6px;
  }
  .news-cat {
    min-width: 94px;
    padding: 3px 10px;
    font-size: 0.68rem;
  }
  .news-card__title {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .news-card__arrow {
    right: 12px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
}

/* =========================================
   NEWS 詳細ページ（個別記事）
   ========================================= */
/* 枠：スマホ 92%、タブレット・PC 80%、最大 980px（背景のみ94%透過、中の写真や文字は100%不透明） */
.news-detail {
  width: 80%;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 44px 48px;
  background: linear-gradient(180deg, rgba(244, 237, 207, 0.94) 0%, rgba(233, 214, 159, 0.94) 100%);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #111111;
}

/* 記事ヘッダー（日付＋縦線＋カテゴリ＋見出し） */
.news-detail__head {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 22px;
  border-bottom: 4px double #8a6424;
}

.news-detail__date {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
  border-right: 1px solid rgba(105, 74, 21, 0.5);
  font-family: "Oswald", sans-serif;
  color: #694a15;
  text-align: center;
  line-height: 1;
}

.news-detail__year {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 3px;
}

.news-detail__md {
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.02;
}

.news-detail__day {
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 4px;
}

.news-detail__head-main {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 20px;
}

.news-detail__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 10px;
}

.news-detail__title {
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(16.5px, calc(15px + 0.45vw), 20px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  word-break: break-word;
}

/* 記事本文エリア（最大幅 800px） */
.news-detail__body {
  max-width: 800px;
  margin: 28px auto 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(13.6px, calc(12.2px + 0.38vw), 16px); /* スマホ13.6px ～ PC16px へなめらかに拡大縮小 */
  font-weight: 400;
  line-height: 1.8;
  color: #1a1a1a;
  word-break: break-word;
}

.news-detail__body p + p {
  margin-top: 1.4em;
}

.news-detail__lead {
  font-size: 1.06em;
  font-weight: 700;
  margin-bottom: 1.2em;
}

.news-detail__subhead {
  margin: 2em 0 0.8em;
  padding: 6px 14px;
  border-left: 4px solid #694a15;
  background: rgba(105, 74, 21, 0.08);
  font-size: 1.08em;
  font-weight: 700;
  color: #3a2708;
}

/* 本文内リンク：#007298、下線ドット、ウエイト太め、PC hover で #b52121 */
.news-detail__body a:not(.news-cta-btn) {
  color: #007298;
  font-weight: 700;
  border-bottom: 1.5px dotted #007298;
  padding-bottom: 1px;
  transition: color 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) {
  .news-detail__body a:not(.news-cta-btn):hover {
    color: #b52121;
    border-bottom-color: #b52121;
  }
}

/* 強調テキスト用ユーティリティ */
.txt-red {
  color: #b70000;
  font-weight: 700;
}
.txt-bold {
  font-weight: 700;
}

/* YouTube埋め込み（最大幅 800px・16:9レスポンシブ） */
.news-youtube {
  width: 100%;
  max-width: 800px;
  margin: 28px auto;
}

.news-youtube__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.news-youtube__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 記事内画像（1枚配置・PC最大幅はインラインstyleや補助クラスで個別調整可） */
.news-figure {
  width: 100%;
  max-width: 800px;
  margin: 28px auto;
  text-align: center;
}

.news-figure img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.news-figure figcaption {
  margin-top: 8px;
  font-size: 0.85em;
  color: #4a4030;
  line-height: 1.6;
}

/* 画像2枚横並び（PC：flexbox横2枚 / スマホ：横1で縦に2枚） */
.news-images-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 28px auto;
}

.news-images-row__item {
  flex: 1 1 50%;
  min-width: 0;
}

.news-images-row__item img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* 記事内リンクボタン（PCは左揃え・スマホは横幅いっぱい、hoverで赤に変化） */
.news-cta-wrap {
  margin: 34px 0 8px;
  text-align: left;
}

.news-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 310px;
  max-width: 100%;
  padding: 15px 44px 15px 32px;
  border-radius: 999px;
  background-color: #07598f;
  color: #ffffff !important;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  box-shadow: 0 6px 16px rgba(7, 89, 143, 0.35);
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.news-cta-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .news-cta-btn:hover {
    background-color: #b70000;
    box-shadow: 0 8px 20px rgba(183, 0, 0, 0.4);
    transform: translateY(-2px);
  }
  .news-cta-btn:hover::after {
    transform: translate(3px, -50%) rotate(45deg);
  }
}

.news-cta-btn:active {
  background-color: #b70000;
}

/* 記事枠の下：「NEWS一覧へ」画像ボタン（2027/assets/img/news/back.png） */
.news-back-wrap {
  margin: 34px auto 4px;
  text-align: center;
}

.news-back-btn {
  display: inline-block;
  width: 180px;
  max-width: 60vw;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.news-back-btn img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (hover: hover) {
  .news-back-btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65)) brightness(1.05);
  }
}

/* 詳細ページ レスポンシブ（タブレット・スマホ） */
@media (max-width: 1024px) {
  .news-detail {
    padding: 28px 30px 40px;
  }
}

@media (max-width: 767px) {
  .news-detail {
    width: 92%;
    padding: 20px 18px 30px;
    border-radius: 8px;
  }
  .news-detail__head {
    padding-bottom: 16px;
  }
  .news-detail__date {
    flex: 0 0 66px;
    padding-right: 8px;
  }
  .news-detail__year {
    font-size: 0.74rem;
    margin-bottom: 2px;
  }
  .news-detail__md {
    font-size: 1.42rem;
  }
  .news-detail__day {
    font-size: 0.7rem;
    margin-top: 3px;
  }
  .news-detail__head-main {
    padding-left: 12px;
  }
  .news-detail__cats {
    margin-bottom: 6px;
  }
  .news-detail__title {
    font-size: 1.02rem;
    line-height: 1.48;
  }
  .news-detail__body {
    margin-top: 20px;
    line-height: 1.8;
  }
  /* スマホ時：画像は基本的に横幅100%、2枚並びも縦1列2枚へ */
  .news-figure {
    max-width: 100% !important;
  }
  .news-images-row {
    flex-direction: column;
    gap: 14px;
  }
  .news-images-row__item {
    flex: 1 1 100%;
    width: 100%;
  }
  .news-cta-btn {
    width: 100%;
    min-width: 0;
    padding: 13px 36px 13px 24px;
    font-size: 0.9rem;
  }
  .news-back-wrap {
    margin-top: 26px;
  }
  .news-back-btn {
    width: 165px;
  }
}

/* =========================================
   注釈・ぶら下げインデント（2行目以降1文字下げ）＆先頭1文字色変更
   ========================================= */
.txt-indent {
  padding-left: 1em;
  text-indent: -1em;
}

/* 連続して注釈が並ぶときは行間を少し詰めて見やすくする */
.txt-indent + .txt-indent {
  margin-top: 0.45em !important;
}

/* 先頭1文字だけ色変更（■や◆、※などの記号をspanなしで色付け可能） */
.first-red::first-letter {
  color: #b70000;
  font-weight: 700;
}
.first-blue::first-letter {
  color: #0763a9;
  font-weight: 700;
}
.first-orange::first-letter {
  color: #e86400;
  font-weight: 700;
}
.first-green::first-letter {
  color: #44800e;
  font-weight: 700;
}
.first-brown::first-letter {
  color: #694a15;
  font-weight: 700;
}


/* 記事内画像のスクロールフェードイン（JSなし・その場でopacity変化） */
@keyframes newsImgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-detail__body img.is-fade-img {
  opacity: 0;
  animation: newsImgFadeIn 0.55s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% cover 25%;
}

/* animation-timeline 未対応ブラウザ向けのフォールバック */
@supports not (animation-timeline: view()) {
  .news-detail__body img.is-fade-img {
    opacity: 1;
    animation: none;
  }
}

/* 動きを抑える設定（prefers-reduced-motion）への配慮 */
@media (prefers-reduced-motion: reduce) {
  .news-detail__body img.is-fade-img {
    opacity: 1;
    animation: none;
  }
}

/* =========================================
   括弧書きの読み方・補足用（<span> に付与して少し小さめに表示）
   ========================================= */
.u-ruby-note {
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: inherit;
}

/* すでに em 指定されている見出し・リード・キャプション内では少し控えめにして複利を抑える */
.news-detail__lead .u-ruby-note,
.news-detail__subhead .u-ruby-note,
.news-figure figcaption .u-ruby-note {
  font-size: 0.84em;
}

