/* =========================================================
   第15回 茅ヶ崎映画祭 2026
   パンフレットのトーン（赤地・白抜きロゴ・版画絵）を踏襲
   ========================================================= */

:root {
  --red: #d22f1d;
  --red-deep: #b0261a;
  --ink: #231815;
  --ink-sub: #5a4e4a;
  --paper: #ffffff;
  --tint: #f7f1ec;
  --line: #e4dad3;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
h1, h2, h3, h4, h5, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
small { font-size: .8em; }

.material-symbols-outlined { font-size: 1.2em; line-height: 1; vertical-align: -.2em; font-variation-settings: "opsz" 20; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 8px 16px; background: #fff; color: var(--ink); }
.skip:focus { top: 8px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 760px; }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tint { background: var(--tint); }

.section-title {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--red);
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .08em;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }

/* 原稿待ち・要確認の仮置き */
.tbd {
  padding: 1em 1.2em;
  border: 1px dashed var(--red);
  background: #fff6f4;
  color: var(--red-deep);
  font-size: .9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - var(--gutter) * 2, var(--container));
  height: var(--header-h);
  margin-inline: auto;
}
.site-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .06em; }
.site-header__brand { white-space: nowrap; }
.site-header__brand img { width: 52px; }
@media (max-width: 380px) { .site-header__brand span { font-size: .85rem; } }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .85rem;
  white-space: nowrap;
  cursor: pointer;
}
.global-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: var(--red);
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.global-nav[hidden] { display: none; }
.global-nav ul { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; padding-block: 8px 16px; }
.global-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-weight: 500; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .global-nav, .global-nav[hidden] { position: static; display: block; border: 0; background: none; }
  .global-nav ul { display: flex; gap: 28px; width: auto; padding: 0; }
  .global-nav a { padding: 6px 0; border: 0; font-size: .92rem; white-space: nowrap; }
  .global-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: #fff;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(28px, 5vw, 48px);
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  padding-block: clamp(40px, 8vw, 88px) clamp(28px, 4vw, 40px);
  text-align: center;
}
/* ロゴマーク画像は左に映写光が付くため、円の中心は画像幅の約64.9%の位置。英字ロゴの中心をそこへ合わせる */
.hero__logo { --mark-w: clamp(200px, 42vw, 340px); display: grid; justify-items: center; gap: clamp(20px, 3vw, 32px); width: var(--mark-w); }
.hero__mark { width: 100%; }
.hero__type { width: calc(var(--mark-w) * .88); transform: translateX(calc(var(--mark-w) * .149)); }
.hero__title {
  font-size: clamp(1.7rem, 6.4vw, 3.2rem);
  font-weight: 300;
  white-space: nowrap;
  line-height: 1.3;
  letter-spacing: .06em;
  padding-bottom: .3em;
  border-bottom: 1px solid rgba(255, 255, 255, .8);
}
.hero__title .num { font-size: 1.25em; }
.hero__date { margin-top: .7em; font-size: clamp(1.05rem, 3vw, 1.6rem); font-weight: 300; letter-spacing: .04em; }
.hero__date .y { font-size: .78em; }
.hero__date small { font-size: .62em; }
.hero__art { position: relative; margin-top: clamp(-8px, -2vw, -24px); }
.hero__art img { width: 100%; max-width: 980px; margin-inline: auto; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero__logo { justify-self: center; }
  .hero__text { justify-self: center; }
}

/* ---------- Greeting ---------- */
.greeting__body { display: grid; gap: 1.1em; font-size: 1rem; line-height: 2; }
.greeting__lead { color: var(--red); font-size: clamp(1.2rem, 2.8vw, 1.45rem); font-weight: 700; line-height: 1.6; }
.greeting__sign { margin-top: 1.5em; text-align: right; color: var(--ink-sub); font-size: .9rem; }

