@charset "UTF-8";
/*
Theme Name: モトファイン21の中古車情報
Author: 石井博文
Author URI: https://motofine23.com
Description: 中古車情報
*/

/* Reset --------------------------------------- */
.clear {
  clear: both;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* MainPage --------------------------------------- */
/* イベント情報 */
.flex-event {
	display: flex;
	gap: 10px;
	padding-bottom: 1em!important;
}
#event-main {
	flex: 3;
	width: calc( 100% - 300px );
}
#calender {
	flex: 1;
	width: 300px;
}
#event-main ul {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}
#event-main li {
	background-color: #f0f0f0;
	/*margin: 0 0 1em;*/
	padding: 1em;
	box-sizing: border-box;
}
@media screen and (max-width: 768px) {
	.flex-event {
    flex-direction: column;
  }
	#event-main, body.category-event #calender {
    width: 100%;
  }
}

/* カスタム・中古車 */
#used-main ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}
#used-main ul::after {
  content: "";
  display: block;
  width: 32.5%;
}
#used-main li {
  padding: 1em;
  width: 32.5%;
  background-color: #f0f0f0;
  margin: 0 0 1em;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
/* （イベント情報・カスタム・中古車）共通 */
#event-main li img, #used-main li img {
  display: block;
  margin-bottom: 1em;
  width: 100%;
  height: auto;
}
#event-main li h2, #used-main li h2 {
  margin-bottom: 1em;
  font-size: 18px;
  text-align: center;
}
#event-main li p.day, #used-main li p.day {
  text-align: right
}
#event-main li p.day .new, #used-main li p.day .new {
  color: #FF0000;
}
@media screen and (max-width: 768px) {
  #used-main {
    flex-direction: column;
  }
  #used-main li {
    width: 100%;
  }
}

/* ウィジェットのカレンダーをカスタマイズ
----------------------------------------------------*/
/* 全体のフォントと基本設定 */
#wp-calendar {
  font-family: 'Arial', 'Verdana', sans-serif;
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed; /* 幅を均一にする */
  padding: 0 10px; /* 両端の余白を調整 */
}
/* 曜日ヘッダー */
.wp-block-calendar tr th {
  background-color: #f5f5f5;
  color: #555;
  font-weight: bold;
  text-transform: uppercase;
  padding: 8px;
  font-size: 0.9rem;
  border-bottom: 1px solid #ddd;
  width: 14.2857%; /* 各曜日の幅を均等に */
  text-align: center;
}
/* 日付セル */
.wp-block-calendar tbody td {
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 14.2857%; /* 各セルの幅を均等に */
  /*height: 50px; /* 高さを統一 */
  position: relative; /* 位置調整用 */
}
/* 投稿のある日を四角形（■）に変更 */
.wp-block-calendar tbody td a {
  display: inline-block; /* インラインブロックに変更 */
  color: #ffffff;
  background-color: #ff9900;
  font-weight: bold;
  width: 25px; /* 幅を少し調整 */
  height: 25px; /* 高さを調整 */
  line-height: 25px; /* 中央に配置 */
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0; /* セル内で中央に配置 */
  border-radius: 0; /* 角を丸めずに四角形に */
  position: absolute; /* 絶対配置 */
  top: 50%; /* 上端から50% */
  left: 50%; /* 左端から50% */
  transform: translate(-50%, -50%); /* 中央揃え */
}
/* 投稿のある日: ホバー時 */
.wp-block-calendar tbody td a:hover {
  background-color: #cc7a00;
  /*transform: scale(1.1);*/
}
/* 当日の日付をシンプルに赤文字で表示 */
#wp-calendar #today a, #wp-calendar #today {
  color: red;
  background-color: transparent;
  font-weight: bold;
  text-decoration: underline;
}
/* カレンダーナビゲーション */
.wp-calendar-nav {
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  color: #666;
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
}
/* カレンダーナビリンク */
.wp-calendar-nav a {
  color: #0073e6;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
/* ナビゲーションの矢印を非表示 */
.wp-calendar-nav-prev::before, .wp-calendar-nav-next::after {
  content: none;
}
/* ナビゲーションリンクのホバー */
.wp-calendar-nav a:hover {
  background-color: #0073e6;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* カレンダーのタイトル */
h4.event {
	background-color: #313131; /*背景色（古いブラウザだとここの色のみが出ます#313131）*/
  /*background-image: -webkit-gradient(linear, left top, left bottom, from(#494949), to(#313131));	/*グラデーション*/
  /*background-image: -webkit-linear-gradient(#494949, #313131);	/*同上*/
  /*background-image: linear-gradient(#494949, #313131);			/*同上*/
  -webkit-box-shadow: 0px 2px 5px #bebebe; /*影の設定。それぞれ右へ、下へ、ぼかし幅、色の設定。*/
  box-shadow: 0px 2px 5px #bebebe; /*同上*/
  font-size: 120%;
  color: #E1D38B; /*文字色*/
  padding: 6px 10px 6px 15px; /*左から、上、右、下、左側への余白*/
  clear: both;
  border-bottom: 4px solid #DD0000; /*下部の線の幅、線種、色*/
  background-image: url(../images/bg-3.png);
  background-repeat: repeat;
  text-align: left;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
	
	margin-bottom: 0.5em;
}
#calender ul.wp-block-latest-posts {
  padding: 0 1em;
}
#calender ul.wp-block-latest-posts li {
  line-height: 1.3;
  padding: 0.5em 0;
  list-style-type: disc !important;
}

