cssでドラえもん

CSSで【ドラえもん】を作ってみました。（なんか無表情ですが）

![](https://qiita-image-store.s3.amazonaws.com/0/80560/bbac2b67-83be-ca48-62d1-b033ea95cd19.png)


```html:HTML

	<div class="head">
		<div class="eye left"><div class="black-eye"></div></div>
		<div class="eye right"><div class="black-eye"></div></div>
		<div class="head-inner">
			<div class="nose">
				<div class="nose-acse"></div>
			</div>
			<div class="nose-line"></div>
			<div class="hige left">
				<div class="top"></div>
				<div class="midle"></div>
				<div class="bottom"></div>
			</div>
			<div class="hige right">
				<div class="top"></div>
				<div class="midle"></div>
				<div class="bottom"></div>
			</div>
		</div>
		<div class="mouth1"></div>
		<div class="mouth1-left"></div>
		<div class="mouth1-right"></div>
		<div class="mouth2">
			<div class="mouth3"></div>
		</div>
	</div>

```

```css:CSS

.head{
	display: inline-block;
	position: relative;
	width: 500px;
	height: 500px;
	background-color: #0DACD6;
	border-radius: 50%;
	border: 2px solid #000;
	margin: 100px;
}
.eye{
	position: absolute;
    z-index: 5;
    width: 105px;
    height: 170px;
    background-color: #fff;
    border-radius: 49%;
    border: 2px solid #000;
}
.eye.left{
	top: 17px;
	left: 142px;
}
.eye.right{
	top: 17px;
	left: 250px;
}
.black-eye{
	position: absolute;
	top: 86px;
	left: 49px;
	z-index: 5;
	width: 38px;
	height: 58px;
	background-color: #fff;
	box-shadow: 0px 0px 0px 12px #000 inset;
	border-radius: 48%;
	background-color: #fff;
}
.eye.left .black-eye{
	left: 49px;
}
.eye.right .black-eye{
	left: 19px;
}
.head-inner{
	width: 430px;
    height: 410px;
    background-color: #FFF;
    border-radius: 50%;
    position: relative;
    border: 2px solid #000;
    top: 85px;
    left: 50%;
    margin-left: -215px;
}
.nose{
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    left: 188px;
    top: 67px;
    border: 2px solid #000;
    box-shadow: -9px -6px 0 14px #E61D26 inset;
}
.nose-line{
	    width: 2px;
    height: 80px;
    z-index: 10;
    background-color: #000;
    position: absolute;
    top: 121px;
    left: 50%;
    margin-left: -1px;
}
.hige{
	position: absolute;
    z-index: 10;
}
.hige div{
	border: 1px solid #000;
    width: 168px;
    margin-bottom: 40px;
}
.hige.left{
	top: 97px;
	left: -8px;
}

.hige.left .top{
    transform: rotate(195deg);
}
.hige.left .bottom{
    transform: rotate(165deg);
}
.hige.right{
	top: 97px;
	left: 264px;
}
.hige.right .top{
    transform: rotate(165deg);
}
.hige.right .bottom{
    transform: rotate(195deg);
}
.mouth1{
    position: absolute;
    bottom: 211px;
    z-index: 1;
    left: 50%;
    margin-left: -224px;
    width: 445px;
    height: 100px;
    border-top: 2px solid #fff;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    border-radius: 165px;
    background-color: #fff;
}
.mouth1-left{
	position: absolute;
    bottom: 211px;
    z-index: 1;
    left: 50%;
    margin-left: -224px;
    width: 100px;
    height: 100px;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #000;
    border-radius: 165px 165px 0 165px;
}
.mouth1-right{
    position: absolute;
    bottom: 211px;
    z-index: 1;
    left: 50%;
    margin-left: 121px;
    width: 100px;
    height: 100px;
    border-top: 2px solid #000;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    border-radius: 165px 165px 165px 0;
}
.mouth2{
	position: absolute;
    bottom: 34px;
    z-index: 10;
    overflow: hidden;
    left: 50%;
    margin-left: -175px;
    width: 350px;
    height: 175px;
    background-color: #EC2B26;
    border: 2px solid;
    border-radius: 0 0 1000px 1000px;
}
.mouth3{
    position: absolute;
    bottom: -78px;
    z-index: 10;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    height: 175px;
    border-radius: 1000px;
    border: 2px solid #000;
    background-color: #F17134;
}

```