@charset "UTF-8";

/*!
Theme Name: D1 GRANDPRIX FANCLUB
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: STARRY
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

:root{
    --color_w:#fff;    
    --color_b:#000;
    --color_gray1:#eeeeee;
    --color_gray2:#898989;
    --color_gray3:#333333/*濃*/;
    --color_main1:#B1EC00/*緑 177 236 0*/;
    --color_main2:#f79e38/*オレンジ*/;
}

body{
    font-family: "Noto Sans JP","Helvetica",
        "Arial",
        YuGothic,
        "Yu Gothic",
        "Hiragino Sans",
        "ヒラギノ角ゴシック",
        "メイリオ",
        Meiryo,
        "ＭＳ Ｐゴシック",
        "MS PGothic",
        sans-serif;    
}

.pc_only{
    display: block;
}
.sp_only{
    display: none;
}
a img:hover{
    opacity: 0.7;
    transition: 0.4s;
}
a:hover{
    color: var(--color_main2);
    transition: 0.4s;
}

.flexwrap{
 display: -webkit-flex;
 display: flex;
 flex-wrap: wrap;
 -webkit-flex-wrap: wrap;
}
.flexnowrap{
 display: -webkit-flex;
 display: flex;
 flex-wrap: nowrap;
 -webkit-flex-wrap: nowrap;
}
.JCfs{
 justify-content: flex-start;
 -webkit-justify-content: flex-start;
}
.JCfe{
 justify-content: flex-end;
 -webkit-justify-content: flex-end;
}
.JCc{
 justify-content: center;
 -webkit-justify-content: center;
}
.JCsb{
 justify-content: space-between;
 -webkit-justify-content: space-between;
}
.AIc{
    align-items: center;
    -webkit-align-items: center;
}
.AIs{
    align-items: stretch;
    -webkit-align-items: stretch;
}
.AIe{
    align-items: end;
    -webkit-align-items: end;
}
.mt05{
    margin-top: 0.5em;
}
.mt10{
    margin-top: 1em;
}
.mt20{
    margin-top: 2em;
}
.mt30{
    margin-top: 3em;
}
.mt50 {
    margin-top: 5em;
}
.mb05{
    margin-bottom: 0.5em;
}
.mb10{
    margin-bottom: 1em;
}
.mb20{
    margin-bottom: 2em;
}
.mb30{
    margin-bottom: 3em;
}
.mb50{
    margin-bottom: 5em;
}
.back-b{
    background-color: var(--color_b);
}
.back-w{
    background-color: var(--color_w);
}
.back-main1{
    background-color: var(--color_main1);
}
.color-w,.color-w a{
    color: var(--color_w);
}
.color-b,.color-b a{
    color: var(--color_b);
}
.color-main1,.color-main1 a{
    color: var(--color_main1);
}
.font-bold{
    font-weight: bolder;
}

/* 共通 */
#container{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}
footer{
    margin-top: auto !important;
    background: linear-gradient(0deg, var(--color_main1) 0%, rgba(255, 255, 255, 1) 50%);
}
h1,
.article h1{
    font-size: 2rem;
    margin: 1em auto 2em;
    text-align: center;
}
h2{
    margin: 1em 0;
    background: var(--color_main1);
    background: linear-gradient(0deg, var(--color_main1) 0%, rgba(255, 255, 255, 1) 65%);
    text-align: center;
    font-weight: 400;
    font-size: 2rem;
}
.article h3{
    border-left: unset;
    border-right: unset;
    border-top: unset;
    border-bottom: unset;
    padding: 0;
}
ul{
    padding-left: 0;
    }
li{
    list-style: none;
}
.wp-pagenavi{
    width: 100%;
    margin: 2em auto;
}
.wp-pagenavi a:hover,
.wp-pagenavi span.current{
    background-color: var(--color_gray1);  
    color: var(--color_main1);
}
.wp-pagenavi a,
.wp-pagenavi span{
    border: unset !important;
}
.pagination-next{
    display: none;
}
.page-numbers{
    width: 25px;
    height: 25px;
    border: unset;
    line-height: 23px;
}
.pagination .current{
    background-color: var(--color_main1);
}
.single-f{
    margin: auto;
    max-width: 1200px;
}
.author-info{
    display: none;
}
.search-menu-button{
    display: none !important;
}
.back{
    margin: 2em 0;
    text-align: right;
}
.back a{
    text-decoration: none;
    display: block;
}
.back img{
    padding-left: 5px;
    height: 20px;
    width: auto;
    filter: invert(70%) sepia(92%) saturate(619%) hue-rotate(23deg) brightness(102%) contrast(104%);
    vertical-align: sub;
}
.back a:hover img{
    filter: invert(60%) sepia(89%) saturate(415%) hue-rotate(343deg) brightness(99%) contrast(95%);
    transition: 0.4s;
}