/* Tables --------------------------------------- */
.post-content table {
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  font-size: 16px; /*font-size: 0.9em;*/
  margin: 1em 0;
  width: 100%;
}
.post-content th, .post-content td {
  border-bottom: 1px solid #DDD;
  line-height: 120%;
  margin: 0;
  overflow: visible;
  padding: 2%;
}
.post-content caption {
  color: #444;
  padding: 2%;
  text-align: center;
}
.post-content thead {
  vertical-align: bottom;
  white-space: nowrap;
}
.post-content th {
  color: #444;
  font-weight: 700;
}
.post-content table tbody > tr:nth-child(odd) > td {
  background: #f9f9f9;
}
/* Post media --------------------------------------- */
.wpcm_vehicle .wpcm-images {
  position: relative;
  width: 100%;
}
.wpcm_vehicle .wpcm-images img.attachment-wpcm_vehicle_single.wp-post-image {
  width: 100%;
  height: auto !important;
}
.wpcm_vehicle .wpcm-images .wpcm-thumbnails.wpcm-columns-4 a {
  width: 22%;
  margin-left: 2%;
  margin-right: 2%;
}
.wpcm-images img, .wpcm_vehicle .wpcm-images .wpcm-thumbnails a img {
  width: 100% !important;
  height: auto !important;
}
@media (max-width:768px) {
  .wpcm_vehicle .wpcm-images::after {
    margin: 0 0 1em !important;
    display: block !important;
    clear: both !important;
    content: "" !important;
  }
}
/* Post summary --------------------------------------- */
.post-meta {
  font-size: 14px;
  line-height: 3;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', HiraginoCustom, 'Hiragino Kaku Gothic ProN', YuGothic, 'Yu Gothic Medium', Meiryo, sans-serif;
  color: #000000;
}
.post-meta::before {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  content: "Update";
  color: #fff;
  background-color: #FF0000;
  padding: 0.2em 0.5em;
  margin-right: 0.5em;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}
