@charset "UTF-8";

/*基本色*/
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: sans-serif;
    letter-spacing: 0.1em;
    font-size: 16px;
}

p {
    letter-spacing: 0em;
    opacity: 0.8;
}

h1,
h2,
h3,
h4 {
    font-family: serif;
    text-align: center;
}

h3,
h4 {
    text-align: left;
    padding-left: 20px;
    border-left: 5px solid #000000;
}

p.h_small {
    text-align: center;
    font-family: serif;
    color: #000000;
    margin-top: 0;
    padding-top: 0;
}

a {
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/*フォントサイズ*/
@media (max-width:599px) {
    :root {
        font-size: 14px;
    }
}

@media (min-width:600px) and (max-width:799px) {
    :root {
        font-size: 16px;
    }
}

@media (min-width:800px) {
    :root {
        font-size: 18px;
    }
}

.button {
    position: relative;
    display: inline-block;
    padding: 18px 50px;
    border-radius: 999px;

    background: linear-gradient(135deg,
            #4291c9,
            #48c1c2,
            #dce673);

    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: 0.3s;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;

    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-25deg);
}

.button:hover::before {
    left: 130%;
    transition: 0.7s;
}

.button:hover {
    transform: translateY(-2px);
}

.button.habasema {
    max-width: 20%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

p.greeting {
    font-family: serif;
    font-size: 1.7rem !important;
    text-align: center;

}

@media (max-width:767px) {
    .button.habasema {
        max-width: 50%;
    }
}

.pc {
    display: block;
}

.sp {
    display: none;
}

@media (max-width:767px) {

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

}


/*ヒーローイメージ conA*/

.conA {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 450px;
    background-position: center;
    background-size: cover;
    text-align: center;
    background-blend-mode: multiply;

}

.conA h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 7vw;
    color: #ffffff;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.8);
}

.conA p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 18px;
}

.conA a {
    color: #ffffff;
    text-decoration: none;
    padding-top: 30px;
}

.conA.smallhero {
    height: 60vh;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0), rgba(33, 77, 104, 0.5)),
        url(img/top_bg_workplace.jpg);

    background-position:
        center center,
        center center;

    background-size:
        auto,
        cover;

    background-repeat:
        no-repeat,
        no-repeat;
}

.conA.smallhero h1 {
    font-size: 32px;
}

.conA.smallhero img {
    max-width: 200px;
}

@media (min-width:768px) {
    .conA h1 {
        font-size: 45px;
    }
}

@media (max-width:767px) {
    .conA {
        height: 80vh;
        background-position: bottom;
    }

    .conA.smallhero {
        height: 50vh;
    }

    .conA.smallhero img {
        max-width: 180px;
    }

    .conA.smallhero h1 {
        font-size: 25px;
    }
}

/*ワンカラム　創業1969年*/
.con1c {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url(img/top_bg_dam02.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #ffffff;
    margin: 0;
    padding: 100px 30px;
}

.con1c .container {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

.con1c h1 {
    display: none;
}

.con1c p {}

/*事業内容*/

.conB {
    background-image: linear-gradient(rgba(66, 145, 210, 0), rgba(66, 145, 210, 0.5)), url(img/top_bg_kikagaku.jpg);
    background-position: center;
    background-size: cover;
    padding: 50px;
}

.conB h2 {
    text-align: center;
}

.conB .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 30px auto;
}

.conB article {
    flex: 0 0 100%;
    display: flex;
}

/*事業内容　 PC時 3列にもできる */
@media (min-width: 768px) {
    .conB article {
        flex: 0 0 50%;
    }
}

.conB a {
    position: relative;
    flex: 1;
    margin: 10px;
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.conB a:hover {
    opacity: 0.8;
}

.conB .photo {
    min-height: 300px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 2px gray;
}

.conB .text {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

@media (max-width:767px) {
    .conB .photo {
        min-height: 170px;
    }

    .conB .container {
        margin: 10px auto;
    }

    .conB .text {
        font-size: 1.5rem;
        letter-spacing: 2rem;
        ;

    }
}

/*ワンカラム　働く環境*/
.con1c.recruit {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)), url(img/top_bg_workplace.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #ffffff;
    margin: 0;
    padding: 50px 0;
}

.con1c.recruit h2 {
    color: #000000;
}

/*地図*/
.location {
    width: 100%;
    height: 350px;
    vertical-align: bottom;
}

/*フッター*/

footer {
    color: #ffffff;
    background-color: #214d68;
    text-align: center;
}

footer .container {
    padding: 40px 20px;
}

.footA h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 30px;
}

.footA p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
}

