/*
 * 共通設定
 * 上部赤の部分
 * コンテンツ
 * おみくじ
 * ボタン
 * 説明
 * 注意事項
 * 一番下の馬
 * 応募回数の上限に達しましたテキスト
 * ポップアップ
 */

/* =========================================================
共通設定
========================================================= */
:root {
  --dark-red: #99170e;
  --red: #c33324;
  --pink: #efe3e1;
  --gold: #c1b185;
  --light-yellow: #f7f5ed;
}

@media screen and (max-width: 1400px) {
  :root {
    --vw-unit: 1px;
  }
}
@media screen and (min-width: 1400px) {
  :root {
    --vw-unit: calc(100vw / 1400);
  }
  .feature img {
    width: 100%;
    height: auto;
    vertical-align: top;
  }
}

.l-container {
  width: 100%;
}

.l-footer,
.pc-footer {
  padding: 0;
  margin: 0;
}

.feature {
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
  color: #3d3d3d;
  margin: 0 auto;
  font-feature-settings: "palt";
  font-family: "yu-gothic-pr6n", sans-serif;
  font-weight: 500;
}

.feature * {
  box-sizing: border-box;
}
.feature a {
  color: inherit;
}

/* =========================================================
上部赤の部分
========================================================= */
.message {
  width: 100%;
  background: var(--dark-red) url(../img/bg_hanabi.png) no-repeat center top;
  background-size: calc(1400 * var(--vw-unit));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(60 * var(--vw-unit));
  padding-bottom: calc(150 * var(--vw-unit));
  position: relative;
}
.message-title {
  width: calc(384 * var(--vw-unit));
  margin-bottom: calc(35 * var(--vw-unit));
}
.message-lead {
  display: flex;
  flex-direction: column;
  gap: calc(7 * var(--vw-unit)) 0;
}
.message-lead p {
  font-size: calc(16 * var(--vw-unit));
  color: white;
  line-height: 1.8;
  letter-spacing: 0.1em;
  &:last-child {
    margin-top: calc(10 * var(--vw-unit));
  }
}
.mizuhiki {
  width: calc(1400 * var(--vw-unit));
  margin-top: calc(54 * var(--vw-unit));
  margin-bottom: calc(-204 * var(--vw-unit));
  z-index: 2;
}

/* =========================================================
コンテンツ
========================================================= */
.contents {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: url(/s/OMIKUZI_USG/img/bg.png) repeat;
  width: calc(1400 * var(--vw-unit));
  text-align: center;
  padding-top: calc(114 * var(--vw-unit));
  padding-bottom: calc(99 * var(--vw-unit));
  position: relative;
}

/* =========================================================
おみくじ
========================================================= */
.omikuji-contents {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: calc(55 * var(--vw-unit));
  position: relative;
}

/* テキスト */
.omikuji-title {
  width: calc(503 * var(--vw-unit));
  margin-bottom: calc(38 * var(--vw-unit));
}

.omikuji-text {
  font-size: calc(28 * var(--vw-unit));
  font-weight: bold;
  display: flex;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-top: calc(12 * var(--vw-unit));
}
.omikuji-text::after {
  width: 0;
  height: 0;
  content: "";
  border-top-width: calc(18 * var(--vw-unit));
  border-right-width: calc(11 * var(--vw-unit));
  border-bottom-width: 0;
  border-left-width: calc(11 * var(--vw-unit));
  border-style: solid;
  border-color: var(--red) transparent transparent transparent;
  margin-top: calc(10 * var(--vw-unit));
  margin-left: calc(9 * var(--vw-unit));
}

.omikuji-attention-text {
  font-size: calc(18 * var(--vw-unit));
  margin-bottom: calc(17 * var(--vw-unit));
}

/* おみくじ */
.omikuji {
  width: calc(541 * var(--vw-unit));
  height: calc(541 * var(--vw-unit));
  background: url(../img/omikuji_bg.png) no-repeat;
  background-size: contain;
  margin-top: calc(64 * var(--vw-unit));
  position: relative;
}

.omikuji-box {
  width: calc(280 * var(--vw-unit));
  height: calc(365 * var(--vw-unit));
  cursor: grab;
  position: absolute;
  top: calc(100 * var(--vw-unit));
  left: calc(130 * var(--vw-unit));
  filter: drop-shadow(
    0 calc(90 * var(--vw-unit)) calc(40 * var(--vw-unit)) rgba(0, 0, 0, 0.1)
  );
}
.omikuji-box.complete {
  pointer-events: none;
  top: 50% !important;
  left: 50% !important;
  transition: 0.5s;
  transform: translateX(-50%) translateY(-50%);
}

