﻿@charset "utf-8";

/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0.2em;
    background: #ccc;
    color: #000;
    padding: 0.5em 1.0em;
}

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

/* Custom base styles
   ========================================================================== */

/* default
   -------------------------------------------------------------------------- */
html{
  overflow-y: scroll;
  height: 100%;
}
body{
  background: #fafafa;
  height: 100%;
}
html body,
html:not(#identified) body{
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", Arial, sans-serif;
}
html:not(.not-lte-windowsXP):not(.ie) body,
html.ie.not-meiryo body{
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", Arial, sans-serif;
}
a{
  color: #12c;
}
a:visited{
  color: #609
}
code{
  background-color: #f8f8f8;
  padding: 0 .3em;
  border: solid 1px #ccc;
  line-height: 1.8;
  font-family:
    "Consolas",
    "Bitstream Vera Sans Mono",
    "Courier New",
    Courier,
    monospace;

 -moz-border-radius: 3px;
 -webkit-border-radius: 3px;
 -o-border-radius: 3px;
 -ms-border-radius: 3px;
  border-radius: 3px;
}
html,body,div,h1,p{
  margin: 0;
  padding: 0;
  border: 0;
}
p{
  font-size: x-large;
}
form{
  text-align: center;
}
form p{
  display: inline;
}


/* frame
   -------------------------------------------------------------------------- */
#container{
  width: 100%;
  min-width: 640px;
  height: 100%;
}
#header,
#wrapper,
#layout,
#primary,
#secondary,
#tertiary,
#footer{
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
}
#primary,
#secondary,
#tertiary{
  position: relative;
  float: left;
}
#primary{
  display: block;
  width: 100%;
}
#secondary,
#tertiary{
  display: none;
  width: 0;
}


/* header
   -------------------------------------------------------------------------- */
#header{
  height: 20%;
  background: #ee0;
}


/* footer
   -------------------------------------------------------------------------- */
#footer{
  height: 20%;
  background: #0ee;
}


/* wrapper
   -------------------------------------------------------------------------- */
#wrapper{
  height: 60%;
  background: #e0e;
}


/* primary
   -------------------------------------------------------------------------- */


/* secondary
   -------------------------------------------------------------------------- */


/* tertiary
   -------------------------------------------------------------------------- */


/* Custom specific styles
   ========================================================================== */

/* [style]
   -------------------------------------------------------------------------- */


/* [page]
   -------------------------------------------------------------------------- */

.green{
  background-color: greenyellow;
}
.yellow{
  background-color: yellow;
}
h1{
  position: fixed;
}
ol{
  overflow: auto;
  position: relative;
}
li{
  margin: 8px auto;
  border: solid 2px lightgray;
  width: 200px;
  height: 200px;
}
div.counter {
  position: fixed;
  top: 100px;
}
div.counter div{
  position: relative;
  margin: 10px;
  padding: 30px 0;
  border: solid 2px lightgray;
  width: 150px;
  line-height:100%;
  text-align: center;
  font-size: 36px;
  font-weight: bold;
}

/* [fragment]
   -------------------------------------------------------------------------- */

/* effect
   -------------------------------------------------------------------------- */

.radius{
 -webkit-border-radius: 5px;
 -moz-border-radius: 5px;
 -ms-border-radius: 5px;
 -o-border-radius: 5px;
  border-radius: 5px;
}
.shadow{
  -webkit-box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.4);
  -ms-box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.4);
  -o-box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.4);
}


/* option
   -------------------------------------------------------------------------- */

.bold{
  font-weight: bold;
}
.italic{
  font-style: italic;
}
.underline{
  text-decoration: underline;
}
.alert{
  color: #000;
  background-color: #f00;
  border: solid 1px #000;
}
.warning{
  color: #000;
  background-color: #ff0;
  border: solid 1px #000;
}
.syntaxhighlighter{
  margin: .5em 0 1.0em 0 !important;
}


/* css3 boxlayout
   -------------------------------------------------------------------------- */