/* デフォルトカルーセル非表示 */
#carousel {
    display: none;
}
#header-container{
    position: relative;
}
.mobile-header-menu-buttons,
#header{
  background: linear-gradient(90deg, var(--color_main1) 0%, rgba(255, 255, 255, 1) 80%);
}
.header-in{
    height: 150px;
}
#header .logo{
    width: 30%;
    position:absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
#header .logo img{
    max-height: 150px;
    width: auto;
}
#header nav {
    width: 70%;
    background: unset;
}
#navi .navi-in>ul>li a:hover{
    transition: 0.5s;
    background: unset;
}
#navi .navi-in>ul>li{
    position: relative;
}
#navi .navi-in>ul>li::before{

}
#navi .navi-in>ul>li::before,
#navi .navi-in>ul>li::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    justify-content: center;
    height: 1px;
    background-color: rgba(177,236,0,0.5);
    transition: width 300ms;
    width: 0;
}
#navi .navi-in>ul>li:hover::after,
#navi .navi-in>ul>li:hover::before{
            width: 100%;
}

.top-l{
  width: 28%;
}
.top-r {
  width: 70%;
}
.news-top-f{
    margin-bottom: 3em;
}
.news-f .news-box,
.news-top-f .news-box{
    padding: 1em 0.5em 1em;
    border-bottom: 1px solid rgba(215,215,215,0.5);
}
.news-box:hover{
    background-color: #eeeeee;
    transition: 0.4s;
}
.news-f a,
.news-top-f a{
    text-decoration: none;
    color: var(--color_b);
}
.news-f .news-l,
.news-top-f .news-l{
    width: 70%;
}
.news-f .news-box h3,
.news-top-f .news-box h3{
    margin-bottom: 1em;
}
.news-single-f .cat-f,
.news-f .news-l .cat-f,
.news-top-f .news-l .cat-f{
    margin-right: 20px;
    margin-bottom: 1em;
}
.news-single-f .tag-f,
.news-f .news-l .tag-f,
.news-top-f .news-l .tag-f{
    margin-bottom: 1em;
}
.news-single-f .day,
.news-f .day,
.news-top-f .news-l .day{
    margin-right: 20px;
}
.news-single-f .fc_only img,
.news-f .news-l .fc_only img,
.news-top-f .news-l .fc_only img{
    height: 15px;
    width: auto;
    padding-right: 5px;}
.news-f .news-r,
.news-top-f .news-r{
    text-align: right;
    width: 30%;
}
.news-f .news-r img,
.news-top-f .news-r img{
    aspect-ratio: 1 / 1;
    width: auto;
    height: 100%;
    max-height: 150px;
    object-fit: contain;
}
.more{
    text-align: center;
    filter: drop-shadow(-2px 2px 0px var(--color_main1)) drop-shadow(2px -2px 0px var(--color_main1)) drop-shadow(-2px -2px 0 var(--color_main1)) drop-shadow(2px 2px 0 var(--color_main1));
    }
.more div{
    margin: 2em auto;
    width: 150px;
    height: 40px;
    line-height: 40px;
    background-color: var(--color_gray2);
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}
.more div:hover{
    background-color:#fff;
    transition: 0.4s;
}
.more a{
    display: block;
    text-decoration: none;
    color: var(--color_b);
}
.top-l .sns a{
    text-decoration: none;
    color: var(--color_main1);
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5em;
}
.top-l .sns img{
    margin-right: 10px;
    width: 50px;
    height: auto;
}
.top-pickup-f .pickup-box{
    width: 80%;
    margin: 1em auto 2em;
    max-width: 300px;
}
.top-gallery-f .gallery-box{
    margin: 10px 20px 2em;
    width: calc((100% - 120px)/ 3);
}
.top-pickup-f .pickup-box .thum{
    position: relative;
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    background-color: var(--color_gray1);
}
.top-gallery-f .gallery-box .thum {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    background-color: var(--color_gray1);
}
.top-pickup-f .pickup-box .thum img,
.top-gallery-f .gallery-box .thum img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.top-pickup-f .pickup-box p,
.top-gallery-f .gallery-box p{
    position: absolute;
}
.top-pickup-f .pickup-box p.img,
.top-gallery-f .gallery-box p.img{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15%;
    text-align: center;
}
.top-pickup-f .pickup-box p.cat,
.top-gallery-f .gallery-box p.cat{
    top: 0;
    left: 0;
    width: 40%;
    background-color: rgba(0,0,0,0.5);
    height: 25px;
    line-height: 23px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color_w);
}
.top-pickup-f .pickup-box p img,
.top-gallery-f .gallery-box p img{
    filter: brightness(0) invert(1);
}
.top-pickup-f .pickup-box h3,
.top-gallery-f .gallery-box h3{
    font-size: 1rem;
    margin: 5px 0;

}
.top-pickup-f .pickup-box h3 a,
.top-gallery-f .gallery-box h3 a {
    text-decoration: none;
    color: var(--color_b);
}
.top-pickup-f .pickup-box .day,
.top-gallery-f .gallery-box .day{
    font-size: 0.9rem;
}

