#pet-event {
  padding-top: 0 !important;
  background: #fff56d url(../images/dogtool/bg.png) repeat-y 0 0 / 100% auto !important;
}

h1 {
  text-align: center;
  background: #f26649;
  img {
    border-radius: 0 0 20px 20px;
  }
}

#pet-event a {
  position: relative;
  z-index: 60;
}
#pet-event a:hover {
  color: #4d4d4d;
  opacity: 0.8;
}

#pet-event img {
  height: auto;
}

#pet-event ul {
  width: 96%;
  margin: 20px auto 0;
  text-align: left;
}
#pet-event li {
  position: relative;
  padding: 20px 0;
}

#pet-event .box {
  position: relative;
  margin-top: -30px;
  padding: 60px 20px 20px;
  border-radius: 10px;
}
#pet-event .box:before {
  background: #fff56d;
  border-radius: 10px;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 5px;
  z-index: -1;
}
#pet-event .box:after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  z-index: -2;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #fff56d, #fff56d 4px, #ffc20d 4px, #ffc20d 12px);
}
#pet-event .box p {
  text-align: right;
}

#pet-event h3 {
  margin-left: 15px;
  position: relative;
  display: inline-block;
  padding: 0 10px;
  line-height: 50px;
  color: #0074bc;
  font-size: 1.2em;
  font-weight: bold;
  background: #fff;
  transform: rotate(-10deg);
  box-shadow: 0 0 15px -5px #777;
}
#pet-event a:hover h3 {
  transform: rotate(-5deg);
}
#pet-event h3:before,
#pet-event h3:after {
  position: absolute;
  top: 0;
  content: "";
  border-style: solid;
}
#pet-event h3:before {
  left: -15px;
  border-width: 0 0 50px 15px;
  border-color: transparent transparent #fff transparent;
}
#pet-event h3:after {
  right: -15px;
  border-width: 50px 15px 0 0;
  border-color: #fff transparent transparent transparent;
}

