@charset "utf-8";
/* CSS Document */

/*
各種0リセット＋clearfix
*/

/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/

/*要素のフォントサイズやマージン・パディングをリセットしています*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    /*font-size:100%;*/
    vertical-align:baseline;
    background:transparent;
}

/*
 * 1. IE6/7において単位をemでbodyにfont-sizeを設定すると正しいサイズにならない問題を修正
 *    参考: http://clagnut.com/blog/348/#c790
 * 2. コンテンツの高さに関わらず全てのブラウザーでページをセンタリング（スクロールバーを常時表示する）
 * 3. AndroidやiOSにおいてtap highlight colorが親要素を含んでしまう問題を修正（tap highlight colorを消す）
 *    参考: www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
 * 4. iOSにおいて画面の向きが変わった際のテキストサイズ調整を防ぐ
 *    参考: www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */

html {
    /*font-size: 100%;*/ /* 1 */
    overflow-y: scroll; /* 2 */
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* 3 */
    -webkit-text-size-adjust: 100%; /* 4 */
    -ms-text-size-adjust: 100%; /* 4 */
}

/*行の高さをフォントサイズと同じにしています*/
body {
    line-height:1;
}

/*新規追加要素のデフォルトはすべてインライン要素になっているので、section要素などをブロック要素へ変更しています*/
article,aside,details,figcaption,figure,img,
footer,header,hgroup,menu,nav,section {
    display:block;
}

/*
  HTML5未サポートブラウザーでインライン要素として表示する for IE6/7/8/9 & FF3
  制限事項: IE6では'audio[controls]'へのスタイルは適用されません。 */

audio[controls],
canvas,
video {
    display: inline-block;
    *display: inline;
    zoom: 1;
}

/*nav要素内ulのマーカー（行頭記号）を表示しないようにしています*/
nav ul {
    list-style:none;
}

/* リスト */
ol, ul, li {
    list-style: none;
}


/*引用符の表示が出ないようにしています*/
blockquote, q {
    quotes:none;
}

/*blockquote要素、q要素の前後にコンテンツを追加しないように指定しています*/
blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

/*a要素のフォントサイズなどをリセットしフォントの縦方向の揃え位置を親要素のベースラインに揃えるようにしています*/
a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    outline:none!important;
}

/* Chromeにおいてoutlineの表示不具合を修正 */
a:focus {
    outline: thin dotted;
}

/*全てのブラウザーにおいてフォーカス時、マウスホバー時の読みやすさを改善*/
a:hover,
a:active {
    outline: 0;
}



/* ins要素のデフォルトをセットし、色を変える場合はここで変更できるようにしています */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* mark要素のデフォルトをセットし、色やフォントスタイルを変える場合はここで変更できるようにしています
また、mark要素とは、文書内の検索結果で該当するフレーズをハイライトして、目立たせる際に使用するようです。*/
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

/*テキストに打ち消し線が付くようにしています*/
del {
    text-decoration: line-through;
}

/* S5, Chromeにおいてdfn要素がイタリック体にならない問題を修正 */
dfn {
    font-style: italic;
}

/*IEではデフォルトで点線を下線表示する設定ではないので、下線がつくようにしています
また、マウスオーバー時にヘルプカーソルの表示が出るようにしています*/
abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

/*隣接するセルのボーダーを重ねて表示し、間隔を0に指定しています*/
table,tr,td,th {
    border-collapse:collapse!important;
    border-spacing:0;
}

/*
 * FF3/4, S4/5, Chromeにおいてb,strong要素がboldにならない問題を修正
*/
b,
strong {
    font-weight: bold;
}

/*水平罫線のデフォルトである立体的な罫線を見えなくしています*/
hr {
    display:block;
    height:1px;
    border:0;
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

/*縦方向の揃え位置を中央揃えに指定しています*/
input, select {
    vertical-align:middle;

}

/*
 * 'textarea'やその他のフォーム要素でのfont-familyの矛盾を修正
 */

body,
button,
input,
select,
textarea {
    font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/*
画像の設定
*1. IE7において画像の拡大縮小時の画質を改善
  code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
*/

img {
    border:none;
    vertical-align:bottom;
    -ms-interpolation-mode: bicubic;/* 1 */
    }

/*画像リンクのラインを打消し*/
a img {
    border:none;
    outline:none;
    }

/*
 * IE6, S5, Chromeにおけるfont-familyの問題を修正
 * en.wikipedia.org/wiki/User:Davidgothberg/Test59
 */

pre,
code,
kbd,
samp {
    font-family: monospace, monospace;
    _font-family: 'courier new', monospace;
    font-size: 1em;
}

/*
 * 全てのブラウザーにおいてpre-formatted textの読みやすさを改善
 */

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

small {
    font-size: 75%;
}

/*
 * 全てのブラウザーにおいてsubおよびsup要素がline-heightに影響する問題を防ぐ
 * 参考: gist.github.com/413930
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/*
 * IE9においてoverflowの表示問題を修正
 */
svg:not(:root) {
    overflow: hidden;
}

/*
 * 1. 全てのブラウザーにおいてfont-sizeが継承されない問題を修正
 * 2. IE6/7, F3/4, S5, Chromeにおけるmarginの差異を修正
 * 3. 全てのブラウザーにおいて外観と一貫性を改善
 */

button,
input,
select,
textarea {
    margin: 0; /* 2 */
    vertical-align: baseline; /* 3 */
    *vertical-align: middle; /* 3 */
}

/*
 * 1. image-typeが'input'とその他についてユーザビリティと一貫性を改善
 * 2. iOSにおいてクリック可能な'input'にスタイルが適用できない問題を修正
 */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer; /* 1 */
    -webkit-appearance: button; /* 2 */
}

/*
 * IE8/9においてbox-sizingプロパティがcontent-boxになっている点を修正
 */

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
}

/*
 * 1. S5, Chromeにおいてappearanceプロパティがsearchfieldになっている点を修正
 * 2. S5, Chromeにおいてbox-sizingプロパティがborder-box担っている点を修正 (将来的なことを踏まえて-mozも含める)
 */

input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}

/*
 * S5, Chrome on OSXにおけるpaddingの表示問題を修正
 */

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/*
 * FF3/4におけるpadding及びborderの表示問題を修正
 * 参考: www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/*
 * 1. IE6/7/8/9におけるデフォルト表示のスクロールバーを削除
 * 2. 全てのブラウザーにおいて読みやすさと揃えを改善
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}


/* clearfix */
.clearfix:after {
  content: ".";  /* 新しい要素を作る */
  display: block;  /* ブロックレベル要素に */
  clear: both;
  height: 0;
  visibility: hidden;
}

.clearfix {
  min-height: 1px;
}

* html .clearfix {
  height: 1px;
  /*¥*//*/
  height: auto;
  overflow: hidden;
  /**/
}

