/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
  overflow: hidden;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
  /*display: none;*/
}

/* Necessary styles of the overlay */

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;

  display: none;
}

/* Necessary styles of the wrapper */

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: none;
  overflow: auto;

  text-align: center;

  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;

  height: 100%;
  margin-left: -0.05em;

  content: "";
}

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
  backface-visibility: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
  position: relative;

  text-size-adjust: 100%;
}

.remodal-is-initialized {
  /* Disable Anti-FOUC */
  display: inline-block;
}


/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
  filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}
.remodal-overlay.remodal-is-opened {
    opacity: 1;
}
/* Default theme styles of the wrapper */
.remodal-wrapper {
  padding: 10px 5% 0;
  cursor: pointer;
}

/* Default theme styles of the modal dialog */

.remodal {
  box-sizing: border-box;
  width: 100%;
/*  margin-bottom: 10px;*/
  /*padding: 35px;*/
  color: #2b2e38;
  /*background: #fff;*/
  cursor: default;

    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition:opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;

    opacity: 0;
}

.remodal-is-opened .remodal {


    opacity: 1;
}

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
  vertical-align: middle;
}

/* Close button */

.remodal-close {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  overflow: visible;

  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;

  cursor: pointer;
  /*transition: color 0.2s;*/
  text-decoration: none;

  color: #95979c;
  border: 0;
  outline: 0;
  background: transparent;
}

.remodal-close:hover {
  color: #2b2e38;
}

.remodal-close:before {
  font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
  font-size: 25px;
  line-height: 35px;

  position: absolute;
  top: 0;
  left: 0;

  display: block;

  width: 35px;

  content: "\00d7";
  text-align: center;
}


/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
  .remodal {
    /*max-width: 700px;*/
  }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 1200px;
}

/* ========== remodal ========== */
.remodal-overlay {
    background-color: rgba(0,0,0,0.6);
}
.remodal-overlay.bgblack {
    /*background-color: rgba(0,0,0,1);*/
}

.remodal-wrapper {
    padding: 20px 20px 10px;
    cursor: pointer;
}

.remodal.detail {
    max-width: 680px;
    box-sizing: border-box;
    background-color: #FFF;
    position: relative;
}
.remodal.detail.movie {
    max-width: 720px;
}
.remodal.detail.movie.big {
    width: 100%;
    max-width: 3000px;
    background-color: transparent;
    margin-top: 20px;
}

@media screen and (min-width: 640px) {
    .remodal.detail.movie.big .movie {
        height: 89vh;
        padding-top: 0;
    }
}

.remodal.detail .movie {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.remodal.detail .movie iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
}


.remodal.detail .head {
    border-bottom: 1px solid #dddddd;
}
.remodal.detail .head img {
    max-width: 100%;
    height: auto;
}

.remodal.detail .body > .inner {
    max-width: 680px;
    padding: 30px 50px 40px;
    margin: 0 auto;
}

.remodal.detail .sdgs-icons_list {
    margin-top: 30px;
}

.remodal.detail .sdgs-icons_list .ttl {
    font-size: 14px;
    font-weight: bold;
    background-color: #f2f2f2;
    padding: 8px;
    margin-bottom: 15px;
}
.remodal.detail .sdgs-icons_list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}
.remodal.detail .sdgs-icons_list ul li {
    width: 100px;
}
.remodal.detail .sdgs-icons_list ul li + li {
    margin-left: 22px;
}
.remodal.detail .sdgs-icons_list ul li img {
    max-width: 100%;
    height: auto;
    backface-visibility: hidden;
}


.remodal.detail .body > .inner .label {
    font-size: 16px;
    color: #eb6600;
    line-height: 1;
    padding: 3px 10px;
    border: 1px solid #eb6600;
    display: table;
    margin: 0 auto 15px;
}
.remodal.detail .body > .inner > .ttl {
    font-size: 24px;
    font-weight: bold;
    color: #eb6600;
    text-align: center;
    margin-bottom: 24px;
}
.remodal.detail .body > .inner .txt {
    font-size: 16px;
    line-height: 2;
    text-align: left;
}
.remodal.detail .body > .inner .txt span {
    font-size: 80%;
    display: block;
    line-height: 1.6;
}
.remodal.detail .body > .inner .txt a {
    color: #eb6600;
}
.remodal.detail .body > .inner .txt a:hover {
    color: #eb9955;
}

.remodal.detail .link a {
    font-size: 18px;
    font-weight: bold;
    color: #FFF;
    text-decoration: none;
    text-align: center;
    display: block;
    background-color: #eb6600;
    padding: 18px;
}

.remodal.detail .link a::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 18px;
    background-image: url(/sdgs/img/modal/arrow.png);
    background-repeat: no-repeat;
    margin-left: 23px;
    margin-top: -3px;
}

.remodal.detail .btn-close {
    display: block;
    width: 30px;
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 10;
}
.remodal.detail .btn-close_b {
    display: block;
    width: 30px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}
.remodal.detail .btn-close img,
.remodal.detail .btn-close_b img {
    width: 100%;
    height: auto;
}



.remodal.detail.fig .fig {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}
.remodal.detail.fig .fig .guide {
    display: block;
    width: 250px;
    height: 50px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: auto;
    animation: blink 1.5s infinite;
}
.remodal.detail.fig .fig .guide span {
    display: block;
    width: 250px;
    height: 50px;
    border-radius: 4px;
    background-color: rgba(0,0,0,0.5);
    background-image: url(/sdgs/img/sp/ico_scroll.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 210px;
    transition: opacity 1.5s ease;
}
.remodal.detail.fig .fig .guide.hide span {
    opacity: 0;
}

@keyframes blink {
  50%{
    opacity: 0.7;
  }
}

.remodal.detail.fig .fig img {
    width: 705px;
}


@media screen and (max-width: 639px) {
    .remodal-wrapper {
        padding: 4% 5% 1%;
    }

    .remodal.detail .body > .inner {
        padding: 20px;
        margin: 0 auto;
    }

    .remodal.detail .sdgs-icons_list {
        margin-top: 20px;
    }

    .remodal.detail .sdgs-icons_list .ttl {
        font-size: 12px;
        padding: 8px;
        margin-bottom: 15px;
    }
    .remodal.detail .sdgs-icons_list ul {
/*        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-start;*/
    }
    .remodal.detail .sdgs-icons_list ul li {
        width: 70px;
    }
    .remodal.detail .sdgs-icons_list ul li + li {
        margin-left: 10px;
    }


    .remodal.detail .body > .inner .label {
        font-size: 12px;
        padding: 3px 10px;
        margin: 0 auto 10px;
    }
    .remodal.detail .body > .inner > .ttl {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .remodal.detail .body > .inner .txt {
        font-size: 14px;
        line-height: 1.8;
    }

    .remodal.detail .link a {
        font-size: 13px;
        font-weight: bold;
        color: #FFF;
        text-decoration: none;
        text-align: center;
        display: block;
        background-color: #eb6600;
        padding: 13px;
    }

    .remodal.detail .link a::after {
        content: "";
        display: inline-block;
        vertical-align: middle;
        width: 14px;
        height: 9px;
        background-image: url(/sdgs/img/modal/arrow.png);
        background-repeat: no-repeat;
        background-size: contain;
        margin-left: 15px;
        margin-top: -2px;
    }

    .remodal.detail .btn-close {
        width: 20px;
        top: -32px;
    }
    .remodal.detail .btn-close_b {
        width: 20px;
        top: 5px;
    }

    .remodal.detail .btn-close img {
        width: 100%;
        height: auto;
    }
}