.wpcm_vehicle .wpcm-price-wrapper .wpcm-price {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 0
}
.wpcm_vehicle .wpcm-price-wrapper .wpcm-price::before {
  content: "Price";
  font-size: 14px;
  color: #fff;
  margin-right: 0.5em;
  background-color: #FF0000;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}
.wpcm_vehicle .wpcm-price-wrapper .wpcm-price::after {
  font-size: 0.8em !important;
  content: "（税込）";
}
.wpcm-button {
  display: inline-block;
  text-align: center;
  line-height: 16px !important;
  font-size: 16px !important;
  background-color: #428dcb;
  color: #fff;
  border-radius: 3px;
  padding: 16px 0px !important;
  text-decoration: none;
}
.wpcm_vehicle .wpcm-vehicle-content .wpcm-content-block h2 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.wpcm_vehicle .wpcm-vehicle-content .wpcm-content-block h2 {
  position: relative !important;
  padding: .25em 0 .5em .75em !important;
  border-left: 6px solid #3498db !important;
}
.wpcm_vehicle .wpcm-vehicle-content .wpcm-content-block h2::after {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  content: '' !important;
  width: 100% !important;
  height: 0 !important;
  border-bottom: 1px solid #ccc !important;
}
.wpcm_vehicle .wpcm-vehicle-content .wpcm-content-block {
  border: 0;
  border-bottom: none !important;
  margin: 1em 0;
  padding: 1em 0;
  overflow: hidden;
}
.wpcm_vehicle .wpcm-vehicle-content .wpcm-content-block p {
  padding: 1em 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  text-align: justify !important;
}
.wpcm_vehicle .wpcm-vehicle-content .wpcm-content-block#wpcm-vehicle-features ul {
  width: 100%;
  margin: 0;
  list-style: none;
  padding: 1em 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Navigation --------------------------------------- */
#page-header .menu > ul:after, #page-header ul.menu:after, .clearfix:after {
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
  content: " ";
  font-size: 0;
}
/* clearfix for ie7 */
#container, #page-header .menu > ul, #page-header ul.menu, .clearfix {
  display: inline-block;
}
#container, #page-header .menu > ul, #page-header ul.menu, .clearfix {
  display: block;
}
#page-header .menu {
  position: relative;
  /*bottom: -1px;*/
  clear: both;
}
#page-header div.menu > ul, #page-header ul.menu {
  border-left: 1px solid #ddd;
}
#page-header div.menu > ul > li, #page-header ul.menu > li {
  float: left;
}
#page-header .menu li {
  position: relative;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
#page-header .menu li a {
  display: block;
  padding: .5em 1em;
  border-bottom: none;
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
}
#page-header div.menu > ul > li.current_page_item, #page-header ul.menu > li.current_page_item {
  border-bottom: 1px solid #fff;
}
#page-header ul.sub-menu, #page-header ul.children {
  position: absolute;
  left: -1px;
  display: none;
  margin-left: 0;
  width: auto;
  width: 150px;
  border: 1px solid #ddd;
  background: #eee;
}
#page-header .sub-menu li, #page-header .children li {
  position: relative;
  border: none;
}
#page-header ul.sub-menu ul, #page-header ul.children ul {
  top: -1px;
  left: 150px;
}
#page-header .menu li:hover > ul {
  display: block;
}

/* イベント情報 */
.breadcrumbs {
  /* all: unset; すべてのスタイルをリセット */
	padding: 0.5em 0 0 0;
	box-sizing: border-box;
}
.breadcrumbs span {
	padding: 0 0.25em 0 0.25em;
}
.breadcrumbs span.category, .breadcrumbs a.category {
	font-family: "Hiragino Sans", sans-serif;
	font-weight: 500;
	font-size: 12px;
	text-decoration: none;
	/*padding: .5em 1em;
	border: 1px solid #ddd;*/
}

