@charset "utf-8";

/* ----------------------------------- 

(c) 2023 Roppongi Energy Service Co., Ltd.

 ----------------------------------- */


/* ----------------------------------- 
    header
 ----------------------------------- */

.gNav ul li.gNav_home a:after {
    content: "";
    width: 2rem;
    height: 4px;
    top: 2rem;
    left: calc(50% - 1rem);
    position: absolute;
    background-color: #21A668;
}


/* ----------------------------------- 
    HOME
 ----------------------------------- */
.main-visual {
    width: 100%;
    height: 60vh;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.main-visual img {
    width: 100%;
    height: auto;
    height: 60vh;
    object-fit: cover;
    object-position:50% 50%;
    margin: auto;
    align-self: center;
}

.main-visual:before {
    content: "21世紀の文化都心「六本木ヒルズ」へ、私たちは電気と熱を安定供給しています。";
    position: absolute;
    color: #fff;
    max-width: 19em;
    top: 6%;
    left: 5%;
    text-align: left;
    font-size: 2rem;     /* 32px */
}

.main-menu {
    background-color: #728FB4;
    color: #fff;
}

.main-menu .wrapper {
    padding: 0;
    background-color: transparent;
}

.main-menu p {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 3rem;
}

.main-menu ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.main-menu ul a {
    width: 31%;
    padding: 2rem 0;
    border-radius: 1em;
    font-weight: bold;
    color: #152040;
    background-color: #fff;
    border: solid 1px #fff;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.3);
}

.main-menu ul a:hover {
    background-color: #3350A6;
    color: #fff;
    text-decoration: none;
}

.main-menu span {
    width: 100%;
    height: 100px;
    display: block;
    margin-bottom: .5rem;
}

.main-menu span.for_mob {
    display: none;
}

.main-menu span.company {
    background: url("../img/icon_building.svg") center center no-repeat;
}

.main-menu a:hover span.company {
    background: url("../img/icon_building_on.svg") center center no-repeat;
}

.main-menu span.service {
    background: url("../img/icon_light.svg") center center no-repeat;
}

.main-menu a:hover span.service {
    background: url("../img/icon_light_on.svg") center center no-repeat;
}

.main-menu span.contact {
    background: url("../img/icon_mail.svg") center center no-repeat;
}

.main-menu a:hover span.contact {
    background: url("../img/icon_mail_on.svg") center center no-repeat;
}


.main-menu ul li {
    width: 100%;
    font-size: 1.25rem;  /* 20px */
}



/* ----------------------------------- 
    press release
 ----------------------------------- */

.press-header {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
}

.press dl div {
    width: 100%;
    margin: 0 auto 1rem auto;
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    background-color: #F3F3F3;
}

.press dl div:nth-child(n + 4) {
    display: none;
}

.press dl div:nth-child(3n){
    margin-bottom: 0;
}

.press dl dt {
    font-weight: bold;
    color: #152040;
    font-size: .875rem;  /* 14px */
    margin-right: 2rem;
}

.press dl dd {
    flex:1;
}



/* ----------------------------------- 
    for tablet / ～1280
 ----------------------------------- */

@media screen and (max-width: 1279px) {
    .gNav ul li.gNav_home a:after {
        content: "";
        width: .5rem;
        height: .5rem;
        top: calc(50% - .25rem);
        left: -1rem;
        border-radius: 50%;
        position: absolute;
        background-color: #21A668;
    }
    
    .press button.for_pc {
        display: block;
    }
}


/* ----------------------------------- 
    for mobile / ～519
 ----------------------------------- */

@media screen and (max-width: 519px) {
    
    .main-visual,
    .main-visual img {
        height: 35vh;
    }

    .main-visual:before {
        content: "21世紀の文化都心「六本木ヒルズ」へ、私たちは電気と熱を\A安定供給しています。";
        width: 10em;
        top: 10%;
        font-size: 1.125rem; /* 18px */
    }

    .main-menu {
        padding: 2rem 0;
    }
    
    .main-menu p {
        font-size: .875rem;  /* 14px */
    }
    
    .main-menu ul {
        display: block;
    }

    .main-menu ul a {
        width: 100%;
        border-radius: 0;
        display: flex;
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        justify-content:space-between;
        align-items: center;      
        position: relative;
    }
    
    .main-menu span {

        width: 15%;
        height: 52px;
        margin-bottom: 0;
    }
    
    .main-menu span.company,
    .main-menu span.service,
    .main-menu span.contact {
        left: 0;
    }
    
    .main-menu span.for_mob {
        min-width: 1.5rem;
        display: block;
        right: 0;
        position: relative;
    }
    
    .main-menu span.for_mob:before {
        content: "";
        width: 1rem;
        height: 1rem;
        top: calc(50% - .5rem);
        left: calc(50% - .5rem);
        display: block;
        position: absolute;
        border-top: solid 2px #7794A6;
        border-right: solid 2px #7794A6;
        transform: rotate(45deg);
    }
    
    .main-menu a:hover span.for_mob:before {
        border-top: solid 2px #fff;
        border-right: solid 2px #fff;
    }
    
    .main-menu span.for_mob:after {
        content: "";
        width: 1.5rem;
        height: 2px;
        top: 50%;
        left: calc(50% - .725rem);
        display: block;
        position: absolute;
        background-color: #7794A6;
    }
    
    .main-menu a:hover span.for_mob:after {
        background-color: #fff;
    }
    
    .main-menu span.company,
    .main-menu a:hover span.company,
    .main-menu span.service,
    .main-menu a:hover span.service,
    .main-menu span.contact,
    .main-menu a:hover span.contact {
        background-size: contain;
    }
        
    .press .wrapper {
        width: 100%;
        background-color: transparent;
    }
    
    .press-header {
        padding-bottom: 0;
    }
    
    .press dl div {
        display: block;
        padding: 2rem 0;
        border-bottom: solid 1px #7794A6;
    }

    .press dt {
        width: 100%;
        margin-bottom: .5rem;
    }
    
    .press button.for_pc {
        display: none;
    }
    
    .press button.for_mob {
        margin: 2rem auto 0 auto;
        
    }
    
}


