/*
Theme Name: twentyten child theme for Kishida-c
Template: twentyten
Version: 2026.05
Author: advanscope
Author URI: https://www.catv-ads.jp/
Description: This style is exclusively for mobiles. It is a child theme of the twentyten theme, and it is used for the Kishida-c website. It is designed to provide a better user experience on mobile devices by optimizing the layout and design for smaller screens. The styles in this file will override the default styles of the twentyten theme when viewed on mobile devices.
*/


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

    /* 共通部分 */
    #headcon,
    #box980,
    #navicon,
    #main,
    #footcon,
    .one-column,
    #box,
    #mainl,
    #mainr,
    #copycon {
        max-width: 100%;
        width: unset;
    }

    #box, #box980 {
        padding: 20px 5px;
    }

    img {
        max-width: 100%;
    }
    .rsimg {
        max-height: 300px;
    }

    h2, h5, h6 {
        margin: 20px 0;
    }

    .superscript {
        vertical-align: super;
        font-size: 0.8rem;
    }

    .bread {
        margin-left: 1%;
        & .breadcrumbs {
            font-size: 0.8em !important;
        }
    }

    #foot {
        margin-top: 30px;
        padding: 5px;
        width: unset;

        & #fmenu {
            & li {
                width: 33%;

                & a {
                    background-position: center;
                    padding: 5%;
                    height: 3rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }

        & #footcon #li3 {
            flex-wrap: wrap;

            &>li {
                width: 50%;
            }

            &>li:nth-child(2) {
                display: none;
            }

            &>li:last-child {
                width: 100%;
                display: flow-root;
                line-height: 1rem;
                & .c {
                    float: left;
                    width: 90px;
                    margin: 0 20px;
                }
                & .c img {
                    display: block;
                    width: 100%;
                    height: auto;
                }
                & br:first-of-type, br:nth-of-type(2) {
                    display: none;
                }
            }
        }
    }

    /* スマホ用メニュー */
    #spnavi #spnavicon .sub-menu {
        display: none;
    }

    /* 「電話をかける」 */
    #head #headcon #sprhead {
        z-index: 999;
    }

    .entry-title {
        margin-left: 1%;
        max-width: 100%;
    }





    /* index のバナー上文字 */
    #msg {
        left: 5%;
        top: 5%;
        font-size: 13px;
        text-shadow: 0 0 5px white;
    }

    /* index のトピックス */
    div.whatsnew {
        width: 90%;
        margin: 0;
        padding: 0 5%;

        & dl {
            padding: 0;
            margin: 5px 0;
        }

        & dt {
            width: 8.5rem;
            text-align: center;
            margin-right: 100%;
        }

        & dd {
            margin-left: 5px;
        }
    }

    /* index の事業内容 */
    #li2 {
        justify-content: space-between;

        & li {
            padding: 5px;
            margin-bottom: 20px;
            height: 26rem;

            & h4 {
                font-size: 16px;
                line-height: 1.4rem;
                height: 3rem;
                padding: 10px 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            & p {
                text-align: justify;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                line-height: 1.4rem;
                height: 55%;

                & a {
                    width: 100%;
                    text-align: center;
                    padding: 5px 0;
                    margin: 0;
                }

                & br {
                    display: none;
                }
            }
        }
    }

    /* index の取扱メーカー */
    #li6 {
        & li {
            width: 20%;
            padding: 5px;
            & a {
                padding: 10px;
            }
        }
    }

    /* index の企業案内 */
    #kili {
        flex-direction: column;
        align-items: center;
        & li {
            width: 100%;
            height: 150px;
            padding: 0;
            & a {
                background-color: #ffffff88;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100%;
            }
        }
    }



    /* お知らせ一覧 */
    #lpcon {
        padding: 0 5px 20px;
        & .mdate {
            width: 8.5rem;
            text-align: center;
        }
    }
    #archives-2 {
        padding: 0 5px;
    }



    /* 塗料 */
    #li1 {
        & li {
            width: 100%;
            padding: 0;
            & h2 {
                text-align: left;
            }
            & h3 {
                padding: 20px 5px;
            }
            & .toryoli li {
                width: 50%;
                margin: 0;
            }
        }
    }


    /* 構造用接着剤 */
    #li7 {
        flex-direction: column;
        & li {
            width: 100%;
        }
    }
    #pdt1 {
        font-size: 10px;
        width: unset;
    }
    #flow {
        justify-content: normal;
        & li {
            width: 50%;
        }
        & .migi, .hidari, .sita {
            display: none;
        }
        &:first-of-type {
            counter-reset: step;
            & li {
                counter-increment: step;
                position: relative;
            }
            & li::after {
                content: counter(step);
                position: absolute;
                top: 5px;
                left: 15px;
                border-radius: 50%;
                background-color: #ffffff88;
                width: 20px;
                height: 20px;
                text-align: center;
            }
            & li:nth-child(5) {
                order: 6;
                &::after {
                    content: "6";
                }
            }
            & li:nth-child(6) {
                order: 5;
                &::after {
                    content: "5";
                }
            }
        }
    }



    /* コンクリート侵食性保護塗料 */
        #box980 ul.li3, #box980 ul.li4 {
        flex-wrap: wrap;
        justify-content: space-between;
        & li {
            width: 45%;
            box-sizing: border-box;
            & u {
                color: black;
            }
            & p br {
                display: none;
            }
        }
    }
    #box980 ul.li2 {
        & li {
            width: 100%;
            padding: 0;
            margin-bottom: 15%;
            & u {
                text-decoration: none;
                font-weight: bold;
            }
        }
    }


    /* 床塗装工事 */
    #flow2 {
        margin-bottom: 30px;
        & dt {
            display: none;
        }
        & dd {
            width: 100%;
            & h2 {
                margin-bottom: 2rem;
            }
        }
        & .sita2 {
            display: none;
        }
    }
    #qa5:only-child {
        display: none;
    }


    /* 遮熱・断熱・ガラスコート */
    #msg1 {
        width: unset;
        padding: 5px;
    }
    #li1 li {
        margin-bottom: 40px;
    }
    #qali {
        display: none;
    }
    #qadl {
        width: unset;
        margin: 0;
        padding: 10px 0;
        & dt b, dd b {
            width: 10%;
        }
    }


    /* 鳥害防止 */
    #box980 ul.li5 {
        flex-wrap: wrap;
        justify-content: space-between;
        & li {
            width: 48%;
            margin-bottom: 10px;
        }
    }
    #msg4 {
        margin: 0;
    }


    /* 取扱メーカー */
    #mli {
        flex-direction: column;
        & li {
            width: unset;
        }
    }


    /* 企業情報 */
    #li4 {
        flex-wrap: wrap;
        justify-content: center;
        & li {
            width: 30%;
        }
        & li:nth-child(2), & li:nth-child(3) {
            display: none;
        }
    }
    #mapli {
        flex-wrap: wrap;
        & li {
            width: 100%;
            display: flex;
            & p {
                padding: 10px;
            }
        }
    }


}



#navicon ul>#menu-item-415 ul {
    width: 100%;
}

#navicon ul>#menu-item-415 ul li {
    width: 100%;
}

#navicon ul>#menu-item-408 ul {
    width: 400px;
}