/* ドライバー検索 */
.driver-f{
    max-width: 1200px;
    margin: auto;
}
.driver-f ul li{
    margin: 15px;
    width: calc((100% - 120px)/4);
}
.driver-f ul li a{
    text-decoration: none;
}
.driver-f ul li h2{
    margin: 0.5em 0 0;
    font-size: 1.2rem;
    color: var(--color_b);
    background: unset;
}
.driver-f ul li .name_roma{
    font-size: 0.8rem;
    text-align: center;
}
.driver-f ul li img{
    padding: 15px;
}
.driver-single-f .day{
    font-size: 0.8rem;
    width: 100%;
    text-align: right;
}
.driver-single-f ul.menu li img{
    height: 20px;
    width: auto;
    filter: invert(70%) sepia(92%) saturate(619%) hue-rotate(23deg) brightness(102%) contrast(104%);
}
.driver-single-f ul.menu li:hover img{
    filter: invert(60%) sepia(89%) saturate(415%) hue-rotate(343deg) brightness(99%) contrast(95%);
    transition: 0.4s;
}
.driver-single-f ul.menu li a{
    text-decoration: none;
}
.driver-single-f .thum{
    margin: 2em auto 0;
    width: 100%;
    text-align: center;
}
.driver-single-f dl{
    margin: 2em auto 2em;
    width: 95%;
    max-width: 800px;
}
.driver-single-f dt{
    width: 30%;
    padding: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.driver-single-f dd{
    padding: 5px;
    width: 70%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.driver-single-f dd.sns img{
    margin-right: 15px;
    height: 20px;
    width: auto;
}
.driver-single-f h3{
    margin: 2em 0;
    font-size: 1.2rem;
}
.driver-single-f table{
    width: 100%;
}
.driver-single-f table{
    width: 100%;
}
.driver-single-f table td{
    text-align: center;
}
.driver-single-f table td:nth-child(n + 2) {
    background-color: transparent;
    font-size: 0.8rem;
    font-weight: 400;
}
.driver-single-f table th:nth-child(odd){
    background-color: rgba(0, 0, 0, 0.2);
}
.driver-single-f .single-cat{
    max-width: 800px;
    margin: auto;
}
.kanren-f ul li{
    margin: 0 10px 10px;
    width: calc((100% - 80px)/4);
}
.kanren-f ul li .thum{
    margin: 0;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}
.kanren-f ul li .thum img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    padding: 5px;
}

/* news */
.news-f{
    margin: auto;
    max-width: 1200px;
}
.news-single-f h2,
.news-f h2{
    background: unset;
    margin: 0 0 3em;
}
.news-single-f .day{
    margin: 0.5em auto;
}
.news-single-f .thum{
    margin: 0 auto 1em;
    width: 100%;
    text-align: center;
}
.news-single-f .thum img{
    max-width: 500px;
}

/* gallery */
.gallery-f h2{
    margin: 5em auto 2em;
}
.gallery-f h2.t_page{
    margin: 1em auto 2em;
}
.gallery-f h3.first{
    font-size: 2rem;
}
.gallery-f .tag-f{
    margin-bottom: 0.5em;
}
.gallery-single-f h1 {
    text-align: center;
}
.gallery-single-f h2{
    margin: 1em 0 0.5em;
    text-align: left;
    background: unset;
    font-weight: 900;
}
.gallery-single-f .tag-f li,
.gallery-f .tag-f li{
    margin-right: 8px;
    background: rgba(0,0,0,0.3);
    padding: 0 5px;
    color: var(--color_w);
    font-size: 0.7rem;
}
.gallery-f a{
    text-decoration: none;
    color: var(--color_b);
}
.gallery-f a:hover{
    color: var(--color_main1);
    transition: 0.4s;
}
.gallery-f .gallery-box{
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding-bottom: 1em;
}
.gallery-single-f .day{
    margin: 0.5em 0;
}

/* PICK UP */
.pickup-f h2 {
    margin: 5em auto 2em;
}
.pickup-f h2.t_page {
    margin: 1em auto 2em;
    width: 100%;
}
.pickup-f h3.first {
    font-size: 2rem;
    margin: 1em 0;
}
.pickup-f .tag-f {
    margin-bottom: 0.5em;
}
.gallery-single-f h1 {
    text-align: center;
}
.gallery-single-f h2 {
    margin: 1em 0 0.5em;
    text-align: left;
    background: unset;
    font-weight: 900;
}
.gallery-single-f .tag-f li,
.pickup-f .tag-f li,
.pickup-single-f .tag-f li{
    margin-right: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 5px;
    color: var(--color_w);
    font-size: 0.7rem;
}
.pickup-f a {
    text-decoration: none;
    color: var(--color_b);
}
.pickup-single-f .pickup-box-b,
.pickup-f .pickup-box-b {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    grid-template-rows: 40px 1fr 40px 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}
.pickup-f .pickup-box-b div:first-child,
.pickup-single-f .pickup-box-b div:first-child {
    grid-area: 1 / 1 / 2 / 2;
}
.pickup-f .pickup-box-b div:nth-of-type(2),
.pickup-single-f .pickup-box-b div:nth-of-type(2) {
    grid-area: 2 / 1 / 5 / 2;
}
.pickup-f .pickup-box-b div:nth-of-type(3),
.pickup-single-f .pickup-box-b div:nth-of-type(3) {
    grid-area: 1 / 2 / 2 / 3;
}
.pickup-f .pickup-box-b div:nth-of-type(4),
.pickup-single-f .pickup-box-b div:nth-of-type(4) {
    grid-area: 2 / 2 / 3 / 3;
}
.pickup-f .pickup-box-b div:nth-of-type(5),
.pickup-single-f .pickup-box-b div:nth-of-type(5) {
    grid-area: 3 / 2 / 4 / 3;
}
.pickup-f .pickup-box-b div:nth-of-type(6),
.pickup-single-f .pickup-box-b div:nth-of-type(6){
    grid-area: 4 / 2 / 5 / 3;
}
.pickup-f .pickup-box-b .thum img,
.pickup-single-f .pickup-box-b .thum img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pickup-f .pickup-list {
    width: 100%;
}
.pickup-f .pickup-list h3{
    font-size: 1.2rem;
}
.pickup-f .pickup-list h3 a{
    display: block;
}
.pickup-f .pickup-list h3 a:hover{
    color: var(--color_main1);
    transition: 0.5s;
}
.pickup-single-f{
    margin: auto;
    width: 95%;
    max-width: 1200px;
}

/* SHOP */
.shop-f{
    margin: auto;
    max-width: 1200px;
}
.shop-box{
    margin: 15px 15px 2em;
    width: calc((100% - 150px)/5);
}
.shop-box .thum{
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}
.shop-box .thum img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shop-box h3{
    font-size: 1.2rem;
    text-align: 1.3;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    margin: 0.5em 0;
}
.shop-box h3 a{
    text-decoration: none;
}
.shop-box p{
    font-size: 0.8rem;
}

/* about */
.page-id-277 .date-tags{
    display: none;
}

.footer-box div{
    width: calc(100% / 3);
    padding: 10px;
    text-align: center
}
.footer-box div p{
    font-size: 1.2rem;
}
.footer-box div.banner img{
    max-width: 350px;
    width: 100%;
    height: auto;
}
.copyright a{
    color: var(--color_b);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1024px){
  /*必要ならばここにコードを書く*/
h2{
    font-size: 1.7rem;
}
  #header .logo {
    width: 25%;
  }
  #header nav {
    width: 75%;
  }
  #header #navi .navi-in>ul>li>a {
    padding: 0 0.7em !important;
  }
