/*! HTML5 Boilerplate v5.2.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.
 */

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

html {
    color: #000;
    font-size: 28px; max-height: 100%;
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
    font-weight: bold;
    line-height: 1.5;
}

body {
    -webkit-text-size-adjust: 100%;
}

/*
 * 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
   ========================================================================== */

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
dl {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style-type: none;
}

img {
  display: block;
}

a,
a:hover,
a:active {
  color: #000;
}

a {
  text-decoration: underline;
}

a:hover,
a:active {
  text-decoration: none;
}

.header {
    width: 1180px;
    margin: 0 auto;
}

.header h1 a {
    float: left;
    background: transparent url(../img/shared/logo.gif) 0 0 no-repeat;
    width: 292px;
    height: 60px;
    margin-top: 10px;
}

.header .nav {
    float: right;
    margin-top: 10px;
}

.header .nav ul li {
    float: left;
    margin-left: 30px;
}

.header .nav ul li a {
    display: block;
    background-repeat: no-repeat;
}

.header .nav ul li.about a {
    background-image: url(../img/shared/nav.gif);
    background-position: 0 0;
    width: 82px;
    height: 30px;
}

.header .nav ul li.about a.selected,
.header .nav ul li.about a:hover,
.header .nav ul li.about a:active {
    background-position: 0 -30px;
}

.header .nav ul li.event a {
    background-image: url(../img/shared/nav.gif);
    background-position: -112px 0;
    width: 71px;
    height: 30px;
}

.header .nav ul li.event a.selected,
.header .nav ul li.event a:hover,
.header .nav ul li.event a:active {
    background-position: -112px -30px;
}

.header .nav ul li.store a {
    background-image: url(../img/shared/nav.gif);
    background-position: -214px 0;
    width: 65px;
    height: 30px;
}

.header .nav ul li.store a.selected,
.header .nav ul li.store a:hover,
.header .nav ul li.store a:active {
    background-position: -214px -30px;
}

.header .nav ul li.contact a {
    background-image: url(../img/shared/nav.gif);
    background-position: -309px 0;
    width: 107px;
    height: 30px;
}

.header .nav ul li.contact a.selected,
.header .nav ul li.contact a:hover,
.header .nav ul li.contact a:active {
    background-position: -309px -30px;
}

.header .nav ul li.blog a {
    background-image: url(../img/shared/nav.gif);
    background-position: -446px 0;
    width: 55px;
    height: 30px;
}

.header .nav ul li.blog a.selected,
.header .nav ul li.blog a:hover,
.header .nav ul li.blog a:active {
    background-position: -446px -30px;
}

.header .nav ul li.social span {
    display: block;
    background-image: url(../img/shared/nav.social.gif);
    background-repeat: no-repeat;
    width: 109px;
    height: 22px;
    cursor: pointer;
}

.header .nav ul li.social ul {
    display: none;
}

.header .nav ul li.social ul li {
    float: none;
    padding-top: 20px;
    margin-left: -30px;
}

.header .nav ul li.social ul li.facebook a {
    background-image: url(../img/shared/nav.social.account.png);
    background-position: -2px 0;
    width: 130px;
    height: 30px;
    margin-left: 2px;
}

.header .nav ul li.social ul li.facebook a:hover,
.header .nav ul li.social ul li.facebook a:active {
    background-position: -2px -130px;
}

.header .nav ul li.social ul li.twitter a {
    background-image: url(../img/shared/nav.social.account.png);
    background-position: -47px -50px;
    width: 85px;
    height: 30px;
    margin-left: 47px;
}

.header .nav ul li.social ul li.twitter a:hover,
.header .nav ul li.social ul li.twitter a:active {
    background-position: -47px -180px;
}

.header .nav ul li.social ul li.instagram a {
    background-image: url(../img/shared/nav.social.account.png);
    background-position: 0 -100px;
    width: 132px;
    height: 30px;
}

.header .nav ul li.social ul li.instagram a:hover,
.header .nav ul li.social ul li.instagram a:active {
    background-position: 0 -230px;
}

.main {
    width: 1180px;
    margin: 0 auto;
}

.main .read {
    margin: 120px auto 0;
}

.main .read h2 {
    font-size: 36px; max-height: 100%;
    color: #1d31e7;
    margin-top: -5px;
    margin-bottom: 75px;
}

.main .read h2 span {
    font-size: 28px; max-height: 100%;
}

.main .read h2 span a {
    color: #1d31e7;
}

.main .read h3 {
    font-size: 28px; max-height: 100%;
}

.main .contentheader {
    margin-top: 80px;
}

.main .contentheader h3 {
    float: left;
    background-color: #e86123;
    line-height: 48px;
    padding-right: 10px;
    padding-left: 10px;
    margin-right: 20px;
}

.main .contentheader p {
    font-size: 18px; max-height: 100%;
    line-height: 48px;
    color: #1d31e7;
}

.main .contentheader p a {
    color: #1d31e7;
}

.main .content .description {
    width: 1180px;
    margin-top: 15px;
    margin-bottom: 35px;
}

.main .content .description span {
    font-size: 18px; max-height: 100%;
}

.footer {
    width: 1180px;
    margin: 80px auto 10px;
}

.footer a {
    display: block;
}

