/* ---- reset ---- */
body {
    margin: 0;
    font: normal 75% Arial, Helvetica, sans-serif;
}
canvas {
    display: block;
    vertical-align: bottom;
} /* ---- particles.js container ---- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image: url("./bg_kd5.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -3;
}
#particles-js::after {
    content: '';
    background-image: url('noize_color.png');
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.2;
}
/* ---- Container ---- */
.container {
    color: #fff;
    font-size: 20px;
    font-family: "BIZ UDPMincho", serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	width: 100%;
    min-height: 100vh;
    text-align: center;
    line-height: 2rem;
    margin: 0;
    padding: 0;
	position:relative;/*基準要素、子の基準となる*/
}
/*アニメーション描画用*/
canvas{
	position:absolute;/*親のブロックを基準にして相対位置に配置する*/
	/*位置指定*/
	top:0;
	right:0;
	z-index:-1;/*重ね順を-1に　※1以上だとほかのコンテンツの上に被さってしまいます*/
}
h1 {
    font-size: 36px;
    padding: 100px 0 100px 0;
    margin: 0;
}
p, a {
    margin: 0;
}
a {
    color: #fff;
    text-decoration: none;
}
a img {
    cursor: pointer;
}
.container img {
    max-width: 100%;
}
.gallery {
    width: 1200px;
    max-width: 90%;
    margin:0 auto;
    position: relative;
}
.gallery img {
    max-width: 100%;
    transform: rotate(-0.5deg);
}
.comic {
    width: 1200px;
    max-width: 90%;
    padding-bottom: 100px;
    margin:50px auto 0;
    display: flex;
    flex-wrap:wrap;
    justify-content: center;
}
.comic-inner {
    width: 38%;
    text-align: right;
    padding: 20px;
    box-sizing: border-box;
}
.comic-liner {
    width: 62%;
    height: auto;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}
.comic-inner img {
    width: 300px;
    transform: rotate(1.5deg);
}
.note1, .note2, .note3 {
    margin: 20px;
    font-size: 1rem;
    box-sizing: border-box;
    position: relative;
}
.note1 {
    width: 230px;
    line-height: 1.3rem;
    transform: rotate(3deg);
}
.note2 {
    width: 280px;
    color: #525252;
    font-weight: bold;
    line-height: 1.5rem;
    text-shadow: none;
    transform: rotate(-1.5deg);
}
.note3 {
    width: 230px;
    text-align: center;
    transform: rotate(-2deg);
}
.note1 p, .note2 p, .note3 p {
    position: absolute;/*重ねたい子要素にabsolute*/
    top:50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    -webkit-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    transform: translate(-50%,-50%);/*センター寄せの修正*/
    margin: 0!important;/*文字がずれている場合や*/
    padding: 0!important;/*文字が折り返される場合*/
}
.tape1 {
    width: 50%;
    height: 35px;
    background: rgba(251, 234, 144, 0.5);/* テープの色 */
    transform: rotate(-3deg);
    opacity: 0.9;
    top: 0;
    left: 60px;
    position: absolute;
    display: block;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.tape2 {
    width: 40%;
    height: 25px;
    background: rgba(255, 221, 159, 0.5);/* テープの色 */
    transform: rotate(32deg);
    opacity: 0.9;
    top: 35px;
    right: 5px;
    position: absolute;
    display: block;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.tape3 {
    width: 35%;
    height: 25px;
    background: rgba(255, 221, 159, 0.5);/* テープの色 */
    transform: rotate(35deg);
    opacity: 0.9;
    bottom: 40px;
    left: 10px;
    position: absolute;
    display: block;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.pin {
    width: 50px;
    height: 66px;
    border-radius: 50%;
    background: url(./ping.png);
    background-position: contain;
    background-repeat: no-repeat;
    top: 30px;
    left: 103px;
    position: absolute;
    display: block;
}
.link {
    padding: 5px;
    font-weight: bold;
    line-height: 2.5em;
    text-shadow: none;
    background-color: rgba(110, 185, 142, 0.7);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.mini {
    display: none;
}
@media (min-width:1050px) {
    .note1 {
        margin-left: 40px;
    }
    .note3 {
        margin-top: -5px;
    }
}
@media (501px <= width < 1049px) {
    .comic-inner, .comic-liner{
        width: 50%;
    }
}
@media (max-width:500px) {
    h1{
        font-size: 24px;
    }
    .comic {
        text-align: center;
    }
    .comic-inner {
        width: 90%;
        text-align: center;
    }
    .comic-liner {
        width: 90%;
    }
    .comic-inner img {
        width: 200px;
    }
    .comic-liner .hako {
        max-width: 100%;
    }
    .note1, .note2, .note3 {
        font-size: 0.9rem;
        margin: 0 auto 20px;
    }
    .note2 {
        max-width: 100%;
    }
    .mini {
        display: inline;
    }
}
