@charset "utf-8";

body,p,td,li, h5,h6 {
	font-family: "Hiragino Kaku Gothic ProN","BIZ UDPGothic", "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
	font-weight: 400;
	font-size:1rem;
	line-height:1.8em;
}
h1,h2,h3,h4,.h1,.h2,.h3,.h4,.h5,.h6 {
	font-family: "Hiragino Mincho ProN", "BIZ UDPMincho", "ヒラギノ明朝 Pro W3","Hiragino Mincho Pro",source-han-serif-japanese,"游明朝","Yu Mincho","游明朝体",YuMincho,"HGS明朝E","ＭＳ Ｐ明朝","MS PMincho",serif;
	font-weight:800;
	line-height:1.5em;
}

.font-g {
	font-family: "Hiragino Kaku Gothic ProN","BIZ UDPGothic", "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
}

.font-m {
	font-family: "Hiragino Mincho ProN", "BIZ UDPMincho", "ヒラギノ明朝 Pro W3","Hiragino Mincho Pro",source-han-serif-japanese,"游明朝","Yu Mincho","游明朝体",YuMincho,"HGS明朝E","ＭＳ Ｐ明朝","MS PMincho",serif;
}

.bold {
	font-weight:800;
}

.teko {
    font-family: 'Teko', sans-serif;
    font-weight: normal !important;
}




/* 文字サイズ
==================================================== */
h1 { font-size:1.5rem; }

@media (min-width: 576px) {
	h1 { font-size:1.8rem;letter-spacing:2px; }
}
@media (min-width: 768px) {
	h1 { font-size:1.8rem; }
}
@media (min-width: 1200px) {
	h1 { font-size:2rem;letter-spacing:2px; }
}
@media (min-width: 1400px) {
	h1 { font-size:2.2rem;letter-spacing:2px; }
}

@media (min-width: 768px) and (max-width: 1050.98px) {
	.top_square .top_text { font-size:0.8rem; }
}
@media (max-width: 767.98px) {
	.top_text { font-size:1rem; }
}



/* マージン、パディング
==================================================== */
.mt-40 { margin-top:40px; }
.mb-40 { margin-bottom:40px; }
.pt-40 { padding-top:40px; }
.pb-40 { padding-bottom:40px; }
.mt-80 { margin-top:80px; }
.mb-80 { margin-bottom:80px; }
.pt-80 { padding-top:80px; }
.pb-80 { padding-bottom:80px; }
.ps-80 { padding-left:80px; }
.pe-80 { padding-right:80px; }
.mt-110 { margin-top:110px; }
.mb-110 { margin-bottom:110px; }
.pt-110 { padding-top:110px; }
.pb-110 { padding-bottom:110px; }
.ps-110 { padding-left: 110px; }

.my-80 { margin-top:80px; margin-bottom:80px; }
.my-110 { margin-top:110px; margin-bottom:110px; }
.px-45 { padding-left:45px; padding-right:45px; }
.py-45 { padding-top:45px; padding-bottom:45px; }
.py-80 { padding-top:80px; padding-bottom:80px; }
.px-80 { padding-left:80px; padding-right:80px; }
.py-110 { padding-top:110px; padding-bottom:110px; }

@media (max-width: 767.98px) {
	.mt-40, .mt-80, .mt-110 { margin-top:30px; }
	.mb-40, .mb-80, .mb-110 { margin-bottom:30px; }
	.pt-40, .pt-80, .pt-110 { padding-top:30px; }
	.pb-40, .pb-80, .pb-110 { padding-bottom:30px; }
	.ps-80, .ps-110 { padding-left:30px; }
	.pe-80, .pe-110 { padding-right:30px; }
	.my-80, .my-110 { margin-top:30px; margin-bottom:30px; }
    .px-45, .px-80, .px-110 { padding-left:30px; padding-right:30px; }
	.py-45, .py-80, .py-110 { padding-top:30px; padding-bottom:30px; }
	.mx-80 { margin-left:30px; margin-right:30px; }
}

.lh-1 { line-height: 1em; }
.lh-2 { line-height: 2em; }
.lh-3 { line-height: 3em; }




/* リンク
==================================================== */
a {
	color: #fff;
    opacity: 1;
    transition: all .5s ease;
}
a:hover {
    color: #ccc;
}
body {
    background-color: #090C0B;
    color: #FFF;
}
.modal {
    color: #000;
}
.container-fluid {
  /*max-width: 1500px;*/
}

/* メイングリッド
 ==================================================== */
@media (min-width: 768px) {
  #main_grid {
    display: grid;
    gap: 0;
    grid-template-columns: 180px 1fr;
  }
  #main .container {
    max-width: 1000px;
  }
}

body {
  background-color: #000;
}
.modal {
  z-index: 10600;
}
.modal-backdrop {
  z-index: 2899;
}
/* メイングリッド
 ==================================================== */
