.container {
  max-width: 990px;
}

header {
  position: relative;
  z-index: 1;
}

header,
section {
  overflow: hidden;
}
header .logo {
  width: 390px;
}

header .issue {
  width: 150px;
  margin-left: 2rem;
}

header .logo img,
header .issue img {
  max-width: 100%;
  width: auto;
  height: auto;
}

header .logo,
header .issue {
  display: inline-block;
}
header .bg-title {
  display: block;
  height: 100%;
  width: calc(100% + 320px);
  margin-left: -160px;
}
header .text a {
  color: #fff;
  font-size: 0.875em;
  margin-right: 0.5rem;
}

header .size {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 23px;
  height: 23px;
  margin-left: 5px;
  background-repeat: no-repeat;
  background-position: center bottom;
}

header .size::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  background-color: #fff;
  bottom: -0.4rem;
  left: 0;
  opacity: 0;
}
header .size:hover::before,
header .size.active:before {
  opacity: 1;
}

header .size {
  background-image: url(../images/font_size.png);
}
header .size1 {
  background-size: 0.6rem;
}
header .size2 {
  background-size: 0.75rem;
}
header .size3 {
  background-size: 0.85rem;
}
header #anime_banner {
  width: calc(100% + 320px);
  margin-left: -160px;
  position: relative;
}
header .header-wrapper {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
header .header-wrapper .logo {
  top: 6%;
  left: 1rem;
  position: absolute;
  max-width: 577px;
  width: 59%;
}
header .header-wrapper .header_title {
  top: 42%;
  left: 1rem;
  position: absolute;
  max-width: 330px;
  width: 34%;
}
header .header-wrapper img {
  max-width: 100%;
  width: auto;
}

header .box-top,
header .box-bottom {
  display: flex;
  margin-left: auto;
}

header .box-bottom {
  position: absolute;
  right: 1rem;
  top: 15.2%;
  align-items: flex-end;
}

header .box-top {
  position: absolute;
  top: 4%;
  align-items: flex-end;
  right: 1rem;
}
header .box-top img:first-child {
  max-width: 145px;
  width: 11vw;
}
header .box-top img:last-child {
  max-width: 105px;
  width: 8vw;
  margin-left: 1vw;
}
a {
  cursor: pointer;
}

#banner {
  width: calc(100% + 320px);
  margin-left: -160px;
}

#banner .banner-bg {
  background-image: url(../images/emsd_web_landing.gif);
  width: calc(100% + 320px);
  background-position: top left;
  padding-bottom: 52.6%;
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
}
#banner .banner-bg-car {
  background-image: url(../images/emsd_web_landing_car.gif);
  position: absolute;
  width: 190px;
  background-repeat: no-repeat;
  background-size: contain;
  right: -159px;
  height: 100%;
  bottom: -1px;
  z-index: 1;
}

#banner .banner-bg::before,
#banner .banner-bg::after {
  content: "";
  position: absolute;
  width: 160px;
  background-repeat: no-repeat;
  background-size: contain;
}

#banner .banner-bg::before {
  background-image: url(../images/emsd_web_landing_left.jpg);
  right: calc(100% - 1px);
  height: 63.8%;
  bottom: 1px;
}

#banner .banner-bg::after {
  background-image: url(../images/emsd_web_landing_right.jpg);
  left: calc(100% - 1px);
  height: 100%;
  bottom: 0px;
}

.content {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  width: 160px;
  background-repeat: no-repeat;
  background-size: contain;
}

.content::before {
  background-image: url(../images/content_left.jpg);
  right: 100%;
  height: 63.8%;
  top: 1.5rem;
}

.content::after {
  background-image: url(../images/content_right.jpg);
  left: calc(100% - 1px);
  height: 100%;
  top: 1.5rem;
}

.grid {
  margin: -0.6%;
}

.grid-item,
#content .grid-item.box-2.box-3 {
  float: left;
  width: 33.33%;
  padding: 0.6%;
  height: 650px;
  margin: 0;
  /* cursor: pointer; */
}

