:root {
  --ink: #111111;
  --paper: #ffffff;
  --panel: #f1f2f4;
  --grid: #e6e7ea;
  --accent: #22e57a;
  --muted: #4a4e55;
  --col: 520px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: #f4f5f7;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .headline { word-break: auto-phrase; text-wrap: balance; line-break: strict; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lp {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px #dfe1e5;
}

.part { position: relative; margin: 0; }
.part img { display: block; width: 100%; height: auto; }

/* 画像内のボタンに重ねる実リンク */
.hit {
  position: absolute;
  display: block;
  min-height: 44px;
  border-radius: 8px;
  outline-offset: 3px;
}
.hit:focus-visible { outline: 3px solid var(--ink); }

/* FV の見せ場：タイムラインを走る再生ヘッド */
/* 動画のブロック */
.media {
  padding: 32px 16px 40px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}
.media-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: .04em;
}
.media-label::before { content: ""; width: 12px; height: 12px; background: var(--accent); }
.media h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}
.frame {
  position: relative;
  padding: 10px;
}
.frame::before, .frame::after, .frame > .c1, .frame > .c2 {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 0 solid var(--ink);
}
.frame::before { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; }
.frame::after { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; }
.frame > .c1 { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; }
.frame > .c2 { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; }
.frame video { display: block; width: 100%; height: auto; background: #000; }

/* 作品の再生ダイアログ */
dialog.player {
  width: min(92vw, 440px);
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}
dialog.player::backdrop { background: rgba(17,17,17,.82); }
.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 16px;
  background: var(--ink);
  font-size: 15px;
}
.player-close {
  min-width: 44px; min-height: 44px;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.player-body video, .player-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  border: 0;
  background: #000;
}
.player-body.wide iframe { aspect-ratio: 16 / 9; }

/* 申込みブロック */
.join {
  padding: 48px 16px 120px;
  background: var(--ink);
  color: #fff;
}
.join-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 2px 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.join h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.45;
}
.join p { margin: 0 0 20px; color: #e6e7ea; }
.line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid #fff;
}
.join small {
  display: block;
  margin-top: 22px;
  color: #c9ccd1;
  font-size: 14px;
  line-height: 1.8;
}
.join .org { margin-top: 28px; font-size: 14px; color: #9ca1a8; }

/* 追従CTA（FVを過ぎてから） */
.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--col);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--ink);
  transform: translate(-50%, 110%);
  transition: transform .3s ease;
  z-index: 10;
}
.dock.show { transform: translate(-50%, 0); }
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  .dock { transition: none; }
}
