/* 動画でわかる みんなシステムズ（/movies/） */
main:has(.mov-page) { margin-bottom: 0; }

.admin-bar .mov-hero { padding-top: calc(72px + 32px); }
@media (max-width: 782px) {
  .admin-bar .mov-hero { padding-top: calc(48px + 46px); }
}

.mov-page {
  --mov-yellow: #f7d13b;
  --mov-yellow-soft: #fff6cf;
  --mov-orange: #e07b39;
  --mov-navy: #1f2f3d;
  --mov-text: #2b3540;
  --mov-sub: #4a5660;
  --mov-line: #ece6d6;
  --mov-cream: #fffbf0;
  --mov-youtube: #e62117;
  color: var(--mov-text);
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  overflow: clip;
}

.mov-page *, .mov-page *::before, .mov-page *::after { box-sizing: border-box; }
.mov-page h1, .mov-page h2, .mov-page h3, .mov-page p, .mov-page figure, .mov-page ol, .mov-page ul { margin: 0; }
.mov-page a { text-decoration: none; }
.mov-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.mov-section { padding: 96px 0; scroll-margin-top: 88px; }
.mov-section--soft { background: var(--mov-cream); }

.mov-section-label { margin-bottom: 12px !important; color: var(--mov-orange); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.mov-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.mov-section-head h2 { color: var(--mov-navy); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.45; }
.mov-section-head > p:last-child { margin-top: 16px; color: var(--mov-sub); font-size: 16px; line-height: 1.9; }

/* ヒーロー */
.mov-hero { position: relative; padding: 72px 0 80px; background: linear-gradient(120deg, #fff8dc 0%, #fffdf5 55%, #fff1c2 100%); text-align: center; }
.mov-hero::before, .mov-hero::after { position: absolute; border-radius: 50%; content: ""; }
.mov-hero::before { top: -80px; left: -120px; width: 360px; height: 360px; background: rgba(247,209,59,.22); }
.mov-hero::after { right: -90px; bottom: -120px; width: 300px; height: 300px; border: 1px solid rgba(224,123,57,.25); }
.mov-hero__inner { position: relative; z-index: 1; }
.mov-eyebrow { margin-bottom: 18px !important; color: var(--mov-orange); font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.mov-hero__title { color: var(--mov-navy); font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.mov-hero__title span { position: relative; z-index: 0; font-size: 1em !important; font-weight: inherit; }
.mov-hero__title span::after { position: absolute; z-index: -1; right: 0; bottom: 4px; left: 0; height: .32em; background: var(--mov-yellow); content: ""; }
.mov-hero__lead { margin: 24px auto 0 !important; color: var(--mov-sub); font-size: 17px; line-height: 2; }
.mov-hero__facts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px !important; padding: 0; list-style: none; }
.mov-hero__facts li { padding: 10px 22px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(31,47,61,.08); color: var(--mov-navy); font-size: 15px; font-weight: 600; }
.mov-hero__facts strong { margin: 0 2px; color: var(--mov-orange); font-size: 20px; }

/* 目次 */
.mov-toc { padding: 40px 0; border-bottom: 1px solid var(--mov-line); background: #fff; }
.mov-toc__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.mov-toc__list a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; height: 100%; padding: 16px 18px; border: 1px solid var(--mov-line); border-radius: 8px; color: var(--mov-navy); transition: border-color .2s ease, background .2s ease; }
.mov-toc__list a:hover { border-color: var(--mov-yellow); background: var(--mov-yellow-soft); }
.mov-toc__num { grid-row: span 2; padding: 6px 10px; border-radius: 4px; background: var(--mov-yellow); font-size: 13px; font-weight: 700; }
.mov-toc__title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.mov-toc__meta { color: var(--mov-sub); font-size: 12px; }

/* 動画カード */
.mov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.mov-card__link { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--mov-line); border-radius: 10px; background: #fff; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.mov-card__link:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,47,61,.1); }
.mov-card__thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #f1ede2; }
.mov-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mov-card__link:hover .mov-card__thumb img { transform: scale(1.04); }
.mov-card__play { position: absolute; bottom: 8px; left: 8px; width: 44px; height: 30px; border-radius: 8px; background: rgba(230,33,23,.92); transition: background .2s ease; }
.mov-card__play::after { position: absolute; top: 50%; left: 50%; border-width: 7px 0 7px 12px; border-style: solid; border-color: transparent transparent transparent #fff; transform: translate(-40%, -50%); content: ""; }
.mov-card__link:hover .mov-card__play { background: var(--mov-youtube); }
.mov-card__time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px !important; font-weight: 600; }
.mov-card__body { flex: 1; padding: 18px 20px 22px; }
.mov-card__label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px !important; color: var(--mov-orange); font-size: 13px; font-weight: 700; }
.mov-card__title { color: var(--mov-navy); font-size: 16px; font-weight: 700; line-height: 1.6; }


/* 章 */
.mov-chapter__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin-bottom: 36px; }
.mov-chapter__num { grid-row: span 3; align-self: start; padding: 12px 16px; border-radius: 8px; background: var(--mov-navy); color: #fff; font-size: 15px; font-weight: 700; }
.mov-chapter__head h2 { color: var(--mov-navy); font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; line-height: 1.4; }
.mov-chapter__lead { color: var(--mov-sub); font-size: 16px; line-height: 1.85; }
.mov-chapter__meta { color: var(--mov-orange); font-size: 13px; font-weight: 700; }


/* CTA */
.mov-cta { padding: 96px 0; background: var(--mov-navy); color: #fff; text-align: center; }
.mov-cta .mov-section-label { color: var(--mov-yellow); }
.mov-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.5; }
.mov-cta__inner > p:not(.mov-section-label) { margin-top: 18px !important; color: #e3e8ec; font-size: 16px; line-height: 1.9; }
.mov-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
.mov-btn { display: inline-flex; min-height: 60px; align-items: center; justify-content: center; gap: 24px; padding: 14px 30px; border-radius: 6px; font-size: 16px; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease; }
.mov-btn:hover { transform: translateY(-2px); }
.mov-btn--primary { background: var(--mov-yellow); color: var(--mov-navy); box-shadow: 0 10px 26px rgba(247,209,59,.3); }
.mov-btn--primary:hover { color: var(--mov-navy); }
.mov-btn--youtube { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.mov-btn--youtube:hover { color: #fff; background: rgba(255,255,255,.08); }
.mov-cta .mov-cta__sub { color: #c9d2d9; font-size: 14px; }

/* モーダル */
.mov-modal { position: fixed; inset: 0; width: min(960px, calc(100% - 32px)); max-width: none; height: fit-content; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.mov-modal::backdrop { background: rgba(10,16,22,.82); }
.mov-modal__inner { position: relative; }
.mov-modal__player { aspect-ratio: 16 / 9; background: #000; }
.mov-modal__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.mov-modal__title { margin-top: 12px !important; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.6; }
.mov-modal__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); padding: 0; cursor: pointer; }
.mov-modal__close::before, .mov-modal__close::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; border-radius: 1px; background: #fff; content: ""; }
.mov-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mov-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mov-modal__close:hover { background: rgba(255,255,255,.3); }

@media (max-width: 960px) {
  .mov-grid, .mov-toc__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mov-pc-only { display: none; }
  .mov-shell { width: calc(100% - 32px); }
  .mov-section { padding: 64px 0; }
  .mov-hero { padding: 48px 0 56px; }
  .mov-hero__lead { font-size: 15px; text-align: left; }
  .mov-hero__facts li { padding: 8px 16px; font-size: 14px; }
  .mov-toc { padding: 28px 0; }
  .mov-grid, .mov-toc__list { grid-template-columns: 1fr; }
  .mov-grid { gap: 20px; }
  .mov-section-head { margin-bottom: 32px; text-align: left; }
  .mov-section-head > p:last-child { font-size: 15px; }
  .mov-chapter__head { grid-template-columns: 1fr; }
  .mov-chapter__num { grid-row: auto; justify-self: start; padding: 6px 12px; font-size: 13px; }
  .mov-chapter__lead { font-size: 15px; }
  .mov-cta { padding: 64px 0; }
  .mov-cta__inner > p:not(.mov-section-label) { font-size: 15px; text-align: left; }
  .mov-btn { width: 100%; }
}