#content .grid-item.box-2.box-3 .space {
  background-color: #f8e2ee !important;
  width: 100%;
  height: calc(100% - 18rem);
}
.grid-item.box {
  height: 171px;
  background-color: #7d519c;
  box-sizing: border-box;
  width: calc(33.3% - 1.2%);
  padding: 0;
  margin-left: 0.6%;
  margin-top: 0.6%;
  margin-bottom: 0.6%;
}

.grid-item .effect {
  width: 100%;
  height: 100%;
  visibility: hidden;
  overflow: hidden;
}

.grid-item .effect.animate__animated {
  visibility: visible;
}

.grid-item .inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  overflow: hidden;
  text-decoration: none;
}

/* .grid-item:hover .inner {
    transform: rotateY(180deg);
} */

.grid-item .front,
.grid-item .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Safari */
}

.grid-item .back {
  transform: rotateY(180deg);
}

.grid-item .img {
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 50%;
  height: 40%;
  background-size: cover;
  transition: all 0.3s ease-in-out;
}
.grid-item .inner:hover .img {
  transform: scale(1.15);
}
.grid-item .text {
  color: #fff;
  text-align: left;
  padding: 5% 5% 10%;
  position: relative;
  height: calc(60%);
}

.grid-item .text .logo {
  position: absolute;
  left: 50%;
  margin-top: -70px;
  margin-left: -70px;
  width: auto;
  top: 0;
}

.grid-item .text h2 {
  font-weight: 700;
  margin-bottom: 1%;
  line-height: 120%;
  font-weight: bold;
  text-decoration: none;
}

.grid-item .text p {
  margin: 0;
  line-height: 150%;
}

.grid-item .readmore {
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875em;
  line-height: 1.2;
}

.grid-item .readmore::before {
  content: "";
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 0.3rem;
  background-image: url(../images/readmore.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}

.box-2 {
  background-color: #ffcd67 !important;
}

.grid-item.box.view {
  padding: 0% 3%;
  font-size: 1.2em;
  background-color: #c6e9fc !important;
}

.grid-item.box.view .other_links {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.grid-item.box.view a {
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #04508a;
  line-height: 140%;
  font-weight: 700;
  text-align: center;
}

.grid-item.box.view a:first-child {
  border-bottom: 1px solid #fff;
}
#con2.main .btn {
  display: flex;
  margin-top: 20px;
}

#con2.main .btn a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #868686;
  font-size: 1.6em;
  font-weight: 700;
}

#con2.main .btn a.right {
  display: flex;
  margin-left: auto;
}

#con2.main .btn a.left img {
  margin-right: 10px;
}

#con2.main .btn a.right img {
  margin-left: 10px;
}

span.decrease {
  display: inline-block;
  background: url("../images/kpl/arrow.png") center center no-repeat;
  width: 20px;
  height: 35px;
  margin-right: 10px;
  background-size: 100% auto;
}

.download {
  position: fixed;
  width: 160px;
  height: 160px;
  right: 0;
  /* top: 38.5%; */
  color: #fad5e5;
  top: calc(380px + 10%);
  background-color: #04508a;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3;
  box-sizing: border-box;
  z-index: 1;
}
.articles {
  /* top: calc(38.5% - 180px); */

  top: calc(200px + 10%);
}
.articles .popup {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(100%);
  background-color: rgb(4 80 138 / 90%);
  width: 90vw;
  max-width: 775px;
  height: calc(100vh - 260px);
  max-height: 60vh;
  padding: 1rem;
  /* transition: transform 0.3s ease-in-out; */
  z-index: 1;
}
.articles.active .popup {
  transform: translateX(0);
}
.articles .popup ul {
  padding-top: 3.5rem;
  padding-left: 3rem;
  color: #e4e4e4;
  text-align: left;
  width: calc(100% - 160px);
  padding-right: 10%;
  height: auto;
  max-height: 100%;
  overflow: auto;
}

.articles .popup ul li {
  position: relative;
  margin-bottom: 1rem;
}

