/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

@import url('https://fonts.googleapis.com/css?family=Fascinate');
@import url('https://fonts.googleapis.com/css?family=Fredoka+One');
@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500');

@font-face {
    font-family: "Yu Gothic";
    src: local("Yu Gothic Medium");
    font-weight: 100;
}
@font-face {
    font-family: "Yu Gothic";
    src: local("Yu Gothic Medium");
    font-weight: 200;
}
@font-face {
    font-family: "Yu Gothic";
    src: local("Yu Gothic Medium");
    font-weight: 300;
}
@font-face {
    font-family: "Yu Gothic";
    src: local("Yu Gothic Medium");
    font-weight: 400;
}
@font-face {
    font-family: "Yu Gothic";
    src: local("Yu Gothic Bold");
    font-weight: bold;
}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

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

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    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;
    }
}

/* ==========================================================================
Global setting CSS
========================================================================== */

a {
    text-decoration: none;
}

li {
    list-style: none;
}

ul {
    padding: 0;
}

img {
    width: 100%;
}

/* ==========================================================================
Fadein
========================================================================== */

/* 画面外*/
.fadein {
    opacity : 0;
    transform : translate(0, 80px);
    transition : all .5s;
}

/* 画面内*/
.fadein.scrollin {
    opacity : 1;
    transform : translate(0, 0);
}

/* ==========================================================================
Main CSS
========================================================================== */

.show-on-mobile {
    display: none;
}

.hide-on-mobile {
    display: block;
}