.footC {
    font-size: 12px;
    opacity: 0.7;
    padding: 30px;
    letter-spacing: 0.2em;
}

/*ヘッダー*/

header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    color: #000000;
    background-color: rgba(255, 255, 255, 0);
}

.nohero header {
    position: static;
    border-bottom: 1px solid #dddddd;
}

.headA {
    display: inline-block;
    padding-right: 20px;
    font-size: 24px;
    text-decoration: none;
    font-family: serif;
    color: inherit;
}

.headA img {
    width: 350px;
}

@media (max-width:767px) {
    .headA img {
        width: 250px;
    }
}

.headB ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.headB a {
    display: block;
    padding: 15px;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
}

.headB a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

@media (min-width:768px) {
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .headB ul {
        display: flex;
    }
}

@media (max-width:767px) {
    header .container-small {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .headC {
        margin-right: 10px;
        padding: 0;
        border: none;
        outline: none;
        background: none;
        font-size: 28px;
        opacity: 0.5;
        cursor: pointer;
        color: #000000;
    }

    .headC:hover {
        opacity: 0.8;
    }

    .headB {
        display: none;
    }

    nav.headB {
        background: linear-gradient(90deg,
                rgba(33, 77, 104, 0.92),
                rgba(44, 126, 173, 0.92));
    }

    .headB ul {

        justify-content: center;
    }

    .headB a {
        color: #fff;
        text-align: center;
    }

    .headB a::before {
        content: "▶";
        font-size: 10px;
        margin-right: 8px;
        opacity: .7;
    }


    .headB li {
        position: relative;
    }

    .headB li:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);

        width: 1px;
        height: 20px;

        background: rgba(255, 255, 255, 0.4);
    }
}

@media (min-width:767px) {
    .headC {
        display: none;
    }

    .headB {
        display: block !important;
    }
}

/*ネオン風アレンジ*/

.headB a {
    position: relative;
    display: block;
    padding: 15px;

    font-size: 14px;
    text-decoration: none;
    transition: color .3s;
}

.headB a:hover {
    background: none;
}

/* ネオン風ライン上書き */
.headB a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 10px;

    background: linear-gradient(90deg,
            #00e5ff,
            #00ff88);

    box-shadow:
        0 0 5px #00e5ff,
        0 0 10px #00ff88;

    transition: width .3s ease;
}

.headB a:hover::after {
    width: 40px;
}

.headB a:hover {
    color: #efefef;
}

/*会社案内*/
.post .container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 10px;
}

.post h1 {
    font-size: 2rem;
}

.post p {
    font-size: 1rem;
    line-height: 2;
    ;
}

.post img {
    max-width: 100%;
}

.post.greetingbg {
    background-image: url(img/bg_greeting.gif);
    background-position: center;
    background-size: cover;
}

@media (max-width:768px) {
    .post.greetingbg {
        background-image: url(img/bg_greeting_sp.gif);
        background-size: 560px auto;
        background-position: center bottom;
        background-repeat: no-repeat;
    }
}

.profile {
    background-color: #f7f7f7;
}

.profile .text {
    padding: 20px;
}

.profile .photo {
    min-height: 300px;
    background-image: url(img/about_gaikan.jpg);
    background-position: center;
    background-size: cover;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #808080;
    font-size: 0.875rem;
}

th,
td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #808080;
}

