/* ==========================================================================
   news.css — 「蒼夜シアター」グループC差分
   news.html(年→月タイムライン+チップフィルタ) / news-article.html(記事詳細)
   / contact.html(フォーム)。style.css / theater.css の後に読み込む。
   新しい色は定義しない(:root トークンと白黒・氷青のアルファのみ)。
   ========================================================================== */

/* ---------- news.html: カテゴリチップフィルタ ---------- */

.news-archive { padding-block: var(--space-5) var(--space-7); }

.news-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .6rem;
  margin-bottom: var(--space-5);
}

.chip {
  padding: .5em 1.2em;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-text-dim);
  font-size: 10px;
  line-height: 1.8;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}

.chip:hover { color: var(--c-text); border-color: var(--c-ice); }

/* 押下中(アクティブ)は氷青許可領域。カテゴリチップは --c-cat-* トークンで灯る */
.chip[aria-pressed="true"] { color: var(--c-ice); border-color: currentColor; }
.chip--info[aria-pressed="true"]    { color: var(--c-cat-info);    border-color: currentColor; }
.chip--project[aria-pressed="true"] { color: var(--c-cat-project); border-color: currentColor; }
.chip--media[aria-pressed="true"]   { color: var(--c-cat-media);   border-color: currentColor; }
.chip--event[aria-pressed="true"]   { color: var(--c-cat-event);   border-color: currentColor; }

.news-filter__count {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--c-text-faint);
}

/* ---------- news.html: 年→月タイムライン ---------- */

.news-tl { display: grid; gap: var(--space-5); }

.news-tl__group {
  display: grid;
  grid-template-columns: clamp(80px, 12vw, 150px) 1fr;
  column-gap: clamp(1.2rem, 3.5vw, 3.5rem);
  align-items: start;
}

.news-tl__year {
  position: sticky;
  top: 92px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--c-text-faint);
}

.news-tl__months {
  --tl-pad: clamp(1.3rem, 3vw, 2.4rem);
  min-width: 0;
  display: grid;
  gap: var(--space-5);
  border-left: 1px solid var(--c-line);
  padding-left: var(--tl-pad);
  padding-bottom: var(--space-2);
}

.news-tl__month { position: relative; }

/* 縦罫線上のドット */
.news-tl__month::before {
  content: "";
  position: absolute;
  top: .42em;
  left: calc(-1 * var(--tl-pad) - 4px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-text-dim);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.news-tl__month:hover::before {
  border-color: var(--c-ice);
  box-shadow: 0 0 12px rgba(135, 184, 214, .35);
}

.news-tl__label {
  display: flex;
  align-items: baseline;
  gap: .8em;
  margin-bottom: .4rem;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--c-text-faint);
}

.news-tl__label b {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .24em;
  color: var(--c-text);
}

/* hidden属性をstyle.cssのdisplay指定より優先させる */
.news-item[hidden],
.news-tl__month[hidden],
.news-tl__group[hidden] { display: none; }

/* フィルタ切替時のフェード(reduced-motionでは全停止: style.css共通指定) */
@media (prefers-reduced-motion: no-preference) {
  .news-tl.is-swap .news-tl__month:not([hidden]) { animation: newsSwap .5s ease both; }
  .news-tl.is-swap .news-tl__month:nth-child(2) { animation-delay: .05s; }
  .news-tl.is-swap .news-tl__month:nth-child(3) { animation-delay: .1s; }
  .news-tl.is-swap .news-tl__month:nth-child(4) { animation-delay: .15s; }
  .news-tl.is-swap .news-tl__month:nth-child(5) { animation-delay: .2s; }
  .news-tl.is-swap .news-tl__month:nth-child(6) { animation-delay: .25s; }
  .news-tl.is-swap .news-tl__month:nth-child(n+7) { animation-delay: .3s; }
}

@keyframes newsSwap {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- news-article.html: 記事詳細(読みやすさ最優先) ---------- */

.article-col { max-width: 720px; margin-inline: auto; }

.article-head__meta {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin-bottom: var(--space-3);
}

.article-head__meta time {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-text-dim);
}

.article-head__title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.65;
}

.article { padding-block: var(--space-6) var(--space-7); }

/* 本文: 無地・16px/1.9(bodyの既定を継承)。段落は白で読ませる */
.article__body p { margin-block: 1.5em; color: var(--c-text); }

.article__lead {
  font-weight: 500;
  color: var(--c-text);
}

.article__body h2 {
  margin: 3em 0 1.2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--c-line);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
}

.article__body h2 .en {
  display: block;
  margin-bottom: .7em;
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--c-text-faint);
}

.article__body a {
  text-decoration: underline;
  text-decoration-color: var(--c-line);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  transition: text-decoration-color .3s ease, color .3s ease;
}

.article__body a:hover { text-decoration-color: var(--c-ice); }

/* 催行日程: ヘアラインの上映スケジュール風リスト */
.article__dates {
  margin: 1.6em 0 2em;
  border-top: 1px solid var(--c-line);
}

.article__dates li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3em 1.4em;
  padding: .95em .2em;
  border-bottom: 1px solid var(--c-line);
}

.article__dates .en {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--c-text-faint);
}

.article__dates b {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
}

.article__dates li > span:last-child {
  margin-left: auto;
  font-size: 12px;
  color: var(--c-text-dim);
}