#pet-event .detail {
  display: inline-block;
  width: 100px;
  height: 38px;
  content: "";
  background: url("data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%220%200%20105%2041%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m-5.868-8.668h18.671%22%20fill%3D%22none%22%20stroke%3D%22%232e3092%22%20stroke-width%3D%222.31%22%20transform%3D%22matrix(.670321%201.67566%201.67566%20-.670321%2020.541%2010.758)%22%2F%3E%3Cpath%20d%3D%22m-12.803-8.668h18.671%22%20fill%3D%22none%22%20stroke%3D%22%232e3092%22%20stroke-width%3D%222.31%22%20transform%3D%22matrix(-.670321%201.67566%201.67566%20.670321%20108.025%2033.999)%22%2F%3E%3Cg%20fill%3D%22%232e3092%22%20fill-rule%3D%22nonzero%22%3E%3Cpath%20d%3D%22m0%202.015v.813h-1.642v1.709h-.887v-1.709h-1.679v-.813h1.679v-.761h-1.277v-.806h1.277v-.724h-1.433v-.813h.679c-.09-.336-.269-.776-.455-1.112l.723-.268c.24.387.455.895.537%201.238l-.357.142h1.41l-.306-.127c.194-.358.425-.903.544-1.306l.963.336c-.03.06-.104.09-.202.082-.134.306-.335.702-.521%201.015h.828v.813h-1.523v.724h1.336v.806h-1.336v.761zm-5.163.552h-.799v.865h.799zm.768-4.156h-2.276v-.679h2.276zm-2.305%202.41h2.32v.671h-2.32zm0-1.03h2.32v.679h-2.32zm2.312%202.067v2.283h-1.574v.291h-.761v-2.574zm.277-2.41h-2.947v-.709h2.947z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%2046.426%204.552)%22%2F%3E%3Cpath%20d%3D%22m324.488%20652.972h.611v-1.783h-.611zm.612-4.357h-.611v1.761h.611zm-1.977%204.357h.582v-1.783h-.582zm.582-4.357h-.582v1.761h.582zm-1.381-.829h3.605v6.313h-.829v-.313h-1.977v.38h-.799v-1.164c-.209.075-.424.149-.686.246-.068-.395-.269-1.015-.447-1.477l.67-.224c.18.433.367.962.463%201.35v-1.693l-.582.268c-.022-.104-.059-.223-.104-.35l-.485.029v3.067h-.791v-2.417c-.022.044-.075.075-.164.067-.075.612-.216%201.328-.433%201.783-.156-.104-.447-.231-.626-.313.186-.411.305-1.12.365-1.753l.858.201v-.582c-.336.022-.642.037-.888.045-.023.074-.082.104-.134.111l-.18-.895h.568c.119-.149.239-.306.358-.47-.224-.328-.582-.731-.903-1.022l.426-.612.164.141c.223-.417.447-.924.574-1.32l.895.365c-.029.053-.104.083-.201.075-.194.418-.508.97-.768%201.38.104.113.194.217.268.321.269-.432.523-.873.709-1.253l.859.388c-.039.052-.113.082-.217.082-.344.567-.866%201.313-1.359%201.91l.822-.007c-.09-.202-.195-.396-.299-.575l.649-.291c.238.381.47.836.619%201.224z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%20-528.949%20-1167.967)%22%2F%3E%3Cpath%20d%3D%22m0%20.187c-.022.007-.037.015-.06.015-.037%200-.074-.015-.104-.037-.56.164-1.298.402-1.851.611.015.15.015.321.015.5%200%20.18%200%20.373-.015.59l-.94.067c.022-.276.038-.582.03-.798-.582.291-1.007.671-1.007.955%200%20.328.411.462%201.253.462.658%200%201.381-.022%201.851-.082l.015.866c-.388.044-1.03.052-1.873.052-1.44%200-2.157-.321-2.157-1.246%200-.597.777-1.276%201.828-1.813-.022-.217-.133-.418-.357-.418-.493%200-1.016.254-1.627.947-.179.209-.455.5-.776.814l-.664-.642c.313-.268.679-.589.91-.865.329-.381.694-1.038.836-1.56l-.284.008c-.164%200-.969.007-1.156%200v-.843c.417.022.955.022%201.283.022l.396-.008c.066-.305.111-.604.156-.985l1.142.112c-.015.075-.082.127-.187.142-.037.239-.096.463-.156.694.589-.015%201.47-.142%202.268-.41l.149.88c-.716.231-1.746.321-2.663.366-.135.395-.262.716-.366.873h.007c.269-.209.657-.366%201.023-.366.433%200%20.812.306.925.873.574-.246%201.276-.5%201.813-.716z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%2072.215%206.087)%22%2F%3E%3Cpath%20d%3D%22m0%20.837h-3.81c-.254%202.05-1.14%203.7-3.311%204.961-.425-.388-1.067-.885-1.528-1.189%201.904-1.019%202.741-2.134%202.96-3.772h-4.38v-1.686h4.525v-1.626c-.995.17-2.268.34-3.457.425-.109-.449-.279-.934-.485-1.431%202.34-.219%205.64-.789%207.314-1.48l1.262%201.407c-.073.06-.182.06-.389.06-.691.255-1.819.546-2.583.692l.594.036c-.025.145-.121.267-.363.315%200%20.595%200%201.092-.025%201.602h3.676z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%2037.117%2026.273)%22%2F%3E%3Cpath%20d%3D%22m0-6.55v1.431h-2.645v3.688h3.299v1.431h-8.248v-1.431h3.323v-3.688h-2.583v-1.431z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%2051.888%2035.03)%22%2F%3E%3Cpath%20d%3D%22m0-7.788c.254.704.497%201.868.594%202.632l-1.492.316c-.097-.813-.352-1.917-.594-2.657zm4.1.849c-.037.097-.158.182-.328.17-1.006%203.59-2.948%205.677-5.616%206.769-.194-.304-.668-.873-1.008-1.153%202.452-.885%204.356-2.79%205.132-6.381zm-6.975-.376c.327.715.679%201.819.837%202.548l-1.407.4c-.159-.776-.474-1.82-.801-2.56z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%2062.719%2036.147)%22%2F%3E%3Cpath%20d%3D%22m0-5.543c-.049.109-.194.194-.304.255-1.419%203.978-3.275%206.32-6.514%207.945-.303-.412-.849-1.043-1.383-1.419%202.96-1.359%204.635-3.348%205.495-5.835h-3.19c-.57.849-1.565%201.929-2.523%202.681-.352-.352-1.031-.91-1.517-1.201%201.541-1.176%203.082-3.105%203.773-5.083l2.305.51c-.048.146-.218.23-.413.243-.181.388-.412.764-.594%201.128h3.069l.267-.121z%22%20transform%3D%22matrix(1.80476%200%200%201.80476%2088.35%2031.898)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
    no-repeat 0 0 / cover;
}

