@charset "UTF-8";
/* ==========================================================================
   『恋するけだもの』×『超・白石晃士！自主制作映画の楽しみ方』特設サイト
   モバイルファースト。ブレークポイント：768px / 1024px / 1440px
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --yellow: #fff000;   /* ポスター・タイトルロゴの地色 */
  --red: #e60012;
  --cyan: #00a0e9;
  --magenta: #e4007f;
  --gray: #b9b9b9;

  /* 見出し用：Noto Sans JP の最太ウェイト（Black） */
  --font-display: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;

  --content-max: 1110px;  /* PCのコンテンツ最大幅（FIDFF公式サイトに合わせる） */
  --gutter: max(clamp(20px, 5.5vw, 72px), calc((100vw - var(--content-max)) / 2));
  --hv: min(1vw, 12.48px); /* HERO用の単位：コンテンツ幅が上限に達したら拡大を止める */
  --header-h: 56px;
  --slant: 4vw;
  --sticky-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.6vw + 13px, 18px);
  line-height: 1.9;
  overflow-wrap: anywhere;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

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

.u-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.u-pc { display: none; }
.u-ib { display: inline-block; }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  padding: 12px 16px; background: var(--yellow); color: var(--black); font-weight: 700;
}
.skip:focus { top: 8px; }

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3em .7em;
  min-height: 56px; padding: .6em 1.4em;
  background: var(--yellow); color: var(--black);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(16px, 4.4vw, 20px); line-height: 1.3;
  text-decoration: none; text-align: center;
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn small {
  padding: .15em .6em; background: var(--black); color: var(--yellow);
  font-size: .78em; white-space: nowrap;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--red); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--red); }
.btn--small { min-height: 44px; font-size: 15px; padding: .4em 1.1em; box-shadow: 4px 4px 0 var(--red); }

/* ----- 差し替え待ちの仮領域（原稿を入れたら class="todo" と data-todo を外す） ----- */
.todo {
  position: relative;
  padding: 1.6em 1em 1em;
  border: 2px dashed currentColor;
  font-size: .92em;
}
.todo::before {
  content: attr(data-todo);
  position: absolute; left: -2px; top: -2px;
  padding: 0 .7em; background: var(--magenta); color: var(--white);
  font-size: 12px; font-weight: 700; line-height: 1.8;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 0 0 var(--gutter);
  background: var(--black);
  border-bottom: 1px solid #2a2a2a;
}
.header__brand {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px; text-decoration: none; line-height: 1.2;
}
.header__brand-sub { font-size: 10px; font-weight: 700; color: var(--yellow); letter-spacing: .04em; }
.header__brand-main { font-family: var(--font-display); font-weight: 900; font-size: 16px; }

.header__toggle {
  width: var(--header-h); height: var(--header-h);
  display: grid; place-items: center;
  background: var(--yellow); border: 0; cursor: pointer; color: var(--black);
}
.header__toggle-bars,
.header__toggle-bars::before,
.header__toggle-bars::after {
  display: block; width: 24px; height: 3px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.header__toggle-bars { position: relative; }
.header__toggle-bars::before, .header__toggle-bars::after { content: ""; position: absolute; left: 0; }
.header__toggle-bars::before { top: -8px; }
.header__toggle-bars::after { top: 8px; }
.header__toggle[aria-expanded="true"] .header__toggle-bars { background: transparent; }
.header__toggle[aria-expanded="true"] .header__toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.header__toggle[aria-expanded="true"] .header__toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

.gnav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  display: flex; flex-direction: column; gap: 28px;
  padding: 16px var(--gutter) 40px;
  background: var(--black);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility .2s;
}
.gnav.is-open { visibility: visible; opacity: 1; }
.gnav__list a {
  display: flex; align-items: center; min-height: 60px;
  border-bottom: 1px solid #333;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; text-decoration: none;
}
.gnav__list a:hover { color: var(--yellow); }
.gnav__ticket { align-self: stretch; min-height: 56px; font-size: 18px; }
/* JSが無い環境ではメニューを常時表示 */
html:not(.js) .header { height: auto; flex-wrap: wrap; padding-right: var(--gutter); }
html:not(.js) .header__toggle { display: none; }
html:not(.js) .gnav { position: static; visibility: visible; opacity: 1; padding: 0 0 12px; gap: 8px; width: 100%; }

