@media (max-width: 1025px) {

body {
    width: 100%;
    font-size:16px !important;
    line-height:1.6;
}
.wrap { overflow: hidden; }

.pc { display:none; }
.sp { display:block; }

#pc-navi { display:none; }
#sp-navi { display:block; }

.nw { white-space: nowrap; }

.acenter2 {
    width: auto;
}


/****************************************

		ヘッダーフッター

*****************************************/

/* ロゴ */
.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
}
.logo img {
    height: 30px;
}
    
/* ヘッダー */
nav {
    margin: 0;
}

/* フッター */
#f_navi {
    padding: 0;
    border-top: 1px solid #eee;
    text-align: left;
}
#f_navi a {
    display: block;
    margin: 0 0 0 0;
    padding: 10px 0 10px 25px;
    background: url(../images/polygon.png) no-repeat 10px;
    background-size: 6px;
    border-bottom: 1px solid #eee;
}
#f_navi a:last-child {
    background: url(../images/polygon.png) no-repeat 10px;
    background-size: 6px;
}

footer {
    padding: 35px 0 5px 0;
}

footer img {
    width: 40px;
}
footer span {
    margin: 0 0 30px 0;
}
footer p {
    margin: 0 10px 30px 10px;
    font-size: 14px;
    line-height: 25px;
}


/****************************************

		トップページ

*****************************************/

/* メインビジュアル */
#mainvisual {
    position: relative;
    width: 100%;
    min-height: 420px;
    margin: -100px 0 0 0;
    background: url(../images/main.jpg) no-repeat;
    background-size: cover;
    background-position: bottom -30px right 0px;
    text-align:center;
}

#mainvisual h1 {
    position: relative;
    top: 170px;
    left: 30px;
    width: 90%;
    font-size: 18px;
    font-weight: bold;
}
#mainvisual h1 span {
    display: block;
    position: relative;
    top: 20px;
    left: auto;
    font-size: 13px;
}
#mainvisual h1 span:hover {
    left: auto;
}

#mainvisual h1 br {
    display:inline;
}

#mainvisual #mv-navi {
    display: none;
}

/* YBSホールディングスについて */
#top_about, #top_company {
    position: relative;
    margin: 0 5% 30px 5%;
}

#top_about h1, #top_company h1 {
    position: relative;
    height: 100px;
    margin: 0 0 25px 0;
    background-size: contain;
}
#top_about h1 div, #top_company h1 div {
    top: 50px;
    left: 30px;
    font-size: 20px;
}
#top_about h1 span, #top_company h1 span {
    top: 0;
    font-size: 70px;
}

#top_about #right {
    position: relative;
    text-align: center;
    vertical-align: middle;
    right: auto;
    top: auto;
    height: 100px;
    overflow: hidden;
    border-radius: 3px;
}
#top_about #right img {
    width: 100%;
    margin: -120px 0 0 0;
}

#top_about #text {
    width: auto;
    margin: 20px 0 0 0;
}
#top_about #text h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.link a {
    width: 100%;
    margin: 40px 0;
    font-size: 13px;
}

/* 事業内容 */
#top_service {
    position: relative;
    padding: 0 5%;
    height: auto;
}

#top_service h1 {
    position: relative;
    height: 100px;
    margin: 0 0 25px 0;
    background-size: contain;
}
#top_service h1 div {
    top: 50px;
    right: 0px;
    font-size: 20px;
    z-index: 100;
}
#top_service h1 span {
    top: 0;
    font-size: 70px;
}

#top_service #left {
    position: relative;
    left: auto;
    top: 0;
    height: 100px;
    overflow: hidden;
    border-radius: 3px;
}
#top_service #left img {
    width: 100%;
    margin: -120px 0 0 0;
}

#top_service #text {
    position: relative;
    top: 10px;
    right: 0;
    width: auto;
}

#top_service .link a {
    position: relative;
}

/* 会社案内 */
.table {
    display:block;
	flex-wrap:nowrap;
	align-items: stretch;	
	width: auto;
    margin: 0;
}
.table dt {
	padding: 20px 0 10px 10px;
	width: auto;
    border: none;
}
.table dd {
	padding: 0px 0 20px 20px;
	width: auto;
}





/****************************************

		個別ページ

*****************************************/

/* 下層共通 */
#under_head {
    position: relative;
}

