/*
 * News（活動報告）ページ共通のスタイル。news/index.html と各記事ページが読み込む。
 * 地はトップの明るいセクションと同じ生成り（#F7F5F2）。記事は白地で読ませる（2026-11-04 澤田指示）。
 * ロービジョン対応はサイト全体と同じ決めごと：
 *   文字は16px以上・ウェイト400以上・日本語本文の字間0.02em以下・押せる面積は44px以上・
 *   opacity で文字を薄くしない（薄い色は色そのもので作る。#6B655C on #F7F5F2 = 5.6:1）
 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F7F5F2;
  --text: #111111;    /* 17.4:1 */
  --body: #3A3630;    /* 本文の英語・紹介文 10.6:1 */
  --sub: #6B655C;     /* 5.6:1 */
  --rule: #ddd8cf;
  --focus: #b45309;
  --font-jp: 'Zen Old Mincho', serif;
  --font-en: 'EB Garamond', serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── Accessibility ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
  padding: 12px 18px;
  background: #f0f0f0;
  color: #111;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 3px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Navigation（トップのスクロール後と同じ明るい地） ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  background: rgba(247, 245, 242, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  padding: 13px 36px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav-logo img {
  height: 18px;
  width: auto;
  object-fit: contain;
  filter: invert(1); /* ロゴ画像は白抜きなので、明るい地では反転して黒にする */
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #000;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (min-width: 769px) {
  .nav-mobile-only { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 7px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #1a1a1a;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 12px 18px; }
  nav.scrolled { padding: 10px 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: min(74vw, 300px);
    height: 100vh;
    height: 100dvh;
    padding: 96px 34px 40px;
    background: rgba(247, 245, 242, 0.98);
    /* 影は開いたときだけ（閉じているときに画面の右端へにじみ出さないように） */
    box-shadow: none;
    transform: translateX(106%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    z-index: 95;
  }
  nav.menu-open .nav-links { transform: translateX(0); box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12); }
  .nav-links li { width: 100%; }
  .nav-links a { font-size: 1.0625rem; width: 100%; }
}

/* ─── ページの見出し（works.html の「作品 / Works」と同じ組み） ─── */
.news-page {
  padding: 140px 18px 100px;
}

.news-heading {
  text-align: center;
  margin-bottom: 32px;    /* Works の見出しと同じ */
}

.news-heading-jp {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  line-height: 1.2;
  color: var(--text);
}

.news-heading-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  letter-spacing: 0.12em;
  color: var(--sub);
  margin-top: 10px;
}

/* ─── 記事カード（一覧ページ。トップの News 欄は index.html に同じ組みを暗い地で持つ） ───
   要素は 日付・タイトル（日本語）・紹介文・READ MORE の4つだけ。文字の階層は
   日付（16px・グレー）＜ タイトル（20px）、紹介文は本文サイズ・グレー。余白は8の倍数。
   PC 幅：最大3つまで横に並ぶグリッド（1〜2件のときも同じ幅で中央に寄せる）。
   スマホ：縦積み（画像 → テキスト）。幅は Works 欄（980px）にそろえる */
.news-list {
  list-style: none;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;  /* カードの高さがそろっても、余りを画像とテキストのあいだに配らない */
  letter-spacing: normal; /* 英字見出し用の字間を日本語に継がない */
  /* 1枚ずつボックスで囲み、記事どうしを別のものとして見せる（2026-11-05）。
     地より少し明るい面＋細い枠線。角は READ MORE と同じく直角。写真は上端・左右いっぱい */
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.news-card:hover {
  border-color: rgba(0, 0, 0, 0.32);
}
/* テキストはボックスの内側に余白を取る（PC 32px・スマホ 24px） */
.news-card-text {
  padding: 32px;
}
@media (max-width: 768px) {
  .news-card-text { padding: 24px; }
}

.news-card-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ebe7e0;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.03);
}

/* テキストは DOM ではタイトルが先（読み上げ順）。見た目は 日付 → タイトル → 紹介文 → READ MORE */
.news-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.news-card-date {
  order: 0;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--sub);
}

/* カードのイベント名 ／ 場所（日付の横。折り返すときは日付の下へ） */
.news-card-date {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}
.news-card-label {
  word-break: keep-all;
  word-break: auto-phrase; /* 「東京／駅前」のような語の途中では折らない */
  font-family: var(--font-jp);
  letter-spacing: 0.02em;
  color: var(--sub);
}

.news-card-title {
  order: 1;
  margin-top: 8px;        /* 日付 → タイトル */
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  word-break: keep-all;
  word-break: auto-phrase; /* 対応ブラウザは文節で折る。未対応は上の keep-all のまま */
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.news-card-title .nb {
  display: inline-block;  /* 読点ごとのかたまり。かたまりの途中では改行しにくくする */
}

.news-card-title a {
  color: var(--text);
  text-decoration: none;
}

/* カード全体（画像・タイトル・READ MORE）を押せるようにする。リンクはタイトルの1つだけ */
.news-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-card-title a:focus-visible {
  outline: none;
}

.news-card:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 8px;
}