@media (min-width: 768px) {
  #main_grid {
    background-color: #090C0B;
    display: grid;
    gap: 0;
    grid-template-columns: 0px 1fr;
  }
  #main_grid.on {
    animation: gridIn 1.5s ease 0.3s forwards;
  }
  #main {
    z-index: 2900;
  }
  #main .container {
    max-width: 1000px;
  }
}
@keyframes gridIn {
  0% {
    grid-template-columns: 0px 1fr;
  }
  100% {
    grid-template-columns: 180px 1fr;
  }
}
#sidebar {
  position: relative;
  background-color: #090C0B;
  width: 180px;
  opacity: 1;
}
#sidebar a {
    color: #FFF;
    text-decoration: none;
}
#sidebar_inner {
    padding: 30px;
}
#siteName {}
#sideMenu {
    padding-bottom: 80px;
}
#sideMenu li {
    font-size: 1.5em;
    line-height: 1.5;
}
/*#sidebar_inner {
  height: 100vh;
  max-height: 768px;
  display: grid;
  gap: 0;
  grid-template-rows: 190px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1.5fr 1.5fr 10px 82px;
  justify-items: center;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
  text-align: center;
}
*/
@media (max-width: 767.98px) {
  #sidebar {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: -180px;
    height: 100vh;
    opacity: 0.9;
  }
  #sidebar_inner {
    height: 100vh;
    /*max-height: 768px;
    display: grid;
    gap: 0;
    grid-template-rows: 190px 1px 1fr 1fr 1fr 1fr 1fr 1fr 1.5fr 1.5fr 10px 82px;
    justify-items: center;
    align-items: center;*/
  }
}
#naviOpen {
  display: inline-block;
  position: fixed;
  z-index: 3000;
}
#naviClose {
  width: 18px;
  height: auto;
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 3000;
  opacity: 0.8;
}
#naviClose:hover {
  opacity: 1;
}
#fixedBtn {
    transform-origin: left top;
    transform: translateX(100%) rotate(90deg);
    position: fixed;
    top: calc(50% - 120px);
    right: 0;
    z-index: 5000;
}
#fixedBtn .btn-onlineshop {
    background-color: #BE1A20;
    border-radius: 0 0 5px 5px;
    color: #000;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 40px;
    opacity: 1;
    transition: all .5s ease;
}
#fixedBtn .btn-onlineshop span {
    font-size: 20px;
    margin-right: .5em;
}


/* トップページ
 ==================================================== */
#carouselTop .carousel-item {
  background-position: center center;
  background-size: cover;
}

.diagonal {
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-99%);
}
.sectionTitle {
    border-bottom: 1px solid #FFF;
    text-align: right;
    max-width: 160px;
    margin-left: -30px;
    position: relative;
}
.object-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.font-large {
    font-size: 2rem !important;
}

#topNews {
    background-color: #292D30;
}
#topCompanyProfile {
    background-color: #BE1A20;
}
#topFerrari456 {
    background-color: #090C0B;
}
#topMaintenance {
    background-color: #292D30;
}
#maintenanceList a {
    color: #231815;
}
#maintenanceList .card {
    background-color: #DBDCDC;
}
#topOriginalParts {
    background-color: #BE1A20;
}
#topStockForSale {
    background-color: #292D30;
}
#stockList a {
    color: #231815;
}
#stockList .card {
    background-color: #DBDCDC;
}
#bannerBlock {
    background-color: #BE1A20;
}
#bannerBlock .banText {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}


/* 下層ページ
 ==================================================== */
#pageContent {
    background-color: #292D30;
}
.size-full {
    max-width: 100%;
    height: auto;
}
.tagList a {
    color: #000;
    text-decoration: none;
}
.tagList a::before {
    content: '#';
}

/*.gallery {
    overflow: hidden;
}
.gallery img {
    border: 5px solid transparent !important;
    width: 100% !important;
    height: auto !important;
}
.gallery .gallery-item {
    margin: 0 !important;
}*/


/* 5 Columns
 ==================================================== */
.col-15, .col-sm-15, .col-md-15, .col-lg-15 {
	position: relative;
	min-height: 1px;
}
@media (min-width: 768px) {
.col-sm-15 {
	width: 20%;
	flex: 0 0 auto;
}
}
@media (min-width: 992px) {
.col-md-15 {
	width: 20%;
	flex: 0 0 auto;
}
}
@media (min-width: 1200px) {
.col-lg-15 {
	width: 20%;
	flex: 0 0 auto;
}
}


/* WP Gallery
 ==================================================== */
