@media screen and (min-width: 480px) {

  .p-wrap {
    position: relative;
    margin: 0 auto;
    width: 836px;
    height: 772px;
    text-align: center;
    opacity:0;
    transition: all .3s ease;
    transform: translateY(3px);
  }
  .-is-loaded2 .p-wrap {
    opacity:1;
    transform: translateY(0);
  }
  .beerjushindan_kaitou .l-beerjushindan__inner{
    background: url(../images/bg-paper.png) center top no-repeat;
    transition: all .3s ease;
    opacity:0;
    transform: translateY(3px);
  }

  .-is-loaded2  .beerjushindan_kaitou .l-beerjushindan__inner{
    opacity:1;
    transform: translateY(0);
  }

  .p-h1 {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    margin: auto;
    width: 360px;
  }

  .p-h1 a{
    display: inline-block;
  }
  .p-h1 a img {
    transition: transform 0.3s;
  }

  .p-h1 a:hover img {
    transform: scale(0.97);
  }
  
  .p-questions{
    margin-left:auto;
    margin-right:auto;
    width: 836px;
    height:772px;
    color:#000;
    padding:253px 123px 0 115px;
  }
  .p-question__inner{}


  .p-wrap .owl-carousel .owl-dots{ 
    position:absolute;
    top: -33px;
    left: 0;
    right: 0;
    margin: auto;
    width: 447px;
  }
  .p-wrap .owl-carousel .owl-dots{ 
    pointer-events: none;
  }
  .p-wrap .owl-carousel button.owl-dot {
    background-color: #fff;
    border: 3px solid #441c1d;
    border-right: 0;
    padding: 0!important;
    width: 23px;
    height: 26px;
    font: inherit;
  }
  .p-wrap .owl-carousel button.owl-dot:first-child {
    background-color: #60B3B6;
  }
  .p-wrap .owl-carousel button.owl-dot:last-child {
    border-right: 3px solid #441c1d;
    width: 26px;
  }


  .p-question__number{
    width: 597px;
    text-align: center;
    margin-bottom: 20px;
  }

  .p-question__number--current{
    display: block;
    /* width: 67px; */
    width: 76px;
    /* margin: 10px auto; */
    margin: 0 auto 5px;

    font-weight: bold;
    font-size: 65px;
  }
  .p-question__number--current.pink{
    color: #D98674;
  }
  .p-question__number--current.green{
    color: #60B3B6;
  }
  .p-question__number--total{
    display: block;
    width: 71px;
    /* margin: 10px auto; */
    margin: 0 auto;

    font-weight: bold;
    font-size: 22px;
    border-top: 4px solid #441c1d;
    padding-top:3px;
    color:#441c1d;
  }
  .p-question__number--total.none{
    border-top: 0px solid #441c1d;
  }

  .p-question__text{ 
    width: 596px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fff;
    padding: 20px 45px;
    margin: 0;
  }

  .p-question__text p{ 
    color: #441c1d;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.8;
    margin: 0;
  }

  .p-question__text.p-none{ 
    padding: 0;
  }

  .p-question__text img{ width: 100%;}

  .p-questions{
    transition:all 0.5s ease;
    max-height:800px;
    overflow: hidden;
  }
  .p-questions.hide{
    opacity:0;
  }

  .p-answer{
    margin: 20px 0;
  }
  .p-answer__ul{ 
    padding: 0;
    margin: 0;
    text-align: center;
  }
  .p-answer__ul li{ 
    text-align: center;
    user-select: none;
    list-style: none;
    width: 110px;
    height: 110px;
    display: inline-block;
    vertical-align: top;
    border:2px solid #441c1d;
    margin-left: 10px;
    display: table;
    float: left;
  }

  .p-answer__li span{
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    background: #fff;
    cursor: pointer;
  }

  .p-answer__li:first-child{
    margin-left: 2px;
  }
  .p-answer__li span{
  }
  .p-answer__li:hover span{
    background-color: #EEAF1F;
  }
  .p-answer__li span:active,
  .p-answer__li.selected-forword span,
  .p-answer__li.selected-forward:hover span{
    background-color: #EEAF1F;
  }
  .p-answer__li.selected span{
    background-color: #EEAF1F;
  }

  .p-back{
    position: absolute;
    top: 160px;
    bottom: 0;
    left: -90px;
    margin: auto;
    width: 88px;
    height: 88px;
    opacity: 0;
    transition: all .3s ease;
    transform: translateY(3px);
  }
  .p-back.show{
    opacity: 1;
    transform: translateY(0px);

  }
  .p-back a{
    display: inline-block;
  }

  .p-back a img{
    transition: transform 0.3s;
  }
  .p-back a:hover img{
    transform:scale(0.95);
  }

  .p-next{
    opacity:0;
    display: block;
    visibility: hidden;
    transition:all 1s ease;
    width: 412px;
    height: 127px;
    position: absolute;
    top: 86px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    transition:all 0.5s ease;
    transform: translateY(5px);
  }

  .p-next.show{
    opacity:1;
    visibility: visible;
    transform: translateY(0px);
  }

  .p-next a img{
    transition: transform 0.3s;
  }
  .p-next a:hover img{
    transform:scale(0.95);
  }

  .p-pre{
    opacity:0;
    position: absolute;
    bottom: 110px;
    left: 0;
    right: 0;
    margin: auto;
    width: 88px;
    height: 88px;
    transition: all 0.3s ease;
    visibility:hidden;
  }
  .p-pre.show{
    opacity:1;
    visibility: visible;
  }


  .p-pre a{
    display: inline-block;
  }

  .p-pre a img{
    transition: transform 0.3s;
  }
  .p-pre a:hover img{
    transform:scale(0.95);
  }
}