/* ==========================================================================
   ① HERO
   ========================================================================== */
.hero { background: var(--black); overflow-x: clip; padding-bottom: var(--slant); } /* タイトル演出の拡大で横スクロールを出さない */
.hero__kv { display: block; overflow: hidden; background: var(--yellow); }
.hero__kv img { width: 100%; }

.hero__film { display: none; }
.hero__talk { display: block; padding: 28px var(--gutter) 0; }
.hero__talk img { width: 100%; }
.hero__x { display: none; }

.hero__data { padding: 20px var(--gutter) 56px; }
.hero__label {
  font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; line-height: 1.5; color: var(--gray);
}
.hero__label-kind {
  display: inline-block; margin-top: 6px; padding: .1em .7em;
  background: var(--white); color: var(--black);
  font-family: var(--font-display); font-weight: 900; font-size: 1.15em;
}

.hero__date {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: .14em;
  margin-top: 24px;
  font-family: var(--font-display); font-weight: 900; line-height: 1; color: var(--yellow);
  font-size: clamp(76px, 25vw, 132px);
}
.hero__year { grid-column: 1 / -1; font-size: .2em; color: var(--white); letter-spacing: .08em; }
.hero__md { letter-spacing: -.03em; line-height: .95; white-space: nowrap; }
.hero__dow {
  display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .3em;
}
.hero__time { white-space: nowrap; grid-column: 1 / -1; margin-top: .25em; font-size: .36em; color: var(--white); letter-spacing: -.01em; }

.hero__venue {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 6.2vw, 30px); line-height: 1.35;
}

.hero__guests { margin-top: 28px; padding-top: 24px; border-top: 3px solid var(--white); }
.hero__guests-tag {
  display: inline-block; padding: .1em .8em; margin-bottom: 8px;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(14px, 4vw, 18px); line-height: 1.6;
}
.hero__guests-names {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 11.4vw, 56px); line-height: 1.2;
}
.hero__guests-names span { white-space: nowrap; }
.hero__guests-names small { font-size: .42em; margin-left: .3em; color: var(--yellow); }

.hero__btn { display: flex; margin-top: 32px; margin-right: 6px; }

/* ==========================================================================
   セクション共通
   ========================================================================== */
.sec { padding: clamp(72px, 13vw, 170px) var(--gutter); position: relative; }
.sec__head { margin-bottom: clamp(28px, 4.5vw, 56px); }
.sec__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 7.6vw, 56px); line-height: 1.2; letter-spacing: 0;
}
.sec__title--sub { font-size: clamp(26px, 6.4vw, 44px); }
.sec__en {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(13px, 3.4vw, 18px); line-height: 1.4;
  letter-spacing: .12em; color: var(--red);
}

/* 斜めの切り替え（前のセクションに食い込ませる） */
.talk, .guest, .film, .info, .ticket { margin-top: calc(var(--slant) * -1); }
.talk, .film, .info { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }
.guest, .ticket { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }

/* ==========================================================================
   ② 登壇ゲスト
   ========================================================================== */
.guest { background: var(--black); padding-top: calc(clamp(72px, 13vw, 170px) + var(--slant)); padding-bottom: calc(clamp(72px, 13vw, 170px) + var(--slant)); }
.guest__list { display: flex; flex-direction: column; gap: 88px; }

.guest-card__photo { width: 84%; overflow: hidden; box-shadow: 14px 14px 0 var(--red); }
.guest-card--uno .guest-card__photo { margin-left: auto; box-shadow: -14px 14px 0 var(--cyan); }
.guest-card__photo img { width: 100%; transition: transform .6s ease; }
.guest-card:hover .guest-card__photo img { transform: scale(1.04); }

.guest-card__text { position: relative; margin-top: 30px; }
.guest-card__role { font-size: clamp(13px, 3.6vw, 16px); font-weight: 700; line-height: 1.6; color: var(--yellow); }
.guest-card__badge {
  display: inline-block; margin-right: .8em; padding: 0 .7em;
  background: var(--cyan); color: var(--black);
  font-family: var(--font-display); font-weight: 900;
}
.guest-card__name {
  margin-top: 6px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 10vw, 48px); line-height: 1.2; letter-spacing: 0; white-space: nowrap;
}
.guest-card__name small { font-size: .4em; margin-left: .35em; letter-spacing: 0; }
.guest-card__en { font-size: 13px; letter-spacing: .14em; color: var(--gray); }
.guest-card__profile { margin-top: 20px; max-width: 34em; }

/* ==========================================================================
   ③ 公開トーク
   ========================================================================== */
.talk { background: var(--red); color: var(--white); padding-top: calc(clamp(72px, 13vw, 170px) + var(--slant)); padding-bottom: calc(clamp(72px, 13vw, 170px) + var(--slant)); }
.talk__inner { max-width: 1200px; margin: 0 auto; }
.talk .sec__head { margin-bottom: clamp(20px, 3vw, 40px); }
.talk .sec__en { color: var(--black); }
.talk__title img { width: 100%; max-width: 1040px; filter: drop-shadow(6px 6px 0 var(--black)); }
.talk__body { margin-top: clamp(36px, 6vw, 72px); display: grid; gap: 32px; }
.talk__text { max-width: 38em; }
.talk__text p + p { margin-top: 1em; }
.talk__lead { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 6.4vw, 34px); line-height: 1.4; }
.talk__cast dt {
  display: inline-block; padding: .1em .8em; background: var(--black); color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(14px, 4vw, 18px); line-height: 1.6;
}
.talk__cast dd { margin-top: 14px; }
/* 登壇者2人の写真：同じ大きさ（縦横比4:5）で並べる */
.talk__guests { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 20px); max-width: 460px; }
.talk__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 6px 6px 0 var(--black);
}
.talk__photo--shiraishi { object-position: 50% 22%; }
.talk__photo--uno { object-position: 50% 30%; }
.talk__name {
  display: block; margin-top: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(16px, 4.6vw, 22px); line-height: 1.4;
}

/* ==========================================================================
   ④ 作品紹介
   ========================================================================== */
.film { background: var(--yellow); color: var(--black); padding-top: calc(clamp(72px, 13vw, 170px) + var(--slant)); }
.film .sec__en { color: var(--red); }
.film__grid { display: grid; gap: 48px; }
.film__poster { width: 88%; margin: 0 auto; box-shadow: 10px 10px 0 var(--black); }
.film__poster img { width: 100%; }
.film__title img { width: 100%; max-width: 760px; margin-left: -2%; }
.film__copy {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 9.4vw, 68px); line-height: 1.25; letter-spacing: -.02em;
  color: var(--black);
}
.film__block { margin-top: clamp(40px, 6vw, 64px); }
.film__h {
  display: inline-block; margin-bottom: 16px; padding: .1em .9em;
  background: var(--black); color: var(--yellow);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(15px, 4vw, 18px); line-height: 1.7;
}
.film__story { max-width: 38em; }
.film__cast { display: flex; flex-wrap: wrap; gap: .2em 1.1em; font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 5.6vw, 30px); line-height: 1.5; }
.film__staff { display: grid; gap: 0; border-top: 2px solid var(--black); }
.film__staff > div { display: grid; grid-template-columns: minmax(8.5em, 38%) 1fr; gap: 12px; padding: .55em 0; border-bottom: 1px solid rgba(0,0,0,.55); line-height: 1.6; }
.film__staff dt { font-size: .82em; font-weight: 700; padding-top: .15em; }
.film__staff dd { font-weight: 700; }
.film__spec { margin-top: 14px; font-weight: 700; }
.film__trailer { position: relative; aspect-ratio: 16 / 9; background: var(--black); box-shadow: 10px 10px 0 var(--black); }
.film__trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   ⑤ 場面写真
   ========================================================================== */
