/* ---------- 動画視聴ページ (movie-*.html) ---------- */

.movie-page {
  max-width: 860px;
  margin: 0 auto;
}

/* ---------- ページタイトル (カテゴリバッジ + 見出し + メタ情報) ---------- */

.movie-hero {
  position: relative;
  text-align: center;
  margin: 8px 0 40px;
  padding-bottom: 26px;
}

/* 見出し下のアクセントライン */
.movie-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #063179, #4c7fd0);
}

.movie-eyebrow {
  display: inline-block;
  background: #e4ebf9;
  color: #063179;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.movie-eyebrow-accent {
  background: #063179;
  color: #fff;
}

.movie-page-title {
  color: #063179;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

/* 意味の切れ目で改行させるための単位 (狭い画面では自由に折り返す) */
.movie-page-title .title-unit {
  display: inline-block;
  white-space: nowrap;
}

.movie-page-meta {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #4a6280;
  letter-spacing: 0.04em;
}

/* 左に縦バーを持つ見出し (概要 / 視聴方法) */
.movie-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #063179;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 44px 0 16px;
}

.movie-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 1.15em;
  background: #063179;
  border-radius: 2px;
}

.movie-page p {
  line-height: 1.9;
  margin: 8px 0;
}

/* 補足注記 (※〜) */
.movie-page p.movie-note {
  margin-top: 12px;
  font-size: 14px;
  color: #4a6280;
  line-height: 1.8;
}

/* ---------- テーマ ---------- */

.movie-theme {
  background: #f5f8fd;
  border-left: 4px solid #063179;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 8px 0 0;
}

.movie-page p.movie-theme-main {
  margin: 0;
  color: #063179;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.movie-page p.movie-theme-sub {
  margin: 6px 0 0;
  color: #33415c;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* ---------- 講師 ---------- */

.movie-speaker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #d5dce8;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 8px 0 0;
  box-shadow: 0 2px 8px rgba(6, 49, 121, 0.04);
}

.movie-page p.movie-speaker-name {
  margin: 0;
  color: #063179;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.movie-page p.movie-speaker-affiliation {
  margin: 0;
  color: #4a6280;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- フォーム ---------- */

.movie-form {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.movie-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.movie-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.movie-form label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #33415c;
}

.movie-form .required-mark {
  color: #b3261e;
  margin-left: 2px;
}

.movie-form input[type="text"],
.movie-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dce8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.movie-form input::placeholder {
  color: #b6bfcd;
}

.movie-form input:focus {
  outline: none;
  border-color: #2a5cc8;
  box-shadow: 0 0 0 3px rgba(42, 92, 200, 0.15);
}

.movie-form input.invalid {
  border-color: #b3261e;
}

.movie-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.movie-form .error-message {
  color: #b3261e;
  font-size: 13px;
  margin: 0;
  min-height: 0;
}

.movie-consent {
  margin-top: 4px;
}

.movie-consent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.movie-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #063179;
}

.movie-consent-note {
  margin-top: 12px;
  padding-left: 1em;
  text-indent: -1em;
  font-size: 14px;
  line-height: 1.9;
}

.movie-message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.movie-message.error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.movie-message.info {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.movie-hidden {
  display: none !important;
}

/* 視聴するボタン */
.movie-submit-row {
  text-align: center;
  margin-top: 12px;
}

.movie-submit-btn {
  min-width: 260px;
  background: #1f5fa8;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.08em;
  padding: 14px 48px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 49, 121, 0.2);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.movie-submit-btn:hover:not(:disabled) {
  background: #174b86;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 49, 121, 0.28);
}

.movie-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- ご視聴に関するお願い ---------- */

.movie-notice {
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.9;
  color: #4a576d;
}

.movie-notice-title {
  font-weight: 700;
  color: #33415c;
  margin: 0 0 4px;
}

.movie-notice ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.movie-notice li {
  position: relative;
  padding-left: 1.1em;
}

.movie-notice li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: 8px;
  top: 0.75em;
}

/* ---------- プレーヤーページ ---------- */

.movie-player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 48, 92, 0.18);
  margin-top: 8px;
}

.movie-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.movie-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.movie-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #063179;
  color: #063179;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.movie-back-link:hover {
  background: #063179;
  color: #fff;
}

@media (max-width: 600px) {
  .movie-hero {
    margin-bottom: 28px;
    padding-bottom: 20px;
  }
  .movie-eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .movie-page-title {
    font-size: 20px;
  }
  .movie-page-title .title-unit {
    white-space: normal;
  }
  .movie-theme,
  .movie-speaker {
    padding: 14px 16px;
  }
  .movie-page p.movie-theme-main,
  .movie-page p.movie-speaker-name {
    font-size: 16px;
  }
  .movie-page p.movie-theme-sub {
    font-size: 14px;
  }
  .movie-page-meta {
    margin-top: 10px;
    font-size: 13px;
  }
  .movie-heading {
    font-size: 18px;
    margin-top: 36px;
  }
  .movie-name-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .movie-submit-btn {
    width: 100%;
    min-width: 0;
    font-size: 18px;
    padding: 14px 20px;
  }
}
