@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    font-family: 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

@import url(common-menu.css);

header {
    width: 100%;
}
.wrap {
    width: 100%;
}
.container {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
}
.container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* detail */
.detail {
    background: url(../images/bg_detail_sp.jpg) no-repeat center top/cover;
    padding: 20% 0;
}

.detail .box img{
    display: block;
    width: 100%;
}
@media screen and (min-width: 1000px){
    .detail {
        background: url(../images/bg_detail_pc.jpg) no-repeat center/cover;
        padding: 120px 0;
    }
    .detail .box {
        min-width: 1000px;
        margin-right: calc((100% - 1000px)/2);
        box-sizing: border-box;
    }
}

/* present */

.present {
    background: url(../images/bg_present_sp.png) no-repeat center/cover;
}

@media screen and (min-width: 1000px){
    .present {
        background: url(../images/bg_present_pc.png) no-repeat center/cover;
    }
}

.present .content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 60px;
    position: relative;
}

@media screen and (min-width: 1000px){
    .present .content {
        padding-top: 60px;
    }
}

.present .content img {
    display: block;
    width: 100%;
}

.present .content a {
    display: block;
    height: 10%;
    width: 80%;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 210px;
    /* bottom: 135px; */
    /* left: 40px; */
    /* right: 0; */

    /* background-color: rgba(255,0,0,0.7); */
}

@media screen and (min-width: 1000px){
    .present .content a {
        height: 64px;
        max-width: 700px;
        bottom: 135px;
        left: 40px;
        right: auto;
    }
}



/*  ------------------------------------------------------
common-contact-menu
------------------------------------------------------  */
ul.contact-menu {
    width: 1000px;
    margin: 60px auto;
    position: relative;
    text-align: center;
    }
ul.contact-menu li{
    width: 23%;
    position: relative;
    display: inline-block;
    margin: 0 .5%;
    }
ul.contact-menu li a {
    display: block;
    text-decoration: none;
    height: 54px;
    font-size: 17px;
    line-height: 55px;
    font-weight: bold;
    color: #222;
    border: 1px solid #e60012;
    border-radius: 5px;
    padding: 0;
    text-indent: 1.5em;
    transition: 0.3s;
    position: relative;
    text-align: left;
    
    }
ul.contact-menu li a:hover{
    color:#FFF;
    background:#e60012;
    transition:0.3s;
    }
ul.contact-menu li a::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
    top: -2px;
    margin-right: 15px;
    transition: 0.3s;
    }

ul.contact-menu li:nth-child(1) a::before{
  background-image: url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_test-drive.svg');
}
ul.contact-menu li:nth-child(2) a::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_inspection.svg');
}
ul.contact-menu li:nth-child(3) a::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_meeting.svg');
}
ul.contact-menu li:nth-child(4) a::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_catalog.svg');
}

ul.contact-menu li a:hover::before{
  transition:0.3s;
}
ul.contact-menu li:nth-child(1) a:hover::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_test-drive_white.svg');
}
ul.contact-menu li:nth-child(2) a:hover::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_inspection_white.svg');
}
ul.contact-menu li:nth-child(3) a:hover::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_meeting_white.svg');
}
ul.contact-menu li:nth-child(4) a:hover::before{
  background-image:url('https://www.n-daihatsu.co.jp/wp/wp-content/themes/n-daihatsu/img/svg/icon_catalog_white.svg');
}


@media only screen and (max-width: 999px) {
ul.contact-menu {
    width: 94%;
    margin: 30px auto 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    }
ul.contact-menu li{
    width: 100%;
    position: relative;
    margin: 0 auto 20px;
    }
}

/*++++++++++++++++++++++++++
	フッター
++++++++++++++++++++++++++*/
footer{
    background: #DC000C;
    padding: 30px 10px;;
    font-size: 11px;
    text-align: center;
    color: #fff;
}

/*--------------------------------------
		pagetop
---------------------------------------*/
#btn_top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    /* visibility: hidden; */
    opacity: 0;
    }

#btn_top.active {
    animation-name: fade;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

#btn_top a {
    background: #898989;
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    display: block;
    border-radius: 5px;
    }

#btn_top a:hover {
    text-decoration: none;
    background-color: #898989;
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    opacity: 1;
    }

/* banner */
.banner {
    background: url(../images/bg_present_sp.png) no-repeat center bottom/cover;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    left:0;
    right: 0;
    /* visibility: hidden; */
    opacity: 0;
}
.banner a{
    display: block;
    width: 74%;
    max-width: 794px;
    margin: 0 auto;
}

.banner a:hover{
    opacity: 0.7
}


.banner a img {
    width: 100%;
    display: block;
}

.active {
    animation-name: fade;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fade {
    100%{
        opacity: 1;
    }
}

