@charset "utf-8";
/**
 * 応募開始前のお知らせポップアップ
 *
 * 対象：/special/odyssey-film/ticket/（リピーター半券キャンペーンLP）
 *
 * 用途：
 *   リリース時点ではまだ応募期間前なので、
 *     ・応募規約・注意事項（2箇所 / .kiyakubtn）
 *     ・キャンペーンに応募するボタン（#present_oubo_btn a）
 *   のリンクを止めて、代わりに「応募期間は9月11日(金)10時から」の
 *   お知らせポップアップを出す。
 *
 *   ★応募開始（2026-09-11 10:00）後の戻し方
 *     index.html から次の2行を消すだけでよい。
 *       <link rel="stylesheet" href="css/before-open.css?ver=...">
 *       <script src="js/before-open.js?ver=..."></script>
 *     ポップアップのHTMLは before-open.js が生成しているので、
 *     index.html 側に消し残しは出ない。
 *
 * 納品物（common.css / pc.css / sp.css / contents.js）は一切変更していない。
 * このファイルと js/before-open.js だけで完結させている。
 *
 * 見た目は既存の応募規約モーダル（#kiyakuAll）に合わせているが、
 * 短い告知なので全画面ではなく中央の小さいカードにしている。
 *
 * 読み込み順：
 *   pc.css / sp.css より後。#beforeOpen* のIDセレクタしか使っていないので
 *   mw-override.css との前後関係は問わないが、
 *   「mw-override.css を最後に読む」という約束を崩さないよう手前に置く。
 */

/*---------------------------------------------
overlay
----------------------------------------------*/

/**
 * z-index は mw-override.css 6節で #kiyakuAll / #loader-bg を
 * 20000 に上げているので、それより上に置く。
 * （共通ヘッダーは .ly_headerSP:10000 / .un_menu:15000）
 */
#beforeOpenAll {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20010;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

#beforeOpenAll.is-open {
  display: block;
}

#beforeOpen_bg {
  background: #000;
  opacity: 0.85;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/*---------------------------------------------
box
----------------------------------------------*/

#beforeOpen_box {
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  width: 88%;
  max-width: 560px;
  padding: 45px 40px 35px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

/**
 * body の font-weight:500 / font-size:13px / line-height:1.8em を
 * 継承したままだと窮屈なので、ここで明示する。
 * 色は既存モーダルの見出しと同じ考え方で、本文は白。
 */
#beforeOpen_txt {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

/*---------------------------------------------
close
----------------------------------------------*/

/**
 * common.css の `* { border: 0 }` と main.css（destyle）の button リセットを
 * 上回るよう、IDセレクタで指定している。
 */
#beforeOpen_close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  margin: 30px auto 0;
  padding: 12px 42px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 300ms ease, background-color 300ms ease;
}

#beforeOpen_close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/*---------------------------------------------
SP
----------------------------------------------*/

@media screen and (max-width: 768px) {
  /**
   * 幅と文字サイズは「375px級の端末で1行目
   * （応募期間は、9月11日（金）10時からとなります。）が
   * 折り返さない」ことを基準に決めている。
   *   375px * 92% = 345px - 左右padding 40px = 305px
   *   本文 13px なら約286pxなので収まる。
   * これより文字を大きくしたり padding を広げると日付の途中で折り返す。
   */
  #beforeOpen_box {
    width: 92%;
    max-width: none;
    padding: 32px 20px 26px;
  }

  #beforeOpen_txt {
    font-size: 13px;
    line-height: 1.9;
  }

  #beforeOpen_close {
    margin-top: 25px;
    padding: 12px 34px;
    font-size: 13px;
  }
}
