/* ビルボード */
.site-main #mainImg {
    background-color: #ededed;
    position: relative;
    z-index: 1;
    background-image: url(../img/contents/company-bil.png);
    background-repeat: no-repeat;
    background-size: contain;
}

.site-main #mainImg h1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* 会社概要 */
#content .outer {
    overflow: hidden;
}

#content .com-about {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: #fff;
}

#content .com-about:before,
#content .com-about:after {
    content: "";
    height: 98%;
    position: absolute;
    width: 100%;
    z-index: -1;
}

#content .com-about:before {
    background: #fafafa;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    left: -5px;
    top: 4px;
}

#content .com-about:after {
    background: #f6f6f6;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    right: -3px;
    top: 1px;
}

#content .com-about h2 {
    position: relative;
}

#content .com-about h2:before {
    position: absolute;
    content: '';
    left: 10px;
    border: 3px solid #a9a9a9;
    border-radius: 12px;
    box-shadow: 1px 1px 2px #777;
    transform: rotate(-10deg);
    z-index: 1;
}

#content .com-about h2:after {
    position: absolute;
    content: '';
    left: 18px;
    border: solid 5px #fff;
    z-index: 2;
}

/* 地図ボタン */
.map {
    display: inline-block;
    position: relative;
    background-color: #168dea;
    color: #fff;
    border-radius: 5px;
    padding: 1px 23px;
    border: 1px solid #2d7dbc;
    padding-left: 20px;
    padding-right: 28px;
}

.map:before {
    position: absolute;
    font-family: "Font Awesome 5 free";
    font-weight: 900;
    content: "\f107";
    left: 5px;
}

.map:after {
    position: absolute;
    font-family: "Font Awesome 5 free";
    font-weight: 900;
    content: "\f5a0";
    right: 5px;
}

.com-about td ul {
    margin-left: 1em;
}

.com-about td p:first-child {
    margin-top: 0;
}

/* アクセス */
.map-bg {
    position: relative;
}

#map {
    position: relative;
    z-index: 2;
}

#map h2 + p,
#map a {
    color: #fff;
}

.gmap iframe {
    width: 100%;
}

/* プライバシーポリシー */
.nodisc {
    list-style: none;
}
.policy li {
    line-height: 1.7;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}

.policy dt {
    border-bottom: 1px dashed #2a66a3;
    border-left: 7px solid #2a66a3;
    padding-left: 0.5em;
    margin-bottom: 1em;
}
.policy ol.list-par {
    margin-left: 0.5em;
}
ol.list-par li {
    list-style-type: none;
    list-style-position: inside;
    counter-increment: cnt;
}

ol.list-par li:before {
    display: marker;
    content: "("counter(cnt) ")";
    margin-right: 0.5em;
}

/* 幅 767px 以下 */
@media screen and (max-width: 767px) {

    /* ビルボード */
    #mainImg.lower {
        height: 100px;
        background-position: bottom right;
    }

    #mainImg h1 {
        text-align: left;
    }

    #content .com-about {
        padding: 2em 1em;
        width: 97%;
    }

    #content .com-about::before {
        transform: rotate(-0.5deg);
    }

    #content .com-about::after {
        transform: rotate(0.5deg);
    }

    #content .com-about h2:before {
        top: -39px;
        height: 50px;
        width: 15px;
    }

    #content .com-about h2:after {
        top: -28px;
        width: 10px;
    }

    #content .com-about table {
        table-layout: fixed;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .com-about tr th,
    .com-about tr td {
        display: block;
    }

}

/* End max 767px */

/* 幅 768px 以上 */
@media screen and (min-width: 48em) {
    .sp-on {
        display: none;
    }

    /* ビルボード */
    #mainImg.lower {
        height: 200px;
        background-position: bottom right -4em;
    }

    #mainImg h1 {
        left: calc((100vw - 480px) / 2);
    }

    #content .com-about {
        padding: 4em 2em 3em 2em;
    }

    #content .com-about::before {
        transform: rotate(-2.5deg);
    }

    #content .com-about::after {
        transform: rotate(1.4deg);
        top: 7px;
    }

    #content .com-about h2:before {
        top: -2.5em;
        height: 75px;
        width: 20px;
    }

    #content .com-about h2:after {
        top: -64px;
        height: 10px;
        width: 12px;
    }

    #content .com-about table {
        position: relative;
    }

    #content .com-about table:after {
        content: "";
        position: absolute;
        background-image: url(../img/contents/company-stamp.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 10em;
        height: 10em;
        right: -2em;
        bottom: 0;
    }

    .com-about th {
        min-width: 10em;
        padding-left: 2em;
    }

    .com-about td {
        padding-top: 0.9em;
        padding-bottom: 0.9em;
    }

    .com-about td ul {
        margin-bottom: 0;
    }

    .map-bg:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(../img/contents/company-map-bg.png);
        background-repeat: no-repeat;
        bottom: 0;
        left: 0;
        background-position: bottom center;
        z-index: 1;
    }
}

/* End 768px Tablet Small */

/* 1072px 以上 */
@media screen and (min-width: 67em) {

    /* ビルボード */
    #mainImg.lower {
        background-position: bottom right calc((100vw - 1000px) / 2);
    }
}

/* End min 1072px */
