@media only screen and (min-width : 1000px) {

    /*slide*/
    .first {
        display: grid;
        background-color: #888;
    }

    .firstf {
        margin: 40px auto;
        width: 1000px;
        height: 400px;
        display: flex;
        cursor: pointer;
    }

    .first-ul {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .first-ul:hover li {
        animation-play-state: paused;
    }

    .first-ul li img {
        width: 600px;
        height: 400px;
        object-fit: scale-down;
    }

    .first-txt {
        width: 40%;
        background-color: #ddd;
    }

    .first-txt-1 {
        border-bottom: #444 1px solid;
        padding: 12px 24px;
        font-size: 36px;
        color: #000;
    }

    .first-txt-2 {
        padding: 12px 48px;
        font-size: 28px;
        color: #000;
    }

    .first-ul>li {
        position: absolute;
        list-style: none;
        background-color: #aaa;
        visibility: hidden;
        animation: first-fade 12s 0s infinite;
        display: flex;
        border-bottom: solid 2px #a00;
        flex-wrap: wrap;
    }

    .first-ul>li:nth-of-type(2) {
        animation-delay: 3s;
    }

    .first-ul>li:nth-of-type(3) {
        animation-delay: 6s;
    }

    .first-ul>li:nth-of-type(4) {
        animation-delay: 9s;
    }

    @keyframes first-fade {
        0% {
            visibility: visible;
            opacity: 0;
            z-index: 0;
        }

        5% {
            opacity: 1;
            z-index: 1;
        }

        25% {
            opacity: 1;
            z-index: 1;
        }

        30% {
            opacity: 0;
            z-index: 0;
        }

        100% {
            opacity: 0;
            z-index: 0;
        }
    }

    /*article*/
    .second {
        padding: 0 80px;
        background-color: #666;
        display: grid;
        overflow-wrap: break-word;
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }

    .secondf {
        margin: 20px auto;
        background-color: #ddd;
        border-bottom: solid 2px #a00;
        width: 360px;   
    }

    .second-txt {
        padding: 0 8px;
        border-bottom: #666 1px solid;
    }

    .second-txt1 {
        font-size: 30px;
    }

    .second-txt2 {
        font-size: 24px;
    }

    .second-img {
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .second-img > a > img {
        width: 358px;
        height: 278px;
        background-color: #ddd;
        object-fit: scale-down;
    }

    .secondf:hover .second-img {
        transform: scale(0.95);
    }

    /*introductipxon*/
    .third {
        background-color: #444;
        display: flex;
    }

    .thirdf {
        color: #ddd;
        text-align: center;
        padding: 2%;
        width: 50%;
        height: 360px;
        border-right: solid 1px #000;
    }

    .third-txt1 {
        margin: 0 0;
        font-size: 36px;
    }

    .third-txt2 {
        padding: 16px;
        font-size: 24px;
    }
    
    .third-txt2 > a {
        color: #ddd;
    }

    /*idea*/
    .fourth {
        padding: 0;
        background-color: #222;
    }

    .fourthf {
        width: 100%;
        height: 480px;
        color: #ddd;
        text-align: center;
    }

    .fourth-txt1 {
        padding: 40px;
        font-size: 32px;
    }

    .fourth-txt2 {
        padding: 10px;
        font-size: 20px;
    }





}



@media only screen and (max-width : 999px) {
    /*slide*/
    .first {
        display: grid;
        background-color: #888;
    }

    .firstf {
        width: 100%;
        height: 360px;
        cursor: pointer;
    }

    .first-ul {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0 ;
        padding: 0;
    }

    .first-ul:hover li {
        animation-play-state: paused;
    }

    .first-ul > li {
        margin: 0 auto;
        width: 100%;
    }
    .first-ul > li > a {
        width:100%;
        height: 240px;
    }
    .first-ul > li > a > img {
        width: 100%;
        height: 240px;
        object-fit: scale-down;
    }

    .first-txt {
        width: 100%;
        height: 120px;
        background-color: #ddd;
        overflow: hidden;
    }

    .first-txt-1 {
        border-bottom: #444 1px solid;
        padding: 2px 8px;
        font-size: 20px;
        color: #000;
    }

    .first-txt-2 {
        padding: 2px 12px;
        font-size: 16px;
        color: #000;
    }

    .first-ul>li {
        position: absolute;
        list-style: none;
        background-color: #aaa;
        visibility: hidden;
        animation: first-fade 12s 0s infinite;
        display: flex;
        flex-direction: column-reverse;
        border-bottom: solid 2px #a00;
        flex-wrap: wrap;
    }

    .first-ul>li:nth-of-type(2) {
        animation-delay: 3s;
    }

    .first-ul>li:nth-of-type(3) {
        animation-delay: 6s;
    }

    .first-ul>li:nth-of-type(4) {
        animation-delay: 9s;
    }

    @keyframes first-fade {
        0% {
            visibility: visible;
            opacity: 0;
            z-index: 0;
        }

        5% {
            opacity: 1;
            z-index: 1;
        }

        25% {
            opacity: 1;
            z-index: 1;
        }

        30% {
            opacity: 0;
            z-index: 0;
        }

        100% {
            opacity: 0;
            z-index: 0;
        }
    }

    /*article*/
    .second {
        background-color: #666;
        display: grid;
        overflow: hidden;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }

    .secondf {
        margin: 20px auto;
        background-color: #ddd;
        border-bottom: solid 2px #a00;
        overflow-wrap: break-word; 
        width: 360px;   
    }

    .second-txt {
        padding: 0 8px;
        border-bottom: #666 1px solid;
    }

    .second-txt1 {
        font-size: 20px;
    }

    .second-txt2 {
        font-size: 16px;
    }

    .second-img {
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .second-img > a > img {
        width: 358px;
        height: 278px;
        background-color: #ddd;
        object-fit: scale-down;
    }

    .secondf:hover .second-img {
        transform: scale(0.95);
    }

    /*introduction*/
    .third {
        background-color: #444;
    }

    .thirdf {
        color: #ddd;
        text-align: center;
        padding: 2%;
        border-bottom: solid 1px #000;
    }

    .third-txt1 {
        margin: 0 0;
        font-size: 24px;
    }

    .third-txt2 {
        padding: 16px;
        font-size: 20px;
    }
    
    .third-txt2 > a {
        color: #ddd;
    }

    /*idea*/
    .fourth {
        padding: 0;
        background-color: #222;
    }

    .fourthf {
        width: 100%;
        color: #ddd;
        text-align: center;
    }

    .fourth-txt1 {
        padding: 10px;
        font-size: 20px;
    }

    .fourth-txt2 {
        padding: 10px;
        font-size: 16px;
    }







}