.articles .popup ul li a {
  padding: 0;
  display: block;
  color: #fff;
}
.articles .popup ul li::before {
  content: "";
  display: block;
  position: relative;
  width: 1rem;
  height: 1px;
  background-color: #e4e4e4;
  margin-bottom: 0.8rem;
}
.download img {
  max-height: 50px;
  margin-bottom: 1rem;
}

.download a {
  color: #dbedf7;
  text-decoration: none;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.download a:hover {
  text-decoration: underline;
}

@media only screen and (max-width: 991px) {
  .grid-item {
    width: 48%;
    margin: 1%;
  }
  .grid-item.box-2 .view {
    height: 11rem;
  }
  .grid-item.box,
  #content .grid-item.box-2.box-3 {
    width: calc(48% - 1.15%) !important;
    margin-left: 1.5%;
    margin-top: 1%;
    margin-bottom: 1%;
    margin-right: 0;
    height: 175px;
  }
  .grid-item,
  #content .grid-item.box-2.box-3 {
    height: 65vw;
  }
  .desktop {
    display: none;
  }

  /*.grid-item.box { display:none; }*/
  #banner .banner .text1 {
    padding-top: 35vw;
  }
  header .issue {
    margin-top: auto;
    margin-left: 1rem;
  }
  header .box-bottom {
    flex-direction: column-reverse;
    margin-top: auto;
  }
  header .text a {
    margin-right: 0rem;
    text-align: end;
  }
  header .box-top img {
    max-width: 100%;
    width: auto;
    height: auto;
  }
  #banner .banner-bg::before {
    background-size: cover;
  }
  #banner .banner-bg-car {
    visibility: hidden;
  }
  .footer {
    padding-bottom: 8rem;
  }
}

@media only screen and (max-width: 660px) {
  .grid-item {
    height: 90vw;
  }
}

@media only screen and (max-width: 610px) {
  .grid-item,
  #content .grid-item.box-2.box-3 {
    width: 98% !important;
    margin: 1%;
    height: 105vw;
  }
  .grid-item.box {
    width: calc(98% - 1.15%) !important;
    margin-left: 1.5%;
    margin-top: 3%;
    margin-bottom: 1%;
    margin-right: 0;
  }
  #content .grid-item.box-2.box-3 {
    height: 175px;
  }
  section#section1 .main .left,
  section#section1 .main .right {
    float: none;
    width: 100%;
  }

  section#section1 .main .left {
    margin-bottom: 10%;
  }

  section#section1 .main .left img {
    width: 60%;
    display: block;
    margin: 0 auto;
  }

  .desktop2 {
    display: none;
  }
  .articles {
    width: 50vw;
    left: 0;
    bottom: 0;
    top: auto;
  }
  .download {
    width: 50vw;
    right: 0;
    bottom: 0;
    top: auto;
    height: 120px;
  }
  .download img {
    max-height: 45px;
    margin-bottom: 0.5rem;
  }
  .download a {
    padding: 3%;
  }
  .articles .popup {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100vw;
    height: calc(100vh - 120px);
  }
  .articles .popup ul {
    max-height: 100%;
    width: 100%;
  }
  header .box-top img:first-child {
    width: 15vw;
  }
  header .box-top img:last-child {
    width: 11vw;
  }
}

@media only screen and (max-width: 575.99px) {
  .grid-item:not(.box) {
    height: 100vw;
    min-height: 650px;
    width: 100%;
    margin: 0 0 1%;
  }
  .grid-item .text {
    height: 55%;
  }
  .grid-item .img {
    height: 45%;
  }
  #con2.main .btn a {
    font-size: 1.4em;
  }
  header .logo {
    width: 100%;
    max-width: 250px;
  }
  header .issue {
    margin-left: 0;
    margin-top: 1rem;
    max-width: 100px;
  }
  header .box-bottom {
    margin-top: auto;
  }
  header .text a {
    font-size: 0.75em;
    white-space: nowrap;
  }
  #banner .banner-bg::before {
    right: 99.6%;
    height: 63.8%;
    bottom: 0px;
  }
}
