@charset "utf-8";
/**
 * Scratch Lottery version 3.0
 * (c) 2023 Digital Aid
 * https://www.digital-aid.co.jp/tool/scratch/
 */

#wrapper, input, select, textarea {
	font-size: 12px;
}
h1 {
	font-size: 1.2rem;
}
.lottery-info {
	padding: 1em 1em;
	text-align: left;
}
.lottery-info2 {
	padding: 0 1em 1em;
	text-align: center;
}

#back-layer {
	background-color: rgba(0,0,139,1);
	font-family: "メイリオ", "ヒラギノ角ゴ", "Arial", "Helvetica", sans-serif;
	font-weight: bold;
	height: 100%;
	width: 100%;
	position: fixed;
	left: 0;
	top : 0;
	text-align: center;
}
#card-area {
	background-color: #fff;
	border-radius: 10px;
    min-height: 200px;
	min-width : 300px;
	max-width : 600px; 
	width: 100%;
	margin: 0;
	padding: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
#text-block {
	color: #c0c0c0;
	font-size: 80px;
	line-height: 1.35;
	height: 108px;
	width: 240px;
	position: absolute;
	top: calc(50% - 54px);
	left: calc(50% - 120px);
}
#card-area.gradate {
	background: linear-gradient(45deg, #F9E833 0%, #F9E833 45%, #FAC43B 70%, #F9E833 85%, #F9E833 90% 100%);
	background-size: 800% 400%;
	animation: gradate 3s cubic-bezier(.62, .28, .23, .99);
}
@keyframes gradate {
	0% {
	  background-position: 0% 50%;
	}
  
	50% {
	  background-position: 100% 50%;
	}
  
	100% {
	  background-position: 0% 50%;
	}
  }
#card-area.gradate #text-block {
	color: #FEE9A0;
}
#cover-area {
	min-height: 120px;
	max-height: 200px;
	height: auto;
	min-width: 260px;
	width: 60%;
	overflow: hidden;
	margin: 0;
	padding: 0;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
}
.cover-piece {
	background-color: #c0c0c0;
	display: block;
	margin: 0;
	padding: 0;
	height: 20px;
	width : 20px;
	position: absolute;
}
#btn-area {
	font-weight: bold;
	height: 44px;
	min-width: 260px;
	position: absolute;
}
#btn-area button {
	box-shadow: 0 3px #2b0c0c;
	border-radius: 0.5em;
	color: #2b0c0c;
	font-size: 14px;
	line-height: 3.14;
	text-align: center;
	width: 100%;
}
#scratch-btn {
	background-color: #EDC5BB;
}
#auto-btn {
	background-color: #FFD1CE;
}
#next-btn {
	background-color: #D8B1AE;
}
#auto-btn, #next-btn {
	width: 50%;
}
#btn-area button:hover {
	box-shadow: 0 1px #2b0c0c;
	bottom: calc(50% - 167px);
}
.da_invisible {
	visibility: hidden;
}
.da_hide {
	display: none;
}
.da_larger {
	font-size: 1.2em;
	font-weight: bold;
}
.btn-try {
	background-color: #DB3232;
	border: 1px solid #DB3232;
	color: #fff;
}
.btn-try:hover {
	background-color: #fff;
	color: #DE3232;
}

/* フォーム */
#prize-info {
	background-color: #fff;
}
#content form {
	border: 1px solid #ddd;
	padding: 1em;
	text-align: left;
}
dt {
	margin-bottom: 1px;
}
.da_must {
	color: #f00;
	font-size: 0.85em;
}
.da_smaller {
	font-size: 0.85em;
}
dd {
	margin: 1px 0;
	padding:0;
}
dd#readonly input {
	background-color: #ddd;
}
.flex {
	display: flex;
}
.da_center {
	text-align: center;
}
.da_right {
	text-align: right;
}
input.da_send, input.da_reset {
	border-radius: 0.5em;
	font-weight: bold;
	line-height: 3.66;
	margin-left: 5%;
	width: 40%;
}
input.da_send {
	background-color: #DB3232;
	color: #fff;
}
input.da_reset {
	border: 1px solid #DB3232;
	color: #DB3232;
}
#footer {
	background-color: #ffe5e5;
	margin: 1rem 0 0;
	padding: 1rem 1rem 2rem;
	text-align: right;
}

/* --- Phone Size over 587 --- */
@media screen and ( min-width: 587px) {
	#wrapper, input, select, textarea {
		font-size: 14px;
	}
	h1, #content, #copyright {
		padding: 0 2rem;
	} 
	#header, #main {
		margin : 1rem 1rem;
	}
	#header {
		padding-top: 1rem;
	}
	th {
		white-space: nowrap;
	}
	#lotter-info, #prize-info {
		max-width: 875px;
		margin: 1em 2em;
	}
	#lotter-info .outer {
	/*	margin: 1em 10%; */
		width: 80%;
	}
	#prize-info form {
		padding: 1em 2em;
	}
}

/* ====== 大型ディスプレイ ====== 931px以上 */
@media only screen and (min-width: 931px) {
	body {
		background-color: #ffe5e5;
	}
	#wrapper {
		background-color: #fff;
		height: auto;
		margin: 0 auto;
		max-width: 931px;
	}
}