@media (max-width:1000px) {}

@media (min-width:769px) {
    .gallery-mobile {
        display: none;
    }
}

@media (max-width:768px) {

    /* 共通 -------------------------------*/

    .wrapper {
        width: 100%;
        max-width: 300px;
        margin-right: auto;
        margin-left: auto;
    }

    .navi,
    .navi-2 {
        display: none;
    }

    h3 {
        font-size: 1.2rem;
        margin-top: 6rem;
    }

    /* header */

    .header-contact {
        display: none;
    }

    .header {
        position: fixed;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        text-align: center;
    }

    h1 img {
        height: 40px;
    }

    /* ハンバーガー */

    .menu-btn {
        position: fixed;
        top: 1.2rem;
        right: 1.2rem;
    }

    .menu-content {
        position: fixed;
        z-index: 100;
        top: 0;
        left: 100%;
        background: linear-gradient(to bottom, #ffffff, #b4b4b4);
        width: 100%;
        height: 100vh;
        text-align: center;
        padding-top: 4rem;
        transition: all 0.3s linear;
    }

    .menu-content-sentence {
        font-size: 0.8rem;
    }

    .menu-content-sentence .block {
        display: flex;
        margin-top: 1rem;
        margin-left: 4rem;
        margin-left: 50%;
    }

    .menu-content-sentence li {
        margin-bottom: 1.8rem;
        font-size: 1rem;
    }

    #menu-btn-check:checked~.menu-content {
        left: 0;
    }

    .block {
        font-size: 1rem;
        width: fit-content;
    }

    .next-page a {
        margin-top: 1rem;
    }

    /* Loading背景画面設定　-----------------------*/



    /* モーダル ----------------------------------*/

    .modal-content {
        margin-top: 50%;
    }

    .modal-content-1 {
        margin-top: 50%;
    }

    /* mv ---------------------------------*/

    .mv-inner {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mv-inner img {
        width: 70%;
        height: 100%;
    }

    .mv-jinasano {
        margin-left: auto;
        margin-right: auto;
    }

    .mv-portfolio {
        margin-right: auto;
        margin-left: auto;
    }

    .mv-portfolio p {
        font-size: 2.6rem;
    }

    /* home-about ----------------------------*/

    .home-about-inner {
        max-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .home-about-name {
        margin-bottom: 1rem;
    }

    .home-about-rubi {
        font-size: 0.7rem;
    }

    .home-about-inner-name {
        font-size: 1rem;
    }

    .home-about-inner img {
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .home-about-sentence {
        margin-right: auto;
        margin-left: auto;
    }

    .home-about-sentence p {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    /* home-news -------------------------------*/

    #news {
        display: block;
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
        margin-bottom: 7rem;
    }

    .news td {
        padding-bottom: 2rem;
        padding-top: 2rem;
        padding-left: 1rem;
        font-size: 0.7rem;
    }

    .news th {
        font-size: 0.9rem;
    }

    /* ABOUT -------------------------------------------------------------*/

    .about-inner {
        display: flex;
        flex-direction: column;
    }

    .about img {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }

    .about-img {
        display: block;
        max-width: 300px;
        width: 100%;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: solid 1px #686868;
    }

    .about-img p {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .about-img p {
        font-size: 0.7rem;
    }

    .about-inner-sentence {
        max-width: 100%;
        margin-left: 0;
    }

    .about-inner-sentence p {
        font-size: 0.7rem;
        line-height: 1.4rem;
        letter-spacing: 0.02rem;
        margin-bottom: 1rem;
    }

    /* skill */

    .skill {
        max-width: 300px;
        width: 100%;
    }

    .skill-main-continer {
        display: flex;
        flex-direction: column;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .skill-title {
        margin-top: auto;
        margin-bottom: 1.5rem;
        margin-right: 0;
        font-size: 1rem;
        padding-left: 1rem;
        border-left: 2px solid #686868;
        color: #686868;
    }

    .skill-sub-continer {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .skill-sub-continer img {
        max-height: 55px;
        height: 100%;
    }

    /* WORK -------------------------------*/

    .work {
        max-width: 300px;
        width: 100%;
        margin: auto;
        display: grid;
        gap: 0.8rem;
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
    }

    .work-bottom {
        margin-bottom: 12.5rem;
    }

    .img-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 140px;
        height: 140px;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
    }

    .img-container img {
        display: block;
        margin: 0 auto;
        max-width: 80%;
        max-height: 80%;
        width: auto;
        height: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .img-container:hover {
        transform: scale(1.1);
    }

    .work-last {
        margin-bottom: 2rem;
    }

    .illustration-h2 {
        margin-bottom: 2rem;
    }

    .work-last-mobile {
        margin-bottom: 4rem;
    }

    /* work-page-1 ------------------------------------

    .gallery {
        display: none;
    }

    .gallery-mobile {
        display: flex;
        gap: 10px;
        flex-direction: column;
        margin-bottom: 12.5rem;
        width: 90%;
        margin-right: auto;
        margin-left: auto;
    }

    .thumbnail-gallery {
        display: flex;
        flex-direction: column;
    }

    .main-img img {
        max-width: 800px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .main-img-p {
        margin-top: 2rem;
        max-width: 300px;
        width: 100%;
    }

    .main-img-p h4 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .main-img-p p {
        max-width: 300px;
        width: 100%;
        margin-bottom: 2rem;
        font-size: 0.8rem;
    }

    .thumbnails-wrapper {
        position: relative;
        max-width: 100%;
    }

    .thumbnails {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
    }

    .scroll-indicator {
        position: absolute;
        display: flex;
        flex-direction: row;
        align-items: center;
        left: 1px;
        bottom: -30px;
        right: 0;
        color: #262222;
        font-size: 3rem;
        animation: blink 1s infinite alternate;
        transition: opacity 0.5s;
    }

    .scroll-sentencr {
        transform: rotate(0deg);
        margin-bottom: 0;
    }

    @keyframes blink {
        0% {
            opacity: 1;
        }

        100% {
            opacity: 0.2;
        }
    }

    .return {
        color: #262222;
        font-size: 1rem;
        animation: blink 1s infinite alternate;
        margin-bottom: 1rem;
        transition: opacity 0.5s;
    }

    .thumbnail-gallery {
        display: flex;
        flex-direction: column;
        max-height: 500px;
        overflow-y: auto;
    }

    .thumbnail {
        cursor: pointer;
        margin: 5px;
        width: 100px;
        height: auto;
        transition: transform 0.3s ease-in-out;
    }

    .thumbnail:hover {
        transform: scale(1.1);
    }

    .thumbnails::-webkit-scrollbar {
        display: none;
    }

    .thumbnails img {
        max-width: 120px;
        width: 100%;
        height: auto;
        object-fit: cover;
        cursor: pointer;
        transition: none;
    }

    .thumbnails img:hover {
        transform: scale(1.1);
        opacity: 0.7;
    }

    .web-link a {
        display: block;
        float: right;
        animation: blink 1s infinite alternate;
        transition: opacity 0.6s;
    }

    .work-page-1-link {
        display: flex;
        justify-content: space-between;
    }

    .web-login {
        font-size: 0.8rem;
        margin-bottom: 2rem;
        display: flex;
        justify-content: flex-end;

    }

    .web-login-inner {
        margin-left: 1rem;
    }

    .mobile-sentence {
        max-width: 90%;
        margin-right: auto;
        margin-left: auto;
    }

    .skill-sub-continer {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        margin-top: 1.5rem;
    }

    .skill-sub-continer img {
        max-height: 60px;
        height: 80%;
        width: auto;
        box-shadow: none;
        margin-right: 0;
    }

    .skill-top-mobile {
        margin-top: 1.5rem;
    }
*/

    .gallery-mobile {
        display: none;
    }

    .gallery {
        margin-bottom: 12rem;
        width: 80%;
    }

    .thumbnail-gallery {
        display: flex;
        flex-direction: column;
        max-height: 500px;
        /* 必要に応じて調整 */
        overflow-y: auto;
    }

    .main-img img {
        max-width: 800px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .main-img-p {
        margin-top: 2rem;
        width: 100%;
    }

    .main-img-p h4 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .main-img-p p {
        width: 100%;
        margin-bottom: 2rem;
        font-size: 0.8rem;
    }

    .thumbnails {
        max-height: 300px;
    }

    .thumbnail-gallery {
        display: flex;
        flex-direction: column;
        max-height: 500px;
        /* 必要に応じて調整 */
        overflow-y: auto;
    }

    .web-link a {
        display: block;
        float: right;
        /* margin-bottom: 2rem; */
        animation: blink 1s infinite alternate;
        /* 点滅アニメーション */
        transition: opacity 0.6s;
    }

    .work-page-1-link {
        display: flex;
        justify-content: space-between;
    }

    .web-login {
        font-size: 0.8rem;
        margin-bottom: 2rem;
        display: flex;
        justify-content: flex-end;
    }

    .web-login-inner {
        margin-left: 1rem;
    }

    .work-skill-sub-continer {
        display: flex;
        width: 100%;
        margin-top: 1.5rem;
    }

    .work-skill-sub-continer img {
        max-height: 60px;
        height: 100%;
        width: auto;
        box-shadow: none;
        margin-right: 1.5rem;
    }

    /* work-page-2 ----------------------------------*/

    .work-page-2-main {
        margin-bottom: 20%;
    }

    .work-page-2-main img {
        width: 100%;
    }

    .drug img {
        width: 100%;
    }

    .sky-cafe img {
        width: 100%;
    }

    .goat img {
        width: 100%;
    }

    .nightpool-img {
        display: flex;
        flex-direction: column;
    }

    .nightpool-img img {
        width: 100%;
        margin-bottom: 2rem;
    }

    .work-page-2-main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .work-page-2-sentence {
        margin-left: 5%;
    }

    .work-page-2-sentence h4 {
        margin-bottom: 1rem;
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    .work-page-2-sentence p {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .work-page-2-sentence img {
        width: 10%;
        min-width: 50px;
        margin-right: 1rem;
    }

    /* instagram-page ------------------------------*/

    .instagram-navi {
        display: none;
    }

    .instagram-inner {
        margin-top: 6%;
    }

    .instagram-inner a {
        display: block;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .instagram-inner img {
        max-width: 40px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        opacity: 0.8;
    }
}