/* ページ全体 */
* {
    font-size : 100% ;
    margin : 0 ;
    padding : 0 ;
}
a:link {
	color: #333;
}
a:visited {
	color: #333;
}
a:hover {
	filter:alpha(opacity=50);
	-moz-opacity: 0.5;
	opacity: 0.5;
	zoom: 1.0;
	text-decoration: none;
}
a:active {
	color: #333;
}

/* body全体 */
body {
    font-family:"ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3";
    text-align : center ;
    font-size : 75% ;
    line-height: 1.5;
    letter-spacing: 1px;
}

/* メールフォーム全体を囲うidタグ */
#contents_wrapper {
    width : 720px ;
    margin : 50px auto 30px ;
    padding : 20px 15px 0 ;
    background : #ffffff;
    border-top : 1px solid #CCC ;
    border-left : 1px solid #CCC ;
    border-right : 1px solid #CCC ;
    border-bottom : 1px solid #CCC ;
}

/* 入力フォームを囲うclassタグ */
.setting_section {
    margin-bottom : 25px ;
}

/* ボタンを囲うclassタグ */
.button_box {
    clear : both ;
    padding : 8px ;
    text-align : center ;
}

/* 赤文字を表示するためのclassタグ */
.red_txt {
    color: #ff3333;
}

/* 左詰の文字を表示するためのclassタグ */
.left_txt {
    text-align : left;
}

/* 説明文を表示するためのidタグ */
#txt_explain {
    color: #000000;
}

/* コンテンツ内の[p]タグ */
#contents p {
    margin-bottom : 1em ;
    text-align : left ;
font-size: 1.2em;
}

/* コンテンツ内の[h3]タグ */
#contents h3 {
    color: #333;
    padding : 5px 10px 5px 6px ;
    text-align : left ;
    font-size : 1.5rem ;
    margin-bottom : 10px ;
}

/* コンテンツ内の内部タグ */
#contents .inner {
    padding : 0 15px ;
}

/* コンテンツ内のフォームに使用する[table]タグ */
#contents table {
    width : 690px ;
    border-collapse : collapse ;
    border-left : 1px solid #b3b3b3 ;
    border-top : 1px solid #b3b3b3 ;
    border-right : none ; 
    border-bottom : none ;
}

/* コンテンツ内のフォームに使用する[th]タグ */
#contents table th {
    border-right : 1px solid #b3b3b3 ;
    border-bottom : 1px solid #b3b3b3 ;
    border-top : none ; 
    border-left : none ;
    background : #444444;
    color: #ffffff;
    padding : 3px 5px ;
}

/* コンテンツ内のフォームに使用する[td]タグ */
#contents table td {
    border-right : 1px solid #b3b3b3 ;
    border-bottom : 1px solid #b3b3b3 ;
    border-top : none ; 
    border-left : none ;
    padding : 3px 5px ;
    text-align : left ;
}

/* フォーム全体 */
#main_table * {
	font-family : sans-serif ;
}

/* フォーム内の入力欄 */
#main_table input {
    width : 380px ;
}

/* フォーム内の入力欄 */
#main_table textarea {
    width : 410px ;
}

/***********************
 追記　cssをカスタマイズ
************************/
 
/*「必須」というオレンジの文字を表示 */
.red {
    /* color: #ff3333; */
    font-size:0;
}
.red:before {
    background-color: #f0ad4e;
    color: #ffffff;
    padding: .2em .6em .3em;
    margin-left: 15px;
    font-size: 9px;
    content: "必須";
    border-radius: .25em;
}
 
/* 確認、送信ボタンを目立たせる */
.btn {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
    display: inline-block;
    padding: 9px 80px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
 
/* 戻るボタンは無色表示 */
.btn_cancel {
    color: #333;
    background-color: #fff;
    border-color: #333;
}
 
/*コンテンツ部分*/
#contents_wrapper {
   width: 100%;
    border: none;
    padding: unset;
    margin: unset;
}
 
/*テーブルの幅変更*/
#contents table {
    width: 98%;
    margin: 0 auto;
    border-left: 1px solid #ffffff;
    border-top: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}
/*テーブルの右側thの幅指定*/
#contents table th {
    background: none;
    color: #000000;
    width: 98%;
    padding: 0.5em;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
}
 
/*テーブルのtdの幅指定*/
#contents table td {
    /* margin-left: 10px; */
    width: 98%;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
}
 
/*INPUT入力部分の横幅を広げ、縦幅も指定*/
#main_table td input {
    width: 98%;
    resize: vertical; /*テキストエリア縦のみ変更*/
    height: 34px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
 
/*テキストエリアの横幅を広げ、縦幅は指定しない(auto)*/
#main_table td textarea {
    width: 98%;
    resize: vertical; /*テキストエリア縦のみ変更*/
    border-radius: 4px;
    border: 1px solid #ccc;
}
 
/*SELECT入力部分は横幅を広げず、縦幅のみ指定*/
#main_table td select {
    height: 34px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
 
/* 表を建て並びにする */
#main_table table,
#main_table tbody,
#main_table tr, 
#main_table th, 
#main_table td {
    display: block;
    border: none;
    text-align: left;
}
 
/* 項目(段落）スペース15px */
#main_table tr {
    margin-bottom: 15px;
}