.omikuji-box > img {
  transition: 0.2s;
}
.omikuji-box > img.swing {
  animation: swing 2.4s ease-out infinite;
}
.omikuji-box.catch > img {
  transform: translateY(calc(-20 * var(--vw-unit)));
}
@keyframes swing {
  0% {
    transform: none;
  }
  6.25% {
    transform: rotate(5deg);
  }
  11.75% {
    transform: rotate(-4deg);
  }
  16.5% {
    transform: rotate(3deg);
  }
  20.5% {
    transform: rotate(-2deg);
  }
  23.75% {
    transform: rotate(1deg);
  }
  25% {
    transform: none;
  }
  100% {
    transform: none;
  }
}

.omikuji.lock {
  pointer-events: none;
}

/* =========================================================
ボタン
========================================================= */
.btn {
  width: calc(400 * var(--vw-unit));
  position: relative;
}
.btn a {
  font-size: calc(28 * var(--vw-unit));
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: calc(80 * var(--vw-unit));
  text-decoration: none;
  letter-spacing: 0.2em;
  color: white;
  border-radius: calc(50 * var(--vw-unit));
  background-color: var(--red);
  transition: 0.3s;
}
.btn a:hover {
  opacity: 0.6;
}

/* =========================================================
説明
========================================================= */
.detail {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.detail-large-text {
  font-size: calc(28 * var(--vw-unit));
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: calc(20 * var(--vw-unit));
}

/*detail-table*/
.detail-table {
  width: calc(580 * var(--vw-unit));
  margin-bottom: calc(81 * var(--vw-unit));
}
.detail-table * {
  font-weight: normal;
  box-sizing: border-box;
}
.detail-table table {
  width: 100%;
  background: var(--light-yellow);
}

.detail-table th {
  font-weight: bold;
  color: var(--red);
  border: calc(2 * var(--vw-unit)) solid var(--gold);
  background: var(--pink);
}

.detail-table td {
  font-weight: 500;
  letter-spacing: -0.05em;
  border: calc(2 * var(--vw-unit)) solid var(--gold);
}

.detail-table-heading {
  font-size: calc(20 * var(--vw-unit));
  line-height: 1;
  height: calc(48 * var(--vw-unit));
}

.detail-table-prize {
  font-family: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝",
    "MS PMincho", serif;
  font-size: calc(36 * var(--vw-unit));
  width: calc(140 * var(--vw-unit));
  height: calc(90 * var(--vw-unit));
}
.detail-table-prize img {
  width: calc(50 * var(--vw-unit));
}

.detail-table-point {
  font-size: calc(26 * var(--vw-unit));
  width: calc(220 * var(--vw-unit));
}
.detail-table-point span {
  margin-left: calc(10 * var(--vw-unit));
}

.detail-table-value {
  font-size: calc(22 * var(--vw-unit));
}

/* =========================================================
注意事項
========================================================= */
.detail-attention {
  width: calc(610 * var(--vw-unit));
  margin-bottom: calc(74 * var(--vw-unit));
}
.detail-attention h3 {
  font-size: calc(17 * var(--vw-unit));
  font-weight: 500;
  line-height: 1;
  display: inline-block;
  overflow: hidden;
  width: calc(610 * var(--vw-unit));
  margin-bottom: calc(1 * var(--vw-unit));
  position: relative;
}
.detail-attention h3 span {
  display: inline-block;
  background: url(../img/bg.png) no-repeat center top;
  padding: 0 calc(14 * var(--vw-unit));
  position: relative;
  z-index: 2;
}
.detail-attention h3::before,
.detail-attention h3::after {
  display: block;
  width: 100%;
  content: "";
  border-top: calc(1 * var(--vw-unit)) solid var(--gold);
  position: absolute;
  left: 0;
}
.detail-attention h3::before {
  top: calc(5 * var(--vw-unit));
}
.detail-attention h3::after {
  top: calc(10 * var(--vw-unit));
}

.detail-attention ul li {
  font-size: calc(17 * var(--vw-unit));
  font-weight: 500;
  line-height: 1.9;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

/* =========================================================
一番下の馬
========================================================= */
.horse {
  width: calc(274 * var(--vw-unit)) !important;
  position: relative;
  left: calc(11 * var(--vw-unit));
}

/* =========================================================
応募回数の上限に達しましたテキスト
========================================================= */
.no-more-text {
  font-size: calc(20 * var(--vw-unit));
}

/* =========================================================
ポップアップ
========================================================= */
.popup {
  display: none;
  overflow: auto;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  place-items: center;
  &.open {
    display: grid;
  }
}
.popup-content {
  width: 700px;
  position: relative;
  &::before {
    width: 40px;
    height: 40px;
    content: "";
    background: url(../img/close.png) no-repeat;
    position: absolute;
    top: -20px;
    right: -60px;
  }
  a {
    display: block;
    img {
      width: 100%;
      height: auto;
      vertical-align: top;
    }
  }
}
