/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
a{text-decoration: none;}

body{overflow-x: hidden;}

/* ==========================================================================
   TOPCSS
   ========================================================================== */

   .main_bg{
    background: url('../img/top_bg.png') no-repeat;
    background-size: cover;
    
}
.inner-wrap{
    max-width: 1172px;
    padding: 80px 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.inner-wrap header{text-align: center;}

@media only screen and (max-width: 736px) {
   .inner-wrap header{ margin-bottom:40px;}
}

/* リンク */
.link_area{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.link_area div{
    width: 50%;
    position: relative;
    margin-bottom: 80px;
}
.link_area div:nth-of-type(2){transform: translateY(90px);}
.link_area div:nth-of-type(3){transform: translateX(80px);}
.link_area div:nth-of-type(4){transform: translate(80px,90px);}
.link_area div a{
    display: block;
    padding: 50px;
    text-align: center;
}
.link_area div a img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.link_area div a span{
    position: relative;
    z-index: 20;
    font-weight: bold;
    font-size: 30px;
    left: -16px;
    bottom: -10px;
}

@media only screen and (max-width: 1089px) {
    .link_area div a span{
        font-size: 20px;
    }
}

.link_area div a[href="honen01/"]{color: #38B2EB;}
.link_area div a[href="dai02/"]{color: #95C137;}
.link_area div a[href="dai03/"]{color: #EB6877;}
.link_area div a[href="dai04/"]{color: #F39800;}

.link_area div a[href="dai04/"] span{position: relative; top:18px;}

/*リンクアニメーション*/
.link_area div a::after{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: all .6s cubic-bezier(.55,0,.1,1);
}
.link_area div a[href="honen01/"]::after{content: url(../img/akatsukichan_ao_move.png);}
.link_area div a[href="dai02/"]::after{content: url(../img/akatsukichan_gn_move.png);}
.link_area div a[href="dai03/"]::after{content: url(../img/akatsukichan_pk_move.png);}
.link_area div a[href="dai04/"]::after{content: url(../img/akatsukichan_or_move.png);}

@media (hover: hover) {

    .link_area div a[href="honen01/"]:hover::after{
    top: calc(50% - 60px);
    left:calc(50% + 60px);
    opacity: 1;
}

.link_area div a[href="dai02/"]:hover::after{
    top: calc(50% - 95px);
    left:calc(50% - 95px);
    opacity: 1;
}

.link_area div a[href="dai03/"]:hover::after{
    top: calc(50% - 75px);
    left:calc(50% - 75px);
    opacity: 1;
}

.link_area div a[href="dai04/"]:hover::after{
    top: calc(50% - 60px);
    left:calc(50% + 60px);
    opacity: 1;
}
    
}

@media (hover: none) {
    
}



@media only screen and (max-width: 968px) {

    .inner-wrap{
        padding: 40px 0 0;
        display: block;
    }

    .inner-wrap header .logo img{width: 100%;}
    .inner-wrap header .chara img{width: 50%;}


    .link_area div{
        margin-bottom: 60px;
    }
    .link_area div:nth-of-type(2),
    .link_area div:nth-of-type(3),
    .link_area div:nth-of-type(4){transform: none;}

    .link_area div a img{
        width: 120%;
        left: 55%;
    }

    .link_area div a span{
        font-size: 20px;
        left: 0px;
        bottom: auto;
    }

    .link_area div a[href="dai04/"] span{top:auto;}


}


@media only screen and (max-width: 736px) {

 .link_area div a span{font-size: 15px;}

}

@media only screen and (max-width: 600px) {

   .link_area div a{padding: 20px;}

}

@media only screen and (max-width: 414px) {

   .link_area div a{ padding: 10px;}

}



/* footer */


.footer {
    color: #fff;
}

.footer a,
.footer a:link,
.footer a:hover,
.footer a:visited,
.footer a:active {
    color: #fff;
    display: block;
}

.footer-col {
    background: #58C8FD;
    padding: 20px 0;
}

.footer-col .common-wrap{
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-link{
    padding: 0;
    display: flex;
    list-style: none;
}
.footer-link li{margin: 0 15px;}
.footer-link li a{font-size: 15px;}

.footer-copyright{
    text-align: center;
    font-size: 10px;
}

.footer-character{
    position: absolute;
    bottom: 50px;
    right: -80px;
}

@media only screen and (max-width: 736px) {

    .footer {
        padding: 0;
    }

    .area-box.infolink-area{padding: 0;}

    .footer-col .common-wrap{
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-link{
        flex-wrap: wrap;
        margin: 10px auto;
    }
    .footer-link li{
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-col .common-wrap a{width: 100%;}
    .footer-copyright{margin: 0 auto;}

}





/* ==========================================================================
   Media Queries
   ========================================================================== */

   @media only screen and (min-width: 35em) {

   }

   @media print,
   (-o-min-device-pixel-ratio: 5/4),
   (-webkit-min-device-pixel-ratio: 1.25),
   (min-resolution: 120dpi) {

   }



/* ==========================================================================
   Print styles
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        }

        abbr[title]:after {
            content: " (" attr(title) ")";
            }

            a[href^="#"]:after,
            a[href^="javascript:"]:after {
                content: "";
            }

            pre,
            blockquote {
                border: 1px solid #999;
                page-break-inside: avoid;
            }

            thead {
                display: table-header-group;
            }

            tr,
            img {
                page-break-inside: avoid;
            }

            img {
                max-width: 100% !important;
            }

            p,
            h2,
            h3 {
                orphans: 3;
                widows: 3;
            }

            h2,
            h3 {
                page-break-after: avoid;
            }
        }