/*  
  Theme Name: 山本産業株式会社のテーマ
  Theme URI: http://
  Description: 山本産業株式会社のテーマ
  Version: 1.2.1

  The CSS, XHTML and design is released under GPL:
  http://www.opensource.org/licenses/gpl-license.php

*/

/* HTML Elements */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,textarea,p,blockquote,th {
  margin:0;
  padding:0;
}

header,article,footer,article,aside,time,nav {
  margin:0;
  padding:0;
  display:block;
}

address,caption,cite,code,dfn,em,th,var {
  font-style:normal;
  font-weight:normal;
}

body {
  color: #333333;
  font-family: 'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'ＭＳ Ｐゴシック',sans-serif;
  line-height: 175%;
}

a:link, a:visited {
  color: #0066CC;
}

a:hover, a:active {
  color:#FF0066 !important;
  text-decoration: underline !important;
}

a:hover img {
  -moz-opacity:0.65;
  opacity:0.65;
  filter:alpha(opacity=65);
}

img, a:link img, a:visited img {
  border:0;
  max-width: 100%;
}

#main img,#main a:link img,#main a:visited img{
  height: auto;
}

a[href $='.pdf'] {
    background:url(images/icon_pdf.png) no-repeat;
    margin: 10px;
    display:block;
    border: 3px solid #EEE;
    padding: 20px 0px 20px 60px;
}
a[href $='.pdf']:hover {
    border: 3px solid #CCC;
}
.wrapper {
  margin: 0 auto;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .pc{
    display: none !important;
  }
  body {
    font-size: 0.75em;
    line-height: 1.2em;
  }

  .wrapper {
    width: calc(100% - 20px);
    max-width: 480px;
    margin: 0 auto;
    padding: 0 10px;
    overflow: hidden;
  }
  .bg_blue {
    background-color: #4A7DF4;
  }  
  .bg_green {
    background-color: #2fa57f;
  }
}/* //end for SP */
@media screen and (min-width: 769px) {
  .sp{
    display: none !important;
  }
  body{
    background: url(images/bg.gif) repeat-x;
  }
  .wrapper {
    width: 950px;
  }
}/* //end for PC */



/* globalHeader ------------------------------------- */
@media screen and (max-width: 768px) {
  #header {
    padding: 18px 10px;
  }
  #header .title {
    /*float: left;*/
    max-width: calc(220/375*100vw);
  }
  #header .title img {
    width: 100%;
  }
}/* //end for SP */
@media screen and (min-width: 769px) {
  #header {
    position: relative;
  }
  
  #header .header_box {
    height: 80px;
  }
  
  #globalHeader h1 {
    position: absolute;
    right: 0;
    top: 24px;
  }
  #globalHeader .title {
    position: absolute;
    left: 0;
    top: 17px;
  }
  #globalHeader .title a {
    width: 340px;
    height: 32px;
    display: block;
  }
  
  #globalHeader h1 {
    text-indent: -9999px;
  }
}/* //end for PC */


/* globalNavi ------------------------------------- */
@media screen and (max-width: 768px) {
  #globalNavi {
    clear: both;
    overflow: hidden;
  }
  #globalNavi ul {
    list-style: none;
    overflow: hidden;
    width: 100%;
  }
  #globalNavi li {
  float: left;
      width: 33.1%;
      text-align: center;
      padding: 10px 0px;
  }
  #globalNavi img {
    vertical-align: middle;
    min-height: 50px;
  }
  #globalNavi ul a:link {
      color: #fff;
      text-decoration: none;
  }
  
  #globalNavi ul a:visited {
      color: #fff;
      text-decoration: none;
  }
  
  #globalNavi li:first-child {
      border-right: dotted 1px #fff;
  }
  #globalNavi li:last-child {
      border-left: dotted 1px #fff;
  }
}/* //end for SP */
@media screen and (min-width: 769px) {
  #globalNavi {
    clear: both;
    margin-bottom: 15px;
    height: 63px;
    overflow: hidden;
  }
  #globalNavi ul {
    list-style: none;
    overflow: hidden;
  }
  #globalNavi li {
    float: left;
  }
}/* //end for PC */



