/* mille fleuve — 公開サイト
   方針：灰みのある淡い緑の紙色に、深い緑墨の文字。差し色はヘザー（くすんだ藤色）だけ。
   見出しは明朝、本文はゴシック。装飾は「綾織」の図柄ひとつに絞り、ほかは余白で見せる。 */

:root {
  --paper: #edefec;
  --surface: #f7f8f6;
  --ink: #26302e;
  --muted: #5d6965;
  --line: #ccd3cf;
  --heather: #8e6577;
  --heather-deep: #6f4c5c;

  /* イベントの帯（4色を順に使う） */
  --band-0: #e6d9de;
  --band-1: #d9e2dd;
  --band-2: #e6dfd7;
  --band-3: #dbe1e6;

  /* 開始終了不可日まわりの日の色（管理画面 admin.css の開始終了不可日ページと同じ値） */
  --k-blocked: #f7dcd8;
  --k-nostart: #f0e6d6;
  --k-noend: #d9ecd9;

  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: 'palt' 0;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--heather-deep); }

:focus-visible { outline: 2px solid var(--heather); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; }

/* ---- ヘッダー ---- */

.site-header { padding-block: 1.5rem; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.wordmark { text-decoration: none; display: grid; line-height: 1.2; }
.wordmark__en { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.08em; }
.wordmark__ja { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.3em; margin-top: 0.25rem; }

.nav { display: flex; gap: 2rem; font-size: 0.875rem; }
.nav a { text-decoration: none; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current='page'] { border-bottom-color: var(--heather); }

.menu { display: none; position: relative; }
.menu__toggle { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; padding: 0.5rem 0; }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__bars, .menu__bars::before { display: block; width: 1.25rem; height: 1px; background: currentColor; position: relative; }
.menu__bars { margin-block: 0.3rem 0.1rem; }
.menu__bars::before { content: ''; position: absolute; top: -0.4rem; }
.menu[open] .menu__bars { transform: rotate(45deg) translate(0.15rem, -0.15rem); }
.menu[open] .menu__bars::before { transform: rotate(-90deg) translateX(-0.4rem); }
.nav--drawer {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5;
  flex-direction: column; gap: 0.25rem; min-width: 12rem;
  background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.25rem;
}

/* ---- ヒーロー ---- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: end;
  padding-block: clamp(2.5rem, 8vw, 6rem) clamp(3rem, 8vw, 7rem);
}
.hero__title {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  line-height: 1.6; letter-spacing: 0.1em; font-weight: 500;
}
.hero__lead { max-width: 30em; margin-top: 2rem; color: var(--muted); font-size: 0.9375rem; }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.5rem; }
.hero__visual { position: relative; }
.hero__visual .weave { width: 100%; aspect-ratio: 4 / 5; }
/* 写真は枠の比率に合わせて切り抜く。人物と什器が入るよう、やや下寄りを基準にする */
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
/* 布端（耳）を思わせる細い線 */
.hero__visual::after {
  content: ''; position: absolute; inset: 0.9rem auto 0.9rem -0.9rem; width: 1px; background: var(--heather);
}

.weave--animate g:nth-of-type(2) path,
.weave--animate g:nth-of-type(3) {
  animation: weave-in 700ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.weave--animate g:nth-of-type(2) path { animation-delay: calc(var(--row, 0) * 18ms); }
.weave--animate g:nth-of-type(3) { animation-delay: 900ms; animation-duration: 900ms; }
@keyframes weave-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .weave--animate g path, .weave--animate g { animation: none !important; }
}

/* ---- ボタン・リンク ---- */

.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.75rem; font-size: 0.875rem; letter-spacing: 0.12em;
  border: 1px solid var(--ink); transition: background 150ms, color 150ms;
}
.btn:hover { background: transparent; color: var(--ink); }

.textlink { font-size: 0.875rem; text-decoration: underline; }

/* ---- セクション ---- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--quiet { background: var(--surface); }
.section__title { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); margin-bottom: 2rem; }
.section__foot { margin-top: 2.5rem; }
.empty { color: var(--muted); }

/* ---- 会期 ---- */

.period { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.6rem; font-family: var(--serif); }
.period__year { flex-basis: 100%; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.15em; font-family: var(--sans); }
.period__day { white-space: nowrap; }
.period__day time { font-variant-numeric: lining-nums; letter-spacing: 0.04em; }
.period__wd { font-size: 0.75em; color: var(--muted); margin-left: 0.3em; }
.period__sep { color: var(--muted); }
.period--l .period__day time { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.125rem); }
.period--m .period__day time { font-size: 1.125rem; }

.badge {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--heather-deep); border: 1px solid var(--heather); padding: 0 0.6rem; margin-top: 0.6rem;
}
.badge--quiet { color: var(--muted); border-color: var(--line); }

/* ---- イベント一覧（トップ） ---- */

