@charset "UTF-8";

/* 全体のリセット */
body,
h1,
h2,
h3,
p,
a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: YuMincho, "Hiragino Mincho ProN", serif;
}

body {
    line-height: 1.6;
    background-color: #3C3F48;
}

@media screen and (min-width: 1000px) {

    /* レスポンシブ非表示 */
    .header-sp,
    #menuOverlay,
    .mv-sp,
    .contents-sp,
    .img-category-sp,
    .footer-sp{
        display: none;
    }

    /* ヘッダーのスタイル */

    .header-pc {
        background-color: #3C3F48;
        padding: 20px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: absolute;
        z-index: 99999;
        width: 100%;
    }

    .navi-pc {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
    }

    .navi-1 img {
        width: 150px;
    }

    .navi-2 .navi-menu {
        display: flex;
        gap: 20px;
        align-items: flex-end;
    }

    .navi-2 .navi-menu a {
        text-decoration: none;
        color: #fff;
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
        line-height: 130%;
    }

    .navi-2 {
        padding-left: 40vw;
    }

    .navi-2 span {
        font-size: 0.7em;
    }

    /* メインビジュアルの全体レイアウト */
    .mv-pc img {
        width: 100%;
    }

    /* ページタイトル */
    .title {
        color: #fff;
        text-align: center;
        background-color: #1D1D1D;
        border-radius: 50px;
        width: 20%;
        margin: auto;
        padding: 5px;
        position: static;
        right: -25%;
        top: 50%;
        transform: translateX(0%);
        /* 縦中央を正確に調整 */
    }

    .title h2 {
        font-size: 1.8em;
    }

    /* メインコンテンツの全体レイアウト */
    .main {
        text-align: center;
        background-color: #F4F4F4;
        padding: 5% 2%;
        width: 90%;
        margin: 2% auto;
    }
    .img-portfolio{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 横に最大4列 */
        gap: 20px; /* 各要素の間のスペース */
        max-width: 1200px;
        margin: 0 auto; /* センター寄せ */
    }

    .img-portfolio img{
        width: 100%;
    }

    /*フッターの全体スタイル*/
    .footer {
        background-color: #272727;
        color: #fff;
        padding: 5%;
    }

    .footer-0 {
        display: flex;
        align-items: center;
    }

    .footer img {
        width: 60%;
    }

    .footer .navi-2 {
        padding: 0;
    }

    .footer-copy {
        background-color: #1D1D1D;
        width: 100%;
        text-align: center;
        color: #fff;
        padding: 10px 0;
        font-size: 0.6em;
    }

}