th {
    padding: 0 1rem;
    text-align: left;
    word-break: keep-all;
}

@media (min-width:768px) {
    .profile .container {
        display: flex;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .profile .photo {
        flex: 1;
    }

    .profile .text {
        flex: 1;
        padding: 50px;
    }
}

.profile.enkaku {
    background-color: #ffffff;
}

.profile.enkaku .photo {
    min-height: 300px;
    background-image: url(img/about_mukashi.jpg);
    background-position: bottom;
    background-size: cover;
}

@media (min-width:768px) {
    .profile.enkaku .container {
        flex-direction: row-reverse;
    }
}

/*事業内容*/

.profile.works.dam .photo {
    background-image: url(img/works_dam.jpg);
}

.profile.works.ippan .photo {
    background-image: url(img/works_sagyou.jpg);
}

.profile.works.saigai .photo {
    background-image: url(img/works_saigai02.jpg);
}

.profile.works.josetsu .photo {
    background-image: url(img/works_josetsu.jpg);
}

.profile.works.dam.shikaku .photo {
    background-image: url(img/recruit_shikaku.gif);
}

@media (min-width:768px) {

    .profile.works.ippan,
    .profile.works.josetsu {
        background-color: #ffffff;
        padding: 30px 0;
    }

    .profile.works.ippan .container,
    .profile.works.josetsu .container {
        flex-direction: row-reverse;
    }
}

@media (min-width:768px) {
    .profile.works .container {
        display: flex;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .profile.works .photo {
        flex: 3;
    }

    .profile.works .text {
        flex: 2;
        padding: 50px;
    }
}

.kouryu .container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 10px;
}

.kouryu .container img {
    max-width: 100%;
    border-radius: 20px;
}

.listA .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.listA article {
    margin: 0;
    flex: 1 1 300px;
}

.listA .photo {
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
}

@media screen and (max-width:767px) {
    .listA article {
        flex: 0 0 calc(50% - 10px);
    }
}

@media screen and (max-width:480px) {
    .listA article {
        flex: 0 0 100%;
    }
}

h2.title-wide img {
    max-width: 100%;
    height: auto;
}

@media (min-width:768px) {
    h2.title-wide img {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

}

.post.youkou .container {
    background-color: #eee;
    margin: 0 auto;
    padding: 30px;
}

.post.youkou {
    background-color: #eeeeee;
}

.post.youkou table {
    background-color: #ffffff;
}

.box {
    margin: 2em 0;
    background: #dcefff;
    text-align: center;
}

.box .box-title {
    font-size: 1.2em;
    background: #4291c9;
    padding: 4px;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.box p {
    padding: 15px 20px;
    margin: 0;
}

.indexBox {
    padding: 10px 20px;
}

@media (min-width:768px) {
    .indexBox {
        max-width: 1000px;
        margin: 0 auto;
    }

    .indexBox ul {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

}

/*お問合せ*/
.contact {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #eee;
    border-radius: 5px;
    text-align: center;
}

.contact span {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.5rem;
    width: 1.5rem;
    line-height: 1.5rem;
}

.contact h2 {
    margin-top: 0;
}

.contact a {
    color: inherit;
}




/*ページトップ*/
.pagetop {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 55px;
    height: 55px;

    background: linear-gradient(135deg,
            #4291c9,
            #48c1c2,
            #dce673);

    border-radius: 50%;

    color: #fff;
    font-size: 24px;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    transition: 0.3s;
}

.pagetop:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

/*トップ右上*/
@media (min-width:768px) {
    .tokusetsu {
        position: absolute;
        right: 0;
        top: 0;
        z-index: 120;
    }

    .tokusetsu a {
        background-color: red;
        color: #fff;
        margin: 0 5px;
        padding: 15px 50px;
        right: 50px;
        text-decoration: none;
        line-height: 3rem;
        ;
    }

    .tokusetsu a:hover {
        background-color: #19214f;
    }
}

@media (max-width:1024px) {
    .tokusetsu {
        display: none;
    }
}