@charset "utf-8";
html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p,img ,header{
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
}

html {
	overflow-y: scroll;
}
img {
	border: none;
	vertical-align: top;
}

html,
body {
	height: 100%;	
}


.scartch_overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;	
}

header.card_scratch_hdr {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100px;
	z-index: 100;	
}
.card_scratch_hdr .header_inner {
	width: 100%;
	display: flex;
	justify-content: center;
	padding-top: 20px;
}
.card_scratch_hdr .header_logo {
	width: 300px;
}
.card_scratch_hdr .header_logo img {
	width: 100%;
	height: auto;	
}

.scratch_wrap {
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
}
.scratch_cont {
	width: 700px;
	height: 610px;
	background: url(/contents/2/SASFC/toku/scratch/assets/img/anime_box_bg_pc.jpg) no-repeat 0 0;
	background-size: 700px;
	position: relative;
	z-index: 100;
	margin-top: 150px;
	display: none;
}
.scratch_cont .base_branch {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 700px;
	z-index: 20;
}
.scratch_cont .base_leaf {
	position: absolute;
	left: -70px;
	top: -32px;
	width: 200px;
	z-index: 30;
}
.swingLeaf {
	animation: swingLeaf 0.9s forwards;
}

.scratch_cont img {
	width: 100%;
	height: auto;	
}


.scratch_cont .character_song {
	position: absolute;
    top: 24px;
    left: 160px;
	width: 328px;
	transform-origin: 167px 5px;
	animation: yurayura 2.8s  infinite;
	z-index: 5;
	transform: rotate(20deg);
}
.character_song img {
	position: relative;
	z-index: 5;	
}

.character_song::before {
	content: '';
	display: block;
	width: 110px;
	height: 110px;
	position: absolute;
	z-index: 0;
	left: 106px;
	bottom: 9px;
	background-position: center center;
	background-size: 100%;
	background-repeat: no-repeat;
}
.character_song::after {
	content: '';
	display: block;
	width: 110px;
	height: 110px;
	position: absolute;
	z-index: 1;
	left: 106px;
	bottom: 9px;
	background-position: center center;
	background-size: 100%;
	background-repeat: no-repeat;
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracth_scratch.gif);
}

.character_song.card1::before  {
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracthcard_1.png);	
}
.character_song.card2::before  {
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracthcard_2.png);	
}
.character_song.card3::before  {
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracthcard_3.png);	
}
.character_song.card4::before  {
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracthcard_4.png);	
}
.character_song.card5::before  {
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracthcard_5.png);	
}
.character_song.card6::before  {
	background-image: url(/contents/2/SASFC/toku/scratch/assets/img/scracthcard_6.png);	
}



@keyframes yurayura {
0% {
	transform: rotate(20deg);
}
50% {
	transform: rotate(-20deg);
}
 100% {
	transform: rotate(20deg);
}
}
@keyframes yurayuraSP {
0% {
	transform: rotate(17deg);
}
50% {
	transform: rotate(-17deg);
}
 100% {
	transform: rotate(17deg);
}
}

@keyframes swingLeaf {
20% {
	transform: rotate3d(0, 0, 1, 8deg);
}
40% {
	transform: rotate3d(0, 0, 1, -5deg);
}
60% {
	transform: rotate3d(0, 0, 1, 2deg);
}
80% {
	transform: rotate3d(0, 0, 1, -2deg);
}
to {
	transform: rotate3d(0, 0, 1, 0deg);
}
}

@media(min-width: 768px) {
.upper_bg,
.bottom_bg {
	display: none;	
}
}

@media(max-width: 767px) {
	
header.card_scratch_hdr {
	height: 60px;
}
.card_scratch_hdr .header_inner {
	height: 60px;
}
.card_scratch_hdr .header_logo {
	width: 180px;
}
/*
body {
	background: #B5E85D;	
}
*/
.scratch_wrap {
	display: block;
	overflow: hidden;
	
}

.scratch_cont .character_song {
	animation: yurayuraSP 2.8s  infinite;
	transform: rotate(17deg);
}
.upper_bg {
	position:fixed;
	top: 0;
	left: 0;
	height: 40vh;
	width: 100%;
	z-index: 0;
	background: #E2F7F0;
	z-index: 1;	
}
.bottom_bg {
	position:fixed;
	bottom: 0;
	left: 0;
	height: 80vw;
	width: 100%;
	z-index: 0;
	background: #B5E85D url(/contents/2/SASFC/toku/scratch/assets/img/bg_bush_sp.png) no-repeat left bottom;
	background-size: 100%;
	z-index: 0;	
}

.scratch_cont {
	margin-top: 70px;
	width: 100%;
	height: 100vw;
	background: url(/contents/2/SASFC/toku/scratch/assets/img/anime_box_bg_sp.jpg) no-repeat 0 0;
	background-size: 100%;
	z-index: 5;
}
.scratch_cont .base_leaf {
	left: -8vw;
	top: -10px;
	width: 28vw;
}

.scratch_cont .base_branch {
	width: 100%;
	top: -10vw;
}

.scratch_cont .character_song {
    top: 5vw;
    left: 17vw;
	width: 60vw;
	transform-origin: 27vw 0;
}

.character_song::before,
.character_song::after {
	width: 20vw;
	height: 20vw;
    left: 19.5vw;
    bottom: 0vw;
}	
}