/* category_image ------------------------------------- */
#category_image {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bbbbbb;
  background: #eeeeee;
  text-align: left;
  clear: both;
  margin-bottom: 40px;
}
#category_image h2{
  font-size: 0;
  line-height: 0;
}
@media screen and (max-width: 768px) {
  #category_image img{
    height: 43px;
  }
}/* //end for SP */
@media screen and (min-width: 769px) {
}/* //end for PC */



/* page_navigation ------------------------------------- */
#page_navigation {
  margin: 0 0 10px;
  overflow: hidden;
}
#container #page_navigation ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
#container #page_navigation li {
  display: inline;
  margin: 0;
  padding: 0;
  margin-right: 5px;
  line-height: 1.5em;
}
#post_navi_footer {
  overflow: hidden;
}
#post_navi_footer .prev {
  float: left;
}
#post_navi_footer .next {
  float: right;
}



/* nav-below ------------------------------------- */
#nav-below {
  overflow: hidden;
  margin: 20px 0;
}
#nav-below .nav-previous {
  float: left;
}
#nav-below .nav-next {
  float: right;
}
#nav-below .meta-nav {
  padding: 0 10px;
}



/* pagetop ------------------------------------- */
#pagetop {
  margin-top: 30px;
  text-align: right;
}



/* main ------------------------------------- */
#main {
  overflow: hidden;
  margin-top: 30px;
}



/* container ------------------------------------- */

#container .label {
  border-left: 6px solid #4A7DF4;
  margin-left: 5px;
  padding-left: 10px;
  font-size: 210%;
  color: #000;
}
#container .label strong {
  font-weight: normal;
}

#container h1,
#container h2,
#container h3,
#container h4,
#container h5,
#container h6 {
  font-size: 100%;
  margin-left: 5px;
  margin-bottom: 10px;
}
#container h2 {
  font-size: 150%;
  line-height: 120%;
  font-weight: normal;
  margin-left: 0;
  margin-bottom: 20px;
  margin-top:40px;
}
#container h3 {
  background: url(images/bg_label.gif) no-repeat left bottom;
  padding: 8px 0 15px;
  font-size: 180%;
  line-height: 130%;
  font-weight: normal;
  margin-left: 0;
  margin-bottom: 20px;
}
#container h4 {
  /*border-bottom: 2px solid #D54B48;*/
  border-bottom: 2px solid #D7D7D7;
  padding: 8px 0 5px;
  font-size: 120%;
  font-weight: normal;
  margin-left: 0;
  margin-bottom: 20px;
margin-top: 40px;
}
#container h5 {
    margin-top: 40px;
    font-size: 16px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}
#container p {
  margin: 10px 0;
  padding: 0;
  line-height: 1.5em;

}
#container header h1{
  margin-left: 0;
}

#container ul,
#container ol {
  margin: 10px;
  padding: 10px;
}

#container_bottom {
  margin-bottom: 25px;
}
@media screen and (max-width: 768px) {
}/* //end for SP */
@media screen and (min-width: 769px) {
  #container {
    float: right;
    width: 660px;
  }
}/* //end for PC */


/* sidebar ------------------------------------- */

#sidebar ul {
  list-style: none;
}

#categorylist_sideframe {
  padding: 20px;
  font-size: 115%;
}
#categorylist_sideframe .title {
  border-bottom: 1px dotted #999;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 120%;
  font-weight: normal;
}
#categorylist_sideframe .title span {
  display: block;
  font-size: 70%;
  color: #7D7D7D;
  padding-top: 3px;
}
#categorylist_sideframe ul {
  margin-bottom: 20px;
}
#categorylist_sideframe li {
  margin-bottom: 20px;
  padding-left: 20px;
}
@media screen and (max-width: 768px) {
  #categorylist_sideframe li.current_page_item,
  #categorylist_sideframe li.current-cat {
    background: url(images/list_icon.gif) no-repeat 0 2px;
  }
}/* //end for SP */
@media screen and (min-width: 769px) {
  #categorylist_sideframe li.current_page_item,
  #categorylist_sideframe li.current-cat {
    background: url(images/list_icon.gif) no-repeat 0 0.5em;
  }
}/* //end for PC */

