@charset "UTF-8";
/**
 * Golf Form Video - 動画制作フォーム 追加スタイル
 * 基本スタイルは golf-form2.css を流用し、本ファイルでは差分のみ定義する
 */

/* 事前確認用ダミーの完了メッセージ（gf-alert の赤系ベースを緑系へ上書き） */
.gf-alert.--demo {
  background: #f0f7f0;
  border-color: #2e7d32;
  color: #1b5e20;
}

/* 冒頭の「ご利用時のお願い」注意書き */
.gf-form__notice {
  margin-top: 1.6rem;
  padding: 1.6rem 2rem;
  background: #f5f8ff;
  border: 1px solid #cdd8f0;
  border-radius: 0.6rem;
}
.gf-form__notice-ttl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #292929;
}
.gf-form__notice-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: #001e81;
}
.gf-form__notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gf-form__notice-list li {
  position: relative;
  padding-left: 2.6rem;
  font-size: 1.4rem;
  line-height: 1.9;
  color: #292929;
}
/* チェックマークは絵文字ではなく SVG（data-URI）で描画し、環境差をなくす */
.gf-form__notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.6rem;
  height: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%232e7d32'/%3E%3Cpath d='M7 12.3l3.2 3.2L17 8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* サンプル動画ラベル */
.gf-form__video-label {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #292929;
}

/* サンプル動画（YouTube iframe / レスポンシブ 16:9） */
.gf-form__video {
  position: relative;
  width: 100%;
  margin: 0 0 2.4rem;
  overflow: hidden;
  background: #000;
}

.gf-form__video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.gf-form__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* テンプレ分岐ブロック */
.gf-form__conditional {
  width: 100%;
}

.gf-form__conditional + .gf-form__conditional {
  margin-top: 0;
}

/* input 直上の参考画像 */
.gf-form__ref-img {
  margin: 0 0 1.2rem;
}

.gf-form__ref-img img {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  height: auto;
  vertical-align: bottom;
}

/* タイトル下の補足テキスト（指示書の「【 ○○ 】←この部分」） */
.gf-form__item-hint {
  color: #292929;
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ファイル未選択エラー時のハイライト */
.gf-form__file-area.is-error {
  border-color: #e74c3c;
}

/* ファイル名の下端（g/y 等のディセンダ）切れ対策 */
.gf-form__file-item-name {
  line-height: 1.6;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

/* ========================================
   動画選択ステップ：選択肢＋サンプル動画サムネ
   ======================================== */
/* 1選択肢 = ［◯ラジオ］［動画 ＋ テキスト］
   PC: 横一列・縦中央揃え / SP: ◯を左、右に動画→テキストの縦並び・上揃え */
.gf-form__radio-option {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* ラジオは丸だけ（テキストは別ラベルへ分離） */
.gf-form__radio-option .gf-form__radio {
  flex-shrink: 0;
  gap: 0;
}
.gf-form__radio-option .gf-form__radio input[type=radio] + span {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  padding-left: 0;
}

/* 動画＋テキストのまとまり */
.gf-form__radio-main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}

/* 選択肢テキスト */
.gf-form__radio-caption {
  cursor: pointer;
  color: #292929;
  font-size: 1.6rem;
  line-height: 1.5;
}

/* 選択肢名（テンプレート名） */
.gf-form__radio-name {
  display: block;
}

/* 選択肢の説明文（おすすめ用途など）。破線の下線でテキストを強調 */
.gf-form__radio-desc {
  display: block;
  margin-top: 0.4rem;
  color: #666;
  font-size: 1.3rem;
  line-height: 1.8;
  text-decoration: underline dashed;
  text-decoration-color: #b0b0b0;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* サンプル動画サムネイル（クリックでモーダル再生） */
.gf-form__video-thumb {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 16rem;
  max-width: 100%;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 0.4rem;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gf-form__video-thumb:hover {
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.18);
  transform: translateY(-0.1rem);
}
.gf-form__video-thumb:focus-visible {
  outline: 2px solid #001e81;
  outline-offset: 2px;
}

.gf-form__video-thumb-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover; /* hqdefault の上下黒帯をトリミング */
}

/* 中央の再生ボタン */
.gf-form__video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.2s;
}
.gf-form__video-thumb:hover .gf-form__video-thumb-play {
  background: #e3000f;
}
.gf-form__video-thumb-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.3rem;
  border-color: transparent transparent transparent #fff;
}

@media only screen and (max-width: 768px) {
  /* SP: ◯を左・上揃え、右に動画→テキストの縦並び */
  .gf-form__radio-option {
    align-items: flex-start;
  }
  .gf-form__radio-main {
    flex: 1;
    flex-direction: column-reverse; /* SP: テキストを上（ラジオの右隣）→ 動画を下 */
    align-items: flex-start;
    gap: 0.6rem;
  }
  .gf-form__video-thumb {
    width: 100%;
    max-width: 260px;
  }
  .gf-form__radio-caption {
    font-size: 1.4rem;
  }
}

/* ========================================
   サンプル動画モーダル
   ======================================== */
.gf-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.gf-video-modal.is-open {
  display: flex;
}
.gf-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.gf-video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 96rem;
}
.gf-video-modal__body {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.gf-video-modal__body::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.gf-video-modal__body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gf-video-modal__close {
  position: absolute;
  top: -4.4rem;
  right: 0;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.gf-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media only screen and (max-width: 768px) {
  .gf-video-modal {
    padding: 1.2rem;
  }
  .gf-video-modal__close {
    top: -3.8rem;
    width: 3.4rem;
    height: 3.4rem;
    font-size: 2.4rem;
  }
}

/* 動画選択ステップの注記（PCでは1行に収めるため少し小さく） */
.gf-form__step-note {
  font-size: 1.3rem;
}

@media only screen and (min-width: 769px) {
  .gf-form__step-note {
    font-size: 1.25rem;
  }
}

/* スライド区切り（ニュース／レストランメニュー／所属プロ紹介など複数スライド構成）
   中見出しは置かず、太線のみで境界を示す */
.gf-form__slide-sep {
  width: 100%;
  height: 0;
  margin: 3.6rem 0 2rem;
  border: 0;
  border-top: 0.4rem solid #001e81;
}

@media only screen and (max-width: 768px) {
  .gf-form__slide-sep {
    margin: 2.8rem 0 1.6rem;
  }
}