#under_head h1 {
    height: 200px;
}
#under_head h1 div {
    top: 100px;
    left: 20px;
    font-size: 20px;
}
#under_head h1 span {
    top: 50px;
    font-size: 60px;
}

#under_head #pan {
    display: none;
}

/* YBSホールディングスについて */
.about .wrap {
    background-position: right 100px;
    background-size:70%; 
}

#mission {
    margin: 0 5% 100px 5%;
}

#mission h1 {
    margin: 0 0 60px 0;
    font-size: 26px;
}
#mission h2 {
    margin: 0 0 60px 0;
    font-size: 22px;
}
#mission p {
    margin: 0 0 40px 0;
    font-size: 20px;
}
#mission p br {
    display: none;
}


/* 事業内容 */
#service {
    margin: 0 0 100px 0;
}

#service #text {
    margin: 0 5% 30px 5%;
}
#service #text p {
    margin: 0 0 20px 0;
}

#service #property {
    padding: 4% 5% 1% 5%;
}

#service #property h1 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 500;
}

#service #property div {
    display: block;
    width: auto;
    margin: 0 20px 30px 20px;
}

/* 会社案内 */
#overview {
    margin: 0 5% 80px 5%;
}

#overview h2 {
    display: block;
    width: auto;
    padding: 0 0 15px 0;
}

#overview .table {
    display: block;
    width: auto;
    margin: 0 0 0 0;
}
#overview .table dt {
    font-weight: 700;
}
#overview iframe {
    width: 100%;
}

#history {
    margin: 0 0 50px 0;
    padding: 5% 5% 10px 5%;
}

#history h2 {
    display: block;
    width: auto;
    padding: 0 0 15px 0;
}

#history div {
    display: block;
    width: auto;
    margin: 30px 0 0 0;
}

#history h3 {
    font-size: 18px;
}

#history .table {
    display: block;
    width: auto;
    margin: 0 0 0 0;
}
#history .table dt {
    width: auto;
    border: none;
    font-weight: 700;
}
#history .table dd {
    width: auto;
    border-bottom: 1px solid #fff;
}
    



/* ハンバーガーメニュー */
#hamburger { 
    display: block; 
    position:absolute; 
    top: 0px; right: 0px; 
    z-index:9999;
}
.drawer_hidden { display: none; }
.drawer_open { display: flex; height: 45px; width: 50px; justify-content: center; align-items: center; position: relative; z-index: 100; cursor: pointer; }
.drawer_open span, .drawer_open span:before, .drawer_open span:after { content: ''; display: block; height: 3px; width: 25px; border-radius: 3px; background: #333; transition: 0.5s; position: absolute; }
.drawer_open span:before { bottom: 8px; }
.drawer_open span:after { top: 8px; }

#drawer_input:checked ~ .drawer_open span { background: rgba(255, 255, 255, 0); }
#drawer_input:checked ~ .drawer_open span::before { bottom: 0; transform: rotate(45deg); }
#drawer_input:checked ~ .drawer_open span::after { top: 0; transform: rotate(-45deg); }
.nav_content { width: 100%; height: 100%; position: fixed; top: 0; left: 100%; z-index: 99; background: #fff; transition: .5s; }
.nav_list { list-style: none; }
#drawer_input:checked ~ .nav_content { left: 0%; box-shadow:0 0 0px 250px rgba(0, 0, 0, 0.5);/* メニューを画面に入れる */ }
.nav_content h2 { display: block; margin: 0; padding: 40px 20px 20px 20px; background: #F2F0F0; font-size: 14px; text-align: center;}
.nav_content h2 img { height: 30px; }
.nav_content h2 small { font-weight: 400; }
.nav_content h2 div { font-size: 12px; color: #999898; }
.nav_content ul { margin-top: -10px;  padding: 0; }
.nav_content li a { display: block; width: 100%; margin: 0; padding: 20px; border-bottom: 1px solid #F2F0F0; font-size: 14px; text-align: left; font-weight: 400; color: #333;}
.nav_content li a i { color: #914355; margin: 0 15px 0 0; }
.nav_content .logout a { margin: 30px auto; width: 40%; background: #5CC5E5; color: #fff; border-radius: 50px; text-align: center; font-weight: 700; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25); }
.nav_content .logout a i { color: #fff; }

}