#pet-event li:before {
  position: absolute;
  content: "";
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 70;
}

#pet-event li.dogrunBig:before {
  width: 570px;
  height: 328px;
  background-image: url(../images/dogtool/dogrunBig.png);
}
#pet-event li.dogrunBig .info {
  padding: 150px 0 0 380px;
}
#pet-event li.dogrunBig h3 {
  margin-left: 120px;
}

#pet-event li.dogrunSmall:before {
  top: 10%;
  right: 0;
  width: 566px;
  height: 245px;
  background-image: url(../images/dogtool/dogrunSmall.png);
}
#pet-event li.dogrunSmall .info {
  padding: 0 540px 0 0;
}

#pet-event li.park:before {
  width: 570px;
  height: 262px;
  background-image: url(../images/dogtool/amusementPark.png);
}
#pet-event li.park .info {
  padding: 0 0 0 530px;
}
#pet-event li.park .box {
  padding: 50px 20px 20px 45px;
}

#pet-event li.pool img {
  display: block;
  margin: 30px auto 0;
}
#pet-event li.pool .info {
  position: relative;
  padding: 0 460px 0 0;
}
#pet-event li.pool .info:before {
  position: absolute;
  content: "";
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 50;
  right: 0;
  width: 490px;
  height: 178px;
  background-image: url(../images/dogtool/pool2.png);
}

#pet-event li.swing:before {
  width: 500px;
  height: 402px;
  background-image: url(../images/dogtool/swing1.png);
}
#pet-event li.swing .info {
  padding: 150px 0 0 450px;
  background: url(../images/dogtool/swing2.png) no-repeat 100% 30px;
}
#pet-event li.swing .box {
  padding: 60px 20px 20px 30px;
  margin-bottom: 30px;
}

#pet-event li.panel:before {
  top: 100px;
  width: 400px;
  height: 242px;
  background-image: url(../images/dogtool/panel1.png);
}
#pet-event li.panel .info {
  padding: 95px 0 0 375px;
  background: url(../images/dogtool/panel2.png) no-repeat 400px 0;
}

#pet-event li.buggycar:before {
  top: 10%;
  right: 0;
  width: 400px;
  height: 410px;
  background-image: url(../images/dogtool/buggycar.png);
}
#pet-event li.buggycar .info {
  padding: 0 360px 0 0;
}

#pet-event li.maze {
  margin-top: 30px;
}
#pet-event li.maze:before {
  width: 494px;
  height: 326px;
  background-image: url(../images/dogtool/maze.png);
}
#pet-event li.maze .info {
  padding: 150px 0 0 400px;
}
#pet-event li.maze .box {
  padding: 60px 20px 20px 30px;
}

#pet-event li.chair {
  margin-bottom: 50px;
}

#pet-event li.chair .info {
  position: relative;
  padding: 20px 480px 0 0;
}
#pet-event li.chair:before {
  right: 0;
  width: 500px;
  height: 330px;
  background-image: url(../images/dogtool/chair.png);
}

#pet-event li.snow:before {
  width: 500px;
  height: 330px;
  background-image: url(../images/dogtool/snow.png);
}
#pet-event li.snow .info {
  padding: 150px 0 0 480px;
}
#pet-event li.snow .box {
  padding: 60px 20px 20px 30px;
}

#pet-event li.snow h3 {
  margin-left: 40px;
}

#pet-event .frame {
  position: relative;
  margin: 0 auto 40px;
  padding: 1em 1em 0 90px;
  background: #fff;
  border: 4px solid #f26649;
  border-radius: 10px;
}
#pet-event .frame:before {
  position: absolute;
  top: -20px;
  left: -40px;
  width: 130px;
  height: 240px;
  content: "";
  background: url(../images/dogtool/dog1.png) no-repeat;
}

#pet-event .frame:after {
  position: absolute;
  bottom: 0;
  right: -40px;
  width: 70px;
  height: 118px;
  content: "";
  background: url(../images/dogtool/dog2.png) no-repeat;
}
#pet-event .frame h2 {
  display: inline-block;
  margin-bottom: 0.5em;
  padding: 0.5em;
  font-size: 1.4em;
  color: #ee3d7f;
  background: #fff67e;
}
#pet-event .frame p {
  margin-bottom: 1em;
}

