@charset "utf-8";

/*
============================ STYLE CSS ==============================
  デザイン（幅750px）の寸法は --u（デザイン1pxぶんの幅）を使って
  calc(30 * var(--u)) のように書く。画面幅に合わせて伸び縮みする。

    1. 基本設定
    2. 枠組み（PCは背景を固定し、中央にスマホ幅で表示）
    3. ブロック（土台の画像に、同じ大きさの透過画像とボタンを重ねる）
    4. フッター
    5. ローディング
    6. 星
    7. アニメーション
====================================================================
*/

/* 1. 基本設定
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* JS が動くときは、ページ内リンクのスクロールを script.js で動かす（CSS と二重にならないように止める） */
html.js {
  scroll-behavior: auto;
}
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: #fff;
  background: #ebd565;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
p {
  margin: 0;
}

/* 2. 枠組み
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
.wrapCont {
  /* cqw が使えない古いブラウザ（iOS 15 以前など）向けに、画面幅から計算した値を先に入れておく */
  --u: calc(min(100vw, 480px) / 750);
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
  background: #ebd565;
}
.pcBg {
  display: none;
}
@media (min-width: 768px) {
  /* 背景は画面に固定（background-attachment: fixed は iPad などで効かないので、固定の要素にする） */
  .pcBg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #1f5e33 url(../img/pc_bg.jpg) center / cover no-repeat;
  }
  body {
    background: #1f5e33;
  }
  /* デザインどおり、スマホ画面の左右に白い線（10px） */
  .wrapCont {
    --u: calc(460px / 750);
    border-right: 10px solid #fff;
    border-left: 10px solid #fff;
  }
}
@supports (width: 1cqw) {
  .wrapCont {
    --u: calc(100cqw / 750);
  }
}

/* 3. ブロック
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
.blk {
  position: relative;
}
/* 土台と同じ大きさの透過画像（キャッチ・見出し・動く写真） */
.ovl {
  position: absolute;
  inset: 0;
}
.ovl img {
  height: 100%;
}
/* 読み込み前に alt の文字や壊れた画像のマークが見えないように（ページ内リンクで一気に移動したときなど） */
.blk img,
.ovl {
  color: transparent;
}

/* ページ内リンク（ギフト・グルメ・イベント） */
.kvNav {
  position: absolute;
  top: calc(607 * var(--u));
  right: calc(30 * var(--u));
  left: calc(30 * var(--u));
  display: flex;
  justify-content: space-between;
}
.kvNav a {
  width: calc(215 * var(--u));
}

/* 「詳しくはこちら」ボタン（幅600・高さ70）。top はブロックの上端からの位置 */
.btn {
  position: absolute;
  left: calc(75 * var(--u));
  width: calc(600 * var(--u));
  z-index: 2;
}
.btnGift,
.btnGourmet {
  top: calc(590 * var(--u));
}
.btnLottery {
  top: calc(1200 * var(--u));
}
.btnGunma {
  top: calc(885 * var(--u));
}
.btnRider {
  top: calc(445 * var(--u));
}
.btnMoldoll {
  top: calc(555 * var(--u));
}
/* 抽選会の終了後に使う「終了しました」（リンクなし） */
.btnEnded {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(70 * var(--u));
  border-radius: calc(16 * var(--u));
  background: #8c8c8c;
  font-size: calc(30 * var(--u));
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: default;
}

/* まだまだイベント盛りだくさん！ */
.btnMoreEvent {
  position: absolute;
  top: calc(24 * var(--u));
  left: calc(30 * var(--u));
  width: calc(690 * var(--u));
}

/* LINE・Instagram */
.btnLine,
.btnInstagram {
  position: absolute;
  left: calc(30 * var(--u));
  width: calc(690 * var(--u));
}
.btnLine {
  top: calc(70 * var(--u));
}
.btnInstagram {
  top: calc(216 * var(--u));
}

/* ボタンを押せることが分かるように（PCのマウスオーバー） */
@media (hover: hover) {
  .kvNav a,
  .btn[href],
  .btnMoreEvent img,
  .btnLine,
  .btnInstagram,
  .footerLink,
  .pagetop {
    transition: opacity 0.3s;
  }
  .kvNav a:hover,
  .btn[href]:hover,
  .btnMoreEvent:hover img,
  .btnLine:hover,
  .btnInstagram:hover,
  .footerLink:hover,
  .pagetop:hover {
    opacity: 0.75;
  }
}

/* 4. フッター
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
.footer {
  position: relative;
  height: calc(152 * var(--u));
  background: #005c4e;
}
.footerLink {
  position: absolute;
  top: calc(16 * var(--u));
  left: calc(217 * var(--u));
  width: calc(316 * var(--u));
}
.copy {
  position: absolute;
  top: calc(120 * var(--u));
  right: 0;
  left: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: calc(18 * var(--u));
  line-height: calc(26 * var(--u));
  letter-spacing: 0.01em;
  text-align: center;
}
/* ページ先頭へ：追従させず、フッターの右上（SNSエリアとの境目）に置く */
.pagetop {
  position: absolute;
  top: calc(-26 * var(--u));
  left: calc(645 * var(--u));
  width: calc(75 * var(--u));
  z-index: 2;
}

/* 5. ローディング
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
.loading {
  display: none;
}
.is-loading .loading,
.loading.is-hiding {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #f7e895, #e1ca6c 50%, #dfc236);
}
.loading.is-hiding {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s, visibility 1s;
}
.loadInner {
  width: 70%;
  max-width: 400px;
  text-align: center;
}
.loadTxt {
  margin-top: 1.2em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #104f2a;
}

/* 6. 星（snowfall.jquery.js が画面全体に降らせる。クリックの邪魔をしない）
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#starFall {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.snowfall-flakes {
  pointer-events: none;
}

/* 7. アニメーション
  昨年のLPと同じ：画面に入ってから0.8秒後に、0.5秒かけて50px動きながらフェードイン。
  画面の外に出ると元に戻り、次に入ったときもう一度動く（script.js）
  inV：下から　inVr：右から　inVl：左から
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* JS が動かないときは隠さず、最初から表示する */
.js .inV,
.js .inVr,
.js .inVl {
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
}
.js .inV {
  transform: translate(0, 50px);
}
.js .inVr {
  transform: translate(50px, 0);
}
.js .inVl {
  transform: translate(-50px, 0);
}
/* フェードインの判定に使う見えない枠（script.js が作る） */
.ioArea {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}
.js .inAnime {
  opacity: 1;
  transform: translate(0, 0);
}