.gallery { background: var(--black); padding-bottom: calc(clamp(72px, 13vw, 170px) + var(--slant)); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 8px; }
/* 大きく見せる3枚（2列×2行）。1・10・17枚目。この位置なら2列でも4列でも空きが出ない */
.gallery__grid li:nth-child(1), .gallery__grid li:nth-child(10), .gallery__grid li:nth-child(17) { grid-column: span 2; grid-row: span 2; }
.gallery__item { display: block; overflow: hidden; width: 100%; height: 100%; aspect-ratio: 3 / 2; background: #161616; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.gallery__item::after {
  content: "＋"; position: absolute; right: 0; bottom: 0;
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--yellow); color: var(--black); font-weight: 700; font-size: 18px;
  transform: translate(100%, 100%); transition: transform .25s ease;
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); filter: saturate(1.25) contrast(1.05); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { transform: none; }
.gallery__credit { margin-top: 16px; font-size: 12px; color: var(--gray); text-align: right; }

/* ==========================================================================
   ⑥ 開催概要
   ========================================================================== */
.info { background: var(--white); color: var(--black); padding-top: calc(clamp(72px, 13vw, 170px) + var(--slant)); padding-bottom: calc(clamp(72px, 13vw, 170px) + var(--slant)); }
.info .sec__en { color: var(--red); }
.info__list { max-width: var(--content-max); border-bottom: 4px solid var(--black); }
.info__row { padding: 22px 0 24px; border-top: 4px solid var(--black); }
.info__row dt { font-family: var(--font-display); font-weight: 900; font-size: clamp(15px, 4vw, 19px); line-height: 1.5; color: var(--red); }
.info__row dd { margin-top: 6px; font-weight: 600; }
.info__row dd p + p, .info__row dd ul + p, .info__row dd p + ul { margin-top: 10px; }
.info__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 6.8vw, 40px); line-height: 1.35; letter-spacing: -.01em; }
.info__note { margin-top: 6px; font-size: .9em; font-weight: 600; }
.info__access li { padding-left: 1.1em; text-indent: -1.1em; }
.info__access li span { text-indent: 0; }
.info__access li::before { content: "・"; }
.info__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.info__link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--black);
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.info__link:hover { background: var(--yellow); }

/* ==========================================================================
   ⑦ チケット
   ========================================================================== */