.footer .logo a {
    float: left;
    background: transparent url(../img/shared/footer.logo.gif) 0 0 no-repeat;
    width: 200px;
    height: 40px;
    margin-right: 40px;
}

.footer .share a {
    float: left;
    background: transparent url(../img/shared/share.gif) 0 0 no-repeat;
    width: 106px;
    height: 34px;
    margin-right: 20px;
}

.footer .tweet a {
    background: transparent url(../img/shared/tweet.gif) 0 0 no-repeat;
    width: 110px;
    height: 34px;
}

.footer .share a:hover,
.footer .share a:active,
.footer .tweet a:hover,
.footer .tweet a:active {
    opacity: .5;
}

.caption {
    font-size: 18px; max-height: 100%;
    line-height: 20px;
    margin-top: 10px;
}

.caption img {
    display: inline-block;
    line-height: 20px;
    margin-top: -3px;
}

.more {
    line-height: 26px;
}

.more a,
.more span {
    display: inline-block;
    background: transparent url(../img/shared/trigonal.gif) 0 0 no-repeat;
    padding-left: 28px;
    color: #e86123;
    text-decoration: none;
}

.more a:hover,
.more a:active {
    text-decoration: underline;
}

.external {
    line-height: 40px;
}

.external a {
    display: inline-block;
    background: transparent url(../img/shared/arrow.gif) right center no-repeat;
    padding-right: 50px;
    color: #1d31e7;
    text-decoration: none;
}

.external a:hover,
.external a:active {
    text-decoration: underline;
}

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

/*
 * v4.3.0から拝借
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * 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 */
    .header h1 a {
        background-image: url(../img/shared/logo@2x.gif);
        background-size: 292px 60px;
    }
    .header .nav ul li.about a {
        background-image: url(../img/shared/nav@2x.gif);
        background-size: 501px 60px;
        background-position: 0 0;
    }
    .header .nav ul li.about a.selected,
    .header .nav ul li.about a:hover,
    .header .nav ul li.about a:active {
        background-position: 0 -30px;
    }
    .header .nav ul li.event a {
        background-image: url(../img/shared/nav@2x.gif);
        background-size: 501px 60px;
        background-position: -112px 0;
    }
    .header .nav ul li.event a.selected,
    .header .nav ul li.event a:hover,
    .header .nav ul li.event a:active {
        background-position: -112px -30px;
    }
    .header .nav ul li.store a {
        background-image: url(../img/shared/nav@2x.gif);
        background-size: 501px 60px;
        background-position: -214px 0;
    }
    .header .nav ul li.store a.selected,
    .header .nav ul li.store a:hover,
    .header .nav ul li.store a:active {
        background-position: -214px -30px;
    }
    .header .nav ul li.contact a {
        background-image: url(../img/shared/nav@2x.gif);
        background-size: 501px 60px;
        background-position: -309px 0;
    }
    .header .nav ul li.contact a.selected,
    .header .nav ul li.contact a:hover,
    .header .nav ul li.contact a:active {
        background-position: -309px -30px;
    }
    .header .nav ul li.blog a {
        background-image: url(../img/shared/nav@2x.gif);
        background-size: 501px 60px;
        background-position: -446px 0;
    }
    .header .nav ul li.blog a.selected,
    .header .nav ul li.blog a:hover,
    .header .nav ul li.blog a:active {
        background-position: -446px -30px;
    }
    .header .nav ul li.social span {
        background-image: url(../img/shared/nav.social@2x.gif);
        background-size: 109px 22px;
    }
    .header .nav ul li.social ul li.facebook a {
        background-image: url(../img/shared/nav.social.account@2x.png);
        background-size: 132px 260px;
        background-position: -2px 0;
    }
    .header .nav ul li.social ul li.facebook a:hover,
    .header .nav ul li.social ul li.facebook a:active {
        background-position: -2px -130px;
    }
    .header .nav ul li.social ul li.twitter a {
        background-image: url(../img/shared/nav.social.account@2x.png);
        background-size: 132px 260px;
        background-position: -47px -50px;
    }
    .header .nav ul li.social ul li.twitter a:hover,
    .header .nav ul li.social ul li.twitter a:active {
        background-position: -47px -180px;
    }
    .header .nav ul li.social ul li.instagram a {
        background-image: url(../img/shared/nav.social.account@2x.png);
        background-size: 132px 260px;
        background-position: 0 -100px;
    }
    .header .nav ul li.social ul li.instagram a:hover,
    .header .nav ul li.social ul li.instagram a:active {
        background-position: 0 -230px;
    }
    .footer .logo a {
        background-image: url(../img/shared/footer.logo@2x.gif);
        background-size: 200px 40px;
    }
    .footer .share a {
        background-image: url(../img/shared/share@2x.gif);
        background-size: 106px 34px;
    }
    .footer .tweet a {
        background-image: url(../img/shared/tweet@2x.gif);
        background-size: 110px 34px;
    }
    .more a,
    .more span {
        background-image: url(../img/shared/trigonal@2x.gif);
        background-size: 18px 26px;
    }
    .external a {
        background-image: url(../img/shared/arrow@2x.gif);
        background-size: 40px 40px;
    }
}

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

@media print {
    *,
    *:before,
    *:after {
        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;
    }
}
