@charset "utf-8";

/* =============================================
共通css
============================================= */
html {
    font-size: calc(100vw * (10 / 1280));
}

.sp_only {
    display: none;
}

body {
    background-color: rgb(250, 248, 248);
    color: #4c4545;
}

main {
    margin-top: 12rem;
    margin-bottom: 12rem;
}

/* セクション */
section {
    max-width: 100rem;
    margin: 0 auto;
    padding-top: 12rem;
}

.section_inner {
    max-width: 800rem;
    margin: 0 auto;
}

/* タイトル */
.title_big {
    font-size: 3.6rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.title_small {
    font-size: 1.6rem;
    display: block;
    color: #837979;
}

/* =============================================
ヘッダー
============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 12rem;
    background-color: #eae3e3;
    z-index: 100;
    display: flex;
}

.header_inner {
    width: 110rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_wrap {
    display: flex;
    gap: 2rem;
    font-size: 1.8rem;
}

.nav_wrap a:hover {
    color: #7a7272;
}

.logo_wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header_logo {
    height: 4rem;
}

.header_name {
    font-size: 1.6rem;
    line-height: 1;
}

/* =============================================
アバウト
============================================= */
.about_detail_wrap {
    max-width: 80rem;
    margin: 0 auto;
}

.about_detail_big,
.about_detail_small {
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.about_detail_big {
    margin-bottom: 4rem;
    font-size: 2.4rem;
    display: block;
    line-height: 1.4;
}

.about_detail_small {
    display: block;
    font-size: 1.8rem;
}

.about_detail_text {
    font-size: 1.6rem;
    line-height: 1.4;
}

/* =============================================
サービス
============================================= */
.card_wrap {
    display: flex;
    flex-wrap: wrap;
    max-width: 80rem;
    gap: 2rem;
    margin: 0 auto;
}

.card {
    width: calc((100% - 4rem) / 3);
    min-height: 15rem;
    text-align: center;
    border: 1px solid #4c4545;
    border-radius: 0.6rem;
}

.service_img {
    width: 3rem;
    margin-bottom: 1.8rem;
}

.service_card {
    font-size: 1.5rem;
    padding: 2.8rem 2rem;
}

.service_card_title {
    margin-bottom: 1.8rem;
}

.service_card_detail{
    line-height: 1.4;
}

/* =============================================
ワークス
============================================= */
.works_card_wrap {
    justify-content: space-between;
    max-width: 80rem;
}

.works_card {
    width: calc((100% - 2rem) / 2);
    background-color: #e4e4e4;
    border: none;
    transition: 0.3s;
    padding: 2.6rem 2.8rem;
}

.works_card:hover {
    opacity: 0.7;
}

.works_img_area {
    width: 14em;
    height: 9.8rem;
    margin: 0 auto;
    margin-bottom: 1.8rem;
    overflow: hidden;
}

.works_img {
    width: 100%;
    height: 100%;
    transition: 0.3s;
    object-fit: cover;
    transform: scale(1.1);
}

.works_card:hover .works_img {
    transform: scale(1.2);
}

.works_card_title {
    margin-bottom: 1.8rem;
    font-size: 1.8rem;
}

.works_card_detail {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* =============================================
フッター
============================================= */
.footer {
    text-align: center;
    background-color: #4c4545;
    color: #fff;
    padding: 2rem 0;
}

.copyright {
    color: #fff;
}

/* =============================================
メディアクエリ
============================================= */
@media screen and (max-width:698px) {

    /* =============================================
    共通css
    ============================================= */
    html {
        font-size: calc(100vw * (10 / 375));
    }

    .pc_only {
        display: none;
    }

    .sp_only {
        display: block;
    }

    main {
        margin-top: 2rem;
        margin-bottom: 8rem;
    }

    /* セクション */
    section {
        max-width: 30rem;
        margin: 0 auto;
        padding-top: 8rem;
    }

    /* タイトル */
    .title_big {
        font-size: 4rem;
        margin-bottom: 2rem;
        line-height: 1.2;
        font-family: "Zen Kaku Gothic New", sans-serif;
    }

    .title_small {
        font-size: 1.6rem;
        display: block;
        color: #837979;
    }

    /* =============================================
    ヘッダー
    ============================================= */
    .header{
        height: 8rem;
    }

    .header_inner {
        height: 8rem;
        max-width: 30rem;
    }

    /* =============================================
    ハンバーガーボタンのスタイル
    ============================================= */
    .sp_btn {
        position: relative;
        z-index: 200;
        width: 3rem;
        height: 3rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* 三本線 */
    .sp_btn span {
        display: block;
        position: absolute;
        left: 0.5rem;
        width: 3rem;
        height: 2px;
        background-color: #4c4545;
        transition: all 0.3s;
    }

    .sp_btn span:nth-child(1) {
        top: 0.8rem;
    }

    .sp_btn span:nth-child(2) {
        top: 1.4rem;
    }

    .sp_btn span:nth-child(3) {
        top: 2rem;
    }

    /* ×印に変形時（ボタンがクリックされた時） */
    .sp_btn.open span:nth-child(1) {
        transform: translateY(0.6rem) rotate(-45deg);
    }

    .sp_btn.open span:nth-child(2) {
        opacity: 0;
    }

    .sp_btn.open span:nth-child(3) {
        transform: translateY(-0.6rem) rotate(45deg);
    }

    /* =============================================
    スマホ用ナビメニューのスタイル
    ============================================= */
    .sp_nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(234, 227, 227, 0.95);
        transition: all 0.3s;
        padding-top: 8rem;
        z-index: 100;
    }

    /* メニューが開いた時（右からスライドイン） */
    .sp_nav.open {
        right: 0;
    }

    .sp_nav_wrap {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .sp_nav_wrap a {
        display: block;
        font-size: 2rem;
        text-decoration: none;
        color: #4c4545;
    }

    .sp_nav_wrap a:hover {
        color: #7a7272;
    }

    /* =============================================
    アバウト
    ============================================= */
    .about_detail_big {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about_detail_small {
        font-size: 1.6rem;
    }

    .about_detail_text {
        max-width: 40rem;
        margin: 0 auto;
        font-size: 1.4rem;
    }

    /* =============================================
    サービス
    ============================================= */
    .card_wrap {
        gap: 1.5rem;
    }

    .service_card {
        width: 26rem;
        margin: 0 auto;
        height: auto;
    }

    .service_img {
        margin-bottom: 1.5rem;
    }

    .service_card_title {
        margin-bottom: 1.2rem;
    }

    /* =============================================
    ワークス
    ============================================= */
    .works_card {
        width: 26rem;
        margin: 0 auto;
    }

    /* =============================================
    フッター
    ============================================= */
    .footer {
        font-size: 0.7rem;
        padding: 2rem 0;
    }

    .footer a {
        color: #fff;
    }

    .footer_nav {
        padding-bottom: 3rem;
    }

    .footer_sp_nav_wrap {
        gap: 1.8rem;
    }
}