.ticket { background: var(--black); padding: calc(clamp(72px, 13vw, 170px) + var(--slant)) var(--gutter) clamp(72px, 12vw, 150px); position: relative; }
.ticket__inner {
  position: relative; max-width: 920px; margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) clamp(20px, 6vw, 72px) clamp(36px, 7vw, 72px);
  background: var(--yellow); color: var(--black); text-align: center;
  box-shadow: 10px 10px 0 var(--red);
}
/* 半券の切り欠き */
.ticket__inner::before, .ticket__inner::after {
  content: ""; position: absolute; top: 50%; width: 28px; height: 28px; border-radius: 50%; background: var(--black);
}
.ticket__inner::before { left: -14px; }
.ticket__inner::after { right: -14px; box-shadow: inset 10px 0 0 -0px var(--black); }
.ticket__en { font-family: var(--font-display); font-weight: 900; font-size: clamp(13px, 3.4vw, 18px); letter-spacing: .12em; color: var(--red); line-height: 1.4; }
.ticket__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 7.6vw, 56px); line-height: 1.2; }
.ticket__when { margin-top: 18px; font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 6vw, 34px); line-height: 1.4; }
.ticket__when > span:first-of-type { font-size: .7em; }
.ticket__where { display: inline-block; font-size: .72em; }
.ticket__price { margin-top: 22px; padding-top: 22px; border-top: 3px dashed var(--black); line-height: 1.2; }
.ticket__price span { display: block; font-weight: 700; font-size: clamp(14px, 3.8vw, 18px); }
.ticket__price strong { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 900; font-size: clamp(50px, 17vw, 132px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.ticket__price small { font-size: .32em; margin-left: .1em; letter-spacing: 0; }
.ticket__btn {
  display: flex; margin: 28px 6px 0 0; min-height: 68px;
  background: var(--black); color: var(--yellow); border-color: var(--black);
  font-size: clamp(17px, 4.8vw, 26px);
}
.ticket__btn:hover { background: var(--red); color: var(--white); }
.ticket__note { margin-top: 20px; font-family: var(--font-display); font-weight: 900; font-size: clamp(16px, 4.4vw, 22px); line-height: 1.5; }
.ticket__note--sub { margin-top: 10px; font-family: var(--font-body); font-size: .9em; font-weight: 700; line-height: 1.7; }

/* ==========================================================================
   ⑧ フッター
   ========================================================================== */
.footer { background: var(--black); border-top: 1px solid #2a2a2a; padding: 48px var(--gutter) calc(48px + var(--sticky-h)); font-size: 14px; line-height: 1.8; }
.footer__inner { display: grid; gap: 28px; }
.footer__top { display: grid; gap: 12px; }
.footer__logo { display: block; width: 180px; }
.footer__logo img { width: 100%; }
.footer__link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 5px; }
.footer__link a:hover { color: var(--yellow); }
.footer__dl { border-top: 1px solid #333; }
.footer__dl > div { display: grid; grid-template-columns: 3.4em 1fr; gap: 0 1em; padding: 12px 0; border-bottom: 1px solid #333; }
.footer__dl dt { color: var(--yellow); font-weight: 700; }
.footer__contact { margin-top: 2px; }
.footer__contact > span { margin-right: 1.2em; }
.footer__contact a { display: inline-block; padding: 10px 0; text-underline-offset: 4px; }
.footer__contact a:hover { color: var(--yellow); }
/* 助成ロゴ（白地で使うロゴのため白い台紙に載せる） */
.footer__support { justify-self: start; max-width: 100%; padding: 16px 20px 14px; background: var(--white); color: var(--black); font-size: 12px; font-weight: 600; line-height: 1.6; }
.footer__support-logos { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.footer__support-logos img { width: calc((100% - 20px) / 2); max-width: 124px; }
.footer__copy { font-size: 12px; color: var(--gray); }

/* ==========================================================================
   スマートフォン・タブレット：画面下部の固定チケットボタン
   ========================================================================== */
.sticky-ticket {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--black); border-top: 3px solid var(--yellow);
  transition: transform .25s ease;
}
.sticky-ticket.is-hidden { transform: translateY(110%); }
.sticky-ticket__meta { flex: none; display: flex; flex-direction: column; font-size: 11px; font-weight: 700; line-height: 1.45; }
.sticky-ticket__meta strong { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--yellow); }
.sticky-ticket__btn {
  flex: 1 1 auto; max-width: 420px; min-height: 50px; padding: .3em .8em; flex-wrap: nowrap;
  font-size: clamp(14px, 4.2vw, 18px); white-space: nowrap; box-shadow: none; border: 0;
}
.sticky-ticket__btn:hover { transform: none; box-shadow: none; background: var(--white); }
@media (max-width: 1023.98px) {
  :root { --sticky-h: 70px; }
}

/* ==========================================================================
   ページの先頭へ戻るボタン
   ========================================================================== */
.pagetop {
  position: fixed; right: 12px; bottom: calc(var(--sticky-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: none; /* スマートフォン・タブレットでは非表示。PC（1024px〜）のみ表示 */
  place-items: center; align-content: center; gap: 1px;
  width: 56px; height: 56px;
  background: var(--black); color: var(--yellow); border: 2px solid var(--yellow);
  font-family: var(--font-display); font-weight: 900; font-size: 9px; line-height: 1.2; letter-spacing: .04em;
  text-decoration: none; text-align: center;
  transition: opacity .25s ease, visibility .25s, transform .25s ease, background-color .15s ease, color .15s ease;
}
.pagetop:hover { background: var(--yellow); color: var(--black); }
/* JSが有効なときは、メインビジュアルを過ぎるまで隠す */
.js .pagetop:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(8px); }

/* ==========================================================================
   場面写真の拡大表示
   ========================================================================== */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .95); color: var(--white);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox__figure { display: grid; grid-template-rows: 1fr auto; place-items: center; height: 100%; padding: 64px 12px 20px; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { min-height: 52px; font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: .1em; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--yellow); color: var(--black); border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; font-weight: 700; font-family: var(--font-body);
}
.lightbox__btn:hover { background: var(--white); }
.lightbox__btn--close { top: 8px; right: 8px; }
.lightbox__btn--prev { left: 8px; bottom: 12px; }
.lightbox__btn--next { right: 8px; bottom: 12px; }

/* ==========================================================================
   演出（動きを減らす設定では無効）
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* タイトル演出：キービジュアルが焼き付き、ロゴが叩きつけられる */
  .hero__kv img { animation: kv-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__film img, .hero__talk img { animation: slam .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  .hero__film img { animation-delay: .35s; }
  .hero__talk img { animation-delay: .6s; }
  .hero__x { animation: slam .4s cubic-bezier(.2, 1.4, .4, 1) .5s both; }
  @keyframes kv-in {
    from { transform: scale(1.08); filter: brightness(2.2) saturate(0); }
    to { transform: none; filter: none; }
  }
  @keyframes slam {
    from { opacity: 0; transform: scale(1.25) rotate(-2deg); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   タブレット（768px〜）
   ========================================================================== */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .u-sp { display: none; }
  .u-pc { display: inline; }

  .header__brand-sub { font-size: 11px; }
  .header__brand-main { font-size: 18px; }

  /* HERO：横長トリミング＋黄色の帯にタイトルロゴ */
  .hero__kv { background: var(--black); }
  .hero__kv img { margin: 0 auto; } /* 切り抜かず全体を表示 */
  .hero__title {
    position: relative; display: grid; grid-template-columns: 54fr 46fr;
    margin-top: -3vw;
  }
  .hero__film {
    display: flex; align-items: center;
    padding: 6vw 6vw 2.4vw 3vw;
    background: var(--yellow);
    clip-path: polygon(0 4vw, 100% 0, 88% 100%, 0 100%);
  }
  .hero__film img { width: 100%; }
  .hero__talk {
    position: relative; display: flex; align-items: center;
    margin-top: 5vw; padding: 2vw var(--gutter) 2vw 1vw;
  }
  .hero__x {
    display: block; position: absolute; left: -5.2vw; top: 50%;
    font-family: var(--font-display); font-weight: 900; font-size: 5vw; line-height: 1; color: var(--red);
    translate: 0 -50%;
    text-shadow: 3px 3px 0 var(--black);
  }

  .hero__data {
    display: grid; grid-template-columns: auto 1fr; align-items: end;
    column-gap: clamp(28px, 5vw, 80px); row-gap: 0;
    padding: 28px var(--gutter) 72px;
  }
  .hero__label { grid-column: 1 / -1; font-size: 15px; }
  .hero__label-kind { margin: 0 0 0 1em; }
  .hero__date { grid-column: 1; grid-row: 2 / 4; margin-top: 18px; font-size: clamp(96px, 13vw, 190px); }
  .hero__venue { grid-column: 2; grid-row: 2; margin-top: 18px; font-size: clamp(20px, 2.6vw, 38px); }
  .hero__guests { grid-column: 2; grid-row: 3; margin-top: 16px; padding-top: 14px; }
  .hero__guests-names { flex-direction: row; flex-wrap: wrap; gap: 0 .6em; font-size: clamp(30px, 4.4vw, 68px); }
  .hero__btn { grid-column: 1 / -1; grid-row: 4; justify-self: start; display: inline-flex; margin-top: 36px; min-width: 340px; font-size: 22px; min-height: 64px; }

  /* ゲスト：段違いの2カラム */
  .guest__list { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: start; }
  .guest-card--shiraishi { grid-column: 1 / 7; }
  .guest-card--uno { grid-column: 8 / 13; margin-top: 26vw; }
  .guest-card__photo { width: 100%; box-shadow: 18px 18px 0 var(--red); }
  .guest-card--uno .guest-card__photo { box-shadow: -18px 18px 0 var(--cyan); }
  .guest-card__name { font-size: clamp(36px, 4.4vw, 56px); }

  .talk__body { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 48px; }


  .film__grid { grid-template-columns: 44fr 56fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
  .film__poster { width: 100%; position: sticky; top: calc(var(--header-h) + 24px); rotate: -2deg; box-shadow: 16px 16px 0 var(--black); }
  .film__copy { font-size: clamp(30px, 4.4vw, 68px); }
  .film__cast { font-size: clamp(20px, 2.4vw, 30px); }

  .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gallery__grid li:nth-child(10) { grid-column: 3 / span 2; }
  .gallery__grid li:nth-child(17) { grid-column: 1 / span 2; }

  .info__row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0 30px; }
  .info__row dd { margin-top: 0; }
  .info__row dt { padding-top: .2em; }
  .info__big { font-size: clamp(26px, 3.4vw, 40px); }

  .ticket__btn { display: inline-flex; margin-right: 0; padding: .6em 2.2em; }

  .ticket__where { margin-left: .8em; }

  .sticky-ticket { padding-left: var(--gutter); padding-right: var(--gutter); }
  .sticky-ticket__meta { font-size: 13px; }
  .sticky-ticket__meta { flex-direction: row; align-items: baseline; gap: 1em; }
  .sticky-ticket__meta strong { font-size: 20px; }

  .lightbox__figure { padding: 72px 76px 20px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: 50%; bottom: auto; translate: 0 -50%; }
}

/* ==========================================================================
   PC（1024px〜）
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 72px; --slant: 3.4vw; }

  .header { padding-right: var(--gutter); }
  .header__toggle { display: none; }
  .gnav {
    position: static; visibility: visible; opacity: 1; overflow: visible;
    flex-direction: row; align-items: center; gap: clamp(16px, 2.2vw, 36px); padding: 0;
    background: none;
  }
  .gnav__list { display: flex; gap: clamp(14px, 2vw, 32px); }
  .gnav__list a { min-height: 44px; border: 0; font-size: 15px; white-space: nowrap; }
  .gnav__ticket { align-self: center; min-height: 44px; font-size: 15px; white-space: nowrap; }

  /* HERO（PC）：黄色の帯にタイトルロゴと日付、右に公開トークと会場・登壇者 */
  /* メインビジュアルはコンテンツ幅（最大1110px）に収め、切り抜かない。
     画面の高さが足りないときは縦横比を保ったまま縮小する */
  .hero__kv { padding: 0 var(--gutter); }
  .hero__kv img {
    width: max(64%, min(100%, calc((100svh - var(--header-h) - max(35 * var(--hv), 385px)) * 2.384)));
  }
  .hero__body {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: calc((100vw - 100 * var(--hv)) / 2 + 54 * var(--hv)) 1fr; grid-template-rows: auto auto auto 1fr;
    margin-top: calc(-3 * var(--hv)); padding-bottom: 0;
  }
  .hero__body::before {
    content: ""; grid-column: 1; grid-row: 1 / -1; z-index: -1;
    background: var(--yellow);
    clip-path: polygon(0 calc(4 * var(--hv)), 100% 0, 92% 100%, 0 100%);
  }
  .hero__title, .hero__data { display: contents; }
  .hero__film {
    grid-column: 1; grid-row: 1;
    padding: calc(5.4 * var(--hv)) calc(9 * var(--hv)) 0 calc(var(--gutter) - 1 * var(--hv));
    background: none; clip-path: none;
  }
  .hero__talk { grid-column: 2; grid-row: 1; margin-top: calc(5 * var(--hv)); padding: calc(1.6 * var(--hv)) var(--gutter) calc(.6 * var(--hv)) calc(3 * var(--hv)); }
  .hero__x { left: calc(-3.4 * var(--hv)); font-size: calc(4.4 * var(--hv)); }
  .hero__label {
    position: absolute; right: 0; top: calc(5 * var(--hv) - 30px); z-index: 1;
    display: flex; align-items: center; gap: 1em; height: 34px; padding: 0 var(--gutter) 0 1.2em;
    background: var(--black); font-size: 13px; white-space: nowrap;
  }
  .hero__label-kind { margin: 0; }
  .hero__date {
    grid-column: 1; grid-row: 2 / -1; align-self: start;
    grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: .14em; align-items: center;
    margin: calc(.6 * var(--hv)) 0 0; padding: 0 calc(9 * var(--hv)) calc(3.2 * var(--hv)) var(--gutter);
    font-size: clamp(84px, calc(8 * var(--hv)), 168px); color: var(--red);
  }
  .hero__md { grid-column: 1; grid-row: 1 / 3; }
  .hero__year { grid-column: 2; grid-row: 1; align-self: end; font-size: .2em; color: var(--black); }
  .hero__dow { grid-column: 3; grid-row: 1; align-self: end; justify-self: start; margin-left: .4em; width: 1.7em; height: 1.7em; font-size: .19em; background: var(--black); }
  .hero__time { grid-column: 2 / 4; grid-row: 2; align-self: start; margin-top: .12em; font-size: .28em; color: var(--black); }
  .hero__venue, .hero__guests, .hero__btn { grid-column: 2; margin-left: calc(3 * var(--hv)); margin-right: var(--gutter); }
  .hero__venue { grid-row: 2; margin-top: 10px; font-size: clamp(20px, calc(2.1 * var(--hv)), 40px); white-space: nowrap; }
  .hero__guests { grid-row: 3; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; }
  .hero__guests-tag { margin: 0; flex: none; }
  .hero__guests-names { flex-wrap: nowrap; font-size: clamp(24px, calc(2.5 * var(--hv)), 48px); }
  .hero__btn { grid-row: 4; align-self: start; justify-self: start; margin-top: 18px; margin-bottom: 28px; min-width: 0; min-height: 56px; font-size: clamp(17px, calc(1.5 * var(--hv)), 24px); white-space: nowrap; }

  .guest__list { max-width: 1320px; margin: 0 auto; column-gap: 24px; }
  .guest-card--uno { margin-top: min(16vw, 190px); }
  .guest-card__photo { box-shadow: 24px 24px 0 var(--red); }
  .guest-card--uno .guest-card__photo { box-shadow: -24px 24px 0 var(--cyan); }
  .guest-card__text { margin-top: 44px; }

  .film__grid { max-width: 1320px; margin: 0 auto; grid-template-columns: 40fr 60fr; }
  .film__staff { grid-template-columns: 1fr 1fr; column-gap: 40px; }

  .gallery__grid { gap: 16px; }

  .info__list, .info .sec__head { margin-left: auto; margin-right: auto; max-width: var(--content-max); }
  .info__row { grid-template-columns: 240px 1fr; }

  .sticky-ticket { display: none; }

  .pagetop { display: grid; right: 24px; bottom: 24px; width: 64px; height: 64px; font-size: 10px; }

  .footer__top { grid-template-columns: 1fr auto; align-items: end; }
  .footer__dl > div { grid-template-columns: 5em 1fr; }
}

/* ==========================================================================
   大型ディスプレイ（1440px〜）
   ========================================================================== */
@media (min-width: 1440px) {
  .sec__head { max-width: 1320px; margin-left: auto; margin-right: auto; }
  .gallery__grid, .gallery__credit { max-width: 1560px; margin-left: auto; margin-right: auto; }
}