.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row { border-bottom: 1px solid var(--line); }
.event-row__link {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr) 9.5rem;
  gap: clamp(1.25rem, 3vw, 3rem); padding-block: 2rem; text-decoration: none; color: inherit;
}
.event-row__title { font-size: 1.3125rem; }
.event-row__company { color: var(--muted); font-size: 0.875rem; margin: 0.25rem 0 0.9rem; }
.event-row__excerpt { font-size: 0.9375rem; max-width: 36em; margin-bottom: 0.75rem; }
.event-row__more { font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 0.25em; }
.event-row__visual img, .event-row__visual .weave { width: 100%; aspect-ratio: 1; object-fit: cover; }
.event-row__link:hover .event-row__title { color: var(--heather-deep); }
.event-row__link:hover .event-row__more { color: var(--heather-deep); }

/* ---- スペースについて ---- */

.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.about p { max-width: 34em; }
.about__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about__links li { border-bottom: 1px solid var(--line); }
.about__links a { display: block; padding: 1rem 0; text-decoration: none; }
.about__links a:hover { padding-left: 0.4rem; transition: padding 150ms; }

/* ---- 下層ページ見出し ---- */

.page-head { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.page-head__title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: 0.12em; }
.page-head__lead { color: var(--muted); margin-top: 1rem; max-width: 40em; }

.h3 { font-size: 1.125rem; margin: 2rem 0 0.75rem; }
.h3:first-child { margin-top: 0; }
.plain-list { margin: 0 0 1em; padding-left: 1.2em; }
.plain-list li { margin-bottom: 0.4em; }
.note { color: var(--muted); font-size: 0.875rem; margin-top: 1.5rem; }

/* ---- スケジュール ---- */

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.cal-title { font-weight: 500; display: flex; align-items: baseline; gap: 0.4rem; font-size: 1.125rem; }
.cal-title__y { font-size: 0.9375rem; color: var(--muted); margin-right: 0.4rem; }
.cal-title__m { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; }
.cal-nav { font-size: 0.875rem; text-decoration: none; padding: 0.5rem 0; }
.cal-nav:hover { text-decoration: underline; }