#bannerlist_sideframe li {
  margin: 5px 0;
}

#contact_sideframe {
}
#contact_sideframe img {
  margin-top: 15px;
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
#contact_sideframe address {
  padding: 10px 15px;
  font-size: 90%;
}

#side_company_info {
  border: 5px solid #EEEEEE;
  padding: 10px;
  margin-bottom: 20px;
}
#side_company_info .title {
  font-size: 110%;
  margin: 10px 0;
}
#side_company_info .address {
  margin-bottom: 5px;
}

.sideYuryo{
    margin-top: -20px;
    margin-bottom: 40px;
}
.sideYuryo img{
	max-width: 100%;
}

.sidebox {
  border: 1px solid #BBBBBB;
  padding: 10px;
  margin-bottom: 30px;
}


#access table.table_style,
#contact table.table_style {
  margin-left: 20px;
}
#access table.table_style th,
#contact table.table_style th {
  border-right: 1px solid #999999;
}
#access table.table_style td,
#contact table.table_style td {
  padding: 3px 3px 3px 10px;
}
#contact input.textbox,
#contact textarea.textbox {
  border: 1px solid #CCCCCC;
  padding: 3px 5px;
  margin: 5px 3px;
}
#contact input.button {
	display: block;
  padding: 10px 50px;
  margin: 5px auto;
}
#contact form span {
  color: #FF0000;
}
@media screen and (max-width: 768px) {
}/* //end for SP */
@media screen and (min-width: 769px) {
  #sidebar {
    float: left;
    width: 265px;
  }
}/* //end for PC */



/* footer ------------------------------------- */
#globalFooter {
  background-color: #555555;
  overflow: hidden;
}

#footer {
  overflow: hidden;
}

#footer_navi {
  text-align: center;
  margin-top: 25px;
  font-size: 90%;
}
#footer_navi ul {
  list-style: none;
  overflow: hidden;
  padding-bottom: 20px;
  margin-bottom: 30px;
}
#footer_navi li {
  background: url(images/icon_footer_navi.gif) no-repeat 0 3px;
  float: left;
  margin-right: 40px;
  padding-left: 15px;
}
#footer_navi li a {
  color: #FFFFFF;
  text-decoration: none;
}
#footer_navi li a:hover {
  color: #FF0066;
  text-decoration: underline;
}


#footer_info {
  height: 45px;
  overflow: hidden;
}
#footer_info h5 {
  margin-bottom: 45px;
}

#footer_copyright {
  font-size: 80%;
  color: #CCC;
  line-height: 40px;
  text-align: right;
}
@media screen and (max-width: 768px) {
  #footer_copyright {
    font-size: 10px;
  }
}/* //end for SP */
@media screen and (min-width: 769px) {
  #footer_navi li {
    background: url(images/icon_footer_navi.gif) no-repeat 0 0.6em;
  }
}/* //end for PC */



/* class ------------------------------------- */
a.list_icon {
  list-style: none;
  background: url(images/list_icon.gif) no-repeat 3px 5px;
  margin: 0 5px 10px;
  padding: 0px 3px 3px 25px;
}
.list_icon li {
  list-style: none;
  background: url(images/list_icon.gif) no-repeat 3px 3px;
  margin: 0 5px 10px;
  padding: 0px 3px 3px 25px;
}
.list_border li {
  border-bottom: 1px dotted #666;
}

.image_left {
	margin: 0 20px 20px 0;
	float: left;
}

.image_center {
	margin: 0 auto 20px auto;
}

.image_right {
	margin: 0 0 20px 20px;
	float: right;
}

.left_box {
  float: left;
}
.right_box {
  float: right;
}

.text_center {
  text-align: center;
}
.text_right {
  text-align: right;
}

.clear {
  clear: both;
}

.hidden {
  display: none;
}