body {
    font-family: 'Quicksand', "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

.mw-background {
    background-image: url(../images/Mikkaby_web_background.png);
    background-repeat: repeat;
}

.container {
    width: 100%;
    height: auto;
    min-height: 100%;
}

.wrapper {
    max-width: 1140px;
    margin: 0 auto;
    background-color: #FFF;
}

.global-header {
    font-family: 'Fredoka One', cursive;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 3% 0 3%;
}

.main-title {
    font-size: 24px;
    letter-spacing: 0.02em;
}

.main-title a {
    color: #ff8c00;
    transition: 0.2s;
}

.main-title a:hover {
    color: #ffb153;
    transition: 0.2s;
}

.global-menu ul {
    margin: 0px;
}

.global-menu li{
    font-size: 15px;
    letter-spacing: 0.05em;
    float: left;
    margin-left: 40px;
    transition: 0.2s;
}

.global-menu li:hover{
    transition: 0.2s;
    transform: translate(0,-3px);
}

.global-menu a {
    color: #ff8c00;
    transition: 0.2s;
}

.global-menu a:hover {
    color: #ffb153;
    text-decoration: underline;
    transition: 0.2s;
}

.instagram-logo img{
    max-height: 32px;
    width: 32px;
}

.twitter-logo img{
    max-height: 32px;
    width: 34px;
}

.facebook-logo img{
    max-height: 32px;
    width: 32px;
}


.statement-wrapper {
    background-color: #ffe475;
}

.statement-background {
    padding: 3vw 0 3vw 0;
    text-align: center;
    background-image: url(../images/orange_grey_background_small.png);
}

.first-statement {
    width: 50%;
    margin: 0 auto;
}

.banner-wrapper {
    background-image: url(../images/orange_grey_background.png);
    padding: 4vw 0 4vw 0;
}

.banner-box {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.banner-wrapper li {
    width: 30%;
    height: 100%;
    margin: 0 auto;
}

.banner-wrapper li img:hover{
    cursor: pointer;
}

.news-wrapper {
    padding: 5vw 0 5vw 0;
}

.news-box {
    width: 80%;
    margin: 0 auto 0 auto;
    border-top: 1px solid #aaa;
    padding: 14px 0 14px 0;
    display: flex;
    align-items: center;
}

.news-box:last-child {
    border-bottom: 1px solid #aaa;
}

.news-date {
    color: #ff8c00;
    float: left;
    padding-right: 40px;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.news-content {
    font-size: 14px;
    color: #405040;
}

.news-content a {
    text-decoration: underline;
}

.about-wrapper {
    background-image: url(../images/orange_grey_background.png);
}

.about-content-wrapper {
    display: flex;
    flex-direction: row;
    width: 80%;
    margin: 0 auto;
    padding: 4vw 0 4vw 0;
    justify-content: space-between;
}

.about-set {
    width: 30%;
}

.about-character-icon {
    width: 50%;
    margin: 0 auto;
}

.about-character-text-box {
    margin: 2.5vw 0 0 0;
}

.about-character-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.about-character-name-en {
    font-family: 'Fredoka One', cursive;
    color: #ff8c00;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
}

.about-character-text {
    color: #405040;
    font-size: 12px;
    margin: 1em 0 0 0;
}

.instagram-box a:hover {
    opacity: 0.7;
    transition: 0.2s;
}

.instagram-wrapper {
    position: relative;
    z-index: 0;
}

.instagram-box-overlay {
    position: absolute;
    background-color: #00c936;
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: 100;
    transition: 0.2s;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    cursor : pointer;
}

.instagram-box-overlay:hover {
    opacity: 0.8;
    transition: 0.2s;
}

.instagram-box-overlay p {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    letter-spacing: 0.1em;
    color: #FFF;
}

.mikkabi-wrapper {
    padding: 4em 0 4em 0;
}

h2.mikkabi-head {
    font-size: 24px;
    font-family: 'Fredoka One', cursive;
    letter-spacing: 0.04em;
    text-align: center;
    margin: 0 auto 1em auto;
}

.wavey-border {
    width: 80%;
    margin: 0 auto 0 auto;
}

.mikkabi-set {
    width: 80%;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2em 0 2em 0;
}

.flex-reverse {
    flex-flow: row-reverse;
}

.mikkabi-image {
    width: 40%;
}

.mikkabi-text-box {
    width: 60%;
    padding: 0 5% 0 5%;
}

.mikkabi-text-head {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1em;
}

.mikkabi-text {
    font-size: 14px;
    line-height: 2em;
}

.mikkabi-text-caption {
    font-size: 10px;
    color: #666;
}

.form-text {
    width: 60%;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper {
    background-color: #fdedff;
}

.content-background {
    background-image: url(../images/star_white_background.png);
    padding: 4em 0 4em 0;
}

.footer-box {
    font-family: 'Fredoka One', cursive;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #aaa;
    text-align: center;
    padding: 1em 0 1em 0;
}


/* --responsive----------------------------------------------------------------------------------------------------------------- */

@media screen and ( max-width : 900px ){
    
    .global-menu li{
        font-size: 14px;
        letter-spacing: 0.05em;
        margin-left: 18px;
    }
    
    .instagram-logo img{
        max-height: 24px;
        width: 24px;
    }

    .twitter-logo img{
        max-height: 24px;
        width: 24px;
    }

    .facebook-logo img{
        max-height: 24px;
        width: 24px;
    }
    
}


/* 640pixel start */
@media screen and ( max-width : 640px ){
    
    .show-on-mobile {
        display: block;
    }
    
    .hide-on-mobile {
        display: none;
    }
    
    .global-header {
        height: 60px;
        padding: 0 5% 0 5%;
    }
    
    .global-menu li{
        font-size: 12px;
        margin-left: 24px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .statement-background {
        padding: 5vw 0 5vw 0;
    }
    
    .first-statement {
        width: 70%;
    }
    
    .banner-wrapper {
        padding: 4vw 0 4vw 0;
    }

    .banner-box {
        width: 80%;
        height: auto;
        flex-direction: column;
    }

    .banner-wrapper li {
        width: 60%;
        margin: 0 auto 4vw auto;
    }

    .banner-wrapper img:last-child {
        margin: 0 auto 0 auto;
    }
    
    .news-date {
        font-size: 8px;
    }
    
    .news-content {
        font-size: 10px;
    }
    
    .about-wrapper {
        background-image: url(../images/orange_grey_background.png);
        background-size: 60%;
    }
    
    .about-content-wrapper {
        width: 60%;
        flex-direction: column;
    }
    
    .about-set {
        width: 100%;
        margin: 5vw 0 5vw 0;
    }
    
    .about-character-icon {
        width: 30%;
    }
    
    .about-character-name {
        font-size: 16px;
    }
    
    .about-character-name-en {
        font-size: 12px;
    }
    
    .about-character-text {
        font-size: 12px;
    }
    
    .instagram-box-overlay p {
        font-size: 18px;
        letter-spacing: 0.1em;
    }
    
    h2.mikkabi-head {
        font-size: 18px;
    }
    
    .mikkabi-set {
        flex-direction: column;
    }
    
    .mikkabi-image {
        width: 60%;
    }
    
    .mikkabi-text-box {
        width: 80%;
        margin: 4vw 0 0 4vw;
    }
    
    .mikkabi-text-head {
        font-size: 16px;
    }
    
    .mikkabi-text {
        font-size: 12px;
    }
    
    .form-text {
        width: 80%;
        margin: 0 auto;
        font-size: 12px;
    }
    
    .footer-box {
        font-size: 10px;
    }
    
}























