/**
 * テンプレートの上書き
 */
#wrapper,
#sqex-header-main {
  min-width: initial;
  min-width: auto;
  width: auto;
}
#sqex-header-main {
  padding-left: 1rem;
}

#main {
  background-color: #fffcf6;
}

.content {
  width: initial;
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  font-size: 18px;
}

.fs-16 {
  font-size: 16px;
}

#header {
  padding-top: 0;
  padding-bottom: 0;
  background-image: url(../../img/collabo/walk/header/key-v-md.jpg);
}
@media screen and (min-width: 641px) and (max-width: 860px) {
  #header {
    height: auto;
    padding-top: 30%;
    background-size: auto 100%;
  }
}
@media screen and (max-width: 640px) {
  #header {
    padding-top: 30%;
    background-image: url(../../img/collabo/walk/header/key-v-sm.jpg);
    background-size: 100% 100%;
  }
}
#header a {
  display: none;
}

.text-sm {
  font-size: .83em;
}

.ok-large-button {
  width: 80%;
}
@media screen and (max-width: 640px) {
  .ok-large-button {
    padding: 15px;
  }
}

.text-link {
  color: #7d2c1c;
  text-decoration: none;
}
    .text-link:hover {
      text-decoration: underline;
    }


/**
 * ここから専用
 */

.event-table {
  background-color: #f9f5ef;
  border: 2px solid #6f5d3a;
}
    .event-table tr {
      border: 1px solid #b4a994;
    }
    .event-table__head,
    .event-table__head--strong {
      padding-left: .5rem;
      padding-right: .5rem;
      font-weight: bold;
      background-color: #e1caac;
      color: #6a3d07;
    }
    .event-table__head--strong {
      color: #fff;
      background-color: #855c2a;
    }
    .is-cleared .event-table__head--strong {
      background-color: #b53c3c;
    }
    .event-table__data {
      padding-left: .5rem;
    }
    .is-cleared .event-table__data {
      background-color: #ffcfcf;
      background-image: url(../../img/common/ico-clear-slime.png);
      background-repeat: no-repeat;
      background-size: auto 90%;
      background-position: right 8px center;
    }

/* 報酬テーブル */
.event-table--reward__item {
  display: flex;
  align-items: center;
}

.event-table--reward__item img {
  width: 36px;
  height: 36px;
  margin-right: .5rem;
}
.event-table--reward__item th {
  width: 30%;
}
.event-table--reward__item td {
  width: 70%;
}
@media screen and (max-width: 640px) {
  .event-table--reward {
    font-size: 14px;
  }
    .event-table--reward tr,
    .event-table--reward th,
    .event-table--reward td {
      display: block;
      width: auto;
    }
    .event-table--reward th {
      padding-top: .5rem;
      padding-bottom: .5rem;
    }
    .event-table--reward td {
      padding-top: .8rem;
      padding-bottom: .8rem;
    }
}


/**
 * 進捗画像
 */
.event-progress {
  position: relative;
  padding-top: 137.45%;
}
  .event-progress::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(../../img/collabo/walk/mobile-rim.png);
  }
.event-progress__main {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 92%;
  margin-left: 4%;
  margin-top: 11%;
}
    .event-progress__main img {
      width: 100%;
    }
    .event-progress__main__text {
      position: absolute;
      top: .5rem;
      left: .5rem;
      color: #fff;
      font-weight: bold;
      margin-top: 10%;
      margin-left: 24%;
      text-indent: -1em;
      padding-left: 1em;
    }
    @media screen and (max-width: 640px) {
      .event-progress__main__text {
        font-size: calc(0.156 * 18 * 1vw);
      }
    }
    .is-event-end .event-progress__main__text {
      top: initial;
      bottom: 0;
      margin-top: initial;
      margin-bottom: 10%;
    }


/**
 * プログレスバー
 */
.event-progressbar {
  position: relative;
  margin-right: auto;
  margin-left: auto;
  width: 73%;
}
  .event-progressbar__count--up,
  .event-progressbar__count--down {
    position: absolute;
    font-size: 23px;
    color: white;
    font-weight: bold;
    text-shadow:
      2px 2px 2px #000,
      -2px -2px 2px #000,
      -2px 2px 2px #000,
      2px -2px 2px #000,
      0px 2px 2px #000,
      0 -2px 2px #000,
      -2px 0 2px #000,
      2px 0 2px #000;

  }

  .event-progressbar__count--up {
    top: 0;
    left: 0;
    margin-top: 6.0%;
    /*margin-left: 2.3%;*/
    min-width: 3.5em;
    text-align: center;
  }
  .event-progressbar__count--down {
    bottom: 0;
    right: 0;
    margin-bottom: -1.5%;
    margin-right: 4%;
  }

  @media screen and (max-width: 640px) {
    .event-progressbar__count--up,
    .event-progressbar__count--down {
      font-size: calc(0.156 * 23 * 1vw);
    }
  }

/**
 * 歩数カウンター
 */
.event-stepcounter {
  color: #fff;
  font-weight: bold;
  background-color: #000;
  border: 1px solid #5d5c5a;
  box-shadow:
    0 0 0 3px #fff inset,
    0 0 3px 1px #5d5c5a;
  border-radius: 10px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
}
  .event-stepcounter__body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }