/* ==================================================
   基本設定
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff;
    color: #939191;

    font-family:
        "Yu Gothic",
        "游ゴシック",
        YuGothic,
        sans-serif;
}

a {
    color: #929090;
    text-decoration: none;
}

/*----------
ヘッダー
----------*/

header {
    width: 100%;
    height: 74px;

    background-color: rgb(220, 219, 219);
    color: black;

    padding: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-sizing: border-box;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;
}


/*----------
SHIBATA ロゴ
----------*/

header .logo {
    display: block;

    width: 160px;

    margin-left: 70px;
    padding: 0;

    line-height: 0;

    flex-shrink: 0;
}

header .logo img {
    display: block;

    width: 160px;
    height: auto;

    margin: 0;
    padding: 0;

    transform: translateY(8px);
}


/*----------
ナビゲーション
----------*/

header nav {
    margin: 0;
    padding: 0;
}

header nav ul {
    display: flex;

    justify-content: space-between;
    align-items: center;

    list-style-type: none;

    margin: 0;
    padding: 0;

    transform: translateY(13px);
}

header nav ul li {
    width: 140px;

    margin: 0;
    padding: 0;

    font-size: 16px;
}

header nav ul li a {
    color: black;
    text-decoration: none;
}

header nav ul li a:hover {
    color: rgb(101, 101, 202);
}



/* ====================
   全体
==================== */

.viewer {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 60px 0;
}


/* ====================
   グレーの表示エリア
==================== */

.slide-area {

    width: 1000px;
    height: 620px;

    margin: 0 auto;
    margin-top: 120px;
    background: #b0b0b0;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* ====================
   ページ画像
==================== */

.image-box {

    width: 750px;
    height: auto;

    display: flex;

    align-items: flex-start;
    justify-content: center;
}

.image-box img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}


/* ====================
   説明文
==================== */

.caption {

    width: 700px;

    margin: 40px auto;

    text-align: center;

    font-size: 16px;

    line-height: 1.8;
}


/*==================================================
  タブレット
  601px ～ 1024px
==================================================*/

@media screen and (min-width: 601px) and (max-width: 1024px) {

    /*----------
    ヘッダー
    ----------*/

    header {
        width: 100%;
        height: 74px;

        padding: 0;

        display: flex;
        justify-content: space-between;
        align-items: center;

        position: fixed;
        top: 0;
        left: 0;

        z-index: 1000;

        box-sizing: border-box;
    }


    /*----------
    SHIBATA ロゴ
    ----------*/

    header .logo {
        display: block;

        width: 140px;

        margin-left: 20px;
        padding: 0;

        line-height: 0;

        flex-shrink: 0;
    }

    header .logo img {
        display: block;

        width: 140px;
        height: auto;

        margin: 0;
        padding: 0;

        transform: translateY(8px);
    }

/* ====================
   タブレット版
   画像サイズ
==================== */

@media screen and (min-width: 601px) and (max-width: 1024px) {

    /* グレーの表示エリア */

    .slide-area {
        width: calc(100% - 80px);
        max-width: 929px;
    }


    /* 画像を載せるエリア */

    .image-box {
        width: 700px;
        height: 470px;
    }


    /* 実際の画像 */

    .image-box img {
        width: 700px;
        height: 470px;
    }

}




    /*----------
    ナビゲーション
    ----------*/

    header nav {
        margin: 0;
        padding: 0;
    }

    header nav ul {
        display: flex;

        justify-content: space-between;
        align-items: center;

        margin: 0;
        padding: 0;

        list-style-type: none;

        transform: translateY(13px);
    }

    header nav ul li {
        width: 100px;

        margin: 0;
        padding: 0;

        font-size: 15px;
    }

    header nav ul li a {
        color: black;
        text-decoration: none;
    }


    /*----------
    WORKS
    ----------*/

    .works {
        width: calc(100% - 40px);

        max-width: 929px;

        margin-left: auto;
        margin-right: auto;

        padding: 120px 0 80px;
    }


    /*----------
    WORKSタイトル
    ----------*/

    .works-title {
        margin-bottom: 60px;
    }

    .works-title img {
        width: 430px;
        max-width: 100%;
        height: auto;
    }


    /*----------
    作品グリッド
    ----------*/

    .works-grid {
        width: 100%;

        margin-left: auto;
        margin-right: auto;

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        column-gap: 30px;
        row-gap: 50px;
    }


    /*----------
    作品画像
    ----------*/

    .work-image {
        width: 100%;

        background: none;

        overflow: hidden;
    }

    .work-image img {
        display: block;

        width: 100%;
        height: auto;

        object-fit: contain;
    }


    /*----------
    作品情報
    ----------*/

    .work-info {
        margin-top: 8px;
    }

    .work-number {
        font-size: 15px;
    }

    .work-company {
        font-size: 15px;
    }
}









/*==================================================
  スマートフォン
  600px以下
==================================================*/

@media screen and (max-width: 600px) {


    /*==================================================
      ヘッダー
    ==================================================*/

    header {
        width: 100%;
        height: 45px;

        padding: 0;

        display: block;

        position: fixed;
        top: 0;
        left: 0;

        z-index: 1000;

        box-sizing: border-box;
    }


    /*----------
    SHIBATA ロゴ
    ----------*/

    header .logo {
        display: block;

        position: absolute;

        left: 10px;
        top: 0;

        width: 112px;

        margin: 0;
        padding: 0;

        line-height: 0;
    }

    header .logo img {
        display: block;

        width: 112px;
        height: auto;

        margin: 0;
        padding: 0;

        transform: translateY(8px);
    }


    /*----------
    ナビゲーション
    ----------*/

    header nav {
        position: absolute;

        right: 10px;
        top: 0;

        margin: 0;
        padding: 0;
    }

    header nav ul {
        display: flex;

        justify-content: flex-end;
        align-items: center;

        gap: 10px;

        margin: 0;
        padding: 0;

        list-style-type: none;

        transform: translateY(13px);
    }

    header nav ul li {
        width: auto;

        margin: 0;
        padding: 0;

        font-size: 13px;

        white-space: nowrap;
    }

    header nav ul li a {
        color: black;
        text-decoration: none;
    }


   /*==================================================
  単ページ
  グレー背景ボックス＋写真
==================================================*/

.slide-area {
    width: 100%;
    height: auto;

    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


/*----------
写真を置くエリア
----------*/

.image-box {
    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/*----------
写真
----------*/

.image-box img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    object-fit: contain;
}

    /*==================================================
      説明文
    ==================================================*/

    .caption {
        width: 100%;

        margin: 30px auto 0;

        text-align: center;
    }

}