.cal { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); }
.cal th { font-weight: 700; font-size: 0.75rem; color: var(--muted); padding: 0.6rem; text-align: left; border-bottom: 1px solid var(--line); }
.cal th.is-sun, .cal-list__date.is-sun { color: #9a5a5a; }
.cal th.is-sat, .cal-list__date.is-sat { color: #4f6a85; }
.cal__day {
  height: 7rem; vertical-align: top; padding: 0.5rem 0.6rem;
  border: 1px solid var(--line); border-top: 0; position: relative;
}
/* .cal-list__day の地色（--surface）より優先させるため、要素クラスと組み合わせて指定する */
:is(.cal__day, .cal-list__day).k-blocked { background: var(--k-blocked); }
:is(.cal__day, .cal-list__day).k-no-start { background: var(--k-nostart); }
:is(.cal__day, .cal-list__day).k-no-end { background: var(--k-noend); }
/* 開始不可と終了不可が重なる日は、どちらにも使えないので開始終了不可日と同じ色にする */
:is(.cal__day, .cal-list__day).k-no-start-end-adjacent { background: var(--k-blocked); }
/* 前後の月の日は色分けせず、紙色で控えめに（上の色分けより後に置いて優先させる） */
.cal__day.is-out { color: #a4ada9; background: var(--paper); }
.cal__day.is-out .band { opacity: 0.55; }
.cal__num { font-family: var(--serif); font-size: 1rem; font-variant-numeric: tabular-nums; }
.cal__day.is-today .cal__num {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin: -0.2rem 0 0 -0.35rem;
  border-radius: 50%; background: var(--ink); color: var(--paper);
}
.cal__hol { display: block; font-size: 0.6875rem; color: #9a5a5a; line-height: 1.4; }

.band {
  position: absolute; left: -1px; right: -1px; bottom: 1.1rem; height: 1.9rem;
  display: block; text-decoration: none; background: var(--band-0); color: var(--ink);
}
.band[data-color='1'] { background: var(--band-1); }
.band[data-color='2'] { background: var(--band-2); }
.band[data-color='3'] { background: var(--band-3); }
.band--start { left: 0.35rem; border-left: 3px solid var(--heather); }
.band--end { right: 0.35rem; }
a.band:hover { filter: brightness(0.96); color: var(--ink); }
.band__title {
  position: absolute; z-index: 1; left: 0.5rem; top: 0; line-height: 1.9rem;
  width: calc(var(--span, 1) * 100% - 1rem);
  font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cal-list { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cal-list__day { display: grid; grid-template-columns: 3.5rem 1fr; border-bottom: 1px solid var(--line); min-height: 3rem; background: var(--surface); }
.cal-list__date { font-family: var(--serif); font-size: 1.125rem; padding: 0.5rem 0 0.5rem 0.75rem; }
.cal-list__date small { font-family: var(--sans); font-weight: 700; font-size: 0.6875rem; margin-left: 0.25rem; color: var(--muted); }
.cal-list__day.is-today .cal-list__date { text-decoration: underline; text-decoration-color: var(--heather); text-underline-offset: 0.3em; }
.cal-list__body { padding: 0.35rem 0.5rem 0.35rem 0; display: flex; align-items: center; }
.cal-list__ev {
  display: block; width: 100%; text-decoration: none; font-size: 0.875rem;
  background: var(--band-0); padding: 0.4rem 0.75rem; border-left: 3px solid var(--heather);
}
.cal-list__ev[data-color='1'] { background: var(--band-1); }
.cal-list__ev[data-color='2'] { background: var(--band-2); }
.cal-list__ev[data-color='3'] { background: var(--band-3); }
.cal-list__free { font-size: 0.75rem; color: #9a5a5a; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.25rem; font-size: 0.8125rem; color: var(--muted); }
.cal-legend p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.swatch { width: 1.25rem; height: 0.9rem; border: 1px solid var(--line); flex: none; }
.swatch--event { background: var(--band-0); border-left: 3px solid var(--heather); }
.swatch--blocked { background: var(--k-blocked); }
.swatch--nostart { background: var(--k-nostart); }
.swatch--noend { background: var(--k-noend); }

.month-events { margin-top: 4rem; }
.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini-list li { border-bottom: 1px solid var(--line); }
.mini-list__item {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; align-items: baseline;
  gap: 0.25rem 1.5rem; padding: 1.1rem 0; text-decoration: none;
}
.mini-list .period__year { display: none; }
.mini-list__title { font-family: var(--serif); font-size: 1.0625rem; }
.mini-list__company { grid-column: 2; font-size: 0.8125rem; color: var(--muted); }
.mini-list .badge { grid-column: 3; grid-row: 1; margin: 0; }

/* ---- イベント詳細 ---- */

.event { padding-block: clamp(2rem, 6vw, 4.5rem) 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.event__head { grid-column: 1 / -1; }
.event__head .badge { margin-top: 0.75rem; }
.event__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: 0.08em; margin-top: 1.5rem; }
.event__company { color: var(--muted); margin-top: 0.5rem; }
.event__visual img, .event__visual .weave { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.event__visual { align-self: start; position: sticky; top: 1.5rem; }
.event__facts { grid-column: 2; margin: 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.event__facts div { display: grid; grid-template-columns: 5rem 1fr; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.event__facts dt { color: var(--muted); }
.event__facts dd { margin: 0; }
.event__back { grid-column: 1 / -1; }

.prose { max-width: 38em; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.125rem; margin: 2rem 0 0.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 2px solid var(--heather); color: var(--muted); }
.prose img { margin: 1.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.5rem 1rem 0.5rem 0; text-align: left; }
.prose code { font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; }

/* ---- アクセス ---- */

.access { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: 5rem; }
.map { aspect-ratio: 4 / 3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.85) contrast(0.95); }

/* ---- 設備 ---- */

.table { width: 100%; max-width: 48rem; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 400; font-size: 0.75rem; color: var(--muted); padding-block: 0.5rem; }
.table tbody th { font-weight: 500; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td:last-child { color: var(--muted); font-size: 0.9375rem; }

/* ---- お問い合わせ ---- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-bottom: 5rem; }
.contact__label { font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.25rem; }
.contact__tel { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); letter-spacing: 0.06em; margin: 0; line-height: 1.4; }
.contact__tel a, .contact__mail a { text-decoration: none; }
.contact__sub { color: var(--muted); font-size: 0.875rem; margin-bottom: 2.5rem; }
.contact__mail { font-size: 1.25rem; }
.contact__notes { background: var(--surface); padding: clamp(1.5rem, 4vw, 2.5rem); font-size: 0.9375rem; }

/* ---- フッター ---- */

.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: 0.8125rem; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer p { margin: 0 0 0.25rem; }
.site-footer__name { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); margin-bottom: 0.75rem !important; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: flex-start; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy { margin-top: 2.5rem !important; font-size: 0.75rem; }

/* ---- レスポンシブ ---- */

@media (max-width: 900px) {
  .event-row__link { grid-template-columns: 12rem minmax(0, 1fr); }
  .event-row__visual { display: none; }
}

@media (max-width: 760px) {
  .nav--wide { display: none; }
  .menu { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-left: 0.9rem; }
  .hero__visual .weave, .hero__photo { aspect-ratio: 16 / 9; }

  .event-row__link { grid-template-columns: 1fr; gap: 0.75rem; padding-block: 1.5rem; }
  .about, .access, .contact { grid-template-columns: 1fr; }

  .cal { display: none; }
  .cal-list { display: block; }
  .cal-nav { font-size: 0.8125rem; }

  .mini-list__item { grid-template-columns: 1fr auto; }
  .mini-list__title, .mini-list__company { grid-column: 1; }
  .mini-list .badge { grid-column: 2; }

  .event { grid-template-columns: 1fr; }
  .event__visual { position: static; }
  .event__visual img, .event__visual .weave { aspect-ratio: 3 / 2; }
  .event__facts { grid-column: 1; }
}
