@charset "UTF-8";

/* ================================================================ *
	CSS for Weddingagency 2011 common use
 * ================================================================ */

/* マージンをリセット */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,table,th,td,address,form,p {
	margin: 0;
	padding: 0;
}
img { border-style: none; border-width: 0; display: block; }
a:link img,a:visited img,a:active img,a:hover img { border-style: none; border-width: 0; }
ul,ol {
	list-style: none;
}
h1,h2,h3,h4,h5,h6,address,caption,em {
	font-style: normal;
	font-weight: normal;
}
div{
    zoom:1;/*for IE 5.5-7*/
}
div:after{/*for modern browser*/
    content:".";
    display: block;
    height:0px;
    clear:both;
    visibility:hidden;
}
ul{ margin: 0; padding: 0; zoom:1;/*for IE 5.5-7*/
}
li { margin: 0; padding: 0; }
ul:after{/*for modern browser*/
    content:".";
    display: block;
    height:0px;
    clear:both;
    visibility:hidden;
}
dl{
    zoom:1;/*for IE 5.5-7*/
}
dl:after{/*for modern browser*/
    content:".";
    display: block;
    height:0px;
    clear:both;
    visibility:hidden;
}
/* フロートしているナビゲーションのリストアイテムのフロート解除を、直下のHTML要素の有無に関わらずクリアするための設定 */
#navi ul:after {
  height: 0;
  visibility: hidden;
  content: ".";
  display: block;
  clear: both;
}

/* 配置の基準の設定 */
#container, #main, #mainbox {
  position: relative;
}

/* サイドメニューは絶対配置 */
#sidenavi { float: left; }

/* サイドコンテンツは絶対配置 */
#sidebox { top: 0; right: 0; float: right; }

/* 背景写真型のコンテンツは絶対配置 */
#contentsbox, #navibox {
  position: absolute;
}

#mainimgbox {
  display: block;
  position: absolute;
}

/* ナビゲーション，フッタでは折り返しを抑制 */
#navi, #footer {
  white-space: nowrap;
}

/* ナビゲーション，フッタの箇条書きは横並びリスト */
#navi ul, #footer ul, #bottom ul {
  margin: 0;
  list-style: none;
}

#navi ul li, #footer ul li, #bottom ul li {
  display: inline;
  padding-left: 16px;
  padding-right: 0.5em;
  background: left center no-repeat;
}

/* サイドメニューのコンテンツはマージン 0 でコンパクトに */
#sidenavi p, #sidenavi ul, #sidenavi ol, #sidenavi dl,
#navibox p, #navibox ul, #navibox ol, #navibox dl {
  margin-top: 0;
  margin-bottom: 0;
}

/* 回り込み解除設定 */
#header, #navi, #contents, #footer {
  clear: both;
}

/* ハイパーリンク付き画像は枠なし */
a img {
  border: none;
}

/* 画像のみのボックスのパディングは 0 とする */
.imgbox {
  padding: 0;
  
}

/* 画像のみのボックスの画像の余白は「なし」にしておく */
.imgbox img {
  margin: 0;
  padding: 0;
  border: none;
}

/* サムネイルリストはマーカなし，余白なし */
#thumbslist {
  list-style: none;
  margin: 0;
  padding: 0;
}

#thumbslist li {
  float: left;
  margin: 0;
  overflow: hidden;
  display: block;
  text-align: center;
}

/* サムネイルはボックスの中央に */
.thumbnail {
  margin: 0 auto;
}

/* ---------- バグ回避 ----------- */

/* IE6 で画像が消えることがあるバグを回避 */
#contents img {
  position: relative;
}

/* IE6/IE7 で垂直配置がずれるバグを回避 */
html[lang^="ja"] #sidenavi {
  margin-top: 0;
}
table, tr, td { margin: 0; border-width: 0; outline-width: 0; }
/* ---------------------------------------------------------------- *
	clearfix
 * ---------------------------------------------------------------- */
.clearfix:after {
   content: ".";
   display: block;
   clear: both;
   height: 0;
   visibility: hidden;
}
.clearfix { display: inline-block; }
/* exlude MacIE5 \*/
* html .clearfix { height: 1% }
.clearfix {display:block;}
/* end MacIE5 */
