/* =============================================================================
   HTML5要素の表示
   ========================================================================== */

/*
 * HTML5未サポートブラウザーでブロックレベル要素として表示する for IE6/7/8/9 & FF3
 */
 
body,div,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
	margin: 0;
	padding: 0;
	font-weight: bold;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
    display: block;
}

img {
	vertical-align: bottom;
}

/*======================================

	1-1.Yahoo UI Library Fonts CSS
	http://developer.yahoo.com/yui/fonts/
	*Copyright (c) 2006, Yahoo! Inc. All rights reserved.
	*http://developer.yahoo.com/yui/license.txt

	Font-size Adjustment
	
	77% = 10px	| 	123% = 16px	|	167% = 22px	
	85% = 11px	|	129% = 17px	|	174% = 23px
	93% = 12px	|	136% = 18px	|	182% = 24px
	100% = 13px	|	144% = 19px	|	189% = 25px
	107% = 14px	|	152% = 20px	|	197% = 26px
	114% = 15px	|	159% = 21px	|

=======================================*/
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:normal;
}
q:before,q:after {
content:'';
}
abbr,acronym {
border:0;
}


body{
	font-size:13px;
	*font-size:small;*font:x-small;
	color: #333;
}
/*======================================
	1-2.Universal selector
=======================================*/

* {
	line-height: 1.5;
	font-weight: normal;
	font-style: normal;
	letter-spacing: -0.2px;
	font-family:"メイリオ","Meiryo","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","ＭＳ Ｐゴシック",Osaka,verdana,arial,clean,sans-serif;
}


h1,h2,h3,h4,h5,h6{font-size:100%;}
select, input, textarea {font-size:99%;}
table {font-size:inherit;font:100%;}
.size_1{font-size:77%;}
.size_2{font-size:92%;}
.size_3{font-size:100%;}
.size_4{font-size:114%;}
.size_5{font-size:123%;}
.size_6{font-size:136%;}
.size_7{font-size:182%;}


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

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

/* =============================================================================
   基本設定
   ========================================================================== */

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

/*
 * IE6/7におけるmarginの修正
 */

body {
    margin: 0;
}

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

body,
button,
input,
select,
textarea {
    font-family: sans-serif;
}

ul {
	list-style-type: none;
}


/* =============================================================================
   リンク関連
   ========================================================================== */


/*
 * Chromeにおいてoutlineの表示不具合を修正
 */

a:focus {
    outline: thin dotted;
}

/*
 * 全てのブラウザーにおいてフォーカス時、マウスホバー時の読みやすさを改善
 * 参考: people.opera.com/patrickl/experiments/keyboard/test
 */

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

/* =============================================================================
   タイポグラフィ関連
   ========================================================================== */

/*
 * IE7/8/9, S5, Chromeにおいてabbr要素がスタイリングされない問題を修正
 */

abbr[title] {
    border-bottom: 1px dotted;
}

/*
 * FF3/4, S4/5, Chromeにおいてb,strong要素がboldにならない問題を修正
*/

b,
strong {
    font-weight: bold;
}

blockquote {
    margin: 1em 40px;
}

/*
 * S5, Chromeにおいてdfn要素がイタリック体にならない問題を修正
 */

dfn {
    font-style: italic;
}

/*
 * IE6/7/8/9においてmark要素がスタイリングされない問題を修正
 */

mark {
    background: #ff0;
    color: #000;
}

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

/*
 * 1. IE6/7においてquotesプロパティーがサポートされていない問題を修正
 * 2. S4においてquotesプロパティーがサポートされていない問題を修正
 */

/* 1 */

q {
    quotes: none;
}

/* 2 */

q:before,
q:after {
    content: '';
    content: none;
}

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

/* =============================================================================
   リスト関連
   ========================================================================== */

ul,ol,li {
	margin: 0;
	padding: 0px;
}

dl,dt,dd {
	margin: 0;
	padding: 0px;
}

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

/* =============================================================================
   埋め込みコンテンツ
   ========================================================================== */

/*
 * 1. IE6/7/8/9において、a要素内側のborderを削除
 * 2. IE7において画像の拡大縮小時の画質を改善
 *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */

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

/*
 * IE9においてoverflowの表示問題を修正
 */

svg:not(:root) {
    overflow: hidden;
}

/* =============================================================================
   Figure要素
   ========================================================================== */

/*
 * IE6/7/8/9, S5, O11におけるmarginの問題を修正
 */

figure {
    margin: 0;
}

/* =============================================================================
   フォーム関連
   ========================================================================== */

/*
 * IE6/7におけるmarginの問題を修正
 */

form {
    margin: 0;
}

/*
 * 矛盾のないmarginおよびpaddingの設定
 */

fieldset {
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/*
 * 1. IE6/7/8/9において色が継承されない問題を修正
 * 2. IE6/7において揃いがおかしい問題を修正
 */

legend {
    border: 0; /* 1 */
    *margin-left: -7px; /* 2 */
}

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

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

/*
 * 1. FF3/4のUA stylesheetにおいてline-heightが!importantになっている点について修正
 * 2. IE6/7においてインナースペースの表示問題を修正
 */

button,
input {
    line-height: normal; /* 1 */
    *overflow: visible;  /* 2 */
}

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

/* =============================================================================
   テーブル関連
   ========================================================================== */

/*
 * テーブルのセル間のほとんどのスペースを削除
 */

table {
    border-collapse: collapse;
    border-spacing: 0;
}