/* カスタムマシン
---------------------------------------------------------------------------*/
.flex_post-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* マシン詳細 */
.flex_post-content .left_side {
    width: 70%;
}
.flex_post-content .left_side img {
    display: block;
    width: 100%!important;
    height: auto!important;
    margin: 0 0 1em;
}
.flex_post-content .left_side p {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}
.point h4 {
    padding:10px;
    font-size:20px;
    border:1px solid #000;
    background: #000;
    color:#FFF;
    box-shadow:inset 1px 1px 0 rgba(255,255,255,0.5);
    margin: 0 0 0.5em;
}
.flex_post-content .left_side .more {
    position: relative;
    text-align: center;
    font-size: 20px;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
    margin: 1.5em auto;
    color: #000;
}
.flex_post-content .left_side .more::before{
	position: absolute;
	top: 50%;
	z-index: 1;
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	background: #000;
	background: linear-gradient(-45deg, transparent, #325A8C 10%, #325A8C 90%, transparent);
}
.flex_post-content .left_side .more span {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 0 20px;
	background-color: #fff;
	text-align: left;
}
.flex_post-content .left_side .syousai_block {
    margin: 0 0 2em;
}
.youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.entry-content {
    margin: 0 0 2em;
}

/* SNSシェアボタン */
.sns-button-wrap {
    display: flex;
    justify-content: space-between;
    background-color: #e5e5e5;
    padding: 1em;
}
.sns-button {
    width: 33%;
    text-align: center;
    padding: 0.5em 0;
    border-radius: 3px;
    
    /*font-family: "UD新ゴ M",	"UD Shin Go Medium", sans-serif;*/
    font-family:"Lucida Sans Unicode", "Lucida Grande", "sans-serif";
    color: #FFFFFF;
    text-decoration: none;
}
.sns-twitter {
    background: #55acee;
}
.twitter::before {
    font-family: "Font Awesome 5 Brands";
    content: '\f081';
    margin-right: 0.3em;
}
.sns-facebook {
    background: #3B5998;
}
.facebook::before {
    font-family: "Font Awesome 5 Brands";
    content: '\f082';
    margin-right: 0.3em;
}
.sns-line {
    background: #1dcd00;
}
.line::before {
    font-family: "Font Awesome 5 Brands";
    content: '\f3c0';
    margin-right: 0.3em;
}
.sns-pocket {
    background: #ef3f56;
}
.sns-hatebu {
    background: #00a5de;
}

/*他のカスタム車もチェック */
 .flex_post-content .right_side {
    width: 29%;
}
.custom_title {
    font-family: "見出ゴMB31",	"Midashi Go MB31", sans-serif;
    color: #FFF;
    font-size: 16px;
    background-color: #000;
    text-align: center;
    padding: 0.2em;
    margin: 0 0 0.5em;
}
.flex_post-content .right_side ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0.5em 0;
    padding: 0 0 0.5em;
    border-bottom: 1px dotted #CCC;
}
.flex_post-content .right_side ul li.photo {
    width: 40%;
}
.flex_post-content .right_side .photo img {
    width: 100%!important;
    height: auto!important;
}
.flex_post-content .right_side ul li.txt {
    width: 59%;
}
.flex_post-content .right_side ul li.txt h2 {
    font-family: "見出ゴMB31",	"Midashi Go MB31", sans-serif;
    font-size: 14px;
}
.flex_post-content .right_side ul li.txt p {
    font-size: 12px;
    font-family: "新ゴ M", "Shin Go Medium", sans-serif;
}
.flex_post-content .right_side ul li.txt p .new {
    color: #ff0000;
}

@media screen and (max-width: 768px){
    .flex_post-content {
        flex-direction: column;
    }
    .flex_post-content .left_side, .flex_post-content .right_side {
        width: 100%;
        margin: 0 0 1em;
    }
}

/* WP-PageNavi【ページナビ】 */
.wp-pagenavi {
    margin: 1em auto;
    text-align: center;
}
.wp-pagenavi a, .wp-pagenavi span {
  color: #999;
  background-color: #FFF;
  border: solid 1px #999;
  padding: 8px 15px;
  margin: 0 2px;
  white-space: nowrap;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}
.wp-pagenavi a:hover {
  color: #FFF;
  background-color: #999;
  border-color: #999;
}
.wp-pagenavi span.current {
  color: #FFF;
  background-color: #333;
  border-color: #333;
  font-weight: bold;
}