#header .logo img {
    max-height: 100px;
}    
.header-in {
    height: 90px;
}
.top-l .sns a{
    font-size: 1.5rem;
}
.news-f .news-box h3,
.news-top-f .news-box h3{
    font-size: 1rem;
    }
.news-single-f .cat-f,
.news-f .news-l .cat-f,
.news-top-f .news-l .cat-f{
    font-size: 0.9rem;
}
.top-pickup-f .pickup-box p.cat,
.top-gallery-f .gallery-box p.cat{
    width: 60%;
    font-size: 0.9rem;
}
}

@media screen and (max-width: 1023px) {
#header-in{
    display: none;
    }
}
/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
.article ul,
.article ol{
    padding-left: 0;
    }
.rap {
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}
.rap table th,
.rap table td {
    white-space: nowrap;
}
.driver-single-f table td {
    min-width: 70px;
}
.shop-box {
    margin: 10px 10px 2em;
    width: calc((100% - 80px)/4);
}
}
/*600px以下*/
@media screen and (max-width: 600px) {
    /*必要ならばここにコードを書く*/
.pc_only {
    display: none;
}
.sp_only {
    display: block;
}
.mb30 {
    margin-bottom: 1em;
}
.logo-menu-button{
    margin: 0 70px 0 0;
}
h1,
.article h1{
    margin: 1em 0;
}
main.main,
div.sidebar{
    padding: 10px 10px 32px;
}
h2{
    font-size: 1.4rem;
    margin: 0.3em 0 1em;
}
#header .logo img{
    max-height: 100px;
}
.header-in{
    height: 70px;
}
.logo-menu-button img{
    max-height: 45px;
}
.top-slider-f{
    margin-bottom: 0;
}
.top-l,.top-r{
    width: 100%;
}
.top-gallery-f .gallery-box{
    margin: 10px;
    width: calc((100% - 40px)/ 2);
}
.top-r .sns{
    margin: auto;
    width: 95%;
}
.top-r .sns img {
    margin-right: 10px;
    width: 30px;
    height: auto;
}
.top-r .sns a{
    display: block;
    text-decoration: none;
    width: 50%;
    padding: 10px;
}
.top-r .sns a:first-child{
    text-align: right;
}
.news-f .news-l,
.news-top-f .news-l{
    width: 100%;
}
.news-f .news-r,
.news-top-f .news-r{
    width: 100%;
    text-align: center;
}
.news-f .news-r img,
.news-top-f .news-r img{
    aspect-ratio: unset;
    margin: 0.5em 0;
}
.news-f .news-box h3,
.news-top-f .news-box h3{
    text-align: center;
}
.news-single-f .cat-f,
.news-f .news-l .cat-f,
.news-top-f .news-l .cat-f,.news-single-f .tag-f,
.news-f .news-l .tag-f,
.news-top-f .news-l .tag-f,.news-single-f .fc_only,
.news-f .news-l .fc_only,
.news-top-f .news-l .fc_only{
    font-size: 0.8rem;
}
.driver-f ul li{
    margin: 5px 5px 1em;
    width: calc((100% - 40px)/2);
}
.kanren-f ul li {
    margin: 10px;
    width: calc((100% - 60px)/3);
}
.kanren-f ul li .name{
    text-align: center;
}
.pickup-f h3.first{
    font-size: 1.5rem;
    text-align: center;
    margin: 0.5em 0;
}
.pickup-f .pickup-box-b{
    display: block;
}
.pickup-f .pickup-box-b div{
    width: 100%;
}
.pickup-f .pickup-box-b .name{
    margin: 0 0 0.5em;
    text-align: center;
}
.pickup-f .pickup-box-b .thum img{
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1em;
}
.pickup-f .pickup-box .name{
    margin: 0.5em 0;
    font-size: 0.9rem;
}
.gallery-f h3.first{
    font-size: 1.5rem;
    width: 100%;
    margin: 0.5em 0;
}
.gallery-box h3{
    width: 100%;
    margin: 0.5em 0 0.7em;
}
.gallery-box .day{
    font-size: 0.8rem;
}
.gallery-single-f .fg-item,
.gallery-f .fg-item{
    margin: 10px;
    width: calc((100% - 50px)/2);
}
.gallery-single-f .fg-item img,
.gallery-f .fg-item img{
    width: 100%;
    height: auto;
}
.today .pickup-box{
    margin: 10px;
    width: calc(100% - 20px);
}
.shop-box{
    margin: 10px 10px 0.5em;
    width: calc((100% - 40px)/2);

}
.footer-box div p{
    font-size: 0.9rem;
}
.footer-box .contact img{
    height: 25px;
    width: auto;
}
}
/*480px以下*/
@media screen and (max-width: 480px) {
    /*必要ならばここにコードを書く*/
    #header .logo,.header-in {
        display: none;
    }
        .footer-box .contact img{
            height: 20px;
        }
}