/*スマホ レスポンシブ*/
@media screen and (max-width: 999px) {

    /*---------------------------------------------------*/
    /* （共通）ヘッダー始まり */
    /*---------------------------------------------------*/
    .header-pc,
    .navi-pc {
        display: none;
    }

    .navi-pc {
        display: none;
    }

    .header-sp {
        padding: 2%;
    }

    .header-sp img {
        width: 40%;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .menu-icon span {
        display: block;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* メニュー非表示時の初期設定 */
    /* 共通スタイル */
    .header-sp {
        background-color: #3C3F48;
        padding: 10px 20px;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 99999;
    }

    .navi-sp {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
    }

    .navi-sp a img {
        width: 120px;
    }
    /*---------------------------------------------------*/
    /* （共通）ヘッダーおわり */
    /*---------------------------------------------------*/

    /*---------------------------------------------------*/
    /* ハンバーガーメニュー 始まり */
    /*---------------------------------------------------*/
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        background-color: #fff;
        padding: 3% 3% 5% 3%;
        position: relative;
        /* 「MENU」配置のため */
    }

    .menu-icon span {
        display: block;
        height: 3px;
        background-color: #616161;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* MENUテキストスタイル */
    .menu-icon p {
        color: #616161;
        font-size: 10px;
        margin: 5px 0 0;
        /* 上からの余白を調整 */
        position: absolute;
        bottom: 0;
        /* メニューアイコンの下に配置 */
        text-align: center;
    }

    /* チェックボックス（非表示） */
    .menu-toggle {
        display: none;
    }

    /* メニュー非表示時の初期設定 */
    .menu-sp {
        display: none;
        /* 初期状態で非表示 */
        position: absolute;
        top: 60px;
        /* ヘッダー下部に配置 */
        left: 0;
        width: 100%;
        background-color: #3C3F48;
        z-index: 999;
        flex-direction: column;
        /* 縦並びにする */
        text-align: center;
    }

    /* メニューリンクのスタイル */
    .menu-sp a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #fff;
        border-bottom: 1px solid #ccc;
    }

    .menu-sp a:hover {
        background-color: #272727;
    }

    /* メニュー開閉時のアニメーション */


    /* 1本目の線: 「×」の左上の線に */
    .menu-toggle:checked+.menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        /* 右下方向に回転＆移動 */
        background-color: #3C3F48;
        /* 色を維持 */
    }

    /* 2本目の線: 非表示に */
    .menu-toggle:checked+.menu-icon span:nth-child(2) {
        opacity: 0;
        /* 完全に透明にする */
    }

    /* 3本目の線: 「×」の右上の線に */
    .menu-toggle:checked+.menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        /* 左上方向に回転＆移動 */
        background-color: #3C3F48;
        /* 色を維持 */
    }


    /* メニュー表示（チェックボックスがオンのとき） */
    .menu-toggle:checked~.menu-sp {
        display: flex !important;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* ハンバーガーメニューアイコンのアニメーション */
    .menu-toggle:checked+.menu-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked+.menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked+.menu-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* メニューを覆う全画面のスタイル */
    .menu-overlay {
        position: fixed;
        /* スクロールしても画面に固定 */
        top: 0;
        left: 0;
        width: 100vw;
        /* 画面全幅 */
        height: 100vh;
        /* 画面全高 */
        background-color: #fff;
        /* 背景を白に */
        color: #3C3F48;
        /* 文字色を指定 */
        z-index: 999;
        /* 他の要素の上に表示 */
        display: none;
        /* デフォルトで非表示 */
        flex-direction: column;
        /* メニューアイテムを縦並びに */
        justify-content: center;
        /* 縦方向に中央揃え */
        align-items: center;
        /* 横方向に中央揃え */
        overflow: hidden;
        /* スクロールを防止 */
    }

    /* メニューを覆う全画面のスタイル */
    .menu-overlay {
        position: fixed;
        /* スクロールしても画面に固定 */
        top: 0;
        left: 0;
        width: 100vw;
        /* 画面全幅 */
        height: 100vh;
        /* 画面全高 */
        background-color: #fff;
        /* 背景を白に */
        color: #3C3F48;
        /* 文字色を指定 */
        z-index: 999;
        /* 他の要素の上に表示 */
        display: none;
        /* デフォルトで非表示 */
        flex-direction: column;
        /* メニューアイテムを縦並びに */
        justify-content: center;
        /* 縦方向に中央揃え */
        align-items: center;
        /* 横方向に中央揃え */
        overflow: hidden;
        /* スクロールを防止 */
        text-align: center;
    }

    /* メニューが開いた状態 */
    .menu-overlay.active {
        display: flex;
        /* メニューを表示 */
    }

    /* メニューアイテムのスタイル */
    .menu-overlay a {
        font-size: 1em;
        /* 適宜調整 */
        text-decoration: none;
        /* 下線を削除 */
        color: #3C3F48;
        /* 文字色を指定 */
        margin: 1rem 0;
        /* 適度な間隔 */
        font-weight: bold;
        /* 太字 */
    }

    /* メニューを閉じるボタン */
    .menu-overlay .close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: #3C3F48;
    }

    /* ハンバーガーメニューアイコン */
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }

    .menu-icon span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: #3C3F48;
    }

    /* メニューのトグルがオンのときにメニューを表示 */
    .menu-toggle:checked+.menu-icon+.menu-overlay {
        display: flex;
    }

    /* フェードインアニメーション */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /*---------------------------------------------------*/
    /* ハンバーガーメニュー 終わり */
    /*---------------------------------------------------*/


    /* メインビジュアルのスタイル */
    .mv-pc {
        display: none;
    }

    .mv-sp img {
        width: 100%;
    }

    /* ページタイトル */
    .title {
        color: #fff;
        text-align: center;
        background-color: #1D1D1D;
        border-radius: 50px;
        width: 40%;
        margin: auto;
        padding: 5px;
        position: relative;
        right: 0%;
        top: 50%;
        /* transform: translateX(0%);
        /* 縦中央を正確に調整 */
    }

    .title h2 {
        font-size: 1.3em;
    }

    /* メインコンテンツの全体レイアウト */
    .main {
        text-align: center;
        background-color: #F4F4F4;
        padding: 5% 2%;
        width: 90%;
        margin: 2% auto;
    }
    .img-portfolio{
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 横に最大4列 */
        gap: 20px; /* 各要素の間のスペース */
        max-width: 1200px;
        margin: 0 auto; /* センター寄せ */
    }

    .img-portfolio img{
        width: 100%;
    }
    
    /*フッターの全体レイアウト*/
    .footer {
        display: none;
    }

    .footer-sp {
        color: #fff;
        height: 20vh;
    }

    .footer-sp img {
        width: 50%;
        margin: auto;
        display: block;
        padding-top: 10%;
    }

    .footer-sp p {
        margin-top: 8%;
        margin-left: 5%;
    }

    .footer-copy {
        background-color: #1D1D1D;
        width: 100%;
        text-align: center;
        color: #fff;
        padding: 10px 0;
        font-size: 0.6em;
        margin-top: 8%;
    }
}