/*------全体-------*/

/* 昼テーマ（デフォルト）の全体設定 - JavaScriptが未実行でも昼のスタイルになるように body も含めます */
body.day-theme, body {
    font-size: 13px;
    margin: 0px;
    line-height:120%;
    font-family: 'MS PGothic';
    /* 昼: 明るい背景に濃い文字 */
    color: #666666;
    background-color: #f8f8ff; 
}

header{
    margin: 10px auto;
    height: 153px;
    background-color:#fff;
    /* 昼: day.jpg を使用 */
    background-image:url(./day.jpg); 
    background-position:top right;
    background-repeat:no-repeat;
    overflow:hidden;
}

footer{
    text-align: right;
    padding: 0px 10px 10px 0px;
}

/*container（全てのブロックを囲む一番外側のブロック）----*/
#container {
    width: 90%;
    max-width: 800px;
    margin: 10px auto;
}

/* ヘッダー タイトル----------------------------------*/
h1 {
    color: #008000;
    font-size: 170%;
}
h1 a {
    color: #fff !important;
}

div#head-box {
    text-align: left;
    margin: 0 auto;
    width: 100%;
    height: 153px;
    padding: 0.7em 1.5em;
}

/* サブタイトル */
p#subttl {
    margin: 1em 0;
    color: #f8f8ff;
    font-size: 120%;
}

/*------部分-------*/

section h1{
    font-size: 15px;
    text-align: center;
}

section p{
    text-align: center;
}

#table_fo{
    margin-left: auto;
    margin-right: auto;
}

#table_fo th,#table_fo td{    
    text-align: left;
}

#table_check{
    margin-left: auto;
    margin-right: auto;
}

.komoku,.naiyou{
    text-align: center;
    background-color:#ebebeb; /* 昼テーマの背景色 */
}

.naiyou{
    font-weight: bold;
}

#table_check th.l,#table_check td.l{    
    text-align: left;
}

#div_btn{
    margin-top: 10px;
    text-align: center;
}

.bt{
    background-color: #0658B6;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    border-width: 0px;
    width: 120px;
}

#hissu{
    text-align: center;
    margin-bottom: 10px;
}

.hissu{
    color: #cc0000;
    font-weight: normal;
}

.e{
    display: none;
    color: #cc0000;
}

/* 昼テーマのテキスト入力欄: 白地に黒文字 ---------*/
input[type=text],textarea{
    border: 1px solid #C9D1DC;
    border-radius: 3px;
    margin-bottom: 1px;
    background-color: #ffffff; /* 白背景 */
    color: #000000; /* 黒文字 */
}

select{
    border: 1px solid #C9D1DC;
    width: 80px;
}

input,select {
    height: 34px;
    box-sizing: border-box;
}

textarea {
    box-sizing: border-box;
    line-height: 1.25;
    padding: 4px;
}

#table_check{    
    border:1px solid #aaaaaa;    
    border-collapse:collapse;
}
#table_check th,#table_check td{    
    border:1px solid #aaaaaa;    
    border-collapse:collapse;    
}

/*-------------------------------------------------*/
/* ★ ナイトテーマの上書きスタイル (body.night-theme) */
/*-------------------------------------------------*/

/* 全体の色調 */
body.night-theme {
    background-color: #000; /* 暗い背景 */
    color: #cccccc; /* 明るい文字色 */
}

/* ヘッダーの背景画像切り替え */
body.night-theme header {
    background-image:url(./night.jpg); /* night.jpg を使用 */
    background-color:#000; 
}

/* ヘッダータイトル */
body.night-theme h1 {
    color: #70db70; 
}
body.night-theme h1 a {
    color: #eee !important;
}

/* サブタイトル */
body.night-theme p#subttl {
    color: #cccccc;
}

/* テキスト入力欄: グレー地に白文字 */
body.night-theme input[type=text],
body.night-theme textarea {
    background-color: #444444; 
    color: #ffffff; 
    border: 1px solid #555555;
}

/* 確認画面の項目名背景 */
body.night-theme .komoku,
body.night-theme .naiyou{
    background-color:#33334d;
}

/* 必須マークの色 */
body.night-theme .hissu,
body.night-theme .e {
    color: #ff8888;
}

/* ------------------------------------------------ */

@media screen and (max-width:600px){
    body{
        font-size: 15px;
        line-height:150%;
    }

    #table_fo {
        width: 90%;
    }

    #table_fo tr,
    #table_fo th,
    #table_fo td {
        display: block;
        width: auto;
        padding: 2px;
    }

    #table_fo th {
        padding-bottom: 0;
    }

    #table_fo input[type='text'],
    #table_fo select,
    #table_fo textarea {
        width: 100%;
    }
    
    #table_check {
        width: 90%;
    }

}