/* 写真: クリックでライトボックス(data-lightbox="news") */
.article__fig { margin: 2.6em 0; }

.article__fig a { display: block; overflow: hidden; background: var(--c-black); }

.article__fig img {
  width: 100%;
  height: auto;
  transition: transform .9s ease;
}

.article__fig a:hover img { transform: scale(1.03); }

.article__fig figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.4em;
  margin-top: .8rem;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--c-text-faint);
}

/* 関連記事 */
.related { margin-top: var(--space-7); }
.related .sec-hd { margin-bottom: var(--space-4); }

/* ---------- contact.html: フォーム ---------- */

.contact-page { padding-block: var(--space-6) var(--space-7); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: var(--space-5) clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.c-label {
  margin-bottom: var(--space-4);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-text-faint);
}

.c-form { display: grid; gap: 2.1rem; }

.c-field { display: grid; gap: .55rem; }

.c-field label {
  display: flex;
  align-items: baseline;
  gap: .9em;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--c-text-dim);
  transition: color .3s ease, text-shadow .3s ease;
}

.c-req {
  padding: .15em .7em;
  font-size: 8.5px;
  letter-spacing: .2em;
  color: var(--c-text-faint);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  transition: color .3s ease, border-color .3s ease;
}

.c-field input,
.c-field select,
.c-field textarea {
  width: 100%;
  padding: .65em .1em;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.7;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.c-field textarea { resize: vertical; min-height: 9em; }

.c-field ::placeholder { color: var(--c-text-faint); opacity: 1; }

.c-field select { background: var(--c-bg); appearance: none; -webkit-appearance: none; padding-right: 2em; }

/* 未選択のセレクトはプレースホルダ色 */
.c-field select:required:invalid { color: var(--c-text-dim); }

.c-field--select { position: relative; }

.c-field--select::after {
  content: "";
  position: absolute;
  right: .5em;
  bottom: 1.2em;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--c-text-dim);
  border-bottom: 1px solid var(--c-text-dim);
  transform: rotate(45deg);
  pointer-events: none;
}

/* フォーカスで下線が氷青に。アウトラインの代替として2px相当の発光下線 */
.c-field input:focus,
.c-field select:focus,
.c-field textarea:focus {
  outline: none;
  border-bottom-color: var(--c-ice);
  box-shadow: 0 1px 0 0 var(--c-ice);
}

/* フォーカスでラベルが氷青に灯る */
.c-field:focus-within label {
  color: var(--c-ice);
  text-shadow: 0 0 16px rgba(135, 184, 214, .45);
}

.c-field:focus-within .c-req { color: var(--c-ice); border-color: currentColor; }

.c-privacy { font-size: 12px; color: var(--c-text-faint); }

.c-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .9em;
  padding: .85em 2.6em;
  background: none;
  border: 1px solid var(--c-text);
  border-radius: 999px;
  color: var(--c-text);
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .22em;
  text-indent: .1em;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background .3s ease, gap .3s ease;
}

.c-submit svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.c-submit:hover {
  color: var(--c-ice);
  border-color: var(--c-ice);
  background: rgba(135, 184, 214, .08);
  gap: 1.4em;
}

/* ダミー送信の完了表示 */
.c-done {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--c-line);
}

.c-done[hidden] { display: none; }

.c-done__en { font-size: 10px; letter-spacing: .34em; color: var(--c-ice); }

.c-done__hd { font-size: 20px; font-weight: 700; letter-spacing: .06em; outline: none; }

.c-done p { font-size: 13.5px; line-height: 2; color: var(--c-text-dim); }

.c-done__back {
  padding-bottom: .35em;
  font-size: 13px;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--c-line);
  transition: border-color .3s ease, color .3s ease;
}

.c-done__back:hover { border-color: var(--c-ice); }

/* 右カラム: 直接連絡先 */
.contact-aside {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--c-line);
  padding-left: clamp(1.6rem, 3vw, 2.8rem);
}

.contact-aside__hd {
  margin-bottom: var(--space-3);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-text-faint);
}

.contact-direct { border-top: 1px solid var(--c-line); }

.contact-direct > div {
  display: grid;
  gap: .3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}

.contact-direct dt {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--c-text-faint);
}

.contact-direct dd { font-size: 14px; color: var(--c-text-dim); }

.contact-direct dd a {
  text-decoration: underline;
  text-decoration-color: var(--c-line);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  transition: text-decoration-color .3s ease;
  overflow-wrap: anywhere;
}

.contact-direct dd a:hover { text-decoration-color: var(--c-ice); }

.contact-note {
  margin-top: var(--space-3);
  font-size: 12.5px;
  line-height: 2;
  color: var(--c-text-dim);
}

/* ---------- responsive: 768px ---------- */

@media (max-width: 768px) {
  .news-tl__group { grid-template-columns: 1fr; row-gap: var(--space-3); }

  .news-tl__year { position: static; font-size: 1.7rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .contact-aside {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding-left: 0;
    padding-top: var(--space-4);
  }
}

/* ---------- responsive: 390px ---------- */

@media (max-width: 480px) {
  .news-tl__months { --tl-pad: 1.1rem; }

  .article-head__title { font-size: 1.3rem; }

  .article__dates li > span:last-child { margin-left: 0; width: 100%; }

  .c-submit { width: 100%; justify-content: center; }
}
