
/*ページ全体の指定*/
*{
	margin:0;
	padding:0;
	font:normal normal 100% "ＭＳ ゴシック","Osaka",sans-serif;
    border:none;
}

body{
margin:0px;
padding:0px;
font-size:84%;
background:#333333 url("img/bg.gif") repeat-x;
color:#666666;
}

/*ページ全体のリンク指定*/
a{
	color:#30B008;
	}
	
	
/*ページの輪郭*/
#flame{
	width: 780px;
	margin:0 auto;
}

/*ヘッダ*/
#head{
}
/*サイト名前：ロゴを入れたりしてください*/
#logo{
	font-size:150%;
	padding:20px 0;
	color:#ffffff;
	font-family:Arial Black;
	}

	/*ヘッダメニュー*/
	#headmenu{
		width:780px;
		height:80px;
		margin-bottom:10px;
		}
	#headmenu ul{
		width:780px;
		list-style:none;
		}
	#headmenu li{
		width:148px;
		height:40px;
		float:left;
		margin-right:8px;
		background:url("img/headmenu_a.gif") no-repeat;
		}
	#headmenu li a{
		display:block;
		width:113px;
		height:27px;
		padding:13px 0 0 35px;
		text-decoration:none;
		color:#000000;
		}
	#headmenu li a:hover{
		background:url("img/headmenu_ah.gif") no-repeat;
		}
	#headmenu li.rightbox{
		margin:0;
		}

/*サイドとメインをくくる*/
#centertop{
	background:url("img/centertop.gif") no-repeat;
	height:10px;
	}
#center{
	background:url("img/centerbg.gif") repeat-y;
	}
#centerbottom{
	background:url("img/centerbottom.gif") no-repeat;
	height:10px;
	}
				

				
/*サイドのブロック*/
#box_side{
	width: 240px;
	float: left;
}

.menu{
	width:200px;
	margin:20px;
	}
	
	h3{
	font-weight:bold;
	color:#666666;
	height:25px;
	background:url("img/menutitlebg.gif") no-repeat;
	padding:5px 0 0 10px;
		}
	#box_side ul{
		list-style:none;
		}
	#box_side li{
		width:180px;
		margin:5px 10px;
			}
	#box_side li a{
		text-decoration:none;
		color:#666666;
		}
	#box_side li a:hover{
		color:#000000;
		}
			

			

/*右のブロック*/
#box_main{
	width: 540px;
	float: right;
}

/*右のタイトル部分*/
h1,h2{
	font-weight:bold;
	color:#ffffff;
	background:url("img/subtitlebg.gif");
	height:25px;
	padding:5px 0 0 10px;
	}
	
	/*メインの記事の部分*/
	.main{
		margin:20px 20px 0 20px;
		}
		
	/*本文をくる*/
	p{
		padding:15px 7px;
		line-height:150%;
		}
	/*引用文*/
	blockquote{
		margin:10px;
		padding:5px;
		line-height:150%;
		border:1px solid #cccccc;
		}
		
		
/*著作権表示の部分つまりフッタ*/
#foot{
	color:#cccccc;
	padding:3px;
	}

	#foot a{
		color:#cccccc;
		text-decoration:none;
		}
	#foot a:hover{
		text-decoration:underline;
		}
	.both{
		clear:both;
		}
    // その他PC等
    $career_dir = ”;
}

// ユーザエージェントの取得
$agent = $_SERVER['HTTP_USER_AGENT'];

if (preg_match('/^J-PHONE/', $agent) or
    preg_match('/^Vodafone/', $agent) or
    preg_match('/^SoftBank/', $agent) or
    preg_match('/^MOT-/', $agent)) {
    // J-PHONE, Vodafone, SoftBankの場合
    $career_dir = ’sb/';
} elseif (preg_match('/^DoCoMo/', $agent)) {
    // DoCoMoの場合
    $career_dir = 'mobhp/';
} elseif (preg_match('/UP.Browser/', $agent)) {
    // auの場合
    if(preg_match('/^KDDI/', $agent)) {
        // au（HTML-OK）
        $career_dir = 'mobhp/';
    } else {
        // au（HDML-Only）
        $career_dir = 'mobhp/';
    }
} else {

// その他PC等
    $career_dir = ”;
}

$url = 'http://www.geocities.jp/daikokucyo_hozonkai/index2.html' . $career_dir;
header('Location: ' . $url);        // 指定ページに移動
exit;