@media screen and (max-width: 480px) {
  .beerjushindan_kaitou.main * img{ width: 100%;}
  .p-wrap {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    text-align: center;
  }
  
  .beerjushindan_kaitou .l-beerjushindan__inner{
    width: 94%;
    height: auto;
    margin: 0 auto;
    background: url(../images/bg-paper-sp.png) center top no-repeat;
    background-size: contain;
  }
  
  .p-h1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 46vw;
  }
  
  .p-questions{
    margin-left:auto;
    margin-right:auto;
    width: 100%;
    height:100%;
    color:#000;
    padding:30vw 10.5vw 0 11vw;
  }
  
  .p-question__inner{}


  .p-wrap .owl-carousel .owl-dots{ 
    position:absolute;
    top: -5.5vw;
    left: 0;
    right: 0;
    margin: auto;
    width: 50vw;
  }
  .p-wrap .owl-carousel .owl-dots{ 
    pointer-events: none;
  }
  .p-wrap .owl-carousel button.owl-dot {
    background-color: #fff;
    border: 2px solid #441c1d;
    border-right: 0;
    padding: 0!important;
    width: 2.6vw;
    height: 2.98vw;
    font: inherit;
  }
  .p-wrap .owl-carousel button.owl-dot:first-child {
    background-color: #60B3B6;
    width: 2.5vw;
  }
  .p-wrap .owl-carousel button.owl-dot:last-child {
    border-right: 2px solid #441c1d;
    width: 3.15vw;
  }


  .p-question__number{
    width: 70vw;
    text-align: center;
    margin-bottom: 2.5vw;
  }
  
  .p-question__number--current{
    display: block;
    /* width: 67px; */
    width: 10vw;
    /* margin: 10px auto; */
    margin: 0 auto 3px;
    text-align: center;
    font-weight: bold;
    font-size: 9vw;
  }
  .p-question__number--current.pink{
    color: #D98674;
  }
  .p-question__number--current.green{
    color: #60B3B6;
  }
  .p-question__number--total{
    display: block;
    width: 10vw;
    /* margin: 10px auto; */
    margin: 0 auto;
  
    font-weight: bold;
    font-size: 3vw;
    border-top: 3px solid #441c1d;
    padding-top:0.2em;
    color:#441c1d;
  }
  .p-question__number--total.none{
    border-top: 0px solid #000;
  }
  
  .p-question__text{ 
    width: 70vw;
    height: 15vw;
    display: flex;
    align-items: center;
    justify-content: center;
  
    background-color: #fff;
    padding: 0;
    margin: 0;
  }
  
  .p-question__text p{ 
    color: #441c1d;
    font-size: 2.8vw;
    font-weight: bold;
    line-height: 1.8;
    margin: 0;
  }
  
  .p-question__text.p-none{ 
    padding: 0;
  }
  
  .p-question__text img{ width: 100%;}
  
  .p-questions{
    transition:all 0.5s ease;
    max-height:100%;
    overflow: hidden;
  }
  .p-questions.hide{
    opacity:0;
  }
  
  .p-answer{
    margin: 5vw 0 0;
  }
  .p-answer__ul{ 
    padding: 0;
    margin: 0;
  }
  .p-answer__ul li{ 
    text-align: center;
    user-select: none;
    list-style: none;
    width: 40vw;
    height: 10.5vw;
    display: inline-block;
    vertical-align: top;
    border:2px solid #441c1d;
    margin: 0 auto 2vw;
  }
  
  .p-answer__li span{
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .p-answer__li span img{
    width: auto!important;
    height: 10px;
  }
  
  .p-answer__li:first-child span,
  .p-answer__li:last-child span{
    padding: 0;
  }

  .p-answer__li:hover span{
    background:#fff;
  }
  .p-answer__li span:active,
  .p-answer__li.selected-forword span,
  .p-answer__li.selected-forward:hover span{
    background-color: #EEAF1F;
  }
  .p-answer__li.selected span{
    background-color: #EEAF1F;
  }
  
  .p-back{
    position: static;
    margin:19vw auto 0;
    width: 13vw;
    height: 13vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
  }

  .p-back.show{
    opacity: 1;
    visibility: visible;
  }

  .p-back a{
    display: inline-block;
  }
  
  .p-next{
    position: absolute;
    width: 55vw;
    height: 18vw;
    opacity:0;
    top: 225px;
    bottom: auto;
    right: 0;
    left: 0;
    margin: auto;
    visibility: hidden;
    transform: translateY(5px);
    transition:all .5s ease;
    display: block;
  }
  
  .p-next.show{
    opacity:1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0 ease;
  }
  .p-next.show{
  }
  
  .p-pre{
    opacity:0;
    visibility: hidden;
    position: absolute;
    margin:17vw auto 0;
    width: 13vw;
    height: 13vw;
    top:280px;
    left:40vw;
    transition: all .5s ease;
    transform: translateY(5px);
  }
  .p-pre.show{
    opacity:1;
    visibility: visible;
    transition: all 0 ease;
    transform: translateY(0);
  }
  
  .p-pre a{
    display: inline-block;
  }
 
}