/*
 *  Remodal - v1.0.5
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  background: rgba(43, 46, 56, 0.9);
}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
  -webkit-animation: remodal-overlay-opening-keyframes 0.3s;
  animation: remodal-overlay-opening-keyframes 0.3s;
}

.remodal-overlay.remodal-is-closing {
  -webkit-animation: remodal-overlay-closing-keyframes 0.3s;
  animation: remodal-overlay-closing-keyframes 0.3s;
}

/* Default theme styles of the wrapper */

.remodal-wrapper {
  padding: 10px 10px 0;
}

/* Default theme styles of the modal dialog */

.remodal {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 10px;
  padding: 35px;

  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  color: #2b2e38;
  background: #fff;
  line-height: 1;
}

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.remodal.remodal-is-opening {
  -webkit-animation: remodal-opening-keyframes 0.3s;
  animation: remodal-opening-keyframes 0.3s;
}

.remodal.remodal-is-closing {
  -webkit-animation: remodal-closing-keyframes 0.3s;
  animation: remodal-closing-keyframes 0.3s;
}

/* 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;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  text-decoration: none;

  color: #95979c;
  border: 0;
  outline: 0;
  background: transparent;
}

.remodal-close:hover,
.remodal-close:focus {
  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;
}

/* Dialog buttons */

.remodal-confirm,
.remodal-cancel {
  font: inherit;

  display: inline-block;
  overflow: visible;

  min-width: 110px;
  margin: 0;
  padding: 12px 0;

  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;

  border: 0;
  outline: 0;
}

.remodal-confirm {
  color: #fff;
  background: #81c784;
}

.remodal-confirm:hover,
.remodal-confirm:focus {
  background: #66bb6a;
}

.remodal-cancel {
  color: #fff;
  background: #e57373;
}

.remodal-cancel:hover,
.remodal-cancel:focus {
  background: #ef5350;
}

/* Remove inner padding and border in Firefox 4+ for the button tag. */

.remodal-confirm::-moz-focus-inner,
.remodal-cancel::-moz-focus-inner,
.remodal-close::-moz-focus-inner {
  padding: 0;

  border: 0;
}

/* Keyframes
   ========================================================================== */

@-webkit-keyframes remodal-opening-keyframes {
  from {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    -webkit-transform: none;
    transform: none;

    opacity: 1;
  }
}

@keyframes remodal-opening-keyframes {
  from {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    -webkit-transform: none;
    transform: none;

    opacity: 1;
  }
}

@-webkit-keyframes remodal-closing-keyframes {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 1;
  }
  to {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);

    opacity: 0;
  }
}

@keyframes remodal-closing-keyframes {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 1;
  }
  to {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);

    opacity: 0;
  }
}

@-webkit-keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
  .remodal {
    max-width: 700px;
  }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 700px;
}



/* カスタマイズ
   ========================================================================== */

.remodal-overlay {
	background: rgba(108,204,251,0.90);
	z-index: 999999;
}

.remodal-wrapper {
	z-index: 1000000;
}
 
.remodal {
	font-family:"M PLUS 1p",
                "Helvetica Neue",
                Arial,
                "Hiragino Kaku Gothic ProN",
                "Hiragino Sans",
                Meiryo,
                sans-serif;    
}

.remodal {
	padding: 35px 15px 15px;
	margin: 0;
	position: relative;
	color: #333;
	background: #fdf6c7;
	border: solid 4px #000;
	border-radius: 20px;
	box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.remodal p.circle-id {
	position: absolute;
	left: 10px;
	top: -40px;
	font-size: 50px;
	color: #FFF;
	padding: 12px;
	background: #06268f;
	border-radius: 120px;
	width: 70px;
	height: 70px;
}

.remodal-cancel {
	position: absolute;
	top: -50px;
	right: 0;
	font-size: 50px;
	font-weight: bold;
	color: #000;
	background: none;
	min-width: inherit;
	padding: 0;
}

.remodal-cancel:hover,
	.remodal-cancel:focus {
	background: none;
}

.remodal p.item {
	margin-bottom: 5px;
}

.remodal p.itemOld {
	margin: 0 20px 10px;
    padding: 10px;
    border-radius: 10px;
    background: #FFF;
}

.remodal p.item img {
	max-width: 100%;
}

.remodal p.ttl {
	position: absolute;
	left: -15px;
	background: #f5d603;
	padding: 5px 20px;
	border: solid 2px #000;
	box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.remodal p.itemName {
	margin: 55px auto 20px;
	display: inline-block;
	border-bottom: dotted 3px #000;
	color: #06268f;
	font-size: 30px;
	font-weight: bold;
}

.remodal p.main {
	text-align: left;
	margin-bottom: 20px;
	line-height: 1.6;
}

.remodal p.voteBtn {
	display: inline-block;
	background: #fd33bd;
	padding: 10px 20px;
	border: 3px solid #000;
	font-size: 20px;
	font-weight: bold;
	border-radius: 30px;
	transition: all 300ms linear;
}

.remodal p.voteBtn2 { /* .itemName使用しないとき用 */
	display: inline-block;
	background: #fd33bd;
	padding: 10px 20px;
	border: 3px solid #000;
	font-size: 20px;
	font-weight: bold;
	border-radius: 30px;
	transition: all 300ms linear;
    margin-top: 45px;
}

.remodal p.voteBtn:hover,.remodal p.voteBtn2:hover {
	background-color: #FFF;
}

.remodal p.voteBtn a,.remodal p.voteBtn2 a {
	text-decoration: none;
	color: #000;
	display: block;
	transition: all 300ms linear;
}

.remodal p.voteBtn a:hover,.remodal p.voteBtn2 a:hover {
	color: #fd33bd;
}



/*-----------------------------------------------------	*/
/*	for - 669px以下の記述　*/
/*-----------------------------------------------------	*/

@media only screen and (max-width : 669px ){

.remodal-wrapper {
  padding: 10px 8% 0;
}

.remodal p.circle-id {
	position: absolute;
	left: 10px;
	top: -35px;
	font-size: 35px;
	color: #FFF;
	padding: 5px;
	background: #06268f;
	border-radius: 90px;
	width: 50px;
	height: 50px;
}

.remodal p.ttl {
	left: -10px;
}

.remodal p.itemOld {
	margin: 0 10px 10px;
    padding: 5px;
    border-radius: 5px;
    background: #FFF;
}

.remodal p.itemOld img {
    width: 100%;
}

.remodal p.itemName {
	font-size: 22px;
}

.remodal p.voteBtn,.remodal p.voteBtn2 {
	font-size: 16px;
}

.remodal-cancel {
	top: -40px;
	font-size: 40px;
}

}