.news-card-excerpt {
  order: 2;
  margin-top: 16px;       /* タイトル → 紹介文 */
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: normal;
  color: var(--sub);
  word-break: keep-all;
  word-break: auto-phrase; /* 対応ブラウザは文節で折る。未対応は上の keep-all のまま */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* READ MORE：「すべての記事を見る」と同じ枠（1px・角なし）で一回り小さく。カードに乗せると反転 */
.news-card-more {
  order: 3;
  margin-top: 24px;       /* 紹介文 → READ MORE */
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--text);
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-card:hover .news-card-more {
  background: var(--text);
  color: var(--bg);
}

@media (min-width: 769px) {
  /* カードは最大3つまで横に並べる（1〜2件のときも同じ幅のまま中央に寄せる）。
     幅は Works 欄（980px）を3等分した 305px まで。READ MORE はカードの下端でそろえる */
  .news-list--few,
  .news-list--grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 305px));
    justify-content: center;
    gap: 32px;
  }
  .news-list--few .news-card,
  .news-list--grid .news-card {
    grid-template-rows: auto 1fr;
  }
  .news-list--few .news-card-excerpt,
  .news-list--grid .news-card-excerpt {
    margin-bottom: 24px;
  }
  .news-list--few .news-card-more,
  .news-list--grid .news-card-more {
    margin-top: auto;
  }
}

.news-empty {
  text-align: center;
  color: var(--sub);
}

.news-empty-en {
  font-family: var(--font-en);
  margin-top: 4px;
}

/* ─── 記事ページ ─── */
.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.news-article-date {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--sub);
}

/* 記事のイベント名 ／ 場所（日付と見出しのあいだ） */
.news-article-label {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sub);
}

.news-article-title {
  margin-top: 14px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}


.news-body {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

/* 記事の本文は一覧やラベルより一段大きく（PC 18px・スマホ 17px）。1行は40字前後 */
.news-body p {
  font-size: 1.125rem;
  line-height: 1.95;
}
@media (max-width: 767px) {
  .news-body p { font-size: 1.0625rem; }
}

.news-body p + p {
  margin-top: 1.4em;
}

/* 本文のあいだに差し込む写真（2026-11-04〜。段落 → 写真 → 段落） */
.news-figure {
  margin: 48px 0;
}

/* 写真のクレジット（撮影：○○）。記事の写真のあと、一覧へ戻るの前に1行 */
.news-credit {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sub);
}

.news-figure + .news-figure {
  margin-top: -24px;      /* 写真が続くときは、あいだを 24px に詰める */
}

.news-figure img {
  /* 縦長の写真が画面より高くならないよう、高さを抑えて中央に置く */
  width: auto;
  max-height: 85vh;
  margin: 0 auto;
}

/* 本文のあいだに差し込む動画。<figure class="news-figure article-video"> で、置き方・幅は写真と同じ。
   自動再生はしない（音があるため）。キャプションは撮影クレジットと同じ小さな注記の体裁 */
.article-video video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  margin: 0 auto;
  background: #111;
}
.article-video figcaption {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sub);
  text-align: center;
}

/* スマホ（〜767px）：本文の左右の余白を打ち消して、写真を画面の端から端まで広げる。
   角丸・枠線なし。縦長も横長も、比率を保ったまま横幅いっぱいに出す。PC の見え方は上のまま */
@media (max-width: 767px) {
  .news-figure {
    width: 100vw;
    margin: 32px calc(50% - 50vw);
  }
  .news-figure + .news-figure {
    margin-top: -16px;      /* 写真が続くときのあいだは 16px */
  }
  .news-figure img,
  .article-video video {
    width: 100%;
    max-height: none;
    margin: 0;
  }
  .article-video figcaption {
    padding: 0 18px;
  }
}





.news-back {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* 一覧へ戻る・すべての記事を見る（works.html の「トップに戻る」と同じボタン） */
.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 40px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

.news-btn:hover {
  background: var(--text);
  color: var(--bg);
}


/* ─── Contact / Footer（トップと同じ明るい版） ─── */
.contact {
  padding: 48px 18px 72px;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.contact-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--sub);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 12px 40px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

.contact-btn:hover {
  background: var(--text);
  color: var(--bg);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 36px 28px;
  border-top: 1px solid var(--rule);
}

.footer-produced {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-produced-text {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.footer-produced-by {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sub);
}

.footer-produced-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-produced-logo {
  height: 20px;
  width: auto;
}

.footer-sns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--sub);
  transition: color 0.3s ease;
}

.footer-sns a:hover {
  color: #000;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--sub);
  text-align: center;
}

@media (max-width: 768px) {
  .news-page { padding: 110px 18px 72px; }
  .news-list { gap: 24px; }
  .news-body { margin-top: 40px; padding-top: 32px; }
  .news-back { margin-top: 56px; }
  footer { padding: 24px 18px; }
}