table.table_noborder {
  border: none;
  margin: 5px 0;
}
table.table_noborder td {
  padding: 3px;
}
table.table_dotborder {
  border: none;
  margin: 5px 0;
}
table.table_dotborder th {
  padding: 3px;
  border-bottom: 1px dotted #CCCCCC;
  vertical-align: top;
  text-align: left;
  line-height: 30px;
}
table.table_dotborder td {
  padding: 3px;
  border-bottom: 1px dotted #CCCCCC;
  vertical-align: top;
  line-height: 30px;
}

table {
  border: 1px solid #999999;
  border-collapse: collapse;
  margin-bottom: 30px;
  width: 100%
}
table th {
  background-color: #EEEEEE;
  padding: 3px;
  border: 1px solid #999999;
  vertical-align: middle;
  text-align: center;
}
table td {
  margin: 0;
  padding: 3px;
  vertical-align: middle;
  line-height: 150%;
  border: 1px solid #999999;
}

ul.list_arranges_one_row {
  overflow: hidden;
  list-style: none;
}
ul.list_arranges_one_row li {
  float: left;
}
dl.list_arranges_one_row {
  overflow: hidden;
  list-style: none;
}
dl.list_arranges_one_row dt {
  float: left;
  clear: both;
}
dl.list_arranges_one_row dd {
  float: left;
}

input.button {
  padding: 10px 30px;
}


/* contents style ------------------------------------- */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.625em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.625em;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.category-entry-body {
  border-bottom: 1px dashed #999999;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.entry-body {
  margin-bottom: 20px;
  clear: both;
}

/*追加分*/
.ttl{
  font-size:250%;
}
table.tbol,
figure.tbol table{
  table-layout: fixed;
  border: solid 5px #c0c0c0;
}
.frmu
{
  background : url(http://sc6.xsrv.jp/sample/ys//images/frmu.png) no-repeat top left;
  width:296px;
  height:10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.frmm
{
  background : url(http://sc6.xsrv.jp/sample/ys//images/frmm.png) repeat-y top left;
  width:296px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.frmm div
{
  margin:0 10px 0 15px;
  line-height:1.2em;
  height:80px;
}
.frmm span
{
  margin:0 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align:center;
  font-weight:bold;
  font-size:12pt;
  color:#4A7DF4;
}
.frmi
{
  background : url(http://sc6.xsrv.jp/sample/ys//images/frmm.png) repeat-y top left;
  width:296px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.frmi img
{
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding:5px 0 10px 0;
}
.frmd
{
  background : url(http://sc6.xsrv.jp/sample/ys//images/frmd.png) no-repeat top left;
  width:296px;
  height:10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.box_frame {
  border-top: 1px solid #DDD;
  border-left: 1px solid #DDD;
  border-right: 2px solid #CCC;
  border-bottom: 2px solid #CCC;
  margin-bottom: 20px;
  padding: 10px;
  overflow: hidden;
  clear: both;
}
.box_frame .title {
  font-size: 120%;
  color:#4A7DF4;
}

/*		
-----------------------------*/
/*2024.11.1 add*/
table.bd_none,
figure.bd_none table{
  border: none;
}
figure.bd_none.wp-block-table td,
figure.bd_none.wp-block-table th{
  border: none;
  padding: 0em;
}

/**/
#container p.accessMapSubti{
  margin: 30px 20px 5px 0;
  border-bottom: solid 1px #c0c0c0;
}
#container p.accessMapTxt{
  margin: 0 10px 20px 0;
}

/**/
#container h2.leadTxt{
  line-height: 1.5em;
  letter-spacing: 0.1em;
}

.wp-block-group.is-layout-flex{
  margin-bottom: 20px;
}

#main blockquote.wp-block-quote{
  margin: 2em 0;
  padding: 1em 1em 0.6em 1em;
  border: 1px solid #ccc;
}
#main blockquote.wp-block-quote p em {
  font-style: italic;
}

/**/
#main .map iframe{
  max-width: 640px;
}
@media screen and (max-width: 768px) {
  #main .map iframe{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
  }
}/* //end for SP */

/**/
#main .wp-block-separator{  
  border-style: inset;
  border-width: 1px 0 0 0;
}