/* ---------- Schedule ---------- */
.schedule-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.schedule-list a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 24px;
  padding: 16px 18px;
  background: #fff;
  text-decoration: none;
  transition: background-color .2s;
}
.schedule-list a:hover { background: #fffaf8; }
.schedule-list__date { color: var(--red); font-weight: 700; font-size: 1.05rem; }
.schedule-list__title { font-weight: 700; font-size: 1.08rem; line-height: 1.6; }
.schedule-list__sub { display: block; margin-top: 2px; color: var(--ink-sub); font-size: .82rem; font-weight: 400; }
.schedule-list__venue { display: flex; align-items: center; gap: 8px; color: var(--ink-sub); font-size: .92rem; }
.tag { display: inline-block; margin-left: .6em; padding: 0 .6em; background: var(--red); color: #fff; font-size: .72rem; font-weight: 500; vertical-align: .15em; border-radius: 2px; }

@media (min-width: 760px) {
  .schedule-list a { grid-template-columns: 9.5em 1fr 19em; align-items: center; padding: 18px 24px; }
}

/* venue pins */
.pin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
}
.pin--lg { font-size: 1rem; width: 2em; height: 2em; }

/* ---------- Works ---------- */
.work {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.work-grid { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work--wide { grid-column: 1 / -1; }
}

.work__venue-pin { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-sub); font-size: .85rem; }
.work__catch { color: var(--red); font-size: .92rem; font-weight: 500; }
.work__title { margin-top: 2px; font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 700; line-height: 1.45; }
.work__title::before { content: "「"; }
.work__title::after { content: "」"; }
.work__credit { margin-top: 8px; color: var(--ink-sub); font-size: .85rem; line-height: 1.7; }
.work__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; background: var(--tint); }
.work__media figcaption, .program__media figcaption { margin-top: 4px; color: var(--ink-sub); font-size: .75rem; }
.work__media--pair { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.work__media--pair img { aspect-ratio: auto; height: 100%; max-height: 300px; }
.work__media--pair figure:first-child img { object-position: center 30%; }
.work__media--pair figure { display: grid; grid-template-rows: 1fr auto; }
.work__body { display: grid; gap: .8em; font-size: .95rem; }
.work__event { padding: .7em 1em; background: var(--tint); font-size: .9rem; font-weight: 500; border-radius: 2px; }

.work__info { border-top: 1px solid var(--line); }
.work__info > div, .work__contact > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.work__info dt {
  align-self: start;
  padding: 2px 0;
  background: #fff;
  border: 1px solid var(--ink);
  font-size: .8rem;
  text-align: center;
  line-height: 1.6;
}
.work__info dd { font-size: .95rem; }
.work__info dd strong { display: block; font-size: 1.15rem; }
.work__info .time { display: block; font-size: .88rem; line-height: 1.6; }
.work__note { color: var(--ink-sub); font-size: .82rem; }

.work__cta { display: grid; gap: 14px; margin-top: 4px; }
.work__contact > div { grid-template-columns: 7.5em 1fr; font-size: .9rem; border-bottom-style: dotted; }
.work__contact dt {
  align-self: start;
  padding: 2px 6px;
  background: var(--red);
  color: #fff;
  font-size: .78rem;
  text-align: center;
}
.work__contact a { text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s;
}
.btn:hover { background: var(--red-deep); }


/* 特別招待作品（パンフの赤枠を踏襲） */
.work--feature { background: var(--red); border-color: var(--red); color: #fff; }
.work--feature .work__label {
  justify-self: start;
  padding: .2em .9em;
  background: #fff;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .15em;
}
.work--feature .work__catch,
.work--feature .work__credit,
.work--feature .work__note { color: #fff; }
.work--feature .work__catch { font-size: 1rem; }
.work--feature .work__event { background: rgba(255, 255, 255, .15); }
.work--feature .work__info, .work--feature .work__info > div, .work--feature .work__contact > div { border-color: rgba(255, 255, 255, .35); }
.work--feature .work__info dt { background: transparent; border-color: #fff; }
.work--feature .work__contact dt { background: #fff; color: var(--red); }
.work--feature .btn { background: #fff; color: var(--red); }
.work--feature .btn:hover { background: #ffe9e5; }
.work--feature .work__media figcaption { color: rgba(255, 255, 255, .85); }

@media (min-width: 900px) {
  .work--feature {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "label label"
      "head  media"
      "body  media"
      "info  cta"
      "note  cta";
    column-gap: 40px;
    padding: 40px;
  }
  .work--feature .work__label { grid-area: label; }
  .work--feature .work__head { grid-area: head; }
  .work--feature .work__media { grid-area: media; }
  .work--feature .work__body { grid-area: body; }
  .work--feature .work__info { grid-area: info; }
  .work--feature .work__note { grid-area: note; }
  .work--feature .work__cta { grid-area: cta; align-self: start; }
  .work--feature .work__title { font-size: 2rem; }
}

/* コウコウセイノエイガ */
.program { display: grid; gap: 16px; }
.program__part {
  justify-self: start;
  padding: .1em .8em;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  letter-spacing: .15em;
}
.program__list { display: grid; gap: 20px; }
.program__item { display: grid; gap: 12px; font-size: .92rem; }
.program__item > div { display: grid; gap: 6px; align-content: start; }
.program__title { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.program__title:not(:has(.program__title-name))::before { content: "『"; }
.program__title:not(:has(.program__title-name))::after { content: "』"; }
.program__title .num { margin-right: .3em; color: var(--red); }
.program__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.program__media--poster img { object-position: center 25%; }
.program__note { padding: .7em 1em; background: var(--tint); font-size: .88rem; }

@media (min-width: 600px) {
  .program__item { grid-template-columns: 220px 1fr; gap: 20px; }
}
@media (min-width: 900px) {
  .work--wide { grid-template-columns: 1.6fr 1fr; column-gap: 40px; }
  .work--wide .work__head, .work--wide .program { grid-column: 1; }
  .work--wide .work__head { grid-row: 1; }
  .work--wide .program { grid-row: 2 / span 3; }
  .work--wide .work__info { grid-column: 2; grid-row: 2; }
  .work--wide .work__cta { grid-column: 2; grid-row: 3; align-self: start; }
}

/* ---------- Sakaba ---------- */
.sakaba__card {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 4vw, 44px);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
}
.sakaba__text { display: grid; gap: 1em; align-content: start; font-size: .95rem; }
.sakaba__label { justify-self: start; padding: .15em .9em; background: var(--red); color: #fff; font-weight: 700; letter-spacing: .12em; }
.sakaba__title { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.5; }
.sakaba__catch { color: var(--red); font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.sakaba__addr { padding: 1em 1.2em; background: var(--tint); font-style: normal; font-size: .9rem; }
.sakaba__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) {
  .sakaba__card { grid-template-columns: 1.3fr 1fr; gap: 44px; }
  .sakaba__media img { aspect-ratio: auto; height: 100%; }
}

/* ---------- Venues ---------- */
.venues__layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .venues__layout { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 48px; } }

.map { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.map img { width: 100%; }
.map__pin, .map__label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.map__pin {
  display: grid;
  place-items: center;
  width: clamp(24px, 4.5vw, 34px);
  height: clamp(24px, 4.5vw, 34px);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: clamp(.75rem, 2vw, 1rem);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.map__label { padding: 0 .3em; background: rgba(255, 255, 255, .8); color: var(--ink); font-size: clamp(.6rem, 1.6vw, .8rem); white-space: nowrap; }
.map__label--station { font-weight: 700; }

.venue-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.venue { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.venue__name { font-size: 1.08rem; font-weight: 700; line-height: 1.5; }
.venue__name small { display: block; color: var(--ink-sub); font-size: .78rem; font-weight: 400; }
.venue a[href^="tel"] { text-underline-offset: 3px; }
.venue__map { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--red); font-weight: 500; text-underline-offset: 3px; }

.notes { display: grid; gap: .4em; margin-top: 28px; color: var(--ink-sub); font-size: .85rem; }

/* ---------- Sponsors ---------- */
.sponsors .tbd { margin-bottom: 24px; }
.sponsor-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sponsor-list li { display: grid; place-items: center; min-height: 96px; padding: 16px 20px; background: #fff; border-radius: var(--radius); }
.sponsor-list img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 760px) { .sponsor-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } .sponsor-list li { min-height: 120px; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 32px; background: var(--red); color: #fff; font-size: .88rem; }
.site-footer .container { display: grid; gap: 20px; justify-items: center; text-align: center; }
.site-footer__logo { width: 170px; }
.site-footer__info { display: grid; gap: 4px; }
.site-footer__info > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .4em; }
.site-footer__info dt { opacity: .85; }
.site-footer__info dt::after { content: "："; }
.site-footer__sns a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 999px; text-decoration: none; }
.site-footer__copy { opacity: .85; }

/* 1枚で余る作品カードは横長に */
@media (min-width: 900px) {
  .work--row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "head media" "body media" "info cta";
    column-gap: 40px;
  }
  .work--row .work__head { grid-area: head; }
  .work--row .work__media { grid-area: media; }
  .work--row .work__body { grid-area: body; align-self: start; }
  .work--row .work__info { grid-area: info; }
  .work--row .work__cta { grid-area: cta; align-self: start; }
  .work--row .work__media--pair img { max-height: 380px; }
}

/* コウコウセイノエイガ: 部の見出しと補足 */
.program__part-row { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; }
.program__part-note { color: var(--ink-sub); font-size: .85rem; }
.program__title .num { margin-right: .3em; color: var(--red); }
.program__title-name::before { content: "『"; }
.program__title-name::after { content: "』"; }

/* 作品の©表記 */
.work__copyright { color: var(--ink-sub); font-size: .75rem; }
.work__media--pair .work__copyright { grid-column: 1 / -1; }

/* ゲストのプロフィール */
.profile { padding: 1em 1.2em; border: 1px solid var(--line); border-radius: 2px; font-size: .88rem; line-height: 1.9; }
.profile__name { font-weight: 700; }

/* 大型協賛・クラウドファンディング告知 */
.sponsor-top { display: grid; gap: clamp(20px, 3vw, 28px); margin-bottom: clamp(28px, 4vw, 44px); }
.sponsor-main {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: center;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sponsor-main__label { justify-self: start; padding: .15em .9em; background: var(--red); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .12em; }
.sponsor-main__media img { width: 100%; max-width: 380px; border-radius: 2px; }

.crowdfunding {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.crowdfunding__text { display: grid; gap: 1em; align-content: start; justify-items: start; font-size: .95rem; }
.crowdfunding__title { color: var(--red); font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 700; line-height: 1.5; }
.crowdfunding__media img { width: 100%; max-width: 460px; margin-inline: auto; border-radius: 2px; }
@media (min-width: 900px) {
  .sponsor-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: stretch; }
}