#pet-event h2.howto {
  margin-bottom: 1rem;
  text-align: center;
  color: #ee3d7f;
}

#pet-event ol {
  margin: 0 20px;
  display: flex;
  justify-content: space-between;
}
#pet-event ol li {
  position: relative;
  width: 30%;
  padding: 1em;
  background: #fff;
  border: 4px solid #f26649;
  border-radius: 10px;
  list-style: none;
}
#pet-event ol li img {
  display: block;
  margin: 0 auto 10px;
}
#pet-event ol li:after {
  position: absolute;
  top: 50%;
  right: -36px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  content: "";
  border-top: 10px solid #f26649;
  border-right: 10px solid #f26649;
  transform: rotate(45deg);
}
#pet-event ol li:last-child:after {
  border: 0;
}

@media only screen and (max-width: 840px) {
  #pet-event {
    font-size: 14px !important;
  }

  #pet-event h3 {
    font-size: 1em;
  }

  #pet-event .box {
    padding: 50px 20px 20px !important;
  }

  #pet-event ul {
    margin: 0 auto;
  }
  #pet-event li:before {
    width: 100% !important;
    z-index: 0;
    background-size: 100% auto;
  }

  #pet-event li.dogrunBig:before {
    padding-top: 57.9%;
  }
  #pet-event li.dogrunBig .info {
    padding: 58% 0 0;
  }
  #pet-event li.dogrunBig h3 {
    margin-left: 10px;
  }

  #pet-event li.dogrunSmall:before {
    padding-top: 43.27%;
  }
  #pet-event li.dogrunSmall .info {
    padding: 45% 0 0;
  }

  #pet-event li.park:before {
    padding-top: 53.3%;
  }
  #pet-event li.park .info {
    padding: 54% 0 0;
  }

  #pet-event li.pool .info {
    padding: 5% 0 25%;
  }
  #pet-event li.pool .info:before {
    width: 100%;
    right: auto;
    left: 0;
    bottom: 0;
    background-position: 50% 100%;
    background-size: contain;
  }

  #pet-event li.swing {
    padding: 40px 0 60px;
  }
  #pet-event li.swing:before {
    background-position: 50% 0;
    background-size: contain;
  }
  #pet-event li.swing .info {
    padding: 120px 0 0;
    margin-top: 52%;
  }
  #pet-event li.swing .box {
    padding: 60px 20px 20px 30px;
  }

  #pet-event li.buggycar .info {
    padding: 80% 0 0;
  }

  #pet-event li.maze:before,
  #pet-event li.chair:before,
  #pet-event li.snow:before {
    background-position: 50% 0;
    background-size: contain;
  }
  #pet-event li.maze .info {
    padding: 50% 0 0;
  }
  #pet-event li.maze .box {
    padding: 60px 20px 20px 30px;
  }

  #pet-event li.chair .info,
  #pet-event li.snow .info {
    padding: 70% 0 0;
  }

  #pet-event li.snow h3 {
    margin-left: 15px;
  }

  #pet-event ol {
    display: block;
  }
  #pet-event ol li {
    width: 100%;
    margin-bottom: 40px;
  }
  #pet-event ol li:after {
    top: auto;
    bottom: -30px;
    right: auto;
    left: 50%;
    margin: 0 0 0 -10px;
    width: 20px;
    height: 20px;
    border-top: 5px solid #f26649;
    border-right: 5px solid #f26649;
    transform: rotate(135deg);
  }

  #pet-event li.panel:before {
    top: 0;
    height: 75%;
  }
  #pet-event li.panel .info {
    padding: 60% 0 0 0;
  }

  #pet-event .frame {
    padding: 20px;
    margin: 20px 20px 20px 40px;
  }
  #pet-event .frame:before {
    width: 65px;
    height: 120px;
    background-size: 100% auto;
  }
  #pet-event .frame:after {
    width: 35px;
    height: 120px;
    right: -20px;
    bottom: -60px;
    background-size: 100% auto;
  }
}

@media only screen and (max-width: 660px) {
  #pet-event li.swing .info {
    padding: 140px 0 0;
    margin-top: 72%;
  }
}
