@media only screen and (max-device-width: 790px) {
    html,
    body {
        margin: 0px 2px;
        overflow-x: hidden;
    }
    #main {
        margin: 2px;
        width: calc(100% - 4px);
    }
    #page_id {
        position: absolute;
        top: 0;
        right: 0;
    }
    /* width属性を外す */
    *[width] {
        width: auto;
    }
    /* height属性を外す */
    *[height] {
        height: auto;
    }
    /* size属性を外す */
    input[size] {
        width: 100%;
    }
    /* 装飾画像を非表示 */
    img[src$="epay_h02_1.gif"],
    img[src$="headder03.gif"],
    img[src$="headder05.gif"],
    img[src$="headder06.gif"],
    img[src$="loginbg_03.gif"],
    img[src$="top001.gif"],
    img[src$="top002.gif"],
    img[src$="top003.gif"],
    img[src$="top004.gif"],
    img[src$="top007.gif"],
    img[src$="top008.gif"],
    img[src$="top009_01.gif"],
    img[src$="top009_02.gif"],
    img[src$="top010_01.gif"],
    img[src$="top010_02.gif"],
    img[src$="ddd_r1_c1.gif"],
    img[src$="ddd_r2_c1.gif"],
    img[src$="ddd_r3_c1.gif"],
    img[src$="ddd_r1_c3.gif"],
    img[src$="ddd_r2_c3.gif"],
    img[src$="ddd_r3_c3.gif"],
    img[src$="spacer.gif"] {
        display: none;
    }
    img[src$="epay_h02.gif"] {
        width: 100%;
        height: 42px;
        object-fit: cover;
        object-position: 0;
    }
    .over_smart_size {
        display: none !important;
    }
    .not_pc {
        display: unset;
    }
    /* 縦並びスタイル */
    table.vertical_container,
    table.vertical_container>tbody,
    table.vertical_container>tbody>tr,
    table.vertical_container>tbody>tr>th,
    table.vertical_container>tbody>tr>td,
    tr.vertical_container>th,
    tr.vertical_container>td {
        padding: 0;
        display: grid;
        width: 100%;
    }
    /* 横スクロール */
    div.horizontal_container {
        max-width: 100vw;
        overflow-x: auto !important;
    }
    div.horizontal_container>table {
        width: max-content !important;
    }
    div.horizontal_container>table tbody>tr>th,
    div.horizontal_container>table tbody>tr>td {
        white-space: nowrap;
        float: none;
    }
    table.highlight_area {
        margin-right: 6px;
        margin-bottom: 6px;
        border-radius: 6px;
        border-width: 6px;
        border-style: solid;
    }
    table.highlight_area.system_color {
        border-color: #edece1;
    }
    table.highlight_area.user_color {
        border-color: #e4e9e4;
    }
    table.highlight_area.accent_color {
        border-color: #d7dce7;
    }
    /* M030 明細メニュー */
    .M030_system_button_container img[width="101"] {
        width: 91px;
    }
    .M030_system_button_container img[width="163"] {
        width: 147px;
    }
    .M030_button_container {
        margin: 12px;
        text-align: center;
    }
    .M030_information {
        width: 90%;
    }
    .M030_information textarea {
        width: 100%;
    }
    /* M040 パスワード変更 */
    .M040_target {
        width: 100vw;
    }
    /* M100 書類送付依頼 */
    table.M100_list>tbody>tr>td {
        display: block;
    }
    .M100_button {
        text-align: center;
    }
    .M100_flexlist {
        display: table-cell !important;
    }
    /* text属性を外す */
    input.add_text_hack,
    input.add_text_en_hack {
        width: 100% !important;
    }
    .M030_user_list>table {
        width: 100%;
    }
    .M030_user_list>table>tbody>tr>td {
        width: 10px;
    }
    div.M030_search_list>table,
    div.M030_search_list>table>tbody>tr>td select {
        width: 100% !important;
    }
    div.M030_search_list>table>tbody>tr {
        display: grid;
    }
    td.M010_textarea textarea {
        width: 100%;
    }
    td.M010_textarea {
        width: 350px;
    }

	.M070_pre_wrap {
		white-space: pre-wrap ;
	}

	table.M060_table_white-space_normal,
	table.M060_table_white-space_normal>tbody>tr,
	table.M060_table_white-space_normal>tbody>tr>td,
	.M020_white-space_normal {
		white-space: normal !important;
	}

	.M020_float_right {
		float: right;
		text-align: -webkit-right;
	}
		/* パスワード変更ヘッダー */
	.button_vertical_container{
		max-width: 180px;
	}
	.vertical_container_head{
		display: grid;
	}
	/* 強制パスワード変更ヘッダー */
	.button_vertical_container_force{
		max-width: 120px;
	}
	/* 明細メニュー */
	.button_size{
		min-height:46px;
		justify-self: center;
	}
	/* 源泉徴収票 */
	.smart_button_size{
		max-width:190px;
	}
	.smart_button_size_en{
		max-width: 280px;
	}
	.select_box_smart_size{
		max-width: 104px;
	}
	.select_box_smart_size_en{
		max-width: 141px;
	}
	.book_textbox_width{
		width:65px !important;
	}
	.phone_number_textbox_width{
		width:177px !important;
	}
	/* 代理ログイン フッター調整 */
	.proxy_login_all_contents{
		position: relative;
		min-height: 100%;
	}
	.proxy_contents{
		padding-bottom: 4em;
	}
	.fotter_contents{
		position: absolute;
		bottom: 0px;
		width: 100%;
	}
	/* パスワード変更 スペース調整 */
	.smart_space_hidden{
		display: none;
	}
}