.boxlayout {
  width: 100%;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-box;
  display: -o-box;
  display: box;
  -webkit-box-orient: horizontal;
  -moz-box-orient: horizontal;
  -ms-box-orient: horizontal;
  -o-box-orient: horizontal;
  box-orient: horizontal;
}


/* Column layout
   ========================================================================== */
/* 1 column layout 001
   -------------------------------------------------------------------------- */
.layout-001 #layout{
  margin-left: 0;
  margin-right: 0;
}
.layout-001 #secondary{
  display: none;
}
.layout-001 #tertiary{
  display: none;
}

/* 2 column layout 012
   -------------------------------------------------------------------------- */
.layout-012 #layout{
  margin-left: 0;
  margin-right: 200px;
}
.layout-012 #secondary{
  display: block;
  margin-left: -200px;
  width: 200px;
}
.layout-012 #tertiary{
  display: none;
}

/* 2 column layout 013
   -------------------------------------------------------------------------- */
.layout-013 #layout{
  margin-left: 0;
  margin-right: 200px;
}
.layout-013 #secondary{
  display: none;
}
.layout-013 #tertiary{
  display: block;
  margin-left: -200px;
  width: 200px;
}

/* 2 column layout 021
   -------------------------------------------------------------------------- */
.layout-021 #layout{
  margin-left: 200px;
  margin-right: 0;
}
.layout-021 #secondary{
  display: block;
  margin-left: -100%;
  width: 200px;
}
.layout-021 #tertiary{
  display: none;
}

/* 2 column layout 031
   -------------------------------------------------------------------------- */
.layout-031 #layout{
  margin-left: 200px;
  margin-right: 0;
}
.layout-031 #secondary{
  display: none;
}
.layout-031 #tertiary{
  display: block;
  margin-left: -100%;
  width: 200px;
}

/* 3 column layout 123
   -------------------------------------------------------------------------- */
.layout-123 #layout{
  margin-left: 0;
  margin-right: 400px;
}
.layout-123 #secondary{
  display: block;
  margin-left: -400px;
  width: 200px;
}
.layout-123 #tertiary{
  display: block;
  margin-left: -200px;
  width: 200px;
}

/* 3 column layout 132
   -------------------------------------------------------------------------- */
.layout-132 #layout{
  margin-left: 0;
  margin-right: 400px;
}
.layout-132 #secondary{
  display: block;
  margin-left: -200px;
  width: 200px;
}
.layout-132 #tertiary{
  display: block;
  margin-left: -400px;
  width: 200px;
}

/* 3 column layout 213
   -------------------------------------------------------------------------- */
.layout-213 #layout{
  margin-left: 200px;
  margin-right: 200px;
}
.layout-213 #secondary{
  display: block;
  margin-left: -100%;
  width: 200px;
}
.layout-213 #tertiary{
  display: block;
  margin-left: -200px;
  width: 200px;
}

/* 3 column layout 312
   -------------------------------------------------------------------------- */
.layout-312 #layout{
  margin-left: 200px;
  margin-right: 200px;
}
.layout-312 #secondary{
  display: block;
  margin-left: -200px;
  width: 200px;
}
.layout-312 #tertiary{
  display: block;
  margin-left: -100%;
  width: 200px;
}


/* 3 column layout 231
   -------------------------------------------------------------------------- */
.layout-231 #layout{
  margin-left: 400px;
  margin-right: 0;
}
.layout-231 #secondary{
  display: block;
  margin-left: -100%;
  width: 200px;
}
.layout-231 #tertiary{
  display: block;
  margin-left: -100%;
  padding-left: 200px;
  width: 200px;
}

/* 3 column layout 321
   -------------------------------------------------------------------------- */
.layout-321 #layout{
  margin-left: 400px;
  margin-right: 0;
}
.layout-321 #secondary{
  display: block;
  margin-left: -100%;
  padding-left: 200px;
  width: 200px;
}
.layout-321 #tertiary{
  display: block;
  margin-left: -100%;
  width: 200px;
}


















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

/*
 * Image replacement
 */

.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 from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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