.gallery { /** ギャラリーを囲むボックス **/
	width: 100%;
	margin-bottom: 20px !important;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.gallery br {display: none;} /** 自動で挿入される clearfix の余白解除 **/
.gallery-item { /** 画像共通のスタイル **/
    margin: 0 2% 10px 0;
}
.gallery-icon { /** 画像を囲む dt のスタイル **/
    text-align: center;
}
.gallery-icon img {
	width: 100%;
	height: auto;
}
.gallery-caption { /** キャプション **/
    color: #ccc;
    font-size: 12px;
    margin: 10px 0 0;
    text-align: center;
}
.gallery-columns-1 .gallery-item { /** カラムなし **/
    width: 100%;
    margin-right: 0;
}
.gallery-columns-2 .gallery-item { /** 2カラム **/
	width: 49%;
}
.gallery-columns-3 .gallery-item { /** 3カラム **/
    width: 32%;
}
.gallery-columns-4 .gallery-item { /** 4カラム **/
    width: 23.5%;
}
.gallery-columns-5 .gallery-item,
.gallery-columns-6 .gallery-item,
.gallery-columns-7 .gallery-item,
.gallery-columns-8 .gallery-item,
.gallery-columns-9 .gallery-item { /** 5～9カラム **/
    width: 18.4%;
}
.gallery-columns-2 dl:nth-of-type(2n),
.gallery-columns-3 dl:nth-of-type(3n),
.gallery-columns-4 dl:nth-of-type(4n),
.gallery-columns-5 dl:nth-of-type(5n),
.gallery-columns-6 dl:nth-of-type(5n),
.gallery-columns-7 dl:nth-of-type(5n),
.gallery-columns-8 dl:nth-of-type(5n),
.gallery-columns-9 dl:nth-of-type(5n) {
    margin-right: 0;
}


/* BBS過去ログ log.php */
.com-list-noava * {
    word-break: break-all;
}


/* 茶色の四角
 ==================================================== */
.brown-square {
  width: 255px;
  z-index: 1100;
  max-width: 25%;
}
.scroll_b {
  position: relative;
  bottom: -244px;
  opacity: 0.5;
}
.scroll_b.on {
  animation: ScrollBottom 0.8s ease-in-out forwards;
}
@keyframes ScrollBottom {
  0% {
    bottom: -244px;
  }
  100% {
    bottom: 0;
    opacity: 1;
  }
}
/* コピーライト
 ==================================================== */
#copyright {
  font-size: 13px;
  padding-bottom: 10px;
}



/* トップへ戻る
==================================================== */
a.page-top {
	position:fixed;
	bottom:60px;
	right:10px;
	opacity:0.5;
	color:#0064f2;
	display:block;
	z-index:20000;
}
a.page-top:hover {
	opacity:0.7;
}


.commentstd { border-bottom:1px solid #000; }

/* メディアクエリ
==================================================== */
/*
// X-Small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap
*/

/*
// Small devices (landscape phones, 576px and up)
*/
@media (min-width: 576px) {}

/*
// Medium devices (tablets, 768px and up)
*/
@media (min-width: 768px) {
    .sectionTitle {
        max-width: 300px;
        margin-left: -45px;
    }
}

/*
// Large devices (desktops, 992px and up)
*/
@media (min-width: 992px) {
    .blog_sidebar .h6 {
        font-size: .875em;
    }
}

/*
// X-Large devices (large desktops, 1200px and up)
*/
@media (min-width: 1200px) {
    a:hover {
        opacity: 0.7;
    }
    #pageContent .container-fluid,
    #pageContent + #bannerBlock .container-fluid,
    #pageContent + #bannerBlock + footer .container-fluid {
        max-width: 1140px;
    }
}

/*
// XX-Large devices (larger desktops, 1400px and up)
*/
@media (min-width: 1400px) {}


/*
// X-Small devices (portrait phones, less than 576px)
*/
@media (max-width: 575.98px) {}

/*
// Small devices (landscape phones, less than 768px)
*/
@media (max-width: 767.98px) {
	.gallery-columns-3 .gallery-item, .gallery-columns-4 .gallery-item {
		width: 49%;
	}
	.gallery-columns-5 .gallery-item {
		width: 32%;
	}
    .gallery-columns-3 dl:nth-of-type(3n),
    .gallery-columns-5 dl:nth-of-type(5n),
    .gallery-columns-6 dl:nth-of-type(5n),
    .gallery-columns-7 dl:nth-of-type(5n),
    .gallery-columns-8 dl:nth-of-type(5n),
    .gallery-columns-9 dl:nth-of-type(5n) {
        margin-right: 2%;
    }
    .gallery-columns-3 dl:nth-of-type(2n),
    .gallery-columns-4 dl:nth-of-type(2n),
    .gallery-columns-5 dl:nth-of-type(3n),
    .gallery-columns-6 dl:nth-of-type(3n),
    .gallery-columns-7 dl:nth-of-type(3n),
    .gallery-columns-8 dl:nth-of-type(3n),
    .gallery-columns-9 dl:nth-of-type(3n) {
        margin-right: 0;
    }
}

/*
// Medium devices (tablets, less than 992px)
*/
@media (max-width: 991.98px) {}

/*
// Large devices (desktops, less than 1200px)
*/
@media (max-width: 1199.98px) {}

/*
// X-Large devices (large desktops, less than 1400px)
*/
@media (max-width: 1399.98px) {}