/**/
figure.companyInfoTable table tr td:first-child{
  table-layout: auto;
  width: 8em;
}

/**/
.companyPhilosophy{
  background : url(/images/p1stit_l.jpg) no-repeat top left / 100% auto;
  margin-bottom: 1em;
  padding-bottom: 20px;
}
.companyPhilosophyTi{
  margin-bottom: 0;
  line-height: 0;
}
.companyPhilosophyTi img{
  opacity: 0;
  height: auto;
}
#container .companyPhilosophy p{
  margin: 10px 0 0 0;
  padding: 0 10px 10px;
  line-height: 1.8em;
}
/*臨時プラグイン整理完了まで使用*/
@media screen and (max-width: 768px) {
  #main .entry-body >  div:has( + .postCompanyPhilosophy) figure img{
    height: 240px;
  }
}/* //end for SP */
/*臨時プラグイン整理完了まで使用*/


/**/
.displayNone{
  display: none;
}

.mt1{  margin-top: 1em !important;}
.mt2{  margin-top: 2em !important;}
.mt3{  margin-top: 3em !important;}
.mt4{  margin-top: 43m !important;}

/*sitemap*/
#sitemap_list {
	background: #fff;
	margin: 0;
	padding: 0;
}

#sitemap_list li.home-item {
	margin-left: 0px;
}

#sitemap_list li {
	font-size: medium;
	text-indent: 0;
	padding: 0 0 12px 0px;
	margin: 12px 0;
	list-style-type: none;
}
#sitemap_list li a {
  position: relative;
	color: #666;
	text-decoration: none;
	display: inline-block;
	padding-left: 25px;
	line-height: 32px;
	}
#sitemap_list > li > a {
  border-bottom: 1px dotted #988975;
	display: block;
}
#sitemap_list > li > a::before {
  position: absolute;
  top: 11px;
  left: 0;
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background-color: #988975;
}

#sitemap_list > li > a::after {
  position: absolute;
  top: 14px;
  left: 3px;
  display: inline-block;
  content: "";
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  border-width: 3px 0 3px 5px;
  width: 0;
  height: 0;
}
#sitemap_list li li {
	font-size: small;
	background: none;
	margin: 7px 0 0 0;
	padding: 1px 0 0 27px;
}


#sitemap_list li li a {
	padding-left: 15px;
	line-height: normal;
}
#sitemap_list li li a::before {
  position: absolute;
  top: 7px;
  left: 3px;
  display: inline-block;
  content: "";
  background: #988975;
  width: 1px;
  height: 6px;
}
#sitemap_list li li a::after {
  position: absolute;
  top: 7px;
  left: 5px;
  display: inline-block;
  content: "";
  border-style: solid;
  border-color: transparent transparent transparent #988975;
  border-width: 3px 0 3px 5px;
  width: 0;
  height: 0;
}

#sitemap_list li li li {
	padding-left: 15px;
}

#sitemap_list li li li a {
	background: url(../images/business/ico_lower_lv.png) no-repeat left center;
}

#sitemap_list ul {
	padding: 0;
	margin: 0;
}

#sitemap_list .posts_in_category {
	position: absolute;
	padding-left: 10px;
	padding-top: 3px;
}

#sitemap_list li li .posts_in_category {
	padding-top: 0;
}

#sitemap_list li .posts_in_category a {
	background: #fff url(../images/business/ico_post_list.png) no-repeat center;
	text-indent: -9999px;
	display: block;
	width: 1.2em;
	height: 1.2em;
	border: solid 1px #ccc;
	padding: 0;
}

/*pagenavi→pagination*/

.pagination .nav-links{
	clear: both;
  margin: 40px auto;
  text-align: center;
}

.pagination .nav-links a, .pagination .nav-links span {
	text-decoration: none;
	border: 1px solid #BFBFBF;
	padding: 3px 5px;
	margin: 2px;
}

.pagination .nav-links a:hover, .pagination .nav-links span.current {
	border-color: #000;
}

.pagination .nav-links span.current {
	font-weight: bold;
}